From 31421da9e00e29c97e562a3cce9427226fa7ded5 Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Mon, 17 Nov 2025 09:11:06 -0800 Subject: [PATCH 01/28] create gm.selectors.ts, extract faction options from GalaxyMap.tsx --- src/components/GalaxyMap/gm.selectors.ts | 16 ++++++++++++++++ src/components/pages/GalaxyMap.tsx | 14 +++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 src/components/GalaxyMap/gm.selectors.ts diff --git a/src/components/GalaxyMap/gm.selectors.ts b/src/components/GalaxyMap/gm.selectors.ts new file mode 100644 index 0000000..8ce0f65 --- /dev/null +++ b/src/components/GalaxyMap/gm.selectors.ts @@ -0,0 +1,16 @@ +import type { DisplayStarSystemType, FactionDataType } from '../hooks/types'; + +export function buildFactionFilterOptions( + systems: DisplayStarSystemType[], + factions: FactionDataType +): string[] { + const names = new Set(); + + for (const system of systems) { + const owner = system.owner; + const pretty = factions[owner]?.prettyName ?? owner; + if (pretty) names.add(pretty); + } + + return Array.from(names).sort((a, b) => a.localeCompare(b)); +} diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index b5bd6e9..9461274 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -5,6 +5,7 @@ import { ViewTransform, GalaxyMapRenderProps, } from '../GalaxyMap/gm.types'; +import { buildFactionFilterOptions } from '../GalaxyMap/gm.selectors'; import { useMemo, useEffect, useState, useRef } from 'react'; import Konva from 'konva'; import { Stage, Layer, Image, Text, Label, Tag } from 'react-konva'; @@ -480,15 +481,10 @@ const GalaxyMapRender = ({ { - const names = new Set(); - for (const system of systems) { - const owner = system.owner; - const pretty = factions[owner]?.prettyName ?? owner; - if (pretty) names.add(pretty); - } - return Array.from(names).sort((a, b) => a.localeCompare(b)); - }, [systems, factions])} + factions={useMemo( + () => buildFactionFilterOptions(systems, factions), + [systems, factions] + )} selectedFactions={selectedFactions} setSelectedFactions={setSelectedFactions} /> From c5ddbf85f4f367faad17ed33609ecf941e86c514 Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Mon, 17 Nov 2025 09:17:01 -0800 Subject: [PATCH 02/28] create gm.interactions.ts, extract getDistance from GalaxyMap.tsx --- src/components/GalaxyMap/gm.interactions.ts | 5 +++++ src/components/pages/GalaxyMap.tsx | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 src/components/GalaxyMap/gm.interactions.ts diff --git a/src/components/GalaxyMap/gm.interactions.ts b/src/components/GalaxyMap/gm.interactions.ts new file mode 100644 index 0000000..426aeb2 --- /dev/null +++ b/src/components/GalaxyMap/gm.interactions.ts @@ -0,0 +1,5 @@ +export function getDistance(touch1: Touch, touch2: Touch): number { + const dx = touch1.clientX - touch2.clientX; + const dy = touch1.clientY - touch2.clientY; + return Math.sqrt(dx * dx + dy * dy); +} diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index 9461274..9aa19a3 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -6,6 +6,7 @@ import { GalaxyMapRenderProps, } from '../GalaxyMap/gm.types'; import { buildFactionFilterOptions } from '../GalaxyMap/gm.selectors'; +import { getDistance } from '../GalaxyMap/gm.interactions'; import { useMemo, useEffect, useState, useRef } from 'react'; import Konva from 'konva'; import { Stage, Layer, Image, Text, Label, Tag } from 'react-konva'; @@ -216,12 +217,6 @@ const GalaxyMapRender = ({ }; }, []); - const getDistance = (touch1: Touch, touch2: Touch) => { - const dx = touch1.clientX - touch2.clientX; - const dy = touch1.clientY - touch2.clientY; - return Math.sqrt(dx * dx + dy * dy); - }; - let frameRequested = false; const requestBatchDraw = (stage: Konva.Stage) => { if (!frameRequested) { From 12dca85e6df0ad43135a8870b187dbb2d866d06e Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Mon, 17 Nov 2025 09:24:22 -0800 Subject: [PATCH 03/28] create unit tests, ran and passed --- tests/gm.interactions.test.ts | 33 +++++++++++++++++++++ tests/gm.selectors.test.ts | 56 +++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 tests/gm.interactions.test.ts create mode 100644 tests/gm.selectors.test.ts diff --git a/tests/gm.interactions.test.ts b/tests/gm.interactions.test.ts new file mode 100644 index 0000000..b2eff56 --- /dev/null +++ b/tests/gm.interactions.test.ts @@ -0,0 +1,33 @@ +import { describe, it, expect } from 'vitest'; +import { getDistance } from '../src/components/GalaxyMap/gm.interactions'; + +describe('getDistance', () => { + it('returns 0 for identical points', () => { + const t1 = { clientX: 100, clientY: 200 } as unknown as Touch; + const t2 = { clientX: 100, clientY: 200 } as unknown as Touch; + + const d = getDistance(t1, t2); + + expect(d).toBe(0); + }); + + it('computes Euclidean distance between two touch points', () => { + const t1 = { clientX: 0, clientY: 0 } as unknown as Touch; + const t2 = { clientX: 3, clientY: 4 } as unknown as Touch; + + const d = getDistance(t1, t2); + + // 3-4-5 triangle + expect(d).toBe(5); + }); + + it('is symmetric (distance A→B equals distance B→A)', () => { + const t1 = { clientX: 10, clientY: 20 } as unknown as Touch; + const t2 = { clientX: -5, clientY: 7 } as unknown as Touch; + + const d1 = getDistance(t1, t2); + const d2 = getDistance(t2, t1); + + expect(d1).toBeCloseTo(d2, 10); + }); +}); diff --git a/tests/gm.selectors.test.ts b/tests/gm.selectors.test.ts new file mode 100644 index 0000000..05e0dcb --- /dev/null +++ b/tests/gm.selectors.test.ts @@ -0,0 +1,56 @@ +import { describe, it, expect } from 'vitest'; +import { buildFactionFilterOptions } from '../src/components/GalaxyMap/gm.selectors'; + +describe('buildFactionFilterOptions', () => { + it('returns unique, sorted faction names using prettyName when available', () => { + const systems = [ + { owner: 'FACTION_A' }, + { owner: 'FACTION_B' }, + { owner: 'FACTION_A' }, // duplicate + { owner: 'FACTION_C' }, + ] as any[]; // minimal shape: just needs owner + + const factions = { + FACTION_A: { prettyName: 'Alpha' }, + FACTION_B: { prettyName: 'Bravo' }, + FACTION_C: { prettyName: 'Charlie' }, + } as any; + + const result = buildFactionFilterOptions(systems, factions); + + // unique + sorted alphabetically by prettyName + expect(result).toEqual(['Alpha', 'Bravo', 'Charlie']); + }); + + it('falls back to owner key when prettyName is missing', () => { + const systems = [{ owner: 'FACTION_X' }, { owner: 'FACTION_Y' }] as any[]; + + const factions = { + FACTION_X: { prettyName: undefined }, + // FACTION_Y completely missing from map + } as any; + + const result = buildFactionFilterOptions(systems, factions); + + // falls back to owner string + expect(result.sort()).toEqual(['FACTION_X', 'FACTION_Y'].sort()); + }); + + it('ignores falsy names (null/empty string)', () => { + const systems = [ + { owner: 'FACTION_NULL' }, + { owner: 'FACTION_EMPTY' }, + { owner: 'FACTION_OK' }, + ] as any[]; + + const factions = { + FACTION_NULL: { prettyName: null }, + FACTION_EMPTY: { prettyName: '' }, + FACTION_OK: { prettyName: 'Valid' }, + } as any; + + const result = buildFactionFilterOptions(systems, factions); + + expect(result).toEqual(['FACTION_NULL', 'Valid']); + }); +}); From 34e16b4efffd0139b79e2f95751696eef750a028 Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Tue, 3 Feb 2026 20:58:33 -0800 Subject: [PATCH 04/28] extract viewport zoom/pan logic into hook --- src/components/hooks/useGalaxyViewport.ts | 118 ++++++++++++++++++++++ src/components/pages/GalaxyMap.tsx | 82 +++------------ 2 files changed, 131 insertions(+), 69 deletions(-) create mode 100644 src/components/hooks/useGalaxyViewport.ts diff --git a/src/components/hooks/useGalaxyViewport.ts b/src/components/hooks/useGalaxyViewport.ts new file mode 100644 index 0000000..98caa66 --- /dev/null +++ b/src/components/hooks/useGalaxyViewport.ts @@ -0,0 +1,118 @@ +import { useCallback, useMemo, useRef, useState } from 'react'; +import Konva from 'konva'; +import type { Point, ViewTransform } from '../GalaxyMap/gm.types'; + +type UseGalaxyViewportArgs = { + minScale?: number; + maxScale?: number; + wheelThrottleMs?: number; +}; + +export function useGalaxyViewport({ + minScale = 0.2, + maxScale = 25, + wheelThrottleMs = 50, +}: UseGalaxyViewportArgs = {}) { + // Expose these so other hooks (tooltip) can consume them. + const stageRef = useRef(null); + + const scaleRef = useRef(1); + const positionRef = useRef({ + x: window.innerWidth / 2, + y: window.innerHeight / 2, + }); + + // Used by StarSystem sizing logic already in your component. + const [zoomScaleFactor, setZoomScaleFactor] = useState(1); + + // ---- batched draw (fixed: must persist across renders) + const frameRequestedRef = useRef(false); + const requestBatchDraw = useCallback((stage: Konva.Stage) => { + if (frameRequestedRef.current) return; + frameRequestedRef.current = true; + + requestAnimationFrame(() => { + stage.batchDraw(); + frameRequestedRef.current = false; + }); + }, []); + + // ---- wheel throttle + const lastWheelTimeRef = useRef(0); + + const onWheel = useCallback( + (e: Konva.KonvaEventObject) => { + const now = performance.now(); + if (now - lastWheelTimeRef.current < wheelThrottleMs) return; + lastWheelTimeRef.current = now; + + e.evt.preventDefault(); + + const stage = stageRef.current; + if (!stage) return; + + const pointer = stage.getPointerPosition(); + if (!pointer) return; + + const scaleBy = 1.25; + + const oldScale = scaleRef.current; + let newScale = e.evt.deltaY > 0 ? oldScale / scaleBy : oldScale * scaleBy; + newScale = Math.max(minScale, Math.min(maxScale, newScale)); + + // World coords under pointer before zoom + const mousePointTo = { + x: (pointer.x - stage.x()) / oldScale, + y: (pointer.y - stage.y()) / oldScale, + }; + + // Update refs + scaleRef.current = newScale; + positionRef.current = { + x: pointer.x - mousePointTo.x * newScale, + y: pointer.y - mousePointTo.y * newScale, + }; + + // Apply to stage (imperative — avoids rerender dependency) + stage.scale({ x: newScale, y: newScale }); + stage.position(positionRef.current); + + requestBatchDraw(stage); + + // Keep your existing behavior: factor only below 1 + setZoomScaleFactor(newScale < 1 ? newScale : 1); + }, + [maxScale, minScale, requestBatchDraw, wheelThrottleMs] + ); + + const onDragMove = useCallback((e: Konva.KonvaEventObject) => { + positionRef.current = { x: e.target.x(), y: e.target.y() }; + }, []); + + // This view object is useful for Stage props & tooltip scaling. + // Note: it only updates on React re-renders (wheel triggers one via zoomScaleFactor). + const view: ViewTransform = useMemo( + () => ({ + scale: scaleRef.current, + position: positionRef.current, + }), + // re-render triggers recompute; refs don't cause renders + [zoomScaleFactor] + ); + + return { + stageRef, + scaleRef, + positionRef, + view, + zoomScaleFactor, + + requestBatchDraw, + setZoomScaleFactor, + + handlers: { + onWheel, + onDragMove, + }, + }; +} diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index 9aa19a3..7af0b7d 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -2,7 +2,6 @@ import { Point, StageSize, TooltipData, - ViewTransform, GalaxyMapRenderProps, } from '../GalaxyMap/gm.types'; import { buildFactionFilterOptions } from '../GalaxyMap/gm.selectors'; @@ -14,6 +13,7 @@ import StarSystem from '../ui/StarSystem'; import BottomFilterPanel from '../ui/BottomFilterPanel'; import useTooltip from '../hooks/useTooltip'; import useFiltering from '../hooks/useFiltering'; +import { useGalaxyViewport } from '../hooks/useGalaxyViewport'; const MIN_SCALE = 0.2; const MAX_SCALE = 25; @@ -76,6 +76,16 @@ const GalaxyMapRender = ({ factions, settings, }: GalaxyMapRenderProps) => { + const { + stageRef, + scaleRef, + positionRef, + view, + zoomScaleFactor, + requestBatchDraw, + setZoomScaleFactor, + handlers: { onWheel, onDragMove }, + } = useGalaxyViewport(); const [searchTerm, setSearchTerm] = useState(''); const normalizedSearch = searchTerm.trim().toLowerCase(); const shouldFilter = normalizedSearch.length >= 2; @@ -83,30 +93,17 @@ const GalaxyMapRender = ({ /* faction filter */ const [selectedFactions, setSelectedFactions] = useState([]); - const scaleRef = useRef(1); const { tooltip, showTooltip, hideTooltip } = useTooltip(scaleRef) as { tooltip: TooltipData; showTooltip: (...args: any[]) => void; hideTooltip: () => void; }; - const stageRef = useRef(null); - const positionRef = useRef({ - x: window.innerWidth / 2, - y: window.innerHeight / 2, - }); - - const view: ViewTransform = { - scale: scaleRef.current, - position: positionRef.current, - }; const [stageSize, setStageSize] = useState({ width: window.innerWidth, height: window.innerHeight, }); - const [zoomScaleFactor, setZoomScaleFactor] = useState(1); - // Block Firefox pinch-to-zoom at document level useEffect(() => { const preventZoomTouch = (e: TouchEvent) => { @@ -217,59 +214,6 @@ const GalaxyMapRender = ({ }; }, []); - let frameRequested = false; - const requestBatchDraw = (stage: Konva.Stage) => { - if (!frameRequested) { - frameRequested = true; - requestAnimationFrame(() => { - stage.batchDraw(); - frameRequested = false; - }); - } - }; - - const lastWheelTime = useRef(0); - const WHEEL_THROTTLE_MS = 50; - - const handleWheel = (e: Konva.KonvaEventObject) => { - const now = performance.now(); - if (now - lastWheelTime.current < WHEEL_THROTTLE_MS) return; - - lastWheelTime.current = now; - - e.evt.preventDefault(); - const scaleBy = 1.25; - const stage = stageRef.current; - if (!stage) return; - - const pointer = stage.getPointerPosition(); - if (!pointer) return; - - const oldScale = scaleRef.current; - let newScale = e.evt.deltaY > 0 ? oldScale / scaleBy : oldScale * scaleBy; - newScale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, newScale)); - - const mousePointTo = { - x: (pointer.x - stage.x()) / oldScale, - y: (pointer.y - stage.y()) / oldScale, - }; - - scaleRef.current = newScale; - positionRef.current = { - x: pointer.x - mousePointTo.x * newScale, - y: pointer.y - mousePointTo.y * newScale, - }; - - stage.scale({ x: newScale, y: newScale }); - stage.position(positionRef.current); - requestBatchDraw(stage); - setZoomScaleFactor(scaleRef.current < 1 ? scaleRef.current : 1); - }; - - const handleDragMove = (e: Konva.KonvaEventObject) => { - positionRef.current = { x: e.target.x(), y: e.target.y() }; - }; - const handleTouchStart = (e: Konva.KonvaEventObject) => { if (e.evt.touches.length === 1) { const stage = e.target.getStage(); @@ -374,8 +318,8 @@ const GalaxyMapRender = ({ x={view.position.x} y={view.position.y} ref={stageRef} - onWheel={handleWheel} - onDragMove={handleDragMove} + onWheel={onWheel} + onDragMove={onDragMove} onTouchStart={handleTouchStart} onTouchMove={handleTouchMove} onTouchEnd={handleTouchEnd} From 1758ec563c92ed340017a57ed926f0af281d574a Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Thu, 12 Feb 2026 10:13:59 -0800 Subject: [PATCH 05/28] extract pinch/zoom into hook --- src/components/hooks/useGalaxyViewport.ts | 3 +- src/components/hooks/usePinchZoom.ts | 134 ++++++++++++++++++++++ src/components/pages/GalaxyMap.tsx | 120 ++++--------------- 3 files changed, 155 insertions(+), 102 deletions(-) create mode 100644 src/components/hooks/usePinchZoom.ts diff --git a/src/components/hooks/useGalaxyViewport.ts b/src/components/hooks/useGalaxyViewport.ts index 98caa66..6e05529 100644 --- a/src/components/hooks/useGalaxyViewport.ts +++ b/src/components/hooks/useGalaxyViewport.ts @@ -79,8 +79,7 @@ export function useGalaxyViewport({ requestBatchDraw(stage); - // Keep your existing behavior: factor only below 1 - setZoomScaleFactor(newScale < 1 ? newScale : 1); + setZoomScaleFactor(newScale); }, [maxScale, minScale, requestBatchDraw, wheelThrottleMs] ); diff --git a/src/components/hooks/usePinchZoom.ts b/src/components/hooks/usePinchZoom.ts new file mode 100644 index 0000000..062b952 --- /dev/null +++ b/src/components/hooks/usePinchZoom.ts @@ -0,0 +1,134 @@ +import { useCallback, useRef, useState } from 'react'; +import Konva from 'konva'; +import type { Point } from '../GalaxyMap/gm.types'; +import { getDistance } from '../GalaxyMap/gm.interactions'; + +type UsePinchZoomArgs = { + stageRef: React.RefObject; + scaleRef: React.MutableRefObject; + positionRef: React.MutableRefObject; + + // from useGalaxyViewport (temporarily exposed) + requestBatchDraw: (stage: Konva.Stage) => void; + setZoomScaleFactor: React.Dispatch>; + + hideTooltip?: () => void; + + minScale?: number; + maxScale?: number; +}; + +export function usePinchZoom({ + stageRef, + scaleRef, + positionRef, + requestBatchDraw, + setZoomScaleFactor, + hideTooltip, + minScale = 0.2, + maxScale = 25, +}: UsePinchZoomArgs) { + const [isPinching, setIsPinching] = useState(false); + const lastDistance = useRef(0); + + const onTouchStart = useCallback( + (e: Konva.KonvaEventObject) => { + // Single touch: hide tooltip if tapped background (same behavior as your current code) + if (e.evt.touches.length === 1) { + const isCircle = e.target.className === 'Circle'; + const isTooltip = e.target.findAncestor('Label', true); + if (!isCircle && !isTooltip) hideTooltip?.(); + } + + // Two-finger pinch start + if (e.evt.touches.length === 2) { + setIsPinching(true); + lastDistance.current = getDistance(e.evt.touches[0], e.evt.touches[1]); + } + }, + [hideTooltip] + ); + + const onTouchMove = useCallback( + (e: Konva.KonvaEventObject) => { + if (e.evt.touches.length !== 2 || !isPinching) return; + + e.evt.preventDefault(); + + const [touch1, touch2] = e.evt.touches; + const newDistance = getDistance(touch1, touch2); + if (!lastDistance.current) return; + + const stage = stageRef.current; + if (!stage) return; + + let scaleBy = newDistance / lastDistance.current; + + // Prevent jitter and dead zone on Firefox + if (Math.abs(1 - scaleBy) < 0.02) return; + + // Clamp to avoid huge jumps + scaleBy = Math.max(0.9, Math.min(1.1, scaleBy)); + + const oldScale = scaleRef.current ?? 1; + const newScale = Math.max( + minScale, + Math.min(maxScale, oldScale * scaleBy) + ); + + const stagePos = stage.getPosition(); + const stageScale = stage.scaleX(); + + const pinchCenter = { + x: (touch1.clientX + touch2.clientX) / 2, + y: (touch1.clientY + touch2.clientY) / 2, + }; + + const worldPos = { + x: (pinchCenter.x - stagePos.x) / stageScale, + y: (pinchCenter.y - stagePos.y) / stageScale, + }; + + requestAnimationFrame(() => { + const newPos = { + x: pinchCenter.x - worldPos.x * newScale, + y: pinchCenter.y - worldPos.y * newScale, + }; + + scaleRef.current = newScale; + positionRef.current = newPos; + + stage.scale({ x: newScale, y: newScale }); + stage.position(newPos); + + requestBatchDraw(stage); + setZoomScaleFactor(newScale); + }); + + lastDistance.current = newDistance; + }, + [ + isPinching, + maxScale, + minScale, + positionRef, + requestBatchDraw, + scaleRef, + setZoomScaleFactor, + stageRef, + ] + ); + + const onTouchEnd = useCallback((e: Konva.KonvaEventObject) => { + if (e.evt.touches.length < 2) setIsPinching(false); + }, []); + + return { + isPinching, + handlers: { + onTouchStart, + onTouchMove, + onTouchEnd, + }, + }; +} diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index 7af0b7d..5a4f820 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -1,19 +1,17 @@ import { - Point, StageSize, TooltipData, GalaxyMapRenderProps, } from '../GalaxyMap/gm.types'; import { buildFactionFilterOptions } from '../GalaxyMap/gm.selectors'; -import { getDistance } from '../GalaxyMap/gm.interactions'; -import { useMemo, useEffect, useState, useRef } from 'react'; -import Konva from 'konva'; +import { useMemo, useEffect, useState } from 'react'; import { Stage, Layer, Image, Text, Label, Tag } from 'react-konva'; import StarSystem from '../ui/StarSystem'; import BottomFilterPanel from '../ui/BottomFilterPanel'; import useTooltip from '../hooks/useTooltip'; import useFiltering from '../hooks/useFiltering'; import { useGalaxyViewport } from '../hooks/useGalaxyViewport'; +import { usePinchZoom } from '../hooks/usePinchZoom'; const MIN_SCALE = 0.2; const MAX_SCALE = 25; @@ -99,6 +97,20 @@ const GalaxyMapRender = ({ hideTooltip: () => void; }; + const { + isPinching, + handlers: { onTouchStart, onTouchMove, onTouchEnd }, + } = usePinchZoom({ + stageRef, + scaleRef, + positionRef, + requestBatchDraw, + setZoomScaleFactor, + hideTooltip, + minScale: MIN_SCALE, + maxScale: MAX_SCALE, + }); + const [stageSize, setStageSize] = useState({ width: window.innerWidth, height: window.innerHeight, @@ -162,10 +174,6 @@ const GalaxyMapRender = ({ return () => window.removeEventListener('resize', handleResize); }, []); - const [isPinching, setIsPinching] = useState(false); - const lastDistance = useRef(0); - const pinchMidpoint = useRef(null); - const [background, setBackground] = useState(null); const [bgLoaded, setBgLoaded] = useState(false); @@ -214,94 +222,6 @@ const GalaxyMapRender = ({ }; }, []); - const handleTouchStart = (e: Konva.KonvaEventObject) => { - if (e.evt.touches.length === 1) { - const stage = e.target.getStage(); - if (!stage) return; - const isCircle = e.target.className === 'Circle'; - const isTooltip = e.target.findAncestor('Label', true); - if (!isCircle && !isTooltip) { - hideTooltip(); - } - } - - if (e.evt.touches.length === 2) { - setIsPinching(true); - lastDistance.current = getDistance(e.evt.touches[0], e.evt.touches[1]); - - pinchMidpoint.current = { - x: (e.evt.touches[0].clientX + e.evt.touches[1].clientX) / 2, - y: (e.evt.touches[0].clientY + e.evt.touches[1].clientY) / 2, - }; - } - }; - - const handleTouchMove = (e: Konva.KonvaEventObject) => { - if (e.evt.touches.length === 2 && isPinching) { - e.evt.preventDefault(); - - if (!pinchMidpoint.current) return; - - const [touch1, touch2] = e.evt.touches; - const newDistance = getDistance(touch1, touch2); - - if (!lastDistance.current) return; - - const stage = stageRef.current; - - if (!stage) return; - - let scaleBy = newDistance / lastDistance.current; - - // Prevent jitter and dead zone on Firefox - if (Math.abs(1 - scaleBy) < 0.02) return; - - // Clamp to avoid huge jumps - scaleBy = Math.max(0.9, Math.min(1.1, scaleBy)); - - const newScale = Math.max( - MIN_SCALE, - Math.min(MAX_SCALE, scaleRef.current * scaleBy) - ); - - const stagePos = stage.getPosition(); - const stageScale = stage.scaleX(); - - const pinchCenter = { - x: (touch1.clientX + touch2.clientX) / 2, - y: (touch1.clientY + touch2.clientY) / 2, - }; - - const worldPos = { - x: (pinchCenter.x - stagePos.x) / stageScale, - y: (pinchCenter.y - stagePos.y) / stageScale, - }; - - requestAnimationFrame(() => { - const newPos = { - x: pinchCenter.x - worldPos.x * newScale, - y: pinchCenter.y - worldPos.y * newScale, - }; - - scaleRef.current = newScale; - positionRef.current = newPos; - - stage.scale({ x: newScale, y: newScale }); - stage.position(newPos); - requestBatchDraw(stage); - setZoomScaleFactor(newScale < 1 ? newScale : 1); // mirror wheel zoom behavior - }); - - lastDistance.current = newDistance; - } - }; - - const handleTouchEnd = (e: Konva.KonvaEventObject) => { - if (e.evt.touches.length < 2) { - setIsPinching(false); - } - }; - const isMobile = window.innerWidth < 768; const tooltipScale = isMobile ? 1.5 / view.scale : 2 / view.scale; @@ -320,9 +240,9 @@ const GalaxyMapRender = ({ ref={stageRef} onWheel={onWheel} onDragMove={onDragMove} - onTouchStart={handleTouchStart} - onTouchMove={handleTouchMove} - onTouchEnd={handleTouchEnd} + onTouchStart={onTouchStart} + onTouchMove={onTouchMove} + onTouchEnd={onTouchEnd} > {bgLoaded && background ? ( @@ -362,7 +282,7 @@ const GalaxyMapRender = ({ return ( Date: Sat, 21 Feb 2026 12:35:21 -0800 Subject: [PATCH 06/28] implement system state API and damage level, feed to tooltip (for now) --- .../hooks/types/DisplayStarSystemType.ts | 4 +-- src/components/hooks/types/StarSystemState.ts | 6 ++++ src/components/hooks/types/StarSystemType.ts | 3 ++ .../hooks/types/StarSystemWithState.ts | 7 ++++ src/components/hooks/types/index.ts | 2 ++ src/components/ui/StarSystem.tsx | 32 +++++++++++++++++-- 6 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 src/components/hooks/types/StarSystemState.ts create mode 100644 src/components/hooks/types/StarSystemWithState.ts diff --git a/src/components/hooks/types/DisplayStarSystemType.ts b/src/components/hooks/types/DisplayStarSystemType.ts index a563191..e03bb1a 100644 --- a/src/components/hooks/types/DisplayStarSystemType.ts +++ b/src/components/hooks/types/DisplayStarSystemType.ts @@ -1,6 +1,6 @@ -import { StarSystemType } from './StarSystemType'; +import type { StarSystemWithState } from './StarSystemWithState'; -export type DisplayStarSystemType = StarSystemType & { +export type DisplayStarSystemType = StarSystemWithState & { isCapital: boolean; factionColour: string; factionName: string; diff --git a/src/components/hooks/types/StarSystemState.ts b/src/components/hooks/types/StarSystemState.ts new file mode 100644 index 0000000..8d5dfc2 --- /dev/null +++ b/src/components/hooks/types/StarSystemState.ts @@ -0,0 +1,6 @@ +export interface StarSystemState { + isInsurrect?: boolean; + hasPirateRaid?: boolean; + hasCaptureEvent?: boolean; + hasHoldTheLineEvent?: boolean; +} diff --git a/src/components/hooks/types/StarSystemType.ts b/src/components/hooks/types/StarSystemType.ts index 99bc396..0a8faaf 100644 --- a/src/components/hooks/types/StarSystemType.ts +++ b/src/components/hooks/types/StarSystemType.ts @@ -1,4 +1,5 @@ import { ControlInfo } from './ControlInfo'; +import type { StarSystemState } from './StarSystemState'; export interface StarSystemType { name: string; @@ -7,4 +8,6 @@ export interface StarSystemType { owner: string; sysUrl?: string; factions: ControlInfo[]; + state?: StarSystemState; + damageLevel?: string | number | null; } diff --git a/src/components/hooks/types/StarSystemWithState.ts b/src/components/hooks/types/StarSystemWithState.ts new file mode 100644 index 0000000..09eb443 --- /dev/null +++ b/src/components/hooks/types/StarSystemWithState.ts @@ -0,0 +1,7 @@ +import type { StarSystemType } from './StarSystemType'; +import type { StarSystemState } from './StarSystemState'; + +export type StarSystemWithState = StarSystemType & { + //damageLevel?: string; + state?: StarSystemState; +}; diff --git a/src/components/hooks/types/index.ts b/src/components/hooks/types/index.ts index 82365aa..b8e848f 100644 --- a/src/components/hooks/types/index.ts +++ b/src/components/hooks/types/index.ts @@ -3,5 +3,7 @@ export type { StarSystemType } from './StarSystemType'; export type { FactionType } from './FactionType'; export type { FactionDataType } from './FactionDataType'; export type { DisplayStarSystemType } from './DisplayStarSystemType'; +export type { StarSystemState } from './StarSystemState'; +export type { StarSystemWithState } from './StarSystemWithState'; export type { Settings } from './Settings'; export { initialSettings } from './Settings'; diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index d0f246b..4591c9c 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -6,6 +6,7 @@ import { DisplayStarSystemType, FactionDataType, Settings, + StarSystemState, StarSystemType, } from '../hooks/types'; import { API_BASE_URL } from '../helpers/ApiHelper.ts'; @@ -62,6 +63,29 @@ const StarSystem: React.FC = ({ const hasActivePlayers = system.factions.some( (faction) => faction.ActivePlayers > 0 ); + const damageLevelText = + system.damageLevel !== undefined && + system.damageLevel !== null && + `${system.damageLevel}`.trim() !== '' + ? `${system.damageLevel}` + : 'Unknown'; + + const formatSystemState = (state?: StarSystemState) => { + if (!state) return 'None'; + + const stateLabels: Array<[keyof StarSystemState, string]> = [ + ['isInsurrect', 'Insurrection'], + ['hasPirateRaid', 'Pirate Raid'], + ['hasCaptureEvent', 'Capture Event'], + ['hasHoldTheLineEvent', 'Hold The Line Event'], + ]; + + const activeStates = stateLabels + .filter(([key]) => state[key]) + .map(([, label]) => label); + + return activeStates.length ? activeStates.join('\n') : 'None'; + }; const circleRef = useRef(null); @@ -116,11 +140,12 @@ const StarSystem: React.FC = ({ const faction = findFaction(system.owner, factions); const controlDetails = formatFactionControl(system.factions, factions); + const stateDetails = formatSystemState(system.state); showTooltip( `${system.name}\nCoords: (${system.posX}, ${system.posY})\n${ faction?.prettyName || 'Unknown' - }\n\nFaction Control:\n${controlDetails}`, + }\n\nFaction Control:\n${controlDetails}\n\nDamage Level: ${damageLevelText}\n\nSystem State:\n${stateDetails}`, pointer.x, pointer.y, stage.x(), @@ -147,9 +172,12 @@ const StarSystem: React.FC = ({ system.factions, factions ); + const stateDetails = formatSystemState(system.state); showTooltip( - `${system.name}\nCoords: (${system.posX}, ${system.posY})\n${faction?.prettyName}\n\nFaction Control:\n${controlDetails}\n\n[Tap to open]`, + `${system.name}\nCoords: (${system.posX}, ${system.posY})\n${ + faction?.prettyName || 'Unknown' + }\n\nFaction Control:\n${controlDetails}\n\nDamage Level: ${damageLevelText}\n\nSystem State:\n${stateDetails}\n\n[Tap to open]`, pointer.x, pointer.y, undefined, From 065803f35e1d576017d2f95ee7ba7a07f21f3cf3 Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Sat, 21 Feb 2026 15:45:51 -0800 Subject: [PATCH 07/28] reformat tooltip --- src/components/ui/StarSystem.tsx | 61 +++++++++++++++++--------------- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index 4591c9c..d57e970 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -47,17 +47,17 @@ const StarSystem: React.FC = ({ const baseRadius = system.isCapital ? CAPITAL_RADIUS : PLANET_RADIUS; const radius = (highlighted ? baseRadius * 3 : baseRadius) / zoomScaleFactor; - const formatFactionControl = ( - factions: StarSystemType['factions'], + const formatFactionControlCompact = ( + systemFactions: StarSystemType['factions'], allFactions: FactionDataType ) => { - return factions + return systemFactions .map((faction) => { const factionData = findFaction(faction.Name, allFactions); const displayName = factionData?.prettyName || faction.Name; - return `${displayName}: ${faction.control}%\n (${faction.ActivePlayers} players)`; + return `${displayName}: ${faction.control}% (${faction.ActivePlayers} players)`; }) - .join('\n'); + .join(' | '); }; const hasActivePlayers = system.factions.some( @@ -84,7 +84,31 @@ const StarSystem: React.FC = ({ .filter(([key]) => state[key]) .map(([, label]) => label); - return activeStates.length ? activeStates.join('\n') : 'None'; + return activeStates.length ? activeStates.join(', ') : 'None'; + }; + + const buildTooltipText = (includeTapHint = false) => { + const ownerName = findFaction(system.owner, factions)?.prettyName || 'Unknown'; + const controlSummary = formatFactionControlCompact(system.factions, factions); + const stateDetails = formatSystemState(system.state); + + const lines = [ + system.name, + `(${system.posX}, ${system.posY})`, + `Owner: ${ownerName}`, + `Control: ${controlSummary}`, + `Damage: ${damageLevelText}`, + ]; + + if (stateDetails !== 'None') { + lines.push(`State: ${stateDetails}`); + } + + if (includeTapHint) { + lines.push('[Tap to open]'); + } + + return lines.join('\n'); }; const circleRef = useRef(null); @@ -138,19 +162,7 @@ const StarSystem: React.FC = ({ const pointer = stage.getPointerPosition(); if (!pointer) return; - const faction = findFaction(system.owner, factions); - const controlDetails = formatFactionControl(system.factions, factions); - const stateDetails = formatSystemState(system.state); - - showTooltip( - `${system.name}\nCoords: (${system.posX}, ${system.posY})\n${ - faction?.prettyName || 'Unknown' - }\n\nFaction Control:\n${controlDetails}\n\nDamage Level: ${damageLevelText}\n\nSystem State:\n${stateDetails}`, - pointer.x, - pointer.y, - stage.x(), - stage.y() - ); + showTooltip(buildTooltipText(), pointer.x, pointer.y, stage.x(), stage.y()); }} onMouseLeave={hideTooltip} onTouchStart={(e) => { @@ -167,17 +179,8 @@ const StarSystem: React.FC = ({ return; } - const faction = findFaction(system.owner, factions); - const controlDetails = formatFactionControl( - system.factions, - factions - ); - const stateDetails = formatSystemState(system.state); - showTooltip( - `${system.name}\nCoords: (${system.posX}, ${system.posY})\n${ - faction?.prettyName || 'Unknown' - }\n\nFaction Control:\n${controlDetails}\n\nDamage Level: ${damageLevelText}\n\nSystem State:\n${stateDetails}\n\n[Tap to open]`, + buildTooltipText(true), pointer.x, pointer.y, undefined, From 60a8400e464acb9818a3e9a2388d54ca2118f642 Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Sat, 21 Feb 2026 15:51:23 -0800 Subject: [PATCH 08/28] tooltip viewport sizing fix --- src/components/pages/GalaxyMap.tsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index 5a4f820..1c65998 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -224,6 +224,21 @@ const GalaxyMapRender = ({ const isMobile = window.innerWidth < 768; const tooltipScale = isMobile ? 1.5 / view.scale : 2 / view.scale; + const effectiveTooltipScale = view.scale * tooltipScale; + const tooltipViewportWidth = stageSize.width * (isMobile ? 0.92 : 0.5); + const tooltipTextWidth = tooltipViewportWidth / effectiveTooltipScale; + const tooltipMarginWorld = (isMobile ? 8 : 16) / view.scale; + const viewportLeftWorld = -view.position.x / view.scale; + const viewportRightWorld = viewportLeftWorld + stageSize.width / view.scale; + const tooltipWidthWorld = tooltipTextWidth * tooltipScale; + const tooltipHalfWidthWorld = tooltipWidthWorld / 2; + const clampedTooltipX = Math.min( + Math.max( + tooltip.x, + viewportLeftWorld + tooltipHalfWidthWorld + tooltipMarginWorld + ), + viewportRightWorld - tooltipHalfWidthWorld - tooltipMarginWorld + ); return ( <> @@ -298,7 +313,7 @@ const GalaxyMapRender = ({ {tooltip.visible && ( {tooltip.visible && !isMobile && ( - + {desktopTooltipLayout.lines.map((line, index) => ( + (() => { + const segments = getDesktopLineSegments(line, index); + return ( + + {segments.map((segment, segmentIndex) => { + const segmentOffset = segments + .slice(0, segmentIndex) + .reduce((sum, previousSegment) => { + const measure = new Konva.Text({ + text: previousSegment.text, + fontFamily: 'Roboto Mono, monospace', + fontSize: previousSegment.fontSize, + fontStyle: previousSegment.fontStyle, + }); + const width = measure.width(); + measure.destroy(); + return sum + width; + }, 0); + + return ( + + ); + })} + + ); + })() + ))} + )} @@ -380,6 +532,34 @@ const GalaxyMapRender = ({
{detail}
))} + {controlItems.length > 0 && ( +
+
Control
+
+ {visibleControlItems.map((item) => ( +
{`${item.name} ${item.control}% · P${item.players}`}
+ ))} +
+ {hiddenControlCount > 0 && ( + + )} +
+ )}
void + onTouch?: () => void, + controlItems?: TooltipControlItem[] ) => void; hideTooltip: () => void; tooltip: { visible: boolean; text: string }; @@ -47,17 +49,24 @@ const StarSystem: React.FC = ({ const baseRadius = system.isCapital ? CAPITAL_RADIUS : PLANET_RADIUS; const radius = (highlighted ? baseRadius * 3 : baseRadius) / zoomScaleFactor; - const formatFactionControlCompact = ( + const buildControlItems = ( systemFactions: StarSystemType['factions'], allFactions: FactionDataType - ) => { - return systemFactions + ): TooltipControlItem[] => { + return [...systemFactions] + .sort((a, b) => b.control - a.control) .map((faction) => { const factionData = findFaction(faction.Name, allFactions); - const displayName = factionData?.prettyName || faction.Name; - return `${displayName}: ${faction.control}% (${faction.ActivePlayers} players)`; - }) - .join(' | '); + return { + name: factionData?.prettyName || faction.Name, + control: faction.control, + players: faction.ActivePlayers, + }; + }); + }; + + const formatControlLine = (item: TooltipControlItem) => { + return `${item.name} ${item.control}% · P${item.players}`; }; const hasActivePlayers = system.factions.some( @@ -89,14 +98,18 @@ const StarSystem: React.FC = ({ const buildTooltipText = (includeTapHint = false) => { const ownerName = findFaction(system.owner, factions)?.prettyName || 'Unknown'; - const controlSummary = formatFactionControlCompact(system.factions, factions); + const controlItems = buildControlItems(system.factions, factions); + const topControl = controlItems.slice(0, 3); + const remainingControlCount = Math.max(0, controlItems.length - topControl.length); const stateDetails = formatSystemState(system.state); const lines = [ system.name, `(${system.posX}, ${system.posY})`, `Owner: ${ownerName}`, - `Control: ${controlSummary}`, + 'Control:', + ...topControl.map(formatControlLine), + ...(remainingControlCount > 0 ? [`+${remainingControlCount} more`] : []), `Damage: ${damageLevelText}`, ]; @@ -108,7 +121,10 @@ const StarSystem: React.FC = ({ lines.push('[Tap to open]'); } - return lines.join('\n'); + return { + text: lines.join('\n'), + controlItems, + }; }; const circleRef = useRef(null); @@ -162,7 +178,16 @@ const StarSystem: React.FC = ({ const pointer = stage.getPointerPosition(); if (!pointer) return; - showTooltip(buildTooltipText(), pointer.x, pointer.y, stage.x(), stage.y()); + const tooltipData = buildTooltipText(); + showTooltip( + tooltipData.text, + pointer.x, + pointer.y, + stage.x(), + stage.y(), + undefined, + tooltipData.controlItems + ); }} onMouseLeave={hideTooltip} onTouchStart={(e) => { @@ -179,15 +204,18 @@ const StarSystem: React.FC = ({ return; } + const tooltipData = buildTooltipText(true); + showTooltip( - buildTooltipText(true), + tooltipData.text, pointer.x, pointer.y, undefined, undefined, () => { window.location.href = `${API_BASE_URL}${system.sysUrl}`; - } + }, + tooltipData.controlItems ); } }} From 467323b74ab164b097a8a4384e1a945095907ada Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Sun, 22 Feb 2026 20:13:58 -0800 Subject: [PATCH 12/28] mobile pinch to zoom performance tweaks --- map/assets/index-BV97C21A.js | 189 ++ map/assets/index-zRQgh359.css | 1 + map/favicon.ico | Bin 0 -> 4430 bytes map/galaxyBackground2.svg | 2460 ++++++++++++++++++++++++++ map/galaxyBackground2.webp | Bin 0 -> 60408 bytes map/galaxyBackground3.svg | 253 +++ map/index.html | 14 + map/rtLogo.png | Bin 0 -> 164839 bytes map/rticon.ico | Bin 0 -> 4430 bytes map/rticon.png | Bin 0 -> 58676 bytes src/components/hooks/usePinchZoom.ts | 91 +- src/components/hooks/useTooltip.ts | 47 +- src/components/pages/GalaxyMap.tsx | 14 +- src/components/ui/StarSystem.tsx | 12 +- tsconfig.app.tsbuildinfo | 2 +- 15 files changed, 3026 insertions(+), 57 deletions(-) create mode 100644 map/assets/index-BV97C21A.js create mode 100644 map/assets/index-zRQgh359.css create mode 100644 map/favicon.ico create mode 100644 map/galaxyBackground2.svg create mode 100644 map/galaxyBackground2.webp create mode 100644 map/galaxyBackground3.svg create mode 100644 map/index.html create mode 100644 map/rtLogo.png create mode 100644 map/rticon.ico create mode 100644 map/rticon.png diff --git a/map/assets/index-BV97C21A.js b/map/assets/index-BV97C21A.js new file mode 100644 index 0000000..e6d9feb --- /dev/null +++ b/map/assets/index-BV97C21A.js @@ -0,0 +1,189 @@ +function E4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var sO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _9={exports:{}},Nw={},x9={exports:{}},It={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dv=Symbol.for("react.element"),NV=Symbol.for("react.portal"),AV=Symbol.for("react.fragment"),IV=Symbol.for("react.strict_mode"),LV=Symbol.for("react.profiler"),DV=Symbol.for("react.provider"),FV=Symbol.for("react.context"),jV=Symbol.for("react.forward_ref"),zV=Symbol.for("react.suspense"),VV=Symbol.for("react.memo"),BV=Symbol.for("react.lazy"),uO=Symbol.iterator;function UV(e){return e===null||typeof e!="object"?null:(e=uO&&e[uO]||e["@@iterator"],typeof e=="function"?e:null)}var S9={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C9=Object.assign,P9={};function oh(e,t,r){this.props=e,this.context=t,this.refs=P9,this.updater=r||S9}oh.prototype.isReactComponent={};oh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function T9(){}T9.prototype=oh.prototype;function M4(e,t,r){this.props=e,this.context=t,this.refs=P9,this.updater=r||S9}var R4=M4.prototype=new T9;R4.constructor=M4;C9(R4,oh.prototype);R4.isPureReactComponent=!0;var cO=Array.isArray,O9=Object.prototype.hasOwnProperty,N4={current:null},k9={key:!0,ref:!0,__self:!0,__source:!0};function E9(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)O9.call(t,n)&&!k9.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1>>1,ne=Q[te];if(0>>1;teo(ye,Y))ceo(J,ye)?(Q[te]=J,Q[ce]=Y,te=ce):(Q[te]=ye,Q[ve]=Y,te=ve);else if(ceo(J,Y))Q[te]=J,Q[ce]=Y,te=ce;else break e}}return W}function o(Q,W){var Y=Q.sortIndex-W.sortIndex;return Y!==0?Y:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,w=null,S=3,b=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function h(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,q(m);else{var W=r(d);W!==null&&re(h,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,g(k),k=-1),b=!0;var Y=S;try{for(c(W),w=r(s);w!==null&&(!(w.expirationTime>W)||Q&&!A());){var te=w.callback;if(typeof te=="function"){w.callback=null,S=w.priorityLevel;var ne=te(w.expirationTime<=W);W=e.unstable_now(),typeof ne=="function"?w.callback=ne:w===r(s)&&n(s),c(W)}else n(s);w=r(s)}if(w!==null)var se=!0;else{var ve=r(d);ve!==null&&re(h,ve.startTime-W),se=!1}return se}finally{w=null,S=Y,b=!1}}var _=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125te?(Q.sortIndex=Y,t(d,Q),r(s)===null&&Q===r(d)&&(y?(g(k),k=-1):y=!0,re(h,Y-te))):(Q.sortIndex=ne,t(s,Q),P||b||(P=!0,q(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var Y=S;S=W;try{return Q.apply(this,arguments)}finally{S=Y}}}})(I9);A9.exports=I9;var fp=A9.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var JV=X,Oi=fp;function Ie(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zx=Object.prototype.hasOwnProperty,eB=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fO={},pO={};function tB(e){return Zx.call(pO,e)?!0:Zx.call(fO,e)?!1:eB.test(e)?pO[e]=!0:(fO[e]=!0,!1)}function rB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nB(e,t,r,n){if(t===null||typeof t>"u"||rB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var I4=/[\-:]([a-z])/g;function L4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function D4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{v_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?tg(e):""}function oB(e){switch(e.tag){case 5:return tg(e.type);case 16:return tg("Lazy");case 13:return tg("Suspense");case 19:return tg("SuspenseList");case 0:case 2:case 15:return e=m_(e.type,!1),e;case 11:return e=m_(e.type.render,!1),e;case 1:return e=m_(e.type,!0),e;default:return""}}function rS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vf:return"Fragment";case zf:return"Portal";case Jx:return"Profiler";case F4:return"StrictMode";case eS:return"Suspense";case tS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F9:return(e.displayName||"Context")+".Consumer";case D9:return(e._context.displayName||"Context")+".Provider";case j4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z4:return t=e.displayName||null,t!==null?t:rS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return rS(e(t))}catch{}}return null}function iB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rS(t);case 8:return t===F4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function z9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aB(e){var t=z9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hy(e){e._valueTracker||(e._valueTracker=aB(e))}function V9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=z9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function t1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function gO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function B9(e,t){t=t.checked,t!=null&&D4(e,"checked",t,!1)}function oS(e,t){B9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?iS(e,t.type,r):t.hasOwnProperty("defaultValue")&&iS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function iS(e,t,r){(t!=="number"||t1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rg=Array.isArray;function pp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lB=["Webkit","ms","Moz","O"];Object.keys(hg).forEach(function(e){lB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hg[t]=hg[e]})});function $9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hg.hasOwnProperty(e)&&hg[e]?(""+t).trim():t+"px"}function G9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=$9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var sB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function sS(e,t){if(t){if(sB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function uS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cS=null;function V4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dS=null,hp=null,gp=null;function bO(e){if(e=zv(e)){if(typeof dS!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=Fw(t),dS(e.stateNode,e.type,t))}}function K9(e){hp?gp?gp.push(e):gp=[e]:hp=e}function q9(){if(hp){var e=hp,t=gp;if(gp=hp=null,bO(e),t)for(e=0;e>>=0,e===0?32:31-(bB(e)/wB|0)|0}var vy=64,my=4194304;function ng(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function i1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=ng(l):(i&=a,i!==0&&(n=ng(i)))}else a=r&~o,a!==0?n=ng(a):i!==0&&(n=ng(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Fv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function CB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=vg),kO=" ",EO=!1;function hM(e,t){switch(e){case"keyup":return ZB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bf=!1;function eU(e,t){switch(e){case"compositionend":return gM(t);case"keypress":return t.which!==32?null:(EO=!0,kO);case"textInput":return e=t.data,e===kO&&EO?null:e;default:return null}}function tU(e,t){if(Bf)return e==="compositionend"||!q4&&hM(e,t)?(e=fM(),hb=$4=au=null,Bf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AO(r)}}function bM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wM(){for(var e=window,t=t1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=t1(e.document)}return t}function Y4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cU(e){var t=wM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bM(r.ownerDocument.documentElement,r)){if(n!==null&&Y4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=IO(r,i);var a=IO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Uf=null,mS=null,yg=null,yS=!1;function LO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yS||Uf==null||Uf!==t1(n)||(n=Uf,"selectionStart"in n&&Y4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yg&&$g(yg,n)||(yg=n,n=s1(mS,"onSelect"),0$f||(e.current=CS[$f],CS[$f]=null,$f--)}function ur(e,t){$f++,CS[$f]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Rp(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function c1(){mr(Xo),mr(ho)}function UO(e,t,r){if(ho.current!==Eu)throw Error(Ie(168));ur(ho,t),ur(Xo,r)}function EM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Ie(108,iB(e)||"Unknown",o));return Ar({},r,n)}function d1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function HO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=EM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,jw=!1,R_=!1;function MM(e){ql===null?ql=[e]:ql.push(e)}function xU(e){jw=!0,MM(e)}function ju(){if(!R_&&ql!==null){R_=!0;var e=0,t=Yt;try{var r=ql;for(Yt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(g,T,c[k],h);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(g,T),f=i(E,f,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(g,T),_r&&Fc(g,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(g,T,E.value,h);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(g,T),f=i(A,f,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(g,T),_r&&Fc(g,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=w(g,E.value,h),E!==null&&(f=i(E,f,k),_===null?m=E:_.sibling=E,_=E);return _r&&Fc(g,k),m}for(T=n(g,T);!E.done;k++,E=c.next())E=b(T,g,k,E.value,h),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),f=i(E,f,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(g,F)}),_r&&Fc(g,k),m}function C(g,f,c,h){if(typeof c=="object"&&c!==null&&c.type===Vf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case py:e:{for(var m=c.key,_=f;_!==null;){if(_.key===m){if(m=c.type,m===Vf){if(_.tag===7){r(g,_.sibling),f=o(_,c.props.children),f.return=g,g=f;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&GO(m)===_.type){r(g,_.sibling),f=o(_,c.props),f.ref=A0(g,_,c),f.return=g,g=f;break e}r(g,_);break}else t(g,_);_=_.sibling}c.type===Vf?(f=Qc(c.props.children,g.mode,h,c.key),f.return=g,g=f):(h=xb(c.type,c.key,c.props,null,g.mode,h),h.ref=A0(g,f,c),h.return=g,g=h)}return a(g);case zf:e:{for(_=c.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===c.containerInfo&&f.stateNode.implementation===c.implementation){r(g,f.sibling),f=o(f,c.children||[]),f.return=g,g=f;break e}else{r(g,f);break}else t(g,f);f=f.sibling}f=z_(c,g.mode,h),f.return=g,g=f}return a(g);case Qs:return _=c._init,C(g,f,_(c._payload),h)}if(rg(c))return P(g,f,c,h);if(k0(c))return y(g,f,c,h);Cy(g,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,f!==null&&f.tag===6?(r(g,f.sibling),f=o(f,c),f.return=g,g=f):(r(g,f),f=j_(c,g.mode,h),f.return=g,g=f),a(g)):r(g,f)}return C}var Ap=IM(!0),LM=IM(!1),h1=Fu(null),g1=null,qf=null,J4=null;function eP(){J4=qf=g1=null}function tP(e){var t=h1.current;mr(h1),e._currentValue=t}function OS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function mp(e,t){g1=e,J4=qf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(J4!==e)if(e={context:e,memoizedValue:t,next:null},qf===null){if(g1===null)throw Error(Ie(308));qf=e,g1.dependencies={lanes:0,firstContext:e}}else qf=qf.next=e;return t}var Wc=null;function rP(e){Wc===null?Wc=[e]:Wc.push(e)}function DM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,rP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function nP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ut&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,rP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function vb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}function KO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function v1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var w=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,b=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,b=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){w=P.call(b,w,S);break e}w=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(b,w,S):P,S==null)break e;w=Ar({},w,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else b={eventTime:b,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=b,s=w):v=v.next=b,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=w),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=w}}function qO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=A_.transition;A_.transition={};try{e(!1),t()}finally{Yt=r,A_.transition=n}}function eR(){return sa().memoizedState}function TU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},tR(e))rR(t,r);else if(r=DM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),nR(r,t,n)}}function OU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(tR(e))rR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,rP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=DM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),nR(r,t,n))}}function tR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function rR(e,t){bg=y1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function nR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}var b1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},kU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:XO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,yb(4194308,4,YM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return yb(4194308,4,e,t)},useInsertionEffect:function(e,t){return yb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:YO,useDebugValue:dP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=YO(!1),t=e[0];return e=PU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Rn===null)throw Error(Ie(349));(nd&30)!==0||BM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,XO(HM.bind(null,n,i,e),[e]),n.flags|=2048,Jg(9,UM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Qg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[qg]=n,pR(e,t,!1,!1),t.stateNode=e;e:{switch(a=uS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oDp&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304)}else{if(!n)if(e=m1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),I0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Dp&&r!==1073741824&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return mP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function DU(e,t){switch(Q4(t),t.tag){case 1:return Qo(t.type)&&c1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ip(),mr(Xo),mr(ho),aP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return iP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Np()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Ip(),null;case 10:return tP(t.type._context),null;case 22:case 23:return mP(),null;case 24:return null;default:return null}}var Ty=!1,co=!1,FU=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Yf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function DS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var l6=!1;function jU(e,t){if(bS=a1,e=wM(),Y4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,w=e,S=null;t:for(;;){for(var b;w!==r||o!==0&&w.nodeType!==3||(l=a+o),w!==i||n!==0&&w.nodeType!==3||(s=a+n),w.nodeType===3&&(a+=w.nodeValue.length),(b=w.firstChild)!==null;)S=w,w=b;for(;;){if(w===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(b=w.nextSibling)!==null)break;w=S,S=w.parentNode}w=b}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(wS={focusedElem:e,selectionRange:r},a1=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){Vr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return P=l6,l6=!1,P}function wg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&DS(t,r,i)}o=o.next}while(o!==n)}}function Bw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function FS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function vR(e){var t=e.alternate;t!==null&&(e.alternate=null,vR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[qg],delete t[SS],delete t[wU],delete t[_U])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mR(e){return e.tag===5||e.tag===3||e.tag===4}function s6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=u1));else if(n!==4&&(e=e.child,e!==null))for(jS(e,t,r),e=e.sibling;e!==null;)jS(e,t,r),e=e.sibling}function zS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(zS(e,t,r),e=e.sibling;e!==null;)zS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)yR(e,t,r),r=r.sibling}function yR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Aw,r)}catch{}switch(r.tag){case 5:co||Yf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?M_(e.parentNode,r):e.nodeType===1&&M_(e,r),Hg(e)):M_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&DS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Yf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function u6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FU),t.forEach(function(n){var o=KU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,x1=0,(Ut&6)!==0)throw Error(Ie(331));var o=Ut;for(Ut|=4,Ge=e.current;Ge!==null;){var i=Ge,a=i.child;if((Ge.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-gP?Xc(e,0):hP|=r),Zo(e,t)}function TR(e,t){t===0&&((e.mode&1)===0?t=1:(t=my,my<<=1,(my&130023424)===0&&(my=4194304)));var r=Ro();e=us(e,t),e!==null&&(Fv(e,t,r),Zo(e,r))}function GU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TR(e,r)}function KU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ie(314))}n!==null&&n.delete(t),TR(e,r)}var OR;OR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,IU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&RM(t,p1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;bb(e,t),e=t.pendingProps;var o=Rp(t,ho.current);mp(t,r),o=sP(null,t,n,e,o,r);var i=uP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,d1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nP(t),o.updater=Vw,t.stateNode=o,o._reactInternals=t,ES(t,n,e,r),t=NS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&X4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(bb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=YU(n),e=Ta(n,e),o){case 0:t=RS(null,t,n,e,r);break e;case 1:t=o6(null,t,n,e,r);break e;case 11:t=r6(null,t,n,e,r);break e;case 14:t=n6(null,t,n,Ta(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),RS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),o6(e,t,n,o,r);case 3:e:{if(cR(t),e===null)throw Error(Ie(387));n=t.pendingProps,i=t.memoizedState,o=i.element,FM(e,t),v1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lp(Error(Ie(423)),t),t=i6(e,t,n,r,o);break e}else if(n!==o){o=Lp(Error(Ie(424)),t),t=i6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=LM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Np(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return jM(t),e===null&&TS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_S(n,o)?a=null:i!==null&&_S(n,i)&&(t.flags|=32),uR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&TS(t),null;case 13:return dR(e,t,r);case 4:return oP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ap(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),r6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(h1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),OS(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ie(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),OS(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),n6(e,t,n,o,r);case 15:return lR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),bb(e,t),t.tag=1,Qo(n)?(e=!0,d1(t)):e=!1,mp(t,r),oR(t,n,o),ES(t,n,o,r),NS(null,t,n,!0,e,r);case 19:return fR(e,t,r);case 22:return sR(e,t,r)}throw Error(Ie(156,t.tag))};function kR(e,t){return tM(e,t)}function qU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new qU(e,t,r,n)}function bP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YU(e){if(typeof e=="function")return bP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j4)return 11;if(e===z4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")bP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vf:return Qc(r.children,o,i,t);case F4:a=8,o|=8;break;case Jx:return e=ta(12,r,t,o|2),e.elementType=Jx,e.lanes=i,e;case eS:return e=ta(13,r,t,o),e.elementType=eS,e.lanes=i,e;case tS:return e=ta(19,r,t,o),e.elementType=tS,e.lanes=i,e;case j9:return Hw(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D9:a=10;break e;case F9:a=9;break e;case j4:a=11;break e;case z4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function Hw(e,t,r,n){return e=ta(22,e,n,t),e.elementType=j9,e.lanes=r,e.stateNode={isHidden:!1},e}function j_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function z_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=b_(0),this.expirationTimes=b_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=b_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wP(e,t,r,n,o,i,a,l,s){return e=new XU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nP(i),e}function QU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),N9.exports=Mi;var qw=N9.exports;const rH=nh(qw),nH=E4({__proto__:null,default:rH},[qw]);var AR,m6=qw;AR=m6.createRoot,m6.hydrateRoot;/** + * @remix-run/router v1.19.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iH(){return Math.random().toString(36).substr(2,8)}function b6(e,t){return{usr:e.state,key:e.key,idx:t}}function tv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||iH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function w(){l=rn.Pop;let C=v(),g=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:g})}function S(C,g){l=rn.Push;let f=tv(y.location,C,g);d=v()+1;let c=b6(f,d),h=y.createHref(f);try{a.pushState(c,"",h)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(h)}i&&s&&s({action:l,location:y.location,delta:1})}function b(C,g){l=rn.Replace;let f=tv(y.location,C,g);d=v();let c=b6(f,d),h=y.createHref(f);a.replaceState(c,"",h),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,f=typeof C=="string"?C:ad(C);return f=f.replace(/ $/,"%20"),Ct(g,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,g)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(y6,w),s=C,()=>{o.removeEventListener(y6,w),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let g=P(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:S,replace:b,go(C){return a.go(C)}};return y}var tr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tr||(tr={}));const lH=new Set(["lazy","caseSensitive","path","id","index","children"]);function sH(e){return e.index===!0}function rv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Ct(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ct(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),sH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=rv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Sb(e,t,r,!1)}function Sb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=lh(o.pathname||"/",r);if(i==null)return null;let a=IR(e);cH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Ct(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Ct(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),IR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:mH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of LR(i.path))o(i,a,s)}),t}function LR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=LR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function cH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:yH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dH=/^:[\w-]+$/,fH=3,pH=2,hH=1,gH=10,vH=-2,w6=e=>e==="*";function mH(e,t){let r=e.split("/"),n=r.length;return r.some(w6)&&(n+=vH),t&&(n+=pH),r.filter(o=>!w6(o)).reduce((o,i)=>o+(dH.test(i)?fH:i===""?hH:gH),n)}function yH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function bH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:b}=v;if(S==="*"){let y=l[w]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[w];return b&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function wH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Fp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function _H(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function xH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:SH(r,t):t,search:PH(n),hash:TH(o)}}function SH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function V_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function DR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function CP(e,t){let r=DR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function PP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Ct(!o.pathname||!o.pathname.includes("?"),V_("?","pathname","search",o)),Ct(!o.pathname||!o.pathname.includes("#"),V_("#","pathname","hash",o)),Ct(!o.search||!o.search.includes("#"),V_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let w=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),w-=1;o.pathname=S.join("/")}l=w>=0?t[w]:"/"}let s=xH(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),CH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class P1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Bv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FR=["post","put","patch","delete"],OH=new Set(FR),kH=["get",...FR],EH=new Set(kH),MH=new Set([301,302,303,307,308]),RH=new Set([307,308]),B_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},D0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},TP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jR="remix-router-transitions";function IH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Ct(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ae=e.detectErrorBoundary;o=pe=>({hasErrorBoundary:ae(pe)})}else o=AH;let i={},a=rv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||VH,v=e.unstable_patchRoutesOnNavigation,w=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,b=new Set,P=1e3,y=new Set,C=null,g=null,f=null,c=e.hydrationData!=null,h=Uc(a,e.history.location,s),m=null;if(h==null&&!v){let ae=ko(404,{pathname:e.history.location.pathname}),{matches:pe,route:_e}=M6(a);h=pe,m={[_e.id]:ae}}h&&!e.hydrationData&&bo(h,a,e.history.location.pathname).active&&(h=null);let _;if(h)if(h.some(ae=>ae.route.lazy))_=!1;else if(!h.some(ae=>ae.route.loader))_=!0;else if(w.v7_partialHydration){let ae=e.hydrationData?e.hydrationData.loaderData:null,pe=e.hydrationData?e.hydrationData.errors:null,_e=Ee=>Ee.route.loader?typeof Ee.route.loader=="function"&&Ee.route.loader.hydrate===!0?!1:ae&&ae[Ee.route.id]!==void 0||pe&&pe[Ee.route.id]!==void 0:!0;if(pe){let Ee=h.findIndex(Be=>pe[Be.route.id]!==void 0);_=h.slice(0,Ee+1).every(_e)}else _=h.every(_e)}else _=e.hydrationData!=null;else if(_=!1,h=[],w.v7_partialHydration){let ae=bo(null,a,e.history.location.pathname);ae.active&&ae.matches&&(h=ae.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:h,initialized:_,navigation:B_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,H=!1,q=!1,re=[],Q=new Set,W=new Map,Y=0,te=-1,ne=new Map,se=new Set,ve=new Map,ye=new Map,ce=new Set,J=new Map,oe=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(ae=>{let{action:pe,location:_e,delta:Ee}=ae;if(Se){Se(),Se=void 0;return}Fp(oe.size===0||Ee!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Be=Li({currentLocation:k.location,nextLocation:_e,historyAction:pe});if(Be&&Ee!=null){let Xe=new Promise(ut=>{Se=ut});e.history.go(Ee*-1),sn(Be,{state:"blocked",location:_e,proceed(){sn(Be,{state:"proceeding",proceed:void 0,reset:void 0,location:_e}),Xe.then(()=>e.history.go(Ee))},reset(){let ut=new Map(k.blockers);ut.set(Be,D0),Te({blockers:ut})}});return}return it(pe,_e)}),r){tW(t,V);let ae=()=>rW(t,V);t.addEventListener("pagehide",ae),B=()=>t.removeEventListener("pagehide",ae)}return k.initialized||it(rn.Pop,k.location,{initialHydration:!0}),T}function Re(){S&&S(),B&&B(),b.clear(),A&&A.abort(),k.fetchers.forEach((ae,pe)=>qt(pe)),k.blockers.forEach((ae,pe)=>Ka(pe))}function xe(ae){return b.add(ae),()=>b.delete(ae)}function Te(ae,pe){pe===void 0&&(pe={}),k=Tr({},k,ae);let _e=[],Ee=[];w.v7_fetcherPersist&&k.fetchers.forEach((Be,Xe)=>{Be.state==="idle"&&(ce.has(Xe)?Ee.push(Xe):_e.push(Xe))}),[...b].forEach(Be=>Be(k,{deletedFetchers:Ee,unstable_viewTransitionOpts:pe.viewTransitionOpts,unstable_flushSync:pe.flushSync===!0})),w.v7_fetcherPersist&&(_e.forEach(Be=>k.fetchers.delete(Be)),Ee.forEach(Be=>qt(Be)))}function Oe(ae,pe,_e){var Ee,Be;let{flushSync:Xe}=_e===void 0?{}:_e,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Ee=ae.state)==null?void 0:Ee._isRedirect)!==!0,De;pe.actionData?Object.keys(pe.actionData).length>0?De=pe.actionData:De=null:ut?De=k.actionData:De=null;let Qe=pe.loaderData?k6(k.loaderData,pe.loaderData,pe.matches||[],pe.errors):k.loaderData,We=k.blockers;We.size>0&&(We=new Map(We),We.forEach((Rt,Bt)=>We.set(Bt,D0)));let $e=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Be=ae.state)==null?void 0:Be._isRedirect)!==!0;l&&(a=l,l=void 0),H||R===rn.Pop||(R===rn.Push?e.history.push(ae,ae.state):R===rn.Replace&&e.history.replace(ae,ae.state));let Ot;if(R===rn.Pop){let Rt=V.get(k.location.pathname);Rt&&Rt.has(ae.pathname)?Ot={currentLocation:k.location,nextLocation:ae}:V.has(ae.pathname)&&(Ot={currentLocation:ae,nextLocation:k.location})}else if(F){let Rt=V.get(k.location.pathname);Rt?Rt.add(ae.pathname):(Rt=new Set([ae.pathname]),V.set(k.location.pathname,Rt)),Ot={currentLocation:k.location,nextLocation:ae}}Te(Tr({},pe,{actionData:De,loaderData:Qe,historyAction:R,location:ae,initialized:!0,navigation:B_,revalidation:"idle",restoreScrollPosition:Fi(ae,pe.matches||k.matches),preventScrollReset:$e,blockers:We}),{viewTransitionOpts:Ot,flushSync:Xe===!0}),R=rn.Pop,E=!1,F=!1,H=!1,q=!1,re=[]}async function je(ae,pe){if(typeof ae=="number"){e.history.go(ae);return}let _e=WS(k.location,k.matches,s,w.v7_prependBasename,ae,w.v7_relativeSplatPath,pe==null?void 0:pe.fromRouteId,pe==null?void 0:pe.relative),{path:Ee,submission:Be,error:Xe}=x6(w.v7_normalizeFormMethod,!1,_e,pe),ut=k.location,De=tv(k.location,Ee,pe&&pe.state);De=Tr({},De,e.history.encodeLocation(De));let Qe=pe&&pe.replace!=null?pe.replace:void 0,We=rn.Push;Qe===!0?We=rn.Replace:Qe===!1||Be!=null&&Ea(Be.formMethod)&&Be.formAction===k.location.pathname+k.location.search&&(We=rn.Replace);let $e=pe&&"preventScrollReset"in pe?pe.preventScrollReset===!0:void 0,Ot=(pe&&pe.unstable_flushSync)===!0,Rt=Li({currentLocation:ut,nextLocation:De,historyAction:We});if(Rt){sn(Rt,{state:"blocked",location:De,proceed(){sn(Rt,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),je(ae,pe)},reset(){let Bt=new Map(k.blockers);Bt.set(Rt,D0),Te({blockers:Bt})}});return}return await it(We,De,{submission:Be,pendingError:Xe,preventScrollReset:$e,replace:pe&&pe.replace,enableViewTransition:pe&&pe.unstable_viewTransition,flushSync:Ot})}function Ye(){if(Qn(),Te({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){it(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}it(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function it(ae,pe,_e){A&&A.abort(),A=null,R=ae,H=(_e&&_e.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(_e&&_e.preventScrollReset)===!0,F=(_e&&_e.enableViewTransition)===!0;let Ee=l||a,Be=_e&&_e.overrideNavigation,Xe=Uc(Ee,pe,s),ut=(_e&&_e.flushSync)===!0,De=bo(Xe,Ee,pe.pathname);if(De.active&&De.matches&&(Xe=De.matches),!Xe){let{error:yt,notFoundMatches:dr,route:nr}=fa(pe.pathname);Oe(pe,{matches:dr,loaderData:{},errors:{[nr.id]:yt}},{flushSync:ut});return}if(k.initialized&&!q&&GH(k.location,pe)&&!(_e&&_e.submission&&Ea(_e.submission.formMethod))){Oe(pe,{matches:Xe},{flushSync:ut});return}A=new AbortController;let Qe=Rf(e.history,pe,A.signal,_e&&_e.submission),We;if(_e&&_e.pendingError)We=[Qf(Xe).route.id,{type:tr.error,error:_e.pendingError}];else if(_e&&_e.submission&&Ea(_e.submission.formMethod)){let yt=await Mt(Qe,pe,_e.submission,Xe,De.active,{replace:_e.replace,flushSync:ut});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[dr,nr]=yt.pendingActionResult;if(wi(nr)&&Bv(nr.error)&&nr.error.status===404){A=null,Oe(pe,{matches:yt.matches,loaderData:{},errors:{[dr]:nr.error}});return}}Xe=yt.matches||Xe,We=yt.pendingActionResult,Be=U_(pe,_e.submission),ut=!1,De.active=!1,Qe=Rf(e.history,Qe.url,Qe.signal)}let{shortCircuited:$e,matches:Ot,loaderData:Rt,errors:Bt}=await gt(Qe,pe,Xe,De.active,Be,_e&&_e.submission,_e&&_e.fetcherSubmission,_e&&_e.replace,_e&&_e.initialHydration===!0,ut,We);$e||(A=null,Oe(pe,Tr({matches:Ot||Xe},E6(We),{loaderData:Rt,errors:Bt})))}async function Mt(ae,pe,_e,Ee,Be,Xe){Xe===void 0&&(Xe={}),Qn();let ut=JH(pe,_e);if(Te({navigation:ut},{flushSync:Xe.flushSync===!0}),Be){let We=await ni(Ee,pe.pathname,ae.signal);if(We.type==="aborted")return{shortCircuited:!0};if(We.type==="error"){let{boundaryId:$e,error:Ot}=$r(pe.pathname,We);return{matches:We.partialMatches,pendingActionResult:[$e,{type:tr.error,error:Ot}]}}else if(We.matches)Ee=We.matches;else{let{notFoundMatches:$e,error:Ot,route:Rt}=fa(pe.pathname);return{matches:$e,pendingActionResult:[Rt.id,{type:tr.error,error:Ot}]}}}let De,Qe=ig(Ee,pe);if(!Qe.route.action&&!Qe.route.lazy)De={type:tr.error,error:ko(405,{method:ae.method,pathname:pe.pathname,routeId:Qe.route.id})};else if(De=(await Dr("action",k,ae,[Qe],Ee,null))[Qe.route.id],ae.signal.aborted)return{shortCircuited:!0};if(Gc(De)){let We;return Xe&&Xe.replace!=null?We=Xe.replace:We=P6(De.response.headers.get("Location"),new URL(ae.url),s)===k.location.pathname+k.location.search,await Zt(ae,De,!0,{submission:_e,replace:We}),{shortCircuited:!0}}if(su(De))throw ko(400,{type:"defer-action"});if(wi(De)){let We=Qf(Ee,Qe.route.id);return(Xe&&Xe.replace)!==!0&&(R=rn.Push),{matches:Ee,pendingActionResult:[We.route.id,De]}}return{matches:Ee,pendingActionResult:[Qe.route.id,De]}}async function gt(ae,pe,_e,Ee,Be,Xe,ut,De,Qe,We,$e){let Ot=Be||U_(pe,Xe),Rt=Xe||ut||N6(Ot),Bt=!H&&(!w.v7_partialHydration||!Qe);if(Ee){if(Bt){let At=Tt($e);Te(Tr({navigation:Ot},At!==void 0?{actionData:At}:{}),{flushSync:We})}let Ue=await ni(_e,pe.pathname,ae.signal);if(Ue.type==="aborted")return{shortCircuited:!0};if(Ue.type==="error"){let{boundaryId:At,error:at}=$r(pe.pathname,Ue);return{matches:Ue.partialMatches,loaderData:{},errors:{[At]:at}}}else if(Ue.matches)_e=Ue.matches;else{let{error:At,notFoundMatches:at,route:tt}=fa(pe.pathname);return{matches:at,loaderData:{},errors:{[tt.id]:At}}}}let yt=l||a,[dr,nr]=S6(e.history,k,_e,Rt,pe,w.v7_partialHydration&&Qe===!0,w.v7_skipActionErrorRevalidation,q,re,Q,ce,ve,se,yt,s,$e);if(Di(Ue=>!(_e&&_e.some(At=>At.route.id===Ue))||dr&&dr.some(At=>At.route.id===Ue)),te=++Y,dr.length===0&&nr.length===0){let Ue=da();return Oe(pe,Tr({matches:_e,loaderData:{},errors:$e&&wi($e[1])?{[$e[0]]:$e[1].error}:null},E6($e),Ue?{fetchers:new Map(k.fetchers)}:{}),{flushSync:We}),{shortCircuited:!0}}if(Bt){let Ue={};if(!Ee){Ue.navigation=Ot;let At=Tt($e);At!==void 0&&(Ue.actionData=At)}nr.length>0&&(Ue.fetchers=_t(nr)),Te(Ue,{flushSync:We})}nr.forEach(Ue=>{W.has(Ue.key)&&Qr(Ue.key),Ue.controller&&W.set(Ue.key,Ue.controller)});let Fn=()=>nr.forEach(Ue=>Qr(Ue.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,_e,dr,nr,ae);if(ae.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),nr.forEach(Ue=>W.delete(Ue.key));let Zn=Ey(Fr);if(Zn)return await Zt(ae,Zn.result,!0,{replace:De}),{shortCircuited:!0};if(Zn=Ey(jn),Zn)return se.add(Zn.key),await Zt(ae,Zn.result,!0,{replace:De}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=O6(k,_e,dr,Fr,$e,nr,jn,J);J.forEach((Ue,At)=>{Ue.subscribe(at=>{(at||Ue.done)&&J.delete(At)})}),w.v7_partialHydration&&Qe&&k.errors&&Object.entries(k.errors).filter(Ue=>{let[At]=Ue;return!dr.some(at=>at.route.id===At)}).forEach(Ue=>{let[At,at]=Ue;zn=Object.assign(zn||{},{[At]:at})});let un=da(),Zr=Sn(te),Nt=un||Zr||nr.length>0;return Tr({matches:_e,loaderData:ji,errors:zn},Nt?{fetchers:new Map(k.fetchers)}:{})}function Tt(ae){if(ae&&!wi(ae[1]))return{[ae[0]]:ae[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function _t(ae){return ae.forEach(pe=>{let _e=k.fetchers.get(pe.key),Ee=F0(void 0,_e?_e.data:void 0);k.fetchers.set(pe.key,Ee)}),new Map(k.fetchers)}function ir(ae,pe,_e,Ee){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(ae)&&Qr(ae);let Be=(Ee&&Ee.unstable_flushSync)===!0,Xe=l||a,ut=WS(k.location,k.matches,s,w.v7_prependBasename,_e,w.v7_relativeSplatPath,pe,Ee==null?void 0:Ee.relative),De=Uc(Xe,ut,s),Qe=bo(De,Xe,ut);if(Qe.active&&Qe.matches&&(De=Qe.matches),!De){rr(ae,pe,ko(404,{pathname:ut}),{flushSync:Be});return}let{path:We,submission:$e,error:Ot}=x6(w.v7_normalizeFormMethod,!0,ut,Ee);if(Ot){rr(ae,pe,Ot,{flushSync:Be});return}let Rt=ig(De,We);if(E=(Ee&&Ee.preventScrollReset)===!0,$e&&Ea($e.formMethod)){Wt(ae,pe,We,Rt,De,Qe.active,Be,$e);return}ve.set(ae,{routeId:pe,path:We}),Lt(ae,pe,We,Rt,De,Qe.active,Be,$e)}async function Wt(ae,pe,_e,Ee,Be,Xe,ut,De){Qn(),ve.delete(ae);function Qe(tt){if(!tt.route.action&&!tt.route.lazy){let xt=ko(405,{method:De.formMethod,pathname:_e,routeId:pe});return rr(ae,pe,xt,{flushSync:ut}),!0}return!1}if(!Xe&&Qe(Ee))return;let We=k.fetchers.get(ae);Ln(ae,eW(De,We),{flushSync:ut});let $e=new AbortController,Ot=Rf(e.history,_e,$e.signal,De);if(Xe){let tt=await ni(Be,_e,Ot.signal);if(tt.type==="aborted")return;if(tt.type==="error"){let{error:xt}=$r(_e,tt);rr(ae,pe,xt,{flushSync:ut});return}else if(tt.matches){if(Be=tt.matches,Ee=ig(Be,_e),Qe(Ee))return}else{rr(ae,pe,ko(404,{pathname:_e}),{flushSync:ut});return}}W.set(ae,$e);let Rt=Y,yt=(await Dr("action",k,Ot,[Ee],Be,ae))[Ee.route.id];if(Ot.signal.aborted){W.get(ae)===$e&&W.delete(ae);return}if(w.v7_fetcherPersist&&ce.has(ae)){if(Gc(yt)||wi(yt)){Ln(ae,Ks(void 0));return}}else{if(Gc(yt))if(W.delete(ae),te>Rt){Ln(ae,Ks(void 0));return}else return se.add(ae),Ln(ae,F0(De)),Zt(Ot,yt,!1,{fetcherSubmission:De});if(wi(yt)){rr(ae,pe,yt.error);return}}if(su(yt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,nr=Rf(e.history,dr,$e.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Ct(Fr,"Didn't find any matches after fetcher action");let jn=++Y;ne.set(ae,jn);let Zn=F0(De,yt.data);k.fetchers.set(ae,Zn);let[ji,zn]=S6(e.history,k,Fr,De,dr,!1,w.v7_skipActionErrorRevalidation,q,re,Q,ce,ve,se,Fn,s,[Ee.route.id,yt]);zn.filter(tt=>tt.key!==ae).forEach(tt=>{let xt=tt.key,cn=k.fetchers.get(xt),wr=F0(void 0,cn?cn.data:void 0);k.fetchers.set(xt,wr),W.has(xt)&&Qr(xt),tt.controller&&W.set(xt,tt.controller)}),Te({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(tt=>Qr(tt.key));$e.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:Nt}=await ln(k,Fr,ji,zn,nr);if($e.signal.aborted)return;$e.signal.removeEventListener("abort",un),ne.delete(ae),W.delete(ae),zn.forEach(tt=>W.delete(tt.key));let Ue=Ey(Zr);if(Ue)return Zt(nr,Ue.result,!1);if(Ue=Ey(Nt),Ue)return se.add(Ue.key),Zt(nr,Ue.result,!1);let{loaderData:At,errors:at}=O6(k,Fr,ji,Zr,void 0,zn,Nt,J);if(k.fetchers.has(ae)){let tt=Ks(yt.data);k.fetchers.set(ae,tt)}Sn(jn),k.navigation.state==="loading"&&jn>te?(Ct(R,"Expected pending action"),A&&A.abort(),Oe(k.navigation.location,{matches:Fr,loaderData:At,errors:at,fetchers:new Map(k.fetchers)})):(Te({errors:at,loaderData:k6(k.loaderData,At,Fr,at),fetchers:new Map(k.fetchers)}),q=!1)}async function Lt(ae,pe,_e,Ee,Be,Xe,ut,De){let Qe=k.fetchers.get(ae);Ln(ae,F0(De,Qe?Qe.data:void 0),{flushSync:ut});let We=new AbortController,$e=Rf(e.history,_e,We.signal);if(Xe){let yt=await ni(Be,_e,$e.signal);if(yt.type==="aborted")return;if(yt.type==="error"){let{error:dr}=$r(_e,yt);rr(ae,pe,dr,{flushSync:ut});return}else if(yt.matches)Be=yt.matches,Ee=ig(Be,_e);else{rr(ae,pe,ko(404,{pathname:_e}),{flushSync:ut});return}}W.set(ae,We);let Ot=Y,Bt=(await Dr("loader",k,$e,[Ee],Be,ae))[Ee.route.id];if(su(Bt)&&(Bt=await OP(Bt,$e.signal,!0)||Bt),W.get(ae)===We&&W.delete(ae),!$e.signal.aborted){if(ce.has(ae)){Ln(ae,Ks(void 0));return}if(Gc(Bt))if(te>Ot){Ln(ae,Ks(void 0));return}else{se.add(ae),await Zt($e,Bt,!1);return}if(wi(Bt)){rr(ae,pe,Bt.error);return}Ct(!su(Bt),"Unhandled fetcher deferred data"),Ln(ae,Ks(Bt.data))}}async function Zt(ae,pe,_e,Ee){let{submission:Be,fetcherSubmission:Xe,replace:ut}=Ee===void 0?{}:Ee;pe.response.headers.has("X-Remix-Revalidate")&&(q=!0);let De=pe.response.headers.get("Location");Ct(De,"Expected a Location header on the redirect Response"),De=P6(De,new URL(ae.url),s);let Qe=tv(k.location,De,{_isRedirect:!0});if(r){let yt=!1;if(pe.response.headers.has("X-Remix-Reload-Document"))yt=!0;else if(TP.test(De)){const dr=e.history.createURL(De);yt=dr.origin!==t.location.origin||lh(dr.pathname,s)==null}if(yt){ut?t.location.replace(De):t.location.assign(De);return}}A=null;let We=ut===!0||pe.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:$e,formAction:Ot,formEncType:Rt}=k.navigation;!Be&&!Xe&&$e&&Ot&&Rt&&(Be=N6(k.navigation));let Bt=Be||Xe;if(RH.has(pe.response.status)&&Bt&&Ea(Bt.formMethod))await it(We,Qe,{submission:Tr({},Bt,{formAction:De}),preventScrollReset:E,enableViewTransition:_e?F:void 0});else{let yt=U_(Qe,Be);await it(We,Qe,{overrideNavigation:yt,fetcherSubmission:Xe,preventScrollReset:E,enableViewTransition:_e?F:void 0})}}async function Dr(ae,pe,_e,Ee,Be,Xe){let ut,De={};try{ut=await BH(d,ae,pe,_e,Ee,Be,Xe,i,o)}catch(Qe){return Ee.forEach(We=>{De[We.route.id]={type:tr.error,error:Qe}}),De}for(let[Qe,We]of Object.entries(ut))if(qH(We)){let $e=We.result;De[Qe]={type:tr.redirect,response:WH($e,_e,Qe,Be,s,w.v7_relativeSplatPath)}}else De[Qe]=await HH(We);return De}async function ln(ae,pe,_e,Ee,Be){let Xe=ae.matches,ut=Dr("loader",ae,Be,_e,pe,null),De=Promise.all(Ee.map(async $e=>{if($e.matches&&$e.match&&$e.controller){let Rt=(await Dr("loader",ae,Rf(e.history,$e.path,$e.controller.signal),[$e.match],$e.matches,$e.key))[$e.match.route.id];return{[$e.key]:Rt}}else return Promise.resolve({[$e.key]:{type:tr.error,error:ko(404,{pathname:$e.path})}})})),Qe=await ut,We=(await De).reduce(($e,Ot)=>Object.assign($e,Ot),{});return await Promise.all([QH(pe,Qe,Be.signal,Xe,ae.loaderData),ZH(pe,We,Ee)]),{loaderResults:Qe,fetcherResults:We}}function Qn(){q=!0,re.push(...Di()),ve.forEach((ae,pe)=>{W.has(pe)&&(Q.add(pe),Qr(pe))})}function Ln(ae,pe,_e){_e===void 0&&(_e={}),k.fetchers.set(ae,pe),Te({fetchers:new Map(k.fetchers)},{flushSync:(_e&&_e.flushSync)===!0})}function rr(ae,pe,_e,Ee){Ee===void 0&&(Ee={});let Be=Qf(k.matches,pe);qt(ae),Te({errors:{[Be.route.id]:_e},fetchers:new Map(k.fetchers)},{flushSync:(Ee&&Ee.flushSync)===!0})}function mo(ae){return w.v7_fetcherPersist&&(ye.set(ae,(ye.get(ae)||0)+1),ce.has(ae)&&ce.delete(ae)),k.fetchers.get(ae)||NH}function qt(ae){let pe=k.fetchers.get(ae);W.has(ae)&&!(pe&&pe.state==="loading"&&ne.has(ae))&&Qr(ae),ve.delete(ae),ne.delete(ae),se.delete(ae),ce.delete(ae),Q.delete(ae),k.fetchers.delete(ae)}function yo(ae){if(w.v7_fetcherPersist){let pe=(ye.get(ae)||0)-1;pe<=0?(ye.delete(ae),ce.add(ae)):ye.set(ae,pe)}else qt(ae);Te({fetchers:new Map(k.fetchers)})}function Qr(ae){let pe=W.get(ae);Ct(pe,"Expected fetch controller: "+ae),pe.abort(),W.delete(ae)}function Cl(ae){for(let pe of ae){let _e=mo(pe),Ee=Ks(_e.data);k.fetchers.set(pe,Ee)}}function da(){let ae=[],pe=!1;for(let _e of se){let Ee=k.fetchers.get(_e);Ct(Ee,"Expected fetcher: "+_e),Ee.state==="loading"&&(se.delete(_e),ae.push(_e),pe=!0)}return Cl(ae),pe}function Sn(ae){let pe=[];for(let[_e,Ee]of ne)if(Ee0}function Pl(ae,pe){let _e=k.blockers.get(ae)||D0;return oe.get(ae)!==pe&&oe.set(ae,pe),_e}function Ka(ae){k.blockers.delete(ae),oe.delete(ae)}function sn(ae,pe){let _e=k.blockers.get(ae)||D0;Ct(_e.state==="unblocked"&&pe.state==="blocked"||_e.state==="blocked"&&pe.state==="blocked"||_e.state==="blocked"&&pe.state==="proceeding"||_e.state==="blocked"&&pe.state==="unblocked"||_e.state==="proceeding"&&pe.state==="unblocked","Invalid blocker state transition: "+_e.state+" -> "+pe.state);let Ee=new Map(k.blockers);Ee.set(ae,pe),Te({blockers:Ee})}function Li(ae){let{currentLocation:pe,nextLocation:_e,historyAction:Ee}=ae;if(oe.size===0)return;oe.size>1&&Fp(!1,"A router only supports one blocker at a time");let Be=Array.from(oe.entries()),[Xe,ut]=Be[Be.length-1],De=k.blockers.get(Xe);if(!(De&&De.state==="proceeding")&&ut({currentLocation:pe,nextLocation:_e,historyAction:Ee}))return Xe}function fa(ae){let pe=ko(404,{pathname:ae}),_e=l||a,{matches:Ee,route:Be}=M6(_e);return Di(),{notFoundMatches:Ee,route:Be,error:pe}}function $r(ae,pe){return{boundaryId:Qf(pe.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:ae,message:pe.error!=null&&"message"in pe.error?pe.error:String(pe.error)})}}function Di(ae){let pe=[];return J.forEach((_e,Ee)=>{(!ae||ae(Ee))&&(_e.cancel(),pe.push(Ee),J.delete(Ee))}),pe}function Ts(ae,pe,_e){if(C=ae,f=pe,g=_e||null,!c&&k.navigation===B_){c=!0;let Ee=Fi(k.location,k.matches);Ee!=null&&Te({restoreScrollPosition:Ee})}return()=>{C=null,f=null,g=null}}function pa(ae,pe){return g&&g(ae,pe.map(Ee=>uH(Ee,k.loaderData)))||ae.key}function Dn(ae,pe){if(C&&f){let _e=pa(ae,pe);C[_e]=f()}}function Fi(ae,pe){if(C){let _e=pa(ae,pe),Ee=C[_e];if(typeof Ee=="number")return Ee}return null}function bo(ae,pe,_e){if(v){if(y.has(_e))return{active:!1,matches:ae};if(ae){if(Object.keys(ae[0].params).length>0)return{active:!0,matches:Sb(pe,_e,s,!0)}}else return{active:!0,matches:Sb(pe,_e,s,!0)||[]}}return{active:!1,matches:null}}async function ni(ae,pe,_e){let Ee=ae;for(;;){let Be=l==null,Xe=l||a;try{await jH(v,pe,Ee,Xe,i,o,ue,_e)}catch(Qe){return{type:"error",error:Qe,partialMatches:Ee}}finally{Be&&(a=[...a])}if(_e.aborted)return{type:"aborted"};let ut=Uc(Xe,pe,s);if(ut)return ha(pe,y),{type:"success",matches:ut};let De=Sb(Xe,pe,s,!0);if(!De||Ee.length===De.length&&Ee.every((Qe,We)=>Qe.route.id===De[We].route.id))return ha(pe,y),{type:"success",matches:null};Ee=De}}function ha(ae,pe){if(pe.size>=P){let _e=pe.values().next().value;pe.delete(_e)}pe.add(ae)}function Os(ae){i={},l=rv(ae,o,void 0,i)}function ga(ae,pe){let _e=l==null;VR(ae,pe,l||a,i,o),_e&&(a=[...a],Te({}))}return T={get basename(){return s},get future(){return w},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:xe,enableScrollRestoration:Ts,navigate:je,fetch:ir,revalidate:Ye,createHref:ae=>e.history.createHref(ae),encodeLocation:ae=>e.history.encodeLocation(ae),getFetcher:mo,deleteFetcher:yo,dispose:Re,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Os},T}function LH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function WS(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let w of t)if(s.push(w),w.route.id===a){d=w;break}}else s=t,d=t[t.length-1];let v=PP(o||".",CP(s,i),lh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!kP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function x6(e,t,r,n){if(!n||!LH(n))return{path:r};if(n.formMethod&&!XH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=BR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((b,P)=>{let[y,C]=P;return""+b+y+"="+C+` +`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Ct(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=$S(n.formData),d=n.formData;else if(n.body instanceof FormData)s=$S(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=T6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=T6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let w=zu(r);return t&&w.search&&kP(w.search)&&s.append("index",""),w.search="?"+s,{path:ad(w),submission:v}}function DH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function S6(e,t,r,n,o,i,a,l,s,d,v,w,S,b,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,g=e.createURL(t.location),f=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,h=c?DH(r,c):r,m=y?y[1].statusCode:void 0,_=a&&m&&m>=400,T=h.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(FH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return C6(R,Tr({currentUrl:g,currentParams:F.params,nextUrl:f,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l||g.pathname+g.search===f.pathname+f.search||g.search!==f.search||zR(F,V)}))}),k=[];return w.forEach((R,E)=>{if(i||!r.some(H=>H.route.id===R.routeId)||v.has(E))return;let A=Uc(b,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ig(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=C6(V,Tr({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function FH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function zR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function C6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function jH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,w)=>{l.aborted||VR(v,w,n,o,i)}}),a.set(s,d)),d&&KH(d)&&await d}finally{a.delete(s)}}function VR(e,t,r,n,o){if(e){var i;let a=n[e];Ct(a,"No route found to patch children into: routeId = "+e);let l=rv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=rv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function zH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Ct(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Fp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!lH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function VH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function BH(e,t,r,n,o,i,a,l,s,d){let v=i.map(b=>b.route.lazy?zH(b.route,s,l):void 0),w=i.map((b,P)=>{let y=v[P],C=o.some(f=>f.route.id===b.route.id);return Tr({},b,{shouldLoad:C,resolve:async f=>(f&&n.method==="GET"&&(b.route.lazy||b.route.loader)&&(C=!0),C?UH(t,n,b,y,f,d):Promise.resolve({type:tr.data,result:void 0}))})}),S=await e({matches:w,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function UH(e,t,r,n,o,i){let a,l,s=d=>{let v,w=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),b=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([b,w])};try{let d=r.route[e];if(n)if(d){let v,[w]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=w}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),w=v.pathname+v.search;throw ko(405,{method:t.method,pathname:w,routeId:r.route.id})}else return{type:tr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),w=v.pathname+v.search;throw ko(404,{pathname:w})}Ct(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:tr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function HH(e){let{result:t,type:r}=e;if(UR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:tr.error,error:v}}return r===tr.error?{type:tr.error,error:new P1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:tr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===tr.error){if(R6(t)){var n;if(t.data instanceof Error){var o;return{type:tr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new P1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:tr.error,error:t,statusCode:Bv(t)?t.status:void 0}}if(YH(t)){var i,a;return{type:tr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(R6(t)){var l,s;return{type:tr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:tr.data,data:t}}function WH(e,t,r,n,o,i){let a=e.headers.get("Location");if(Ct(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!TP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=WS(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function P6(e,t,r){if(TP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=lh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(BR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=$S(n.formData):i.body=n.formData}return new Request(o,i)}function $S(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function T6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function $H(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(w=>{if(!(w.route.id in t))return;let S=w.route.id,b=t[S];if(Ct(!Gc(b),"Cannot handle redirect results in processLoaderData"),wi(b)){let P=b.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Qf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Bv(b.error)?b.error.status:500),b.headers&&(d[S]=b.headers)}else su(b)?(n.set(S,b.deferredData),i[S]=b.deferredData.data,b.statusCode!=null&&b.statusCode!==200&&!s&&(l=b.statusCode),b.headers&&(d[S]=b.headers)):(i[S]=b.data,b.statusCode&&b.statusCode!==200&&!s&&(l=b.statusCode),b.headers&&(d[S]=b.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function O6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=$H(t,n,o,l);return i.forEach(v=>{let{key:w,match:S,controller:b}=v,P=a[w];if(Ct(P,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(wi(P)){let y=Qf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(w)}else if(Gc(P))Ct(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Ct(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(w,y)}}),{loaderData:s,errors:d}}function k6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function E6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Qf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function M6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new P1(e||500,l,new Error(s),!0)}function Ey(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function BR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function GH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function KH(e){return typeof e=="object"&&e!=null&&"then"in e}function qH(e){return UR(e.result)&&MH.has(e.result.status)}function su(e){return e.type===tr.deferred}function wi(e){return e.type===tr.error}function Gc(e){return(e&&e.type)===tr.redirect}function R6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function YH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function UR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XH(e){return EH.has(e.toLowerCase())}function Ea(e){return OH.has(e.toLowerCase())}async function QH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),w=v!=null&&!zR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&w&&await OP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function ZH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Ct(a,"Expected an AbortController for revalidating fetcher deferred result"),await OP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function OP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:tr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:tr.error,error:o}}return{type:tr.data,data:e.deferredData.data}}}function kP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ig(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&kP(r||""))return e[e.length-1];let n=DR(e);return n[n.length-1]}function N6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function U_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function JH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function F0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eW(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tW(e,t){try{let r=e.sessionStorage.getItem(jR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function rW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(jR,JSON.stringify(r))}catch(n){Fp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function T1(){return T1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),X.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let w=PP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(w.pathname=w.pathname==="/"?t:ts([t,w.pathname])),(v.replace?n.replace:n.push)(w,v.state,v)},[t,n,a,i,e])}function GR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=X.useContext(bd),{matches:o}=X.useContext(wd),{pathname:i}=Xw(),a=JSON.stringify(CP(o,n.v7_relativeSplatPath));return X.useMemo(()=>PP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function aW(e,t,r,n){Uv()||Ct(!1);let{navigator:o}=X.useContext(bd),{matches:i}=X.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Xw(),v;v=d;let w=v.pathname||"/",S=w;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=Uc(e,{pathname:S});return dW(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function lW(){let e=XR(),t=Bv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},t),r?X.createElement("pre",{style:o},r):null,null)}const sW=X.createElement(lW,null);class uW extends X.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?X.createElement(wd.Provider,{value:this.props.routeContext},X.createElement(WR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cW(e){let{routeContext:t,match:r,children:n}=e,o=X.useContext(Yw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),X.createElement(wd.Provider,{value:t},n)}function dW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(w=>w.route.id&&(l==null?void 0:l[w.route.id])!==void 0);v>=0||Ct(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,w,S)=>{let b,P=!1,y=null,C=null;r&&(b=l&&w.route.id?l[w.route.id]:void 0,y=w.route.errorElement||sW,s&&(d<0&&S===0?(vW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=w.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,S+1)),f=()=>{let c;return b?c=y:P?c=C:w.route.Component?c=X.createElement(w.route.Component,null):w.route.element?c=w.route.element:c=v,X.createElement(cW,{match:w,routeContext:{outlet:v,matches:g,isDataRoute:r!=null},children:c})};return r&&(w.route.ErrorBoundary||w.route.errorElement||S===0)?X.createElement(uW,{location:r.location,revalidation:r.revalidation,component:y,error:b,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()},null)}var KR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(KR||{}),qR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(qR||{});function fW(e){let t=X.useContext(Yw);return t||Ct(!1),t}function pW(e){let t=X.useContext(HR);return t||Ct(!1),t}function hW(e){let t=X.useContext(wd);return t||Ct(!1),t}function YR(e){let t=hW(),r=t.matches[t.matches.length-1];return r.route.id||Ct(!1),r.route.id}function XR(){var e;let t=X.useContext(WR),r=pW(qR.UseRouteError),n=YR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function gW(){let{router:e}=fW(KR.UseNavigateStable),t=YR(),r=X.useRef(!1);return $R(()=>{r.current=!0}),X.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,T1({fromRouteId:t},i)))},[e,t])}const A6={};function vW(e,t,r){A6[e]||(A6[e]=!0)}function GS(e){Ct(!1)}function mW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Uv()&&Ct(!1);let s=t.replace(/^\/*/,"/"),d=X.useMemo(()=>({basename:s,navigator:i,static:a,future:T1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:w="",hash:S="",state:b=null,key:P="default"}=n,y=X.useMemo(()=>{let C=lh(v,s);return C==null?null:{location:{pathname:C,search:w,hash:S,state:b,key:P},navigationType:o}},[s,v,w,S,b,P,o]);return y==null?null:X.createElement(bd.Provider,{value:d},X.createElement(EP.Provider,{children:r,value:y}))}new Promise(()=>{});function KS(e,t){t===void 0&&(t=[]);let r=[];return X.Children.forEach(e,(n,o)=>{if(!X.isValidElement(n))return;let i=[...t,o];if(n.type===X.Fragment){r.push.apply(r,KS(n.props.children,i));return}n.type!==GS&&Ct(!1),!n.props.index||!n.props.children||Ct(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=KS(n.props.children,i)),r.push(a)}),r}function yW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:X.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:X.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:X.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function wW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _W(e,t){return e.button===0&&(!t||t==="_self")&&!wW(e)}const xW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],SW="6";try{window.__reactRouterVersion=SW}catch{}function CW(e,t){return IH({basename:t==null?void 0:t.basename,future:nv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:oH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||PW(),routes:e,mapRouteProperties:yW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function PW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=nv({},t,{errors:TW(t.errors)})),t}function TW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new P1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const OW=X.createContext({isTransitioning:!1}),kW=X.createContext(new Map),EW="startTransition",I6=Qx[EW],MW="flushSync",L6=nH[MW];function RW(e){I6?I6(e):e()}function j0(e){L6?L6(e):e()}class NW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function AW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=X.useState(r.state),[a,l]=X.useState(),[s,d]=X.useState({isTransitioning:!1}),[v,w]=X.useState(),[S,b]=X.useState(),[P,y]=X.useState(),C=X.useRef(new Map),{v7_startTransition:g}=n||{},f=X.useCallback(k=>{g?RW(k):k()},[g]),c=X.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,H)=>{B.data!==void 0&&C.current.set(H,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?j0(()=>i(k)):f(()=>i(k));return}if(A){j0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{j0(()=>i(k))});B.finished.finally(()=>{j0(()=>{w(void 0),b(void 0),l(void 0),d({isTransitioning:!1})})}),j0(()=>b(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,f]);X.useLayoutEffect(()=>r.subscribe(c),[r,c]),X.useEffect(()=>{s.isTransitioning&&!s.flushSync&&w(new NW)},[s]),X.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{f(()=>i(k)),await R});E.finished.finally(()=>{w(void 0),b(void 0),l(void 0),d({isTransitioning:!1})}),b(E)}},[f,a,v,r.window]),X.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),X.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),X.useEffect(()=>{},[]);let h=X.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",_=X.useMemo(()=>({router:r,navigator:h,static:!1,basename:m}),[r,h,m]),T=X.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return X.createElement(X.Fragment,null,X.createElement(Yw.Provider,{value:_},X.createElement(HR.Provider,{value:o},X.createElement(kW.Provider,{value:C.current},X.createElement(OW.Provider,{value:s},X.createElement(mW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:h,future:T},o.initialized||r.future.v7_partialHydration?X.createElement(IW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const IW=X.memo(LW);function LW(e){let{routes:t,future:r,state:n}=e;return aW(t,void 0,n,r)}const DW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O1=X.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:w}=t,S=bW(t,xW),{basename:b}=X.useContext(bd),P,y=!1;if(typeof d=="string"&&FW.test(d)&&(P=d,DW))try{let c=new URL(window.location.href),h=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=lh(h.pathname,b);h.origin===c.origin&&m!=null?d=m+h.search+h.hash:y=!0}catch{}let C=nW(d,{relative:o}),g=jW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:w});function f(c){n&&n(c),c.defaultPrevented||g(c)}return X.createElement("a",nv({},S,{href:P||C,onClick:y||i?n:f,ref:r,target:s}))});var D6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D6||(D6={}));var F6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(F6||(F6={}));function jW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=oW(),d=Xw(),v=GR(e,{relative:a});return X.useCallback(w=>{if(_W(w,r)){w.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var QR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j6=Or.createContext&&Or.createContext(QR),zW=["attr","size","title"];function VW(e,t){if(e==null)return{};var r=BW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,E1({key:r},t.attr),ZR(t.child)))}function Qw(e){return t=>Or.createElement($W,k1({attr:E1({},e.attr)},t),ZR(e.child))}function $W(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=VW(e,zW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",k1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:E1(E1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return j6!==void 0?Or.createElement(j6.Consumer,null,r=>t(r)):t(QR)}function GW(e){return Qw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function KW(e){return Qw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function qW(e){return Qw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function V6(e){return Fe.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:Fe.jsxs(O1,{to:e.path,children:[Fe.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function YW(){return Fe.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[Fe.jsx(O1,{to:"/",children:Fe.jsx("div",{className:"sideMenu-header",children:Fe.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),Fe.jsx("br",{}),Fe.jsx("nav",{children:Fe.jsxs("ul",{children:[Fe.jsx(V6,{icon:GW,label:"Home",path:"/"},"Home"),Fe.jsx(V6,{icon:qW,label:"Map",path:"/map"},"Map")]})}),Fe.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:Fe.jsxs(O1,{to:"/tos",className:"inline-",children:[Fe.jsx(KW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function XW({children:e}){return Fe.jsxs("div",{className:"bg-black",children:[Fe.jsx(YW,{}),Fe.jsx("div",{className:"ml-40 pl-2",children:e})]})}var QW={},JR={},e7={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function e$(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,w=new Array(d);vC.length)&&(g=C.length);for(var f=0,c=new Array(g);fc.length)&&(h=c.length);for(var m=0,_=new Array(h);mf.length)&&(c=f.length);for(var h=0,m=new Array(c);hT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rh.length)&&(m=h.length);for(var _=0,T=new Array(m);_g.length)&&(f=g.length);for(var c=0,h=new Array(f);cm.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function i(m){if(Array.isArray(m))return o(m)}function a(m){return m&&m.__esModule?m:{default:m}}function l(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(m){return i(m)||l(m)||v(m)||s()}function v(m,_){if(m){if(typeof m=="string")return o(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(m,_)}}var w=["white"].concat(d(n.propTypesColors)),S=r.default.bool,b=r.default.bool,P=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],C=r.default.string,g=r.default.node,f=r.default.node.isRequired,c=r.default.instanceOf(Object),h=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(HP);var ZN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(ZN);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,s){for(var d in s)Object.defineProperty(l,d,{enumerable:!0,get:s[d]})}t(e,{badge:function(){return i},default:function(){return a}});var r=HP,n=o(ZN);function o(l){return l&&l.__esModule?l:{default:l}}var i={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},a=i})(QN);var JN={},WP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{propTypesCount:function(){return w},propTypesValue:function(){return S},propTypesRatedIcon:function(){return b},propTypesUnratedIcon:function(){return P},propTypesColor:function(){return y},propTypesOnChange:function(){return C},propTypesClassName:function(){return g},propTypesReadonly:function(){return f}});var r=a(nt),n=br;function o(c,h){(h==null||h>c.length)&&(h=c.length);for(var m=0,_=new Array(h);mb.length)&&(P=b.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var g=0,f=new Array(C);g"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(SA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return w},useTheme:function(){return S}});var r=d(X),n=l(nt),o=l(Xn),i=l(RP),a=l(SA);function l(b){return b&&b.__esModule?b:{default:b}}function s(b){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(b)}function d(b,P){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var y=s(P);if(y&&y.has(b))return y.get(b);var C={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in b)if(f!=="default"&&Object.prototype.hasOwnProperty.call(b,f)){var c=g?Object.getOwnPropertyDescriptor(b,f):null;c&&(c.get||c.set)?Object.defineProperty(C,f,c):C[f]=b[f]}return C.default=b,y&&y.set(b,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function w(b){var P=b.value,y=P===void 0?i.default:P,C=b.children,g=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:g},C)}var S=function(){return(0,r.useContext)(v)};w.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(qe);var Jw={},$v={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,b){for(var P in b)Object.defineProperty(S,P,{enumerable:!0,get:b[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return w}});var r=o(nt),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,w=r.default.node.isRequired})($v);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(X),n=$v;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(Jw);var CA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=w(X),n=w(pt),o=Ze,i=w(Je),a=Jw,l=qe,s=$v;function d(C,g,f){return g in C?Object.defineProperty(C,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):C[g]=f,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.className,c=C.children,h=S(C,["className","children"]),m=(0,a.useAccordion)(),_=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;f=f??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),_)),f),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},h,{ref:g,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(CA);var PA={},An={},QS=function(e,t){return QS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},QS(e,t)};function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");QS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var R1=function(){return R1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function kA(e,t){return function(r,n){t(r,n,e)}}function R$(e,t,r,n,o,i){function a(g){if(g!==void 0&&typeof g!="function")throw new TypeError("Function expected");return g}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),w,S=!1,b=r.length-1;b>=0;b--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(g){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(g||null))};var C=(0,r[b])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(w=a(C.get))&&(v.get=w),(w=a(C.set))&&(v.set=w),(w=a(C.init))&&o.unshift(w)}else(w=a(C))&&(l==="field"?o.unshift(w):v[s]=w)}d&&Object.defineProperty(d,n.name,v),S=!0}function N$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function KP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function AA(){for(var e=[],t=0;t1||s(b,y)})},P&&(o[b]=P(o[b])))}function s(b,P){try{d(n[b](P))}catch(y){S(i[0][3],y)}}function d(b){b.value instanceof zp?Promise.resolve(b.value.v).then(v,w):S(i[0][2],b)}function v(b){s("next",b)}function w(b){s("throw",b)}function S(b,P){b(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function FA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:zp(e[o](a)),done:!1}:i?i(a):a}:i}}function jA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof N1=="function"?N1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function zA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var L$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function VA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&e2(t,e,r);return L$(t,e),t}function BA(e){return e&&e.__esModule?e:{default:e}}function UA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function HA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function WA(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function $A(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var D$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function GA(e){function t(i){e.error=e.hasError?new D$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const F$={__extends:TA,__assign:R1,__rest:uh,__decorate:OA,__param:kA,__metadata:EA,__awaiter:MA,__generator:RA,__createBinding:e2,__exportStar:NA,__values:N1,__read:KP,__spread:AA,__spreadArrays:IA,__spreadArray:LA,__await:zp,__asyncGenerator:DA,__asyncDelegator:FA,__asyncValues:jA,__makeTemplateObject:zA,__importStar:VA,__importDefault:BA,__classPrivateFieldGet:UA,__classPrivateFieldSet:HA,__classPrivateFieldIn:WA,__addDisposableResource:$A,__disposeResources:GA},j$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:$A,get __assign(){return R1},__asyncDelegator:FA,__asyncGenerator:DA,__asyncValues:jA,__await:zp,__awaiter:MA,__classPrivateFieldGet:UA,__classPrivateFieldIn:WA,__classPrivateFieldSet:HA,__createBinding:e2,__decorate:OA,__disposeResources:GA,__esDecorate:R$,__exportStar:NA,__extends:TA,__generator:RA,__importDefault:BA,__importStar:VA,__makeTemplateObject:zA,__metadata:EA,__param:kA,__propKey:A$,__read:KP,__rest:uh,__runInitializers:N$,__setFunctionName:I$,__spread:AA,__spreadArray:LA,__spreadArrays:IA,__values:N1,default:F$},Symbol.toStringTag,{value:"Module"})),KA=Lv(j$);var qA={exports:{}},Ft={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gv=Symbol.for("react.element"),z$=Symbol.for("react.portal"),V$=Symbol.for("react.fragment"),B$=Symbol.for("react.strict_mode"),U$=Symbol.for("react.profiler"),H$=Symbol.for("react.provider"),W$=Symbol.for("react.context"),$$=Symbol.for("react.forward_ref"),G$=Symbol.for("react.suspense"),K$=Symbol.for("react.memo"),q$=Symbol.for("react.lazy"),$6=Symbol.iterator;function Y$(e){return e===null||typeof e!="object"?null:(e=$6&&e[$6]||e["@@iterator"],typeof e=="function"?e:null)}var YA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XA=Object.assign,QA={};function ch(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}ch.prototype.isReactComponent={};ch.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ch.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=ch.prototype;function qP(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}var YP=qP.prototype=new ZA;YP.constructor=qP;XA(YP,ch.prototype);YP.isPureReactComponent=!0;var G6=Array.isArray,JA=Object.prototype.hasOwnProperty,XP={current:null},eI={key:!0,ref:!0,__self:!0,__source:!0};function tI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)JA.call(t,n)&&!eI.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Sg=e=>e%1?Number(e.toFixed(5)):e,iv=/(-)?([\d]*\.?[\d])+/g,ZS=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,nG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Kv(e){return typeof e=="string"}const qv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ZP=Object.assign(Object.assign({},qv),{transform:oI(0,1)}),oG=Object.assign(Object.assign({},qv),{default:1}),Yv=e=>({test:t=>Kv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),iG=Yv("deg"),bp=Yv("%"),aG=Yv("px"),lG=Yv("vh"),sG=Yv("vw"),uG=Object.assign(Object.assign({},bp),{parse:e=>bp.parse(e)/100,transform:e=>bp.transform(e*100)}),JP=(e,t)=>r=>!!(Kv(r)&&nG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iI=(e,t,r)=>n=>{if(!Kv(n))return n;const[o,i,a,l]=n.match(iv);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},ag={test:JP("hsl","hue"),parse:iI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bp.transform(Sg(t))+", "+bp.transform(Sg(r))+", "+Sg(ZP.transform(n))+")"},cG=oI(0,255),Ob=Object.assign(Object.assign({},qv),{transform:e=>Math.round(cG(e))}),Zf={test:JP("rgb","red"),parse:iI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ob.transform(e)+", "+Ob.transform(t)+", "+Ob.transform(r)+", "+Sg(ZP.transform(n))+")"};function dG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const JS={test:JP("#"),parse:dG,transform:Zf.transform},e3={test:e=>Zf.test(e)||JS.test(e)||ag.test(e),parse:e=>Zf.test(e)?Zf.parse(e):ag.test(e)?ag.parse(e):JS.parse(e),transform:e=>Kv(e)?e:e.hasOwnProperty("red")?Zf.transform(e):ag.transform(e)},aI="${c}",lI="${n}";function fG(e){var t,r,n,o;return isNaN(e)&&Kv(e)&&((r=(t=e.match(iv))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(ZS))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function sI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(ZS);n&&(r=n.length,e=e.replace(ZS,aI),t.push(...n.map(e3.parse)));const o=e.match(iv);return o&&(e=e.replace(iv,lI),t.push(...o.map(qv.parse))),{values:t,numColors:r,tokenised:e}}function uI(e){return sI(e).values}function cI(e){const{values:t,numColors:r,tokenised:n}=sI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function hG(e){const t=uI(e);return cI(e)(t.map(pG))}const dI={test:fG,parse:uI,createTransformer:cI,getAnimatableNone:hG},gG=new Set(["brightness","contrast","saturate","opacity"]);function vG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(iv)||[];if(!n)return e;const o=r.replace(n,"");let i=gG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const mG=/([a-z-]*)\(.*?\)/g,yG=Object.assign(Object.assign({},dI),{getAnimatableNone:e=>{const t=e.match(mG);return t?t.map(vG).join(" "):e}});bn.alpha=ZP;bn.color=e3;bn.complex=dI;bn.degrees=iG;bn.filter=yG;bn.hex=JS;bn.hsla=ag;bn.number=qv;bn.percent=bp;bn.progressPercentage=uG;bn.px=aG;bn.rgbUnit=Ob;bn.rgba=Zf;bn.scale=oG;bn.vh=lG;bn.vw=sG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const fI=1/60*1e3,bG=typeof performance<"u"?()=>performance.now():()=>Date.now(),pI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bG()),fI);function wG(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const w=v&&o,S=w?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),w&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=wG(()=>av=!0),e),{}),xG=Xv.reduce((e,t)=>{const r=t2[t];return e[t]=(n,o=!1,i=!1)=>(av||TG(),r.schedule(n,o,i)),e},{}),SG=Xv.reduce((e,t)=>(e[t]=t2[t].cancel,e),{}),CG=Xv.reduce((e,t)=>(e[t]=()=>t2[t].process(wp),e),{}),PG=e=>t2[e].process(wp),hI=e=>{av=!1,wp.delta=eC?fI:Math.max(Math.min(e-wp.timestamp,_G),1),wp.timestamp=e,tC=!0,Xv.forEach(PG),tC=!1,av&&(eC=!1,pI(hI))},TG=()=>{av=!0,eC=!0,tC||pI(hI)},OG=()=>wp;Cd.cancelSync=SG;Cd.default=xG;Cd.flushSync=CG;Cd.getFrameData=OG;Object.defineProperty(lt,"__esModule",{value:!0});var gI=KA,Vp=nI,Aa=bn,r2=Cd;function kG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var EG=kG(r2);const lv=(e,t,r)=>Math.min(Math.max(r,e),t),W_=.001,MG=.01,q6=10,RG=.05,NG=1;function AG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Vp.warning(e<=q6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=lv(RG,NG,a),e=lv(MG,q6,e/1e3),a<1?(o=d=>{const v=d*a,w=v*e,S=v-r,b=rC(d,a),P=Math.exp(-w);return W_-S/b*P},i=d=>{const w=d*a*e,S=w*r+r,b=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-w),y=rC(Math.pow(d,2),a);return(-o(d)+W_>0?-1:1)*((S-b)*P)/y}):(o=d=>{const v=Math.exp(-d*e),w=(d-r)*e+1;return-W_+v*w},i=d=>{const v=Math.exp(-d*e),w=(r-d)*(e*e);return v*w});const l=5/e,s=LG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const IG=12;function LG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function jG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Y6(e,FG)&&Y6(e,DG)){const r=AG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function n2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=gI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:w,isResolvedFromDuration:S}=jG(i),b=X6,P=X6;function y(){const C=v?-(v/1e3):0,g=r-t,f=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),f<1){const h=rC(c,f);b=m=>{const _=Math.exp(-f*c*m);return r-_*((C+f*c*g)/h*Math.sin(h*m)+g*Math.cos(h*m))},P=m=>{const _=Math.exp(-f*c*m);return f*c*_*(Math.sin(h*m)*(C+f*c*g)/h+g*Math.cos(h*m))-_*(Math.cos(h*m)*(C+f*c*g)-h*g*Math.sin(h*m))}}else if(f===1)b=h=>r-Math.exp(-c*h)*(g+(C+c*g)*h);else{const h=c*Math.sqrt(f*f-1);b=m=>{const _=Math.exp(-f*c*m),T=Math.min(h*m,300);return r-_*((C+f*c*g)*Math.sinh(T)+h*g*Math.cosh(T))/h}}}return y(),{next:C=>{const g=b(C);if(S)a.done=C>=w;else{const f=P(C)*1e3,c=Math.abs(f)<=n,h=Math.abs(r-g)<=o;a.done=c&&h}return a.value=a.done?r:g,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}n2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const X6=e=>0,t3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},o2=(e,t,r)=>-r*e+r*t+e;function $_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Q6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=$_(s,l,e+1/3),i=$_(s,l,e),a=$_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const zG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},VG=[Aa.hex,Aa.rgba,Aa.hsla],Z6=e=>VG.find(t=>t.test(e)),J6=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,r3=(e,t)=>{let r=Z6(e),n=Z6(t);Vp.invariant(!!r,J6(e)),Vp.invariant(!!n,J6(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Q6(o),r=Aa.rgba),n===Aa.hsla&&(i=Q6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=zG(o[s],i[s],l));return a.alpha=o2(o.alpha,i.alpha,l),r.transform(a)}},BG={x:0,y:0,z:0},nC=e=>typeof e=="number",UG=(e,t)=>r=>t(e(r)),n3=(...e)=>e.reduce(UG);function vI(e,t){return nC(e)?r=>o2(e,t,r):Aa.color.test(e)?r3(e,t):o3(e,t)}const mI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>vI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=vI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function ek(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=ek(e),o=ek(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?n3(mI(n.parsed,o.parsed),r):(Vp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},WG=(e,t)=>r=>o2(e,t,r);function $G(e){if(typeof e=="number")return WG;if(typeof e=="string")return Aa.color.test(e)?r3:o3;if(Array.isArray(e))return mI;if(typeof e=="object")return HG}function GG(e,t,r){const n=[],o=r||$G(e[0]),i=e.length-1;for(let a=0;ar(t3(e,t,n))}function qG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=t3(e[i],e[i+1],o);return t[i](l)}}function i3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Vp.invariant(i===t.length,"Both input and output ranges must be the same length"),Vp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=GG(t,n,o),l=i===2?KG(e,a):qG(e,a);return r?s=>l(lv(e[0],e[i-1],s)):l}const Qv=e=>t=>1-e(1-t),i2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yI=e=>t=>Math.pow(t,e),a3=e=>t=>t*t*((e+1)*t-e),bI=e=>{const t=a3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},wI=1.525,YG=4/11,XG=8/11,QG=9/10,_I=e=>e,l3=yI(2),ZG=Qv(l3),xI=i2(l3),SI=e=>1-Math.sin(Math.acos(e)),CI=Qv(SI),JG=i2(CI),s3=a3(wI),eK=Qv(s3),tK=i2(s3),rK=bI(wI),nK=4356/361,oK=35442/1805,iK=16061/1805,A1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-A1(1-e*2)):.5*A1(e*2-1)+.5;function sK(e,t){return e.map(()=>t||xI).splice(0,e.length-1)}function uK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function cK(e,t){return e.map(r=>r*t)}function Cg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=cK(n&&n.length===a.length?n:uK(a),o);function s(){return i3(l,a,{ease:Array.isArray(r)?r:sK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function PI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const w=-l*Math.exp(-v/n);return a.done=!(w>o||w<-o),a.value=a.done?d:d+w,a},flipTarget:()=>{}}}const tk={keyframes:Cg,spring:n2,decay:PI};function dK(e){if(Array.isArray(e.to))return Cg;if(tk[e.type])return tk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Cg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?n2:Cg}function TI(e,t,r=0){return e-t-r}function fK(e,t,r=0,n=!0){return n?TI(t+-e,t,r):t-(e-t)+r}function pK(e,t,r,n){return n?e>=t+r:e<=-r}const hK=e=>{const t=({delta:r})=>e(r);return{start:()=>EG.default.update(t,!0),stop:()=>r2.cancelSync.update(t)}};function OI(e){var t,r,{from:n,autoplay:o=!0,driver:i=hK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:w,onComplete:S,onRepeat:b,onUpdate:P}=e,y=gI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,g,f=0,c=y.duration,h,m=!1,_=!0,T;const k=dK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=i3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){f++,s==="reverse"?(_=f%2===0,a=fK(a,c,d,_)):(a=TI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,b&&b()}function A(){g.stop(),S&&S()}function F(B){if(_||(B=-B),a+=B,!m){const H=R.next(Math.max(0,a));h=H.value,T&&(h=T(h)),m=_?H.done:a<=0}P==null||P(h),m&&(f===0&&(c??(c=a)),f{w==null||w(),g.stop()}}}function kI(e,t){return t?e*(1e3/t):0}function gK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:w,onComplete:S,onStop:b}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;w==null||w(h),(m=c.onUpdate)===null||m===void 0||m.call(c,h)},onComplete:S,onStop:b}))}function f(c){g(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))f({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const h=C(c),m=h===r?-1:1;let _,T;const k=R=>{_=T,T=R,t=kI(R-_,r2.getFrameData().delta),(m===1&&R>h||m===-1&&RP==null?void 0:P.stop()}}const EI=e=>e*180/Math.PI,vK=(e,t=BG)=>EI(Math.atan2(t.y-e.y,t.x-e.x)),mK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},yK=e=>e,u3=(e=yK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},bK=u3(),wK=u3(Math.sqrt),MI=e=>e*Math.PI/180,I1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),oC=e=>I1(e)&&e.hasOwnProperty("z"),Ry=(e,t)=>Math.abs(e-t);function _K(e,t){if(nC(e)&&nC(t))return Ry(e,t);if(I1(e)&&I1(t)){const r=Ry(e.x,t.x),n=Ry(e.y,t.y),o=oC(e)&&oC(t)?Ry(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const xK=(e,t,r)=>(t=MI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),RI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),NI=(e,t,r,n=0)=>RI(e+r*(t-e)/Math.max(n,r)),SK=(e=50)=>{let t=0,r=0;return n=>{const o=r2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?NI(t,n,i,e):t;return r=o,t=a,a}},CK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function PK(e,t){return e/(1e3/t)}const TK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},AI=(e,t)=>1-3*t+3*e,II=(e,t)=>3*t-6*e,LI=e=>3*e,L1=(e,t,r)=>((AI(t,r)*e+II(t,r))*e+LI(t))*e,DI=(e,t,r)=>3*AI(t,r)*e*e+2*II(t,r)*e+LI(t),OK=1e-7,kK=10;function EK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=L1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>OK&&++l=RK?NK(a,w,e,r):S===0?w:EK(a,l,l+Ny,e,r)}return a=>a===0||a===1?a:L1(i(a),t,n)}const IK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return lv(0,1,o/e)};lt.angle=vK;lt.animate=OI;lt.anticipate=rK;lt.applyOffset=mK;lt.attract=bK;lt.attractExpo=wK;lt.backIn=s3;lt.backInOut=tK;lt.backOut=eK;lt.bounceIn=aK;lt.bounceInOut=lK;lt.bounceOut=A1;lt.circIn=SI;lt.circInOut=JG;lt.circOut=CI;lt.clamp=lv;lt.createAnticipate=bI;lt.createAttractor=u3;lt.createBackIn=a3;lt.createExpoIn=yI;lt.cubicBezier=AK;lt.decay=PI;lt.degreesToRadians=MI;lt.distance=_K;lt.easeIn=l3;lt.easeInOut=xI;lt.easeOut=ZG;lt.inertia=gK;lt.interpolate=i3;lt.isPoint=I1;lt.isPoint3D=oC;lt.keyframes=Cg;lt.linear=_I;lt.mirrorEasing=i2;lt.mix=o2;lt.mixColor=r3;lt.mixComplex=o3;lt.pipe=n3;lt.pointFromVector=xK;lt.progress=t3;lt.radiansToDegrees=EI;lt.reverseEasing=Qv;lt.smooth=SK;lt.smoothFrame=NI;lt.snap=CK;lt.spring=n2;lt.steps=IK;lt.toDecimal=RI;lt.velocityPerFrame=PK;lt.velocityPerSecond=kI;lt.wrap=TK;class LK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const G_=new WeakMap;function c3(e){return G_.has(e)||G_.set(e,{transforms:[],values:new Map}),G_.get(e)}function DK(e,t){return e.has(t)||e.set(t,new LK),e.get(t)}function FI(e,t){e.indexOf(t)===-1&&e.push(t)}function jI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const zI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",sv=e=>Array.isArray(e)&&!ds(e[0]),FK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function VI(e,t){return sv(e)?e[FK(0,e.length,t)]:e}const d3=(e,t,r)=>-r*e+r*t+e,f3=()=>{},rs=e=>e,a2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function p3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=a2(0,t,n);e.push(d3(r,1,o))}}function h3(e){const t=[0];return p3(t,e-1),t}function BI(e,t=h3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&p3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),D1=e=>typeof e=="object"&&!!e.createAnimation,jK=e=>typeof e=="function",g3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function HI(e,t){return t?e*(1e3/t):0}const zK=["","X","Y","Z"],VK=["translate","scale","rotate","skew"],Bp={x:"translateX",y:"translateY",z:"translateZ"},rk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},BK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:rk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:rk},Up=new Map,l2=e=>`--motion-${e}`,F1=["x","y","z"];VK.forEach(e=>{zK.forEach(t=>{F1.push(e+t),Up.set(l2(e+t),BK[e])})});const UK=(e,t)=>F1.indexOf(e)-F1.indexOf(t),HK=new Set(F1),s2=e=>HK.has(e),WK=(e,t)=>{Bp[t]&&(t=Bp[t]);const{transforms:r}=c3(e);FI(r,t),e.style.transform=WI(r)},WI=e=>e.sort(UK).reduce($K,"").trim(),$K=(e,t)=>`${e} ${t}(var(${l2(t)}))`,iC=e=>e.startsWith("--"),nk=new Set;function GK(e){if(!nk.has(e)){nk.add(e);try{const{syntax:t,initialValue:r}=Up.has(e)?Up.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const $I=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,KK=1e-7,qK=12;function YK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=$I(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>KK&&++lYK(i,0,1,e,r);return i=>i===0||i===1?i:$I(o(i),t,n)}const XK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return zI(0,1,o/e)},QK={ease:lg(.25,.1,.25,1),"ease-in":lg(.42,0,1,1),"ease-in-out":lg(.42,0,.58,1),"ease-out":lg(0,0,.58,1)},ZK=/\((.*?)\)/;function aC(e){if(jK(e))return e;if(UI(e))return lg(...e);const t=QK[e];if(t)return t;if(e.startsWith("steps")){const r=ZK.exec(e);if(r){const n=r[1].split(",");return XK(parseFloat(n[0]),n[1].trim())}}return rs}let JK=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,b)=>{this.resolve=S,this.reject=b}),n=n||Go.easing,D1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=sv(n)?rs:aC(n),this.updateDuration(o);const w=BI(r,s,sv(n)?n.map(aC):rs);this.tick=S=>{var b;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),g=y%1;!g&&y>=1&&(g=1),g===1&&C--;const f=C%2;(d==="reverse"||d==="alternate"&&f||d==="alternate-reverse"&&!f)&&(g=1-g);const c=P>=this.totalDuration?1:Math.min(g,1),h=w(this.easing(c));t(h),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(b=this.resolve)===null||b===void 0||b.call(this,h)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ok=e=>UI(e)?eq(e):e,eq=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ik=e=>document.createElement("div").animate(e,{duration:.001}),ak={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ik({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ik({opacity:[0,1]}).finished},K_={},Eb={};for(const e in ak)Eb[e]=()=>(K_[e]===void 0&&(K_[e]=ak[e]()),K_[e]);function tq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function j1(e){return Bp[e]&&(e=Bp[e]),s2(e)?l2(e):e}const Jf={get:(e,t)=>{t=j1(t);let r=iC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Up.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=j1(t),iC(t)?e.style.setProperty(t,r):e.style[t]=r}};function KI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function rq(){return window.__MOTION_DEV_TOOLS_RECORD}function u2(e,t,r,n={}){const o=rq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:w=Go.easing,direction:S,offset:b,allowWebkitAcceleration:P=!1}=n;const y=c3(e);let C=Eb.waapi();const g=s2(t);g&&WK(e,t);const f=j1(t),c=DK(y.values,f),h=Up.get(f);return KI(c.animation,!(D1(w)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=Jf.get(e,f))!==null&&T!==void 0?T:h==null?void 0:h.initialValue)!==null&&k!==void 0?k:0};let _=tq(GI(r),m);if(D1(w)){const T=w.createAnimation(_,m,g,f,c);w=T.easing,T.keyframes!==void 0&&(_=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(iC(f)&&(Eb.cssRegisterProperty()?GK(f):C=!1),C){h&&(_=_.map(R=>ds(R)?h.toDefaultUnit(R):R)),_.length===1&&(!Eb.partialKeyframes()||i)&&_.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:sv(w)?void 0:ok(w),direction:S,iterations:v+1,fill:"both"};a=e.animate({[f]:_,offset:b,easing:sv(w)?w.map(ok):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=_[_.length-1];a.finished.then(()=>{Jf.set(e,f,k),a.cancel()}).catch(f3),P||(a.playbackRate=1.000001)}else if(g){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(m()));const T=k=>{h&&(k=h.toDefaultUnit(k)),Jf.set(e,f,k)};a=new JK(T,_,Object.assign(Object.assign({},n),{duration:l,easing:w}))}else{const T=_[_.length-1];Jf.set(e,f,h&&ds(T)?h.toDefaultUnit(T):T)}return i&&o(e,t,_,{duration:l,delay:s,easing:w,repeat:v,offset:b},"motion-one"),c.setAnimation(a),a}}const v3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function c2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const nq=e=>e(),m3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(nq).filter(Boolean),duration:r,options:t},iq),oq=e=>e.animations[0],iq={get:(e,t)=>{const r=oq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(aq)).catch(f3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>KI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function lq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:sq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=aC(n)(s/d)*d}return t+s}}function sq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function qI(e,t,r){return typeof e=="function"?e(t,r):e}function uq(e,t,r={}){e=c2(e);const n=e.length,o=[];for(let i=0;it&&o.atu2(...i)).filter(Boolean);return m3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function hq(e,t={}){var{defaultOptions:r={}}=t,n=uh(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let w=0;w"0",re);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=qI(y.delay,c,f)||0,V=d+F,B=V+E;let{offset:H=h3(k.length)}=R;H.length===1&&H[0]===0&&(H[1]=1);const q=length-k.length;q>0&&p3(H,q),k.length===1&&k.unshift(null),dq(T,k,A,H,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((w,S)=>{for(const b in w){const P=w[b];P.sort(fq);const y=[],C=[],g=[];for(let f=0;ft/(2*Math.sqrt(e*r));function bq(e,t,r){return e=t||e>t&&r<=t}const YI=({stiffness:e=_p.stiffness,damping:t=_p.damping,mass:r=_p.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,w=yq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let b;if(w<1){const P=v*Math.sqrt(1-w*w);b=y=>o-Math.exp(-w*v*y)*((-i+w*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else b=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=b(P);const y=P===0?i:y3(b,P,s.current),C=Math.abs(y)<=a,g=Math.abs(o-s.current)<=l;return s.done=C&&g,s.hasReachedTarget=bq(n,o,s.current),s}},wq=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const w={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,b=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),f=T=>C+g(T),c=T=>{const k=g(T),R=f(T);w.done=Math.abs(k)<=d,w.current=w.done?C:R};let h,m;const _=T=>{S(w.current)&&(h=T,m=YI({from:w.current,to:b(w.current),velocity:y3(f,T,w.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return _(0),T=>{let k=!1;return!m&&h===void 0&&(k=!0,c(T),_(T)),h!==void 0&&T>h?(w.hasReachedTarget=!0,m(T-h)):(w.hasReachedTarget=!1,!k&&c(T),w)}},q_=10,_q=1e4;function xq(e,t=rs){let r,n=q_,o=e(0);const i=[t(o.current)];for(;!o.done&&n<_q;)o=e(n),i.push(t(o.done?o.target:o.current)),r===void 0&&o.hasReachedTarget&&(r=n),n+=q_;const a=n-q_;return i.length===1&&i.push(o.current),{keyframes:i,duration:a/1e3,overshootDuration:(r??a)/1e3}}function XI(e){const t=new WeakMap;return(r={})=>{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,xq(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var w,S;let b;const P=a.length;if(s&&P<=2&&a.every(Sq)){const C=a[P-1],g=P===1?null:a[0];let f=0,c=0;const h=v==null?void 0:v.generator;if(h){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=h(E).current;c=(w=g)!==null&&w!==void 0?w:A,(P===1||P===2&&a[0]===null)&&(f=y3(F=>h(F).current,E,A))}else c=(S=g)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,f,d==null?void 0:d.includes("scale")),_=i(m);b=Object.assign(Object.assign({},_),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else b={easing:"ease",duration:i(o(0,100)).overshootDuration};return b}}}}const Sq=e=>typeof e!="string",Cq=XI(YI),Pq=XI(wq),Tq={any:0,all:1};function QI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=c2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const w=a.get(v.target);if(v.isIntersecting!==!!w)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else w&&(w(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Tq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Mb=new WeakMap;let qs;function Oq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function kq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Mb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return Oq(e,r)}})})}function Eq(e){e.forEach(kq)}function Mq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(Eq))}function Rq(e,t){qs||Mq();const r=c2(e);return r.forEach(n=>{let o=Mb.get(n);o||(o=new Set,Mb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Mb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Rb=new Set;let Pg;function Nq(){Pg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Rb.forEach(r=>r(t))},window.addEventListener("resize",Pg)}function Aq(e){return Rb.add(e),Pg||Nq(),()=>{Rb.delete(e),!Rb.size&&Pg&&(Pg=void 0)}}function ZI(e,t){return typeof e=="function"?Aq(e):Rq(e,t)}const Iq=50,sk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Lq=()=>({time:0,x:sk(),y:sk()}),Dq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function uk(e,t,r,n){const o=r[t],{length:i,position:a}=Dq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=a2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Iq?0:HI(o.current-l,d)}function Fq(e,t,r){uk(e,"x",t,r),uk(e,"y",t,r),t.time=r}function jq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const JI={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},lC={start:0,center:.5,end:1};function ck(e,t,r=0){let n=0;if(lC[e]!==void 0&&(e=lC[e]),g3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const zq=[0,0];function Vq(e,t,r,n){let o=Array.isArray(e)?e:zq,i=0,a=0;return ds(e)?o=[e,e]:g3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,lC[e]?e:"0"]),i=ck(o[0],r,n),a=ck(o[1],t),i-a}const Bq={x:0,y:0};function Uq(e,t,r){let{offset:n=JI.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?jq(o,e):Bq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const w=n.length;for(let S=0;SHq(e,n.target,r),update:i=>{Fq(e,r,i),(n.offset||n.target)&&Uq(e,r,n)},notify:typeof t=="function"?()=>t(r):$q(t,r[o])}}function $q(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const z0=new WeakMap,dk=new WeakMap,Y_=new WeakMap,fk=e=>e===document.documentElement?window:e;function Gq(e,t={}){var{container:r=document.documentElement}=t,n=uh(t,["container"]);let o=Y_.get(r);o||(o=new Set,Y_.set(r,o));const i=Lq(),a=Wq(r,e,i,n);if(o.add(a),!z0.has(r)){const d=()=>{const w=performance.now();for(const S of o)S.measure();for(const S of o)S.update(w);for(const S of o)S.notify()};z0.set(r,d);const v=fk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&dk.set(r,ZI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=z0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=Y_.get(r);if(!v||(v.delete(a),v.size))return;const w=z0.get(r);z0.delete(r),w&&(fk(r).removeEventListener("scroll",w),(d=dk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",w))}}function Kq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!qq(e,t):e!==t}function qq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),Jq=e=>e.animateUpdates(),hk=e=>e.next(),gk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function sC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function vk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const eY={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=uh(n,["once"]);return QI(e,a=>{if(t(),vk(e,"viewenter",a),!o)return l=>{r(),vk(e,"viewleave",l)}},i)}},mk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),sC(e,t,n))},tY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=mk(e,"hoverstart",t),o=mk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},rY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),sC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),sC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Nb={inView:eY,hover:tY,press:rY},yk=["initial","animate",...Object.keys(Nb),"exit"],uC=new WeakMap;function nY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of yk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=pk(e[l]||a[l],e.variants)||{},d=uh(s,["transition"]);const v=Object.assign({},d);function*w(){var y,C;const g=d;d={};const f={};for(const T of yk){if(!o[T])continue;const k=pk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],f[R]=v3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(g)]),h=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),Kq(g[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=Jf.get(r,T)),h.push(u2(r,T,d[T],f[T])))}),yield;const m=h.map(T=>T()).filter(Boolean);if(!m.length)return;const _=d;r.dispatchEvent(gk("motionstart",_)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(gk("motioncomplete",_))}).catch(f3)}const S=(y,C)=>()=>{o[y]=C,X_(P)},b=()=>{for(const y in Nb){const C=Nb[y].isActive(e),g=i[y];C&&!g?i[y]=Nb[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&g&&(g(),delete i[y])}},P={update:y=>{r&&(e=y,b(),X_(P))},setActive:(y,C)=>{r&&(o[y]=C,X_(P))},animateUpdates:w,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,uC.set(r,P),b(),()=>{uC.delete(r),Qq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function eL(e){const t={},r=[];for(let n in e){const o=e[n];s2(n)&&(Bp[n]&&(n=Bp[n]),r.push(n),n=l2(n));let i=Array.isArray(o)?o[0]:o;const a=Up.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=WI(r)),t}const oY=e=>`-${e.toLowerCase()}`,iY=e=>e.replace(/[A-Z]/g,oY);function aY(e={}){const t=eL(e);let r="";for(const n in t)r+=n.startsWith("--")?n:iY(n),r+=`: ${t[n]}; `;return r}const lY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:JI,animate:uq,animateStyle:u2,createMotionState:nY,createStyleString:aY,createStyles:eL,getAnimationData:c3,getStyleName:j1,glide:Pq,inView:QI,mountedStates:uC,resize:ZI,scroll:Gq,spring:Cq,stagger:lq,style:Jf,timeline:pq,withControls:m3},Symbol.toStringTag,{value:"Module"})),sY=Lv(lY);function uY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dY=uY(function(e){return cY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const fY=Object.freeze(Object.defineProperty({__proto__:null,default:dY},Symbol.toStringTag,{value:"Module"})),pY=Lv(fY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=KA,r=eG,n=nI,o=bn,i=lt,a=Cd,l=sY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),w=s(r),S=s(a),b=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:b(["layout","layoutId","drag"]),animation:b(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:b(["exit"]),drag:b(["drag","dragControls"]),focus:b(["whileFocus"]),hover:b(["whileHover","onHoverStart","onHoverEnd"]),tap:b(["whileTap","onTap","onTapStart","onTapCancel"]),pan:b(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:b(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),g=Object.keys(P),f=g.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Tt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var _t={};function ir(x){Object.assign(_t,x)}var Wt=["","X","Y","Z"],Lt=["translate","scale","rotate","skew"],Zt=["transformPerspective","x","y","z"];Lt.forEach(function(x){return Wt.forEach(function(M){return Zt.push(x+M)})});function Dr(x,M){return Zt.indexOf(x)-Zt.indexOf(M)}var ln=new Set(Zt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function rr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||rr(x)||(I||D!==void 0)&&(!!_t[x]||x==="opacity")}var qt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,U=G===void 0?!0:G,Z=M.allowTransformNone,ee=Z===void 0?!0:Z,ie="";$.sort(Dr);for(var de=!1,fe=$.length,ge=0;ge"u"?K5:Rh;ee(Z,U.current,M,G)}var G5={some:0,all:1};function Rh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,U=G===void 0?"some":G,Z=D.once;r.useEffect(function(){if(x){var ee={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof U=="number"?U:G5[U]},ie=function(de){var fe,ge=de.isIntersecting;if(M.isInView!==ge&&(M.isInView=ge,!(Z&&!ge&&M.hasEnteredView))){ge&&(M.hasEnteredView=!0),(fe=I.animationState)===null||fe===void 0||fe.setActive(e.AnimationType.InView,ge);var u=I.getProps(),p=ge?u.onViewportEnter:u.onViewportLeave;p==null||p(de)}};return Jr(I.getInstance(),ee,ie)}},[x,z,$,U])}function K5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var U=I.getProps().onViewportEnter;U==null||U(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Mh),tap:ii(H5),focus:ii(Ue),hover:ii(ym)},q5=0,Y5=function(){return q5++},jo=function(){return ue(Y5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Nh(r.useContext(T))}function Nh(x){return x===null?!0:x.isPresent}function Ah(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Et,he=Array.isArray(Ae)?Ae:[Ae],Pe=he.reduce($,{});bt===!1&&(Pe={});var Ve=ze.prevResolvedValues,et=Ve===void 0?{}:Ve,mt=t.__assign(t.__assign({},et),Pe),ct=function(rt){we=!0,O.delete(rt),ze.needsAnimating[rt]=!0};for(var vt in mt){var ft=Pe[vt],Ne=et[vt];N.hasOwnProperty(vt)||(ft!==Ne?yt(ft)&&yt(Ne)?!Ah(ft,Ne)||On?ct(vt):ze.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):ze.protectedKeys[vt]=!0)}ze.prevProp=Ae,ze.prevResolvedValues=Pe,ze.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(we=!1),we&&!Jt&&p.push.apply(p,t.__spreadArray([],t.__read(he.map(function(rt){return{animation:rt,options:t.__assign({type:Me},ie)}})),!1))},K=0;K=3;if(!(!ge&&!u)){var p=fe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},p),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;ge||(L&&L(z.lastMoveEvent,fe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,fe)}}},this.handlePointerMove=function(fe,ge){if(z.lastMoveEvent=fe,z.lastMoveEventInfo=Vo(ge,z.transformPagePoint),At(fe)&&fe.buttons===0){z.handlePointerUp(fe,ge);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(fe,ge){z.end();var u=z.handlers,p=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(ge,z.transformPagePoint),z.history);z.startEvent&&p&&p(fe,N),O&&O(fe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var U=wo(M),Z=Vo(U,this.transformPagePoint),ee=Z.point,ie=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},ee),{timestamp:ie})];var de=I.onSessionStart;de&&de(M,Ja(Z,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Tm(M)),velocity:fr(M,.1)}}function Tm(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Bh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Uh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Hh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function Om(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function km(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function Wh(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return Wh(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function $h(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Gh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var U,Z,ee=0;eeM?I="y":Math.abs(x.x)>M&&(I="x"),I}function J5(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new Q5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Am(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,U=r.useRef(null),Z=r.useContext(h).transformPagePoint,ee={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,fe){U.current=null,D&&D(de,fe)}};r.useEffect(function(){U.current!==null&&U.current.updateHandlers(ee)});function ie(de){U.current=new Nl(de,ee,{transformPagePoint:Z})}Ol($,"pointerdown",G&&ie),Ya(function(){return U.current&&U.current.end()})}var Yh={pan:ii(Am),drag:ii(J5)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,U=D[G];($=M[z])===null||$===void 0||$.call(M),U&&(M[z]=I[G](U))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,ee=zm(M,x,U);return $.length&&$.forEach(function(ie){var de=t.__read(ie,2),fe=de[0],ge=de[1];x.getValue(fe).set(ge)}),x.syncRender(),Z!==null&&window.scrollTo({top:Z}),{target:ee,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Bm(x,M,I,D){return Qh(M)?Vm(x,M,I,D):{target:M,transitionEnd:D}}var Um=function(x,M,I,D){var z=Xh(x,M,D);return M=z.target,D=z.transitionEnd,Bm(x,M,I,D)};function Hm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Hm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return qh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,U=t.__rest(M,["transition","transitionEnd"]),Z=Co(U,$||{},x);if(z&&(G&&(G=z(G)),U&&(U=z(U)),Z&&(Z=z(Z))),D){cc(x,U,Z);var ee=Um(x,U,Z,G);G=ee.transitionEnd,U=ee.target}return t.__assign({transition:$,transitionEnd:G},U)},scrapeMotionValuesFromProps:Ot,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Qe},Wm=uf(ff),t0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=We.has(M)?M:De(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Rt,build:function(x,M,I,D,z){pe(M,I,D,z.transformTemplate)},render:$e})),pf=function(x,M){return Tt(x)?t0(M,{enableHardwareAcceleration:!1}):Wm(M,{enableHardwareAcceleration:!0})};function r0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=r0(x,M.target.x),D=r0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",$m={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(p){return G.push(p),hf}));var U=o.complex.parse(x);if(U.length>5)return z;var Z=o.complex.createTransformer(x),ee=typeof U[0]!="number"?1:0,ie=D.x.scale*I.x,de=D.y.scale*I.y;U[0+ee]/=ie,U[1+ee]/=de;var fe=i.mix(ie,de,.5);typeof U[2+ee]=="number"&&(U[2+ee]/=fe),typeof U[3+ee]=="number"&&(U[3+ee]/=fe);var ge=Z(U);if($){var u=0;ge=ge.replace(hf,function(){var p=G[u];return u++,p})}return ge}},n0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,U=D.layoutId,Z=z.projection;ir(r_),Z&&($!=null&&$.group&&$.group.add(Z),G!=null&&G.register&&U&&G.register(Z),Z.root.didUpdate(),Z.addEventListener("animationComplete",function(){I.safeToRemove()}),Z.setOptions(t.__assign(t.__assign({},Z.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,U=z.drag,Z=z.isPresent,ee=G.projection;return ee&&(ee.isPresent=Z,U||I.layoutDependency!==$||$===void 0?ee.willUpdate():this.safeToRemove(),I.isPresent!==Z&&(Z?ee.promote():ee.relegate()||S.default.postRender(function(){var ie;!((ie=ee.getStack())===null||ie===void 0)&&ie.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(w.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(xe);return w.default.createElement(n0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Te),isPresent:I,safeToRemove:D}))}var r_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:$m},o0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=qt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var i0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=i0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Gm=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,U,Z,ee;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((U=M.opacity)!==null&&U!==void 0?U:1,0,Sc(D))):$&&(x.opacity=i.mix((Z=M.opacity)!==null&&Z!==void 0?Z:1,(ee=I.opacity)!==null&&ee!==void 0?ee:1,D));for(var ie=0;ieM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var U=i.mix(G.min,G.max,M/100);M=U-G.min}if(typeof M=="number"){var Z=i.mix($.min,$.max,D);x===$&&(Z-=M),x.min=Vs(x.min,M,I,Z,z),x.max=Vs(x.max,M,I,Z,z)}}function Km(x,M,I,D,z){var $=t.__read(I,3),G=$[0],U=$[1],Z=$[2];Tn(x,M[G],M[U],M[Z],M.scale,D,z)}var n_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){Km(x.x,M,n_,I==null?void 0:I.x,D==null?void 0:D.x),Km(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function qm(x){return x.translate===0&&x.scale===1}function He(x){return qm(x.x)&&qm(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var l0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Ih(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Ym="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Xm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,U=I.rotateX,Z=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),U&&($+="rotateX(".concat(U,"deg) ")),Z&&($+="rotateY(".concat(Z,"deg) "))}var ee=x.x.scale*M.x,ie=x.y.scale*M.y;return $+="scale(".concat(ee,", ").concat(ie,")"),$===Ym?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Ih(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function s0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(U,Z,ee){var ie=this;Z===void 0&&(Z={}),ee===void 0&&(ee=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ie.isUpdating&&(ie.isUpdating=!1,ie.clearAllSnapshots())},this.updateProjection=function(){ie.nodes.forEach($i),ie.nodes.forEach(c0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=U,this.latestValues=Z,this.root=ee?ee.root||ee:this,this.path=ee?t.__spreadArray(t.__spreadArray([],t.__read(ee.path),!1),[ee],!1):[],this.parent=ee,this.depth=ee?ee.depth+1:0,U&&this.root.registerPotentialNode(U,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function f0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){f0(x.x),f0(x.y)}var _f=s0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=s0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Yh),o0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function p0(x){return Ye(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var h0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,U=ue(i_),Z=jo(),ee=r.useMemo(function(){return{id:Z,initial:I,isPresent:D,custom:$,onExitComplete:function(ie){var de,fe;U.set(ie,!0);try{for(var ge=t.__values(U.values()),u=ge.next();!u.done;u=ge.next()){var p=u.value;if(!p)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(fe=ge.return)&&fe.call(ge)}finally{if(de)throw de.error}}z==null||z()},register:function(ie){return U.set(ie,!1),function(){return U.delete(ie)}}}},G?void 0:[D]);return r.useMemo(function(){U.forEach(function(ie,de){return U.set(de,!1)})},[D]),v.useEffect(function(){!D&&!U.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:ee},M)};function i_(){return new Map}var ba=function(x){return x.key||""};function g0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var St=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,U=x.presenceAffectsLayout,Z=U===void 0?!0:U,ee=t.__read(Mc(),1),ie=ee[0],de=r.useContext(xe).forceRender;de&&(ie=de);var fe=xf(),ge=Pr(M),u=ge,p=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,g0(ge,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),p.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Me){return v.createElement(Rc,{key:ba(Me),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:Z},Me)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=ge.map(ba),le=j.length,me=0;me0?1:-1,G=x[z+$];if(!G)return x;var U=x[z],Z=G.layout,ee=i.mix(Z.min,Z.max,.5);return $===1&&U.layout.max+I>ee||$===-1&&U.layout.min+I.001?1/x:d_},Ef=!1;function f_(x){var M=Ki(1),I=Ki(1),D=_();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=St,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=xe,e.LazyMotion=v0,e.MotionConfig=Sf,e.MotionConfigContext=h,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Te,e.addPointerEvent=Tl,e.addScaleCorrector=ir,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=p0,e.createMotionComponent=Ye,e.domAnimation=b0,e.domMax=w0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Eh,e.isMotionValue=qt,e.isValidMotionProp=Dn,e.m=h0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=l_,e.useAnimationControls=iy,e.useAnimationFrame=S0,e.useCycle=ay,e.useDeprecatedAnimatedState=cy,e.useDeprecatedInvertedScale=f_,e.useDomEvent=Nt,e.useDragControls=Ul,e.useElementScroll=x0,e.useForceUpdate=Mc,e.useInView=ly,e.useInstantLayoutTransition=P0,e.useInstantTransition=u_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=_0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=sy,e.useScroll=kf,e.useSpring=a_,e.useTime=C0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=_,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(X),n=An,o=S(pt),i=S(Xn),a=S(Je),l=Ze,s=Jw,d=qe,v=$v;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.className,h=g.children,m=b(g,["className","children"]),_=(0,s.useAccordion)(),T=_.open,k=_.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,w({},m,{ref:f,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),h)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(PA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return g}});var r=b(X),n=b(pt),o=Ze,i=b(Je),a=qe,l=Jw,s=$v,d=CA,v=PA;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.open,m=f.icon,_=f.animate,T=f.className,k=f.disabled,R=f.children,E=P(f,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,_=_??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),w({},(0,i.default)(V.disabled),k)),T),H=r.default.useMemo(function(){return{open:h,icon:m,animate:_,disabled:k}},[h,m,_,k]);return r.default.createElement(l.AccordionContextProvider,{value:H},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var g=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(JR);var tL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var d2={},dh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(dh),i=S(pt),a=Ze,l=S(Sr),s=S(Je),d=qe,v=_d;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.size,m=g.color,_=g.ripple,T=g.className,k=g.children;g.fullWidth;var R=b(g,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,H=V.variants,q=V.sizes;c=c??F.variant,h=h??F.size,m=m??F.color,_=_??F.ripple,T=(0,a.twMerge)(F.className||"",T);var re=_!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(H[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),Y=(0,s.default)(q[(0,l.default)(A.sizes,h,"md")]),te=(0,a.twMerge)((0,i.default)(Q,Y,W),T);return r.default.createElement("button",w({},R,{ref:f,className:te,type:R.type||"button",onMouseDown:function(ne){var se=R==null?void 0:R.onMouseDown;return _&&re.create(ne,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof se=="function"&&se(ne)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(d2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{Alert:function(){return g},default:function(){return f}});var r=P(X),n=P(nt),o=An,i=P(pt),a=P(Xn),l=Ze,s=P(Sr),d=P(Je),v=qe,w=NP,S=P(d2);function b(){return b=Object.assign||function(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,h){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(h.indexOf(T)>=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,h){var m=c.variant,_=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),H=(0,v.useTheme)().alert,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.variants;m=m??q.variant,_=_??q.color,A=A??q.animate,k=k??q.open,R=R??q.action,E=E??q.onClose,F=(0,l.twMerge)(q.className||"",F);var te=(0,d.default)(W.alert),ne=(0,d.default)(W.action),se=(0,d.default)(Y[(0,s.default)(re.variants,m,"filled")][(0,s.default)(re.colors,_,"gray")]),ve=(0,l.twMerge)((0,i.default)(te,se),F),ye=(0,i.default)(ne),ce={unmount:{opacity:0},mount:{opacity:1}},J=(0,a.default)(ce,A),oe=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,b({},B,{ref:h,role:"alert",className:"".concat(ve," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:J}),T&&oe,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:ye},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),icon:w.propTypesIcon,open:w.propTypesOpen,action:w.propTypesAction,onClose:w.propTypesOnClose,animate:w.propTypesAnimate,className:w.propTypesClassName,children:w.propTypesChildren},g.displayName="MaterialTailwind.Alert";var f=g})(tL);var rL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=Ze,a=S(Sr),l=S(Je),s=qe,d=AP;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.size,m=g.className,_=g.color,T=g.withBorder,k=b(g,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,H=F.sizes,q=F.borderColor;c=c??A.variant,h=h??A.size,T=T??A.withBorder,_=_??A.color,m=(0,i.twMerge)(A.className||"",m);var re=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(H[(0,a.default)(E.sizes,h,"md")]),W=(0,l.default)(q[(0,a.default)(E.colors,_,"gray")]),Y,te=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),re,Q,(Y={},v(Y,(0,l.default)(V.withBorder),T),v(Y,W,T),Y)),m);return r.default.createElement("img",w({},k,{ref:f,className:te}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(rL);var nL={},oL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(nt);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(oL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(X),n=v(pt),o=Ze,i=v(Je),a=qe,l=oL;function s(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function d(){return d=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=(0,r.forwardRef)(function(g,f){var c=g.separator,h=g.fullWidth,m=g.className,_=g.children,T=b(g,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,h=h??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),h)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:f,className:F}),r.Children.map(_,function(H,q){if((0,r.isValidElement)(H)){var re;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),H==null||(re=H.props)===null||re===void 0?void 0:re.disabled))},H,q!==r.Children.count(_)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(nL);var iL={},b3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Spinner:function(){return C},default:function(){return g}});var r=w(nt),n=b(X),o=w(pt),i=Ze,a=w(Sr),l=w(Je),s=qe,d=GP;function v(){return v=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=(0,n.forwardRef)(function(f,c){var h=f.color,m=f.className,_=P(f,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;h=h??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,h,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),H,q;return n.default.createElement("svg",v({},_,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(H=_==null?void 0:_.width)!==null&&H!==void 0?H:24,height:(q=_==null?void 0:_.height)!==null&&q!==void 0?q:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var g=C})(b3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{Button:function(){return g},default:function(){return f}});var r=P(X),n=P(nt),o=P(dh),i=P(pt),a=Ze,l=P(Sr),s=P(Je),d=qe,v=P(b3),w=_d;function S(c,h,m){return h in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}function b(){return b=Object.assign||function(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,h){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(h.indexOf(T)>=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,h){var m=c.variant,_=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,H=B.valid,q=B.defaultProps,re=B.styles,Q=re.base,W=re.variants,Y=re.sizes;m=m??q.variant,_=_??q.size,T=T??q.color,k=k??q.fullWidth,R=R??q.ripple,E=(0,a.twMerge)(q.className||"",E);var te=R!==void 0&&new o.default,ne=(0,s.default)(Q.initial),se=(0,s.default)(W[(0,l.default)(H.variants,m,"filled")][(0,l.default)(H.colors,T,"gray")]),ve=(0,s.default)(Y[(0,l.default)(H.sizes,_,"md")]),ye=(0,a.twMerge)((0,i.default)(ne,ve,se,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":_==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":_==="lg"})),J;return r.default.createElement("button",b({},V,{disabled:(J=V.disabled)!==null&&J!==void 0?J:F,ref:h,className:ye,type:V.type||"button",onMouseDown:function(oe){var ue=V==null?void 0:V.onMouseDown;return R&&te.create(oe,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(oe)}}),F&&r.default.createElement(v.default,{className:ce}),A)});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),size:n.default.oneOf(w.propTypesSize),color:n.default.oneOf(w.propTypesColor),fullWidth:w.propTypesFullWidth,ripple:w.propTypesRipple,className:w.propTypesClassName,children:w.propTypesChildren,loading:w.propTypesLoading},g.displayName="MaterialTailwind.Button";var f=g})(iL);var aL={},lL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=Ze,a=S(Sr),l=S(Je),s=qe,d=xd;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.color,m=g.shadow,_=g.floated,T=g.className,k=g.children,R=b(g,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,H=F.variants;c=c??A.variant,h=h??A.color,m=m??A.shadow,_=_??A.floated,T=(0,i.twMerge)(A.className||"",T);var q=(0,l.default)(B.initial),re=(0,l.default)(H[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,h,"white")]),Q=(0,i.twMerge)((0,o.default)(q,re,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),_)),T);return r.default.createElement("div",w({},R,{ref:f,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(lL);var sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return b}});var r=d(X),n=d(pt),o=Ze,i=d(Je),a=qe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,h=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(h.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},f,{ref:y,className:_}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var b=S})(sL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{CardFooter:function(){return b},default:function(){return P}});var r=v(X),n=v(pt),o=Ze,i=v(Je),a=qe,l=xd;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.divider,f=y.className,c=y.children,h=w(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,_=m.defaultProps,T=m.styles.base;g=g??_.divider,f=(0,o.twMerge)(_.className||"",f);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),g)),f);return r.default.createElement("div",d({},h,{ref:C,className:k}),c)});b.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},b.displayName="MaterialTailwind.CardFooter";var P=b})(uL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return f},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return w.CardFooter},default:function(){return c}});var r=y(X),n=y(nt),o=y(pt),i=Ze,a=y(Sr),l=y(Je),s=qe,d=lL,v=sL,w=uL,S=xd;function b(h,m,_){return m in h?Object.defineProperty(h,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):h[m]=_,h}function P(){return P=Object.assign||function(h){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function g(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}var f=r.default.forwardRef(function(h,m){var _=h.variant,T=h.color,k=h.shadow,R=h.className,E=h.children,A=C(h,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,H=F.valid,q=B.base,re=B.variants;_=_??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(q.initial),W=(0,l.default)(re[(0,a.default)(H.variants,_,"filled")][(0,a.default)(H.colors,T,"white")]),Y=(0,i.twMerge)((0,o.default)(Q,W,b({},(0,l.default)(q.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:Y}),E)});f.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},f.displayName="MaterialTailwind.Card";var c=Object.assign(f,{Header:d.CardHeader,Body:v.CardBody,Footer:w.CardFooter})})(aL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Checkbox:function(){return C},default:function(){return g}});var r=b(X),n=b(nt),o=b(dh),i=b(pt),a=Ze,l=b(Sr),s=b(Je),d=qe,v=Sd;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.color,m=f.label,_=f.icon,T=f.ripple,k=f.className,R=f.disabled,E=f.containerProps,A=f.labelProps,F=f.iconProps,V=f.inputRef,B=P(f,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().checkbox,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.colors,te=r.default.useId();h=h??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ye=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(re.colors,h,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||te,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:ye,id:B.id||te})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||te}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var g=C})(cL);var dL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{Chip:function(){return g},default:function(){return f}});var r=P(X),n=P(nt),o=An,i=P(pt),a=P(Xn),l=Ze,s=P(Sr),d=P(Je),v=qe,w=VP,S=P(d2);function b(){return b=Object.assign||function(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,h){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(h.indexOf(T)>=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,h){var m=c.variant,_=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,H=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),q=(0,v.useTheme)().chip,re=q.defaultProps,Q=q.valid,W=q.styles,Y=W.base,te=W.variants,ne=W.sizes;m=m??re.variant,_=_??re.size,T=T??re.color,F=F??re.animate,R=R??re.open,A=A??re.action,E=E??re.onClose,V=(0,l.twMerge)(re.className||"",V);var se=(0,d.default)(Y.chip),ve=(0,d.default)(Y.action),ye=(0,d.default)(Y.icon),ce=(0,d.default)(te[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),J=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].chip),oe=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].action),ue=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].icon),Se=(0,l.twMerge)((0,i.default)(se,ce,J),V),Ce=(0,i.default)(ve,oe),Re=(0,i.default)(ye,ue),xe=(0,i.default)({"ml-4":k&&_==="sm","ml-[18px]":k&&_==="md","ml-5":k&&_==="lg","mr-5":E}),Te={unmount:{opacity:0},mount:{opacity:1}},Oe=(0,a.default)(Te,F),je=r.default.createElement("div",{className:Re},k),Ye=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(Ye,null,R&&r.default.createElement(o.m.div,b({},H,{ref:h,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Oe}),k&&je,r.default.createElement("span",{className:xe},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),size:n.default.oneOf(w.propTypesSize),color:n.default.oneOf(w.propTypesColor),icon:w.propTypesIcon,open:w.propTypesOpen,onClose:w.propTypesOnClose,action:w.propTypesAction,animate:w.propTypesAnimate,className:w.propTypesClassName,value:w.propTypesValue},g.displayName="MaterialTailwind.Chip";var f=g})(dL);var fL={},pL={exports:{}},jt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zv=Symbol.for("react.element"),hY=Symbol.for("react.portal"),gY=Symbol.for("react.fragment"),vY=Symbol.for("react.strict_mode"),mY=Symbol.for("react.profiler"),yY=Symbol.for("react.provider"),bY=Symbol.for("react.context"),wY=Symbol.for("react.forward_ref"),_Y=Symbol.for("react.suspense"),xY=Symbol.for("react.memo"),SY=Symbol.for("react.lazy"),bk=Symbol.iterator;function CY(e){return e===null||typeof e!="object"?null:(e=bk&&e[bk]||e["@@iterator"],typeof e=="function"?e:null)}var hL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gL=Object.assign,vL={};function fh(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}fh.prototype.isReactComponent={};fh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mL(){}mL.prototype=fh.prototype;function w3(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}var _3=w3.prototype=new mL;_3.constructor=w3;gL(_3,fh.prototype);_3.isPureReactComponent=!0;var wk=Array.isArray,yL=Object.prototype.hasOwnProperty,x3={current:null},bL={key:!0,ref:!0,__self:!0,__source:!0};function wL(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)yL.call(t,n)&&!bL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Iy=new WeakMap,Ly={},Z_=0,xL=function(e){return e&&(e.host||xL(e.parentNode))},RY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},NY=function(e,t,r,n){var o=RY(t,Array.isArray(e)?e:[e]);Ly[r]||(Ly[r]=new WeakMap);var i=Ly[r],a=[],l=new Set,s=new Set(o),d=function(w){!w||l.has(w)||(l.add(w),d(w.parentNode))};o.forEach(d);var v=function(w){!w||s.has(w)||Array.prototype.forEach.call(w.children,function(S){if(l.has(S))v(S);else try{var b=S.getAttribute(n),P=b!==null&&b!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Iy.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",S,g)}})};return v(t),l.clear(),Z_++,function(){a.forEach(function(w){var S=Nf.get(w)-1,b=i.get(w)-1;Nf.set(w,S),i.set(w,b),S||(Iy.has(w)||w.removeAttribute(n),Iy.delete(w)),b||w.removeAttribute(r)}),Z_--,Z_||(Nf=new WeakMap,Nf=new WeakMap,Iy=new WeakMap,Ly={})}},AY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=MY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),NY(n,o,r,"aria-hidden")):function(){return null}};/*! +* tabbable 6.2.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var IY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],cC=IY.join(","),SL=typeof Element>"u",uv=SL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,z1=!SL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},V1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},LY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},DY=function(t,r,n){if(V1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(cC));return r&&uv.call(t,cC)&&o.unshift(t),o=o.filter(n),o},FY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!V1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=uv.call(a,cC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var w=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!V1(w,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(w&&S){var b=e(w===!0?a.children:w.children,!0,n);n.flatten?o.push.apply(o,b):o.push({scopeParent:a,candidates:b})}else i.unshift.apply(i,a.children)}}return o},CL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},PL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||LY(t))&&!CL(t)?0:t.tabIndex},jY=function(t,r){var n=PL(t);return n<0&&r&&!CL(t)?0:n},zY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},TL=function(t){return t.tagName==="INPUT"},VY=function(t){return TL(t)&&t.type==="hidden"},BY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},UY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(uv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=z1(t);if(s&&!s.shadowRoot&&o(s)===!0)return xk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if(GY(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return xk(t);return!1},qY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},QY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=jY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(zY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},B1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=FY([t],r.includeContainer,{filter:Sk.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:XY}):n=DY(t,r.includeContainer,Sk.bind(null,r)),QY(n)},OL={exports:{}},Ni={};/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var kL=be,ki=fp;function Le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dC=Object.prototype.hasOwnProperty,ZY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ck={},Pk={};function JY(e){return dC.call(Pk,e)?!0:dC.call(Ck,e)?!1:ZY.test(e)?Pk[e]=!0:(Ck[e]=!0,!1)}function eX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tX(e,t,r,n){if(t===null||typeof t>"u"||eX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var C3=/[\-:]([a-z])/g;function P3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function T3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ex=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?sg(e):""}function rX(e){switch(e.tag){case 5:return sg(e.type);case 16:return sg("Lazy");case 13:return sg("Suspense");case 19:return sg("SuspenseList");case 0:case 2:case 15:return e=tx(e.type,!1),e;case 11:return e=tx(e.type.render,!1),e;case 1:return e=tx(e.type,!0),e;default:return""}}function gC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case tp:return"Fragment";case ep:return"Portal";case fC:return"Profiler";case O3:return"StrictMode";case pC:return"Suspense";case hC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RL:return(e.displayName||"Context")+".Consumer";case ML:return(e._context.displayName||"Context")+".Provider";case k3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case E3:return t=e.displayName||null,t!==null?t:gC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return gC(e(t))}catch{}}return null}function nX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gC(t);case 8:return t===O3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oX(e){var t=AL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fy(e){e._valueTracker||(e._valueTracker=oX(e))}function IL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function U1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ok(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LL(e,t){t=t.checked,t!=null&&T3(e,"checked",t,!1)}function mC(e,t){LL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yC(e,t.type,r):t.hasOwnProperty("defaultValue")&&yC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kk(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function yC(e,t,r){(t!=="number"||U1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ug=Array.isArray;function xp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=jy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Tg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iX=["Webkit","ms","Moz","O"];Object.keys(Tg).forEach(function(e){iX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tg[t]=Tg[e]})});function zL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Tg.hasOwnProperty(e)&&Tg[e]?(""+t).trim():t+"px"}function VL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=zL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var aX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _C(e,t){if(t){if(aX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function xC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var SC=null;function M3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var CC=null,Sp=null,Cp=null;function Rk(e){if(e=tm(e)){if(typeof CC!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=v2(t),CC(e.stateNode,e.type,t))}}function BL(e){Sp?Cp?Cp.push(e):Cp=[e]:Sp=e}function UL(){if(Sp){var e=Sp,t=Cp;if(Cp=Sp=null,Rk(e),t)for(e=0;e>>=0,e===0?32:31-(mX(e)/yX|0)|0}var zy=64,Vy=4194304;function cg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function G1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=cg(l):(i&=a,i!==0&&(n=cg(i)))}else a=r&~o,a!==0?n=cg(a):i!==0&&(n=cg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function xX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=kg),Vk=" ",Bk=!1;function sD(e,t){switch(e){case"keyup":return XX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rp=!1;function ZX(e,t){switch(e){case"compositionend":return uD(t);case"keypress":return t.which!==32?null:(Bk=!0,Vk);case"textInput":return e=t.data,e===Vk&&Bk?null:e;default:return null}}function JX(e,t){if(rp)return e==="compositionend"||!j3&&sD(e,t)?(e=aD(),Db=L3=uu=null,rp=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$k(r)}}function pD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hD(){for(var e=window,t=U1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=U1(e.document)}return t}function z3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sQ(e){var t=hD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pD(r.ownerDocument.documentElement,r)){if(n!==null&&z3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Gk(r,i);var a=Gk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,np=null,MC=null,Mg=null,RC=!1;function Kk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;RC||np==null||np!==U1(n)||(n=np,"selectionStart"in n&&z3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mg&&mv(Mg,n)||(Mg=n,n=Y1(MC,"onSelect"),0ap||(e.current=FC[ap],FC[ap]=null,ap--)}function cr(e,t){ap++,FC[ap]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function Wp(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Q1(){yr(Jo),yr(go)}function e8(e,t,r){if(go.current!==Ru)throw Error(Le(168));cr(go,t),cr(Jo,r)}function SD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Le(108,nX(e)||"Unknown",o));return Ir({},r,n)}function Z1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function t8(e,t,r){var n=e.stateNode;if(!n)throw Error(Le(169));r?(e=SD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,m2=!1,gx=!1;function CD(e){Yl===null?Yl=[e]:Yl.push(e)}function wQ(e){m2=!0,CD(e)}function Hu(){if(!gx&&Yl!==null){gx=!0;var e=0,t=Xt;try{var r=Yl;for(Xt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(g,T,c[k],h);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(g,T),f=i(E,f,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(g,T),xr&&zc(g,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(g,T,E.value,h);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(g,T),f=i(A,f,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(g,T),xr&&zc(g,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=w(g,E.value,h),E!==null&&(f=i(E,f,k),_===null?m=E:_.sibling=E,_=E);return xr&&zc(g,k),m}for(T=n(g,T);!E.done;k++,E=c.next())E=b(T,g,k,E.value,h),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),f=i(E,f,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(g,F)}),xr&&zc(g,k),m}function C(g,f,c,h){if(typeof c=="object"&&c!==null&&c.type===tp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Dy:e:{for(var m=c.key,_=f;_!==null;){if(_.key===m){if(m=c.type,m===tp){if(_.tag===7){r(g,_.sibling),f=o(_,c.props.children),f.return=g,g=f;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&s8(m)===_.type){r(g,_.sibling),f=o(_,c.props),f.ref=$0(g,_,c),f.return=g,g=f;break e}r(g,_);break}else t(g,_);_=_.sibling}c.type===tp?(f=ed(c.props.children,g.mode,h,c.key),f.return=g,g=f):(h=Wb(c.type,c.key,c.props,null,g.mode,h),h.ref=$0(g,f,c),h.return=g,g=h)}return a(g);case ep:e:{for(_=c.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===c.containerInfo&&f.stateNode.implementation===c.implementation){r(g,f.sibling),f=o(f,c.children||[]),f.return=g,g=f;break e}else{r(g,f);break}else t(g,f);f=f.sibling}f=Sx(c,g.mode,h),f.return=g,g=f}return a(g);case eu:return _=c._init,C(g,f,_(c._payload),h)}if(ug(c))return P(g,f,c,h);if(V0(c))return y(g,f,c,h);Ky(g,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,f!==null&&f.tag===6?(r(g,f.sibling),f=o(f,c),f.return=g,g=f):(r(g,f),f=xx(c,g.mode,h),f.return=g,g=f),a(g)):r(g,f)}return C}var Gp=ND(!0),AD=ND(!1),rm={},yl=Uu(rm),_v=Uu(rm),xv=Uu(rm);function Yc(e){if(e===rm)throw Error(Le(174));return e}function q3(e,t){switch(cr(xv,t),cr(_v,e),cr(yl,rm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wC(t,e)}yr(yl),cr(yl,t)}function Kp(){yr(yl),yr(_v),yr(xv)}function ID(e){Yc(xv.current);var t=Yc(yl.current),r=wC(t,e.type);t!==r&&(cr(_v,e),cr(yl,r))}function Y3(e){_v.current===e&&(yr(yl),yr(_v))}var Er=Uu(0);function ow(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vx=[];function X3(){for(var e=0;er?r:4,e(!0);var n=mx.transition;mx.transition={};try{e(!1),t()}finally{Xt=r,mx.transition=n}}function XD(){return ca().memoizedState}function CQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},QD(e))ZD(t,r);else if(r=kD(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),JD(r,t,n)}}function PQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(QD(e))ZD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,G3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=kD(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),JD(r,t,n))}}function QD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function ZD(e,t){Rg=iw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function JD(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,N3(e,r)}}var aw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},TQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:c8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Vb(4194308,4,$D.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:u8,useDebugValue:tT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=u8(!1),t=e[0];return e=SQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(Le(407));r=r()}else{if(r=t(),Nn===null)throw Error(Le(349));(ud&30)!==0||FD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,c8(zD.bind(null,n,i,e),[e]),n.flags|=2048,Pv(9,jD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[wv]=n,sF(e,t,!1,!1),t.stateNode=e;e:{switch(a=xC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oYp&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304)}else{if(!n)if(e=ow(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),G0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Yp&&r!==1073741824&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return lT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function IQ(e,t){switch(B3(t),t.tag){case 1:return ei(t.type)&&Q1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kp(),yr(Jo),yr(go),X3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Y3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));$p()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return Kp(),null;case 10:return $3(t.type._context),null;case 22:case 23:return lT(),null;case 24:return null;default:return null}}var Yy=!1,fo=!1,LQ=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function cp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function YC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var b8=!1;function DQ(e,t){if(NC=K1,e=hD(),z3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,w=e,S=null;t:for(;;){for(var b;w!==r||o!==0&&w.nodeType!==3||(l=a+o),w!==i||n!==0&&w.nodeType!==3||(s=a+n),w.nodeType===3&&(a+=w.nodeValue.length),(b=w.firstChild)!==null;)S=w,w=b;for(;;){if(w===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(b=w.nextSibling)!==null)break;w=S,S=w.parentNode}w=b}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(AC={focusedElem:e,selectionRange:r},K1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(h){Br(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=b8,b8=!1,P}function Ng(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&YC(t,r,i)}o=o.next}while(o!==n)}}function w2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function XC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function dF(e){var t=e.alternate;t!==null&&(e.alternate=null,dF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[wv],delete t[DC],delete t[yQ],delete t[bQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fF(e){return e.tag===5||e.tag===3||e.tag===4}function w8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function QC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=X1));else if(n!==4&&(e=e.child,e!==null))for(QC(e,t,r),e=e.sibling;e!==null;)QC(e,t,r),e=e.sibling}function ZC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ZC(e,t,r),e=e.sibling;e!==null;)ZC(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)pF(e,t,r),r=r.sibling}function pF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(f2,r)}catch{}switch(r.tag){case 5:fo||cp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?hx(e.parentNode,r):e.nodeType===1&&hx(e,r),gv(e)):hx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&YC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(cp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function _8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new LQ),t.forEach(function(n){var o=$Q.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*jQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,uw=0,(Ht&6)!==0)throw Error(Le(331));var o=Ht;for(Ht|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-iT?Jc(e,0):oT|=r),ti(e,t)}function _F(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vy,Vy<<=1,(Vy&130023424)===0&&(Vy=4194304)));var r=No();e=hs(e,t),e!==null&&(Jv(e,t,r),ti(e,r))}function WQ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),_F(e,r)}function $Q(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Le(314))}n!==null&&n.delete(t),_F(e,r)}var xF;xF=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,NQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&PD(t,ew,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bb(e,t),e=t.pendingProps;var o=Wp(t,go.current);Tp(t,r),o=Z3(null,t,n,e,o,r);var i=J3();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,Z1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,K3(t),o.updater=y2,t.stateNode=o,o._reactInternals=t,UC(t,n,e,r),t=$C(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&V3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=KQ(n),e=Oa(n,e),o){case 0:t=WC(null,t,n,e,r);break e;case 1:t=v8(null,t,n,e,r);break e;case 11:t=h8(null,t,n,e,r);break e;case 14:t=g8(null,t,n,Oa(n.type,e),r);break e}throw Error(Le(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),WC(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),v8(e,t,n,o,r);case 3:e:{if(iF(t),e===null)throw Error(Le(387));n=t.pendingProps,i=t.memoizedState,o=i.element,ED(e,t),nw(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qp(Error(Le(423)),t),t=m8(e,t,n,r,o);break e}else if(n!==o){o=qp(Error(Le(424)),t),t=m8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=AD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($p(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return ID(t),e===null&&zC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,IC(n,o)?a=null:i!==null&&IC(n,i)&&(t.flags|=32),oF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&zC(t),null;case 13:return aF(e,t,r);case 4:return q3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),h8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(tw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),VC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Le(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),VC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Tp(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),g8(e,t,n,o,r);case 15:return rF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Bb(e,t),t.tag=1,ei(n)?(e=!0,Z1(t)):e=!1,Tp(t,r),RD(t,n,o),UC(t,n,o,r),$C(null,t,n,!0,e,r);case 19:return lF(e,t,r);case 22:return nF(e,t,r)}throw Error(Le(156,t.tag))};function SF(e,t){return YL(e,t)}function GQ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new GQ(e,t,r,n)}function uT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KQ(e){if(typeof e=="function")return uT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k3)return 11;if(e===E3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Wb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")uT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case tp:return ed(r.children,o,i,t);case O3:a=8,o|=8;break;case fC:return e=ra(12,r,t,o|2),e.elementType=fC,e.lanes=i,e;case pC:return e=ra(13,r,t,o),e.elementType=pC,e.lanes=i,e;case hC:return e=ra(19,r,t,o),e.elementType=hC,e.lanes=i,e;case NL:return x2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ML:a=10;break e;case RL:a=9;break e;case k3:a=11;break e;case E3:a=14;break e;case eu:a=16,n=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function x2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=NL,e.lanes=r,e.stateNode={isHidden:!1},e}function xx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Sx(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nx(0),this.expirationTimes=nx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cT(e,t,r,n,o,i,a,l,s){return e=new qQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},K3(i),e}function YQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OF)}catch(e){console.error(e)}}OF(),OL.exports=Ni;var Nu=OL.exports;const kF=["top","right","bottom","left"],E8=["start","end"],M8=kF.reduce((e,t)=>e.concat(t,t+"-"+E8[0],t+"-"+E8[1]),[]),Ua=Math.min,po=Math.max,fw=Math.round,Zy=Math.floor,Au=e=>({x:e,y:e}),eZ={left:"right",right:"left",bottom:"top",top:"bottom"},tZ={start:"end",end:"start"};function n4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function hT(e){return e==="x"?"y":"x"}function gT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function vT(e){return hT(vs(e))}function EF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=vT(e),i=gT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=hw(a)),[a,hw(a)]}function rZ(e){const t=hw(e);return[pw(e),t,pw(t)]}function pw(e){return e.replace(/start|end/g,t=>tZ[t])}function nZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function oZ(e,t,r,n){const o=ja(e);let i=nZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(pw)))),i}function hw(e){return e.replace(/left|right|bottom|top/g,t=>eZ[t])}function iZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function mT(e){return typeof e!="number"?iZ(e):{top:e,right:e,bottom:e,left:e}}function Xp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function R8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=vT(t),l=gT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,w=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let b;switch(s){case"top":b={x:v,y:n.y-o.height};break;case"bottom":b={x:v,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:w};break;case"left":b={x:n.x-o.width,y:w};break;default:b={x:n.x,y:n.y}}switch(ja(t)){case"start":b[a]-=S*(r&&d?-1:1);break;case"end":b[a]+=S*(r&&d?-1:1);break}return b}const aZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:w}=R8(d,n,s),S=n,b={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const w=mT(v),S={x:r,y:n},b=vT(o),P=gT(b),y=await a.getDimensions(d),C=b==="y",g=C?"top":"left",f=C?"bottom":"right",c=C?"clientHeight":"clientWidth",h=i.reference[P]+i.reference[b]-S[b]-i.floating[P],m=S[b]-i.reference[b],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=_?_[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(_)))&&(T=l.floating[c]||i.floating[P]);const k=h/2-m/2,R=T/2-y[P]/2-1,E=Ua(w[g],R),A=Ua(w[f],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,H=n4(F,B,V),q=!s.arrow&&ja(o)!=null&&B!==H&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?pw(o)!==o:!1):!0)}const uZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:w,allowedPlacements:S=M8,autoAlignment:b=!0,...P}=Ha(e,t),y=w!==void 0||S===M8?sZ(w||null,b,S):S,C=await fd(t,P),g=((r=a.autoPlacement)==null?void 0:r.index)||0,f=y[g];if(f==null)return{};const c=EF(f,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==f)return{reset:{placement:y[0]}};const h=[C[Ei(f)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:f,overflows:h}],_=y[g+1];if(_)return{data:{index:g+1,overflows:m},reset:{placement:_}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:g+1,overflows:m},reset:{placement:R}}:{}}}},cZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:w=!0,fallbackPlacements:S,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const g=Ei(o),f=vs(l),c=Ei(l)===l,h=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[hw(l)]:rZ(l)),_=P!=="none";!S&&_&&m.push(...oZ(l,y,P,h));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[g]),w){const B=EF(o,a,h);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,H=T[B];if(H)return{data:{index:B,overflows:E},reset:{placement:H}};let q=(F=E.filter(re=>re.overflows[0]<=0).sort((re,Q)=>re.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!q)switch(b){case"bestFit":{var V;const re=(V=E.filter(Q=>{if(_){const W=vs(Q.placement);return W===f||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,Y)=>W+Y,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];re&&(q=re);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function N8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A8(e){return kF.some(t=>e[t]>=0)}const dZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=N8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:A8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=N8(i,r.floating);return{data:{escapedOffsets:a,escaped:A8(a)}}}default:return{}}}}};function MF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function fZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Xp(MF(o)))}const pZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),w=fZ(v),S=Xp(MF(v)),b=mT(l);function P(){if(w.length===2&&w[0].left>w[1].right&&s!=null&&d!=null)return w.find(C=>s>C.left-b.left&&sC.top-b.top&&d=2){if(vs(r)==="y"){const E=w[0],A=w[w.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,H=F?E.left:A.left,q=F?E.right:A.right,re=q-H,Q=B-V;return{top:V,bottom:B,left:H,right:q,width:re,height:Q,x:H,y:V}}const C=Ei(r)==="left",g=po(...w.map(E=>E.right)),f=Ua(...w.map(E=>E.left)),c=w.filter(E=>C?E.left===f:E.right===g),h=c[0].top,m=c[c.length-1].bottom,_=f,T=g,k=T-_,R=m-h;return{top:h,bottom:m,left:_,right:T,width:k,height:R,x:_,y:h}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function hZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,w=Ha(t,e);let{mainAxis:S,crossAxis:b,alignmentAxis:P}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return l&&typeof P=="number"&&(b=l==="end"?P*-1:P),s?{x:b*v,y:S*d}:{x:S*d,y:b*v}}const gZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await hZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},vZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:g,y:f}=C;return{x:g,y:f}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),w=vs(Ei(o)),S=hT(w);let b=d[S],P=d[w];if(i){const C=S==="y"?"top":"left",g=S==="y"?"bottom":"right",f=b+v[C],c=b-v[g];b=n4(f,b,c)}if(a){const C=w==="y"?"top":"left",g=w==="y"?"bottom":"right",f=P+v[C],c=P-v[g];P=n4(f,P,c)}const y=l.fn({...t,[S]:b,[w]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[w]:a}}}}}},mZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},w=vs(o),S=hT(w);let b=v[S],P=v[w];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",h=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;bm&&(b=m)}if(d){var g,f;const c=S==="y"?"width":"height",h=["top","left"].includes(Ei(o)),m=i.reference[w]-i.floating[c]+(h&&((g=a.offset)==null?void 0:g[w])||0)+(h?0:C.crossAxis),_=i.reference[w]+i.reference[c]+(h?0:((f=a.offset)==null?void 0:f[w])||0)-(h?C.crossAxis:0);P_&&(P=_)}return{[S]:b,[w]:P}}}},yZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),w=Ei(o),S=ja(o),b=vs(o)==="y",{width:P,height:y}=i.floating;let C,g;w==="top"||w==="bottom"?(C=w,g=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=w,C=S==="end"?"top":"bottom");const f=y-v.top-v.bottom,c=P-v.left-v.right,h=Ua(y-v[C],f),m=Ua(P-v[g],c),_=!t.middlewareData.shift;let T=h,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=f),_&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);b?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function O2(){return typeof window<"u"}function gh(e){return RF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(RF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RF(e){return O2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return O2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return O2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function I8(e){return!O2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function nm(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function bZ(e){return["table","td","th"].includes(gh(e))}function k2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yT(e){const t=bT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function wZ(e){let t=Iu(e);for(;wl(t)&&!Qp(t);){if(yT(t))return t;if(k2(t))return null;t=Iu(t)}return null}function bT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qp(e){return["html","body","#document"].includes(gh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function E2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(gh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||I8(e)&&e.host||_l(e);return I8(t)?t.host:t}function NF(e){const t=Iu(e);return Qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&nm(t)?t:NF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=NF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=o4(a);return t.concat(a,a.visualViewport||[],nm(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function o4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=fw(r)!==i||fw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function wT(e){return Wa(e)?e:e.contextElement}function kp(e){const t=wT(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=AF(t);let a=(i?fw(r.width):r.width)/n,l=(i?fw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _Z=Au(0);function IF(e){const t=Pi(e);return!bT()||!t.visualViewport?_Z:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=wT(e);let a=Au(1);t&&(n?Wa(n)&&(a=kp(n)):a=kp(e));const l=xZ(i,r,n)?IF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,w=o.height/a.y;if(i){const S=Pi(i),b=n&&Wa(n)?Pi(n):n;let P=S,y=o4(P);for(;y&&n&&b!==P;){const C=kp(y),g=y.getBoundingClientRect(),f=$a(y),c=g.left+(y.clientLeft+parseFloat(f.paddingLeft))*C.x,h=g.top+(y.clientTop+parseFloat(f.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,w*=C.y,s+=c,d+=h,P=Pi(y),y=o4(P)}}return Xp({width:v,height:w,x:s,y:d})}function SZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?k2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),w=wl(n);if((w||!w&&!i)&&((gh(n)!=="body"||nm(a))&&(s=E2(n)),wl(n))){const S=pd(n);d=kp(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function CZ(e){return Array.from(e.getClientRects())}function i4(e,t){const r=E2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function PZ(e){const t=_l(e),r=E2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+i4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function TZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=bT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function OZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?kp(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function L8(e,t,r){let n;if(t==="viewport")n=TZ(e,r);else if(t==="document")n=PZ(_l(e));else if(Wa(t))n=OZ(t,r);else{const o=IF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Xp(n)}function LF(e,t){const r=Iu(e);return r===t||!Wa(r)||Qp(r)?!1:$a(r).position==="fixed"||LF(r,t)}function kZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&gh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Qp(a);){const l=$a(a),s=yT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nm(a)&&!s&&LF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function EZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?k2(t)?[]:kZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const w=L8(t,v,o);return d.top=po(w.top,d.top),d.right=Ua(w.right,d.right),d.bottom=Ua(w.bottom,d.bottom),d.left=po(w.left,d.left),d},L8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function MZ(e){const{width:t,height:r}=AF(e);return{width:t,height:r}}function RZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((gh(t)!=="body"||nm(o))&&(l=E2(t)),n){const b=pd(t,!0,i,t);s.x=b.x+t.clientLeft,s.y=b.y+t.clientTop}else o&&(s.x=i4(o));let d=0,v=0;if(o&&!n&&!i){const b=o.getBoundingClientRect();v=b.top+l.scrollTop,d=b.left+l.scrollLeft-i4(o,b)}const w=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:w,y:S,width:a.width,height:a.height}}function Cx(e){return $a(e).position==="static"}function D8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function DF(e,t){const r=Pi(e);if(k2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Qp(o);){if(Wa(o)&&!Cx(o))return o;o=Iu(o)}return r}let n=D8(e,t);for(;n&&bZ(n)&&Cx(n);)n=D8(n,t);return n&&Qp(n)&&Cx(n)&&!yT(n)?r:n||wZ(e)||r}const NZ=async function(e){const t=this.getOffsetParent||DF,r=this.getDimensions,n=await r(e.floating);return{reference:RZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function AZ(e){return $a(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:SZ,getDocumentElement:_l,getClippingRect:EZ,getOffsetParent:DF,getElementRects:NZ,getClientRects:CZ,getDimensions:MZ,getScale:kp,isElement:Wa,isRTL:AZ};function IZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:w,height:S}=e.getBoundingClientRect();if(l||t(),!w||!S)return;const b=Zy(v),P=Zy(o.clientWidth-(d+w)),y=Zy(o.clientHeight-(v+S)),C=Zy(d),f={rootMargin:-b+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function h(m){const _=m[0].intersectionRatio;if(_!==s){if(!c)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch{r=new IntersectionObserver(h,f)}r.observe(e)}return a(!0),i}function LZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=wT(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const w=d&&l?IZ(d,r):null;let S=-1,b=null;a&&(b=new ResizeObserver(g=>{let[f]=g;f&&f.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=b)==null||c.observe(t)})),r()}),d&&!s&&b.observe(d),b.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const g=pd(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&r(),y=g,P=requestAnimationFrame(C)}return r(),()=>{var g;v.forEach(f=>{o&&f.removeEventListener("scroll",r),i&&f.removeEventListener("resize",r)}),w==null||w(),(g=b)==null||g.disconnect(),b=null,s&&cancelAnimationFrame(P)}}const $b=fd,jF=gZ,DZ=uZ,FZ=vZ,jZ=cZ,zZ=yZ,VZ=dZ,F8=lZ,BZ=pZ,UZ=mZ,zF=(e,t,r)=>{const n=new Map,o={platform:FF,...r},i={...o.platform,_c:n};return aZ(e,t,{...o,platform:i})},HZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?F8({element:t.current,padding:r}).fn(o):{}:t?F8({element:t,padding:r}).fn(o):{}}}};var Gb=typeof document<"u"?be.useLayoutEffect:be.useEffect;function gw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!gw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function j8(e){const t=be.useRef(e);return Gb(()=>{t.current=e}),t}function WZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=be.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=be.useState(n);gw(d,n)||v(n);const w=be.useRef(null),S=be.useRef(null),b=be.useRef(l),P=j8(i),y=j8(o),[C,g]=be.useState(null),[f,c]=be.useState(null),h=be.useCallback(E=>{w.current!==E&&(w.current=E,g(E))},[]),m=be.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),_=be.useCallback(()=>{if(!w.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),zF(w.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!gw(b.current,F)&&(b.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Gb(()=>{a===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=be.useRef(!1);Gb(()=>(T.current=!0,()=>{T.current=!1}),[]),Gb(()=>{if(C&&f){if(P.current)return P.current(C,f,_);_()}},[C,f,_,P]);const k=be.useMemo(()=>({reference:w,floating:S,setReference:h,setFloating:m}),[h,m]),R=be.useMemo(()=>({reference:C,floating:f}),[C,f]);return be.useMemo(()=>({...l,update:_,refs:k,elements:R,reference:h,floating:m}),[l,_,k,R,h,m])}var Mr=typeof document<"u"?be.useLayoutEffect:be.useEffect;let Px=!1,$Z=0;const z8=()=>"floating-ui-"+$Z++;function GZ(){const[e,t]=be.useState(()=>Px?z8():void 0);return Mr(()=>{e==null&&t(z8())},[]),be.useEffect(()=>{Px||(Px=!0)},[]),e}const KZ=_L.useId,Ov=KZ||GZ;function VF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const BF=be.createContext(null),UF=be.createContext(null),vh=()=>{var e;return((e=be.useContext(BF))==null?void 0:e.id)||null},Od=()=>be.useContext(UF),qZ=e=>{const t=Ov(),r=Od(),n=vh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},YZ=e=>{let{children:t,id:r}=e;const n=vh();return be.createElement(BF.Provider,{value:be.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},XZ=e=>{let{children:t}=e;const r=be.useRef([]),n=be.useCallback(a=>{r.current=[...r.current,a]},[]),o=be.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=be.useState(()=>VF())[0];return be.createElement(UF.Provider,{value:be.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function _T(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function HF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function xT(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof xT(e).Element:!1}function hd(e){return e?e instanceof xT(e).HTMLElement:!1}function QZ(e){if(typeof ShadowRoot>"u")return!1;const t=xT(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WF(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(_T())||t.test(HF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $F(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function a4(){return/apple/i.test(navigator.vendor)}function GF(){return _T().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=be.useRef(e);return Mr(()=>{t.current=e}),t}const V8="data-floating-ui-safe-polygon";function Kb(e,t,r){return r&&!vw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const ZZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:w,elements:{domReference:S,floating:b},refs:P}=e,y=Od(),C=vh(),g=oa(o),f=oa(n),c=be.useRef(),h=be.useRef(),m=be.useRef(),_=be.useRef(),T=be.useRef(!0),k=be.useRef(!1),R=be.useRef(()=>{}),E=be.useCallback(()=>{var B;const H=(B=v.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"},[v]);be.useEffect(()=>{if(!r)return;function B(){clearTimeout(h.current),clearTimeout(_.current),T.current=!0}return w.on("dismiss",B),()=>{w.off("dismiss",B)}},[r,w]),be.useEffect(()=>{if(!r||!g.current||!s)return;function B(){E()&&d(!1)}const H=Yo(b).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[b,s,d,r,g,v,E]);const A=be.useCallback(function(B){B===void 0&&(B=!0);const H=Kb(f.current,"close",c.current);H&&!m.current?(clearTimeout(h.current),h.current=setTimeout(()=>d(!1),H)):B&&(clearTimeout(h.current),d(!1))},[f,d]),F=be.useCallback(()=>{R.current(),m.current=void 0},[]),V=be.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(V8),k.current=!1}},[P]);return be.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function H(Q){if(clearTimeout(h.current),T.current=!1,i&&!vw(c.current)||a>0&&Kb(f.current,"open")===0)return;v.current.openEvent=Q;const W=Kb(f.current,"open",c.current);W?h.current=setTimeout(()=>{d(!0)},W):d(!0)}function q(Q){if(B())return;R.current();const W=Yo(b);if(clearTimeout(_.current),g.current){clearTimeout(h.current),m.current=g.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const Y=m.current;W.addEventListener("mousemove",Y),R.current=()=>{W.removeEventListener("mousemove",Y)};return}A()}function re(Q){B()||g.current==null||g.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",re),b==null||b.addEventListener("mouseleave",re),l&&Q.addEventListener("mousemove",H,{once:!0}),Q.addEventListener("mouseenter",H),Q.addEventListener("mouseleave",q),()=>{s&&Q.removeEventListener("mouseleave",re),b==null||b.removeEventListener("mouseleave",re),l&&Q.removeEventListener("mousemove",H),Q.removeEventListener("mouseenter",H),Q.removeEventListener("mouseleave",q)}}},[S,b,r,e,i,a,l,A,F,V,d,s,y,f,g,v]),Mr(()=>{var B;if(r&&s&&(B=g.current)!=null&&B.__options.blockPointerEvents&&E()){const re=Yo(b).body;if(re.setAttribute(V8,""),re.style.pointerEvents="none",k.current=!0,na(S)&&b){var H,q;const Q=S,W=y==null||(H=y.nodesRef.current.find(Y=>Y.id===C))==null||(q=H.context)==null?void 0:q.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",b.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",b.style.pointerEvents=""}}}},[r,s,C,b,S,y,g,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),be.useEffect(()=>()=>{F(),clearTimeout(h.current),clearTimeout(_.current),V()},[r,F,V]),be.useMemo(()=>{if(!r)return{};function B(H){c.current=H.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(h.current)},onMouseLeave(){w.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[w,r,a,s,d,A])},KF=be.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),qF=()=>be.useContext(KF),JZ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=be.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=be.useRef(null),l=be.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),be.createElement(KF.Provider,{value:be.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},eJ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=qF();be.useEffect(()=>{i&&(s({delay:{open:1,close:Kb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),be.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const w=window.setTimeout(v,d);return()=>{clearTimeout(w)}}else v()},[r,s,i,o,n,l,d]),be.useEffect(()=>{r&&a(o)},[r,a,o])};function kv(){return kv=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():B8=requestAnimationFrame(i)}function tJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Lg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function M2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const rJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function YF(e){return hd(e)&&e.matches(rJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const mw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function XF(e,t){const r=B1(e,mw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function QF(){return XF(document.body,"next")}function ZF(){return XF(document.body,"prev")}function Dg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function nJ(e){B1(e,mw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function oJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const iJ=_L.useInsertionEffect,aJ=iJ||(e=>e());function mh(e){const t=be.useRef(()=>{});return aJ(()=>{t.current=e}),be.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(a4()&&i("button"),document.addEventListener("keydown",U8),()=>{document.removeEventListener("keydown",U8)}),[]),be.createElement("span",kv({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:ST,onFocus:a=>{a4()&&GF()&&!lJ(a)?(a.persist(),CT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),JF=be.createContext(null),ej=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=be.useState(null),i=Ov(),a=tj();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},sJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=ej({id:r,enabled:!n}),[a,l]=be.useState(null),s=be.useRef(null),d=be.useRef(null),v=be.useRef(null),w=be.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return be.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function b(P){i&&Dg(P)&&(P.type==="focusin"?oJ:nJ)(i)}return i.addEventListener("focusin",b,!0),i.addEventListener("focusout",b,!0),()=>{i.removeEventListener("focusin",b,!0),i.removeEventListener("focusout",b,!0)}},[i,o,a==null?void 0:a.modal]),be.createElement(JF.Provider,{value:be.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:w,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&be.createElement(yw,{"data-type":"outside",ref:s,onFocus:b=>{if(Dg(b,i)){var P;(P=v.current)==null||P.focus()}else{const y=ZF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&be.createElement("span",{"aria-owns":i.id,style:ST}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&be.createElement(yw,{"data-type":"outside",ref:d,onFocus:b=>{if(Dg(b,i)){var P;(P=w.current)==null||P.focus()}else{const y=QF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},tj=()=>be.useContext(JF),uJ=be.forwardRef(function(t,r){return be.createElement("button",kv({},t,{type:"button",ref:r,tabIndex:-1,style:ST}))});function cJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:w,onOpenChange:S,events:b,dataRef:P,elements:{domReference:y,floating:C}}=t,g=oa(n),f=Od(),c=tj(),[h,m]=be.useState(null),_=typeof i=="number"&&i<0,T=be.useRef(null),k=be.useRef(null),R=be.useRef(!1),E=be.useRef(null),A=be.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&YF(y),B=be.useCallback(function(Q){return Q===void 0&&(Q=C),Q?B1(Q,mw()):[]},[C]),H=be.useCallback(Q=>{const W=B(Q);return g.current.map(Y=>y&&Y==="reference"?y:C&&Y==="floating"?C:W).filter(Boolean).flat()},[y,C,g,B]);be.useEffect(()=>{if(!l)return;function Q(Y){if(Y.key==="Tab"){B().length===0&&!V&&Xi(Y);const te=H(),ne=M2(Y);g.current[0]==="reference"&&ne===y&&(Xi(Y),Y.shiftKey?Ys(te[te.length-1]):Ys(te[1])),g.current[1]==="floating"&&ne===C&&Y.shiftKey&&(Xi(Y),Ys(te[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,g,v,V,B,H]),be.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(Y){const te=Y.relatedTarget,ne=!(Ho(y,te)||Ho(C,te)||Ho(te,C)||Ho(c==null?void 0:c.portalNode,te)||te!=null&&te.hasAttribute("data-floating-ui-focus-guard")||f&&(Lg(f.nodesRef.current,w).find(se=>{var ve,ye;return Ho((ve=se.context)==null?void 0:ve.elements.floating,te)||Ho((ye=se.context)==null?void 0:ye.elements.domReference,te)})||tJ(f.nodesRef.current,w).find(se=>{var ve,ye;return((ve=se.context)==null?void 0:ve.elements.floating)===te||((ye=se.context)==null?void 0:ye.elements.domReference)===te})));te&&ne&&!A.current&&te!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,w,f,c,S,d]),be.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function Y(){return[T.current,k.current].filter(Boolean)}if(C&&l){const te=[C,...W,...Y()],ne=AY(g.current.includes("reference")||V?te.concat(y||[]):te);return()=>{ne()}}},[y,C,l,g,c,V]),be.useEffect(()=>{if(l&&!o&&C){const Q=[],W=mw(),Y=B1(Yo(C).body,W),te=H(),ne=Y.filter(se=>!te.includes(se));return ne.forEach((se,ve)=>{Q[ve]=se.getAttribute("tabindex"),se.setAttribute("tabindex","-1")}),()=>{ne.forEach((se,ve)=>{const ye=Q[ve];ye==null?se.removeAttribute("tabindex"):se.setAttribute("tabindex",ye)})}}},[C,l,o,H]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,Y=!1;const te=gd(Q),ne=P.current;E.current=te;const se=H(C),ve=(typeof i=="number"?se[i]:i.current)||C;!_&&Ys(ve,{preventScroll:ve===C});function ye(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const J=ce.data.returnFocus;typeof J=="object"?(W=!0,Y=J.preventScroll):W=J}return b.on("dismiss",ye),()=>{if(b.off("dismiss",ye),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:Y});else{var ce;ne.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:Y}),setTimeout(()=>{delete ne.__syncReturnFocus})}}},[C,H,i,a,P,v,b,_]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(_||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,_,v]);const q=o&&(F||l)&&!V;function re(Q){return s&&l?be.createElement(uJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return be.createElement(be.Fragment,null,q&&be.createElement(yw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const Y=H();Ys(n[0]==="reference"?Y[0]:Y[Y.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Dg(Q,c.portalNode)){const Y=QF()||y;Y==null||Y.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:re("start"),be.cloneElement(r,h===0||n.includes("floating")?{tabIndex:0}:{}),re("end"),q&&be.createElement(yw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(H()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Dg(Q,c.portalNode)){const Y=ZF()||y;Y==null||Y.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const Jy="data-floating-ui-scroll-lock",dJ=be.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(Jy))return;document.body.setAttribute(Jy,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(_T()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(Jy),Object.assign(document.body.style,{overflow:"",[d]:""})};const w=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,b=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(b-Math.floor(w))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(Jy),window.scrollTo(b,P)}},[n]),be.createElement("div",kv({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function H8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function W8(e){return YF(e)}const fJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const w=be.useRef();return be.useMemo(()=>a?{reference:{onPointerDown(S){w.current=S.pointerType},onMouseDown(S){S.button===0&&(vw(w.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&w.current){w.current=void 0;return}vw(w.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){w.current=void 0,v&&(H8(S)||(S.key===" "&&!W8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(H8(S)||W8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function qb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const pJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},hJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},gJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},vJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:w=!0,outsidePress:S=!0,outsidePressEvent:b="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:g=!0}=t===void 0?{}:t;const f=Od(),c=vh()!=null,h=mh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?h:S,_=be.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=gJ(g);return be.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const H=f?Lg(f.nodesRef.current,i):[];if(H.length>0){let q=!0;if(H.forEach(re=>{var Q;if((Q=re.context)!=null&&Q.open&&!re.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const H=_.current;if(_.current=!1,H||typeof m=="function"&&!m(B))return;const q=M2(B);if(hd(q)&&s){const W=s.ownerDocument.defaultView||window,Y=q.scrollWidth>q.clientWidth,te=q.scrollHeight>q.clientHeight;let ne=te&&B.offsetX>q.clientWidth;if(te&&W.getComputedStyle(q).direction==="rtl"&&(ne=B.offsetX<=q.offsetWidth-q.clientWidth),ne||Y&&B.offsetY>q.clientHeight)return}const re=f&&Lg(f.nodesRef.current,i).some(W=>{var Y;return qb(B,(Y=W.context)==null?void 0:Y.elements.floating)});if(qb(B,s)||qb(B,l)||re)return;const Q=f?Lg(f.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(Y=>{var te;if((te=Y.context)!=null&&te.open&&!Y.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:WF(B)||$F(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);w&&F.addEventListener("keydown",R),m&&F.addEventListener(b,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var H;return B!==((H=F.defaultView)==null?void 0:H.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{w&&F.removeEventListener("keydown",R),m&&F.removeEventListener(b,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,w,m,b,o,f,i,r,n,C,v,T,k,c]),be.useEffect(()=>{_.current=!1},[m,b]),be.useMemo(()=>v?{reference:{[pJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[hJ[b]]:()=>{_.current=!0}}}:{},[v,o,P,b,y,n])},mJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const w=be.useRef(""),S=be.useRef(!1),b=be.useRef();return be.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),be.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),be.useEffect(()=>()=>{clearTimeout(b.current)},[]),be.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;w.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&qb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";b.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let $8=!1;const PT="ArrowUp",R2="ArrowDown",Zp="ArrowLeft",om="ArrowRight";function eb(e,t,r){return Math.floor(e/t)!==r}function q0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function N2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function G8(e,t){return N2(t,e===PT||e===R2,e===Zp||e===om)}function Tx(e,t,r){return N2(t,e===R2,r?e===Zp:e===om)||e==="Enter"||e==" "||e===""}function yJ(e,t,r){return N2(t,r?e===Zp:e===om,e===R2)}function bJ(e,t,r){return N2(t,r?e===om:e===Zp,e===PT)}function Ox(e,t){return uo(e,{disabledIndices:t})}function K8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const wJ=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:w=!1,loop:S=!1,nested:b=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:f=!0,disabledIndices:c=void 0,orientation:h="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=vh(),k=Od(),R=mh(s),E=be.useRef(C),A=be.useRef(v??-1),F=be.useRef(null),V=be.useRef(!0),B=be.useRef(R),H=be.useRef(r),q=be.useRef(!1),re=be.useRef(!1),Q=oa(c),W=oa(r),Y=oa(_),[te,ne]=be.useState(),se=be.useCallback(function(ce,J,oe){oe===void 0&&(oe=!1);const ue=ce.current[J.current];y?ne(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:GF()&&a4()?$8||q.current:!1}),requestAnimationFrame(()=>{const Se=Y.current;Se&&ue&&(oe||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,Y]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return $8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(re.current=!0,R(v)):H.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(q.current=!1,v!=null)return;H.current&&(A.current=-1,se(a,A)),!H.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||Tx(F.current,h,P)||b?Ox(a,Q.current):K8(a,Q.current),R(A.current))}else q0(a,l)||(A.current=l,se(a,A,re.current),re.current=!1)},[d,r,l,v,b,a,h,P,R,se,Q]),Mr(()=>{if(d&&H.current&&!r){var ce,J;const oe=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(J=ce.context)==null?void 0:J.elements.floating;oe&&!Ho(oe,gd(Yo(oe)))&&oe.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,H.current=r});const ve=l!=null,ye=be.useMemo(()=>{function ce(oe){if(!r)return;const ue=a.current.indexOf(oe);ue!==-1&&R(ue)}return{onFocus(oe){let{currentTarget:ue}=oe;ce(ue)},onClick:oe=>{let{currentTarget:ue}=oe;return ue.focus({preventScroll:!0})},...g&&{onMouseMove(oe){let{currentTarget:ue}=oe;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,se(a,A),Nu.flushSync(()=>R(null)),!y)){var oe;(oe=o.floating.current)==null||oe.focus({preventScroll:!0})}}}}},[r,o,se,g,a,R,y]);return be.useMemo(()=>{if(!d)return{};const ce=Q.current;function J(Ce){if(V.current=!1,q.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(b&&bJ(Ce.key,h,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Re=A.current,xe=Ox(a,ce),Te=K8(a,ce);if(Ce.key==="Home"&&(A.current=xe,R(A.current)),Ce.key==="End"&&(A.current=Te,R(A.current)),m>1){const Oe=A.current;if(Ce.key===PT){if(Xi(Ce),Oe===-1)A.current=Te;else if(A.current=uo(a,{startingIndex:Oe,amount:m,decrement:!0,disabledIndices:ce}),S&&(Oe-mje?it:it-m}q0(a,A.current)&&(A.current=Oe),R(A.current)}if(Ce.key===R2&&(Xi(Ce),Oe===-1?A.current=xe:(A.current=uo(a,{startingIndex:Oe,amount:m,disabledIndices:ce}),S&&Oe+m>Te&&(A.current=uo(a,{startingIndex:Oe%m-m,amount:m,disabledIndices:ce}))),q0(a,A.current)&&(A.current=Oe),R(A.current)),h==="both"){const je=Math.floor(Oe/m);Ce.key===om&&(Xi(Ce),Oe%m!==m-1?(A.current=uo(a,{startingIndex:Oe,disabledIndices:ce}),S&&eb(A.current,m,je)&&(A.current=uo(a,{startingIndex:Oe-Oe%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:Oe-Oe%m-1,disabledIndices:ce})),eb(A.current,m,je)&&(A.current=Oe)),Ce.key===Zp&&(Xi(Ce),Oe%m!==0?(A.current=uo(a,{startingIndex:Oe,disabledIndices:ce,decrement:!0}),S&&eb(A.current,m,je)&&(A.current=uo(a,{startingIndex:Oe+(m-Oe%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:Oe+(m-Oe%m),decrement:!0,disabledIndices:ce})),eb(A.current,m,je)&&(A.current=Oe));const Ye=Math.floor(Te/m)===je;q0(a,A.current)&&(S&&Ye?A.current=Ce.key===Zp?Te:uo(a,{startingIndex:Oe-Oe%m-1,disabledIndices:ce}):A.current=Oe),R(A.current);return}}if(G8(Ce.key,h)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=Tx(Ce.key,h,P)?xe:Te,R(A.current);return}Tx(Ce.key,h,P)?S?A.current=Re>=Te?w&&Re!==a.current.length?-1:xe:uo(a,{startingIndex:Re,disabledIndices:ce}):A.current=Math.min(Te,uo(a,{startingIndex:Re,disabledIndices:ce})):S?A.current=Re<=xe?w&&Re!==-1?a.current.length:Te:uo(a,{startingIndex:Re,decrement:!0,disabledIndices:ce}):A.current=Math.max(xe,uo(a,{startingIndex:Re,decrement:!0,disabledIndices:ce})),q0(a,A.current)?R(null):R(A.current)}}function oe(Ce){C==="auto"&&WF(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&$F(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&ve&&{"aria-activedescendant":te};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Re=Ce.key.indexOf("Arrow")===0;if(y&&r)return J(Ce);if(!r&&!f&&Re)return;if((Re||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),b){yJ(Ce.key,h,P)&&(Xi(Ce),r?(A.current=Ox(a,ce),R(A.current)):n(!0));return}G8(Ce.key,h)&&(v!=null&&(A.current=v),Xi(Ce),!r&&f?n(!0):J(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:oe,onClick:oe},floating:{"aria-orientation":h==="both"?void 0:h,...Se,onKeyDown:J,onPointerMove(){V.current=!0}},item:ye}},[i,o,te,Q,W,a,d,h,P,y,r,ve,b,v,f,w,m,S,C,R,n,ye])};function _J(e){return be.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const xJ=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=Ov(),a=Ov();return be.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},q8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function SJ(e,t){const[r,n]=be.useState(e);return e&&!r&&n(!0),be.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function rj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=be.useState(!1),[d,v]=be.useState("unmounted"),w=SJ(r,a);return Mr(()=>{l&&!w&&v("unmounted")},[l,w]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:w,status:d}}function CJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=be.useState({}),{isMounted:w,status:S}=rj(e,{duration:a}),b=oa(r),P=oa(n),y=oa(o),C=oa(i),g=typeof a=="number",f=(g?a:a.open)||0,c=(g?a:a.close)||0;return Mr(()=>{const h={side:s,placement:l},m=b.current,_=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(h):m,E=typeof _=="function"?_(h):_,A=typeof k=="function"?k(h):k,F=(typeof T=="function"?T(h):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(q8).join(","),transitionDuration:f+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(q8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,b,P,C,f,S]),{isMounted:w,styles:d}}const PJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:w=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const b=be.useRef(),P=be.useRef(""),y=be.useRef((r=S??a)!=null?r:-1),C=be.useRef(null),g=mh(l),f=oa(d),c=oa(w);return Mr(()=>{n&&(clearTimeout(b.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var h;y.current=(h=S??a)!=null?h:-1}},[n,S,a]),be.useMemo(()=>{if(!s)return{};function h(m){const _=M2(m.nativeEvent);if(na(_)&&(gd(Yo(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,H;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((H=V[1])==null?void 0:H.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(b.current),b.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=f.current?f.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(g(F),C.current=F)}return{reference:{onKeyDown:h},floating:{onKeyDown:h}}},[s,o,i,v,c,f,g])};function Y8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const TJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:w,elements:{floating:S}}=t,b=r.current[a];if(!b)return{};const P={...t,...await jF(-b.offsetTop-w.reference.height/2-b.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await $b(Y8(P,y.scrollHeight),v),g=await $b(P,{...v,elementContext:"reference"}),f=Math.max(0,C.top),c=P.y+f,h=Math.max(0,y.scrollHeight-f-Math.max(0,C.bottom));return y.style.maxHeight=h+"px",y.scrollTop=f,o&&(y.offsetHeight=-s||g.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await $b(Y8({...P,y:c},y.offsetHeight),v)),{y:c}}}),OJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=mh(l),d=be.useRef(!1),v=be.useRef(null),w=be.useRef(null);return be.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!b||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,g=i.current.bottom>=-.5,f=b.scrollHeight-b.clientHeight,c=y<0?-1:1,h=y<0?"max":"min";b.scrollHeight<=b.clientHeight||(!C&&y>0||!g&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[h](y,f*c))})):/firefox/i.test(HF())&&(b.scrollTop+=y))}const b=(a==null?void 0:a.current)||n.floating;if(r&&b)return b.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=b.scrollTop,i.current!=null&&(w.current={...i.current})}),()=>{v.current=null,w.current=null,b.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),be.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const b=S.scrollTop-v.current;(i.current.bottom<-.5&&b<-1||i.current.top<-.5&&b>1)&&Nu.flushSync(()=>s(P=>P+b))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function kJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=w>=n&&r<=(v-s)*(n-d)/(w-d)+s&&(o=!o)}return o}function EJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function MJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:w,elements:S,onClose:b,nodeId:P,tree:y}=s;return function(g){function f(){clearTimeout(o),b()}if(clearTimeout(o),!S.domReference||!S.floating||w==null||d==null||v==null)return;const{clientX:c,clientY:h}=g,m=[c,h],_=M2(g),T=g.type==="mouseleave",k=Ho(S.floating,_),R=Ho(S.domReference,_),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=w.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,H=EJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(g.relatedTarget)&&Ho(S.floating,g.relatedTarget)||y&&Lg(y.nodesRef.current,P).some(W=>{let{context:Y}=W;return Y==null?void 0:Y.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return f();let q=[];switch(F){case"top":q=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&h>=A.top&&h<=E.top+1;break;case"bottom":q=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&h>=E.bottom-1&&h<=A.bottom;break;case"left":q=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&h>=A.top&&h<=A.bottom;break;case"right":q=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&h>=A.top&&h<=A.bottom;break}function re(W){let[Y,te]=W;const ne=A.width>E.width,se=A.height>E.height;switch(F){case"top":{const ve=[ne?Y+r/2:V?Y+r*4:Y-r*4,te+r+1],ye=[ne?Y-r/2:V?Y+r*4:Y-r*4,te+r+1],ce=[[A.left,V||ne?A.bottom-r:A.top],[A.right,V?ne?A.bottom-r:A.top:A.bottom-r]];return[ve,ye,...ce]}case"bottom":{const ve=[ne?Y+r/2:V?Y+r*4:Y-r*4,te-r],ye=[ne?Y-r/2:V?Y+r*4:Y-r*4,te-r],ce=[[A.left,V||ne?A.top+r:A.bottom],[A.right,V?ne?A.top+r:A.bottom:A.top+r]];return[ve,ye,...ce]}case"left":{const ve=[Y+r+1,se?te+r/2:B?te+r*4:te-r*4],ye=[Y+r+1,se?te-r/2:B?te+r*4:te-r*4];return[...[[B||se?A.right-r:A.left,A.top],[B?se?A.right-r:A.left:A.right-r,A.bottom]],ve,ye]}case"right":{const ve=[Y-r,se?te+r/2:B?te+r*4:te-r*4],ye=[Y-r,se?te-r/2:B?te+r*4:te-r*4],ce=[[B||se?A.left+r:A.right,A.top],[B?se?A.left+r:A.right:A.left+r,A.bottom]];return[ve,ye,...ce]}}}const Q=i?q:re([d,v]);if(!i){if(a&&!H)return f();kJ([c,h],Q)?t&&!a&&(o=setTimeout(f,t)):f()}}};return l.__options={blockPointerEvents:n},l}function RJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=WZ(e),i=Od(),a=be.useRef(null),l=be.useRef({}),s=be.useState(()=>VF())[0],[d,v]=be.useState(null),w=be.useCallback(g=>{const f=na(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;o.refs.setReference(f)},[o.refs]),S=be.useCallback(g=>{(na(g)||g===null)&&(a.current=g,v(g)),(na(o.refs.reference.current)||o.refs.reference.current===null||g!==null&&!na(g))&&o.refs.setReference(g)},[o.refs]),b=be.useMemo(()=>({...o.refs,setReference:S,setPositionReference:w,domReference:a}),[o.refs,S,w]),P=be.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=mh(r),C=be.useMemo(()=>({...o,refs:b,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,b,P]);return Mr(()=>{const g=i==null?void 0:i.nodesRef.current.find(f=>f.id===n);g&&(g.context=C)}),be.useMemo(()=>({...o,context:C,refs:b,reference:S,positionReference:w}),[o,b,C,S,w])}function kx(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,w=arguments.length,S=new Array(w),b=0;bP(...S))}}}else o[l]=s}),o),{})}}const NJ=function(e){e===void 0&&(e=[]);const t=e,r=be.useCallback(i=>kx(i,e,"reference"),t),n=be.useCallback(i=>kx(i,e,"floating"),t),o=be.useCallback(i=>kx(i,e,"item"),e.map(i=>i==null?void 0:i.item));return be.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},AJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:JZ,FloatingFocusManager:cJ,FloatingNode:YZ,FloatingOverlay:dJ,FloatingPortal:sJ,FloatingTree:XZ,arrow:HZ,autoPlacement:DZ,autoUpdate:LZ,computePosition:zF,detectOverflow:$b,flip:jZ,getOverflowAncestors:os,hide:VZ,inline:BZ,inner:TJ,limitShift:UZ,offset:jF,platform:FF,safePolygon:MJ,shift:FZ,size:zZ,useClick:fJ,useDelayGroup:eJ,useDelayGroupContext:qF,useDismiss:vJ,useFloating:RJ,useFloatingNodeId:qZ,useFloatingParentNodeId:vh,useFloatingPortalNode:ej,useFloatingTree:Od,useFocus:mJ,useHover:ZZ,useId:Ov,useInnerOffset:OJ,useInteractions:NJ,useListNavigation:wJ,useMergeRefs:_J,useRole:xJ,useTransitionStatus:rj,useTransitionStyles:CJ,useTypeahead:PJ},Symbol.toStringTag,{value:"Module"})),wn=Lv(AJ);var nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return b}});var r=d(X),n=d(pt),o=Ze,i=d(Je),a=qe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,h=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(h.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},f,{ref:y,className:_}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var b=S})(nj);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{DialogBody:function(){return b},default:function(){return P}});var r=v(X),n=v(pt),o=Ze,i=v(Je),a=qe,l=sh;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.divider,f=y.className,c=y.children,h=w(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,_=m.defaultProps,T=m.styles.base;f=(0,o.twMerge)(_.className||"",f);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),g)),f);return r.default.createElement("div",d({},h,{ref:C,className:k}),c)});b.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},b.displayName="MaterialTailwind.DialogBody";var P=b})(oj);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return b}});var r=d(X),n=d(pt),o=Ze,i=d(Je),a=qe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,h=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(h.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},f,{ref:y,className:_}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var b=S})(ij);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return b.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=f(X),n=f(nt),o=wn,i=An,a=f(pt),l=f(Xn),s=Ze,d=f(Sr),v=f(Je),w=qe,S=sh,b=nj,P=oj,y=ij;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function g(){return g=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,H=E.dismiss,q=E.animate,re=E.className,Q=E.children,W=_(E,["open","handler","size","dismiss","animate","className","children"]),Y=(0,w.useTheme)().dialog,te=Y.defaultProps,ne=Y.valid,se=Y.styles,ve=se.base,ye=se.sizes;V=V??void 0,B=B??te.size,H=H??te.dismiss,q=q??te.animate,re=(0,s.twMerge)(te.className||"",re);var ce=(0,a.default)((0,v.default)(ve.backdrop)),J=(0,s.twMerge)((0,a.default)((0,v.default)(ve.container),(0,v.default)(ye[(0,d.default)(ne.sizes,B,"md")])),re),oe={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(oe,q),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Re=Ce.floating,xe=Ce.context,Te=(0,o.useId)(),Oe="".concat(Te,"-label"),je="".concat(Te,"-description"),Ye=(0,o.useInteractions)([(0,o.useClick)(xe),(0,o.useRole)(xe),(0,o.useDismiss)(xe,H)]).getFloatingProps,it=(0,o.useMergeRefs)([A,Re]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:xe},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,g({},Ye(m(c({},W),{ref:it,className:J,"aria-labelledby":Oe,"aria-describedby":je})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:b.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(fL);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=S(Sr),a=S(Je),l=qe,s=Hv,d=Ze;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.color,m=g.size,_=g.label,T=g.error,k=g.success,R=g.icon,E=g.containerProps,A=g.labelProps,F=g.className,V=g.shrink,B=g.inputRef,H=b(g,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),q=(0,l.useTheme)().input,re=q.defaultProps,Q=q.valid,W=q.styles,Y=W.base,te=W.variants;c=c??re.variant,m=m??re.size,h=h??re.color,_=_??re.label,A=A??re.labelProps,E=E??re.containerProps,V=V??re.shrink,R=R??re.icon,F=(0,d.twMerge)(re.className||"",F);var ne=te[(0,i.default)(Q.variants,c,"outlined")],se=ne.sizes[(0,i.default)(Q.sizes,m,"md")],ve=(0,a.default)(ne.error.input),ye=(0,a.default)(ne.success.input),ce=(0,a.default)(ne.shrink.input),J=(0,a.default)(ne.colors.input[(0,i.default)(Q.colors,h,"gray")]),oe=(0,a.default)(ne.error.label),ue=(0,a.default)(ne.success.label),Se=(0,a.default)(ne.shrink.label),Ce=(0,a.default)(ne.colors.label[(0,i.default)(Q.colors,h,"gray")]),Re=(0,o.default)((0,a.default)(Y.container),(0,a.default)(se.container),E==null?void 0:E.className),xe=(0,o.default)((0,a.default)(Y.input),(0,a.default)(ne.base.input),(0,a.default)(se.input),v({},(0,a.default)(ne.base.inputWithIcon),R),v({},J,!T&&!k),v({},ve,T),v({},ye,k),v({},ce,V),F),Te=(0,o.default)((0,a.default)(Y.label),(0,a.default)(ne.base.label),(0,a.default)(se.label),v({},Ce,!T&&!k),v({},oe,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),Oe=(0,o.default)((0,a.default)(Y.icon),(0,a.default)(ne.base.icon),(0,a.default)(se.icon)),je=(0,o.default)((0,a.default)(Y.asterisk));return r.default.createElement("div",w({},E,{ref:f,className:Re}),R&&r.default.createElement("div",{className:Oe},R),r.default.createElement("input",w({},H,{ref:B,className:xe,placeholder:(H==null?void 0:H.placeholder)||" "})),r.default.createElement("label",w({},A,{className:Te}),_," ",H.required?r.default.createElement("span",{className:je},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(aj);var lj={},im={},yh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return w},propTypesDisabled:function(){return S},propTypesClassName:function(){return b},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(nt),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,w=r.default.bool,S=r.default.bool,b=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(yh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(X),n=yh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(im);var sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{MenuCore:function(){return C},default:function(){return g}});var r=w(X),n=w(nt),o=wn,i=w(Xn),a=qe,l=im,s=yh;function d(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,m=new Array(c);h=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.children,f=w(y,["children"]),c=(0,o.useMenu)(),h=c.getReferenceProps,m=c.reference,_=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(g,s({},h(s(v(s({},f),{ref:T,onClick:function(R){R.stopPropagation()}}),_&&{role:"menuitem"}))))});b.propTypes={children:i.propTypesChildren},b.displayName="MaterialTailwind.MenuHandler";var P=b})(uj);var cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(X),n=wn,o=An,i=S(pt),a=Ze,l=S(Je),s=qe,d=im,v=yh;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.children,h=g.className,m=b(g,["children","className"]),_=(0,s.useTheme)().menu,T=_.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,H=k.listItemsRef,q=k.getFloatingProps,re=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,Y=k.context,te=k.activeIndex,ne=k.tree,se=k.allowHover,ve=k.internalAllowHover,ye=k.setActiveIndex,ce=k.nested;h=h??"";var J=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),h),oe=(0,n.useMergeRefs)([f,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,w({},m,{ref:oe,style:{position:A,top:V??0,left:F??0},className:J},q({onKeyDown:function(Re){Re.key==="Tab"&&(E(!1),Re.shiftKey&&Re.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Re){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,re({tabIndex:te===Re?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Te){H.current[Re]=Te},onClick:function(Te){if(Ce.props.onClick){var Oe,je;(je=(Oe=Ce.props).onClick)===null||je===void 0||je.call(Oe,Te)}ne==null||ne.events.emit("click")},onMouseEnter:function(){(se&&R||ve&&R)&&ye(Re)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:Y,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:Y,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(cj);var dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{MenuItem:function(){return b},default:function(){return P}});var r=v(X),n=v(pt),o=Ze,i=v(Je),a=qe,l=yh;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.className,f=g===void 0?"":g,c=y.disabled,h=c===void 0?!1:c,m=y.children,_=w(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),h)),f);return r.default.createElement("button",d({},_,{ref:C,role:"menuitem",className:R}),m)});b.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},b.displayName="MaterialTailwind.MenuItem";var P=b})(dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return w},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(X),n=wn,o=im,i=sj,a=uj,l=cj,s=dj;function d(){return d=Object.assign||function(b){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.open,h=g.animate,m=g.className,_=g.children,T=b(g,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. + +More details: https://www.material-tailwind.com/docs/react/collapse + `);var R=r.default.useRef(null),E=(0,d.useTheme)().navbar,A=E.styles,F=A.base.mobileNav;h=h??{},m=m??"";var V=(0,l.twMerge)((0,a.default)((0,s.default)(F)),m),B={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=R.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},H=(0,i.default)(B,h),q=n.AnimatePresence,re=(0,o.useMergeRefs)([f,R]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(q,null,r.default.createElement(n.m.div,w({},T,{ref:re,className:V,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:H}),_)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(pj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Navbar:function(){return C},MobileNav:function(){return d.MobileNav},default:function(){return g}});var r=b(X),n=b(nt),o=b(pt),i=Ze,a=b(Sr),l=b(Je),s=qe,d=pj,v=Zw;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.variant,m=f.color,_=f.shadow,T=f.blurred,k=f.fullWidth,R=f.className,E=f.children,A=P(f,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,H=F.styles,q=H.base,re=H.variants;h=h??V.variant,m=m??V.color,_=_??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(q.navbar.initial),(Q={},w(Q,(0,l.default)(q.navbar.shadow),_),w(Q,(0,l.default)(q.navbar.blurred),T&&m==="white"),w(Q,(0,l.default)(q.navbar.fullWidth),k),Q)),Y=(0,o.default)((0,l.default)(re[(0,a.default)(B.variants,h,"filled")][(0,a.default)(B.colors,m,"white")])),te=(0,i.twMerge)((0,o.default)(W,Y),R);return r.default.createElement("nav",S({},A,{ref:c,className:te}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var g=Object.assign(C,{MobileNav:d.MobileNav})})(fj);var hj={},A2={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return w},propTypesInteractive:function(){return S},propTypesClassName:function(){return b},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(nt),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,w=r.default.node,S=r.default.bool,b=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(X),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(A2);var gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{PopoverHandler:function(){return b},default:function(){return P}});var r=l(X),n=wn,o=A2,i=bh;function a(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.children,f=w(y,["children"]),c=(0,o.usePopover)(),h=c.getReferenceProps,m=c.reference,_=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(g,s({},h(v(s({},f),{ref:_}))))});b.propTypes={children:i.propTypesChildren},b.displayName="MaterialTailwind.PopoverHandler";var P=b})(gj);var vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{PopoverContent:function(){return c},default:function(){return h}});var r=b(X),n=wn,o=An,i=b(pt),a=Ze,l=b(Je),s=qe,d=A2,v=bh;function w(m,_,T){return _ in m?Object.defineProperty(m,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[_]=T,m}function S(){return S=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function f(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,_){var T=m.children,k=m.className,R=g(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,H=V.strategy,q=V.x,re=V.y,Q=V.context,W=V.floating,Y=V.getFloatingProps,te=V.appliedAnimation,ne=V.labelId,se=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var ve=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),ye=(0,n.useMergeRefs)([_,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},Y(C(P({},R),{ref:ye,className:ve,style:{position:H,top:re??"",left:q??""},"aria-labelledby":ne,"aria-describedby":se})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:te}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var h=c})(vj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return f},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=b(X),n=b(nt),o=wn,i=b(Xn),a=qe,l=A2,s=bh,d=gj,v=vj;function w(h,m){(m==null||m>h.length)&&(m=h.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.color,m=g.size,_=g.value,T=g.label,k=g.className,R=g.barProps,E=b(g,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,H=B.base,q=B.variants,re=B.sizes;c=c??F.variant,h=h??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(q[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,h,"gray")]),W=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].container.initial),Y=(0,o.default)((0,l.default)(H.container.initial),W),te=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].container.withLabel),ne=(0,o.default)((0,l.default)(H.container.withLabel),te),se=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].bar),ve=(0,o.default)((0,l.default)(H.bar),se),ye=(0,i.twMerge)((0,o.default)(Y,v({},ne,T)),k),ce=(0,i.twMerge)((0,o.default)(ve,Q),R==null?void 0:R.className);return r.default.createElement("div",w({},E,{ref:f,className:ye}),r.default.createElement("div",w({},R,{className:ce,style:{width:"".concat(_,"%")}}),T&&"".concat(_,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(mj);var yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Radio:function(){return C},default:function(){return g}});var r=b(X),n=b(nt),o=b(dh),i=b(pt),a=Ze,l=b(Sr),s=b(Je),d=qe,v=Sd;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.color,m=f.label,_=f.icon,T=f.ripple,k=f.className,R=f.disabled,E=f.containerProps,A=f.labelProps,F=f.iconProps,V=f.inputRef,B=P(f,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().radio,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.colors,te=r.default.useId();h=h??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ye=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(re.colors,h,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,i.default)((0,i.default)((0,s.default)(W.icon)),Y[(0,l.default)(re.colors,h,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||te,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:ye,id:B.id||te})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||te}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var g=C})(yj);var bj={},TT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,w){for(var S in w)Object.defineProperty(v,S,{enumerable:!0,get:w[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(X),n=An,o=Wv;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var w=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){w.current=v},[v]),w.current}var d=function(v){var w=v.value,S=v.children;return r.default.createElement(a.Provider,{value:w},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(TT);var wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=w(X),n=w(pt),o=Ze,i=w(Je),a=qe,l=TT,s=Wv;function d(C,g,f){return g in C?Object.defineProperty(C,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):C[g]=f,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=function(C){var g=function(){Q(_),te(h),Y(!1),se(null)},f=function(Re){(Re.key==="Enter"||Re.key===" "&&!ye.current.typing)&&(Re.preventDefault(),g())},c=C.value,h=c===void 0?"":c,m=C.index,_=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,H=B.base,q=(0,l.useSelect)(),re=q.selectedIndex,Q=q.setSelectedIndex,W=q.listRef,Y=q.setOpen,te=q.onChange,ne=q.activeIndex,se=q.setActiveIndex,ve=q.getItemProps,ye=q.dataRef,ce=(0,i.default)(H.option.initial),J=(0,i.default)(H.option.active),oe=(0,i.default)(H.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,J,re===_),d(ue,oe,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[_]=Ce},className:Se,disabled:k,tabIndex:ne===_?0:1,"aria-selected":ne===_&&re===_,"data-selected":re===_},ve({onClick:function(Ce){var Re=F==null?void 0:F.onClick;typeof Re=="function"&&(Re(Ce),g()),g()},onKeyDown:function(Ce){var Re=F==null?void 0:F.onKeyDown;typeof Re=="function"&&(Re(Ce),f(Ce)),f(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(wj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,Y){for(var te in Y)Object.defineProperty(W,te,{enumerable:!0,get:Y[te]})}t(e,{Select:function(){return re},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=h(X),n=h(nt),o=wn,i=An,a=h(pt),l=Ze,s=h(Xn),d=h(Sr),v=h(Je),w=qe,S=TT,b=Wv,P=wj;function y(W,Y){(Y==null||Y>W.length)&&(Y=W.length);for(var te=0,ne=new Array(Y);te=0)&&Object.prototype.propertyIsEnumerable.call(W,ne)&&(te[ne]=W[ne])}return te}function V(W,Y){if(W==null)return{};var te={},ne=Object.keys(W),se,ve;for(ve=0;ve=0)&&(te[se]=W[se]);return te}function B(W,Y){return C(W)||_(W,Y)||q(W,Y)||T()}function H(W){return g(W)||m(W)||q(W)||k()}function q(W,Y){if(W){if(typeof W=="string")return y(W,Y);var te=Object.prototype.toString.call(W).slice(8,-1);if(te==="Object"&&W.constructor&&(te=W.constructor.name),te==="Map"||te==="Set")return Array.from(te);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return y(W,Y)}}var re=r.default.forwardRef(function(W,Y){var te=W.variant,ne=W.color,se=W.size,ve=W.label,ye=W.error,ce=W.success,J=W.arrow,oe=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Re=W.dismiss,xe=W.animate,Te=W.lockScroll,Oe=W.labelProps,je=W.menuProps,Ye=W.className,it=W.disabled,Mt=W.name,gt=W.children,Tt=W.containerProps,_t=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),ir,Wt=(0,w.useTheme)().select,Lt=Wt.defaultProps,Zt=Wt.valid,Dr=Wt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),rr=Ln[0],mo=Ln[1];te=te??Lt.variant,ne=ne??Lt.color,se=se??Lt.size,ve=ve??Lt.label,ye=ye??Lt.error,ce=ce??Lt.success,J=J??Lt.arrow,oe=oe??Lt.value,ue=ue??Lt.onChange,Se=Se??Lt.selected,Ce=Ce??Lt.offset,Re=Re??Lt.dismiss,xe=xe??Lt.animate,Oe=Oe??Lt.labelProps,je=je??Lt.menuProps;var qt;Tt=(qt=(0,s.default)(Tt,(Lt==null?void 0:Lt.containerProps)||{}))!==null&&qt!==void 0?qt:Lt.containerProps,Ye=(0,l.twMerge)(Lt.className||"",Ye),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(H((Qr=r.default.Children.map(gt,function(at){var tt=at.props;return tt==null?void 0:tt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(tt){var xt=tt.rects,cn=tt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(xt==null||(wo=xt.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,ae=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(oe)+1))},[oe]);var pe=ga.floating,_e=(0,o.useInteractions)([(0,o.useClick)(ae),(0,o.useRole)(ae,{role:"listbox"}),(0,o.useDismiss)(ae,R({},Re)),(0,o.useListNavigation)(ae,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(ae,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Ee=_e.getReferenceProps,Be=_e.getFloatingProps,Xe=_e.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=pe.current;if(Sn&&pa&&at){var tt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(tt&&Fi!=null){var xt,cn,wr=(cn=(xt=yo.current[Fi])===null||xt===void 0?void 0:xt.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=tt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Xe,dataRef:ae.dataRef}},[$r,ue,sn,Xe,ae.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&oe?"withValue":"close")},[Sn,oe,$r,Se]);var De=Qn[(0,d.default)(Zt.variants,te,"outlined")],Qe=De.sizes[(0,d.default)(Zt.sizes,se,"md")],We=De.error.select,$e=De.success.select,Ot=De.colors.select[(0,d.default)(Zt.colors,ne,"gray")],Rt=De.error.label,Bt=De.success.label,yt=De.colors.label[(0,d.default)(Zt.colors,ne,"gray")],dr=De.states[rr],nr=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Qe.container),Tt==null?void 0:Tt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(De.base.select),(0,v.default)(dr.select),(0,v.default)(Qe.select),f({},(0,v.default)(Ot[rr]),!ye&&!ce),f({},(0,v.default)(We.initial),ye),f({},(0,v.default)(We.states[rr]),ye),f({},(0,v.default)($e.initial),ce),f({},(0,v.default)($e.states[rr]),ce)),Ye),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(De.base.label),(0,v.default)(dr.label),(0,v.default)(Qe.label.initial),(0,v.default)(Qe.label.states[rr]),f({},(0,v.default)(yt[rr]),!ye&&!ce),f({},(0,v.default)(Rt.initial),ye),f({},(0,v.default)(Rt.states[rr]),ye),f({},(0,v.default)(Bt.initial),ce),f({},(0,v.default)(Bt.states[rr]),ce)),(Fr=Oe.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),f({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=je.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",te==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},Nt=(0,s.default)(Zr,xe),Ue=i.AnimatePresence;r.default.useEffect(function(){oe&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[oe,ue]);var At=r.default.createElement(o.FloatingFocusManager,{context:ae,modal:!1},r.default.createElement(i.m.ul,c({},Be(A(R({},je),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(tt){var xt=je==null?void 0:je.onPointerEnter;typeof xt=="function"&&(xt(tt),Dn(!1)),Dn(!1)},onPointerMove:function(tt){var xt=je==null?void 0:je.onPointerMove;typeof xt=="function"&&(xt(tt),Dn(!1)),Dn(!1)},onKeyDown:function(tt){var xt=je==null?void 0:je.onKeyDown;typeof xt=="function"&&(xt(tt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:Nt}),r.default.Children.map(gt,function(at,tt){var xt;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((xt=at.props)===null||xt===void 0?void 0:xt.index)||tt+1,id:"material-tailwind-select-".concat(tt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},Tt,{ref:Y,className:nr}),r.default.createElement("button",c({type:"button"},Ee(A(R({},_t),{ref:ga.setReference,className:Fn,disabled:it,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):oe&&!ue?r.default.createElement("span",{className:un},oe):r.default.createElement("span",c({},(ir=gt[$r-1])===null||ir===void 0?void 0:ir.props,{className:un})),r.default.createElement("div",{className:Zn},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},Oe,{className:jn}),ve),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(Ue,null,Sn&&r.default.createElement(r.default.Fragment,null,Te?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},At):At)))))});re.propTypes={variant:n.default.oneOf(b.propTypesVariant),color:n.default.oneOf(b.propTypesColor),size:n.default.oneOf(b.propTypesSize),label:b.propTypesLabel,error:b.propTypesError,success:b.propTypesSuccess,arrow:b.propTypesArrow,value:b.propTypesValue,onChange:b.propTypesOnChange,selected:b.propTypesSelected,offset:b.propTypesOffset,dismiss:b.propTypesDismiss,animate:b.propTypesAnimate,lockScroll:b.propTypesLockScroll,labelProps:b.propTypesLabelProps,menuProps:b.propTypesMenuProps,className:b.propTypesClassName,disabled:b.propTypesDisabled,name:b.propTypesName,children:b.propTypesChildren,containerProps:b.propTypesContainerProps},re.displayName="MaterialTailwind.Select";var Q=Object.assign(re,{Option:P.SelectOption})})(bj);var _j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Switch:function(){return C},default:function(){return g}});var r=b(X),n=b(nt),o=b(dh),i=b(pt),a=Ze,l=b(Sr),s=b(Je),d=qe,v=Sd;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.color,m=f.label,_=f.ripple,T=f.className,k=f.disabled,R=f.containerProps,E=f.circleProps,A=f.labelProps,F=f.inputRef,V=P(f,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),H=B.switch,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.colors,te=r.default.useId();h=h??q.color,_=_??q.ripple,k=k??q.disabled,R=R??q.containerProps,A=A??q.labelProps,E=E??q.circleProps,T=(0,a.twMerge)(q.className||"",T);var ne=_!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),k)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),ye=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(re.colors,h,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),Y[(0,l.default)(re.colors,h,"gray")].circle,Y[(0,l.default)(re.colors,h,"gray")].before),E==null?void 0:E.className),J=(0,i.default)((0,s.default)(W.ripple)),oe=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("div",S({},R,{className:ve}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||te,className:ye})),r.default.createElement("label",S({},E,{htmlFor:V.id||te,className:ce}),_&&r.default.createElement("div",{className:J,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return _&&ne.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||te,className:oe}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var g=C})(_j);var xj={},wh={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return w},propTypesChildren:function(){return S}});var r=o(nt),n=br;function o(b){return b&&b.__esModule?b:{default:b}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),w=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return g},TabsContextProvider:function(){return f},setId:function(){return c},setActive:function(){return h},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(X),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.value,h=g.className,m=g.activeClassName,_=g.disabled,T=g.children,k=b(g,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,H=V.dispatch,q=B.id,re=B.active,Q=B.indicatorProps;_=_??A.disabled,h=(0,i.twMerge)(A.className||"",h),m=(0,i.twMerge)(A.activeClassName||"",m);var W,Y=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),_),v(W,m,re===c),W)),h),te,ne=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(te=Q==null?void 0:Q.className)!==null&&te!==void 0?te:"");return r.default.createElement("li",w({},k,{ref:f,role:"tab",className:Y,onClick:function(se){var ve=k==null?void 0:k.onClick;typeof ve=="function"&&((0,s.setActive)(H,c),(0,s.setIsInitial)(H,!1),ve(se)),(0,s.setIsInitial)(H,!1),(0,s.setActive)(H,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),re===c&&r.default.createElement(n.motion.div,w({},Q,{transition:{duration:.5},className:ne,layoutId:q})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(Sj);var Cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(X),n=An,o=S(Xn),i=S(pt),a=Ze,l=S(Je),s=qe,d=wh,v=kd;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.animate,h=g.className,m=g.children,_=b(g,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,h=(0,a.twMerge)(k.className||"",h);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),h),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",w({},_,{ref:f,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=w(X),n=w(pt),o=Ze,i=w(Je),a=qe,l=wh,s=kd;function d(C,g,f){return g in C?Object.defineProperty(C,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):C[g]=f,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.indicatorProps,c=C.className,h=C.children,m=S(C,["indicatorProps","className","children"]),_=(0,a.useTheme)().tabsHeader,T=_.defaultProps,k=_.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,f)},[A,f]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:g,role:"tablist",className:V}),h))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Pj);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=w(X),n=An,o=w(pt),i=Ze,a=w(Je),l=qe,s=wh,d=kd;function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.value,c=C.className,h=C.children,m=S(C,["value","className","children"]),_=(0,l.useTheme)().tabPanel,T=_.defaultProps,k=_.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:g,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===f?"mount":F?"initial":"unmount",variants:A,"data-value":f}),h)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Tj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return f},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return w.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(X),n=y(pt),o=Ze,i=y(Je),a=qe,l=wh,s=Sj,d=Cj,v=Pj,w=Tj,S=kd;function b(h,m,_){return m in h?Object.defineProperty(h,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):h[m]=_,h}function P(){return P=Object.assign||function(h){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function g(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}var f=r.default.forwardRef(function(h,m){var _=h.value,T=h.className,k=h.orientation,R=h.children,E=C(h,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var H=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),b({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:_,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:H}),R))});f.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},f.displayName="MaterialTailwind.Tabs";var c=Object.assign(f,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:w.TabPanel})})(xj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=S(Sr),a=S(Je),l=qe,s=Hv,d=Ze;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.color,m=g.size,_=g.label,T=g.error,k=g.success,R=g.resize,E=g.labelProps,A=g.containerProps,F=g.shrink,V=g.className,B=b(g,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),H=(0,l.useTheme)().textarea,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.variants;c=c??q.variant,m=m??q.size,h=h??q.color,_=_??q.label,E=E??q.labelProps,A=A??q.containerProps,F=F??q.shrink,V=(0,d.twMerge)(q.className||"",V);var te=Y[(0,i.default)(re.variants,c,"outlined")],ne=(0,a.default)(te.error.textarea),se=(0,a.default)(te.success.textarea),ve=(0,a.default)(te.shrink.textarea),ye=(0,a.default)(te.colors.textarea[(0,i.default)(re.colors,h,"gray")]),ce=(0,a.default)(te.error.label),J=(0,a.default)(te.success.label),oe=(0,a.default)(te.shrink.label),ue=(0,a.default)(te.colors.label[(0,i.default)(re.colors,h,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(te.base.textarea),(0,a.default)(te.sizes[(0,i.default)(re.sizes,m,"md")].textarea),v({},ye,!T&&!k),v({},ne,T),v({},se,k),v({},ve,F),R?"":"!resize-none",V),Re=(0,o.default)((0,a.default)(W.label),(0,a.default)(te.base.label),(0,a.default)(te.sizes[(0,i.default)(re.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},J,k),v({},oe,F),E==null?void 0:E.className),xe=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:f,className:Se},r.default.createElement("textarea",w({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Re},_," ",B.required?r.default.createElement("span",{className:xe},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(Oj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(X),n=C(nt),o=wn,i=An,a=C(pt),l=Ze,s=C(Xn),d=C(Je),v=qe,w=bh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,H=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,H)&&(B[H]=F[H])}return B}function T(F,V){if(F==null)return{};var B={},H=Object.keys(F),q,re;for(re=0;re=0)&&(B[q]=F[q]);return B}function k(F,V){return b(F)||g(F,V)||R(F,V)||f()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,H=F.handler,q=F.content,re=F.interactive,Q=F.placement,W=F.offset,Y=F.dismiss,te=F.animate,ne=F.className,se=F.children,ve=_(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),ye=(0,v.useTheme)().tooltip,ce=ye.defaultProps,J=ye.styles.base,oe=k(r.default.useState(!1),2),ue=oe[0],Se=oe[1];B=B??ue,H=H??Se,re=re??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,Y=Y??ce.dismiss,te=te??ce.animate,ne=(0,l.twMerge)(ce.className||"",ne);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(J)),ne),Re={unmount:{opacity:0},mount:{opacity:1}},xe=(0,s.default)(Re,te),Te=(0,o.useFloating)({open:B,onOpenChange:H,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),Oe=Te.x,je=Te.y,Ye=Te.reference,it=Te.floating,Mt=Te.strategy,gt=Te.refs,Tt=Te.update,_t=Te.context,ir=(0,o.useInteractions)([(0,o.useClick)(_t,{enabled:re}),(0,o.useFocus)(_t),(0,o.useHover)(_t),(0,o.useRole)(_t,{role:"tooltip"}),(0,o.useDismiss)(_t,Y)]),Wt=ir.getReferenceProps,Lt=ir.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,Tt)},[B,Tt,gt.reference,gt.floating]);var Zt=(0,o.useMergeRefs)([V,it]),Dr=(0,o.useMergeRefs)([V,Ye]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof se=="string"?r.default.createElement("span",y({},Wt({ref:Dr})),se):r.default.cloneElement(se,c({},Wt(m(c({},se==null?void 0:se.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Lt(m(c({},ve),{ref:Zt,className:Ce,style:{position:Mt,top:je??"",left:Oe??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:xe}),q)))))});E.propTypes={open:w.propTypesOpen,handler:w.propTypesHandler,content:w.propTypesContent,interactive:w.propTypesInteractive,placement:n.default.oneOf(w.propTypesPlacement),offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,className:w.propTypesClassName,children:w.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(kj);var Ej={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{Typography:function(){return g},default:function(){return f}});var r=w(X),n=w(nt),o=w(pt),i=Ze,a=w(Sr),l=w(Je),s=qe,d=UP;function v(c,h,m){return h in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}function w(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,h){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(h.indexOf(T)>=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,h){var m=c.variant,_=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,H=F.styles,q=H.variants,re=H.colors,Q=H.textGradient;m=m??V.variant,_=_??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(q[(0,a.default)(B.variants,m,"paragraph")]),Y=re[(0,a.default)(B.colors,_,"inherit")],te=(0,l.default)(Q),ne=(0,i.twMerge)((0,o.default)(W,v({},Y.color,!T),v({},te,T),v({},Y.gradient,T)),R),se;switch(m){case"h1":se=r.default.createElement(k||"h1",P(S({},A),{ref:h,className:ne}),E);break;case"h2":se=r.default.createElement(k||"h2",P(S({},A),{ref:h,className:ne}),E);break;case"h3":se=r.default.createElement(k||"h3",P(S({},A),{ref:h,className:ne}),E);break;case"h4":se=r.default.createElement(k||"h4",P(S({},A),{ref:h,className:ne}),E);break;case"h5":se=r.default.createElement(k||"h5",P(S({},A),{ref:h,className:ne}),E);break;case"h6":se=r.default.createElement(k||"h6",P(S({},A),{ref:h,className:ne}),E);break;case"lead":se=r.default.createElement(k||"p",P(S({},A),{ref:h,className:ne}),E);break;case"paragraph":se=r.default.createElement(k||"p",P(S({},A),{ref:h,className:ne}),E);break;case"small":se=r.default.createElement(k||"p",P(S({},A),{ref:h,className:ne}),E);break;default:se=r.default.createElement(k||"p",P(S({},A),{ref:h,className:ne}),E);break}return se});g.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},g.displayName="MaterialTailwind.Typography";var f=g})(Ej);var Mj={},Rj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(nt),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Rj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(X),n=An,o=wn,i=S(Xn),a=S(pt),l=Ze,s=S(Je),d=qe,v=Rj;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.open,h=g.animate,m=g.className,_=g.children,T=b(g,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;h=h??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,h),H=n.AnimatePresence,q=(0,o.useMergeRefs)([f,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(H,null,r.default.createElement(n.m.div,w({},T,{ref:q,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Mj);var Nj={},am={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(nt);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(am);var Aj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return b}});var r=d(X),n=qe,o=d(pt),i=Ze,a=d(Je),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,n.useTheme)().list,h=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(h.itemPrefix)),C);return r.default.createElement("div",s({},f,{ref:y,className:m}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var b=S})(OT);var kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return b}});var r=d(X),n=qe,o=d(pt),i=Ze,a=d(Je),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,n.useTheme)().list,h=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(h.itemSuffix)),C);return r.default.createElement("div",s({},f,{ref:y,className:m}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var b=S})(kT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return g}});var r=b(X),n=qe,o=b(dh),i=b(pt),a=Ze,l=b(Je),s=am,d=OT,v=kT;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.className,m=f.disabled,_=f.selected,T=f.ripple,k=f.children,R=P(f,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,H=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},w(B,(0,l.default)(F.item.disabled),m),w(B,(0,l.default)(F.item.selected),_&&!m),B)),h);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:H,onMouseDown:function(q){var re=R==null?void 0:R.onMouseDown;return T&&V.create(q,"dark"),typeof re=="function"&&re(q)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var g=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Aj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(X),n=qe,o=S(pt),i=Ze,a=S(Je),l=am,s=Aj,d=OT,v=kT;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.className,h=g.children,m=b(g,["className","children"]),_=(0,n.useTheme)().list,T=_.defaultProps,k=_.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",w({},m,{ref:f,className:R}),h)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Nj);var Ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=Ze,a=S(Sr),l=S(Je),s=qe,d=_d;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.size,m=g.color,_=g.fullWidth,T=g.ripple,k=g.className,R=g.children,E=b(g,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,H=V.base,q=V.dividerColor;c=c??F.variant,h=h??F.size,m=m??F.color,T=T??F.ripple,_=_??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var re,Q=(0,i.twMerge)((0,o.default)((0,l.default)(H.initial),(re={},v(re,(0,l.default)(H.fullWidth),_),v(re,"divide-x",c!=="outlined"),v(re,(0,l.default)(q[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),re)),k);return r.default.createElement("div",w({},E,{ref:f,className:Q}),r.default.Children.map(R,function(W,Y){var te;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:h,color:m,ripple:T,fullWidth:_,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":Y!==r.default.Children.count(R)-1,"border-r-0":Y!==r.default.Children.count(R)-1,"rounded-l-none":Y!==0}),(te=W.props)===null||te===void 0?void 0:te.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Ij);var Lj={},Dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return w},propTypesChildren:function(){return S},propTypesSlideRef:function(){return b}});var r=n(nt);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,w=r.default.bool,S=r.default.node.isRequired,b=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,T){for(var k in T)Object.defineProperty(_,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return h},default:function(){return m}});var r=b(X),n=An,o=wn,i=b(pt),a=Ze,l=b(Je),s=qe,d=Dj;function v(_,T){(T==null||T>_.length)&&(T=_.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(k[R]=_[R])}return k}function g(_,T){if(_==null)return{};var k={},R=Object.keys(_),E,A;for(A=0;A=0)&&(k[E]=_[E]);return k}function f(_,T){return w(_)||P(_,T)||c(_,T)||y()}function c(_,T){if(_){if(typeof _=="string")return v(_,T);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(_,T)}}var h=r.default.forwardRef(function(_,T){var k=_.children,R=_.prevArrow,E=_.nextArrow,A=_.navigation,F=_.autoplay,V=_.autoplayDelay,B=_.transition,H=_.loop,q=_.className,re=_.slideRef,Q=C(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,Y=W.defaultProps,te=W.styles.base,ne=(0,n.useMotionValue)(0),se=r.default.useRef(null),ve=f(r.default.useState(0),2),ye=ve[0],ce=ve[1],J=r.default.Children.toArray(k);R=R??Y.prevArrow,E=E??Y.nextArrow,A=A??Y.navigation,F=F??Y.autoplay,V=V??Y.autoplayDelay,B=B??Y.transition,H=H??Y.loop,q=(0,a.twMerge)(Y.className||"",q);var oe=(0,a.twMerge)((0,i.default)((0,l.default)(te.carousel)),q),ue=(0,a.twMerge)((0,i.default)((0,l.default)(te.slide))),Se=r.default.useCallback(function(){var Te;return-ye*(((Te=se.current)===null||Te===void 0?void 0:Te.clientWidth)||0)},[ye]),Ce=r.default.useCallback(function(){var Te=H?0:ye;ce(ye+1===J.length?Te:ye+1)},[ye,H,J.length]),Re=function(){var Te=H?J.length-1:0;ce(ye-1<0?Te:ye-1)};r.default.useEffect(function(){var Te=(0,n.animate)(ne,Se(),B);return Te.stop},[Se,ye,ne,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(ne,Se(),B)})},[Se,B,ne]),r.default.useEffect(function(){if(F){var Te=setInterval(function(){return Ce()},V);return function(){return clearInterval(Te)}}},[F,Ce,V]);var xe=(0,o.useMergeRefs)([se,T]);return r.default.createElement("div",S({},Q,{ref:xe,className:oe}),J.map(function(Te,Oe){return r.default.createElement(n.LazyMotion,{key:Oe,features:n.domAnimation},r.default.createElement(n.m.div,{ref:re,className:ue,style:{x:ne,left:"".concat(Oe*100,"%"),right:"".concat(Oe*100,"%")}},Te))}),R&&R({loop:H,handlePrev:Re,activeIndex:ye,firstIndex:ye===0}),E&&E({loop:H,handleNext:Ce,activeIndex:ye,lastIndex:ye===J.length-1}),A&&A({setActiveIndex:ce,activeIndex:ye,length:J.length}))});h.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},h.displayName="MaterialTailwind.Carousel";var m=h})(Lj);var Fj={},jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return w},propTypesOnClose:function(){return S},propTypesDismiss:function(){return b},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(nt),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,w=r.default.string,S=r.default.func,b=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(jj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return f},default:function(){return c}});var r=P(X),n=P(nt),o=An,i=wn,a=P(Xn),l=P(pt),s=Ze,d=P(Je),v=qe,w=jj;function S(h,m,_){return m in h?Object.defineProperty(h,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):h[m]=_,h}function b(){return b=Object.assign||function(h){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function g(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}var f=r.default.forwardRef(function(h,m){var _=h.open,T=h.size,k=h.overlay,R=h.children,E=h.placement,A=h.overlayProps,F=h.className,V=h.onClose,B=h.dismiss,H=h.transition,q=h.overlayRef,re=C(h,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,Y=Q.styles.base,te=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var ne;B=(ne=(0,a.default)(W.dismiss,B||{}))!==null&&ne!==void 0?ne:W.dismiss,H=H??W.transition,F=(0,s.twMerge)(W.className||"",F);var se=(0,s.twMerge)((0,l.default)((0,d.default)(Y.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),ve=(0,s.twMerge)((0,l.default)((0,d.default)(Y.overlay)),A==null?void 0:A.className),ye=(0,i.useFloating)({open:_,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(ye,B)]).getFloatingProps;r.default.useEffect(function(){te.start(_?"open":"close")},[_,te,E]);var J={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},oe={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:q,className:ve,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:oe,transition:{duration:.3}})),r.default.createElement(o.m.div,b({},ce(y({ref:m},re)),{className:se,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:te,variants:J,transition:H}),R)))});f.propTypes={open:w.propTypesOpen,size:w.propTypesSize,overlay:w.propTypesOverlay,children:w.propTypesChildren,placement:n.default.oneOf(w.propTypesPlacement),overlayProps:w.propTypesOverlayProps,className:w.propTypesClassName,onClose:w.propTypesOnClose,dismiss:w.propTypesDismiss,transition:w.propTypesTransition,overlayRef:w.propTypesOverlayRef},f.displayName="MaterialTailwind.Drawer";var c=f})(Fj);var zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Badge:function(){return C},default:function(){return g}});var r=b(X),n=b(nt),o=b(Xn),i=b(pt),a=Ze,l=b(Sr),s=b(Je),d=qe,v=HP;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.color,m=f.invisible,_=f.withBorder,T=f.overlap,k=f.placement,R=f.className,E=f.content,A=f.children,F=f.containerProps,V=f.containerRef,B=P(f,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),H=(0,d.useTheme)().badge,q=H.valid,re=H.defaultProps,Q=H.styles,W=Q.base,Y=Q.placements,te=Q.colors;h=h??re.color,m=m??re.invisible,_=_??re.withBorder,T=T??re.overlap,k=k??re.placement,R=(0,a.twMerge)(re.className||"",R);var ne;F=(ne=(0,o.default)(F,re.containerProps||{}))!==null&&ne!==void 0?ne:re.containerProps;var se=(0,s.default)(W.badge.initial),ve=(0,s.default)(W.badge.withBorder),ye=(0,s.default)(W.badge.withContent),ce=(0,s.default)(te[(0,l.default)(q.colors,h,"red")]),J=(0,s.default)(Y[(0,l.default)(q.placements,k,"top-end")][(0,l.default)(q.overlaps,T,"square")]),oe,ue=(0,a.twMerge)((0,i.default)(se,J,ce,(oe={},w(oe,ve,_),w(oe,ye,E),oe)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var g=C})(zj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(X),n=P(nt),o=P(pt),i=Ze,a=P(Sr),l=P(Je),s=qe,d=WP;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function h(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}function m(E,A){return w(E)||C(E,A)||T(E,A)||g()}function _(E){return S(E)||y(E)||T(E)||f()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,H=E.unratedIcon,q=E.ratedColor,re=E.unratedColor,Q=E.className,W=E.onChange,Y=E.readonly,te=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),ne,se,ve=(0,s.useTheme)().rating,ye=ve.valid,ce=ve.defaultProps,J=ve.styles,oe=J.base,ue=J.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,H=H??ce.unratedIcon,q=q??ce.ratedColor,re=re??ce.unratedColor,W=W??ce.onChange,Y=Y??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return _(Array(V).fill("rated")).concat(_(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Re=Se[1],xe=m(r.default.useState(function(){return _(Array(F).fill("un_rated"))}),2),Te=xe[0],Oe=xe[1],je=m(r.default.useState(!1),2),Ye=je[0],it=je[1],Mt=(0,l.default)(ue[(0,a.default)(ye.colors,q,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(ye.colors,re,"blue-gray")]),Tt=(0,i.twMerge)((0,o.default)((0,l.default)(oe.rating),Q)),_t=(0,l.default)(oe.icon),ir=B,Wt=H,Lt=r.default.isValidElement(B)&&r.default.cloneElement(ir,{className:(0,i.twMerge)((0,o.default)(_t,Mt,ir==null||(ne=ir.props)===null||ne===void 0?void 0:ne.className))}),Zt=r.default.isValidElement(B)&&r.default.cloneElement(Wt,{className:(0,i.twMerge)((0,o.default)(_t,gt,Wt==null||(se=Wt.props)===null||se===void 0?void 0:se.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(_t,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(H,{className:(0,i.twMerge)((0,o.default)(_t,gt))}),Qn=function(Ln){return Ln.map(function(rr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!Y){var qt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Re(qt),W&&typeof W=="function"&&W(qt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!Y){var qt=Te.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});it(!0),Oe(qt)}},onMouseLeave:function(){return!Y&&it(!1)}},r.default.isValidElement(rr==="rated"?B:H)?rr==="rated"?Lt:Zt:rr==="rated"?Dr:ln)})};return r.default.createElement("div",b({},te,{ref:A,className:Tt}),Qn(Ye?Te:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(Vj);var Bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=P(X),n=P(nt),o=P(Xn),i=P(pt),a=Ze,l=P(Sr),s=P(Je),d=qe,v=$P;function w(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function f(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||h(T,k)||C()}function h(T,k){if(T){if(typeof T=="string")return w(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,H=T.value,q=T.defaultValue,re=T.onChange,Q=T.min,W=T.max,Y=T.step,te=T.inputRef,ne=T.inputProps,se=g(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),ve=(0,d.useTheme)().slider,ye=ve.valid,ce=ve.defaultProps,J=ve.styles,oe=J.base,ue=J.sizes,Se=J.colors,Ce=c(r.default.useState(q||0),2),Re=Ce[0],xe=Ce[1];r.default.useMemo(function(){q&&xe(q)},[q]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,Y=Y??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Te;V=(Te=(0,i.default)(ce.thumbClassName,V))!==null&&Te!==void 0?Te:ce.thumbClassName;var Oe;F=(Oe=(0,i.default)(ce.trackClassName,F))!==null&&Oe!==void 0?Oe:ce.trackClassName;var je;B=(je=(0,i.default)(ce.barClassName,B))!==null&&je!==void 0?je:ce.barClassName;var Ye;ne=(Ye=(0,o.default)(ne,(ce==null?void 0:ce.inputProps)||{}))!==null&&Ye!==void 0?Ye:ce.inputProps;var it=(0,a.twMerge)((0,i.default)((0,s.default)(oe.container),(0,s.default)(Se[(0,l.default)(ye.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(ye.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(oe.bar),B)),gt=(0,i.default)((0,s.default)(oe.track),(0,s.default)(ue[(0,l.default)(ye.sizes,E,"md")].track)),Tt=(0,i.default)((0,s.default)(oe.thumb),(0,s.default)(ue[(0,l.default)(ye.sizes,E,"md")].thumb)),_t=(0,i.default)((0,s.default)(oe.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(Tt,V));return r.default.createElement("div",b({},se,{ref:k,className:it}),r.default.createElement("label",{className:Mt,style:{width:"".concat(H||Re,"%")}}),r.default.createElement("input",b({ref:te,type:"range",max:W,min:Q,step:Y,className:_t},H?{value:H}:null,{defaultValue:q,onChange:function(ir){return re?re(ir):xe(Number(ir.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(Bj);var Uj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{useTimelineItem:function(){return f},TimelineItem:function(){return c},default:function(){return h}});var r=v(X),n=Ze,o=v(Je),i=qe,a=bs;function l(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function s(m){if(Array.isArray(m))return m}function d(){return d=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,_){return s(m)||w(m,_)||C(m,_)||S()}function C(m,_){if(m){if(typeof m=="string")return l(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,_)}}var g=r.default.createContext(0);g.displayName="MaterialTailwind.TimelineItemContext";function f(){var m=r.default.useContext(g);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,_){var T=m.className,k=m.children,R=b(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],H=V[1],q=r.default.useMemo(function(){return[B,H]},[B,H]),re=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(g.Provider,{value:q},r.default.createElement("li",d({ref:_},R,{className:re}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var h=c})(lm);var Hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=P(X),n=P(nt),o=wn,i=Ze,a=P(Sr),l=P(Je),s=qe,d=lm,v=bs;function w(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function f(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||h(T,k)||C()}function h(T,k){if(T){if(typeof T=="string")return w(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=g(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,H=B.styles,q=B.valid,re=H.base,Q=H.variants,W=c((0,d.useTimelineItem)(),2),Y=W[1],te=r.default.useRef(null),ne=(0,o.useMergeRefs)([k,te]);r.default.useEffect(function(){var ye=te.current;if(ye){var ce=ye.getBoundingClientRect().width;return Y(ce),function(){Y(0)}}},[Y,A,F]);var se=(0,l.default)(Q[(0,a.default)(q.variants,E,"filled")][(0,a.default)(q.colors,R,"gray")]),ve=(0,i.twMerge)((0,l.default)(re),se,A);return r.default.createElement("span",b({ref:ne},V,{className:ve}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(Hj);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return f},default:function(){return c}});var r=w(X),n=Ze,o=w(Je),i=qe,a=lm,l=bs;function s(h,m){(m==null||m>h.length)&&(m=h.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function y(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}function C(h,m){return d(h)||S(h,m)||g(h,m)||b()}function g(h,m){if(h){if(typeof h=="string")return s(h,m);var _=Object.prototype.toString.call(h).slice(8,-1);if(_==="Object"&&h.constructor&&(_=h.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(h,m)}}var f=r.default.forwardRef(function(h,m){var _=h.className,T=h.children,k=P(h,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),_);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});f.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},f.displayName="MaterialTailwind.TimelineHeader";var c=f})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return w},default:function(){return S}});var r=s(X),n=Ze,o=s(Je),i=qe,a=bs;function l(){return l=Object.assign||function(b){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(b,C)&&(y[C]=b[C])}return y}function v(b,P){if(b==null)return{};var y={},C=Object.keys(b),g,f;for(f=0;f=0)&&(y[g]=b[g]);return y}var w=r.default.forwardRef(function(b,P){var y=b.className,C=b.children,g=d(b,["className","children"]),f=(0,i.useTheme)().timelineHeader,c=f.styles,h=c.base,m=(0,n.twMerge)((0,o.default)(h),y);return r.default.createElement("div",l({},g,{ref:P,className:m}),C)});w.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},w.displayName="MaterialTailwind.TimelineHeader";var S=w})($j);var Gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return f},default:function(){return c}});var r=w(X),n=Ze,o=w(Je),i=qe,a=lm,l=bs;function s(h,m){(m==null||m>h.length)&&(m=h.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function y(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}function C(h,m){return d(h)||S(h,m)||g(h,m)||b()}function g(h,m){if(h){if(typeof h=="string")return s(h,m);var _=Object.prototype.toString.call(h).slice(8,-1);if(_==="Object"&&h.constructor&&(_=h.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(h,m)}}var f=r.default.forwardRef(function(h,m){var _=h.className,T=h.children,k=P(h,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],H=(0,o.default)(F.line),q=(0,n.twMerge)((0,o.default)(F.container),_);return r.default.createElement("span",v({},k,{ref:m,className:q,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(H,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:H}))});f.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},f.displayName="MaterialTailwind.TimelineConnector";var c=f})(Gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return w.default},default:function(){return g}});var r=b(X),n=Ze,o=b(Je),i=qe,a=bs,l=b(lm),s=b(Hj),d=b(Wj),v=b($j),w=b(Gj);function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.className,m=f.children,_=P(f,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),h);return r.default.createElement("ul",S({ref:c},_,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var g=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:w.default})})(Uj);var Kj={},qj={},ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(nt);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return w},default:function(){return S}});var r=s(X),n=Ze,o=s(Je),i=qe,a=ET;function l(){return l=Object.assign||function(b){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(b,C)&&(y[C]=b[C])}return y}function v(b,P){if(b==null)return{};var y={},C=Object.keys(b),g,f;for(f=0;f=0)&&(y[g]=b[g]);return y}var w=r.default.forwardRef(function(b,P){var y=b.className;b.activeClassName,b.completedClassName;var C=b.children,g=d(b,["className","activeClassName","completedClassName","children"]),f=(0,i.useTheme)().step,c=f.styles.base,h=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},g,{ref:P,className:h}),C)});w.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},w.displayName="MaterialTailwind.Step";var S=w})(qj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=b(X),n=wn,o=Ze,i=b(Je),a=qe,l=b(qj),s=ET;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function h(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||_(R,E)||y()}function _(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,H=R.lineClassName,q=R.activeLineClassName,re=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),Y=W.stepper,te=W.step,ne=Y.styles.base,se=te.styles,ve=se.base,ye=r.default.useRef(null),ce=m(r.default.useState(0),2),J=ce[0],oe=ce[1],ue=A===0,Se=Array.isArray(re)&&A===re.length-1,Ce=Array.isArray(re)&&A>re.length-1;r.default.useEffect(function(){if(ye.current){var it=re,Mt=ye.current.getBoundingClientRect().width,gt=Mt/(it.length-1);oe(gt)}},[re]);var Re=r.default.useMemo(function(){if(!Ce)return J*A},[A,Ce,J]);(0,n.useMergeRefs)([E,ye]);var xe=(0,o.twMerge)((0,i.default)(ne.stepper),B),Te=(0,o.twMerge)((0,i.default)(ne.line.initial),H),Oe=(0,o.twMerge)(Te,(0,i.default)(ne.line.active),q),je=(0,i.default)(ve.active),Ye=(0,i.default)(ve.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:ye,className:xe}),r.default.createElement("div",{className:Te}),r.default.createElement("div",{className:Oe,style:{width:"".concat(Re,"px")}}),Array.isArray(re)?re.map(function(it,Mt){var gt,Tt;return r.default.cloneElement(it,f(C({key:Mt},it.props),{className:(0,o.twMerge)(it.props.className,Mt===A?(0,o.twMerge)(je,(gt=it.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.children,c=S(C,["children"]),h,m=(0,o.useSpeedDial)(),_=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([g,T.setReference]);return r.default.cloneElement(f,d({},_(w(d({},c),{ref:k,className:(0,i.twMerge)(f==null||(h=f.props)===null||h===void 0?void 0:h.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Mx)),Mx}var Rx={},Q8;function LJ(){return Q8||(Q8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=w(X),n=An,o=wn,i=MT(),a=qe,l=Ze,s=w(Je),d=sm;function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.children,c=C.className,h=S(C,["children","className"]),m=(0,a.useTheme)(),_=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,H=(0,o.useMergeRefs)([g,E.setFloating]),q=(0,l.twMerge)((0,s.default)(_),c),re=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(re,null,A&&r.default.createElement("div",v({},h,{ref:H,className:q,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(f,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Rx)),Rx}var Yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return w},default:function(){return S}});var r=s(X),n=qe,o=Ze,i=s(Je),a=sm;function l(){return l=Object.assign||function(b){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(b,C)&&(y[C]=b[C])}return y}function v(b,P){if(b==null)return{};var y={},C=Object.keys(b),g,f;for(f=0;f=0)&&(y[g]=b[g]);return y}var w=r.default.forwardRef(function(b,P){var y=b.className,C=b.children,g=d(b,["className","children"]),f=(0,n.useTheme)(),c=f.speedDialAction.styles,h=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},g,{ref:P,className:h}),C)});w.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},w.displayName="SpeedDialAction";var S=w})(Yj);var Z8;function MT(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{SpeedDialContext:function(){return g},useSpeedDial:function(){return f},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return h}});var r=S(X),n=wn,o=qe,i=S(Xn),a=sm,l=S(IJ()),s=S(LJ()),d=S(Yj);function v(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function w(m){if(Array.isArray(m))return m}function S(m){return m&&m.__esModule?m:{default:m}}function b(m,_){var T=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(T!=null){var k=[],R=!0,E=!1,A,F;try{for(T=T.call(m);!(R=(A=T.next()).done)&&(k.push(A.value),!(_&&k.length===_));R=!0);}catch(V){E=!0,F=V}finally{try{!R&&T.return!=null&&T.return()}finally{if(E)throw F}}return k}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(m,_){return w(m)||b(m,_)||C(m,_)||P()}function C(m,_){if(m){if(typeof m=="string")return v(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return v(m,_)}}var g=r.default.createContext(null);function f(){var m=r.default.useContext(g);if(!m)throw new Error("useSpeedDial must be used within a .");return m}function c(m){var _=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,H=y(r.default.useState(!1),2),q=H[0],re=H[1];_=_??q,T=T??re,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),Y=(0,n.useFloatingNodeId)(),te=(0,n.useFloating)({open:_,nodeId:Y,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),ne=te.x,se=te.y,ve=te.strategy,ye=te.refs,ce=te.context,J=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),oe=J.getReferenceProps,ue=J.getFloatingProps,Se=r.default.useMemo(function(){return{x:ne,y:se,strategy:ve,refs:ye,open:_,context:ce,getReferenceProps:oe,getFloatingProps:ue,animation:W}},[ce,ue,oe,ye,ve,ne,se,_,W]);return r.default.createElement(g.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:Y},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var h=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Ex)),Ex}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(JR,e),t(tL,e),t(rL,e),t(nL,e),t(iL,e),t(aL,e),t(cL,e),t(dL,e),t(fL,e),t(d2,e),t(aj,e),t(lj,e),t(fj,e),t(hj,e),t(mj,e),t(yj,e),t(bj,e),t(_j,e),t(xj,e),t(Oj,e),t(kj,e),t(Ej,e),t(Mj,e),t(Nj,e),t(Ij,e),t(Lj,e),t(Fj,e),t(zj,e),t(Vj,e),t(Bj,e),t(b3,e),t(Uj,e),t(Kj,e),t(MT(),e),t(qe,e),t(RP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(QW);function DJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var RT={exports:{}},I2={},bw={},Pt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof sO<"u"?sO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Pt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Pt;class r{constructor(h=[1,0,0,1,0,0]){this.dirty=!1,this.m=h&&h.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(h){h.m[0]=this.m[0],h.m[1]=this.m[1],h.m[2]=this.m[2],h.m[3]=this.m[3],h.m[4]=this.m[4],h.m[5]=this.m[5]}point(h){const m=this.m;return{x:m[0]*h.x+m[2]*h.y+m[4],y:m[1]*h.x+m[3]*h.y+m[5]}}translate(h,m){return this.m[4]+=this.m[0]*h+this.m[2]*m,this.m[5]+=this.m[1]*h+this.m[3]*m,this}scale(h,m){return this.m[0]*=h,this.m[1]*=h,this.m[2]*=m,this.m[3]*=m,this}rotate(h){const m=Math.cos(h),_=Math.sin(h),T=this.m[0]*m+this.m[2]*_,k=this.m[1]*m+this.m[3]*_,R=this.m[0]*-_+this.m[2]*m,E=this.m[1]*-_+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(h,m){const _=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*h,R=this.m[3]+this.m[1]*h;return this.m[0]=_,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(h){const m=this.m[0]*h.m[0]+this.m[2]*h.m[1],_=this.m[1]*h.m[0]+this.m[3]*h.m[1],T=this.m[0]*h.m[2]+this.m[2]*h.m[3],k=this.m[1]*h.m[2]+this.m[3]*h.m[3],R=this.m[0]*h.m[4]+this.m[2]*h.m[5]+this.m[4],E=this.m[1]*h.m[4]+this.m[3]*h.m[5]+this.m[5];return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const h=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*h,_=-this.m[1]*h,T=-this.m[2]*h,k=this.m[0]*h,R=h*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=h*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const h=this.m[0],m=this.m[1],_=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=h*T-m*_,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(h!=0||m!=0){const F=Math.sqrt(h*h+m*m);A.rotation=m>0?Math.acos(h/F):-Math.acos(h/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(h*_+m*T)/E,A.skewY=0}else if(_!=0||T!=0){const F=Math.sqrt(_*_+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-_/F):-Math.acos(_/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(h*_+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",w="0",S="Konva warning: ",b="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let g=[];const f=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const h=c[0];return h==="#"||h==="."||h===h.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){g.push(c),g.length===1&&f(function(){const h=g;g=[],h.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,h){const m=e.Util.createImageElement();m.onload=function(){h(m)},m.src=c},_rgbToHex(c,h,m){return((1<<24)+(c<<16)+(h<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const h=parseInt(c,16);return{r:h>>16&255,g:h>>8&255,b:h&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=w+c;return d+c},getRGB(c){let h;return c in y?(h=y[c],{r:h[0],g:h[1],b:h[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(h=C.exec(c.replace(/ /g,"")),{r:parseInt(h[1],10),g:parseInt(h[2],10),b:parseInt(h[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const h=y[c.toLowerCase()];return h?{r:h[0],g:h[1],b:h[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const h=c.split(/ *, */).map(Number);return{r:h[0],g:h[1],b:h[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const h=c.split(/ *, */).map((m,_)=>m.slice(-1)==="%"?_===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:h[0],g:h[1],b:h[2],a:h[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[h,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),_=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=_+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,h){return!(h.x>c.x+c.width||h.x+h.widthc.y+c.height||h.y+h.height1?(R=m,E=_,A=(m-T)*(m-T)+(_-k)*(_-k)):(R=c+V*(m-c),E=h+V*(_-h),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,h,m){const _=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return h.forEach(function(k,R){if(!m&&R===h.length-1)return;const E=h[(R+1)%h.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bh.length){const R=h;h=c,c=R}for(let R=0;R{h.width=0,h.height=0})},drawRoundedRectPath(c,h,m,_){let T=0,k=0,R=0,E=0;typeof _=="number"?T=k=R=E=Math.min(_,h/2,m/2):(T=Math.min(_[0]||0,h/2,m/2),k=Math.min(_[1]||0,h/2,m/2),E=Math.min(_[2]||0,h/2,m/2),R=Math.min(_[3]||0,h/2,m/2)),c.moveTo(T,0),c.lineTo(h-k,0),c.arc(h-k,k,k,Math.PI*3/2,0,!1),c.lineTo(h,m-E),c.arc(h-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},kt={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=FJ;ht.alphaComponent=jJ;ht.getNumberValidator=zJ;ht.getNumberOrArrayOfNumbersValidator=VJ;ht.getNumberOrAutoValidator=BJ;ht.getStringValidator=UJ;ht.getStringOrGradientValidator=HJ;ht.getFunctionValidator=WJ;ht.getNumberArrayValidator=$J;ht.getBooleanValidator=GJ;ht.getComponentValidator=KJ;const _s=Pt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function FJ(e){return e>255?255:e<0?0:Math.round(e)}function jJ(e){return e>1?1:e<1e-4?1e-4:e}function zJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function VJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function BJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function GJ(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function KJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,w=t.Util._capitalize,S=n+w(a),b=o+w(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+w(g),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const w=this.attrs[a];return w===void 0?l:w},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),w=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[w]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(kt);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Xj=Lr,qJ=Pt;function YJ(e){const t=[],r=e.length,n=Xj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=XJ+d.join(J8)+QJ)):(i+=l.property,t||(i+=ree+l.val)),i+=eee;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=oee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,w=this._context;v.length===3?w.drawImage(t,r,n):v.length===5?w.drawImage(t,r,n,o,i):v.length===9&&w.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=eE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=YJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(F2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,um=kt,Y0=za,Gs=Pt,qi=F2,Xr=ht,Yb="absoluteOpacity",rb="allEventListeners",$l="absoluteTransform",tE="absoluteScale",Dc="canvas",fee="Change",pee="children",hee="konva",s4="listening",rE="mouseenter",nE="mouseleave",oE="set",iE="Shape",Xb=" ",aE="stage",Xs="transform",gee="Stage",u4="visible",vee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Xb);let mee=1,wt=class c4{constructor(t){this._id=mee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Xb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,w=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,b=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+b,l-=d,s-=d;const P=new Y0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new Y0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new Y0.HitCanvas({pixelRatio:w,width:o,height:i}),g=P.getContext(),f=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),g.save(),f.save(),g.translate(-l,-s),f.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Yb),this._clearSelfAndDescendantCache(tE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,g.restore(),f.restore(),v&&(g.save(),g.beginPath(),g.rect(0,0,o,i),g.closePath(),g.setAttr("strokeStyle","red"),g.setAttr("lineWidth",5),g.stroke(),g.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==pee&&(n=oE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(s4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(u4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==gee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Yb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=c4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Nx.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Nx.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,w=n===this;if(v){a.save();const b=this.getAbsoluteTransform(n);let P=b.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),g=this.clipY();a.rect(C||0,g||0,l,s)}a.clip.apply(a,y),P=b.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!w&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(b){b[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(b){if(!b.visible())return;const P=b.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const w=this.find("Shape");let S=!1;for(let b=0;bce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",ne=ce=>{const J=te(ce);if(J==="pointer")return o.Konva.pointerEventsEnabled&&Y.pointer;if(J==="touch")return Y.touch;if(J==="mouse")return Y.mouse};function se(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const ve="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class ye extends n.Container{constructor(J){super(se(J)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{se(this.attrs)}),this._checkVisibility()}_validateAdd(J){const oe=J.getType()==="Layer",ue=J.getType()==="FastLayer";oe||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const J=this.visible()?"":"none";this.content.style.display=J}setContainer(J){if(typeof J===v){if(J.charAt(0)==="."){const ue=J.slice(1);J=document.getElementsByClassName(ue)[0]}else{var oe;J.charAt(0)!=="#"?oe=J:oe=J.slice(1),J=document.getElementById(oe)}if(!J)throw"Can not find container in document with id "+oe}return this._setAttr("container",J),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),J.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const J=this.children,oe=J.length;for(let ue=0;ue-1&&e.stages.splice(oe,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const J=this._pointerPositions[0]||this._changedPointerPositions[0];return J?{x:J.x,y:J.y}:(t.Util.warn(ve),null)}_getPointerById(J){return this._pointerPositions.find(oe=>oe.id===J)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(J){J=J||{},J.x=J.x||0,J.y=J.y||0,J.width=J.width||this.width(),J.height=J.height||this.height();const oe=new i.SceneCanvas({width:J.width,height:J.height,pixelRatio:J.pixelRatio||1}),ue=oe.getContext()._context,Se=this.children;return(J.x||J.y)&&ue.translate(-1*J.x,-1*J.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Re=Ce._toKonvaCanvas(J);ue.drawImage(Re._canvas,J.x,J.y,Re.getWidth()/Re.getPixelRatio(),Re.getHeight()/Re.getPixelRatio())}),oe}getIntersection(J){if(!J)return null;const oe=this.children,ue=oe.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Re=oe[Ce].getIntersection(J);if(Re)return Re}return null}_resizeDOM(){const J=this.width(),oe=this.height();this.content&&(this.content.style.width=J+w,this.content.style.height=oe+w),this.bufferCanvas.setSize(J,oe),this.bufferHitCanvas.setSize(J,oe),this.children.forEach(ue=>{ue.setSize({width:J,height:oe}),ue.draw()})}add(J,...oe){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),J.setSize({width:this.width(),height:this.height()}),J.draw(),o.Konva.isBrowser&&this.content.appendChild(J.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(J){return s.hasPointerCapture(J,this)}setPointerCapture(J){s.setPointerCapture(J,this)}releaseCapture(J){s.releaseCapture(J,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([J,oe])=>{this.content.addEventListener(J,ue=>{this[oe](ue)},{passive:!1})})}_pointerenter(J){this.setPointersPositions(J);const oe=ne(J.type);oe&&this._fire(oe.pointerenter,{evt:J,target:this,currentTarget:this})}_pointerover(J){this.setPointersPositions(J);const oe=ne(J.type);oe&&this._fire(oe.pointerover,{evt:J,target:this,currentTarget:this})}_getTargetShape(J){let oe=this[J+"targetShape"];return oe&&!oe.getStage()&&(oe=null),oe}_pointerleave(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(oe.pointerout,{evt:J}),Se._fireAndBubble(oe.pointerleave,{evt:J}),this._fire(oe.pointerleave,{evt:J,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(oe.pointerleave,{evt:J,target:this,currentTarget:this}),this._fire(oe.pointerout,{evt:J,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Re=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Re||!Re.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Re.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Re,Re._fireAndBubble(oe.pointerdown,{evt:J,pointerId:Ce.id}),Se=!0;const xe=J.type.indexOf("touch")>=0;Re.preventDefault()&&J.cancelable&&xe&&J.preventDefault()}),Se||this._fire(oe.pointerdown,{evt:J,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(J){const oe=ne(J.type),ue=te(J.type);if(!oe||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&J.cancelable&&J.preventDefault(),this.setPointersPositions(J),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Re=!1;const xe=this._getTargetShape(ue);this._changedPointerPositions.forEach(Te=>{const Oe=s.getCapturedShape(Te.id)||this.getIntersection(Te),je=Te.id,Ye={evt:J,pointerId:je},it=xe!==Oe;if(it&&xe&&(xe._fireAndBubble(oe.pointerout,{...Ye},Oe),xe._fireAndBubble(oe.pointerleave,{...Ye},Oe)),Oe){if(Ce[Oe._id])return;Ce[Oe._id]=!0}Oe&&Oe.isListening()?(Re=!0,it&&(Oe._fireAndBubble(oe.pointerover,{...Ye},xe),Oe._fireAndBubble(oe.pointerenter,{...Ye},xe),this[ue+"targetShape"]=Oe),Oe._fireAndBubble(oe.pointermove,{...Ye})):xe&&(this._fire(oe.pointerover,{evt:J,target:this,currentTarget:this,pointerId:je}),this[ue+"targetShape"]=null)}),Re||this._fire(oe.pointermove,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Re={};let xe=!1;this._changedPointerPositions.forEach(Te=>{const Oe=s.getCapturedShape(Te.id)||this.getIntersection(Te);if(Oe){if(Oe.releaseCapture(Te.id),Re[Oe._id])return;Re[Oe._id]=!0}const je=Te.id,Ye={evt:J,pointerId:je};let it=!1;o.Konva["_"+ue+"InDblClickWindow"]?(it=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),Oe&&Oe.isListening()?(xe=!0,this[ue+"ClickEndShape"]=Oe,Oe._fireAndBubble(oe.pointerup,{...Ye}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===Oe&&(Oe._fireAndBubble(oe.pointerclick,{...Ye}),it&&Ce&&Ce===Oe&&Oe._fireAndBubble(oe.pointerdblclick,{...Ye}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(oe.pointerclick,{evt:J,target:this,currentTarget:this,pointerId:je}),it&&this._fire(oe.pointerdblclick,{evt:J,target:this,currentTarget:this,pointerId:je}))}),xe||this._fire(oe.pointerup,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,J.cancelable&&ue!=="touch"&&ue!=="pointer"&&J.preventDefault()}_contextmenu(J){this.setPointersPositions(J);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(F,{evt:J}):this._fire(F,{evt:J,target:this,currentTarget:this})}_wheel(J){this.setPointersPositions(J);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(re,{evt:J}):this._fire(re,{evt:J,target:this,currentTarget:this})}_pointercancel(J){this.setPointersPositions(J);const oe=s.getCapturedShape(J.pointerId)||this.getIntersection(this.getPointerPosition());oe&&oe._fireAndBubble(m,s.createEvent(J)),s.releaseCapture(J.pointerId)}_lostpointercapture(J){s.releaseCapture(J.pointerId)}setPointersPositions(J){const oe=this._getContentPosition();let ue=null,Se=null;J=J||window.event,J.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(J.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})}),Array.prototype.forEach.call(J.changedTouches||J.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})})):(ue=(J.clientX-oe.left)/oe.scaleX,Se=(J.clientY-oe.top)/oe.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}])}_setPointerPosition(J){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(J)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const J=this.content.getBoundingClientRect();return{top:J.top,left:J.left,scaleX:J.width/this.content.clientWidth||1,scaleY:J.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const J=this.container();if(!J)throw"Stage has no container. A container is required.";J.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),J.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(J){J.batchDraw()}),this}}e.Stage=ye,ye.prototype.nodeType=d,(0,l._registerNode)(ye),r.Factory.addGetterSetter(ye,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(Jj);var cm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Pt,r=Lr,n=kt,o=Cr,i=ht,a=Pt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",w="linearGradient",S="radialGradient";let b;function P(){return b||(b=r.Util.createCanvasElement().getContext("2d"),b)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function g(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function f(R){R.stroke()}function c(){this._clearCache(s)}function h(){this._clearCache(d)}function m(){this._clearCache(v)}function _(){this._clearCache(w)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(w,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let H=0;Hthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),H=this.getAbsoluteOpacity()!==1;if(V&&B&&H)return!0;const q=this.hasShadow(),re=this.shadowForStrokeEnabled();return!!(V&&B&&q&&re)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,H=this.getSelfRect(),re=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=H.width+re,W=H.height+re,Y=!E.skipShadow&&this.hasShadow(),te=Y?this.shadowOffsetX():0,ne=Y?this.shadowOffsetY():0,se=Q+Math.abs(te),ve=W+Math.abs(ne),ye=Y&&this.shadowBlur()||0,ce=se+ye*2,J=ve+ye*2,oe={width:ce,height:J,x:-(re/2+ye)+Math.min(te,0)+H.x,y:-(re/2+ye)+Math.min(ne,0)+H.y};return V?oe:this._transformedRect(oe,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),H=B.getContext(),q=this._getCanvasCache(),re=this.getSceneFunc(),Q=this.hasShadow(),W,Y;const te=B.isCache,ne=A===this;if(!this.isVisible()&&!ne)return this;if(q){H.save();const ve=this.getAbsoluteTransform(A).getMatrix();return H.transform(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5]),this._drawCachedSceneCanvas(H),H.restore(),this}if(!re)return this;if(H.save(),this._useBufferCanvas()&&!te){W=this.getStage();const ve=F||W.bufferCanvas;Y=ve.getContext(),Y.clear(),Y.save(),Y._applyLineJoin(this);var se=this.getAbsoluteTransform(A).getMatrix();Y.transform(se[0],se[1],se[2],se[3],se[4],se[5]),re.call(this,Y,this),Y.restore();const ye=ve.pixelRatio;Q&&H._applyShadow(this),H._applyOpacity(this),H._applyGlobalCompositeOperation(this),H.drawImage(ve._canvas,0,0,ve.width/ye,ve.height/ye)}else{if(H._applyLineJoin(this),!ne){var se=this.getAbsoluteTransform(A).getMatrix();H.transform(se[0],se[1],se[2],se[3],se[4],se[5]),H._applyOpacity(this),H._applyGlobalCompositeOperation(this)}Q&&H._applyShadow(this),re.call(this,H,this)}return H.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,H=B&&B.getContext(),q=this.hitFunc()||this.sceneFunc(),re=this._getCanvasCache(),Q=re&&re.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){H.save();const Y=this.getAbsoluteTransform(A).getMatrix();return H.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5]),this._drawCachedHitCanvas(H),H.restore(),this}if(!q)return this;if(H.save(),H._applyLineJoin(this),!(this===A)){const Y=this.getAbsoluteTransform(A).getMatrix();H.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5])}return q.call(this,H,this),H.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),H=V.getWidth(),q=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,H,q);try{const re=B.getImageData(0,0,H,q),Q=re.data,W=Q.length,Y=r.Util._hexToRgb(this.colorKey);for(let te=0;teE?(Q[te]=Y.r,Q[te+1]=Y.g,Q[te+2]=Y.b,Q[te+3]=255):Q[te+3]=0;B.putImageData(re,0,0)}catch(re){r.Util.error("Unable to draw hit graph from cached scene canvas. "+re.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=g,k.prototype._strokeFuncHit=f,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",h),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",_),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(cm,"__esModule",{value:!0});cm.Layer=void 0;const Hl=Lr,Ax=Ed,If=Cr,AT=kt,lE=za,xee=ht,See=_n,Cee=Pt,Pee="#",Tee="beforeDraw",Oee="draw",rz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],kee=rz.length;let xh=class extends Ax.Container{constructor(t){super(t),this.canvas=new lE.SceneCanvas,this.hitCanvas=new lE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Tee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Ax.Container.prototype.drawScene.call(this,o,r),this._fire(Oee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Ax.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};cm.Layer=xh;xh.prototype.nodeType="Layer";(0,Cee._registerNode)(xh);AT.Factory.addGetterSetter(xh,"imageSmoothingEnabled",!0);AT.Factory.addGetterSetter(xh,"clearBeforeDraw",!0);AT.Factory.addGetterSetter(xh,"hitGraphEnabled",!0,(0,xee.getBooleanValidator)());var z2={};Object.defineProperty(z2,"__esModule",{value:!0});z2.FastLayer=void 0;const Eee=Lr,Mee=cm,Ree=Pt;class IT extends Mee.Layer{constructor(t){super(t),this.listening(!1),Eee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}z2.FastLayer=IT;IT.prototype.nodeType="FastLayer";(0,Ree._registerNode)(IT);var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.Group=void 0;const Nee=Lr,Aee=Ed,Iee=Pt;let LT=class extends Aee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Nee.Util.throw("You may only add groups and shapes to groups.")}};Sh.Group=LT;LT.prototype.nodeType="Group";(0,Iee._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Animation=void 0;const Ix=Pt,sE=Lr,Lx=(function(){return Ix.glob.performance&&Ix.glob.performance.now?function(){return Ix.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Lx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,g=C._id,f=P.easing||e.Easings.Linear,c=!!P.yoyo;let h,m;typeof P.duration>"u"?h=.3:P.duration===0?h=.001:h=P.duration,this.node=C,this._id=v++;const _=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);_||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},_),this.tween=new w(m,function(T){y._tweenFunc(T)},f,0,1,h*1e3,c),this._addListeners(),S.attrs[g]||(S.attrs[g]={}),S.attrs[g][this._id]||(S.attrs[g][this._id]={}),S.tweens[g]||(S.tweens[g]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,g=C._id;let f,c,h,m,_;const T=S.tweens[g][P];T&&delete S.attrs[g][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(f=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(h=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const g in C)delete S.tweens[P][g];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(b){const P=b.onFinish;b.node=this,b.onFinish=function(){this.destroy(),P&&P()},new S(b).play()},e.Easings={BackEaseIn(b,P,y,C){return y*(b/=C)*b*((1.70158+1)*b-1.70158)+P},BackEaseOut(b,P,y,C){return y*((b=b/C-1)*b*((1.70158+1)*b+1.70158)+1)+P},BackEaseInOut(b,P,y,C){let g=1.70158;return(b/=C/2)<1?y/2*(b*b*(((g*=1.525)+1)*b-g))+P:y/2*((b-=2)*b*(((g*=1.525)+1)*b+g)+2)+P},ElasticEaseIn(b,P,y,C,g,f){let c=0;return b===0?P:(b/=C)===1?P+y:(f||(f=C*.3),!g||g0?t:r),v=a*r,w=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:w,width:v-d,height:S-w}}}V2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Dee._registerNode)(Ss);B2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"angle",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,U2.getBooleanValidator)());var H2={},dm={};Object.defineProperty(dm,"__esModule",{value:!0});dm.Line=void 0;const W2=kt,Fee=Pt,jee=_n,oz=ht;function d4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),w=r-d*(o-e),S=n-d*(i-t),b=r+v*(o-e),P=n+v*(i-t);return[w,S,b,P]}function cE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let b=0;b<20;b++)v=S*e.tValues[20][b]+S,d+=e.cValues[20][b]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],w=2*a[1]-2*a[0],S=2*l[1]-2*l[0],b=4*(d*d+v*v),P=4*(d*w+v*S),y=w*w+S*S;if(b===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*b),g=y/b,f=s+C,c=g-C*C,h=f*f+c>0?Math.sqrt(f*f+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,_=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((f+h)/(C+m))):0;return Math.sqrt(b)/2*(f*h-C*m+_)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),w=d*d+v*v;return Math.sqrt(w)}const o=(a,l,s)=>{const d=s.length-1;let v,w;if(d===0)return 0;if(a===0){w=0;for(let S=0;S<=d;S++)w+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return w}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,w=(a-s(v))/l,S=0;for(;d>.001;){const b=s(v+w),P=Math.abs(a-b)/l;if(P500)break}return v};e.t2length=i})(iz);Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Path=void 0;const zee=kt,Vee=_n,Bee=Pt,Lf=iz;class hn extends Vee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,b=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(b,P),t.arc(0,0,S,s,s+d,1-w),t.scale(1/b,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],w=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-w)w;b-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],b,0);t.push(P.x,P.y)}else for(let b=d+S;br[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],w=l[3],S=l[4],b=l[5],P=l[6];return S+=b*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,w,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,b,P,y,C,g,f,c,h,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var _=E.shift(),T=E.shift();if(s+=_,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let H=a.length-2;H>=0;H--)if(a[H].command==="M"){s=a[H].points[0]+_,d=a[H].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":b=s,P=d,S=a[a.length-1],S.command==="C"&&(b=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(b,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":b=s,P=d,S=a[a.length-1],S.command==="C"&&(b=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(b,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":b=s,P=d,S=a[a.length-1],S.command==="Q"&&(b=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(b,P,s,d);break;case"t":b=s,P=d,S=a[a.length-1],S.command==="Q"&&(b=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(b,P,s,d);break;case"A":y=E.shift(),C=E.shift(),g=E.shift(),f=E.shift(),c=E.shift(),h=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(h,m,s,d,f,c,y,C,g);break;case"a":y=E.shift(),C=E.shift(),g=E.shift(),f=E.shift(),c=E.shift(),h=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(h,m,s,d,f,c,y,C,g);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],w=o[5],S=o[4]+w,b=Math.PI/180;if(Math.abs(v-S)S;s-=b)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+b;s1&&(l*=Math.sqrt(b),s*=Math.sqrt(b));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(w*w))/(l*l*(S*S)+s*s*(w*w)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*w/l,g=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,f=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},h=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[g,f,l,s,_,R,v,a]}}Ph.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Bee._registerNode)(hn);zee.Factory.addGetterSetter(hn,"data");Object.defineProperty(H2,"__esModule",{value:!0});H2.Arrow=void 0;const $2=kt,Uee=dm,az=ht,Hee=Pt,dE=Ph;class Rd extends Uee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],b=dE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=dE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/b),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,w=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,w/2),t.lineTo(-a,-w/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,w/2),t.lineTo(-a,-w/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}H2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Hee._registerNode)(Rd);$2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,az.getNumberValidator)());$2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,az.getNumberValidator)());$2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);$2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var G2={};Object.defineProperty(G2,"__esModule",{value:!0});G2.Circle=void 0;const Wee=kt,$ee=_n,Gee=ht,Kee=Pt;let Th=class extends $ee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};G2.Circle=Th;Th.prototype._centroid=!0;Th.prototype.className="Circle";Th.prototype._attrsAffectingSize=["radius"];(0,Kee._registerNode)(Th);Wee.Factory.addGetterSetter(Th,"radius",0,(0,Gee.getNumberValidator)());var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.Ellipse=void 0;const DT=kt,qee=_n,lz=ht,Yee=Pt;class Gu extends qee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}K2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Yee._registerNode)(Gu);DT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);DT.Factory.addGetterSetter(Gu,"radiusX",0,(0,lz.getNumberValidator)());DT.Factory.addGetterSetter(Gu,"radiusY",0,(0,lz.getNumberValidator)());var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Image=void 0;const Dx=Lr,Nd=kt,Xee=_n,Qee=Pt,fm=ht;let xl=class sz extends Xee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?Dx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?Dx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=Dx.Util.createImageElement();o.onload=function(){const i=new sz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};q2.Image=xl;xl.prototype.className="Image";(0,Qee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,fm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,fm.getNumberValidator)());var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.Tag=Jp.Label=void 0;const Y2=kt,Zee=_n,Jee=Sh,FT=ht,uz=Pt,cz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],ete="Change.konva",tte="none",f4="up",p4="right",h4="down",g4="left",rte=cz.length;class jT extends Jee.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Q2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,ute._registerNode)(Id);dz.Factory.addGetterSetter(Id,"radius",0,(0,fz.getNumberValidator)());dz.Factory.addGetterSetter(Id,"sides",0,(0,fz.getNumberValidator)());var Z2={};Object.defineProperty(Z2,"__esModule",{value:!0});Z2.Ring=void 0;const pz=kt,cte=_n,hz=ht,dte=Pt,fE=Math.PI*2;class Ld extends cte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,fE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),fE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}Z2.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,dte._registerNode)(Ld);pz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,hz.getNumberValidator)());pz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,hz.getNumberValidator)());var J2={};Object.defineProperty(J2,"__esModule",{value:!0});J2.Sprite=void 0;const Dd=kt,fte=_n,pte=Ch,gz=ht,hte=Pt;class Sl extends fte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new pte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],w=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),w)if(a){const S=a[r],b=n*2;t.drawImage(w,l,s,d,v,S[b+0],S[b+1],d,v)}else t.drawImage(w,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",bte="center",vz="inherit",X0="justify",wte="Change.konva",_te="2d",pE="-",mz="left",xte="text",Ste="Text",Cte="top",Pte="bottom",hE="middle",yz="normal",Tte="px ",nb=" ",Ote="right",gE="rtl",kte="word",Ete="char",vE="none",jx="…",bz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Mte=bz.length;function Rte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ob;function zx(){return ob||(ob=v4.Util.createCanvasElement().getContext(_te),ob)}function Nte(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Ate(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Ite(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends mte.Shape{constructor(t){super(Ite(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(f+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=v4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(xte,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return v4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,w,S;let b=zx(),P=this.fontSize(),y;b.save(),b.font=this._getContextFont(),y=b.measureText(t),b.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(w=y.hangingBaseline)!==null&&w!==void 0?w:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+nb+this.fontVariant()+nb+(this.fontSize()+Tte)+Rte(this.fontFamily())}_addTextLine(t){this.align()===X0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return zx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` +`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,w=a-d*2,S=0,b=this.wrap(),P=b!==vE,y=b!==Ete&&P,C=this.ellipsis();this.textArr=[],zx().font=this._getContextFont();const g=C?this._getTextWidth(jx):0;for(let f=0,c=t.length;fv)for(;h.length>0;){let _=0,T=Bc(h).length,k="",R=0;for(;_>>1,A=Bc(h),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+g;V<=v?(_=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(h),V=Bc(k),B=F[V.length],H=B===nb||B===pE;let q;if(H&&R<=v)q=V.length;else{const re=V.lastIndexOf(nb),Q=V.lastIndexOf(pE);q=Math.max(re,Q)+1}q>0&&(_=q,k=F.slice(0,_).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(h=Bc(h).slice(_).join("").trimLeft(),h.length>0&&(m=this._getTextWidth(h),m<=v)){this._addTextLine(h),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(h),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&fw)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==vE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+jx)r?null:Q0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Q0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Cz}`).join(" "),bE="nodesRect",Ute=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Hte={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Wte="ontouchstart"in Pa.Konva._global;function $te(e,t,r){if(e==="rotater")return r;t+=er.Util.degToRad(Hte[e]||0);const n=(er.Util.radToDeg(t)%360+360)%360;return er.Util._inRange(n,315+22.5,360)||er.Util._inRange(n,0,22.5)?"ns-resize":er.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":er.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":er.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":er.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":er.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":er.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":er.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(er.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const _w=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Gte(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Pz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function Kte(e,t){const r=Gte(e);return Pz(e,t,r)}function qte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(er.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Ute.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(bE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(bE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Pz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),w=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();w.forEach(function(b){const P=S.point(b);r.push(P)})});const n=new er.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),_w.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new zte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Wte?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=$te(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new jte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*er.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},m4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let _=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(_-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+_,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=qte(this.rotationSnaps(),k,R)-m.rotation,F=Kte(m,A);this._fitNodesInto(F,t);return}const w=this.shiftBehavior();let S;w==="inverted"?S=this.keepRatio()&&!t.shiftKey:w==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var g=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var b=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(b.x-i.x(),2)+Math.pow(b.y-i.y(),2));var P=this.findOne(".top-left").x()>b.x?-1:1,y=this.findOne(".top-left").y()>b.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(b.x-r),this.findOne(".top-left").y(b.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var b=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-b.x,2)+Math.pow(b.y-i.y(),2));var P=this.findOne(".top-right").x()b.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(b.x+r),this.findOne(".top-right").y(b.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var b=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(b.x-i.x(),2)+Math.pow(i.y()-b.y,2));var P=b.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(er.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(er.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new er.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:er.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new er.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new er.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const w=s.multiply(l.invert());this._nodes.forEach(S=>{var b;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new er.Transform;C.multiply(P.copy().invert()).multiply(w).multiply(P).multiply(y);const g=C.decompose();S.setAttrs(g),(b=S.getLayer())===null||b===void 0||b.batchDraw()}),this.rotation(er.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(er.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(w=>{w.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*er.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(w=>{v(w)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),yE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return mE.Node.prototype.toObject.call(this)}clone(t){return mE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}r5.Transformer=Vt;Vt.isTransforming=()=>m4>0;function Yte(e){return e instanceof Array||er.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){_w.indexOf(t)===-1&&er.Util.warn("Unknown anchor name: "+t+". Available names are: "+_w.join(", "))}),e||[]}Vt.prototype.className="Transformer";(0,Vte._registerNode)(Vt);Kt.Factory.addGetterSetter(Vt,"enabledAnchors",_w,Yte);Kt.Factory.addGetterSetter(Vt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());Kt.Factory.addGetterSetter(Vt,"resizeEnabled",!0);Kt.Factory.addGetterSetter(Vt,"anchorSize",10,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"rotateEnabled",!0);Kt.Factory.addGetterSetter(Vt,"rotateLineVisible",!0);Kt.Factory.addGetterSetter(Vt,"rotationSnaps",[]);Kt.Factory.addGetterSetter(Vt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"rotateAnchorCursor","crosshair");Kt.Factory.addGetterSetter(Vt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"borderEnabled",!0);Kt.Factory.addGetterSetter(Vt,"anchorStroke","rgb(0, 161, 255)");Kt.Factory.addGetterSetter(Vt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"anchorFill","white");Kt.Factory.addGetterSetter(Vt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"borderStroke","rgb(0, 161, 255)");Kt.Factory.addGetterSetter(Vt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"borderDash");Kt.Factory.addGetterSetter(Vt,"keepRatio",!0);Kt.Factory.addGetterSetter(Vt,"shiftBehavior","default");Kt.Factory.addGetterSetter(Vt,"centeredScaling",!1);Kt.Factory.addGetterSetter(Vt,"ignoreStroke",!1);Kt.Factory.addGetterSetter(Vt,"padding",0,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"nodes");Kt.Factory.addGetterSetter(Vt,"node");Kt.Factory.addGetterSetter(Vt,"boundBoxFunc");Kt.Factory.addGetterSetter(Vt,"anchorDragBoundFunc");Kt.Factory.addGetterSetter(Vt,"anchorStyleFunc");Kt.Factory.addGetterSetter(Vt,"shouldOverdrawWholeArea",!1);Kt.Factory.addGetterSetter(Vt,"useSingleNodeRotation",!0);Kt.Factory.backCompat(Vt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var n5={};Object.defineProperty(n5,"__esModule",{value:!0});n5.Wedge=void 0;const o5=kt,Xte=_n,Qte=Pt,Tz=ht,Zte=Pt;class Cs extends Xte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Qte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}n5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Zte._registerNode)(Cs);o5.Factory.addGetterSetter(Cs,"radius",0,(0,Tz.getNumberValidator)());o5.Factory.addGetterSetter(Cs,"angle",0,(0,Tz.getNumberValidator)());o5.Factory.addGetterSetter(Cs,"clockwise",!1);o5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var i5={};Object.defineProperty(i5,"__esModule",{value:!0});i5.Blur=void 0;const wE=kt,Jte=Cr,ere=ht;function _E(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const tre=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],rre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function nre(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,w,S,b,P,y,C,g,f,c,h,m,_,T,k,R,E,A,F;const V=t+t+1,B=n-1,H=o-1,q=t+1,re=q*(q+1)/2,Q=new _E,W=tre[t],Y=rre[t];let te=null,ne=Q,se=null,ve=null;for(l=1;l>Y,A!==0?(A=255/A,r[v]=(S*W>>Y)*A,r[v+1]=(b*W>>Y)*A,r[v+2]=(P*W>>Y)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,b-=g,P-=f,y-=c,C-=se.r,g-=se.g,f-=se.b,c-=se.a,s=w+((s=i+t+1)>Y,A>0?(A=255/A,r[s]=(S*W>>Y)*A,r[s+1]=(b*W>>Y)*A,r[s+2]=(P*W>>Y)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,b-=g,P-=f,y-=c,C-=se.r,g-=se.g,f-=se.b,c-=se.a,s=i+((s=a+q)0&&nre(t,r)};i5.Blur=ore;wE.Factory.addGetterSetter(Jte.Node,"blurRadius",0,(0,ere.getNumberValidator)(),wE.Factory.afterSetFilter);var a5={};Object.defineProperty(a5,"__esModule",{value:!0});a5.Brighten=void 0;const xE=kt,ire=Cr,are=ht,lre=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};l5.Contrast=cre;SE.Factory.addGetterSetter(sre.Node,"contrast",0,(0,ure.getNumberValidator)(),SE.Factory.afterSetFilter);var s5={};Object.defineProperty(s5,"__esModule",{value:!0});s5.Emboss=void 0;const Lu=kt,u5=Cr,dre=Lr,Oz=ht,fre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,w=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:dre.Util.error("Unknown emboss direction: "+n)}do{const S=(w-1)*s;let b=d;w+b<1&&(b=0),w+b>l&&(b=0);const P=(w-1+b)*a*4;let y=a;do{const C=S+(y-1)*4;let g=v;y+g<1&&(g=0),y+g>a&&(g=0);const f=P+(y-1+g)*4,c=i[C]-i[f],h=i[C+1]-i[f+1],m=i[C+2]-i[f+2];let _=c;const T=_>0?_:-_,k=h>0?h:-h,R=m>0?m:-m;if(k>T&&(_=h),R>T&&(_=m),_*=t,o){const E=i[C]+_,A=i[C+1]+_,F=i[C+2]+_;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-_;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--w)};s5.Emboss=fre;Lu.Factory.addGetterSetter(u5.Node,"embossStrength",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossWhiteLevel",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var c5={};Object.defineProperty(c5,"__esModule",{value:!0});c5.Enhance=void 0;const CE=kt,pre=Cr,hre=ht;function Ux(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const gre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,w;const S=this.enhance();if(S===0)return;for(let _=0;_o&&(o=i),s=t[_+1],sl&&(l=s),w=t[_+2],wv&&(v=w);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let b,P,y,C,g,f,c,h,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),g=l+S*(255-l),f=a-S*(a-0),h=v+S*(255-v),m=d-S*(d-0)):(b=(o+n)*.5,P=o+S*(o-b),y=n+S*(n-b),C=(l+a)*.5,g=l+S*(l-C),f=a+S*(a-C),c=(v+d)*.5,h=v+S*(v-c),m=d+S*(d-c));for(let _=0;_d?S:d;const b=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const b=a,P=i,y=0;let C,g;for(v=0;vt&&(h=c,m=0,_=-1),o=0;o=0&&b=0&&P=0&&b=0&&P=1020?255:0}return a}function Mre(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&b=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=h[a+0],s+=h[a+1],d+=h[a+2],v+=h[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=b;o=r))for(i=y;i=n||(a=(r*i+o)*4,h[a+0]=l,h[a+1]=s,h[a+2]=d,h[a+3]=v)}};y5.Pixelate=jre;kE.Factory.addGetterSetter(Dre.Node,"pixelSize",8,(0,Fre.getNumberValidator)(),kE.Factory.afterSetFilter);var b5={};Object.defineProperty(b5,"__esModule",{value:!0});b5.Posterize=void 0;const EE=kt,zre=Cr,Vre=ht,Bre=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Sw.Factory.addGetterSetter($T.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Sw.Factory.addGetterSetter($T.Node,"blue",0,Ure.RGBComponent,Sw.Factory.afterSetFilter);var _5={};Object.defineProperty(_5,"__esModule",{value:!0});_5.RGBA=void 0;const Mv=kt,x5=Cr,Wre=ht,$re=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(x5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(x5.Node,"blue",0,Wre.RGBComponent,Mv.Factory.afterSetFilter);Mv.Factory.addGetterSetter(x5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var S5={};Object.defineProperty(S5,"__esModule",{value:!0});S5.Sepia=void 0;const Gre=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),w>127&&(w=255-w),t[s]=d,t[s+1]=v,t[s+2]=w}while(--l)}while(--i)};C5.Solarize=Kre;var P5={};Object.defineProperty(P5,"__esModule",{value:!0});P5.Threshold=void 0;const ME=kt,qre=Cr,Yre=ht,Xre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;ole||L[K]!==j[le]){var me=` +`+L[K].replace(" at new "," at ");return u.displayName&&me.includes("")&&(me=me.replace("",u.displayName)),me}while(1<=K&&0<=le);break}}}finally{jn=!1,Error.prepareStackTrace=O}return(u=u?u.displayName||u.name:"")?Fr(u):""}var ji=Object.prototype.hasOwnProperty,zn=[],un=-1;function Zr(u){return{current:u}}function Nt(u){0>un||(u.current=zn[un],zn[un]=null,un--)}function Ue(u,p){un++,zn[un]=u.current,u.current=p}var At={},at=Zr(At),tt=Zr(!1),xt=At;function cn(u,p){var O=u.type.contextTypes;if(!O)return At;var N=u.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===p)return N.__reactInternalMemoizedMaskedChildContext;var L={},j;for(j in O)L[j]=p[j];return N&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=p,u.__reactInternalMemoizedMaskedChildContext=L),L}function wr(u){return u=u.childContextTypes,u!=null}function wo(){Nt(tt),Nt(at)}function qa(u,p,O){if(at.current!==At)throw Error(a(168));Ue(at,p),Ue(tt,O)}function Qu(u,p,O){var N=u.stateNode;if(p=p.childContextTypes,typeof N.getChildContext!="function")return O;N=N.getChildContext();for(var L in N)if(!(L in p))throw Error(a(108,k(u)||"Unknown",L));return i({},O,N)}function jd(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||At,xt=at.current,Ue(at,u),Ue(tt,tt.current),!0}function gm(u,p,O){var N=u.stateNode;if(!N)throw Error(a(169));O?(u=Qu(u,p,xt),N.__reactInternalMemoizedMergedChildContext=u,Nt(tt),Nt(at),Ue(at,u)):Nt(tt),Ue(tt,O)}var oi=Math.clz32?Math.clz32:Tl,U5=Math.log,vm=Math.LN2;function Tl(u){return u>>>=0,u===0?32:31-(U5(u)/vm|0)|0}var Ol=64,Zu=4194304;function ks(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Ju(u,p){var O=u.pendingLanes;if(O===0)return 0;var N=0,L=u.suspendedLanes,j=u.pingedLanes,K=O&268435455;if(K!==0){var le=K&~L;le!==0?N=ks(le):(j&=K,j!==0&&(N=ks(j)))}else K=O&~L,K!==0?N=ks(K):j!==0&&(N=ks(j));if(N===0)return 0;if(p!==0&&p!==N&&(p&L)===0&&(L=N&-N,j=p&-p,L>=j||L===16&&(j&4194240)!==0))return p;if((N&4)!==0&&(N|=O&16),p=u.entangledLanes,p!==0)for(u=u.entanglements,p&=N;0O;O++)p.push(u);return p}function Ya(u,p,O){u.pendingLanes|=p,p!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,p=31-oi(p),u[p]=O}function H5(u,p){var O=u.pendingLanes&~p;u.pendingLanes=p,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=p,u.mutableReadLanes&=p,u.entangledLanes&=p,p=u.entanglements;var N=u.eventTimes;for(u=u.expirationTimes;0>=K,L-=K,Vi=1<<32-oi(p)+L|O<vt?(ft=ct,ct=null):ft=ct.sibling;var Ne=Ae(we,ct,Pe[vt],Ve);if(Ne===null){ct===null&&(ct=ft);break}u&&ct&&Ne.alternate===null&&p(we,ct),he=j(Ne,he,vt),mt===null?et=Ne:mt.sibling=Ne,mt=Ne,ct=ft}if(vt===Pe.length)return O(we,ct),ar&&Ml(we,vt),et;if(ct===null){for(;vtvt?(ft=ct,ct=null):ft=ct.sibling;var rt=Ae(we,ct,Ne.value,Ve);if(rt===null){ct===null&&(ct=ft);break}u&&ct&&rt.alternate===null&&p(we,ct),he=j(rt,he,vt),mt===null?et=rt:mt.sibling=rt,mt=rt,ct=ft}if(Ne.done)return O(we,ct),ar&&Ml(we,vt),et;if(ct===null){for(;!Ne.done;vt++,Ne=Pe.next())Ne=ze(we,Ne.value,Ve),Ne!==null&&(he=j(Ne,he,vt),mt===null?et=Ne:mt.sibling=Ne,mt=Ne);return ar&&Ml(we,vt),et}for(ct=N(we,ct);!Ne.done;vt++,Ne=Pe.next())Ne=Et(ct,we,vt,Ne.value,Ve),Ne!==null&&(u&&Ne.alternate!==null&&ct.delete(Ne.key===null?vt:Ne.key),he=j(Ne,he,vt),mt===null?et=Ne:mt.sibling=Ne,mt=Ne);return u&&ct.forEach(function(Un){return p(we,Un)}),ar&&Ml(we,vt),et}function On(we,he,Pe,Ve){if(typeof Pe=="object"&&Pe!==null&&Pe.type===v&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case s:e:{for(var et=Pe.key,mt=he;mt!==null;){if(mt.key===et){if(et=Pe.type,et===v){if(mt.tag===7){O(we,mt.sibling),he=L(mt,Pe.props.children),he.return=we,we=he;break e}}else if(mt.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===c&&So(et)===mt.type){O(we,mt.sibling),he=L(mt,Pe.props),he.ref=lc(we,mt,Pe),he.return=we,we=he;break e}O(we,mt);break}else p(we,mt);mt=mt.sibling}Pe.type===v?(he=I(Pe.props.children,we.mode,Ve,Pe.key),he.return=we,we=he):(Ve=M(Pe.type,Pe.key,Pe.props,null,we.mode,Ve),Ve.ref=lc(we,he,Pe),Ve.return=we,we=Ve)}return K(we);case d:e:{for(mt=Pe.key;he!==null;){if(he.key===mt)if(he.tag===4&&he.stateNode.containerInfo===Pe.containerInfo&&he.stateNode.implementation===Pe.implementation){O(we,he.sibling),he=L(he,Pe.children||[]),he.return=we,we=he;break e}else{O(we,he);break}else p(we,he);he=he.sibling}he=$(Pe,we.mode,Ve),he.return=we,we=he}return K(we);case c:return mt=Pe._init,On(we,he,mt(Pe._payload),Ve)}if(H(Pe))return bt(we,he,Pe,Ve);if(_(Pe))return Jt(we,he,Pe,Ve);sc(we,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,he!==null&&he.tag===6?(O(we,he.sibling),he=L(he,Pe),he.return=we,we=he):(O(we,he),he=z(Pe,we.mode,Ve),he.return=we,we=he),K(we)):O(we,he)}return On}var Ns=Lh(!0),Dh=Lh(!1),Xa=Zr(null),Xd=null,As=null,Fh=null;function uc(){Fh=As=Xd=null}function Qd(u,p,O){Se?(Ue(Xa,p._currentValue),p._currentValue=O):(Ue(Xa,p._currentValue2),p._currentValue2=O)}function jh(u){var p=Xa.current;Nt(Xa),Se?u._currentValue=p:u._currentValue2=p}function cc(u,p,O){for(;u!==null;){var N=u.alternate;if((u.childLanes&p)!==p?(u.childLanes|=p,N!==null&&(N.childLanes|=p)):N!==null&&(N.childLanes&p)!==p&&(N.childLanes|=p),u===O)break;u=u.return}}function Is(u,p){Xd=u,Fh=As=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&p)!==0&&(eo=!0),u.firstContext=null)}function Co(u){var p=Se?u._currentValue:u._currentValue2;if(Fh!==u)if(u={context:u,memoizedValue:p,next:null},As===null){if(Xd===null)throw Error(a(308));As=u,Xd.dependencies={lanes:0,firstContext:u}}else As=As.next=u;return p}var Bi=null;function dc(u){Bi===null?Bi=[u]:Bi.push(u)}function zh(u,p,O,N){var L=p.interleaved;return L===null?(O.next=O,dc(p)):(O.next=L.next,L.next=O),p.interleaved=O,Ui(u,N)}function Ui(u,p){u.lanes|=p;var O=u.alternate;for(O!==null&&(O.lanes|=p),O=u,u=u.return;u!==null;)u.childLanes|=p,O=u.alternate,O!==null&&(O.childLanes|=p),O=u,u=u.return;return O.tag===3?O.stateNode:null}var Qa=!1;function Vh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(u,p){u=u.updateQueue,p.updateQueue===u&&(p.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ci(u,p){return{eventTime:u,lane:p,tag:0,payload:null,callback:null,next:null}}function Za(u,p,O){var N=u.updateQueue;if(N===null)return null;if(N=N.shared,(St&2)!==0){var L=N.pending;return L===null?p.next=p:(p.next=L.next,L.next=p),N.pending=p,Ui(u,O)}return L=N.interleaved,L===null?(p.next=p,dc(N)):(p.next=L.next,L.next=p),N.interleaved=p,Ui(u,O)}function Zd(u,p,O){if(p=p.updateQueue,p!==null&&(p=p.shared,(O&4194240)!==0)){var N=p.lanes;N&=u.pendingLanes,O|=N,p.lanes=O,Bd(u,O)}}function Cm(u,p){var O=u.updateQueue,N=u.alternate;if(N!==null&&(N=N.updateQueue,O===N)){var L=null,j=null;if(O=O.firstBaseUpdate,O!==null){do{var K={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};j===null?L=j=K:j=j.next=K,O=O.next}while(O!==null);j===null?L=j=p:j=j.next=p}else L=j=p;O={baseState:N.baseState,firstBaseUpdate:L,lastBaseUpdate:j,shared:N.shared,effects:N.effects},u.updateQueue=O;return}u=O.lastBaseUpdate,u===null?O.firstBaseUpdate=p:u.next=p,O.lastBaseUpdate=p}function Jd(u,p,O,N){var L=u.updateQueue;Qa=!1;var j=L.firstBaseUpdate,K=L.lastBaseUpdate,le=L.shared.pending;if(le!==null){L.shared.pending=null;var me=le,ke=me.next;me.next=null,K===null?j=ke:K.next=ke,K=me;var Me=u.alternate;Me!==null&&(Me=Me.updateQueue,le=Me.lastBaseUpdate,le!==K&&(le===null?Me.firstBaseUpdate=ke:le.next=ke,Me.lastBaseUpdate=me))}if(j!==null){var ze=L.baseState;K=0,Me=ke=me=null,le=j;do{var Ae=le.lane,Et=le.eventTime;if((N&Ae)===Ae){Me!==null&&(Me=Me.next={eventTime:Et,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var bt=u,Jt=le;switch(Ae=p,Et=O,Jt.tag){case 1:if(bt=Jt.payload,typeof bt=="function"){ze=bt.call(Et,ze,Ae);break e}ze=bt;break e;case 3:bt.flags=bt.flags&-65537|128;case 0:if(bt=Jt.payload,Ae=typeof bt=="function"?bt.call(Et,ze,Ae):bt,Ae==null)break e;ze=i({},ze,Ae);break e;case 2:Qa=!0}}le.callback!==null&&le.lane!==0&&(u.flags|=64,Ae=L.effects,Ae===null?L.effects=[le]:Ae.push(le))}else Et={eventTime:Et,lane:Ae,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Me===null?(ke=Me=Et,me=ze):Me=Me.next=Et,K|=Ae;if(le=le.next,le===null){if(le=L.shared.pending,le===null)break;Ae=le,le=Ae.next,Ae.next=null,L.lastBaseUpdate=Ae,L.shared.pending=null}}while(!0);if(Me===null&&(me=ze),L.baseState=me,L.firstBaseUpdate=ke,L.lastBaseUpdate=Me,p=L.shared.interleaved,p!==null){L=p;do K|=L.lane,L=L.next;while(L!==p)}else j===null&&(L.shared.lanes=0);jl|=K,u.lanes=K,u.memoizedState=ze}}function Pm(u,p,O){if(u=p.effects,p.effects=null,u!==null)for(p=0;pO?O:4,u(!0);var N=of.transition;of.transition={};try{u(!1),p()}finally{zt=O,of.transition=N}}function mc(){return To().memoizedState}function Z5(u,p,O){var N=nl(u);if(O={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null},Am(u))Yh(p,O);else if(O=zh(u,p,O,N),O!==null){var L=pn();Uo(O,u,N,L),yc(O,p,N)}}function J5(u,p,O){var N=nl(u),L={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null};if(Am(u))Yh(p,L);else{var j=u.alternate;if(u.lanes===0&&(j===null||j.lanes===0)&&(j=p.lastRenderedReducer,j!==null))try{var K=p.lastRenderedState,le=j(K,O);if(L.hasEagerState=!0,L.eagerState=le,jo(le,K)){var me=p.interleaved;me===null?(L.next=L,dc(p)):(L.next=me.next,me.next=L),p.interleaved=L;return}}catch{}finally{}O=zh(u,p,L,N),O!==null&&(L=pn(),Uo(O,u,N,L),yc(O,p,N))}}function Am(u){var p=u.alternate;return u===lr||p!==null&&p===lr}function Yh(u,p){pc=fc=!0;var O=u.pending;O===null?p.next=p:(p.next=O.next,O.next=p),u.pending=p}function yc(u,p,O){if((O&4194240)!==0){var N=p.lanes;N&=u.pendingLanes,O|=N,p.lanes=O,Bd(u,O)}}var sf={readContext:Co,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},e_={readContext:Co,useCallback:function(u,p){return fi().memoizedState=[u,p===void 0?null:p],u},useContext:Co,useEffect:$h,useImperativeHandle:function(u,p,O){return O=O!=null?O.concat([u]):null,vc(4194308,4,Em.bind(null,p,u),O)},useLayoutEffect:function(u,p){return vc(4194308,4,u,p)},useInsertionEffect:function(u,p){return vc(4,2,u,p)},useMemo:function(u,p){var O=fi();return p=p===void 0?null:p,u=u(),O.memoizedState=[u,p],u},useReducer:function(u,p,O){var N=fi();return p=O!==void 0?O(p):p,N.memoizedState=N.baseState=p,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:p},N.queue=u,u=u.dispatch=Z5.bind(null,lr,u),[N.memoizedState,u]},useRef:function(u){var p=fi();return u={current:u},p.memoizedState=u},useState:ma,useDebugValue:tl,useDeferredValue:function(u){return fi().memoizedState=u},useTransition:function(){var u=ma(!1),p=u[0];return u=Q5.bind(null,u[1]),fi().memoizedState=u,[p,u]},useMutableSource:function(){},useSyncExternalStore:function(u,p,O){var N=lr,L=fi();if(ar){if(O===void 0)throw Error(a(407));O=O()}else{if(O=p(),Kr===null)throw Error(a(349));(Al&30)!==0||Hh(N,p,O)}L.memoizedState=O;var j={value:O,getSnapshot:p};return L.queue=j,$h(km.bind(null,N,j,u),[u]),N.flags|=2048,Fs(9,Om.bind(null,N,j,O,p),void 0,null),O},useId:function(){var u=fi(),p=Kr.identifierPrefix;if(ar){var O=va,N=Vi;O=(N&~(1<<32-oi(N)-1)).toString(32)+O,p=":"+p+"R"+O,O=Ls++,0y0&&(p.flags|=128,N=!0,Vs(L,!1),p.lanes=4194304)}else{if(!N)if(u=Po(j),u!==null){if(p.flags|=128,N=!0,u=u.updateQueue,u!==null&&(p.updateQueue=u,p.flags|=4),Vs(L,!0),L.tail===null&&L.tailMode==="hidden"&&!j.alternate&&!ar)return Tn(p),null}else 2*Jr()-L.renderingStartTime>y0&&O!==1073741824&&(p.flags|=128,N=!0,Vs(L,!1),p.lanes=4194304);L.isBackwards?(j.sibling=p.child,p.child=j):(u=L.last,u!==null?u.sibling=j:p.child=j,L.last=j)}return L.tail!==null?(p=L.tail,L.rendering=p,L.tail=p.sibling,L.renderingStartTime=Jr(),p.sibling=null,u=fr.current,Ue(fr,N?u&1|2:u&1),p):(Tn(p),null);case 22:case 23:return x0(),O=p.memoizedState!==null,u!==null&&u.memoizedState!==null!==O&&(p.flags|=8192),O&&(p.mode&1)!==0?(to&1073741824)!==0&&(Tn(p),Ce&&p.subtreeFlags&6&&(p.flags|=8192)):Tn(p),null;case 24:return null;case 25:return null}throw Error(a(156,p.tag))}function n_(u,p){switch(nc(p),p.tag){case 1:return wr(p.type)&&wo(),u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 3:return Ja(),Nt(tt),Nt(at),nf(),u=p.flags,(u&65536)!==0&&(u&128)===0?(p.flags=u&-65537|128,p):null;case 5:return tf(p),null;case 13:if(Nt(fr),u=p.memoizedState,u!==null&&u.dehydrated!==null){if(p.alternate===null)throw Error(a(340));Rs()}return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 19:return Nt(fr),null;case 4:return Ja(),null;case 10:return jh(p.type._context),null;case 22:case 23:return x0(),null;case 24:return null;default:return null}}var yf=!1,dn=!1,qm=typeof WeakSet=="function"?WeakSet:Set,He=null;function Dl(u,p){var O=u.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(N){sr(u,p,N)}else O.current=null}function l0(u,p,O){try{O()}catch(N){sr(u,p,N)}}var Ym=!1;function Xm(u,p){for(W(u.containerInfo),He=p;He!==null;)if(u=He,p=u.child,(u.subtreeFlags&1028)!==0&&p!==null)p.return=u,He=p;else for(;He!==null;){u=He;try{var O=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var N=O.memoizedProps,L=O.memoizedState,j=u.stateNode,K=j.getSnapshotBeforeUpdate(u.elementType===u.type?N:hi(u.type,N),L);j.__reactInternalSnapshotBeforeUpdate=K}break;case 3:Ce&&Li(u.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(le){sr(u,u.return,le)}if(p=u.sibling,p!==null){p.return=u.return,He=p;break}He=u.return}return O=Ym,Ym=!1,O}function Tc(u,p,O){var N=p.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var L=N=N.next;do{if((L.tag&u)===u){var j=L.destroy;L.destroy=void 0,j!==void 0&&l0(p,O,j)}L=L.next}while(L!==N)}}function Oc(u,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var O=p=p.next;do{if((O.tag&u)===u){var N=O.create;O.destroy=N()}O=O.next}while(O!==p)}}function bf(u){var p=u.ref;if(p!==null){var O=u.stateNode;switch(u.tag){case 5:u=q(O);break;default:u=O}typeof p=="function"?p(u):p.current=u}}function s0(u){var p=u.alternate;p!==null&&(u.alternate=null,s0(p)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(p=u.stateNode,p!==null&&Ye(p)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function Qm(u){return u.tag===5||u.tag===3||u.tag===4}function Zm(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Qm(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function u0(u,p,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,p?yo(O,u,p):Qn(O,u);else if(N!==4&&(u=u.child,u!==null))for(u0(u,p,O),u=u.sibling;u!==null;)u0(u,p,O),u=u.sibling}function wf(u,p,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,p?qt(O,u,p):ln(O,u);else if(N!==4&&(u=u.child,u!==null))for(wf(u,p,O),u=u.sibling;u!==null;)wf(u,p,O),u=u.sibling}var fn=null,gi=!1;function $i(u,p,O){for(O=O.child;O!==null;)c0(u,p,O),O=O.sibling}function c0(u,p,O){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(ii,O)}catch{}switch(O.tag){case 5:dn||Dl(O,p);case 6:if(Ce){var N=fn,L=gi;fn=null,$i(u,p,O),fn=N,gi=L,fn!==null&&(gi?Cl(fn,O.stateNode):Qr(fn,O.stateNode))}else $i(u,p,O);break;case 18:Ce&&fn!==null&&(gi?Bt(fn,O.stateNode):Rt(fn,O.stateNode));break;case 4:Ce?(N=fn,L=gi,fn=O.stateNode.containerInfo,gi=!0,$i(u,p,O),fn=N,gi=L):(Re&&(N=O.stateNode.containerInfo,L=$r(N),pa(N,L)),$i(u,p,O));break;case 0:case 11:case 14:case 15:if(!dn&&(N=O.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){L=N=N.next;do{var j=L,K=j.destroy;j=j.tag,K!==void 0&&((j&2)!==0||(j&4)!==0)&&l0(O,p,K),L=L.next}while(L!==N)}$i(u,p,O);break;case 1:if(!dn&&(Dl(O,p),N=O.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=O.memoizedProps,N.state=O.memoizedState,N.componentWillUnmount()}catch(le){sr(O,p,le)}$i(u,p,O);break;case 21:$i(u,p,O);break;case 22:O.mode&1?(dn=(N=dn)||O.memoizedState!==null,$i(u,p,O),dn=N):$i(u,p,O);break;default:$i(u,p,O)}}function Jm(u){var p=u.updateQueue;if(p!==null){u.updateQueue=null;var O=u.stateNode;O===null&&(O=u.stateNode=new qm),p.forEach(function(N){var L=c_.bind(null,u,N);O.has(N)||(O.add(N),N.then(L,L))})}}function vi(u,p){var O=p.deletions;if(O!==null)for(var N=0;N";case _f:return":has("+(xf(u)||"")+")";case Gi:return'[role="'+u.value+'"]';case Ec:return'"'+u.value+'"';case Bs:return'[data-testname="'+u.value+'"]';default:throw Error(a(365))}}function Mc(u,p){var O=[];u=[u,0];for(var N=0;NL&&(L=K),N&=~j}if(N=L,N=Jr()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*i_(N/1960))-N,10u?16:u,_a===null)var N=!1;else{if(u=_a,_a=null,Tf=0,(St&6)!==0)throw Error(a(331));var L=St;for(St|=4,He=u.current;He!==null;){var j=He,K=j.child;if((He.flags&16)!==0){var le=j.deletions;if(le!==null){for(var me=0;meJr()-m0?Bl(u,0):v0|=O),ro(u,p)}function sy(u,p){p===0&&((u.mode&1)===0?p=1:(p=Zu,Zu<<=1,(Zu&130023424)===0&&(Zu=4194304)));var O=pn();u=Ui(u,p),u!==null&&(Ya(u,p,O),ro(u,O))}function T0(u){var p=u.memoizedState,O=0;p!==null&&(O=p.retryLane),sy(u,O)}function c_(u,p){var O=0;switch(u.tag){case 13:var N=u.stateNode,L=u.memoizedState;L!==null&&(O=L.retryLane);break;case 19:N=u.stateNode;break;default:throw Error(a(314))}N!==null&&N.delete(p),sy(u,O)}var uy;uy=function(u,p,O){if(u!==null)if(u.memoizedProps!==p.pendingProps||tt.current)eo=!0;else{if((u.lanes&O)===0&&(p.flags&128)===0)return eo=!1,Gm(u,p,O);eo=(u.flags&131072)!==0}else eo=!1,ar&&(p.flags&1048576)!==0&&$d(p,zi,p.index);switch(p.lanes=0,p.tag){case 2:var N=p.type;mf(u,p),u=p.pendingProps;var L=cn(p,at.current);Is(p,O),L=hc(null,p,N,u,L,O);var j=Uh();return p.flags|=1,typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,wr(N)?(j=!0,jd(p)):j=!1,p.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,Vh(p),L.updater=wc,p.stateNode=L,L._reactInternals=p,Xh(p,N,u,O),p=t0(null,p,N,!0,j,O)):(p.tag=0,ar&&j&&rc(p),Pn(null,p,L,O),p=p.child),p;case 16:N=p.elementType;e:{switch(mf(u,p),u=p.pendingProps,L=N._init,N=L(N._payload),p.type=N,L=p.tag=f_(N),u=hi(N,u),L){case 0:p=ff(null,p,N,u,O);break e;case 1:p=Wm(null,p,N,u,O);break e;case 11:p=zm(null,p,N,u,O);break e;case 14:p=Vm(null,p,N,hi(N.type,u),O);break e}throw Error(a(306,N,""))}return p;case 0:return N=p.type,L=p.pendingProps,L=p.elementType===N?L:hi(N,L),ff(u,p,N,L,O);case 1:return N=p.type,L=p.pendingProps,L=p.elementType===N?L:hi(N,L),Wm(u,p,N,L,O);case 3:e:{if(pf(p),u===null)throw Error(a(387));N=p.pendingProps,j=p.memoizedState,L=j.element,Sm(u,p),Jd(p,N,null,O);var K=p.memoizedState;if(N=K.element,xe&&j.isDehydrated)if(j={element:N,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},p.updateQueue.baseState=j,p.memoizedState=j,p.flags&256){L=zs(Error(a(423)),p),p=r0(u,p,N,O,L);break e}else if(N!==L){L=zs(Error(a(424)),p),p=r0(u,p,N,O,L);break e}else for(xe&&(xo=Be(p.stateNode.containerInfo),_o=p,ar=!0,ui=null,oc=!1),O=Dh(p,null,N,O),p.child=O;O;)O.flags=O.flags&-3|4096,O=O.sibling;else{if(Rs(),N===L){p=Hi(u,p,O);break e}Pn(u,p,N,O)}p=p.child}return p;case 5:return Tm(p),u===null&&Kd(p),N=p.type,L=p.pendingProps,j=u!==null?u.memoizedProps:null,K=L.children,ye(N,L)?K=null:j!==null&&ye(N,j)&&(p.flags|=32),Hm(u,p),Pn(u,p,K,O),p.child;case 6:return u===null&&Kd(p),null;case 13:return $m(u,p,O);case 4:return ef(p,p.stateNode.containerInfo),N=p.pendingProps,u===null?p.child=Ns(p,null,N,O):Pn(u,p,N,O),p.child;case 11:return N=p.type,L=p.pendingProps,L=p.elementType===N?L:hi(N,L),zm(u,p,N,L,O);case 7:return Pn(u,p,p.pendingProps,O),p.child;case 8:return Pn(u,p,p.pendingProps.children,O),p.child;case 12:return Pn(u,p,p.pendingProps.children,O),p.child;case 10:e:{if(N=p.type._context,L=p.pendingProps,j=p.memoizedProps,K=L.value,Qd(p,N,K),j!==null)if(jo(j.value,K)){if(j.children===L.children&&!tt.current){p=Hi(u,p,O);break e}}else for(j=p.child,j!==null&&(j.return=p);j!==null;){var le=j.dependencies;if(le!==null){K=j.child;for(var me=le.firstContext;me!==null;){if(me.context===N){if(j.tag===1){me=ci(-1,O&-O),me.tag=2;var ke=j.updateQueue;if(ke!==null){ke=ke.shared;var Me=ke.pending;Me===null?me.next=me:(me.next=Me.next,Me.next=me),ke.pending=me}}j.lanes|=O,me=j.alternate,me!==null&&(me.lanes|=O),cc(j.return,O,p),le.lanes|=O;break}me=me.next}}else if(j.tag===10)K=j.type===p.type?null:j.child;else if(j.tag===18){if(K=j.return,K===null)throw Error(a(341));K.lanes|=O,le=K.alternate,le!==null&&(le.lanes|=O),cc(K,O,p),K=j.sibling}else K=j.child;if(K!==null)K.return=j;else for(K=j;K!==null;){if(K===p){K=null;break}if(j=K.sibling,j!==null){j.return=K.return,K=j;break}K=K.return}j=K}Pn(u,p,L.children,O),p=p.child}return p;case 9:return L=p.type,N=p.pendingProps.children,Is(p,O),L=Co(L),N=N(L),p.flags|=1,Pn(u,p,N,O),p.child;case 14:return N=p.type,L=hi(N,p.pendingProps),L=hi(N.type,L),Vm(u,p,N,L,O);case 15:return Bm(u,p,p.type,p.pendingProps,O);case 17:return N=p.type,L=p.pendingProps,L=p.elementType===N?L:hi(N,L),mf(u,p),p.tag=1,wr(N)?(u=!0,jd(p)):u=!1,Is(p,O),Dm(p,N,L),Xh(p,N,L,O),t0(null,p,N,!0,u,O);case 19:return i0(u,p,O);case 22:return Um(u,p,O)}throw Error(a(156,p.tag))};function cy(u,p){return ec(u,p)}function d_(u,p,O,N){this.tag=u,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(u,p,O,N){return new d_(u,p,O,N)}function Ef(u){return u=u.prototype,!(!u||!u.isReactComponent)}function f_(u){if(typeof u=="function")return Ef(u)?1:0;if(u!=null){if(u=u.$$typeof,u===y)return 11;if(u===f)return 14}return 2}function x(u,p){var O=u.alternate;return O===null?(O=Oo(u.tag,p,u.key,u.mode),O.elementType=u.elementType,O.type=u.type,O.stateNode=u.stateNode,O.alternate=u,u.alternate=O):(O.pendingProps=p,O.type=u.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=u.flags&14680064,O.childLanes=u.childLanes,O.lanes=u.lanes,O.child=u.child,O.memoizedProps=u.memoizedProps,O.memoizedState=u.memoizedState,O.updateQueue=u.updateQueue,p=u.dependencies,O.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},O.sibling=u.sibling,O.index=u.index,O.ref=u.ref,O}function M(u,p,O,N,L,j){var K=2;if(N=u,typeof u=="function")Ef(u)&&(K=1);else if(typeof u=="string")K=5;else e:switch(u){case v:return I(O.children,L,j,p);case w:K=8,L|=8;break;case S:return u=Oo(12,O,p,L|2),u.elementType=S,u.lanes=j,u;case C:return u=Oo(13,O,p,L),u.elementType=C,u.lanes=j,u;case g:return u=Oo(19,O,p,L),u.elementType=g,u.lanes=j,u;case h:return D(O,L,j,p);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case b:K=10;break e;case P:K=9;break e;case y:K=11;break e;case f:K=14;break e;case c:K=16,N=null;break e}throw Error(a(130,u==null?u:typeof u,""))}return p=Oo(K,O,p,L),p.elementType=u,p.type=N,p.lanes=j,p}function I(u,p,O,N){return u=Oo(7,u,N,p),u.lanes=O,u}function D(u,p,O,N){return u=Oo(22,u,N,p),u.elementType=h,u.lanes=O,u.stateNode={isHidden:!1},u}function z(u,p,O){return u=Oo(6,u,null,p),u.lanes=O,u}function $(u,p,O){return p=Oo(4,u.children!==null?u.children:[],u.key,p),p.lanes=O,p.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},p}function G(u,p,O,N,L){this.tag=p,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=N,this.onRecoverableError=L,xe&&(this.mutableSourceEagerHydrationData=null)}function U(u,p,O,N,L,j,K,le,me){return u=new G(u,p,O,le,me),p===1?(p=1,j===!0&&(p|=8)):p=0,j=Oo(3,null,null,p),u.current=j,j.stateNode=u,j.memoizedState={element:N,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vh(j),u}function Z(u){if(!u)return At;u=u._reactInternals;e:{if(R(u)!==u||u.tag!==1)throw Error(a(170));var p=u;do{switch(p.tag){case 3:p=p.stateNode.context;break e;case 1:if(wr(p.type)){p=p.stateNode.__reactInternalMemoizedMergedChildContext;break e}}p=p.return}while(p!==null);throw Error(a(171))}if(u.tag===1){var O=u.type;if(wr(O))return Qu(u,O,p)}return p}function ee(u){var p=u._reactInternals;if(p===void 0)throw typeof u.render=="function"?Error(a(188)):(u=Object.keys(u).join(","),Error(a(268,u)));return u=F(p),u===null?null:u.stateNode}function ie(u,p){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var O=u.retryLane;u.retryLane=O!==0&&O=ke&&j>=ze&&L<=Me&&K<=Ae){u.splice(p,1);break}else if(N!==ke||O.width!==me.width||AeK){if(!(j!==ze||O.height!==me.height||MeL)){ke>N&&(me.width+=ke-N,me.x=N),Mej&&(me.height+=ze-j,me.y=j),AeO&&(O=K)),K ")+` + +No matching component was found for: + `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return q(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:fe,findFiberByHostInstance:u.findFiberByHostInstance||ge,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(p.isDisabled||!p.supportsFiber)u=!0;else{try{ii=p.inject(u),ai=p}catch{}u=!!p.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,p,O,N){if(!gt)throw Error(a(363));u=Rc(u,p);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,p){var O=p._getVersion;O=O(p._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[p,O]:u.mutableSourceEagerHydrationData.push(p,O)},r.runWithPriority=function(u,p){var O=zt;try{return zt=u,p()}finally{zt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,p,O,N){var L=p.current,j=pn(),K=nl(L);return O=Z(O),p.context===null?p.context=O:p.pendingContext=O,p=ci(j,K),p.payload={element:u},N=N===void 0?null:N,N!==null&&(p.callback=N),u=Za(L,p,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Mz.exports=Dne;var Fne=Mz.exports;const jne=nh(Fne);var Rz={exports:{}},Fd={};/** + * @license React + * react-reconciler-constants.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Rz.exports=Fd;var Nz=Rz.exports;const AE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let IE=!1,LE=!1;const GT=".react-konva-event",zne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. +Position of a node will be changed during drag&drop, so you should update state of the react app as well. +Consider to add onDragMove or onDragEnd events. +For more info see: https://github.com/konvajs/react-konva/issues/256 +`,Vne=`ReactKonva: You are using "zIndex" attribute for a Konva node. +react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. +For more info see: https://github.com/konvajs/react-konva/issues/194 +`,Bne={};function T5(e,t,r=Bne){if(!IE&&"zIndex"in t&&(console.warn(Vne),IE=!0),!LE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(zne),LE=!0)}for(var i in r)if(!AE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,w={},S=!1;const b={};for(var i in t)if(!AE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(b[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,w[i]=t[i])}S&&(e.setAttrs(w),Xu(e));for(var s in b)e.on(s+GT,b[s])}function Xu(e){if(!Pt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Az={},Une={};Rv.Node.prototype._applyProps=T5;function Hne(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function Wne(e,t,r){let n=Rv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Rv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return T5(s,i),s}function $ne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Gne(e,t,r){return!1}function Kne(e){return e}function qne(){return null}function Yne(){return null}function Xne(e,t,r,n){return Une}function Qne(){}function Zne(e){}function Jne(e,t){return!1}function eoe(){return Az}function toe(){return Az}const roe=setTimeout,noe=clearTimeout,ooe=-1;function ioe(e,t){return!1}const aoe=!1,loe=!0,soe=!0;function uoe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function coe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Iz(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function doe(e,t,r){Iz(e,t,r)}function foe(e,t){t.destroy(),t.off(GT),Xu(e)}function poe(e,t){t.destroy(),t.off(GT),Xu(e)}function hoe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function goe(e,t,r){}function voe(e,t,r,n,o){T5(e,o,n)}function moe(e){e.hide(),Xu(e)}function yoe(e){}function boe(e,t){(t.visible==null||t.visible)&&e.show()}function woe(e,t){}function _oe(e){}function xoe(){}const Soe=()=>Nz.DefaultEventPriority,Coe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:uoe,appendChildToContainer:coe,appendInitialChild:Hne,cancelTimeout:noe,clearContainer:_oe,commitMount:goe,commitTextUpdate:hoe,commitUpdate:voe,createInstance:Wne,createTextInstance:$ne,detachDeletedInstance:xoe,finalizeInitialChildren:Gne,getChildHostContext:toe,getCurrentEventPriority:Soe,getPublicInstance:Kne,getRootHostContext:eoe,hideInstance:moe,hideTextInstance:yoe,idlePriority:fp.unstable_IdlePriority,insertBefore:Iz,insertInContainerBefore:doe,isPrimaryRenderer:aoe,noTimeout:ooe,now:fp.unstable_now,prepareForCommit:qne,preparePortalMount:Yne,prepareUpdate:Xne,removeChild:foe,removeChildFromContainer:poe,resetAfterCommit:Qne,resetTextContent:Zne,run:fp.unstable_runWithPriority,scheduleTimeout:roe,shouldDeprioritizeSubtree:Jne,shouldSetTextContent:ioe,supportsMutation:soe,unhideInstance:boe,unhideTextInstance:woe,warnsIfNotActing:loe},Symbol.toStringTag,{value:"Module"}));var Poe=Object.defineProperty,Toe=Object.defineProperties,Ooe=Object.getOwnPropertyDescriptors,DE=Object.getOwnPropertySymbols,koe=Object.prototype.hasOwnProperty,Eoe=Object.prototype.propertyIsEnumerable,FE=(e,t,r)=>t in e?Poe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jE=(e,t)=>{for(var r in t||(t={}))koe.call(t,r)&&FE(e,r,t[r]);if(DE)for(var r of DE(t))Eoe.call(t,r)&&FE(e,r,t[r]);return e},Moe=(e,t)=>Toe(e,Ooe(t)),zE,VE;typeof window<"u"&&((zE=window.document)!=null&&zE.createElement||((VE=window.navigator)==null?void 0:VE.product)==="ReactNative")?X.useLayoutEffect:X.useEffect;function Lz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Lz(n,t,r);if(o)return o;n=n.sibling}}function Dz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const BE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=BE;return}return BE.apply(this,arguments)};const KT=Dz(X.createContext(null));class Fz extends X.Component{render(){return X.createElement(KT.Provider,{value:this._reactInternals},this.props.children)}}function Roe(){const e=X.useContext(KT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=X.useId();return X.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Lz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Noe(){const e=Roe(),[t]=X.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==KT&&!t.has(o)&&t.set(o,X.useContext(Dz(o)))}r=r.return}return t}function Aoe(){const e=Noe();return X.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>X.createElement(t,null,X.createElement(r.Provider,Moe(jE({},n),{value:e.get(r)}))),t=>X.createElement(Fz,jE({},t))),[e])}function Ioe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Loe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Ioe(e),i=Aoe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Rv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=fg.createContainer(r.current,Nz.LegacyRoot,!1,null),fg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Rv.isBrowser&&(a(null),fg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),T5(r.current,e,o),fg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},Hx="Layer",UE="Group",Doe="Rect",Foe="Circle",joe="Line",zoe="Image",HE="Text",fg=jne(Coe);fg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const Voe=Or.forwardRef((e,t)=>Or.createElement(Fz,{},Or.createElement(Loe,{...e,forwardedRef:t})));function Boe(e){window.open(e,"_blank","noreferrer")}function w4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Uoe(e,t){return t.includes(e)}const Fg="https://roguewar.org",Hoe=2.5,Woe=1,$oe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltip:a,highlighted:l=!1,opacity:s=1})=>{const d=e.isCapital?Hoe:Woe,v=(l?d*3:d)/t,w=(f,c)=>[...f].sort((h,m)=>m.control-h.control).map(h=>{const m=w4(h.Name,c);return{name:(m==null?void 0:m.prettyName)||h.Name,control:h.control,players:h.ActivePlayers}}),S=f=>`${f.name} ${f.control}% · P${f.players}`,b=e.factions.some(f=>f.ActivePlayers>0),P=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",y=f=>{if(!f)return"None";const h=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([m])=>f[m]).map(([,m])=>m);return h.length?h.join(", "):"None"},C=(f=!1)=>{var R;const c=((R=w4(e.owner,r))==null?void 0:R.prettyName)||"Unknown",h=w(e.factions,r),m=h.slice(0,3),_=Math.max(0,h.length-m.length),T=y(e.state),k=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${c}`,"Control:",...m.map(S),..._>0?[`+${_} more`]:[],`Damage: ${P}`];return T!=="None"&&k.push(`State: ${T}`),f&&k.push("[Tap to open]"),{text:k.join(` +`),controlItems:h}},g=X.useRef(null);return X.useEffect(()=>{if(!n.flashActivePlayes||!b||!g.current)return;const f=g.current,c=s,h=new y4.Animation(m=>{if(!m)return;const _=Math.sin(m.time*.005),T=_*.1+1,k=_*.15+.7;f.scale({x:T,y:T}),f.opacity(c*k)},f.getLayer());return h.start(),()=>{h.stop(),f.opacity(c)}},[b,n,s]),Fe.jsx(Foe,{ref:g,x:Number(e.posX),y:-Number(e.posY),fill:e.factionColour,radius:v,hitStrokeWidth:3,opacity:s,onClick:f=>{f.cancelBubble=!0,e.sysUrl&&Boe(`${Fg}${e.sysUrl}`)},onMouseEnter:f=>{const c=f.target.getStage();if(!c)return;const h=c.getPointerPosition();if(!h)return;const m=C();o(m.text,h.x,h.y,c.x(),c.y(),void 0,m.controlItems)},onMouseLeave:i,onTouchStart:f=>{if(f.evt.touches.length===1){f.evt.preventDefault();const c=f.target.getStage();if(!c)return;const h=c.getRelativePointerPosition();if(!h)return;if(a.visible&&a.text.includes(e.name)){window.location.href=`${Fg}${e.sysUrl}`;return}const m=C(!0);o(m.text,h.x,h.y,void 0,void 0,()=>{window.location.href=`${Fg}${e.sysUrl}`},m.controlItems)}}})},Goe=X.memo($oe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Koe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jz(e){var t=Koe(e,"string");return vd(t)=="symbol"?t:t+""}function pg(e,t,r){return(t=jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(kh,--ri):0,rh--,nn===10&&(rh=1,k5--),nn}function Ti(){return nn=ri2||Av(nn)>3?"":" "}function xie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return hm(e,Qb()+(t<6&&bl()==32&&Ti()==32))}function C4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&C4(nn);break;case 40:e===41&&C4(e);break;case 92:Ti();break}return ri}function Sie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+hm(t,ri-1)+"*"+O5(e===47?e:Ti())}function Cie(e){for(;!Av(bl());)Ti();return hm(e,ri)}function Pie(e){return Gz(Jb("",null,null,null,[""],e=$z(e),0,[0],e))}function Jb(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,w=a,S=0,b=0,P=0,y=1,C=1,g=1,f=0,c="",h=o,m=i,_=n,T=c;C;)switch(P=f,f=Ti()){case 40:if(P!=108&&$n(T,w-1)==58){S4(T+=Gt(Zb(f),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Zb(f);break;case 9:case 10:case 13:case 32:T+=_ie(P);break;case 92:T+=xie(Qb()-1,7);continue;case 47:switch(bl()){case 42:case 47:ab(Tie(Sie(Ti(),Qb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*g;case 125*y:case 59:case 0:switch(f){case 0:case 125:C=0;case 59+v:g==-1&&(T=Gt(T,/\f/g,"")),b>0&&cl(T)-w&&ab(b>32?KE(T+";",n,r,w-1):KE(Gt(T," ","")+";",n,r,w-2),s);break;case 59:T+=";";default:if(ab(_=GE(T,t,r,d,v,o,l,c,h=[],m=[],w),i),f===123)if(v===0)Jb(T,t,_,_,h,i,w,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:Jb(e,_,_,n&&ab(GE(e,_,_,0,0,o,l,c,o,h=[],w),m),o,m,w,l,n?h:m);break;default:Jb(T,_,_,_,[""],m,0,l,m)}}d=v=b=0,y=g=1,c=T="",w=a;break;case 58:w=1+cl(T),b=P;default:if(y<1){if(f==123)--y;else if(f==125&&y++==0&&wie()==125)continue}switch(T+=O5(f),f*y){case 38:g=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*g,g=1;break;case 64:bl()===45&&(T+=Zb(Ti())),S=bl(),v=w=cl(c=T+=Cie(Qb())),f++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function GE(e,t,r,n,o,i,a,l,s,d,v){for(var w=o-1,S=o===0?i:[""],b=QT(S),P=0,y=0,C=0;P0?S[g]+" "+f:Gt(f,/&\f/g,S[g])))&&(s[C++]=c);return E5(e,t,r,o===0?YT:l,s,d,v)}function Tie(e,t,r){return E5(e,t,r,Bz,O5(bie()),Nv(e,2,-2),0)}function KE(e,t,r,n){return E5(e,t,r,XT,Nv(e,0,n),Nv(e,n+1,-1),n)}function Ep(e,t){for(var r="",n=QT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Gt(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Pw+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~S4(e,"stretch")?Kz(Gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~S4(e,"!important")&&10))){case 107:return Gt(e,":",":"+$t)+e;case 101:return Gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+($n(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return $t+e+so+Gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+so+Gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+so+Gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+so+e+e}return e}var Die=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case XT:t.return=Kz(t.value,t.length);break;case Uz:return Ep([J0(t,{value:Gt(t.value,"@","@"+$t)})],o);case YT:if(t.length)return yie(t.props,function(i){switch(mie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ep([J0(t,{props:[Gt(i,/:(read-\w+)/,":"+Pw+"$1")]})],o);case"::placeholder":return Ep([J0(t,{props:[Gt(i,/:(plac\w+)/,":"+$t+"input-$1")]}),J0(t,{props:[Gt(i,/:(plac\w+)/,":"+Pw+"$1")]}),J0(t,{props:[Gt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Fie=[Die],jie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Fie,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),g=1;g=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zie=/[A-Z]|^ms/g,Jie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jz=function(t){return t.charCodeAt(1)===45},YE=function(t){return t!=null&&typeof t!="boolean"},Wx=Mie(function(e){return Jz(e)?e:e.replace(Zie,"-$&").toLowerCase()}),XE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Jie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Qie[t]!==1&&!Jz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Iv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return eae(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Iv(e,t,d)}break}}var v=r;return v}function eae(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function hae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function V5(){return typeof window<"u"}function rV(e){return oV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nV(e){var t;return(t=(oV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oV(e){return V5()?e instanceof Node||e instanceof ms(e).Node:!1}function gae(e){return V5()?e instanceof Element||e instanceof ms(e).Element:!1}function nO(e){return V5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function ZE(e){return!V5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const vae=new Set(["inline","contents"]);function iV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=oO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!vae.has(o)}function mae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const yae=new Set(["html","body","#document"]);function bae(e){return yae.has(rV(e))}function oO(e){return ms(e).getComputedStyle(e)}function wae(e){if(rV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ZE(e)&&e.host||nV(e);return ZE(t)?t.host:t}function aV(e){const t=wae(e);return bae(t)?e.ownerDocument?e.ownerDocument.body:e.body:nO(t)&&iV(t)?t:aV(t)}function kw(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=aV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=T4(a);return t.concat(a,a.visualViewport||[],iV(o)?o:[],l&&r?kw(l):[])}return t.concat(o,kw(o,[],r))}function T4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _ae(e){const t=oO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=nO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=Tw(r)!==i||Tw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function iO(e){return gae(e)?e:e.contextElement}function JE(e){const t=iO(e);if(!nO(t))return Ow(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=_ae(t);let a=(i?Tw(r.width):r.width)/n,l=(i?Tw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xae=Ow(0);function Sae(e){const t=ms(e);return!mae()||!t.visualViewport?xae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cae(e,t,r){return!1}function e9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=iO(e);let a=Ow(1);t&&(a=JE(e));const l=Cae()?Sae(i):Ow(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,w=o.height/a.y;if(i){const S=ms(i),b=n;let P=S,y=T4(P);for(;y&&n&&b!==P;){const C=JE(y),g=y.getBoundingClientRect(),f=oO(y),c=g.left+(y.clientLeft+parseFloat(f.paddingLeft))*C.x,h=g.top+(y.clientTop+parseFloat(f.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,w*=C.y,s+=c,d+=h,P=ms(y),y=T4(P)}}return hae({width:v,height:w,x:s,y:d})}function lV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pae(e,t){let r=null,n;const o=nV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:w,width:S,height:b}=d;if(l||t(),!S||!b)return;const P=lb(w),y=lb(o.clientWidth-(v+S)),C=lb(o.clientHeight-(w+b)),g=lb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-g+"px",threshold:pae(0,fae(1,s))||1};let h=!0;function m(_){const T=_[0].intersectionRatio;if(T!==s){if(!h)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!lV(d,e.getBoundingClientRect())&&a(),h=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Tae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=iO(e),v=o||i?[...d?kw(d):[],...kw(t)]:[];v.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const w=d&&l?Pae(d,r):null;let S=-1,b=null;a&&(b=new ResizeObserver(g=>{let[f]=g;f&&f.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=b)==null||c.observe(t)})),r()}),d&&!s&&b.observe(d),b.observe(t));let P,y=s?e9(e):null;s&&C();function C(){const g=e9(e);y&&!lV(y,g)&&r(),y=g,P=requestAnimationFrame(C)}return r(),()=>{var g;v.forEach(f=>{o&&f.removeEventListener("scroll",r),i&&f.removeEventListener("resize",r)}),w==null||w(),(g=b)==null||g.disconnect(),b=null,s&&cancelAnimationFrame(P)}}var O4=X.useLayoutEffect,Oae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ew=function(){};function kae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Eae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Mae(e){return B5(e)?window.innerHeight:e.clientHeight}function uV(e){return B5(e)?window.pageYOffset:e.scrollTop}function Mw(e,t){if(B5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Rae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Nae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function sb(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ew,o=uV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Nae(l,o,i,r);Mw(e,d),lr.bottom?Mw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&sb(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&sb(s,E,F);var V=a?T-h:R-h;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,H=a?_:k;return H>=n&&(B=Math.min(H-h-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Mw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&sb(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&_>=n){var q=t;return(!a&&k>=n||a&&_>=n)&&(q=a?_-m:k-m),i&&sb(s,A,F),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Hae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dV=function(t){return t==="auto"?"bottom":t},Wae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},pg(n,Hae(o),"100%"),pg(n,"position","absolute"),pg(n,"width","100%"),pg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},fV=X.createContext(null),$ae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=X.useContext(fV)||{},v=d.setPortalPlacement,w=X.useRef(null),S=X.useState(o),b=as(S,2),P=b[0],y=b[1],C=X.useState(null),g=as(C,2),f=g[0],c=g[1],h=s.spacing.controlHeight;return O4(function(){var m=w.current;if(m){var _=a==="fixed",T=l&&!_,k=Uae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:_,controlHeight:h});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,h]),r({ref:w,placerProps:st(st({},t),{},{placement:f||dV(i),maxHeight:P})})},Gae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return ot("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Kae=Gae,qae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},Yae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return ot("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},pV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Xae=pV,Qae=pV,Zae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,Vae);return ot("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Jae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Bae);return ot("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},ele=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},tle=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=X.useRef(null),d=X.useRef(null),v=X.useState(dV(a)),w=as(v,2),S=w[0],b=w[1],P=X.useMemo(function(){return{setPortalPlacement:b}},[]),y=X.useState(null),C=as(y,2),g=C[0],f=C[1],c=X.useCallback(function(){if(o){var T=Aae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(g==null?void 0:g.offset)||T.left!==(g==null?void 0:g.rect.left)||T.width!==(g==null?void 0:g.rect.width))&&f({offset:R,rect:T})}},[o,l,S,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);O4(function(){c()},[c]);var h=X.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Tae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);O4(function(){h()},[h]);var m=X.useCallback(function(T){s.current=T,h()},[h]);if(!r&&l!=="fixed"||!g)return null;var _=ot("div",dt({ref:m},Hr(st(st({},t),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return ot(fV.Provider,{value:P},r?qw.createPortal(_,r):_)},rle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},nle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return ot("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},ole=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ile=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return ot("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ale=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},lle=function(t){var r=t.children,n=t.innerProps;return ot("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},o9,sle=["size"],ule=["innerProps","isRtl","size"],cle={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hV=function(t){var r=t.size,n=Ps(t,sle);return ot("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cle},n))},aO=function(t){return ot(hV,dt({size:20},t),ot("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gV=function(t){return ot(hV,dt({size:20},t),ot("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},dle=vV,fle=function(t){var r=t.children,n=t.innerProps;return ot("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||ot(gV,null))},ple=vV,hle=function(t){var r=t.children,n=t.innerProps;return ot("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||ot(aO,null))},gle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},vle=function(t){var r=t.innerProps;return ot("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},mle=cae(o9||(o9=dae([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),yle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},$x=function(t){var r=t.delay,n=t.offset;return ot("span",{css:rO({animation:"".concat(mle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ble=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,ule);return ot("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ot($x,{delay:0,offset:n}),ot($x,{delay:160,offset:!0}),ot($x,{delay:320,offset:!n}))},wle=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},_le=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return ot("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},xle=_le,Sle=["data"],Cle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Ple=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,w=t.selectProps;return ot("div",dt({},Hr(t,"group",{group:!0}),s),ot(a,dt({},l,{selectProps:w,theme:v,getStyles:o,getClassNames:i,cx:n}),d),ot("div",null,r))},Tle=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Ole=function(t){var r=sV(t);r.data;var n=Ps(r,Sle);return ot("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},kle=Ple,Ele=["innerRef","isDisabled","isHidden","inputClassName"],Mle=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Rle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},mV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Rle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mV)},Nle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},mV)},Ale=function(t){var r=t.cx,n=t.value,o=sV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,Ele);return ot("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),ot("input",dt({className:r({input:!0},s),ref:i,style:Nle(l),disabled:a},d)))},Ile=Ale,Lle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Dle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Fle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},yV=function(t){var r=t.children,n=t.innerProps;return ot("div",n,r)},jle=yV,zle=yV;function Vle(e){var t=e.children,r=e.innerProps;return ot("div",dt({role:"button"},r),t||ot(aO,{size:14}))}var Ble=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,w=n.Remove;return ot(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},ot(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),ot(w,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ule=Ble,Hle=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return ot("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},$le=Wle,Gle=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Kle=function(t){var r=t.children,n=t.innerProps;return ot("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},qle=Kle,Yle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Xle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return ot("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Qle=Xle,Zle={ClearIndicator:hle,Control:xle,DropdownIndicator:fle,DownChevron:gV,CrossIcon:aO,Group:kle,GroupHeading:Ole,IndicatorsContainer:lle,IndicatorSeparator:vle,Input:Ile,LoadingIndicator:ble,Menu:Kae,MenuList:Yae,MenuPortal:tle,LoadingMessage:Jae,NoOptionsMessage:Zae,MultiValue:Ule,MultiValueContainer:jle,MultiValueLabel:zle,MultiValueRemove:Vle,Option:$le,Placeholder:qle,SelectContainer:nle,SingleValue:Qle,ValueContainer:ile},Jle=function(t){return st(st({},Zle),t.components)},i9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ese(e,t){return!!(e===t||i9(e)&&i9(t))}function tse(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,w=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(w(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",b="".concat(d?" selected":"").concat(S);return"".concat(a).concat(b,", ").concat(w(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ase=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,w=s.ariaLiveMessages,S=s.getOptionLabel,b=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,g=s.menuIsOpen,f=s.options,c=s.screenReaderStatus,h=s.tabSelectsValue,m=s.isLoading,_=s["aria-label"],T=s["aria-live"],k=X.useMemo(function(){return st(st({},ise),w||{})},[w]),R=X.useMemo(function(){var H="";if(r&&k.onChange){var q=r.option,re=r.options,Q=r.removedValue,W=r.removedValues,Y=r.value,te=function(oe){return Array.isArray(oe)?null:oe},ne=Q||q||te(Y),se=ne?S(ne):"",ve=re||W||void 0,ye=ve?ve.map(S):[],ce=st({isDisabled:ne&&y(ne,l),label:se,labels:ye},r);H=k.onChange(ce)}return H},[r,k,y,l,S]),E=X.useMemo(function(){var H="",q=n||o,re=!!(n&&l&&l.includes(n));if(q&&k.onFocus){var Q={focused:q,label:S(q),isDisabled:y(q,l),isSelected:re,options:i,context:q===n?"menu":"value",selectValue:l,isAppleDevice:v};H=k.onFocus(Q)}return H},[n,o,S,y,k,i,l,v]),A=X.useMemo(function(){var H="";if(g&&f.length&&!m&&k.onFilter){var q=c({count:i.length});H=k.onFilter({inputValue:b,resultsMessage:q})}return H},[i,b,g,k,f,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=X.useMemo(function(){var H="";if(k.guidance){var q=o?"value":g?"menu":"input";H=k.guidance({"aria-label":_,context:q,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:h,isInitialFocus:F})}return H},[_,n,o,P,y,C,g,k,l,h,F]),B=ot(X.Fragment,null,ot("span",{id:"aria-selection"},R),ot("span",{id:"aria-focused"},E),ot("span",{id:"aria-results"},A),ot("span",{id:"aria-guidance"},V));return ot(X.Fragment,null,ot(a9,{id:d},F&&B),ot(a9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},lse=ase,k4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sse=new RegExp("["+k4.map(function(e){return e.letters}).join("")+"]","g"),bV={};for(var Gx=0;Gx-1}},fse=["innerRef"];function pse(e){var t=e.innerRef,r=Ps(e,fse),n=zae(r,"onExited","in","enter","exit","appear");return ot("input",dt({ref:t},n,{css:rO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function gse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=X.useRef(!1),l=X.useRef(!1),s=X.useRef(0),d=X.useRef(null),v=X.useCallback(function(C,g){if(d.current!==null){var f=d.current,c=f.scrollTop,h=f.scrollHeight,m=f.clientHeight,_=d.current,T=g>0,k=h-m-c,R=!1;k>g&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&g>k?(r&&!a.current&&r(C),_.scrollTop=h,R=!0,a.current=!0):!T&&-g>c&&(o&&!l.current&&o(C),_.scrollTop=0,R=!0,l.current=!0),R&&hse(C)}},[r,n,o,i]),w=X.useCallback(function(C){v(C,C.deltaY)},[v]),S=X.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),b=X.useCallback(function(C){var g=s.current-C.changedTouches[0].clientY;v(C,g)},[v]),P=X.useCallback(function(C){if(C){var g=Dae?{passive:!1}:!1;C.addEventListener("wheel",w,g),C.addEventListener("touchstart",S,g),C.addEventListener("touchmove",b,g)}},[b,S,w]),y=X.useCallback(function(C){C&&(C.removeEventListener("wheel",w,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",b,!1))},[b,S,w]);return X.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var s9=["boxSizing","height","overflow","paddingRight","position"],u9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function c9(e){e.cancelable&&e.preventDefault()}function d9(e){e.stopPropagation()}function f9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function p9(){return"ontouchstart"in window||navigator.maxTouchPoints}var h9=!!(typeof window<"u"&&window.document&&window.document.createElement),eg=0,Ff={capture:!1,passive:!1};function vse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=X.useRef({}),i=X.useRef(null),a=X.useCallback(function(s){if(h9){var d=document.body,v=d&&d.style;if(n&&s9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&eg<1){var w=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,b=window.innerWidth-S+w||0;Object.keys(u9).forEach(function(P){var y=u9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(b,"px"))}d&&p9()&&(d.addEventListener("touchmove",c9,Ff),s&&(s.addEventListener("touchstart",f9,Ff),s.addEventListener("touchmove",d9,Ff))),eg+=1}},[n]),l=X.useCallback(function(s){if(h9){var d=document.body,v=d&&d.style;eg=Math.max(eg-1,0),n&&eg<1&&s9.forEach(function(w){var S=o.current[w];v&&(v[w]=S)}),d&&p9()&&(d.removeEventListener("touchmove",c9,Ff),s&&(s.removeEventListener("touchstart",f9,Ff),s.removeEventListener("touchmove",d9,Ff)))}},[n]);return X.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var mse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},yse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function bse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=gse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=vse({isEnabled:r}),w=function(b){d(b),v(b)};return ot(X.Fragment,null,r&&ot("div",{onClick:mse,css:yse}),t(w))}var wse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},_se=function(t){var r=t.name,n=t.onFocus;return ot("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:wse,value:"",onChange:function(){}})},xse=_se;function lO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Sse(){return lO(/^iPhone/i)}function _V(){return lO(/^Mac/i)}function Cse(){return lO(/^iPad/i)||_V()&&navigator.maxTouchPoints>1}function Pse(){return Sse()||Cse()}function Tse(){return _V()||Pse()}var Ose=function(t){return t.label},kse=function(t){return t.label},Ese=function(t){return t.value},Mse=function(t){return!!t.isDisabled},Rse={clearIndicator:ple,container:rle,control:wle,dropdownIndicator:dle,group:Cle,groupHeading:Tle,indicatorsContainer:ale,indicatorSeparator:gle,input:Mle,loadingIndicator:yle,loadingMessage:Qae,menu:Wae,menuList:qae,menuPortal:ele,multiValue:Lle,multiValueLabel:Dle,multiValueRemove:Fle,noOptionsMessage:Xae,option:Hle,placeholder:Gle,singleValue:Yle,valueContainer:ole},Nse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Ase=4,xV=4,Ise=38,Lse=xV*2,Dse={baseUnit:xV,controlHeight:Ise,menuGutter:Lse},Yx={borderRadius:Ase,colors:Nse,spacing:Dse},Fse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:n9(),captureMenuScroll:!n9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:dse(),formatGroupLabel:Ose,getOptionLabel:kse,getOptionValue:Ese,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Mse,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Iae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function g9(e,t,r,n){var o=PV(e,t,r),i=TV(e,t,r),a=CV(e,t),l=Rw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function e1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return g9(e,a,t,l)}).filter(function(a){return m9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=g9(e,r,t,n);return m9(e,i)?i:void 0}).filter(Fae)}function SV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,qT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function v9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,qT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function jse(e,t){return SV(e1(e,t))}function m9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!kV(e)||!i)&&OV(e,{label:a,value:l,data:o},n)}function zse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Xx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},CV=function(t,r){return t.getOptionLabel(r)},Rw=function(t,r){return t.getOptionValue(r)};function PV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function TV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Rw(e,t);return r.some(function(o){return Rw(e,o)===n})}function OV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var kV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Bse=1,EV=(function(e){rie(r,e);var t=iie(r);function r(n){var o;if(eie(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,w=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),w(s,d)},o.setValue=function(s,d,v){var w=o.props,S=w.closeMenuOnSelect,b=w.isMulti,P=w.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!b}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,w=d.isMulti,S=d.name,b=o.state.selectValue,P=w&&o.isOptionSelected(s,b),y=o.isOptionDisabled(s,b);if(P){var C=o.getOptionValue(s);o.setValue(b.filter(function(g){return o.getOptionValue(g)!==C}),"deselect-option",s)}else if(!y)w?o.setValue([].concat(qT(b),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,w=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==w}),b=cb(d,S,S[0]||null);o.onChange(b,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(cb(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],w=d.slice(0,d.length-1),S=cb(s,w,w[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Xx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return v9(e1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;vb||S>b}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return kV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,w=d.backspaceRemovesValue,S=d.escapeClearsValue,b=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,g=d.onKeyDown,f=d.tabSelectsValue,c=d.openMenuOnFocus,h=o.state,m=h.focusedOption,_=h.focusedValue,T=h.selectValue;if(!y&&!(typeof g=="function"&&(g(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||b)return;o.focusValue("previous");break;case"ArrowRight":if(!v||b)return;o.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(_)o.removeValue(_);else{if(!w)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!f||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:b}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(b)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Bse),o.state.selectValue=t9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Xx(i,a[l])}return o}return tie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&r9(this.menuListRef,this.focusedOptionRef),Tse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(r9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var w=d.indexOf(l[0]);w>-1&&(v=w)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yx):st(st({},Yx),this.props.theme):Yx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,w=this.props,S=w.isMulti,b=w.isRtl,P=w.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:b,options:P,selectOption:d,selectProps:w,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return PV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return TV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return OV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,w=o.menuIsOpen,S=o.required,b=this.getComponents(),P=b.Input,y=this.state,C=y.inputIsHidden,g=y.ariaSelection,f=this.commonProps,c=l||this.getElementId("input"),h=st(st(st({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?X.createElement(P,dt({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},h)):X.createElement(pse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ew,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},h))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,w=i.Placeholder,S=this.commonProps,b=this.props,P=b.controlShouldRenderValue,y=b.isDisabled,C=b.isMulti,g=b.inputValue,f=b.placeholder,c=this.state,h=c.selectValue,m=c.focusedValue,_=c.isFocused;if(!this.hasValue()||!P)return g?null:X.createElement(w,dt({},S,{key:"placeholder",isDisabled:y,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),f);if(C)return h.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return X.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(g)return null;var T=h[0];return X.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:w,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var w={"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:w,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return X.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,w=i.LoadingMessage,S=i.NoOptionsMessage,b=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,g=C.captureMenuScroll,f=C.inputValue,c=C.isLoading,h=C.loadingMessage,m=C.minMenuHeight,_=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,H=C.onMenuScrollToBottom;if(!T)return null;var q=function(se,ve){var ye=se.type,ce=se.data,J=se.isDisabled,oe=se.isSelected,ue=se.label,Se=se.value,Ce=y===ce,Re=J?void 0:function(){return o.onOptionHover(ce)},xe=J?void 0:function(){return o.selectOption(ce)},Te="".concat(o.getElementId("option"),"-").concat(ve),Oe={id:Te,onClick:xe,onMouseMove:Re,onMouseOver:Re,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:oe};return X.createElement(b,dt({},P,{innerProps:Oe,data:ce,isDisabled:J,isSelected:oe,key:Te,label:ue,type:ye,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(se.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var se=ne.data,ve=ne.options,ye=ne.index,ce="".concat(o.getElementId("group"),"-").concat(ye),J="".concat(ce,"-heading");return X.createElement(a,dt({},P,{key:ce,data:se,options:ve,Heading:l,headingProps:{id:J,data:ne.data},label:o.formatGroupLabel(ne.data)}),ne.options.map(function(oe){return q(oe,"".concat(ye,"-").concat(oe.index))}))}else if(ne.type==="option")return q(ne,"".concat(ne.index))});else if(c){var Q=h({inputValue:f});if(Q===null)return null;re=X.createElement(w,P,Q)}else{var W=V({inputValue:f});if(W===null)return null;re=X.createElement(S,P,W)}var Y={minMenuHeight:m,maxMenuHeight:_,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},te=X.createElement($ae,dt({},P,Y),function(ne){var se=ne.ref,ve=ne.placerProps,ye=ve.placement,ce=ve.maxHeight;return X.createElement(s,dt({},P,Y,{innerRef:se,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:ye}),X.createElement(bse,{captureEnabled:g,onTopArrive:B,onBottomArrive:H,lockEnabled:A},function(J){return X.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),J(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),re)}))});return E||R==="fixed"?X.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),te):te}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,w=this.state.selectValue;if(v&&!this.hasValue()&&!l)return X.createElement(xse,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=w.map(function(y){return o.getOptionValue(y)}).join(a);return X.createElement("input",{name:d,type:"hidden",value:S})}else{var b=w.length>0?w.map(function(y,C){return X.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):X.createElement("input",{name:d,type:"hidden",value:""});return X.createElement("div",null,b)}else{var P=w[0]?this.getOptionValue(w[0]):"";return X.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,w=this.getFocusableOptions();return X.createElement(lse,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:w,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,w=d.id,S=d.isDisabled,b=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return X.createElement(l,dt({},y,{className:v,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),X.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:b}),X.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),X.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,w=i.prevWasFocused,S=i.instancePrefix,b=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,g=o.isMulti,f=t9(P),c={};if(a&&(P!==a.value||b!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var h=y?jse(o,f):[],m=y?v9(e1(o,f),"".concat(S,"-option")):[],_=l?zse(i,f):null,T=Vse(i,h),k=Xx(m,T);c={selectValue:f,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:_,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&w;return v&&!A&&(E={value:cb(g,f,f[0]||null),options:f,action:"initial-input-focus"},A=!w),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(X.Component);EV.defaultProps=Fse;var Use=X.forwardRef(function(e,t){var r=Joe(e);return X.createElement(EV,dt({ref:t},r))}),Hse=Use;/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$se=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),y9=e=>{const t=$se(e);return t.charAt(0).toUpperCase()+t.slice(1)},MV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Gse=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Kse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qse=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>X.createElement("svg",{ref:s,...Kse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:MV("lucide",o),...!i&&!Gse(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>X.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const RV=(e,t)=>{const r=X.forwardRef(({className:n,...o},i)=>X.createElement(qse,{ref:i,iconNode:t,className:MV(`lucide-${Wse(y9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=y9(e),r};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Xse=RV("chevrons-down",Yse);/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Zse=RV("chevrons-up",Qse),Jse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=X.useState(!1),[l,s]=X.useState(typeof window<"u"&&window.innerWidth>=768);X.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),w=c=>o(c.map(h=>h.value)),S=c=>o(n.filter(h=>h!==c)),b=X.useRef(null),[P,y]=X.useState("32px"),[C,g]=X.useState(!1);X.useEffect(()=>{const c=b.current;if(!c)return;const h=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${h}px`,requestAnimationFrame(()=>{const _=Math.max(m,125);y(`${i?_:32}px`)})})},[i,n]);const f={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return Fe.jsxs("div",{ref:b,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[Fe.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?Fe.jsx(Xse,{size:24}):Fe.jsx(Zse,{size:24})}),i&&Fe.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[Fe.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:Fe.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),Fe.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:Fe.jsxs("div",{style:{width:l?"50%":"100%"},children:[Fe.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Fe.jsx("div",{style:{flexGrow:1},children:Fe.jsx(Hse,{isMulti:!0,options:d,value:v,onChange:w,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,h)=>({...c,color:"black",backgroundColor:h.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),Fe.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&g(!0),onMouseLeave:()=>l&&g(!1),onClick:()=>!l&&g(c=>!c),children:["i",C&&Fe.jsx("div",{style:f,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&Fe.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>Fe.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,Fe.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},eue=e=>{const[t,r]=X.useState({visible:!1,text:"",x:0,y:0});return{tooltip:t,showTooltip:(i,a,l,s,d,v,w)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:w})},hideTooltip:()=>{r(i=>({...i,visible:!1}))}}},tue=()=>{const[e,t]=X.useState([]),[r,n]=X.useState({}),[o,i]=X.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${Fg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${Fg}/api/v1/starmap/warmap`).then(d=>d.json());t(s)}catch(s){console.error("Failed to fetch data:",s)}}}},rue={flashActivePlayes:!0},nue=()=>{const[e,t]=X.useState(rue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},oue=()=>{const[e,t]=X.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=tue(),{settings:l,setFlashActive:s}=nue(),d=X.useCallback(v=>v.map(w=>{const S=w4(w.owner,n),b=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...w,isCapital:Uoe(w.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:b}}),[o,n]);return X.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function iue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=X.useRef(null),o=X.useRef(1),i=X.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=X.useState(1),s=X.useRef(!1),d=X.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=X.useRef(0),w=X.useCallback(P=>{const y=performance.now();if(y-v.current0?c/f:c*f;h=Math.max(e,Math.min(t,h));const m={x:(g.x-C.x())/c,y:(g.y-C.y())/c};o.current=h,i.current={x:g.x-m.x*h,y:g.y-m.y*h},C.scale({x:h,y:h}),C.position(i.current),d(C),l(h)},[t,e,d,r]),S=X.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),b=X.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:b,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:w,onDragMove:S}}}function b9(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function aue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=X.useState(!1),v=X.useRef(0),w=X.useCallback(P=>{if(P.evt.touches.length===1){const y=P.target.className==="Circle",C=P.target.findAncestor("Label",!0);!y&&!C&&(i==null||i())}P.evt.touches.length===2&&(d(!0),v.current=b9(P.evt.touches[0],P.evt.touches[1]))},[i]),S=X.useCallback(P=>{if(P.evt.touches.length!==2||!s)return;P.evt.preventDefault();const[y,C]=P.evt.touches,g=b9(y,C);if(!v.current)return;const f=e.current;if(!f)return;let c=g/v.current;if(Math.abs(1-c)<.02)return;c=Math.max(.9,Math.min(1.1,c));const h=t.current??1,m=Math.max(a,Math.min(l,h*c)),_=f.getPosition(),T=f.scaleX(),k={x:(y.clientX+C.clientX)/2,y:(y.clientY+C.clientY)/2},R={x:(k.x-_.x)/T,y:(k.y-_.y)/T};requestAnimationFrame(()=>{const E={x:k.x-R.x*m,y:k.y-R.y*m};t.current=m,r.current=E,f.scale({x:m,y:m}),f.position(E),n(f),o(m)}),v.current=g},[s,l,a,r,n,t,o,e]),b=X.useCallback(P=>{P.evt.touches.length<2&&d(!1)},[]);return{isPinching:s,handlers:{onTouchStart:w,onTouchMove:S,onTouchEnd:b}}}const lue=.2,sue=25,uue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=oue(),[a,l]=X.useState(!1);return X.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?Fe.jsx(cue,{systems:e,factions:t,settings:i}):null},cue=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:w}}=iue(),[S,b]=X.useState(""),[P,y]=X.useState(!1),C=S.trim().toLowerCase(),g=C.length>=2,[f,c]=X.useState([]),{tooltip:h,showTooltip:m,hideTooltip:_}=eue(o),{isPinching:T,handlers:{onTouchStart:k,onTouchMove:R,onTouchEnd:E}}=aue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:_,minScale:lue,maxScale:sue}),[A,F]=X.useState({width:window.innerWidth,height:window.innerHeight});X.useEffect(()=>{const xe=je=>{je.touches.length>1&&je.preventDefault()},Te=je=>{je.preventDefault()},Oe={passive:!1};return document.addEventListener("touchmove",xe,Oe),document.addEventListener("gesturestart",Te,Oe),document.addEventListener("gesturechange",Te,Oe),document.addEventListener("gestureend",Te,Oe),()=>{document.removeEventListener("touchmove",xe,Oe),document.removeEventListener("gesturestart",Te,Oe),document.removeEventListener("gesturechange",Te,Oe),document.removeEventListener("gestureend",Te,Oe)}},[]),X.useEffect(()=>{const xe=Te=>Te.preventDefault();return window.addEventListener("gesturestart",xe,{passive:!1}),window.addEventListener("gesturechange",xe,{passive:!1}),window.addEventListener("gestureend",xe,{passive:!1}),()=>{window.removeEventListener("gesturestart",xe),window.removeEventListener("gesturechange",xe),window.removeEventListener("gestureend",xe)}},[]),X.useEffect(()=>{const xe=()=>{F({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",xe),()=>window.removeEventListener("resize",xe)},[]);const[V,B]=X.useState(null),[H,q]=X.useState(!1);X.useEffect(()=>{const xe=new window.Image,Oe=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";xe.src="/"+Oe,xe.onload=()=>{B(xe),q(!0)}},[]),X.useEffect(()=>{const xe=n.current;if(!xe)return;const Te=xe.container(),Oe=je=>{je.cancelable&&je.preventDefault()};return Te.addEventListener("gesturestart",Oe,{passive:!1}),Te.addEventListener("gesturechange",Oe,{passive:!1}),Te.addEventListener("gestureend",Oe,{passive:!1}),Te.addEventListener("touchmove",Oe,{passive:!1}),()=>{Te.removeEventListener("gesturestart",Oe),Te.removeEventListener("gesturechange",Oe),Te.removeEventListener("gestureend",Oe),Te.removeEventListener("touchmove",Oe)}},[]);const re=window.innerWidth<768,Q=re?1.5/a.scale:2/a.scale,W=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,Y=6,te=10,ne=12,se=W*1.12,ve=W*.92,ye=se*1.2,ce=(xe,Te)=>{if(Te===0)return[{text:xe,fontStyle:"bold",fontSize:se}];const Oe=xe.match(/^(Owner:|Damage:)\s*(.*)$/);if(Oe){const[,je,Ye]=Oe;return[{text:`${je} `,fontStyle:"bold",fontSize:ve},{text:Ye,fontStyle:"normal",fontSize:ve}]}return[{text:xe,fontStyle:/^(Control|State):/.test(xe)?"bold":"normal",fontSize:ve}]},J=X.useMemo(()=>(h.text||"").split(` +`).map(xe=>xe.trimEnd()),[h.text]),oe=X.useMemo(()=>{const xe=J.length?J:[""],Te=xe.map((it,Mt)=>ce(it,Mt).reduce((gt,Tt)=>{const _t=new y4.Text({text:Tt.text,fontFamily:"Roboto Mono, monospace",fontSize:Tt.fontSize,fontStyle:Tt.fontStyle}),ir=_t.width();return _t.destroy(),gt+ir},0)),je=(Te.length?Math.max(...Te):0)+Y*2,Ye=xe.length*ye+Y*2;return{lines:xe,boxWidth:je,boxHeight:Ye}},[J,W,ye]);X.useEffect(()=>{h.visible&&y(!1)},[h.visible,h.text]);const ue=X.useMemo(()=>{var gt,Tt;const xe=(gt=h.text)==null?void 0:gt.trim();if(!xe)return{title:"",subtitle:"",details:[]};const Te=xe.split(` +`).map(_t=>_t.trim()).filter(_t=>_t&&_t!=="[Tap to open]"),Oe=Te[0]??"",je=(Tt=Te[1])!=null&&Tt.startsWith("(")?Te[1]:"",Ye=Te.slice(je?2:1),it=[];let Mt=!1;for(const _t of Ye){if(_t==="Control:"){Mt=!0;continue}if(Mt){if(!/^[A-Za-z ]+:\s/.test(_t))continue;Mt=!1}it.push(_t)}return{title:Oe,subtitle:je,details:it}},[h.text]),Se=X.useMemo(()=>[...h.controlItems||[]].sort((xe,Te)=>Te.control-xe.control),[h.controlItems]),Ce=P?Se:Se.slice(0,3),Re=Math.max(0,Se.length-3);return Fe.jsxs(Fe.Fragment,{children:[Fe.jsxs(Voe,{width:A.width,height:A.height,draggable:!T,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:w,onTouchStart:k,onTouchMove:R,onTouchEnd:E,children:[Fe.jsx(Hx,{cache:!0,children:H&&V?Fe.jsx(zoe,{image:V,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):Fe.jsx(HE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),Fe.jsx(Hx,{children:e.map((xe,Te)=>{var Mt;const Oe=((Mt=t[xe.owner])==null?void 0:Mt.prettyName)??xe.owner;if(!(!f.length||f.includes(Oe)))return null;const Ye=xe.name.toLowerCase().includes(C),it=g?Ye?1:.2:1;return Fe.jsx(Goe,{zoomScaleFactor:l<1?l:1,system:xe,factions:t,settings:r,showTooltip:m,hideTooltip:_,tooltip:h,highlighted:g&&Ye,opacity:it},xe.name||Te)})}),Fe.jsx(Hx,{children:h.visible&&!re&&Fe.jsxs(UE,{x:h.x,y:h.y,opacity:.75,scaleX:Q,scaleY:Q,children:[Fe.jsx(Doe,{x:-oe.boxWidth/2,y:-(oe.boxHeight+te),width:oe.boxWidth,height:oe.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),Fe.jsx(joe,{points:[-ne/2,-te,0,0,ne/2,-te],fill:"white",closed:!0}),oe.lines.map((xe,Te)=>(()=>{const Oe=ce(xe,Te);return Fe.jsx(UE,{x:-oe.boxWidth/2+Y,y:-(oe.boxHeight+te-Y-Te*ye),listening:!1,children:Oe.map((je,Ye)=>{const it=Oe.slice(0,Ye).reduce((Mt,gt)=>{const Tt=new y4.Text({text:gt.text,fontFamily:"Roboto Mono, monospace",fontSize:gt.fontSize,fontStyle:gt.fontStyle}),_t=Tt.width();return Tt.destroy(),Mt+_t},0);return Fe.jsx(HE,{x:it,y:0,text:je.text,fontFamily:"Roboto Mono, monospace",fontSize:je.fontSize,fontStyle:je.fontStyle,fill:"black",listening:!1},`${je.text}-${Ye}`)})},`${xe}-${Te}`)})())]})})]}),re&&h.visible&&Fe.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[Fe.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:ue.title}),ue.subtitle&&Fe.jsx("div",{style:{marginTop:"2px",opacity:.8},children:ue.subtitle}),Fe.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:ue.details.map((xe,Te)=>Fe.jsx("div",{children:xe},`${xe}-${Te}`))}),Se.length>0&&Fe.jsxs("div",{style:{marginTop:"10px"},children:[Fe.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),Fe.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Ce.map(xe=>Fe.jsx("div",{children:`${xe.name} ${xe.control}% · P${xe.players}`},`${xe.name}-${xe.control}-${xe.players}`))}),Re>0&&Fe.jsx("button",{type:"button",onClick:()=>y(xe=>!xe),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),Fe.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[h.onTouch&&Fe.jsx("button",{type:"button",onClick:()=>{var xe;return(xe=h.onTouch)==null?void 0:xe.call(h)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),Fe.jsx("button",{type:"button",onClick:_,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),Fe.jsx(Jse,{searchTerm:S,setSearchTerm:b,factions:X.useMemo(()=>DJ(e,t),[e,t]),selectedFactions:f,setSelectedFactions:c})]})},w9=uue;function due(e){return Qw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function fue(){return Fe.jsx(XW,{children:Fe.jsx(pue,{})})}function pue(){const e=XR();return Bv(e)?Fe.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",Fe.jsx(O1,{to:"/",children:Fe.jsxs("div",{className:"flex",children:[Fe.jsx(due,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?Fe.jsxs("div",{id:"error-page",children:[Fe.jsx("h1",{children:"Oops! Unexpected Error"}),Fe.jsx("p",{children:"Something went wrong."}),Fe.jsx("p",{children:Fe.jsx("i",{children:e.message})})]}):Fe.jsx(Fe.Fragment,{children:"Unknown error"})}const hue="/",gue=CW(KS(Fe.jsxs(Fe.Fragment,{children:[Fe.jsx(GS,{path:"/",element:Fe.jsx(w9,{}),errorElement:Fe.jsx(fue,{})}),Fe.jsx(GS,{index:!0,element:Fe.jsx(w9,{})})]})),{basename:hue});function vue(){return Fe.jsx(AW,{router:gue})}AR(document.getElementById("react-root")).render(Fe.jsx(X.StrictMode,{children:Fe.jsx(vue,{})})); diff --git a/map/assets/index-zRQgh359.css b/map/assets/index-zRQgh359.css new file mode 100644 index 0000000..5f88693 --- /dev/null +++ b/map/assets/index-zRQgh359.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--blue: #007bff;--indigo: #6610f2;--purple: #6f42c1;--pink: #e83e8c;--red: #dc3545;--orange: #fd7e14;--yellow: #ffc107;--green: #28a745;--teal: #20c997;--cyan: #17a2b8;--white: #fff;--gray: #6c757d;--gray-dark: #343a40;--primary: #ff550b;--secondary: #303030;--success: #015668;--info: #0f81c7;--warning: #0de2ea;--danger: #ff304f;--light: #e8e8e8;--dark: #000000;--font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.nested-list{list-style-type:circle}.ff-comfortaa{font-family:Comfortaa}#sideMenu{background-color:var(--gray-dark)}#sideMenu .sideMenu-header{padding:20px;background:var(--gray-dark)}#sideMenu img#RoguewarLogo{max-width:95%;max-height:95%}.text-info{color:var(--info)}.text-primary{color:var(--primary)}.border-info{border-color:var(--info)}.border-primary{border-color:var(--primary)}.button-info{background-color:var(--info)}.button-primary{background-color:var(--primary)}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-x-0{left:0;right:0}.inset-x-5{left:1.25rem;right:1.25rem}.bottom-0{bottom:0}.bottom-8{bottom:2rem}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-4{margin-left:1rem}.ml-40{margin-left:10rem}.mr-2{margin-right:.5rem}.mt-10{margin-top:2.5rem}.mt-6{margin-top:1.5rem}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-4{height:1rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-96{height:24rem}.h-full{height:100%}.w-4{width:1rem}.w-40{width:10rem}.w-6{width:1.5rem}.w-96{width:24rem}.grow-0{flex-grow:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.list-disc{list-style-type:disc}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.p-2{padding:.5rem}.p-5{padding:1.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-semibold{font-weight:600}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:bg-gray-500:hover{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.hover\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)} diff --git a/map/favicon.ico b/map/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..7b838a01d3d1d5f464f081cf65886f3b74d53663 GIT binary patch literal 4430 zcmb`K2~bpZ9LFChY8ohFfXZQ(im4;VE<&gf;4LJWrjco53S*;bnKhL{qk|1-T3X3u zBcSDo2Rf+3v2XWr263$1=W^fYqNbq0_WeC~oyWGDl>M2{{{Gkd|GxbG?|(doF~FbQ zGzPyj7#CB9F=rUYPK^kb>h&d+O2us6p2iqEN&X9q@SFu$2G)bqzzs|WV}OC7slPtg zOmlNHL;jxyuTLc9^^KbH?lX11Xn&LX7y(l-3fKZia1uBGs&_CEam@dw&q-p5F%7^v z;0`1p5yXM3AOHxpo1tt7$Q}WE!S`SbZ~>=)Cm5p%AmTI*oCI+?a6+BVSgPlj;z9o2 z0l{Dps04%~FVttJF0X}60@0u!Tm#L3VtE)$7U&xb4cS0fT8TF9 z$@?E=wNG_r`FC*PGFf}Pq^<$&#o#gs*tI|NXK3N|n}{Se$kX~=10vA>{*BwU^_e+s z?U<7}0)3P5tiGgA-*h}+1&)CDtlah*Nm`r2#V@r1eup#~V&fFQqdgzw);HdZMr>&< z@cQO?a|Os(g3X{41e8}P9kS$|a=g>CpHts7_?!zOKx!h_R4GYmkp~^f>4Kl9`Yv25 z{|)VD`}zh7j(&TG+IVf#T-b^Q%eYee6&$VAU%)rUj)}Am4LZB~+$5>3W1mx>CVs9M zbHlG!s-tfu)<-SzJtF1 zX~x(wo(TxdaNf8hL%6^Em-(f+wFIQo?_z9C;+LWFbd3gq{Ra6qL0L7=OV+s5KUEfX zx_F13hx9G9nZ#VHd=cYJ0An|7Pq&}r#o@$#l2B(1{_Xxk^E(w-4-5{y9QbJtw{w3s z?YI2=X{>maEK-x#w$7_$)uNTMP}Eys9Qr@KfPVtlyfrne?IkUJMQGEN^sNulX9KLe zyC2#v@<|T%*_xr$*04V~FH5^lN4dk!oh3hFusl7xecPq$)n)>Hv_F@EKA@fS=_75V z(X6k3z{>6oX{rvtD$n)F=XBNUsOt+mAzzL0mgE(5`40`L#tZaKM7;v!fI%Qk`t;G< zniJXb_E}c1v$Ym3!_PL-u<3*JcjJ@l&aqrW)}^bJH7hoz(Ep)*Mn6Pd|3oJVhw&D~ z+^F?~73!n)Q3dLN5(tw%ePi>BI%g(vO|z7D`zwRlmkm_+qfv0PTZsgC!wH z^XSeXd{0|ZegrxqFO=H;_)Dob&Y}r|_>sOI&<#3(FzM50n84OsM?{so9zR`ZKS{)& zr$V26p5^KTFqj!w40eP0h$r2jgne63Zl1H0WrOzp?oeFT9oX1(Z$0{YfH%MjFa+qV zysOT`@aZ%BdTQZ@vT@+P%&A`-&hz;$qS#})D_g4eIc)AikICtNM(dOI@^wITBusul zppWLZ31oZub9uMot3C1Vg@Io5rF0L_`FJ1H1BxSQ{ioD|Myr(c#_{1l6q|>hC|skS zUtvr%`8{6#$&nuGxS#eM$c)+&l+K!o`MK1z7eO2Cn|b!$(vtjwwpTDV#riQI9dv%D zgGSH~Myik2F5MA~A|lI{S}m5=;(o`$kH#-=omX=gwCl9Wbccxoe@w<55aW#lF8~&h zKB54W09v~PU?lM)Z8jBEJ*J0_$}OGOCf{~gAtOJ-^x+J8lvi z0E`ElfF{w|(F%0!f0{l*OY=J;QCcq!+@HO@TiI{5*q6IBNh}$5H-*okSKXy_e;=k< zt4!~nFPMWd4b|}X1mqKdCehr|oR1`tzL`1lc5(Qr!i|L`UG5IcWnbgm?;+o~pXZw| zVyoWVl6vN|kep+iccfo&^W~y&|3AObTl%w!lO*!JT^WhE&mTwsmB0vSG*SHc?>AW5 zW0wi=7UYHX+Ie^MTYEOTY<1YFBL6#uov#;`bXq&EpF2I>AV zACMpNYXnBC^M?3V5q>uf%l{AGm*SH09&g0X7XD0I+8)?&X-%|`8kbcnCso(>zJ|NK z6}16+-$@@I8`xo5D0bRBx4t1v2R3-s09?XyR?IeAver*5vV8g3cC@+qiHs Wl4PLn^g_s!OfavT8AZ`zn7;s-HZJY} literal 0 HcmV?d00001 diff --git a/map/galaxyBackground2.svg b/map/galaxyBackground2.svg new file mode 100644 index 0000000..0d405a4 --- /dev/null +++ b/map/galaxyBackground2.svg @@ -0,0 +1,2460 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/map/galaxyBackground2.webp b/map/galaxyBackground2.webp new file mode 100644 index 0000000000000000000000000000000000000000..dc4a8a1f79388209fd6bb61d806a129dab1e5b4d GIT binary patch literal 60408 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%0DusO65Ht9)_}$mv(J*QBvPYUH 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%0DwXJW;vdCHF*6>q=qo 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 Pt6nuKrK(x=Mf3mws;MAQ literal 0 HcmV?d00001 diff --git a/map/galaxyBackground3.svg b/map/galaxyBackground3.svg new file mode 100644 index 0000000..74488c7 --- /dev/null +++ b/map/galaxyBackground3.svg @@ -0,0 +1,253 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/map/index.html b/map/index.html new file mode 100644 index 0000000..2434891 --- /dev/null +++ b/map/index.html @@ -0,0 +1,14 @@ + + + + + + + RogueTech + + + + +
+ + diff --git a/map/rtLogo.png b/map/rtLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..c3281cb9ca423ea8c93db70752df3782c4626313 GIT binary patch literal 164839 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 M=o-OlwC_Ltf4(BXB>(^b literal 0 HcmV?d00001 diff --git a/map/rticon.ico b/map/rticon.ico new file mode 100644 index 0000000000000000000000000000000000000000..7b838a01d3d1d5f464f081cf65886f3b74d53663 GIT binary patch literal 4430 zcmb`K2~bpZ9LFChY8ohFfXZQ(im4;VE<&gf;4LJWrjco53S*;bnKhL{qk|1-T3X3u zBcSDo2Rf+3v2XWr263$1=W^fYqNbq0_WeC~oyWGDl>M2{{{Gkd|GxbG?|(doF~FbQ zGzPyj7#CB9F=rUYPK^kb>h&d+O2us6p2iqEN&X9q@SFu$2G)bqzzs|WV}OC7slPtg zOmlNHL;jxyuTLc9^^KbH?lX11Xn&LX7y(l-3fKZia1uBGs&_CEam@dw&q-p5F%7^v z;0`1p5yXM3AOHxpo1tt7$Q}WE!S`SbZ~>=)Cm5p%AmTI*oCI+?a6+BVSgPlj;z9o2 z0l{Dps04%~FVttJF0X}60@0u!Tm#L3VtE)$7U&xb4cS0fT8TF9 z$@?E=wNG_r`FC*PGFf}Pq^<$&#o#gs*tI|NXK3N|n}{Se$kX~=10vA>{*BwU^_e+s z?U<7}0)3P5tiGgA-*h}+1&)CDtlah*Nm`r2#V@r1eup#~V&fFQqdgzw);HdZMr>&< z@cQO?a|Os(g3X{41e8}P9kS$|a=g>CpHts7_?!zOKx!h_R4GYmkp~^f>4Kl9`Yv25 z{|)VD`}zh7j(&TG+IVf#T-b^Q%eYee6&$VAU%)rUj)}Am4LZB~+$5>3W1mx>CVs9M zbHlG!s-tfu)<-SzJtF1 zX~x(wo(TxdaNf8hL%6^Em-(f+wFIQo?_z9C;+LWFbd3gq{Ra6qL0L7=OV+s5KUEfX zx_F13hx9G9nZ#VHd=cYJ0An|7Pq&}r#o@$#l2B(1{_Xxk^E(w-4-5{y9QbJtw{w3s z?YI2=X{>maEK-x#w$7_$)uNTMP}Eys9Qr@KfPVtlyfrne?IkUJMQGEN^sNulX9KLe zyC2#v@<|T%*_xr$*04V~FH5^lN4dk!oh3hFusl7xecPq$)n)>Hv_F@EKA@fS=_75V z(X6k3z{>6oX{rvtD$n)F=XBNUsOt+mAzzL0mgE(5`40`L#tZaKM7;v!fI%Qk`t;G< zniJXb_E}c1v$Ym3!_PL-u<3*JcjJ@l&aqrW)}^bJH7hoz(Ep)*Mn6Pd|3oJVhw&D~ z+^F?~73!n)Q3dLN5(tw%ePi>BI%g(vO|z7D`zwRlmkm_+qfv0PTZsgC!wH z^XSeXd{0|ZegrxqFO=H;_)Dob&Y}r|_>sOI&<#3(FzM50n84OsM?{so9zR`ZKS{)& zr$V26p5^KTFqj!w40eP0h$r2jgne63Zl1H0WrOzp?oeFT9oX1(Z$0{YfH%MjFa+qV zysOT`@aZ%BdTQZ@vT@+P%&A`-&hz;$qS#})D_g4eIc)AikICtNM(dOI@^wITBusul zppWLZ31oZub9uMot3C1Vg@Io5rF0L_`FJ1H1BxSQ{ioD|Myr(c#_{1l6q|>hC|skS zUtvr%`8{6#$&nuGxS#eM$c)+&l+K!o`MK1z7eO2Cn|b!$(vtjwwpTDV#riQI9dv%D zgGSH~Myik2F5MA~A|lI{S}m5=;(o`$kH#-=omX=gwCl9Wbccxoe@w<55aW#lF8~&h zKB54W09v~PU?lM)Z8jBEJ*J0_$}OGOCf{~gAtOJ-^x+J8lvi z0E`ElfF{w|(F%0!f0{l*OY=J;QCcq!+@HO@TiI{5*q6IBNh}$5H-*okSKXy_e;=k< zt4!~nFPMWd4b|}X1mqKdCehr|oR1`tzL`1lc5(Qr!i|L`UG5IcWnbgm?;+o~pXZw| zVyoWVl6vN|kep+iccfo&^W~y&|3AObTl%w!lO*!JT^WhE&mTwsmB0vSG*SHc?>AW5 zW0wi=7UYHX+Ie^MTYEOTY<1YFBL6#uov#;`bXq&EpF2I>AV zACMpNYXnBC^M?3V5q>uf%l{AGm*SH09&g0X7XD0I+8)?&X-%|`8kbcnCso(>zJ|NK z6}16+-$@@I8`xo5D0bRBx4t1v2R3-s09?XyR?IeAver*5vV8g3cC@+qiHs Wl4PLn^g_s!OfavT8AZ`zn7;s-HZJY} literal 0 HcmV?d00001 diff --git a/map/rticon.png b/map/rticon.png new file mode 100644 index 0000000000000000000000000000000000000000..cdc0331feafa75981005b50909dbaf6cfbacc5de GIT binary patch literal 58676 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 pI-=0CMYk(PjN@(null); + const frameQueued = useRef(false); + const latestPinchSample = useRef<{ + touch1: { clientX: number; clientY: number }; + touch2: { clientX: number; clientY: number }; + } | null>(null); const onTouchStart = useCallback( (e: Konva.KonvaEventObject) => { @@ -56,40 +62,59 @@ export function usePinchZoom({ e.evt.preventDefault(); const [touch1, touch2] = e.evt.touches; - const newDistance = getDistance(touch1, touch2); - if (!lastDistance.current) return; + latestPinchSample.current = { + touch1: { clientX: touch1.clientX, clientY: touch1.clientY }, + touch2: { clientX: touch2.clientX, clientY: touch2.clientY }, + }; - const stage = stageRef.current; - if (!stage) return; + if (frameQueued.current) return; + frameQueued.current = true; - let scaleBy = newDistance / lastDistance.current; + frameRequestId.current = requestAnimationFrame(() => { + frameQueued.current = false; - // Prevent jitter and dead zone on Firefox - if (Math.abs(1 - scaleBy) < 0.02) return; + const sample = latestPinchSample.current; + if (!sample) return; - // Clamp to avoid huge jumps - scaleBy = Math.max(0.9, Math.min(1.1, scaleBy)); + const newDistance = Math.hypot( + sample.touch2.clientX - sample.touch1.clientX, + sample.touch2.clientY - sample.touch1.clientY + ); + if (!lastDistance.current) { + lastDistance.current = newDistance; + return; + } - const oldScale = scaleRef.current ?? 1; - const newScale = Math.max( - minScale, - Math.min(maxScale, oldScale * scaleBy) - ); + const stage = stageRef.current; + if (!stage) return; - const stagePos = stage.getPosition(); - const stageScale = stage.scaleX(); + let scaleBy = newDistance / lastDistance.current; - const pinchCenter = { - x: (touch1.clientX + touch2.clientX) / 2, - y: (touch1.clientY + touch2.clientY) / 2, - }; + // Prevent jitter and dead zone on Firefox + if (Math.abs(1 - scaleBy) < 0.02) return; - const worldPos = { - x: (pinchCenter.x - stagePos.x) / stageScale, - y: (pinchCenter.y - stagePos.y) / stageScale, - }; + // Clamp to avoid huge jumps + scaleBy = Math.max(0.9, Math.min(1.1, scaleBy)); + + const oldScale = scaleRef.current ?? 1; + const newScale = Math.max( + minScale, + Math.min(maxScale, oldScale * scaleBy) + ); + + const stagePos = stage.getPosition(); + const stageScale = stage.scaleX(); + + const pinchCenter = { + x: (sample.touch1.clientX + sample.touch2.clientX) / 2, + y: (sample.touch1.clientY + sample.touch2.clientY) / 2, + }; + + const worldPos = { + x: (pinchCenter.x - stagePos.x) / stageScale, + y: (pinchCenter.y - stagePos.y) / stageScale, + }; - requestAnimationFrame(() => { const newPos = { x: pinchCenter.x - worldPos.x * newScale, y: pinchCenter.y - worldPos.y * newScale, @@ -102,10 +127,9 @@ export function usePinchZoom({ stage.position(newPos); requestBatchDraw(stage); - setZoomScaleFactor(newScale); - }); - lastDistance.current = newDistance; + lastDistance.current = newDistance; + }); }, [ isPinching, @@ -120,7 +144,16 @@ export function usePinchZoom({ ); const onTouchEnd = useCallback((e: Konva.KonvaEventObject) => { - if (e.evt.touches.length < 2) setIsPinching(false); + if (e.evt.touches.length < 2) { + setIsPinching(false); + setZoomScaleFactor(scaleRef.current); + latestPinchSample.current = null; + if (frameRequestId.current !== null) { + cancelAnimationFrame(frameRequestId.current); + frameRequestId.current = null; + } + frameQueued.current = false; + } }, []); return { diff --git a/src/components/hooks/useTooltip.ts b/src/components/hooks/useTooltip.ts index 1a30056..3de10a7 100644 --- a/src/components/hooks/useTooltip.ts +++ b/src/components/hooks/useTooltip.ts @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import { useCallback, useState } from 'react'; import type { TooltipControlItem } from '../GalaxyMap/gm.types'; interface TooltipState { @@ -18,30 +18,33 @@ const useTooltip = (scaleRef: React.RefObject) => { y: 0, }); - const showTooltip = ( - text: string, - pointerX: number, - pointerY: number, - stageX?: number, - stageY?: number, - onTouch?: () => void, - controlItems?: TooltipControlItem[] - ) => { - const scale = scaleRef.current || 1; + const showTooltip = useCallback( + ( + text: string, + pointerX: number, + pointerY: number, + stageX?: number, + stageY?: number, + onTouch?: () => void, + controlItems?: TooltipControlItem[] + ) => { + const scale = scaleRef.current || 1; - setTooltip({ - visible: true, - text, - x: stageX !== undefined ? (pointerX - stageX) / scale : pointerX, - y: stageY !== undefined ? (pointerY - stageY) / scale : pointerY, - onTouch, - controlItems, - }); - }; + setTooltip({ + visible: true, + text, + x: stageX !== undefined ? (pointerX - stageX) / scale : pointerX, + y: stageY !== undefined ? (pointerY - stageY) / scale : pointerY, + onTouch, + controlItems, + }); + }, + [scaleRef] + ); - const hideTooltip = () => { + const hideTooltip = useCallback(() => { setTooltip((prev) => ({ ...prev, visible: false })); - }; + }, []); return { tooltip, showTooltip, hideTooltip }; }; diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index 7330075..22394ef 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -4,7 +4,7 @@ import { GalaxyMapRenderProps, } from '../GalaxyMap/gm.types'; import { buildFactionFilterOptions } from '../GalaxyMap/gm.selectors'; -import { useMemo, useEffect, useState } from 'react'; +import { useMemo, useEffect, useRef, useState } from 'react'; import { Stage, Layer, Image, Text, Group, Rect, Line } from 'react-konva'; import Konva from 'konva'; import StarSystem from '../ui/StarSystem'; @@ -98,6 +98,8 @@ const GalaxyMapRender = ({ showTooltip: (...args: any[]) => void; hideTooltip: () => void; }; + const tooltipVisibleRef = useRef(false); + const touchedSystemNameRef = useRef(null); const { isPinching, @@ -297,6 +299,13 @@ const GalaxyMapRender = ({ } }, [tooltip.visible, tooltip.text]); + useEffect(() => { + tooltipVisibleRef.current = tooltip.visible; + if (!tooltip.visible) { + touchedSystemNameRef.current = null; + } + }, [tooltip.visible]); + const mobileTooltipData = useMemo(() => { const trimmed = tooltip.text?.trim(); if (!trimmed) { @@ -407,7 +416,8 @@ const GalaxyMapRender = ({ settings={settings} showTooltip={showTooltip} hideTooltip={hideTooltip} - tooltip={tooltip} + tooltipVisibleRef={tooltipVisibleRef} + touchedSystemNameRef={touchedSystemNameRef} highlighted={shouldFilter && isMatch} opacity={opacity} /> diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index b065162..2d2e884 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -30,7 +30,8 @@ interface StarSystemProps { controlItems?: TooltipControlItem[] ) => void; hideTooltip: () => void; - tooltip: { visible: boolean; text: string }; + tooltipVisibleRef: React.MutableRefObject; + touchedSystemNameRef: React.MutableRefObject; highlighted?: boolean; opacity?: number; } @@ -42,7 +43,8 @@ const StarSystem: React.FC = ({ settings, showTooltip, hideTooltip, - tooltip, + tooltipVisibleRef, + touchedSystemNameRef, highlighted = false, opacity = 1, }) => { @@ -199,7 +201,10 @@ const StarSystem: React.FC = ({ const pointer = stage.getRelativePointerPosition(); if (!pointer) return; - if (tooltip.visible && tooltip.text.includes(system.name)) { + if ( + tooltipVisibleRef.current && + touchedSystemNameRef.current === system.name + ) { window.location.href = `${API_BASE_URL}${system.sysUrl}`; return; } @@ -217,6 +222,7 @@ const StarSystem: React.FC = ({ }, tooltipData.controlItems ); + touchedSystemNameRef.current = system.name; } }} /> diff --git a/tsconfig.app.tsbuildinfo b/tsconfig.app.tsbuildinfo index 4aa4942..bc12e6e 100644 --- a/tsconfig.app.tsbuildinfo +++ b/tsconfig.app.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/galaxymap/gm.types.ts","./src/components/core/pagetemplate.tsx","./src/components/core/sidemenu.tsx","./src/components/helpers/apihelper.ts","./src/components/helpers/capitalhelper.ts","./src/components/helpers/factionhelper.ts","./src/components/helpers/newtabhelper.ts","./src/components/helpers/routehelper.ts","./src/components/helpers/index.ts","./src/components/hooks/usefiltering.ts","./src/components/hooks/usesettings.ts","./src/components/hooks/usetooltip.ts","./src/components/hooks/usewarmapapi.ts","./src/components/hooks/types/controlinfo.ts","./src/components/hooks/types/displaystarsystemtype.ts","./src/components/hooks/types/factiondatatype.ts","./src/components/hooks/types/factiontype.ts","./src/components/hooks/types/settings.ts","./src/components/hooks/types/starsystemtype.ts","./src/components/hooks/types/index.ts","./src/components/pages/error.tsx","./src/components/pages/galaxymap.tsx","./src/components/pages/home.tsx","./src/components/pages/tos.tsx","./src/components/pages/index.ts","./src/components/ui/bottomfilterpanel.tsx","./src/components/ui/starsystem.tsx"],"version":"5.9.3"} \ No newline at end of file +{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/components/galaxymap/gm.interactions.ts","./src/components/galaxymap/gm.selectors.ts","./src/components/galaxymap/gm.types.ts","./src/components/core/pagetemplate.tsx","./src/components/core/sidemenu.tsx","./src/components/helpers/apihelper.ts","./src/components/helpers/capitalhelper.ts","./src/components/helpers/factionhelper.ts","./src/components/helpers/newtabhelper.ts","./src/components/helpers/routehelper.ts","./src/components/helpers/index.ts","./src/components/hooks/usefiltering.ts","./src/components/hooks/usegalaxyviewport.ts","./src/components/hooks/usepinchzoom.ts","./src/components/hooks/usesettings.ts","./src/components/hooks/usetooltip.ts","./src/components/hooks/usewarmapapi.ts","./src/components/hooks/types/controlinfo.ts","./src/components/hooks/types/displaystarsystemtype.ts","./src/components/hooks/types/factiondatatype.ts","./src/components/hooks/types/factiontype.ts","./src/components/hooks/types/settings.ts","./src/components/hooks/types/starsystemstate.ts","./src/components/hooks/types/starsystemtype.ts","./src/components/hooks/types/starsystemwithstate.ts","./src/components/hooks/types/index.ts","./src/components/pages/error.tsx","./src/components/pages/galaxymap.tsx","./src/components/pages/home.tsx","./src/components/pages/tos.tsx","./src/components/pages/index.ts","./src/components/ui/bottomfilterpanel.tsx","./src/components/ui/starsystem.tsx"],"version":"5.9.3"} \ No newline at end of file From a0842e99293c0e4aaf4f711c63a1c0ba0adbe85e Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Mon, 23 Feb 2026 16:13:58 -0800 Subject: [PATCH 13/28] change to active player graphic effect (now halo) --- .../{index-BV97C21A.js => index-ZsKGIcJ-.js} | 88 ++++---- map/index.html | 2 +- src/components/ui/StarSystem.tsx | 197 ++++++++++-------- 3 files changed, 155 insertions(+), 132 deletions(-) rename map/assets/{index-BV97C21A.js => index-ZsKGIcJ-.js} (59%) diff --git a/map/assets/index-BV97C21A.js b/map/assets/index-ZsKGIcJ-.js similarity index 59% rename from map/assets/index-BV97C21A.js rename to map/assets/index-ZsKGIcJ-.js index e6d9feb..24eef7e 100644 --- a/map/assets/index-BV97C21A.js +++ b/map/assets/index-ZsKGIcJ-.js @@ -1,4 +1,4 @@ -function E4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var sO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _9={exports:{}},Nw={},x9={exports:{}},It={};/** +function E4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var sO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var w9={exports:{}},Nw={},_9={exports:{}},Lt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function E4(e,t){for(var r=0;r>>1,ne=Q[te];if(0>>1;teo(ye,Y))ceo(J,ye)?(Q[te]=J,Q[ce]=Y,te=ce):(Q[te]=ye,Q[ve]=Y,te=ve);else if(ceo(J,Y))Q[te]=J,Q[ce]=Y,te=ce;else break e}}return W}function o(Q,W){var Y=Q.sortIndex-W.sortIndex;return Y!==0?Y:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,w=null,S=3,b=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function h(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,q(m);else{var W=r(d);W!==null&&re(h,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,g(k),k=-1),b=!0;var Y=S;try{for(c(W),w=r(s);w!==null&&(!(w.expirationTime>W)||Q&&!A());){var te=w.callback;if(typeof te=="function"){w.callback=null,S=w.priorityLevel;var ne=te(w.expirationTime<=W);W=e.unstable_now(),typeof ne=="function"?w.callback=ne:w===r(s)&&n(s),c(W)}else n(s);w=r(s)}if(w!==null)var se=!0;else{var ve=r(d);ve!==null&&re(h,ve.startTime-W),se=!1}return se}finally{w=null,S=Y,b=!1}}var _=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125te?(Q.sortIndex=Y,t(d,Q),r(s)===null&&Q===r(d)&&(y?(g(k),k=-1):y=!0,re(h,Y-te))):(Q.sortIndex=ne,t(s,Q),P||b||(P=!0,q(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var Y=S;S=W;try{return Q.apply(this,arguments)}finally{S=Y}}}})(I9);A9.exports=I9;var fp=A9.exports;/** + */(function(e){function t(Q,W){var X=Q.length;Q.push(W);e:for(;0>>1,ne=Q[te];if(0>>1;teo(we,X))ceo(J,we)?(Q[te]=J,Q[ce]=X,te=ce):(Q[te]=we,Q[ve]=X,te=ve);else if(ceo(J,X))Q[te]=J,Q[ce]=X,te=ce;else break e}}return W}function o(Q,W){var X=Q.sortIndex-W.sortIndex;return X!==0?X:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,w=null,S=3,_=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function p(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,Y(m);else{var W=r(d);W!==null&&re(p,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,g(k),k=-1),_=!0;var X=S;try{for(c(W),w=r(s);w!==null&&(!(w.expirationTime>W)||Q&&!A());){var te=w.callback;if(typeof te=="function"){w.callback=null,S=w.priorityLevel;var ne=te(w.expirationTime<=W);W=e.unstable_now(),typeof ne=="function"?w.callback=ne:w===r(s)&&n(s),c(W)}else n(s);w=r(s)}if(w!==null)var se=!0;else{var ve=r(d);ve!==null&&re(p,ve.startTime-W),se=!1}return se}finally{w=null,S=X,_=!1}}var b=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125te?(Q.sortIndex=X,t(d,Q),r(s)===null&&Q===r(d)&&(y?(g(k),k=-1):y=!0,re(p,X-te))):(Q.sortIndex=ne,t(s,Q),P||_||(P=!0,Y(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var X=S;S=W;try{return Q.apply(this,arguments)}finally{S=X}}}})(A9);N9.exports=A9;var fp=N9.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function E4(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zx=Object.prototype.hasOwnProperty,eB=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fO={},pO={};function tB(e){return Zx.call(pO,e)?!0:Zx.call(fO,e)?!1:eB.test(e)?pO[e]=!0:(fO[e]=!0,!1)}function rB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nB(e,t,r,n){if(t===null||typeof t>"u"||rB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var I4=/[\-:]([a-z])/g;function L4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function D4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zx=Object.prototype.hasOwnProperty,JV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fO={},pO={};function eB(e){return Zx.call(pO,e)?!0:Zx.call(fO,e)?!1:JV.test(e)?pO[e]=!0:(fO[e]=!0,!1)}function tB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rB(e,t,r,n){if(t===null||typeof t>"u"||tB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var I4=/[\-:]([a-z])/g;function L4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function D4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{v_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?tg(e):""}function oB(e){switch(e.tag){case 5:return tg(e.type);case 16:return tg("Lazy");case 13:return tg("Suspense");case 19:return tg("SuspenseList");case 0:case 2:case 15:return e=m_(e.type,!1),e;case 11:return e=m_(e.type.render,!1),e;case 1:return e=m_(e.type,!0),e;default:return""}}function rS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vf:return"Fragment";case zf:return"Portal";case Jx:return"Profiler";case F4:return"StrictMode";case eS:return"Suspense";case tS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F9:return(e.displayName||"Context")+".Consumer";case D9:return(e._context.displayName||"Context")+".Provider";case j4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z4:return t=e.displayName||null,t!==null?t:rS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return rS(e(t))}catch{}}return null}function iB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rS(t);case 8:return t===F4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function z9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aB(e){var t=z9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hy(e){e._valueTracker||(e._valueTracker=aB(e))}function V9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=z9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function t1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function gO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function B9(e,t){t=t.checked,t!=null&&D4(e,"checked",t,!1)}function oS(e,t){B9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?iS(e,t.type,r):t.hasOwnProperty("defaultValue")&&iS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function iS(e,t,r){(t!=="number"||t1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rg=Array.isArray;function pp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lB=["Webkit","ms","Moz","O"];Object.keys(hg).forEach(function(e){lB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hg[t]=hg[e]})});function $9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hg.hasOwnProperty(e)&&hg[e]?(""+t).trim():t+"px"}function G9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=$9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var sB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function sS(e,t){if(t){if(sB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function uS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cS=null;function V4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dS=null,hp=null,gp=null;function bO(e){if(e=zv(e)){if(typeof dS!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=Fw(t),dS(e.stateNode,e.type,t))}}function K9(e){hp?gp?gp.push(e):gp=[e]:hp=e}function q9(){if(hp){var e=hp,t=gp;if(gp=hp=null,bO(e),t)for(e=0;e>>=0,e===0?32:31-(bB(e)/wB|0)|0}var vy=64,my=4194304;function ng(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function i1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=ng(l):(i&=a,i!==0&&(n=ng(i)))}else a=r&~o,a!==0?n=ng(a):i!==0&&(n=ng(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Fv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function CB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=vg),kO=" ",EO=!1;function hM(e,t){switch(e){case"keyup":return ZB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bf=!1;function eU(e,t){switch(e){case"compositionend":return gM(t);case"keypress":return t.which!==32?null:(EO=!0,kO);case"textInput":return e=t.data,e===kO&&EO?null:e;default:return null}}function tU(e,t){if(Bf)return e==="compositionend"||!q4&&hM(e,t)?(e=fM(),hb=$4=au=null,Bf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AO(r)}}function bM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wM(){for(var e=window,t=t1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=t1(e.document)}return t}function Y4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cU(e){var t=wM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bM(r.ownerDocument.documentElement,r)){if(n!==null&&Y4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=IO(r,i);var a=IO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Uf=null,mS=null,yg=null,yS=!1;function LO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yS||Uf==null||Uf!==t1(n)||(n=Uf,"selectionStart"in n&&Y4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yg&&$g(yg,n)||(yg=n,n=s1(mS,"onSelect"),0$f||(e.current=CS[$f],CS[$f]=null,$f--)}function ur(e,t){$f++,CS[$f]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Rp(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function c1(){mr(Xo),mr(ho)}function UO(e,t,r){if(ho.current!==Eu)throw Error(Ie(168));ur(ho,t),ur(Xo,r)}function EM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Ie(108,iB(e)||"Unknown",o));return Ar({},r,n)}function d1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function HO(e,t,r){var n=e.stateNode;if(!n)throw Error(Ie(169));r?(e=EM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,jw=!1,R_=!1;function MM(e){ql===null?ql=[e]:ql.push(e)}function xU(e){jw=!0,MM(e)}function ju(){if(!R_&&ql!==null){R_=!0;var e=0,t=Yt;try{var r=ql;for(Yt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(g,T,c[k],h);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(g,T),f=i(E,f,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(g,T),_r&&Fc(g,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(g,T,E.value,h);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(g,T),f=i(A,f,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(g,T),_r&&Fc(g,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=w(g,E.value,h),E!==null&&(f=i(E,f,k),_===null?m=E:_.sibling=E,_=E);return _r&&Fc(g,k),m}for(T=n(g,T);!E.done;k++,E=c.next())E=b(T,g,k,E.value,h),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),f=i(E,f,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(g,F)}),_r&&Fc(g,k),m}function C(g,f,c,h){if(typeof c=="object"&&c!==null&&c.type===Vf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case py:e:{for(var m=c.key,_=f;_!==null;){if(_.key===m){if(m=c.type,m===Vf){if(_.tag===7){r(g,_.sibling),f=o(_,c.props.children),f.return=g,g=f;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&GO(m)===_.type){r(g,_.sibling),f=o(_,c.props),f.ref=A0(g,_,c),f.return=g,g=f;break e}r(g,_);break}else t(g,_);_=_.sibling}c.type===Vf?(f=Qc(c.props.children,g.mode,h,c.key),f.return=g,g=f):(h=xb(c.type,c.key,c.props,null,g.mode,h),h.ref=A0(g,f,c),h.return=g,g=h)}return a(g);case zf:e:{for(_=c.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===c.containerInfo&&f.stateNode.implementation===c.implementation){r(g,f.sibling),f=o(f,c.children||[]),f.return=g,g=f;break e}else{r(g,f);break}else t(g,f);f=f.sibling}f=z_(c,g.mode,h),f.return=g,g=f}return a(g);case Qs:return _=c._init,C(g,f,_(c._payload),h)}if(rg(c))return P(g,f,c,h);if(k0(c))return y(g,f,c,h);Cy(g,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,f!==null&&f.tag===6?(r(g,f.sibling),f=o(f,c),f.return=g,g=f):(r(g,f),f=j_(c,g.mode,h),f.return=g,g=f),a(g)):r(g,f)}return C}var Ap=IM(!0),LM=IM(!1),h1=Fu(null),g1=null,qf=null,J4=null;function eP(){J4=qf=g1=null}function tP(e){var t=h1.current;mr(h1),e._currentValue=t}function OS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function mp(e,t){g1=e,J4=qf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(J4!==e)if(e={context:e,memoizedValue:t,next:null},qf===null){if(g1===null)throw Error(Ie(308));qf=e,g1.dependencies={lanes:0,firstContext:e}}else qf=qf.next=e;return t}var Wc=null;function rP(e){Wc===null?Wc=[e]:Wc.push(e)}function DM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,rP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function nP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ut&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,rP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function vb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}function KO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function v1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var w=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,b=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,b=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){w=P.call(b,w,S);break e}w=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(b,w,S):P,S==null)break e;w=Ar({},w,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else b={eventTime:b,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=b,s=w):v=v.next=b,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=w),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=w}}function qO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=A_.transition;A_.transition={};try{e(!1),t()}finally{Yt=r,A_.transition=n}}function eR(){return sa().memoizedState}function TU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},tR(e))rR(t,r);else if(r=DM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),nR(r,t,n)}}function OU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(tR(e))rR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,rP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=DM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),nR(r,t,n))}}function tR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function rR(e,t){bg=y1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function nR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}var b1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},kU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:XO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,yb(4194308,4,YM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return yb(4194308,4,e,t)},useInsertionEffect:function(e,t){return yb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:YO,useDebugValue:dP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=YO(!1),t=e[0];return e=PU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(Ie(407));r=r()}else{if(r=t(),Rn===null)throw Error(Ie(349));(nd&30)!==0||BM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,XO(HM.bind(null,n,i,e),[e]),n.flags|=2048,Jg(9,UM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Qg++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{v_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?tg(e):""}function nB(e){switch(e.tag){case 5:return tg(e.type);case 16:return tg("Lazy");case 13:return tg("Suspense");case 19:return tg("SuspenseList");case 0:case 2:case 15:return e=m_(e.type,!1),e;case 11:return e=m_(e.type.render,!1),e;case 1:return e=m_(e.type,!0),e;default:return""}}function rS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vf:return"Fragment";case zf:return"Portal";case Jx:return"Profiler";case F4:return"StrictMode";case eS:return"Suspense";case tS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case D9:return(e.displayName||"Context")+".Consumer";case L9:return(e._context.displayName||"Context")+".Provider";case j4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z4:return t=e.displayName||null,t!==null?t:rS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return rS(e(t))}catch{}}return null}function oB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rS(t);case 8:return t===F4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function j9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iB(e){var t=j9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hy(e){e._valueTracker||(e._valueTracker=iB(e))}function z9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=j9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function t1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function gO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function V9(e,t){t=t.checked,t!=null&&D4(e,"checked",t,!1)}function oS(e,t){V9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?iS(e,t.type,r):t.hasOwnProperty("defaultValue")&&iS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function iS(e,t,r){(t!=="number"||t1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rg=Array.isArray;function pp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aB=["Webkit","ms","Moz","O"];Object.keys(hg).forEach(function(e){aB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hg[t]=hg[e]})});function W9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hg.hasOwnProperty(e)&&hg[e]?(""+t).trim():t+"px"}function $9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=W9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var lB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function sS(e,t){if(t){if(lB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function uS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cS=null;function V4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dS=null,hp=null,gp=null;function bO(e){if(e=zv(e)){if(typeof dS!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=Fw(t),dS(e.stateNode,e.type,t))}}function G9(e){hp?gp?gp.push(e):gp=[e]:hp=e}function K9(){if(hp){var e=hp,t=gp;if(gp=hp=null,bO(e),t)for(e=0;e>>=0,e===0?32:31-(yB(e)/bB|0)|0}var vy=64,my=4194304;function ng(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function i1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=ng(l):(i&=a,i!==0&&(n=ng(i)))}else a=r&~o,a!==0?n=ng(a):i!==0&&(n=ng(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Fv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function SB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=vg),kO=" ",EO=!1;function pM(e,t){switch(e){case"keyup":return QB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bf=!1;function JB(e,t){switch(e){case"compositionend":return hM(t);case"keypress":return t.which!==32?null:(EO=!0,kO);case"textInput":return e=t.data,e===kO&&EO?null:e;default:return null}}function eU(e,t){if(Bf)return e==="compositionend"||!q4&&pM(e,t)?(e=dM(),hb=$4=au=null,Bf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AO(r)}}function yM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bM(){for(var e=window,t=t1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=t1(e.document)}return t}function Y4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uU(e){var t=bM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&yM(r.ownerDocument.documentElement,r)){if(n!==null&&Y4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=IO(r,i);var a=IO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Uf=null,mS=null,yg=null,yS=!1;function LO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yS||Uf==null||Uf!==t1(n)||(n=Uf,"selectionStart"in n&&Y4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yg&&$g(yg,n)||(yg=n,n=s1(mS,"onSelect"),0$f||(e.current=CS[$f],CS[$f]=null,$f--)}function ur(e,t){$f++,CS[$f]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Rp(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function c1(){mr(Xo),mr(ho)}function UO(e,t,r){if(ho.current!==Eu)throw Error(Le(168));ur(ho,t),ur(Xo,r)}function kM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Le(108,oB(e)||"Unknown",o));return Ar({},r,n)}function d1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function HO(e,t,r){var n=e.stateNode;if(!n)throw Error(Le(169));r?(e=kM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,jw=!1,R_=!1;function EM(e){ql===null?ql=[e]:ql.push(e)}function _U(e){jw=!0,EM(e)}function ju(){if(!R_&&ql!==null){R_=!0;var e=0,t=Xt;try{var r=ql;for(Xt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(g,T,c[k],p);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(g,T),h=i(E,h,k),b===null?m=E:b.sibling=E,b=E,T=R}if(k===c.length)return r(g,T),_r&&Fc(g,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(g,T,E.value,p);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(g,T),h=i(A,h,k),b===null?m=A:b.sibling=A,b=A,T=R}if(E.done)return r(g,T),_r&&Fc(g,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=w(g,E.value,p),E!==null&&(h=i(E,h,k),b===null?m=E:b.sibling=E,b=E);return _r&&Fc(g,k),m}for(T=n(g,T);!E.done;k++,E=c.next())E=_(T,g,k,E.value,p),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),h=i(E,h,k),b===null?m=E:b.sibling=E,b=E);return e&&T.forEach(function(F){return t(g,F)}),_r&&Fc(g,k),m}function C(g,h,c,p){if(typeof c=="object"&&c!==null&&c.type===Vf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case py:e:{for(var m=c.key,b=h;b!==null;){if(b.key===m){if(m=c.type,m===Vf){if(b.tag===7){r(g,b.sibling),h=o(b,c.props.children),h.return=g,g=h;break e}}else if(b.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&GO(m)===b.type){r(g,b.sibling),h=o(b,c.props),h.ref=A0(g,b,c),h.return=g,g=h;break e}r(g,b);break}else t(g,b);b=b.sibling}c.type===Vf?(h=Qc(c.props.children,g.mode,p,c.key),h.return=g,g=h):(p=xb(c.type,c.key,c.props,null,g.mode,p),p.ref=A0(g,h,c),p.return=g,g=p)}return a(g);case zf:e:{for(b=c.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===c.containerInfo&&h.stateNode.implementation===c.implementation){r(g,h.sibling),h=o(h,c.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=z_(c,g.mode,p),h.return=g,g=h}return a(g);case Qs:return b=c._init,C(g,h,b(c._payload),p)}if(rg(c))return P(g,h,c,p);if(k0(c))return y(g,h,c,p);Cy(g,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,c),h.return=g,g=h):(r(g,h),h=j_(c,g.mode,p),h.return=g,g=h),a(g)):r(g,h)}return C}var Ap=AM(!0),IM=AM(!1),h1=Fu(null),g1=null,qf=null,J4=null;function eP(){J4=qf=g1=null}function tP(e){var t=h1.current;mr(h1),e._currentValue=t}function OS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function mp(e,t){g1=e,J4=qf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(J4!==e)if(e={context:e,memoizedValue:t,next:null},qf===null){if(g1===null)throw Error(Le(308));qf=e,g1.dependencies={lanes:0,firstContext:e}}else qf=qf.next=e;return t}var Wc=null;function rP(e){Wc===null?Wc=[e]:Wc.push(e)}function LM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,rP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function nP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function DM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Wt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,rP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function vb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}function KO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function v1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var w=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,_=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:_,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,_=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){w=P.call(_,w,S);break e}w=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(_,w,S):P,S==null)break e;w=Ar({},w,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else _={eventTime:_,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=_,s=w):v=v.next=_,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=w),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=w}}function qO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=A_.transition;A_.transition={};try{e(!1),t()}finally{Xt=r,A_.transition=n}}function JM(){return sa().memoizedState}function PU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},eR(e))tR(t,r);else if(r=LM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),rR(r,t,n)}}function TU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(eR(e))tR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,rP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=LM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),rR(r,t,n))}}function eR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function tR(e,t){bg=y1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function rR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}var b1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},OU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:XO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,yb(4194308,4,qM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return yb(4194308,4,e,t)},useInsertionEffect:function(e,t){return yb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=PU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:YO,useDebugValue:dP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=YO(!1),t=e[0];return e=CU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(Le(407));r=r()}else{if(r=t(),Rn===null)throw Error(Le(349));(nd&30)!==0||VM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,XO(UM.bind(null,n,i,e),[e]),n.flags|=2048,Jg(9,BM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Qg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[qg]=n,pR(e,t,!1,!1),t.stateNode=e;e:{switch(a=uS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oDp&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304)}else{if(!n)if(e=m1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),I0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Dp&&r!==1073741824&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return mP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function DU(e,t){switch(Q4(t),t.tag){case 1:return Qo(t.type)&&c1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ip(),mr(Xo),mr(ho),aP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return iP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Np()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Ip(),null;case 10:return tP(t.type._context),null;case 22:case 23:return mP(),null;case 24:return null;default:return null}}var Ty=!1,co=!1,FU=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Yf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function DS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var l6=!1;function jU(e,t){if(bS=a1,e=wM(),Y4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,w=e,S=null;t:for(;;){for(var b;w!==r||o!==0&&w.nodeType!==3||(l=a+o),w!==i||n!==0&&w.nodeType!==3||(s=a+n),w.nodeType===3&&(a+=w.nodeValue.length),(b=w.firstChild)!==null;)S=w,w=b;for(;;){if(w===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(b=w.nextSibling)!==null)break;w=S,S=w.parentNode}w=b}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(wS={focusedElem:e,selectionRange:r},a1=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){t=Ge;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(h){Vr(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}return P=l6,l6=!1,P}function wg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&DS(t,r,i)}o=o.next}while(o!==n)}}function Bw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function FS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function vR(e){var t=e.alternate;t!==null&&(e.alternate=null,vR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[qg],delete t[SS],delete t[wU],delete t[_U])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mR(e){return e.tag===5||e.tag===3||e.tag===4}function s6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=u1));else if(n!==4&&(e=e.child,e!==null))for(jS(e,t,r),e=e.sibling;e!==null;)jS(e,t,r),e=e.sibling}function zS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(zS(e,t,r),e=e.sibling;e!==null;)zS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)yR(e,t,r),r=r.sibling}function yR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Aw,r)}catch{}switch(r.tag){case 5:co||Yf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?M_(e.parentNode,r):e.nodeType===1&&M_(e,r),Hg(e)):M_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&DS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Yf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function u6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FU),t.forEach(function(n){var o=KU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,x1=0,(Ut&6)!==0)throw Error(Ie(331));var o=Ut;for(Ut|=4,Ge=e.current;Ge!==null;){var i=Ge,a=i.child;if((Ge.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-gP?Xc(e,0):hP|=r),Zo(e,t)}function TR(e,t){t===0&&((e.mode&1)===0?t=1:(t=my,my<<=1,(my&130023424)===0&&(my=4194304)));var r=Ro();e=us(e,t),e!==null&&(Fv(e,t,r),Zo(e,r))}function GU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TR(e,r)}function KU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Ie(314))}n!==null&&n.delete(t),TR(e,r)}var OR;OR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,IU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&RM(t,p1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;bb(e,t),e=t.pendingProps;var o=Rp(t,ho.current);mp(t,r),o=sP(null,t,n,e,o,r);var i=uP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,d1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nP(t),o.updater=Vw,t.stateNode=o,o._reactInternals=t,ES(t,n,e,r),t=NS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&X4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(bb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=YU(n),e=Ta(n,e),o){case 0:t=RS(null,t,n,e,r);break e;case 1:t=o6(null,t,n,e,r);break e;case 11:t=r6(null,t,n,e,r);break e;case 14:t=n6(null,t,n,Ta(n.type,e),r);break e}throw Error(Ie(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),RS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),o6(e,t,n,o,r);case 3:e:{if(cR(t),e===null)throw Error(Ie(387));n=t.pendingProps,i=t.memoizedState,o=i.element,FM(e,t),v1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lp(Error(Ie(423)),t),t=i6(e,t,n,r,o);break e}else if(n!==o){o=Lp(Error(Ie(424)),t),t=i6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=LM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Np(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return jM(t),e===null&&TS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_S(n,o)?a=null:i!==null&&_S(n,i)&&(t.flags|=32),uR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&TS(t),null;case 13:return dR(e,t,r);case 4:return oP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ap(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),r6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(h1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),OS(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Ie(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),OS(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),n6(e,t,n,o,r);case 15:return lR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),bb(e,t),t.tag=1,Qo(n)?(e=!0,d1(t)):e=!1,mp(t,r),oR(t,n,o),ES(t,n,o,r),NS(null,t,n,!0,e,r);case 19:return fR(e,t,r);case 22:return sR(e,t,r)}throw Error(Ie(156,t.tag))};function kR(e,t){return tM(e,t)}function qU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new qU(e,t,r,n)}function bP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YU(e){if(typeof e=="function")return bP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j4)return 11;if(e===z4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")bP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vf:return Qc(r.children,o,i,t);case F4:a=8,o|=8;break;case Jx:return e=ta(12,r,t,o|2),e.elementType=Jx,e.lanes=i,e;case eS:return e=ta(13,r,t,o),e.elementType=eS,e.lanes=i,e;case tS:return e=ta(19,r,t,o),e.elementType=tS,e.lanes=i,e;case j9:return Hw(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D9:a=10;break e;case F9:a=9;break e;case j4:a=11;break e;case z4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function Hw(e,t,r,n){return e=ta(22,e,n,t),e.elementType=j9,e.lanes=r,e.stateNode={isHidden:!1},e}function j_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function z_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=b_(0),this.expirationTimes=b_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=b_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wP(e,t,r,n,o,i,a,l,s){return e=new XU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nP(i),e}function QU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),N9.exports=Mi;var qw=N9.exports;const rH=nh(qw),nH=E4({__proto__:null,default:rH},[qw]);var AR,m6=qw;AR=m6.createRoot,m6.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function D_(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function MS(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var MU=typeof WeakMap=="function"?WeakMap:Map;function oR(e,t,r){r=es(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){_1||(_1=!0,VS=n),MS(e,t)},r}function iR(e,t,r){r=es(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){MS(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){MS(e,t),typeof n!="function"&&(vu===null?vu=new Set([this]):vu.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function JO(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new MU;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=WU.bind(null,e,t,r),t.then(e,e))}function e6(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function t6(e,t,r,n,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=es(-1,1),t.tag=2,gu(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var RU=ys.ReactCurrentOwner,Ko=!1;function Eo(e,t,r,n){t.child=e===null?IM(t,null,r,n):Ap(t,e.child,r,n)}function r6(e,t,r,n,o){r=r.render;var i=t.ref;return mp(t,o),n=sP(e,t,r,n,i,o),r=uP(),e!==null&&!Ko?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,cs(e,t,o)):(_r&&r&&X4(t),t.flags|=1,Eo(e,t,n,o),t.child)}function n6(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!bP(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,aR(e,t,i,n,o)):(e=xb(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:$g,r(a,n)&&e.ref===t.ref)return cs(e,t,o)}return t.flags|=1,e=yu(i,n),e.ref=t.ref,e.return=t,t.child=e}function aR(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if($g(i,n)&&e.ref===t.ref)if(Ko=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Ko=!0);else return t.lanes=e.lanes,cs(e,t,o)}return RS(e,t,r,n,o)}function lR(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ur(Xf,yi),yi|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ur(Xf,yi),yi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ur(Xf,yi),yi|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,ur(Xf,yi),yi|=n;return Eo(e,t,o,r),t.child}function sR(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function RS(e,t,r,n,o){var i=Qo(r)?td:ho.current;return i=Rp(t,i),mp(t,o),r=sP(e,t,r,n,i,o),n=uP(),e!==null&&!Ko?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,cs(e,t,o)):(_r&&n&&X4(t),t.flags|=1,Eo(e,t,r,o),t.child)}function o6(e,t,r,n,o){if(Qo(r)){var i=!0;d1(t)}else i=!1;if(mp(t,o),t.stateNode===null)bb(e,t),nR(t,r,n),ES(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,d=r.contextType;typeof d=="object"&&d!==null?d=la(d):(d=Qo(r)?td:ho.current,d=Rp(t,d));var v=r.getDerivedStateFromProps,w=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function";w||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==n||s!==d)&&ZO(t,a,n,d),Zs=!1;var S=t.memoizedState;a.state=S,v1(t,n,a,o),s=t.memoizedState,l!==n||S!==s||Xo.current||Zs?(typeof v=="function"&&(kS(t,r,v,n),s=t.memoizedState),(l=Zs||QO(t,r,l,n,S,s,d))?(w||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),a.props=n,a.state=s,a.context=d,n=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,DM(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:Ta(t.type,l),a.props=d,w=t.pendingProps,S=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=la(s):(s=Qo(r)?td:ho.current,s=Rp(t,s));var _=r.getDerivedStateFromProps;(v=typeof _=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==w||S!==s)&&ZO(t,a,n,s),Zs=!1,S=t.memoizedState,a.state=S,v1(t,n,a,o);var P=t.memoizedState;l!==w||S!==P||Xo.current||Zs?(typeof _=="function"&&(kS(t,r,_,n),P=t.memoizedState),(d=Zs||QO(t,r,d,n,S,P,s)||!1)?(v||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,P,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,P,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=P),a.props=n,a.state=P,a.context=s,n=d):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),n=!1)}return NS(e,t,r,n,i,o)}function NS(e,t,r,n,o,i){sR(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&HO(t,r,!1),cs(e,t,i);n=t.stateNode,RU.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Ap(t,e.child,null,i),t.child=Ap(t,null,l,i)):Eo(e,t,l,i),t.memoizedState=n.state,o&&HO(t,r,!0),t.child}function uR(e){var t=e.stateNode;t.pendingContext?UO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&UO(e,t.context,!1),oP(e,t.containerInfo)}function i6(e,t,r,n,o){return Np(),Z4(o),t.flags|=256,Eo(e,t,r,n),t.child}var AS={dehydrated:null,treeContext:null,retryLane:0};function IS(e){return{baseLanes:e,cachePool:null,transitions:null}}function cR(e,t,r){var n=t.pendingProps,o=kr.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ur(kr,o&1),e===null)return TS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Hw(a,n,0,null),e=Qc(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=IS(r),t.memoizedState=AS,e):fP(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return NU(e,t,a,n,l,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:n.children};return(a&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=yu(o,s),n.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=yu(l,i):(i=Qc(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?IS(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=AS,n}return i=e.child,e=i.sibling,n=yu(i,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function fP(e,t){return t=Hw({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Py(e,t,r,n){return n!==null&&Z4(n),Ap(t,e.child,null,r),e=fP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function NU(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=D_(Error(Le(422))),Py(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Hw({mode:"visible",children:n.children},o,0,null),i=Qc(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Ap(t,e.child,null,a),t.child.memoizedState=IS(a),t.memoizedState=AS,i);if((t.mode&1)===0)return Py(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(Le(419)),n=D_(i,n,void 0),Py(e,t,a,n)}if(l=(a&e.childLanes)!==0,Ko||l){if(n=Rn,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,us(e,o),La(n,e,o,-1))}return yP(),n=D_(Error(Le(421))),Py(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=$U.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,_i=hu(o.nextSibling),Si=t,_r=!0,Ra=null,e!==null&&(Qi[Zi++]=Xl,Qi[Zi++]=Ql,Qi[Zi++]=rd,Xl=e.id,Ql=e.overflow,rd=t),t=fP(t,n.children),t.flags|=4096,t)}function a6(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),OS(e.return,t,r)}function F_(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function dR(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Eo(e,t,n.children,r),n=kr.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&a6(e,r,t);else if(e.tag===19)a6(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ur(kr,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&m1(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),F_(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&m1(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}F_(t,!0,r,null,i);break;case"together":F_(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bb(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),od|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(Le(153));if(t.child!==null){for(e=t.child,r=yu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=yu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function AU(e,t,r){switch(t.tag){case 3:uR(t),Np();break;case 5:FM(t);break;case 1:Qo(t.type)&&d1(t);break;case 4:oP(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ur(h1,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ur(kr,kr.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?cR(e,t,r):(ur(kr,kr.current&1),e=cs(e,t,r),e!==null?e.sibling:null);ur(kr,kr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return dR(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ur(kr,kr.current),n)break;return null;case 22:case 23:return t.lanes=0,lR(e,t,r)}return cs(e,t,r)}var fR,LS,pR,hR;fR=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};LS=function(){};pR=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,$c(vl.current);var i=null;switch(r){case"input":o=nS(e,o),n=nS(e,n),i=[];break;case"select":o=Ar({},o,{value:void 0}),n=Ar({},n,{value:void 0}),i=[];break;case"textarea":o=aS(e,o),n=aS(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=u1)}sS(r,n);var a;r=null;for(d in o)if(!n.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var l=o[d];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(jg.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in n){var s=n[d];if(l=o!=null?o[d]:void 0,n.hasOwnProperty(d)&&s!==l&&(s!=null||l!=null))if(d==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(d,r)),r=s;else d==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(d,s)):d==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(d,""+s):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(jg.hasOwnProperty(d)?(s!=null&&d==="onScroll"&&hr("scroll",e),i||l===s||(i=[])):(i=i||[]).push(d,s))}r&&(i=i||[]).push("style",r);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};hR=function(e,t,r,n){r!==n&&(t.flags|=4)};function I0(e,t){if(!_r)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function oo(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function IU(e,t,r){var n=t.pendingProps;switch(Q4(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oo(t),null;case 1:return Qo(t.type)&&c1(),oo(t),null;case 3:return n=t.stateNode,Ip(),mr(Xo),mr(ho),aP(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Sy(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ra!==null&&(HS(Ra),Ra=null))),LS(e,t),oo(t),null;case 5:iP(t);var o=$c(Xg.current);if(r=t.type,e!==null&&t.stateNode!=null)pR(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Le(166));return oo(t),null}if(e=$c(vl.current),Sy(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[fl]=t,n[qg]=i,e=(t.mode&1)!==0,r){case"dialog":hr("cancel",n),hr("close",n);break;case"iframe":case"object":case"embed":hr("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[qg]=n,fR(e,t,!1,!1),t.stateNode=e;e:{switch(a=uS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oDp&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304)}else{if(!n)if(e=m1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),I0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Dp&&r!==1073741824&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return mP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function LU(e,t){switch(Q4(t),t.tag){case 1:return Qo(t.type)&&c1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ip(),mr(Xo),mr(ho),aP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return iP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));Np()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Ip(),null;case 10:return tP(t.type._context),null;case 22:case 23:return mP(),null;case 24:return null;default:return null}}var Ty=!1,co=!1,DU=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Yf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function DS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var l6=!1;function FU(e,t){if(bS=a1,e=bM(),Y4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,w=e,S=null;t:for(;;){for(var _;w!==r||o!==0&&w.nodeType!==3||(l=a+o),w!==i||n!==0&&w.nodeType!==3||(s=a+n),w.nodeType===3&&(a+=w.nodeValue.length),(_=w.firstChild)!==null;)S=w,w=_;for(;;){if(w===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(_=w.nextSibling)!==null)break;w=S,S=w.parentNode}w=_}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(wS={focusedElem:e,selectionRange:r},a1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(p){Vr(t,t.return,p)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=l6,l6=!1,P}function wg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&DS(t,r,i)}o=o.next}while(o!==n)}}function Bw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function FS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function gR(e){var t=e.alternate;t!==null&&(e.alternate=null,gR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[qg],delete t[SS],delete t[bU],delete t[wU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vR(e){return e.tag===5||e.tag===3||e.tag===4}function s6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=u1));else if(n!==4&&(e=e.child,e!==null))for(jS(e,t,r),e=e.sibling;e!==null;)jS(e,t,r),e=e.sibling}function zS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(zS(e,t,r),e=e.sibling;e!==null;)zS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)mR(e,t,r),r=r.sibling}function mR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Aw,r)}catch{}switch(r.tag){case 5:co||Yf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?M_(e.parentNode,r):e.nodeType===1&&M_(e,r),Hg(e)):M_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&DS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Yf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function u6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new DU),t.forEach(function(n){var o=GU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*zU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,x1=0,(Wt&6)!==0)throw Error(Le(331));var o=Wt;for(Wt|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-gP?Xc(e,0):hP|=r),Zo(e,t)}function PR(e,t){t===0&&((e.mode&1)===0?t=1:(t=my,my<<=1,(my&130023424)===0&&(my=4194304)));var r=Ro();e=us(e,t),e!==null&&(Fv(e,t,r),Zo(e,r))}function $U(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),PR(e,r)}function GU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Le(314))}n!==null&&n.delete(t),PR(e,r)}var TR;TR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,AU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&MM(t,p1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;bb(e,t),e=t.pendingProps;var o=Rp(t,ho.current);mp(t,r),o=sP(null,t,n,e,o,r);var i=uP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,d1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nP(t),o.updater=Vw,t.stateNode=o,o._reactInternals=t,ES(t,n,e,r),t=NS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&X4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(bb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=qU(n),e=Ta(n,e),o){case 0:t=RS(null,t,n,e,r);break e;case 1:t=o6(null,t,n,e,r);break e;case 11:t=r6(null,t,n,e,r);break e;case 14:t=n6(null,t,n,Ta(n.type,e),r);break e}throw Error(Le(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),RS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),o6(e,t,n,o,r);case 3:e:{if(uR(t),e===null)throw Error(Le(387));n=t.pendingProps,i=t.memoizedState,o=i.element,DM(e,t),v1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lp(Error(Le(423)),t),t=i6(e,t,n,r,o);break e}else if(n!==o){o=Lp(Error(Le(424)),t),t=i6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=IM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Np(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return FM(t),e===null&&TS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_S(n,o)?a=null:i!==null&&_S(n,i)&&(t.flags|=32),sR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&TS(t),null;case 13:return cR(e,t,r);case 4:return oP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ap(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),r6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(h1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),OS(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Le(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),OS(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),n6(e,t,n,o,r);case 15:return aR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),bb(e,t),t.tag=1,Qo(n)?(e=!0,d1(t)):e=!1,mp(t,r),nR(t,n,o),ES(t,n,o,r),NS(null,t,n,!0,e,r);case 19:return dR(e,t,r);case 22:return lR(e,t,r)}throw Error(Le(156,t.tag))};function OR(e,t){return eM(e,t)}function KU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new KU(e,t,r,n)}function bP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qU(e){if(typeof e=="function")return bP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j4)return 11;if(e===z4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")bP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vf:return Qc(r.children,o,i,t);case F4:a=8,o|=8;break;case Jx:return e=ta(12,r,t,o|2),e.elementType=Jx,e.lanes=i,e;case eS:return e=ta(13,r,t,o),e.elementType=eS,e.lanes=i,e;case tS:return e=ta(19,r,t,o),e.elementType=tS,e.lanes=i,e;case F9:return Hw(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L9:a=10;break e;case D9:a=9;break e;case j4:a=11;break e;case z4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function Hw(e,t,r,n){return e=ta(22,e,n,t),e.elementType=F9,e.lanes=r,e.stateNode={isHidden:!1},e}function j_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function z_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function YU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=b_(0),this.expirationTimes=b_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=b_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wP(e,t,r,n,o,i,a,l,s){return e=new YU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nP(i),e}function XU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(RR)}catch(e){console.error(e)}}RR(),R9.exports=Mi;var qw=R9.exports;const tH=nh(qw),rH=E4({__proto__:null,default:tH},[qw]);var NR,m6=qw;NR=m6.createRoot,m6.hydrateRoot;/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -46,9 +46,9 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iH(){return Math.random().toString(36).substr(2,8)}function b6(e,t){return{usr:e.state,key:e.key,idx:t}}function tv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||iH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function w(){l=rn.Pop;let C=v(),g=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:g})}function S(C,g){l=rn.Push;let f=tv(y.location,C,g);d=v()+1;let c=b6(f,d),h=y.createHref(f);try{a.pushState(c,"",h)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(h)}i&&s&&s({action:l,location:y.location,delta:1})}function b(C,g){l=rn.Replace;let f=tv(y.location,C,g);d=v();let c=b6(f,d),h=y.createHref(f);a.replaceState(c,"",h),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,f=typeof C=="string"?C:ad(C);return f=f.replace(/ $/,"%20"),Ct(g,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,g)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(y6,w),s=C,()=>{o.removeEventListener(y6,w),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let g=P(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:S,replace:b,go(C){return a.go(C)}};return y}var tr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tr||(tr={}));const lH=new Set(["lazy","caseSensitive","path","id","index","children"]);function sH(e){return e.index===!0}function rv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Ct(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ct(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),sH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=rv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Sb(e,t,r,!1)}function Sb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=lh(o.pathname||"/",r);if(i==null)return null;let a=IR(e);cH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Ct(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Ct(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),IR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:mH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of LR(i.path))o(i,a,s)}),t}function LR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=LR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function cH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:yH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dH=/^:[\w-]+$/,fH=3,pH=2,hH=1,gH=10,vH=-2,w6=e=>e==="*";function mH(e,t){let r=e.split("/"),n=r.length;return r.some(w6)&&(n+=vH),t&&(n+=pH),r.filter(o=>!w6(o)).reduce((o,i)=>o+(dH.test(i)?fH:i===""?hH:gH),n)}function yH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function bH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:b}=v;if(S==="*"){let y=l[w]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[w];return b&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function wH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Fp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function _H(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function xH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:SH(r,t):t,search:PH(n),hash:TH(o)}}function SH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function V_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function DR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function CP(e,t){let r=DR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function PP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Ct(!o.pathname||!o.pathname.includes("?"),V_("?","pathname","search",o)),Ct(!o.pathname||!o.pathname.includes("#"),V_("#","pathname","hash",o)),Ct(!o.search||!o.search.includes("#"),V_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let w=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),w-=1;o.pathname=S.join("/")}l=w>=0?t[w]:"/"}let s=xH(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),CH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class P1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Bv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FR=["post","put","patch","delete"],OH=new Set(FR),kH=["get",...FR],EH=new Set(kH),MH=new Set([301,302,303,307,308]),RH=new Set([307,308]),B_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},D0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},TP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jR="remix-router-transitions";function IH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Ct(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ae=e.detectErrorBoundary;o=pe=>({hasErrorBoundary:ae(pe)})}else o=AH;let i={},a=rv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||VH,v=e.unstable_patchRoutesOnNavigation,w=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,b=new Set,P=1e3,y=new Set,C=null,g=null,f=null,c=e.hydrationData!=null,h=Uc(a,e.history.location,s),m=null;if(h==null&&!v){let ae=ko(404,{pathname:e.history.location.pathname}),{matches:pe,route:_e}=M6(a);h=pe,m={[_e.id]:ae}}h&&!e.hydrationData&&bo(h,a,e.history.location.pathname).active&&(h=null);let _;if(h)if(h.some(ae=>ae.route.lazy))_=!1;else if(!h.some(ae=>ae.route.loader))_=!0;else if(w.v7_partialHydration){let ae=e.hydrationData?e.hydrationData.loaderData:null,pe=e.hydrationData?e.hydrationData.errors:null,_e=Ee=>Ee.route.loader?typeof Ee.route.loader=="function"&&Ee.route.loader.hydrate===!0?!1:ae&&ae[Ee.route.id]!==void 0||pe&&pe[Ee.route.id]!==void 0:!0;if(pe){let Ee=h.findIndex(Be=>pe[Be.route.id]!==void 0);_=h.slice(0,Ee+1).every(_e)}else _=h.every(_e)}else _=e.hydrationData!=null;else if(_=!1,h=[],w.v7_partialHydration){let ae=bo(null,a,e.history.location.pathname);ae.active&&ae.matches&&(h=ae.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:h,initialized:_,navigation:B_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,H=!1,q=!1,re=[],Q=new Set,W=new Map,Y=0,te=-1,ne=new Map,se=new Set,ve=new Map,ye=new Map,ce=new Set,J=new Map,oe=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(ae=>{let{action:pe,location:_e,delta:Ee}=ae;if(Se){Se(),Se=void 0;return}Fp(oe.size===0||Ee!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Be=Li({currentLocation:k.location,nextLocation:_e,historyAction:pe});if(Be&&Ee!=null){let Xe=new Promise(ut=>{Se=ut});e.history.go(Ee*-1),sn(Be,{state:"blocked",location:_e,proceed(){sn(Be,{state:"proceeding",proceed:void 0,reset:void 0,location:_e}),Xe.then(()=>e.history.go(Ee))},reset(){let ut=new Map(k.blockers);ut.set(Be,D0),Te({blockers:ut})}});return}return it(pe,_e)}),r){tW(t,V);let ae=()=>rW(t,V);t.addEventListener("pagehide",ae),B=()=>t.removeEventListener("pagehide",ae)}return k.initialized||it(rn.Pop,k.location,{initialHydration:!0}),T}function Re(){S&&S(),B&&B(),b.clear(),A&&A.abort(),k.fetchers.forEach((ae,pe)=>qt(pe)),k.blockers.forEach((ae,pe)=>Ka(pe))}function xe(ae){return b.add(ae),()=>b.delete(ae)}function Te(ae,pe){pe===void 0&&(pe={}),k=Tr({},k,ae);let _e=[],Ee=[];w.v7_fetcherPersist&&k.fetchers.forEach((Be,Xe)=>{Be.state==="idle"&&(ce.has(Xe)?Ee.push(Xe):_e.push(Xe))}),[...b].forEach(Be=>Be(k,{deletedFetchers:Ee,unstable_viewTransitionOpts:pe.viewTransitionOpts,unstable_flushSync:pe.flushSync===!0})),w.v7_fetcherPersist&&(_e.forEach(Be=>k.fetchers.delete(Be)),Ee.forEach(Be=>qt(Be)))}function Oe(ae,pe,_e){var Ee,Be;let{flushSync:Xe}=_e===void 0?{}:_e,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Ee=ae.state)==null?void 0:Ee._isRedirect)!==!0,De;pe.actionData?Object.keys(pe.actionData).length>0?De=pe.actionData:De=null:ut?De=k.actionData:De=null;let Qe=pe.loaderData?k6(k.loaderData,pe.loaderData,pe.matches||[],pe.errors):k.loaderData,We=k.blockers;We.size>0&&(We=new Map(We),We.forEach((Rt,Bt)=>We.set(Bt,D0)));let $e=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Be=ae.state)==null?void 0:Be._isRedirect)!==!0;l&&(a=l,l=void 0),H||R===rn.Pop||(R===rn.Push?e.history.push(ae,ae.state):R===rn.Replace&&e.history.replace(ae,ae.state));let Ot;if(R===rn.Pop){let Rt=V.get(k.location.pathname);Rt&&Rt.has(ae.pathname)?Ot={currentLocation:k.location,nextLocation:ae}:V.has(ae.pathname)&&(Ot={currentLocation:ae,nextLocation:k.location})}else if(F){let Rt=V.get(k.location.pathname);Rt?Rt.add(ae.pathname):(Rt=new Set([ae.pathname]),V.set(k.location.pathname,Rt)),Ot={currentLocation:k.location,nextLocation:ae}}Te(Tr({},pe,{actionData:De,loaderData:Qe,historyAction:R,location:ae,initialized:!0,navigation:B_,revalidation:"idle",restoreScrollPosition:Fi(ae,pe.matches||k.matches),preventScrollReset:$e,blockers:We}),{viewTransitionOpts:Ot,flushSync:Xe===!0}),R=rn.Pop,E=!1,F=!1,H=!1,q=!1,re=[]}async function je(ae,pe){if(typeof ae=="number"){e.history.go(ae);return}let _e=WS(k.location,k.matches,s,w.v7_prependBasename,ae,w.v7_relativeSplatPath,pe==null?void 0:pe.fromRouteId,pe==null?void 0:pe.relative),{path:Ee,submission:Be,error:Xe}=x6(w.v7_normalizeFormMethod,!1,_e,pe),ut=k.location,De=tv(k.location,Ee,pe&&pe.state);De=Tr({},De,e.history.encodeLocation(De));let Qe=pe&&pe.replace!=null?pe.replace:void 0,We=rn.Push;Qe===!0?We=rn.Replace:Qe===!1||Be!=null&&Ea(Be.formMethod)&&Be.formAction===k.location.pathname+k.location.search&&(We=rn.Replace);let $e=pe&&"preventScrollReset"in pe?pe.preventScrollReset===!0:void 0,Ot=(pe&&pe.unstable_flushSync)===!0,Rt=Li({currentLocation:ut,nextLocation:De,historyAction:We});if(Rt){sn(Rt,{state:"blocked",location:De,proceed(){sn(Rt,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),je(ae,pe)},reset(){let Bt=new Map(k.blockers);Bt.set(Rt,D0),Te({blockers:Bt})}});return}return await it(We,De,{submission:Be,pendingError:Xe,preventScrollReset:$e,replace:pe&&pe.replace,enableViewTransition:pe&&pe.unstable_viewTransition,flushSync:Ot})}function Ye(){if(Qn(),Te({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){it(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}it(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function it(ae,pe,_e){A&&A.abort(),A=null,R=ae,H=(_e&&_e.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(_e&&_e.preventScrollReset)===!0,F=(_e&&_e.enableViewTransition)===!0;let Ee=l||a,Be=_e&&_e.overrideNavigation,Xe=Uc(Ee,pe,s),ut=(_e&&_e.flushSync)===!0,De=bo(Xe,Ee,pe.pathname);if(De.active&&De.matches&&(Xe=De.matches),!Xe){let{error:yt,notFoundMatches:dr,route:nr}=fa(pe.pathname);Oe(pe,{matches:dr,loaderData:{},errors:{[nr.id]:yt}},{flushSync:ut});return}if(k.initialized&&!q&&GH(k.location,pe)&&!(_e&&_e.submission&&Ea(_e.submission.formMethod))){Oe(pe,{matches:Xe},{flushSync:ut});return}A=new AbortController;let Qe=Rf(e.history,pe,A.signal,_e&&_e.submission),We;if(_e&&_e.pendingError)We=[Qf(Xe).route.id,{type:tr.error,error:_e.pendingError}];else if(_e&&_e.submission&&Ea(_e.submission.formMethod)){let yt=await Mt(Qe,pe,_e.submission,Xe,De.active,{replace:_e.replace,flushSync:ut});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[dr,nr]=yt.pendingActionResult;if(wi(nr)&&Bv(nr.error)&&nr.error.status===404){A=null,Oe(pe,{matches:yt.matches,loaderData:{},errors:{[dr]:nr.error}});return}}Xe=yt.matches||Xe,We=yt.pendingActionResult,Be=U_(pe,_e.submission),ut=!1,De.active=!1,Qe=Rf(e.history,Qe.url,Qe.signal)}let{shortCircuited:$e,matches:Ot,loaderData:Rt,errors:Bt}=await gt(Qe,pe,Xe,De.active,Be,_e&&_e.submission,_e&&_e.fetcherSubmission,_e&&_e.replace,_e&&_e.initialHydration===!0,ut,We);$e||(A=null,Oe(pe,Tr({matches:Ot||Xe},E6(We),{loaderData:Rt,errors:Bt})))}async function Mt(ae,pe,_e,Ee,Be,Xe){Xe===void 0&&(Xe={}),Qn();let ut=JH(pe,_e);if(Te({navigation:ut},{flushSync:Xe.flushSync===!0}),Be){let We=await ni(Ee,pe.pathname,ae.signal);if(We.type==="aborted")return{shortCircuited:!0};if(We.type==="error"){let{boundaryId:$e,error:Ot}=$r(pe.pathname,We);return{matches:We.partialMatches,pendingActionResult:[$e,{type:tr.error,error:Ot}]}}else if(We.matches)Ee=We.matches;else{let{notFoundMatches:$e,error:Ot,route:Rt}=fa(pe.pathname);return{matches:$e,pendingActionResult:[Rt.id,{type:tr.error,error:Ot}]}}}let De,Qe=ig(Ee,pe);if(!Qe.route.action&&!Qe.route.lazy)De={type:tr.error,error:ko(405,{method:ae.method,pathname:pe.pathname,routeId:Qe.route.id})};else if(De=(await Dr("action",k,ae,[Qe],Ee,null))[Qe.route.id],ae.signal.aborted)return{shortCircuited:!0};if(Gc(De)){let We;return Xe&&Xe.replace!=null?We=Xe.replace:We=P6(De.response.headers.get("Location"),new URL(ae.url),s)===k.location.pathname+k.location.search,await Zt(ae,De,!0,{submission:_e,replace:We}),{shortCircuited:!0}}if(su(De))throw ko(400,{type:"defer-action"});if(wi(De)){let We=Qf(Ee,Qe.route.id);return(Xe&&Xe.replace)!==!0&&(R=rn.Push),{matches:Ee,pendingActionResult:[We.route.id,De]}}return{matches:Ee,pendingActionResult:[Qe.route.id,De]}}async function gt(ae,pe,_e,Ee,Be,Xe,ut,De,Qe,We,$e){let Ot=Be||U_(pe,Xe),Rt=Xe||ut||N6(Ot),Bt=!H&&(!w.v7_partialHydration||!Qe);if(Ee){if(Bt){let At=Tt($e);Te(Tr({navigation:Ot},At!==void 0?{actionData:At}:{}),{flushSync:We})}let Ue=await ni(_e,pe.pathname,ae.signal);if(Ue.type==="aborted")return{shortCircuited:!0};if(Ue.type==="error"){let{boundaryId:At,error:at}=$r(pe.pathname,Ue);return{matches:Ue.partialMatches,loaderData:{},errors:{[At]:at}}}else if(Ue.matches)_e=Ue.matches;else{let{error:At,notFoundMatches:at,route:tt}=fa(pe.pathname);return{matches:at,loaderData:{},errors:{[tt.id]:At}}}}let yt=l||a,[dr,nr]=S6(e.history,k,_e,Rt,pe,w.v7_partialHydration&&Qe===!0,w.v7_skipActionErrorRevalidation,q,re,Q,ce,ve,se,yt,s,$e);if(Di(Ue=>!(_e&&_e.some(At=>At.route.id===Ue))||dr&&dr.some(At=>At.route.id===Ue)),te=++Y,dr.length===0&&nr.length===0){let Ue=da();return Oe(pe,Tr({matches:_e,loaderData:{},errors:$e&&wi($e[1])?{[$e[0]]:$e[1].error}:null},E6($e),Ue?{fetchers:new Map(k.fetchers)}:{}),{flushSync:We}),{shortCircuited:!0}}if(Bt){let Ue={};if(!Ee){Ue.navigation=Ot;let At=Tt($e);At!==void 0&&(Ue.actionData=At)}nr.length>0&&(Ue.fetchers=_t(nr)),Te(Ue,{flushSync:We})}nr.forEach(Ue=>{W.has(Ue.key)&&Qr(Ue.key),Ue.controller&&W.set(Ue.key,Ue.controller)});let Fn=()=>nr.forEach(Ue=>Qr(Ue.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,_e,dr,nr,ae);if(ae.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),nr.forEach(Ue=>W.delete(Ue.key));let Zn=Ey(Fr);if(Zn)return await Zt(ae,Zn.result,!0,{replace:De}),{shortCircuited:!0};if(Zn=Ey(jn),Zn)return se.add(Zn.key),await Zt(ae,Zn.result,!0,{replace:De}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=O6(k,_e,dr,Fr,$e,nr,jn,J);J.forEach((Ue,At)=>{Ue.subscribe(at=>{(at||Ue.done)&&J.delete(At)})}),w.v7_partialHydration&&Qe&&k.errors&&Object.entries(k.errors).filter(Ue=>{let[At]=Ue;return!dr.some(at=>at.route.id===At)}).forEach(Ue=>{let[At,at]=Ue;zn=Object.assign(zn||{},{[At]:at})});let un=da(),Zr=Sn(te),Nt=un||Zr||nr.length>0;return Tr({matches:_e,loaderData:ji,errors:zn},Nt?{fetchers:new Map(k.fetchers)}:{})}function Tt(ae){if(ae&&!wi(ae[1]))return{[ae[0]]:ae[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function _t(ae){return ae.forEach(pe=>{let _e=k.fetchers.get(pe.key),Ee=F0(void 0,_e?_e.data:void 0);k.fetchers.set(pe.key,Ee)}),new Map(k.fetchers)}function ir(ae,pe,_e,Ee){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(ae)&&Qr(ae);let Be=(Ee&&Ee.unstable_flushSync)===!0,Xe=l||a,ut=WS(k.location,k.matches,s,w.v7_prependBasename,_e,w.v7_relativeSplatPath,pe,Ee==null?void 0:Ee.relative),De=Uc(Xe,ut,s),Qe=bo(De,Xe,ut);if(Qe.active&&Qe.matches&&(De=Qe.matches),!De){rr(ae,pe,ko(404,{pathname:ut}),{flushSync:Be});return}let{path:We,submission:$e,error:Ot}=x6(w.v7_normalizeFormMethod,!0,ut,Ee);if(Ot){rr(ae,pe,Ot,{flushSync:Be});return}let Rt=ig(De,We);if(E=(Ee&&Ee.preventScrollReset)===!0,$e&&Ea($e.formMethod)){Wt(ae,pe,We,Rt,De,Qe.active,Be,$e);return}ve.set(ae,{routeId:pe,path:We}),Lt(ae,pe,We,Rt,De,Qe.active,Be,$e)}async function Wt(ae,pe,_e,Ee,Be,Xe,ut,De){Qn(),ve.delete(ae);function Qe(tt){if(!tt.route.action&&!tt.route.lazy){let xt=ko(405,{method:De.formMethod,pathname:_e,routeId:pe});return rr(ae,pe,xt,{flushSync:ut}),!0}return!1}if(!Xe&&Qe(Ee))return;let We=k.fetchers.get(ae);Ln(ae,eW(De,We),{flushSync:ut});let $e=new AbortController,Ot=Rf(e.history,_e,$e.signal,De);if(Xe){let tt=await ni(Be,_e,Ot.signal);if(tt.type==="aborted")return;if(tt.type==="error"){let{error:xt}=$r(_e,tt);rr(ae,pe,xt,{flushSync:ut});return}else if(tt.matches){if(Be=tt.matches,Ee=ig(Be,_e),Qe(Ee))return}else{rr(ae,pe,ko(404,{pathname:_e}),{flushSync:ut});return}}W.set(ae,$e);let Rt=Y,yt=(await Dr("action",k,Ot,[Ee],Be,ae))[Ee.route.id];if(Ot.signal.aborted){W.get(ae)===$e&&W.delete(ae);return}if(w.v7_fetcherPersist&&ce.has(ae)){if(Gc(yt)||wi(yt)){Ln(ae,Ks(void 0));return}}else{if(Gc(yt))if(W.delete(ae),te>Rt){Ln(ae,Ks(void 0));return}else return se.add(ae),Ln(ae,F0(De)),Zt(Ot,yt,!1,{fetcherSubmission:De});if(wi(yt)){rr(ae,pe,yt.error);return}}if(su(yt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,nr=Rf(e.history,dr,$e.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Ct(Fr,"Didn't find any matches after fetcher action");let jn=++Y;ne.set(ae,jn);let Zn=F0(De,yt.data);k.fetchers.set(ae,Zn);let[ji,zn]=S6(e.history,k,Fr,De,dr,!1,w.v7_skipActionErrorRevalidation,q,re,Q,ce,ve,se,Fn,s,[Ee.route.id,yt]);zn.filter(tt=>tt.key!==ae).forEach(tt=>{let xt=tt.key,cn=k.fetchers.get(xt),wr=F0(void 0,cn?cn.data:void 0);k.fetchers.set(xt,wr),W.has(xt)&&Qr(xt),tt.controller&&W.set(xt,tt.controller)}),Te({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(tt=>Qr(tt.key));$e.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:Nt}=await ln(k,Fr,ji,zn,nr);if($e.signal.aborted)return;$e.signal.removeEventListener("abort",un),ne.delete(ae),W.delete(ae),zn.forEach(tt=>W.delete(tt.key));let Ue=Ey(Zr);if(Ue)return Zt(nr,Ue.result,!1);if(Ue=Ey(Nt),Ue)return se.add(Ue.key),Zt(nr,Ue.result,!1);let{loaderData:At,errors:at}=O6(k,Fr,ji,Zr,void 0,zn,Nt,J);if(k.fetchers.has(ae)){let tt=Ks(yt.data);k.fetchers.set(ae,tt)}Sn(jn),k.navigation.state==="loading"&&jn>te?(Ct(R,"Expected pending action"),A&&A.abort(),Oe(k.navigation.location,{matches:Fr,loaderData:At,errors:at,fetchers:new Map(k.fetchers)})):(Te({errors:at,loaderData:k6(k.loaderData,At,Fr,at),fetchers:new Map(k.fetchers)}),q=!1)}async function Lt(ae,pe,_e,Ee,Be,Xe,ut,De){let Qe=k.fetchers.get(ae);Ln(ae,F0(De,Qe?Qe.data:void 0),{flushSync:ut});let We=new AbortController,$e=Rf(e.history,_e,We.signal);if(Xe){let yt=await ni(Be,_e,$e.signal);if(yt.type==="aborted")return;if(yt.type==="error"){let{error:dr}=$r(_e,yt);rr(ae,pe,dr,{flushSync:ut});return}else if(yt.matches)Be=yt.matches,Ee=ig(Be,_e);else{rr(ae,pe,ko(404,{pathname:_e}),{flushSync:ut});return}}W.set(ae,We);let Ot=Y,Bt=(await Dr("loader",k,$e,[Ee],Be,ae))[Ee.route.id];if(su(Bt)&&(Bt=await OP(Bt,$e.signal,!0)||Bt),W.get(ae)===We&&W.delete(ae),!$e.signal.aborted){if(ce.has(ae)){Ln(ae,Ks(void 0));return}if(Gc(Bt))if(te>Ot){Ln(ae,Ks(void 0));return}else{se.add(ae),await Zt($e,Bt,!1);return}if(wi(Bt)){rr(ae,pe,Bt.error);return}Ct(!su(Bt),"Unhandled fetcher deferred data"),Ln(ae,Ks(Bt.data))}}async function Zt(ae,pe,_e,Ee){let{submission:Be,fetcherSubmission:Xe,replace:ut}=Ee===void 0?{}:Ee;pe.response.headers.has("X-Remix-Revalidate")&&(q=!0);let De=pe.response.headers.get("Location");Ct(De,"Expected a Location header on the redirect Response"),De=P6(De,new URL(ae.url),s);let Qe=tv(k.location,De,{_isRedirect:!0});if(r){let yt=!1;if(pe.response.headers.has("X-Remix-Reload-Document"))yt=!0;else if(TP.test(De)){const dr=e.history.createURL(De);yt=dr.origin!==t.location.origin||lh(dr.pathname,s)==null}if(yt){ut?t.location.replace(De):t.location.assign(De);return}}A=null;let We=ut===!0||pe.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:$e,formAction:Ot,formEncType:Rt}=k.navigation;!Be&&!Xe&&$e&&Ot&&Rt&&(Be=N6(k.navigation));let Bt=Be||Xe;if(RH.has(pe.response.status)&&Bt&&Ea(Bt.formMethod))await it(We,Qe,{submission:Tr({},Bt,{formAction:De}),preventScrollReset:E,enableViewTransition:_e?F:void 0});else{let yt=U_(Qe,Be);await it(We,Qe,{overrideNavigation:yt,fetcherSubmission:Xe,preventScrollReset:E,enableViewTransition:_e?F:void 0})}}async function Dr(ae,pe,_e,Ee,Be,Xe){let ut,De={};try{ut=await BH(d,ae,pe,_e,Ee,Be,Xe,i,o)}catch(Qe){return Ee.forEach(We=>{De[We.route.id]={type:tr.error,error:Qe}}),De}for(let[Qe,We]of Object.entries(ut))if(qH(We)){let $e=We.result;De[Qe]={type:tr.redirect,response:WH($e,_e,Qe,Be,s,w.v7_relativeSplatPath)}}else De[Qe]=await HH(We);return De}async function ln(ae,pe,_e,Ee,Be){let Xe=ae.matches,ut=Dr("loader",ae,Be,_e,pe,null),De=Promise.all(Ee.map(async $e=>{if($e.matches&&$e.match&&$e.controller){let Rt=(await Dr("loader",ae,Rf(e.history,$e.path,$e.controller.signal),[$e.match],$e.matches,$e.key))[$e.match.route.id];return{[$e.key]:Rt}}else return Promise.resolve({[$e.key]:{type:tr.error,error:ko(404,{pathname:$e.path})}})})),Qe=await ut,We=(await De).reduce(($e,Ot)=>Object.assign($e,Ot),{});return await Promise.all([QH(pe,Qe,Be.signal,Xe,ae.loaderData),ZH(pe,We,Ee)]),{loaderResults:Qe,fetcherResults:We}}function Qn(){q=!0,re.push(...Di()),ve.forEach((ae,pe)=>{W.has(pe)&&(Q.add(pe),Qr(pe))})}function Ln(ae,pe,_e){_e===void 0&&(_e={}),k.fetchers.set(ae,pe),Te({fetchers:new Map(k.fetchers)},{flushSync:(_e&&_e.flushSync)===!0})}function rr(ae,pe,_e,Ee){Ee===void 0&&(Ee={});let Be=Qf(k.matches,pe);qt(ae),Te({errors:{[Be.route.id]:_e},fetchers:new Map(k.fetchers)},{flushSync:(Ee&&Ee.flushSync)===!0})}function mo(ae){return w.v7_fetcherPersist&&(ye.set(ae,(ye.get(ae)||0)+1),ce.has(ae)&&ce.delete(ae)),k.fetchers.get(ae)||NH}function qt(ae){let pe=k.fetchers.get(ae);W.has(ae)&&!(pe&&pe.state==="loading"&&ne.has(ae))&&Qr(ae),ve.delete(ae),ne.delete(ae),se.delete(ae),ce.delete(ae),Q.delete(ae),k.fetchers.delete(ae)}function yo(ae){if(w.v7_fetcherPersist){let pe=(ye.get(ae)||0)-1;pe<=0?(ye.delete(ae),ce.add(ae)):ye.set(ae,pe)}else qt(ae);Te({fetchers:new Map(k.fetchers)})}function Qr(ae){let pe=W.get(ae);Ct(pe,"Expected fetch controller: "+ae),pe.abort(),W.delete(ae)}function Cl(ae){for(let pe of ae){let _e=mo(pe),Ee=Ks(_e.data);k.fetchers.set(pe,Ee)}}function da(){let ae=[],pe=!1;for(let _e of se){let Ee=k.fetchers.get(_e);Ct(Ee,"Expected fetcher: "+_e),Ee.state==="loading"&&(se.delete(_e),ae.push(_e),pe=!0)}return Cl(ae),pe}function Sn(ae){let pe=[];for(let[_e,Ee]of ne)if(Ee0}function Pl(ae,pe){let _e=k.blockers.get(ae)||D0;return oe.get(ae)!==pe&&oe.set(ae,pe),_e}function Ka(ae){k.blockers.delete(ae),oe.delete(ae)}function sn(ae,pe){let _e=k.blockers.get(ae)||D0;Ct(_e.state==="unblocked"&&pe.state==="blocked"||_e.state==="blocked"&&pe.state==="blocked"||_e.state==="blocked"&&pe.state==="proceeding"||_e.state==="blocked"&&pe.state==="unblocked"||_e.state==="proceeding"&&pe.state==="unblocked","Invalid blocker state transition: "+_e.state+" -> "+pe.state);let Ee=new Map(k.blockers);Ee.set(ae,pe),Te({blockers:Ee})}function Li(ae){let{currentLocation:pe,nextLocation:_e,historyAction:Ee}=ae;if(oe.size===0)return;oe.size>1&&Fp(!1,"A router only supports one blocker at a time");let Be=Array.from(oe.entries()),[Xe,ut]=Be[Be.length-1],De=k.blockers.get(Xe);if(!(De&&De.state==="proceeding")&&ut({currentLocation:pe,nextLocation:_e,historyAction:Ee}))return Xe}function fa(ae){let pe=ko(404,{pathname:ae}),_e=l||a,{matches:Ee,route:Be}=M6(_e);return Di(),{notFoundMatches:Ee,route:Be,error:pe}}function $r(ae,pe){return{boundaryId:Qf(pe.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:ae,message:pe.error!=null&&"message"in pe.error?pe.error:String(pe.error)})}}function Di(ae){let pe=[];return J.forEach((_e,Ee)=>{(!ae||ae(Ee))&&(_e.cancel(),pe.push(Ee),J.delete(Ee))}),pe}function Ts(ae,pe,_e){if(C=ae,f=pe,g=_e||null,!c&&k.navigation===B_){c=!0;let Ee=Fi(k.location,k.matches);Ee!=null&&Te({restoreScrollPosition:Ee})}return()=>{C=null,f=null,g=null}}function pa(ae,pe){return g&&g(ae,pe.map(Ee=>uH(Ee,k.loaderData)))||ae.key}function Dn(ae,pe){if(C&&f){let _e=pa(ae,pe);C[_e]=f()}}function Fi(ae,pe){if(C){let _e=pa(ae,pe),Ee=C[_e];if(typeof Ee=="number")return Ee}return null}function bo(ae,pe,_e){if(v){if(y.has(_e))return{active:!1,matches:ae};if(ae){if(Object.keys(ae[0].params).length>0)return{active:!0,matches:Sb(pe,_e,s,!0)}}else return{active:!0,matches:Sb(pe,_e,s,!0)||[]}}return{active:!1,matches:null}}async function ni(ae,pe,_e){let Ee=ae;for(;;){let Be=l==null,Xe=l||a;try{await jH(v,pe,Ee,Xe,i,o,ue,_e)}catch(Qe){return{type:"error",error:Qe,partialMatches:Ee}}finally{Be&&(a=[...a])}if(_e.aborted)return{type:"aborted"};let ut=Uc(Xe,pe,s);if(ut)return ha(pe,y),{type:"success",matches:ut};let De=Sb(Xe,pe,s,!0);if(!De||Ee.length===De.length&&Ee.every((Qe,We)=>Qe.route.id===De[We].route.id))return ha(pe,y),{type:"success",matches:null};Ee=De}}function ha(ae,pe){if(pe.size>=P){let _e=pe.values().next().value;pe.delete(_e)}pe.add(ae)}function Os(ae){i={},l=rv(ae,o,void 0,i)}function ga(ae,pe){let _e=l==null;VR(ae,pe,l||a,i,o),_e&&(a=[...a],Te({}))}return T={get basename(){return s},get future(){return w},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:xe,enableScrollRestoration:Ts,navigate:je,fetch:ir,revalidate:Ye,createHref:ae=>e.history.createHref(ae),encodeLocation:ae=>e.history.encodeLocation(ae),getFetcher:mo,deleteFetcher:yo,dispose:Re,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Os},T}function LH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function WS(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let w of t)if(s.push(w),w.route.id===a){d=w;break}}else s=t,d=t[t.length-1];let v=PP(o||".",CP(s,i),lh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!kP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function x6(e,t,r,n){if(!n||!LH(n))return{path:r};if(n.formMethod&&!XH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=BR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((b,P)=>{let[y,C]=P;return""+b+y+"="+C+` -`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Ct(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=$S(n.formData),d=n.formData;else if(n.body instanceof FormData)s=$S(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=T6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=T6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let w=zu(r);return t&&w.search&&kP(w.search)&&s.append("index",""),w.search="?"+s,{path:ad(w),submission:v}}function DH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function S6(e,t,r,n,o,i,a,l,s,d,v,w,S,b,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,g=e.createURL(t.location),f=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,h=c?DH(r,c):r,m=y?y[1].statusCode:void 0,_=a&&m&&m>=400,T=h.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(FH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return C6(R,Tr({currentUrl:g,currentParams:F.params,nextUrl:f,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l||g.pathname+g.search===f.pathname+f.search||g.search!==f.search||zR(F,V)}))}),k=[];return w.forEach((R,E)=>{if(i||!r.some(H=>H.route.id===R.routeId)||v.has(E))return;let A=Uc(b,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ig(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=C6(V,Tr({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:f,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function FH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function zR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function C6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function jH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,w)=>{l.aborted||VR(v,w,n,o,i)}}),a.set(s,d)),d&&KH(d)&&await d}finally{a.delete(s)}}function VR(e,t,r,n,o){if(e){var i;let a=n[e];Ct(a,"No route found to patch children into: routeId = "+e);let l=rv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=rv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function zH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Ct(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Fp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!lH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function VH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function BH(e,t,r,n,o,i,a,l,s,d){let v=i.map(b=>b.route.lazy?zH(b.route,s,l):void 0),w=i.map((b,P)=>{let y=v[P],C=o.some(f=>f.route.id===b.route.id);return Tr({},b,{shouldLoad:C,resolve:async f=>(f&&n.method==="GET"&&(b.route.lazy||b.route.loader)&&(C=!0),C?UH(t,n,b,y,f,d):Promise.resolve({type:tr.data,result:void 0}))})}),S=await e({matches:w,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function UH(e,t,r,n,o,i){let a,l,s=d=>{let v,w=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),b=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([b,w])};try{let d=r.route[e];if(n)if(d){let v,[w]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=w}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),w=v.pathname+v.search;throw ko(405,{method:t.method,pathname:w,routeId:r.route.id})}else return{type:tr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),w=v.pathname+v.search;throw ko(404,{pathname:w})}Ct(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:tr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function HH(e){let{result:t,type:r}=e;if(UR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:tr.error,error:v}}return r===tr.error?{type:tr.error,error:new P1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:tr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===tr.error){if(R6(t)){var n;if(t.data instanceof Error){var o;return{type:tr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new P1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:tr.error,error:t,statusCode:Bv(t)?t.status:void 0}}if(YH(t)){var i,a;return{type:tr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(R6(t)){var l,s;return{type:tr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:tr.data,data:t}}function WH(e,t,r,n,o,i){let a=e.headers.get("Location");if(Ct(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!TP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=WS(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function P6(e,t,r){if(TP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=lh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(BR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=$S(n.formData):i.body=n.formData}return new Request(o,i)}function $S(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function T6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function $H(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(w=>{if(!(w.route.id in t))return;let S=w.route.id,b=t[S];if(Ct(!Gc(b),"Cannot handle redirect results in processLoaderData"),wi(b)){let P=b.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Qf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Bv(b.error)?b.error.status:500),b.headers&&(d[S]=b.headers)}else su(b)?(n.set(S,b.deferredData),i[S]=b.deferredData.data,b.statusCode!=null&&b.statusCode!==200&&!s&&(l=b.statusCode),b.headers&&(d[S]=b.headers)):(i[S]=b.data,b.statusCode&&b.statusCode!==200&&!s&&(l=b.statusCode),b.headers&&(d[S]=b.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function O6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=$H(t,n,o,l);return i.forEach(v=>{let{key:w,match:S,controller:b}=v,P=a[w];if(Ct(P,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(wi(P)){let y=Qf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(w)}else if(Gc(P))Ct(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Ct(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(w,y)}}),{loaderData:s,errors:d}}function k6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function E6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Qf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function M6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new P1(e||500,l,new Error(s),!0)}function Ey(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function BR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function GH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function KH(e){return typeof e=="object"&&e!=null&&"then"in e}function qH(e){return UR(e.result)&&MH.has(e.result.status)}function su(e){return e.type===tr.deferred}function wi(e){return e.type===tr.error}function Gc(e){return(e&&e.type)===tr.redirect}function R6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function YH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function UR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XH(e){return EH.has(e.toLowerCase())}function Ea(e){return OH.has(e.toLowerCase())}async function QH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),w=v!=null&&!zR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&w&&await OP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function ZH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Ct(a,"Expected an AbortController for revalidating fetcher deferred result"),await OP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function OP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:tr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:tr.error,error:o}}return{type:tr.data,data:e.deferredData.data}}}function kP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ig(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&kP(r||""))return e[e.length-1];let n=DR(e);return n[n.length-1]}function N6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function U_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function JH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function F0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eW(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tW(e,t){try{let r=e.sessionStorage.getItem(jR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function rW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(jR,JSON.stringify(r))}catch(n){Fp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function oH(){return Math.random().toString(36).substr(2,8)}function b6(e,t){return{usr:e.state,key:e.key,idx:t}}function tv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||oH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function iH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function w(){l=rn.Pop;let C=v(),g=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:g})}function S(C,g){l=rn.Push;let h=tv(y.location,C,g);d=v()+1;let c=b6(h,d),p=y.createHref(h);try{a.pushState(c,"",p)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(p)}i&&s&&s({action:l,location:y.location,delta:1})}function _(C,g){l=rn.Replace;let h=tv(y.location,C,g);d=v();let c=b6(h,d),p=y.createHref(h);a.replaceState(c,"",p),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof C=="string"?C:ad(C);return h=h.replace(/ $/,"%20"),Pt(g,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,g)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(y6,w),s=C,()=>{o.removeEventListener(y6,w),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let g=P(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:S,replace:_,go(C){return a.go(C)}};return y}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const aH=new Set(["lazy","caseSensitive","path","id","index","children"]);function lH(e){return e.index===!0}function rv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pt(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),lH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=rv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Sb(e,t,r,!1)}function Sb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=lh(o.pathname||"/",r);if(i==null)return null;let a=AR(e);uH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Pt(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),AR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:vH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of IR(i.path))o(i,a,s)}),t}function IR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=IR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function uH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:mH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const cH=/^:[\w-]+$/,dH=3,fH=2,pH=1,hH=10,gH=-2,w6=e=>e==="*";function vH(e,t){let r=e.split("/"),n=r.length;return r.some(w6)&&(n+=gH),t&&(n+=fH),r.filter(o=>!w6(o)).reduce((o,i)=>o+(cH.test(i)?dH:i===""?pH:hH),n)}function mH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function yH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:_}=v;if(S==="*"){let y=l[w]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[w];return _&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function bH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Fp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function wH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function _H(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:xH(r,t):t,search:CH(n),hash:PH(o)}}function xH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function V_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function LR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function CP(e,t){let r=LR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function PP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Pt(!o.pathname||!o.pathname.includes("?"),V_("?","pathname","search",o)),Pt(!o.pathname||!o.pathname.includes("#"),V_("#","pathname","hash",o)),Pt(!o.search||!o.search.includes("#"),V_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let w=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),w-=1;o.pathname=S.join("/")}l=w>=0?t[w]:"/"}let s=_H(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),SH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class P1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Bv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const DR=["post","put","patch","delete"],TH=new Set(DR),OH=["get",...DR],kH=new Set(OH),EH=new Set([301,302,303,307,308]),MH=new Set([307,308]),B_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},RH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},D0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},TP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),FR="remix-router-transitions";function AH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ae=e.detectErrorBoundary;o=pe=>({hasErrorBoundary:ae(pe)})}else o=NH;let i={},a=rv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||zH,v=e.unstable_patchRoutesOnNavigation,w=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,_=new Set,P=1e3,y=new Set,C=null,g=null,h=null,c=e.hydrationData!=null,p=Uc(a,e.history.location,s),m=null;if(p==null&&!v){let ae=ko(404,{pathname:e.history.location.pathname}),{matches:pe,route:xe}=M6(a);p=pe,m={[xe.id]:ae}}p&&!e.hydrationData&&bo(p,a,e.history.location.pathname).active&&(p=null);let b;if(p)if(p.some(ae=>ae.route.lazy))b=!1;else if(!p.some(ae=>ae.route.loader))b=!0;else if(w.v7_partialHydration){let ae=e.hydrationData?e.hydrationData.loaderData:null,pe=e.hydrationData?e.hydrationData.errors:null,xe=Oe=>Oe.route.loader?typeof Oe.route.loader=="function"&&Oe.route.loader.hydrate===!0?!1:ae&&ae[Oe.route.id]!==void 0||pe&&pe[Oe.route.id]!==void 0:!0;if(pe){let Oe=p.findIndex(Ue=>pe[Ue.route.id]!==void 0);b=p.slice(0,Oe+1).every(xe)}else b=p.every(xe)}else b=e.hydrationData!=null;else if(b=!1,p=[],w.v7_partialHydration){let ae=bo(null,a,e.history.location.pathname);ae.active&&ae.matches&&(p=ae.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:p,initialized:b,navigation:B_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,H=!1,Y=!1,re=[],Q=new Set,W=new Map,X=0,te=-1,ne=new Map,se=new Set,ve=new Map,we=new Map,ce=new Set,J=new Map,oe=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(ae=>{let{action:pe,location:xe,delta:Oe}=ae;if(Se){Se(),Se=void 0;return}Fp(oe.size===0||Oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=Li({currentLocation:k.location,nextLocation:xe,historyAction:pe});if(Ue&&Oe!=null){let Qe=new Promise(ut=>{Se=ut});e.history.go(Oe*-1),sn(Ue,{state:"blocked",location:xe,proceed(){sn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Qe.then(()=>e.history.go(Oe))},reset(){let ut=new Map(k.blockers);ut.set(Ue,D0),Re({blockers:ut})}});return}return Ye(pe,xe)}),r){eW(t,V);let ae=()=>tW(t,V);t.addEventListener("pagehide",ae),B=()=>t.removeEventListener("pagehide",ae)}return k.initialized||Ye(rn.Pop,k.location,{initialHydration:!0}),T}function Me(){S&&S(),B&&B(),_.clear(),A&&A.abort(),k.fetchers.forEach((ae,pe)=>Yt(pe)),k.blockers.forEach((ae,pe)=>Ka(pe))}function Ie(ae){return _.add(ae),()=>_.delete(ae)}function Re(ae,pe){pe===void 0&&(pe={}),k=Tr({},k,ae);let xe=[],Oe=[];w.v7_fetcherPersist&&k.fetchers.forEach((Ue,Qe)=>{Ue.state==="idle"&&(ce.has(Qe)?Oe.push(Qe):xe.push(Qe))}),[..._].forEach(Ue=>Ue(k,{deletedFetchers:Oe,unstable_viewTransitionOpts:pe.viewTransitionOpts,unstable_flushSync:pe.flushSync===!0})),w.v7_fetcherPersist&&(xe.forEach(Ue=>k.fetchers.delete(Ue)),Oe.forEach(Ue=>Yt(Ue)))}function ye(ae,pe,xe){var Oe,Ue;let{flushSync:Qe}=xe===void 0?{}:xe,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Oe=ae.state)==null?void 0:Oe._isRedirect)!==!0,Fe;pe.actionData?Object.keys(pe.actionData).length>0?Fe=pe.actionData:Fe=null:ut?Fe=k.actionData:Fe=null;let Ze=pe.loaderData?k6(k.loaderData,pe.loaderData,pe.matches||[],pe.errors):k.loaderData,$e=k.blockers;$e.size>0&&($e=new Map($e),$e.forEach((Nt,Ut)=>$e.set(Ut,D0)));let Ge=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Ue=ae.state)==null?void 0:Ue._isRedirect)!==!0;l&&(a=l,l=void 0),H||R===rn.Pop||(R===rn.Push?e.history.push(ae,ae.state):R===rn.Replace&&e.history.replace(ae,ae.state));let kt;if(R===rn.Pop){let Nt=V.get(k.location.pathname);Nt&&Nt.has(ae.pathname)?kt={currentLocation:k.location,nextLocation:ae}:V.has(ae.pathname)&&(kt={currentLocation:ae,nextLocation:k.location})}else if(F){let Nt=V.get(k.location.pathname);Nt?Nt.add(ae.pathname):(Nt=new Set([ae.pathname]),V.set(k.location.pathname,Nt)),kt={currentLocation:k.location,nextLocation:ae}}Re(Tr({},pe,{actionData:Fe,loaderData:Ze,historyAction:R,location:ae,initialized:!0,navigation:B_,revalidation:"idle",restoreScrollPosition:Fi(ae,pe.matches||k.matches),preventScrollReset:Ge,blockers:$e}),{viewTransitionOpts:kt,flushSync:Qe===!0}),R=rn.Pop,E=!1,F=!1,H=!1,Y=!1,re=[]}async function ke(ae,pe){if(typeof ae=="number"){e.history.go(ae);return}let xe=WS(k.location,k.matches,s,w.v7_prependBasename,ae,w.v7_relativeSplatPath,pe==null?void 0:pe.fromRouteId,pe==null?void 0:pe.relative),{path:Oe,submission:Ue,error:Qe}=x6(w.v7_normalizeFormMethod,!1,xe,pe),ut=k.location,Fe=tv(k.location,Oe,pe&&pe.state);Fe=Tr({},Fe,e.history.encodeLocation(Fe));let Ze=pe&&pe.replace!=null?pe.replace:void 0,$e=rn.Push;Ze===!0?$e=rn.Replace:Ze===!1||Ue!=null&&Ea(Ue.formMethod)&&Ue.formAction===k.location.pathname+k.location.search&&($e=rn.Replace);let Ge=pe&&"preventScrollReset"in pe?pe.preventScrollReset===!0:void 0,kt=(pe&&pe.unstable_flushSync)===!0,Nt=Li({currentLocation:ut,nextLocation:Fe,historyAction:$e});if(Nt){sn(Nt,{state:"blocked",location:Fe,proceed(){sn(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),ke(ae,pe)},reset(){let Ut=new Map(k.blockers);Ut.set(Nt,D0),Re({blockers:Ut})}});return}return await Ye($e,Fe,{submission:Ue,pendingError:Qe,preventScrollReset:Ge,replace:pe&&pe.replace,enableViewTransition:pe&&pe.unstable_viewTransition,flushSync:kt})}function ze(){if(Qn(),Re({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Ye(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Ye(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function Ye(ae,pe,xe){A&&A.abort(),A=null,R=ae,H=(xe&&xe.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(xe&&xe.preventScrollReset)===!0,F=(xe&&xe.enableViewTransition)===!0;let Oe=l||a,Ue=xe&&xe.overrideNavigation,Qe=Uc(Oe,pe,s),ut=(xe&&xe.flushSync)===!0,Fe=bo(Qe,Oe,pe.pathname);if(Fe.active&&Fe.matches&&(Qe=Fe.matches),!Qe){let{error:bt,notFoundMatches:dr,route:or}=fa(pe.pathname);ye(pe,{matches:dr,loaderData:{},errors:{[or.id]:bt}},{flushSync:ut});return}if(k.initialized&&!Y&&$H(k.location,pe)&&!(xe&&xe.submission&&Ea(xe.submission.formMethod))){ye(pe,{matches:Qe},{flushSync:ut});return}A=new AbortController;let Ze=Rf(e.history,pe,A.signal,xe&&xe.submission),$e;if(xe&&xe.pendingError)$e=[Qf(Qe).route.id,{type:rr.error,error:xe.pendingError}];else if(xe&&xe.submission&&Ea(xe.submission.formMethod)){let bt=await Mt(Ze,pe,xe.submission,Qe,Fe.active,{replace:xe.replace,flushSync:ut});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[dr,or]=bt.pendingActionResult;if(wi(or)&&Bv(or.error)&&or.error.status===404){A=null,ye(pe,{matches:bt.matches,loaderData:{},errors:{[dr]:or.error}});return}}Qe=bt.matches||Qe,$e=bt.pendingActionResult,Ue=U_(pe,xe.submission),ut=!1,Fe.active=!1,Ze=Rf(e.history,Ze.url,Ze.signal)}let{shortCircuited:Ge,matches:kt,loaderData:Nt,errors:Ut}=await gt(Ze,pe,Qe,Fe.active,Ue,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,ut,$e);Ge||(A=null,ye(pe,Tr({matches:kt||Qe},E6($e),{loaderData:Nt,errors:Ut})))}async function Mt(ae,pe,xe,Oe,Ue,Qe){Qe===void 0&&(Qe={}),Qn();let ut=ZH(pe,xe);if(Re({navigation:ut},{flushSync:Qe.flushSync===!0}),Ue){let $e=await ni(Oe,pe.pathname,ae.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let{boundaryId:Ge,error:kt}=$r(pe.pathname,$e);return{matches:$e.partialMatches,pendingActionResult:[Ge,{type:rr.error,error:kt}]}}else if($e.matches)Oe=$e.matches;else{let{notFoundMatches:Ge,error:kt,route:Nt}=fa(pe.pathname);return{matches:Ge,pendingActionResult:[Nt.id,{type:rr.error,error:kt}]}}}let Fe,Ze=ig(Oe,pe);if(!Ze.route.action&&!Ze.route.lazy)Fe={type:rr.error,error:ko(405,{method:ae.method,pathname:pe.pathname,routeId:Ze.route.id})};else if(Fe=(await Dr("action",k,ae,[Ze],Oe,null))[Ze.route.id],ae.signal.aborted)return{shortCircuited:!0};if(Gc(Fe)){let $e;return Qe&&Qe.replace!=null?$e=Qe.replace:$e=P6(Fe.response.headers.get("Location"),new URL(ae.url),s)===k.location.pathname+k.location.search,await Jt(ae,Fe,!0,{submission:xe,replace:$e}),{shortCircuited:!0}}if(su(Fe))throw ko(400,{type:"defer-action"});if(wi(Fe)){let $e=Qf(Oe,Ze.route.id);return(Qe&&Qe.replace)!==!0&&(R=rn.Push),{matches:Oe,pendingActionResult:[$e.route.id,Fe]}}return{matches:Oe,pendingActionResult:[Ze.route.id,Fe]}}async function gt(ae,pe,xe,Oe,Ue,Qe,ut,Fe,Ze,$e,Ge){let kt=Ue||U_(pe,Qe),Nt=Qe||ut||N6(kt),Ut=!H&&(!w.v7_partialHydration||!Ze);if(Oe){if(Ut){let It=xt(Ge);Re(Tr({navigation:kt},It!==void 0?{actionData:It}:{}),{flushSync:$e})}let He=await ni(xe,pe.pathname,ae.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let{boundaryId:It,error:at}=$r(pe.pathname,He);return{matches:He.partialMatches,loaderData:{},errors:{[It]:at}}}else if(He.matches)xe=He.matches;else{let{error:It,notFoundMatches:at,route:rt}=fa(pe.pathname);return{matches:at,loaderData:{},errors:{[rt.id]:It}}}}let bt=l||a,[dr,or]=S6(e.history,k,xe,Nt,pe,w.v7_partialHydration&&Ze===!0,w.v7_skipActionErrorRevalidation,Y,re,Q,ce,ve,se,bt,s,Ge);if(Di(He=>!(xe&&xe.some(It=>It.route.id===He))||dr&&dr.some(It=>It.route.id===He)),te=++X,dr.length===0&&or.length===0){let He=da();return ye(pe,Tr({matches:xe,loaderData:{},errors:Ge&&wi(Ge[1])?{[Ge[0]]:Ge[1].error}:null},E6(Ge),He?{fetchers:new Map(k.fetchers)}:{}),{flushSync:$e}),{shortCircuited:!0}}if(Ut){let He={};if(!Oe){He.navigation=kt;let It=xt(Ge);It!==void 0&&(He.actionData=It)}or.length>0&&(He.fetchers=zt(or)),Re(He,{flushSync:$e})}or.forEach(He=>{W.has(He.key)&&Qr(He.key),He.controller&&W.set(He.key,He.controller)});let Fn=()=>or.forEach(He=>Qr(He.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,xe,dr,or,ae);if(ae.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),or.forEach(He=>W.delete(He.key));let Zn=Ey(Fr);if(Zn)return await Jt(ae,Zn.result,!0,{replace:Fe}),{shortCircuited:!0};if(Zn=Ey(jn),Zn)return se.add(Zn.key),await Jt(ae,Zn.result,!0,{replace:Fe}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=O6(k,xe,dr,Fr,Ge,or,jn,J);J.forEach((He,It)=>{He.subscribe(at=>{(at||He.done)&&J.delete(It)})}),w.v7_partialHydration&&Ze&&k.errors&&Object.entries(k.errors).filter(He=>{let[It]=He;return!dr.some(at=>at.route.id===It)}).forEach(He=>{let[It,at]=He;zn=Object.assign(zn||{},{[It]:at})});let un=da(),Zr=Sn(te),At=un||Zr||or.length>0;return Tr({matches:xe,loaderData:ji,errors:zn},At?{fetchers:new Map(k.fetchers)}:{})}function xt(ae){if(ae&&!wi(ae[1]))return{[ae[0]]:ae[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function zt(ae){return ae.forEach(pe=>{let xe=k.fetchers.get(pe.key),Oe=F0(void 0,xe?xe.data:void 0);k.fetchers.set(pe.key,Oe)}),new Map(k.fetchers)}function Ht(ae,pe,xe,Oe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(ae)&&Qr(ae);let Ue=(Oe&&Oe.unstable_flushSync)===!0,Qe=l||a,ut=WS(k.location,k.matches,s,w.v7_prependBasename,xe,w.v7_relativeSplatPath,pe,Oe==null?void 0:Oe.relative),Fe=Uc(Qe,ut,s),Ze=bo(Fe,Qe,ut);if(Ze.active&&Ze.matches&&(Fe=Ze.matches),!Fe){nr(ae,pe,ko(404,{pathname:ut}),{flushSync:Ue});return}let{path:$e,submission:Ge,error:kt}=x6(w.v7_normalizeFormMethod,!0,ut,Oe);if(kt){nr(ae,pe,kt,{flushSync:Ue});return}let Nt=ig(Fe,$e);if(E=(Oe&&Oe.preventScrollReset)===!0,Ge&&Ea(Ge.formMethod)){mt(ae,pe,$e,Nt,Fe,Ze.active,Ue,Ge);return}ve.set(ae,{routeId:pe,path:$e}),Ot(ae,pe,$e,Nt,Fe,Ze.active,Ue,Ge)}async function mt(ae,pe,xe,Oe,Ue,Qe,ut,Fe){Qn(),ve.delete(ae);function Ze(rt){if(!rt.route.action&&!rt.route.lazy){let St=ko(405,{method:Fe.formMethod,pathname:xe,routeId:pe});return nr(ae,pe,St,{flushSync:ut}),!0}return!1}if(!Qe&&Ze(Oe))return;let $e=k.fetchers.get(ae);Ln(ae,JH(Fe,$e),{flushSync:ut});let Ge=new AbortController,kt=Rf(e.history,xe,Ge.signal,Fe);if(Qe){let rt=await ni(Ue,xe,kt.signal);if(rt.type==="aborted")return;if(rt.type==="error"){let{error:St}=$r(xe,rt);nr(ae,pe,St,{flushSync:ut});return}else if(rt.matches){if(Ue=rt.matches,Oe=ig(Ue,xe),Ze(Oe))return}else{nr(ae,pe,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(ae,Ge);let Nt=X,bt=(await Dr("action",k,kt,[Oe],Ue,ae))[Oe.route.id];if(kt.signal.aborted){W.get(ae)===Ge&&W.delete(ae);return}if(w.v7_fetcherPersist&&ce.has(ae)){if(Gc(bt)||wi(bt)){Ln(ae,Ks(void 0));return}}else{if(Gc(bt))if(W.delete(ae),te>Nt){Ln(ae,Ks(void 0));return}else return se.add(ae),Ln(ae,F0(Fe)),Jt(kt,bt,!1,{fetcherSubmission:Fe});if(wi(bt)){nr(ae,pe,bt.error);return}}if(su(bt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,or=Rf(e.history,dr,Ge.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Pt(Fr,"Didn't find any matches after fetcher action");let jn=++X;ne.set(ae,jn);let Zn=F0(Fe,bt.data);k.fetchers.set(ae,Zn);let[ji,zn]=S6(e.history,k,Fr,Fe,dr,!1,w.v7_skipActionErrorRevalidation,Y,re,Q,ce,ve,se,Fn,s,[Oe.route.id,bt]);zn.filter(rt=>rt.key!==ae).forEach(rt=>{let St=rt.key,cn=k.fetchers.get(St),wr=F0(void 0,cn?cn.data:void 0);k.fetchers.set(St,wr),W.has(St)&&Qr(St),rt.controller&&W.set(St,rt.controller)}),Re({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(rt=>Qr(rt.key));Ge.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:At}=await ln(k,Fr,ji,zn,or);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",un),ne.delete(ae),W.delete(ae),zn.forEach(rt=>W.delete(rt.key));let He=Ey(Zr);if(He)return Jt(or,He.result,!1);if(He=Ey(At),He)return se.add(He.key),Jt(or,He.result,!1);let{loaderData:It,errors:at}=O6(k,Fr,ji,Zr,void 0,zn,At,J);if(k.fetchers.has(ae)){let rt=Ks(bt.data);k.fetchers.set(ae,rt)}Sn(jn),k.navigation.state==="loading"&&jn>te?(Pt(R,"Expected pending action"),A&&A.abort(),ye(k.navigation.location,{matches:Fr,loaderData:It,errors:at,fetchers:new Map(k.fetchers)})):(Re({errors:at,loaderData:k6(k.loaderData,It,Fr,at),fetchers:new Map(k.fetchers)}),Y=!1)}async function Ot(ae,pe,xe,Oe,Ue,Qe,ut,Fe){let Ze=k.fetchers.get(ae);Ln(ae,F0(Fe,Ze?Ze.data:void 0),{flushSync:ut});let $e=new AbortController,Ge=Rf(e.history,xe,$e.signal);if(Qe){let bt=await ni(Ue,xe,Ge.signal);if(bt.type==="aborted")return;if(bt.type==="error"){let{error:dr}=$r(xe,bt);nr(ae,pe,dr,{flushSync:ut});return}else if(bt.matches)Ue=bt.matches,Oe=ig(Ue,xe);else{nr(ae,pe,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(ae,$e);let kt=X,Ut=(await Dr("loader",k,Ge,[Oe],Ue,ae))[Oe.route.id];if(su(Ut)&&(Ut=await OP(Ut,Ge.signal,!0)||Ut),W.get(ae)===$e&&W.delete(ae),!Ge.signal.aborted){if(ce.has(ae)){Ln(ae,Ks(void 0));return}if(Gc(Ut))if(te>kt){Ln(ae,Ks(void 0));return}else{se.add(ae),await Jt(Ge,Ut,!1);return}if(wi(Ut)){nr(ae,pe,Ut.error);return}Pt(!su(Ut),"Unhandled fetcher deferred data"),Ln(ae,Ks(Ut.data))}}async function Jt(ae,pe,xe,Oe){let{submission:Ue,fetcherSubmission:Qe,replace:ut}=Oe===void 0?{}:Oe;pe.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let Fe=pe.response.headers.get("Location");Pt(Fe,"Expected a Location header on the redirect Response"),Fe=P6(Fe,new URL(ae.url),s);let Ze=tv(k.location,Fe,{_isRedirect:!0});if(r){let bt=!1;if(pe.response.headers.has("X-Remix-Reload-Document"))bt=!0;else if(TP.test(Fe)){const dr=e.history.createURL(Fe);bt=dr.origin!==t.location.origin||lh(dr.pathname,s)==null}if(bt){ut?t.location.replace(Fe):t.location.assign(Fe);return}}A=null;let $e=ut===!0||pe.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:Ge,formAction:kt,formEncType:Nt}=k.navigation;!Ue&&!Qe&&Ge&&kt&&Nt&&(Ue=N6(k.navigation));let Ut=Ue||Qe;if(MH.has(pe.response.status)&&Ut&&Ea(Ut.formMethod))await Ye($e,Ze,{submission:Tr({},Ut,{formAction:Fe}),preventScrollReset:E,enableViewTransition:xe?F:void 0});else{let bt=U_(Ze,Ue);await Ye($e,Ze,{overrideNavigation:bt,fetcherSubmission:Qe,preventScrollReset:E,enableViewTransition:xe?F:void 0})}}async function Dr(ae,pe,xe,Oe,Ue,Qe){let ut,Fe={};try{ut=await VH(d,ae,pe,xe,Oe,Ue,Qe,i,o)}catch(Ze){return Oe.forEach($e=>{Fe[$e.route.id]={type:rr.error,error:Ze}}),Fe}for(let[Ze,$e]of Object.entries(ut))if(KH($e)){let Ge=$e.result;Fe[Ze]={type:rr.redirect,response:HH(Ge,xe,Ze,Ue,s,w.v7_relativeSplatPath)}}else Fe[Ze]=await UH($e);return Fe}async function ln(ae,pe,xe,Oe,Ue){let Qe=ae.matches,ut=Dr("loader",ae,Ue,xe,pe,null),Fe=Promise.all(Oe.map(async Ge=>{if(Ge.matches&&Ge.match&&Ge.controller){let Nt=(await Dr("loader",ae,Rf(e.history,Ge.path,Ge.controller.signal),[Ge.match],Ge.matches,Ge.key))[Ge.match.route.id];return{[Ge.key]:Nt}}else return Promise.resolve({[Ge.key]:{type:rr.error,error:ko(404,{pathname:Ge.path})}})})),Ze=await ut,$e=(await Fe).reduce((Ge,kt)=>Object.assign(Ge,kt),{});return await Promise.all([XH(pe,Ze,Ue.signal,Qe,ae.loaderData),QH(pe,$e,Oe)]),{loaderResults:Ze,fetcherResults:$e}}function Qn(){Y=!0,re.push(...Di()),ve.forEach((ae,pe)=>{W.has(pe)&&(Q.add(pe),Qr(pe))})}function Ln(ae,pe,xe){xe===void 0&&(xe={}),k.fetchers.set(ae,pe),Re({fetchers:new Map(k.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function nr(ae,pe,xe,Oe){Oe===void 0&&(Oe={});let Ue=Qf(k.matches,pe);Yt(ae),Re({errors:{[Ue.route.id]:xe},fetchers:new Map(k.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function mo(ae){return w.v7_fetcherPersist&&(we.set(ae,(we.get(ae)||0)+1),ce.has(ae)&&ce.delete(ae)),k.fetchers.get(ae)||RH}function Yt(ae){let pe=k.fetchers.get(ae);W.has(ae)&&!(pe&&pe.state==="loading"&&ne.has(ae))&&Qr(ae),ve.delete(ae),ne.delete(ae),se.delete(ae),ce.delete(ae),Q.delete(ae),k.fetchers.delete(ae)}function yo(ae){if(w.v7_fetcherPersist){let pe=(we.get(ae)||0)-1;pe<=0?(we.delete(ae),ce.add(ae)):we.set(ae,pe)}else Yt(ae);Re({fetchers:new Map(k.fetchers)})}function Qr(ae){let pe=W.get(ae);Pt(pe,"Expected fetch controller: "+ae),pe.abort(),W.delete(ae)}function Cl(ae){for(let pe of ae){let xe=mo(pe),Oe=Ks(xe.data);k.fetchers.set(pe,Oe)}}function da(){let ae=[],pe=!1;for(let xe of se){let Oe=k.fetchers.get(xe);Pt(Oe,"Expected fetcher: "+xe),Oe.state==="loading"&&(se.delete(xe),ae.push(xe),pe=!0)}return Cl(ae),pe}function Sn(ae){let pe=[];for(let[xe,Oe]of ne)if(Oe0}function Pl(ae,pe){let xe=k.blockers.get(ae)||D0;return oe.get(ae)!==pe&&oe.set(ae,pe),xe}function Ka(ae){k.blockers.delete(ae),oe.delete(ae)}function sn(ae,pe){let xe=k.blockers.get(ae)||D0;Pt(xe.state==="unblocked"&&pe.state==="blocked"||xe.state==="blocked"&&pe.state==="blocked"||xe.state==="blocked"&&pe.state==="proceeding"||xe.state==="blocked"&&pe.state==="unblocked"||xe.state==="proceeding"&&pe.state==="unblocked","Invalid blocker state transition: "+xe.state+" -> "+pe.state);let Oe=new Map(k.blockers);Oe.set(ae,pe),Re({blockers:Oe})}function Li(ae){let{currentLocation:pe,nextLocation:xe,historyAction:Oe}=ae;if(oe.size===0)return;oe.size>1&&Fp(!1,"A router only supports one blocker at a time");let Ue=Array.from(oe.entries()),[Qe,ut]=Ue[Ue.length-1],Fe=k.blockers.get(Qe);if(!(Fe&&Fe.state==="proceeding")&&ut({currentLocation:pe,nextLocation:xe,historyAction:Oe}))return Qe}function fa(ae){let pe=ko(404,{pathname:ae}),xe=l||a,{matches:Oe,route:Ue}=M6(xe);return Di(),{notFoundMatches:Oe,route:Ue,error:pe}}function $r(ae,pe){return{boundaryId:Qf(pe.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:ae,message:pe.error!=null&&"message"in pe.error?pe.error:String(pe.error)})}}function Di(ae){let pe=[];return J.forEach((xe,Oe)=>{(!ae||ae(Oe))&&(xe.cancel(),pe.push(Oe),J.delete(Oe))}),pe}function Ts(ae,pe,xe){if(C=ae,h=pe,g=xe||null,!c&&k.navigation===B_){c=!0;let Oe=Fi(k.location,k.matches);Oe!=null&&Re({restoreScrollPosition:Oe})}return()=>{C=null,h=null,g=null}}function pa(ae,pe){return g&&g(ae,pe.map(Oe=>sH(Oe,k.loaderData)))||ae.key}function Dn(ae,pe){if(C&&h){let xe=pa(ae,pe);C[xe]=h()}}function Fi(ae,pe){if(C){let xe=pa(ae,pe),Oe=C[xe];if(typeof Oe=="number")return Oe}return null}function bo(ae,pe,xe){if(v){if(y.has(xe))return{active:!1,matches:ae};if(ae){if(Object.keys(ae[0].params).length>0)return{active:!0,matches:Sb(pe,xe,s,!0)}}else return{active:!0,matches:Sb(pe,xe,s,!0)||[]}}return{active:!1,matches:null}}async function ni(ae,pe,xe){let Oe=ae;for(;;){let Ue=l==null,Qe=l||a;try{await FH(v,pe,Oe,Qe,i,o,ue,xe)}catch(Ze){return{type:"error",error:Ze,partialMatches:Oe}}finally{Ue&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let ut=Uc(Qe,pe,s);if(ut)return ha(pe,y),{type:"success",matches:ut};let Fe=Sb(Qe,pe,s,!0);if(!Fe||Oe.length===Fe.length&&Oe.every((Ze,$e)=>Ze.route.id===Fe[$e].route.id))return ha(pe,y),{type:"success",matches:null};Oe=Fe}}function ha(ae,pe){if(pe.size>=P){let xe=pe.values().next().value;pe.delete(xe)}pe.add(ae)}function Os(ae){i={},l=rv(ae,o,void 0,i)}function ga(ae,pe){let xe=l==null;zR(ae,pe,l||a,i,o),xe&&(a=[...a],Re({}))}return T={get basename(){return s},get future(){return w},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:Ie,enableScrollRestoration:Ts,navigate:ke,fetch:Ht,revalidate:ze,createHref:ae=>e.history.createHref(ae),encodeLocation:ae=>e.history.encodeLocation(ae),getFetcher:mo,deleteFetcher:yo,dispose:Me,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Os},T}function IH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function WS(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let w of t)if(s.push(w),w.route.id===a){d=w;break}}else s=t,d=t[t.length-1];let v=PP(o||".",CP(s,i),lh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!kP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function x6(e,t,r,n){if(!n||!IH(n))return{path:r};if(n.formMethod&&!YH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=VR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((_,P)=>{let[y,C]=P;return""+_+y+"="+C+` +`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Pt(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=$S(n.formData),d=n.formData;else if(n.body instanceof FormData)s=$S(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=T6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=T6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let w=zu(r);return t&&w.search&&kP(w.search)&&s.append("index",""),w.search="?"+s,{path:ad(w),submission:v}}function LH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function S6(e,t,r,n,o,i,a,l,s,d,v,w,S,_,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,g=e.createURL(t.location),h=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,p=c?LH(r,c):r,m=y?y[1].statusCode:void 0,b=a&&m&&m>=400,T=p.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(DH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return C6(R,Tr({currentUrl:g,currentParams:F.params,nextUrl:h,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:b?!1:l||g.pathname+g.search===h.pathname+h.search||g.search!==h.search||jR(F,V)}))}),k=[];return w.forEach((R,E)=>{if(i||!r.some(H=>H.route.id===R.routeId)||v.has(E))return;let A=Uc(_,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ig(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=C6(V,Tr({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:b?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function DH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function jR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function C6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function FH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,w)=>{l.aborted||zR(v,w,n,o,i)}}),a.set(s,d)),d&&GH(d)&&await d}finally{a.delete(s)}}function zR(e,t,r,n,o){if(e){var i;let a=n[e];Pt(a,"No route found to patch children into: routeId = "+e);let l=rv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=rv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function jH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Pt(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Fp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!aH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function zH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function VH(e,t,r,n,o,i,a,l,s,d){let v=i.map(_=>_.route.lazy?jH(_.route,s,l):void 0),w=i.map((_,P)=>{let y=v[P],C=o.some(h=>h.route.id===_.route.id);return Tr({},_,{shouldLoad:C,resolve:async h=>(h&&n.method==="GET"&&(_.route.lazy||_.route.loader)&&(C=!0),C?BH(t,n,_,y,h,d):Promise.resolve({type:rr.data,result:void 0}))})}),S=await e({matches:w,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function BH(e,t,r,n,o,i){let a,l,s=d=>{let v,w=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),_=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([_,w])};try{let d=r.route[e];if(n)if(d){let v,[w]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=w}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),w=v.pathname+v.search;throw ko(405,{method:t.method,pathname:w,routeId:r.route.id})}else return{type:rr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),w=v.pathname+v.search;throw ko(404,{pathname:w})}Pt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:rr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function UH(e){let{result:t,type:r}=e;if(BR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:rr.error,error:v}}return r===rr.error?{type:rr.error,error:new P1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:rr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===rr.error){if(R6(t)){var n;if(t.data instanceof Error){var o;return{type:rr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new P1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:Bv(t)?t.status:void 0}}if(qH(t)){var i,a;return{type:rr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(R6(t)){var l,s;return{type:rr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function HH(e,t,r,n,o,i){let a=e.headers.get("Location");if(Pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!TP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=WS(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function P6(e,t,r){if(TP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=lh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(VR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=$S(n.formData):i.body=n.formData}return new Request(o,i)}function $S(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function T6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function WH(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(w=>{if(!(w.route.id in t))return;let S=w.route.id,_=t[S];if(Pt(!Gc(_),"Cannot handle redirect results in processLoaderData"),wi(_)){let P=_.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Qf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Bv(_.error)?_.error.status:500),_.headers&&(d[S]=_.headers)}else su(_)?(n.set(S,_.deferredData),i[S]=_.deferredData.data,_.statusCode!=null&&_.statusCode!==200&&!s&&(l=_.statusCode),_.headers&&(d[S]=_.headers)):(i[S]=_.data,_.statusCode&&_.statusCode!==200&&!s&&(l=_.statusCode),_.headers&&(d[S]=_.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function O6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=WH(t,n,o,l);return i.forEach(v=>{let{key:w,match:S,controller:_}=v,P=a[w];if(Pt(P,"Did not find corresponding fetcher result"),!(_&&_.signal.aborted))if(wi(P)){let y=Qf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(w)}else if(Gc(P))Pt(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Pt(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(w,y)}}),{loaderData:s,errors:d}}function k6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function E6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Qf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function M6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new P1(e||500,l,new Error(s),!0)}function Ey(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function VR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function $H(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function GH(e){return typeof e=="object"&&e!=null&&"then"in e}function KH(e){return BR(e.result)&&EH.has(e.result.status)}function su(e){return e.type===rr.deferred}function wi(e){return e.type===rr.error}function Gc(e){return(e&&e.type)===rr.redirect}function R6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function qH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function BR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function YH(e){return kH.has(e.toLowerCase())}function Ea(e){return TH.has(e.toLowerCase())}async function XH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),w=v!=null&&!jR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&w&&await OP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function QH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Pt(a,"Expected an AbortController for revalidating fetcher deferred result"),await OP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function OP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function kP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ig(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&kP(r||""))return e[e.length-1];let n=LR(e);return n[n.length-1]}function N6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function U_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ZH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function F0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function JH(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function eW(e,t){try{let r=e.sessionStorage.getItem(FR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function tW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(FR,JSON.stringify(r))}catch(n){Fp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function T1(){return T1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),X.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let w=PP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(w.pathname=w.pathname==="/"?t:ts([t,w.pathname])),(v.replace?n.replace:n.push)(w,v.state,v)},[t,n,a,i,e])}function GR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=X.useContext(bd),{matches:o}=X.useContext(wd),{pathname:i}=Xw(),a=JSON.stringify(CP(o,n.v7_relativeSplatPath));return X.useMemo(()=>PP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function aW(e,t,r,n){Uv()||Ct(!1);let{navigator:o}=X.useContext(bd),{matches:i}=X.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Xw(),v;v=d;let w=v.pathname||"/",S=w;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=Uc(e,{pathname:S});return dW(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function lW(){let e=XR(),t=Bv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},t),r?X.createElement("pre",{style:o},r):null,null)}const sW=X.createElement(lW,null);class uW extends X.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?X.createElement(wd.Provider,{value:this.props.routeContext},X.createElement(WR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cW(e){let{routeContext:t,match:r,children:n}=e,o=X.useContext(Yw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),X.createElement(wd.Provider,{value:t},n)}function dW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(w=>w.route.id&&(l==null?void 0:l[w.route.id])!==void 0);v>=0||Ct(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,w,S)=>{let b,P=!1,y=null,C=null;r&&(b=l&&w.route.id?l[w.route.id]:void 0,y=w.route.errorElement||sW,s&&(d<0&&S===0?(vW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=w.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,S+1)),f=()=>{let c;return b?c=y:P?c=C:w.route.Component?c=X.createElement(w.route.Component,null):w.route.element?c=w.route.element:c=v,X.createElement(cW,{match:w,routeContext:{outlet:v,matches:g,isDataRoute:r!=null},children:c})};return r&&(w.route.ErrorBoundary||w.route.errorElement||S===0)?X.createElement(uW,{location:r.location,revalidation:r.revalidation,component:y,error:b,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()},null)}var KR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(KR||{}),qR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(qR||{});function fW(e){let t=X.useContext(Yw);return t||Ct(!1),t}function pW(e){let t=X.useContext(HR);return t||Ct(!1),t}function hW(e){let t=X.useContext(wd);return t||Ct(!1),t}function YR(e){let t=hW(),r=t.matches[t.matches.length-1];return r.route.id||Ct(!1),r.route.id}function XR(){var e;let t=X.useContext(WR),r=pW(qR.UseRouteError),n=YR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function gW(){let{router:e}=fW(KR.UseNavigateStable),t=YR(),r=X.useRef(!1);return $R(()=>{r.current=!0}),X.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,T1({fromRouteId:t},i)))},[e,t])}const A6={};function vW(e,t,r){A6[e]||(A6[e]=!0)}function GS(e){Ct(!1)}function mW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Uv()&&Ct(!1);let s=t.replace(/^\/*/,"/"),d=X.useMemo(()=>({basename:s,navigator:i,static:a,future:T1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:w="",hash:S="",state:b=null,key:P="default"}=n,y=X.useMemo(()=>{let C=lh(v,s);return C==null?null:{location:{pathname:C,search:w,hash:S,state:b,key:P},navigationType:o}},[s,v,w,S,b,P,o]);return y==null?null:X.createElement(bd.Provider,{value:d},X.createElement(EP.Provider,{children:r,value:y}))}new Promise(()=>{});function KS(e,t){t===void 0&&(t=[]);let r=[];return X.Children.forEach(e,(n,o)=>{if(!X.isValidElement(n))return;let i=[...t,o];if(n.type===X.Fragment){r.push.apply(r,KS(n.props.children,i));return}n.type!==GS&&Ct(!1),!n.props.index||!n.props.children||Ct(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=KS(n.props.children,i)),r.push(a)}),r}function yW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:X.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:X.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:X.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function T1(){return T1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),q.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let w=PP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(w.pathname=w.pathname==="/"?t:ts([t,w.pathname])),(v.replace?n.replace:n.push)(w,v.state,v)},[t,n,a,i,e])}function $R(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=q.useContext(bd),{matches:o}=q.useContext(wd),{pathname:i}=Xw(),a=JSON.stringify(CP(o,n.v7_relativeSplatPath));return q.useMemo(()=>PP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function iW(e,t,r,n){Uv()||Pt(!1);let{navigator:o}=q.useContext(bd),{matches:i}=q.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Xw(),v;v=d;let w=v.pathname||"/",S=w;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(y.length).join("/")}let _=Uc(e,{pathname:S});return cW(_&&_.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function aW(){let e=YR(),t=Bv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return q.createElement(q.Fragment,null,q.createElement("h2",null,"Unexpected Application Error!"),q.createElement("h3",{style:{fontStyle:"italic"}},t),r?q.createElement("pre",{style:o},r):null,null)}const lW=q.createElement(aW,null);class sW extends q.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?q.createElement(wd.Provider,{value:this.props.routeContext},q.createElement(HR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uW(e){let{routeContext:t,match:r,children:n}=e,o=q.useContext(Yw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),q.createElement(wd.Provider,{value:t},n)}function cW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(w=>w.route.id&&(l==null?void 0:l[w.route.id])!==void 0);v>=0||Pt(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,w,S)=>{let _,P=!1,y=null,C=null;r&&(_=l&&w.route.id?l[w.route.id]:void 0,y=w.route.errorElement||lW,s&&(d<0&&S===0?(gW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=w.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,S+1)),h=()=>{let c;return _?c=y:P?c=C:w.route.Component?c=q.createElement(w.route.Component,null):w.route.element?c=w.route.element:c=v,q.createElement(uW,{match:w,routeContext:{outlet:v,matches:g,isDataRoute:r!=null},children:c})};return r&&(w.route.ErrorBoundary||w.route.errorElement||S===0)?q.createElement(sW,{location:r.location,revalidation:r.revalidation,component:y,error:_,children:h(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):h()},null)}var GR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(GR||{}),KR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(KR||{});function dW(e){let t=q.useContext(Yw);return t||Pt(!1),t}function fW(e){let t=q.useContext(UR);return t||Pt(!1),t}function pW(e){let t=q.useContext(wd);return t||Pt(!1),t}function qR(e){let t=pW(),r=t.matches[t.matches.length-1];return r.route.id||Pt(!1),r.route.id}function YR(){var e;let t=q.useContext(HR),r=fW(KR.UseRouteError),n=qR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function hW(){let{router:e}=dW(GR.UseNavigateStable),t=qR(),r=q.useRef(!1);return WR(()=>{r.current=!0}),q.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,T1({fromRouteId:t},i)))},[e,t])}const A6={};function gW(e,t,r){A6[e]||(A6[e]=!0)}function GS(e){Pt(!1)}function vW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Uv()&&Pt(!1);let s=t.replace(/^\/*/,"/"),d=q.useMemo(()=>({basename:s,navigator:i,static:a,future:T1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:w="",hash:S="",state:_=null,key:P="default"}=n,y=q.useMemo(()=>{let C=lh(v,s);return C==null?null:{location:{pathname:C,search:w,hash:S,state:_,key:P},navigationType:o}},[s,v,w,S,_,P,o]);return y==null?null:q.createElement(bd.Provider,{value:d},q.createElement(EP.Provider,{children:r,value:y}))}new Promise(()=>{});function KS(e,t){t===void 0&&(t=[]);let r=[];return q.Children.forEach(e,(n,o)=>{if(!q.isValidElement(n))return;let i=[...t,o];if(n.type===q.Fragment){r.push.apply(r,KS(n.props.children,i));return}n.type!==GS&&Pt(!1),!n.props.index||!n.props.children||Pt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=KS(n.props.children,i)),r.push(a)}),r}function mW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:q.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:q.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:q.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -66,11 +66,11 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function wW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _W(e,t){return e.button===0&&(!t||t==="_self")&&!wW(e)}const xW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],SW="6";try{window.__reactRouterVersion=SW}catch{}function CW(e,t){return IH({basename:t==null?void 0:t.basename,future:nv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:oH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||PW(),routes:e,mapRouteProperties:yW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function PW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=nv({},t,{errors:TW(t.errors)})),t}function TW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new P1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const OW=X.createContext({isTransitioning:!1}),kW=X.createContext(new Map),EW="startTransition",I6=Qx[EW],MW="flushSync",L6=nH[MW];function RW(e){I6?I6(e):e()}function j0(e){L6?L6(e):e()}class NW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function AW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=X.useState(r.state),[a,l]=X.useState(),[s,d]=X.useState({isTransitioning:!1}),[v,w]=X.useState(),[S,b]=X.useState(),[P,y]=X.useState(),C=X.useRef(new Map),{v7_startTransition:g}=n||{},f=X.useCallback(k=>{g?RW(k):k()},[g]),c=X.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,H)=>{B.data!==void 0&&C.current.set(H,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?j0(()=>i(k)):f(()=>i(k));return}if(A){j0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{j0(()=>i(k))});B.finished.finally(()=>{j0(()=>{w(void 0),b(void 0),l(void 0),d({isTransitioning:!1})})}),j0(()=>b(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,f]);X.useLayoutEffect(()=>r.subscribe(c),[r,c]),X.useEffect(()=>{s.isTransitioning&&!s.flushSync&&w(new NW)},[s]),X.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{f(()=>i(k)),await R});E.finished.finally(()=>{w(void 0),b(void 0),l(void 0),d({isTransitioning:!1})}),b(E)}},[f,a,v,r.window]),X.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),X.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),X.useEffect(()=>{},[]);let h=X.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",_=X.useMemo(()=>({router:r,navigator:h,static:!1,basename:m}),[r,h,m]),T=X.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return X.createElement(X.Fragment,null,X.createElement(Yw.Provider,{value:_},X.createElement(HR.Provider,{value:o},X.createElement(kW.Provider,{value:C.current},X.createElement(OW.Provider,{value:s},X.createElement(mW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:h,future:T},o.initialized||r.future.v7_partialHydration?X.createElement(IW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const IW=X.memo(LW);function LW(e){let{routes:t,future:r,state:n}=e;return aW(t,void 0,n,r)}const DW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O1=X.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:w}=t,S=bW(t,xW),{basename:b}=X.useContext(bd),P,y=!1;if(typeof d=="string"&&FW.test(d)&&(P=d,DW))try{let c=new URL(window.location.href),h=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=lh(h.pathname,b);h.origin===c.origin&&m!=null?d=m+h.search+h.hash:y=!0}catch{}let C=nW(d,{relative:o}),g=jW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:w});function f(c){n&&n(c),c.defaultPrevented||g(c)}return X.createElement("a",nv({},S,{href:P||C,onClick:y||i?n:f,ref:r,target:s}))});var D6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D6||(D6={}));var F6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(F6||(F6={}));function jW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=oW(),d=Xw(),v=GR(e,{relative:a});return X.useCallback(w=>{if(_W(w,r)){w.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var QR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j6=Or.createContext&&Or.createContext(QR),zW=["attr","size","title"];function VW(e,t){if(e==null)return{};var r=BW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,E1({key:r},t.attr),ZR(t.child)))}function Qw(e){return t=>Or.createElement($W,k1({attr:E1({},e.attr)},t),ZR(e.child))}function $W(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=VW(e,zW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",k1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:E1(E1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return j6!==void 0?Or.createElement(j6.Consumer,null,r=>t(r)):t(QR)}function GW(e){return Qw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function KW(e){return Qw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function qW(e){return Qw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function V6(e){return Fe.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:Fe.jsxs(O1,{to:e.path,children:[Fe.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function YW(){return Fe.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[Fe.jsx(O1,{to:"/",children:Fe.jsx("div",{className:"sideMenu-header",children:Fe.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),Fe.jsx("br",{}),Fe.jsx("nav",{children:Fe.jsxs("ul",{children:[Fe.jsx(V6,{icon:GW,label:"Home",path:"/"},"Home"),Fe.jsx(V6,{icon:qW,label:"Map",path:"/map"},"Map")]})}),Fe.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:Fe.jsxs(O1,{to:"/tos",className:"inline-",children:[Fe.jsx(KW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function XW({children:e}){return Fe.jsxs("div",{className:"bg-black",children:[Fe.jsx(YW,{}),Fe.jsx("div",{className:"ml-40 pl-2",children:e})]})}var QW={},JR={},e7={exports:{}};/*! + */function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function bW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wW(e,t){return e.button===0&&(!t||t==="_self")&&!bW(e)}const _W=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],xW="6";try{window.__reactRouterVersion=xW}catch{}function SW(e,t){return AH({basename:t==null?void 0:t.basename,future:nv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:nH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||CW(),routes:e,mapRouteProperties:mW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function CW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=nv({},t,{errors:PW(t.errors)})),t}function PW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new P1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const TW=q.createContext({isTransitioning:!1}),OW=q.createContext(new Map),kW="startTransition",I6=Qx[kW],EW="flushSync",L6=rH[EW];function MW(e){I6?I6(e):e()}function j0(e){L6?L6(e):e()}class RW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function NW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=q.useState(r.state),[a,l]=q.useState(),[s,d]=q.useState({isTransitioning:!1}),[v,w]=q.useState(),[S,_]=q.useState(),[P,y]=q.useState(),C=q.useRef(new Map),{v7_startTransition:g}=n||{},h=q.useCallback(k=>{g?MW(k):k()},[g]),c=q.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,H)=>{B.data!==void 0&&C.current.set(H,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?j0(()=>i(k)):h(()=>i(k));return}if(A){j0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{j0(()=>i(k))});B.finished.finally(()=>{j0(()=>{w(void 0),_(void 0),l(void 0),d({isTransitioning:!1})})}),j0(()=>_(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,h]);q.useLayoutEffect(()=>r.subscribe(c),[r,c]),q.useEffect(()=>{s.isTransitioning&&!s.flushSync&&w(new RW)},[s]),q.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{h(()=>i(k)),await R});E.finished.finally(()=>{w(void 0),_(void 0),l(void 0),d({isTransitioning:!1})}),_(E)}},[h,a,v,r.window]),q.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),q.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),q.useEffect(()=>{},[]);let p=q.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",b=q.useMemo(()=>({router:r,navigator:p,static:!1,basename:m}),[r,p,m]),T=q.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return q.createElement(q.Fragment,null,q.createElement(Yw.Provider,{value:b},q.createElement(UR.Provider,{value:o},q.createElement(OW.Provider,{value:C.current},q.createElement(TW.Provider,{value:s},q.createElement(vW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:p,future:T},o.initialized||r.future.v7_partialHydration?q.createElement(AW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const AW=q.memo(IW);function IW(e){let{routes:t,future:r,state:n}=e;return iW(t,void 0,n,r)}const LW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",DW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O1=q.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:w}=t,S=yW(t,_W),{basename:_}=q.useContext(bd),P,y=!1;if(typeof d=="string"&&DW.test(d)&&(P=d,LW))try{let c=new URL(window.location.href),p=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=lh(p.pathname,_);p.origin===c.origin&&m!=null?d=m+p.search+p.hash:y=!0}catch{}let C=rW(d,{relative:o}),g=FW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:w});function h(c){n&&n(c),c.defaultPrevented||g(c)}return q.createElement("a",nv({},S,{href:P||C,onClick:y||i?n:h,ref:r,target:s}))});var D6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D6||(D6={}));var F6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(F6||(F6={}));function FW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=nW(),d=Xw(),v=$R(e,{relative:a});return q.useCallback(w=>{if(wW(w,r)){w.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var XR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j6=Or.createContext&&Or.createContext(XR),jW=["attr","size","title"];function zW(e,t){if(e==null)return{};var r=VW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,E1({key:r},t.attr),QR(t.child)))}function Qw(e){return t=>Or.createElement(WW,k1({attr:E1({},e.attr)},t),QR(e.child))}function WW(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=zW(e,jW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",k1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:E1(E1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return j6!==void 0?Or.createElement(j6.Consumer,null,r=>t(r)):t(XR)}function $W(e){return Qw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function GW(e){return Qw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function KW(e){return Qw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function V6(e){return je.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:je.jsxs(O1,{to:e.path,children:[je.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function qW(){return je.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[je.jsx(O1,{to:"/",children:je.jsx("div",{className:"sideMenu-header",children:je.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),je.jsx("br",{}),je.jsx("nav",{children:je.jsxs("ul",{children:[je.jsx(V6,{icon:$W,label:"Home",path:"/"},"Home"),je.jsx(V6,{icon:KW,label:"Map",path:"/map"},"Map")]})}),je.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:je.jsxs(O1,{to:"/tos",className:"inline-",children:[je.jsx(GW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function YW({children:e}){return je.jsxs("div",{className:"bg-black",children:[je.jsx(qW,{}),je.jsx("div",{className:"ml-40 pl-2",children:e})]})}var XW={},ZR={},JR={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function e$(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,w=new Array(d);vC.length)&&(g=C.length);for(var f=0,c=new Array(g);fc.length)&&(h=c.length);for(var m=0,_=new Array(h);mf.length)&&(c=f.length);for(var h=0,m=new Array(c);hT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rh.length)&&(m=h.length);for(var _=0,T=new Array(m);_g.length)&&(f=g.length);for(var c=0,h=new Array(f);cm.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function i(m){if(Array.isArray(m))return o(m)}function a(m){return m&&m.__esModule?m:{default:m}}function l(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(m){return i(m)||l(m)||v(m)||s()}function v(m,_){if(m){if(typeof m=="string")return o(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(m,_)}}var w=["white"].concat(d(n.propTypesColors)),S=r.default.bool,b=r.default.bool,P=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],C=r.default.string,g=r.default.node,f=r.default.node.isRequired,c=r.default.instanceOf(Object),h=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(HP);var ZN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(ZN);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,s){for(var d in s)Object.defineProperty(l,d,{enumerable:!0,get:s[d]})}t(e,{badge:function(){return i},default:function(){return a}});var r=HP,n=o(ZN);function o(l){return l&&l.__esModule?l:{default:l}}var i={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},a=i})(QN);var JN={},WP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{propTypesCount:function(){return w},propTypesValue:function(){return S},propTypesRatedIcon:function(){return b},propTypesUnratedIcon:function(){return P},propTypesColor:function(){return y},propTypesOnChange:function(){return C},propTypesClassName:function(){return g},propTypesReadonly:function(){return f}});var r=a(nt),n=br;function o(c,h){(h==null||h>c.length)&&(h=c.length);for(var m=0,_=new Array(h);mb.length)&&(P=b.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var g=0,f=new Array(C);g"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(SA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return w},useTheme:function(){return S}});var r=d(X),n=l(nt),o=l(Xn),i=l(RP),a=l(SA);function l(b){return b&&b.__esModule?b:{default:b}}function s(b){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(b)}function d(b,P){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var y=s(P);if(y&&y.has(b))return y.get(b);var C={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in b)if(f!=="default"&&Object.prototype.hasOwnProperty.call(b,f)){var c=g?Object.getOwnPropertyDescriptor(b,f):null;c&&(c.get||c.set)?Object.defineProperty(C,f,c):C[f]=b[f]}return C.default=b,y&&y.set(b,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function w(b){var P=b.value,y=P===void 0?i.default:P,C=b.children,g=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:g},C)}var S=function(){return(0,r.useContext)(v)};w.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(qe);var Jw={},$v={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,b){for(var P in b)Object.defineProperty(S,P,{enumerable:!0,get:b[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return w}});var r=o(nt),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,w=r.default.node.isRequired})($v);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(X),n=$v;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(Jw);var CA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=w(X),n=w(pt),o=Ze,i=w(Je),a=Jw,l=qe,s=$v;function d(C,g,f){return g in C?Object.defineProperty(C,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):C[g]=f,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.className,c=C.children,h=S(C,["className","children"]),m=(0,a.useAccordion)(),_=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;f=f??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),_)),f),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},h,{ref:g,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(CA);var PA={},An={},QS=function(e,t){return QS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},QS(e,t)};function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");QS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var R1=function(){return R1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function kA(e,t){return function(r,n){t(r,n,e)}}function R$(e,t,r,n,o,i){function a(g){if(g!==void 0&&typeof g!="function")throw new TypeError("Function expected");return g}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),w,S=!1,b=r.length-1;b>=0;b--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(g){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(g||null))};var C=(0,r[b])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(w=a(C.get))&&(v.get=w),(w=a(C.set))&&(v.set=w),(w=a(C.init))&&o.unshift(w)}else(w=a(C))&&(l==="field"?o.unshift(w):v[s]=w)}d&&Object.defineProperty(d,n.name,v),S=!0}function N$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function KP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function AA(){for(var e=[],t=0;t1||s(b,y)})},P&&(o[b]=P(o[b])))}function s(b,P){try{d(n[b](P))}catch(y){S(i[0][3],y)}}function d(b){b.value instanceof zp?Promise.resolve(b.value.v).then(v,w):S(i[0][2],b)}function v(b){s("next",b)}function w(b){s("throw",b)}function S(b,P){b(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function FA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:zp(e[o](a)),done:!1}:i?i(a):a}:i}}function jA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof N1=="function"?N1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function zA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var L$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function VA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&e2(t,e,r);return L$(t,e),t}function BA(e){return e&&e.__esModule?e:{default:e}}function UA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function HA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function WA(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function $A(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var D$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function GA(e){function t(i){e.error=e.hasError?new D$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const F$={__extends:TA,__assign:R1,__rest:uh,__decorate:OA,__param:kA,__metadata:EA,__awaiter:MA,__generator:RA,__createBinding:e2,__exportStar:NA,__values:N1,__read:KP,__spread:AA,__spreadArrays:IA,__spreadArray:LA,__await:zp,__asyncGenerator:DA,__asyncDelegator:FA,__asyncValues:jA,__makeTemplateObject:zA,__importStar:VA,__importDefault:BA,__classPrivateFieldGet:UA,__classPrivateFieldSet:HA,__classPrivateFieldIn:WA,__addDisposableResource:$A,__disposeResources:GA},j$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:$A,get __assign(){return R1},__asyncDelegator:FA,__asyncGenerator:DA,__asyncValues:jA,__await:zp,__awaiter:MA,__classPrivateFieldGet:UA,__classPrivateFieldIn:WA,__classPrivateFieldSet:HA,__createBinding:e2,__decorate:OA,__disposeResources:GA,__esDecorate:R$,__exportStar:NA,__extends:TA,__generator:RA,__importDefault:BA,__importStar:VA,__makeTemplateObject:zA,__metadata:EA,__param:kA,__propKey:A$,__read:KP,__rest:uh,__runInitializers:N$,__setFunctionName:I$,__spread:AA,__spreadArray:LA,__spreadArrays:IA,__values:N1,default:F$},Symbol.toStringTag,{value:"Module"})),KA=Lv(j$);var qA={exports:{}},Ft={};/** +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function JW(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,w=new Array(d);vC.length)&&(g=C.length);for(var h=0,c=new Array(g);hc.length)&&(p=c.length);for(var m=0,b=new Array(p);mh.length)&&(c=h.length);for(var p=0,m=new Array(c);pT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rp.length)&&(m=p.length);for(var b=0,T=new Array(m);bg.length)&&(h=g.length);for(var c=0,p=new Array(h);cm.length)&&(b=m.length);for(var T=0,k=new Array(b);Tc.length)&&(p=c.length);for(var m=0,b=new Array(p);m_.length)&&(P=_.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var g=0,h=new Array(C);g"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(xA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return w},useTheme:function(){return S}});var r=d(q),n=l(ot),o=l(Xn),i=l(RP),a=l(xA);function l(_){return _&&_.__esModule?_:{default:_}}function s(_){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(_)}function d(_,P){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var y=s(P);if(y&&y.has(_))return y.get(_);var C={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in _)if(h!=="default"&&Object.prototype.hasOwnProperty.call(_,h)){var c=g?Object.getOwnPropertyDescriptor(_,h):null;c&&(c.get||c.set)?Object.defineProperty(C,h,c):C[h]=_[h]}return C.default=_,y&&y.set(_,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function w(_){var P=_.value,y=P===void 0?i.default:P,C=_.children,g=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:g},C)}var S=function(){return(0,r.useContext)(v)};w.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Xe);var Jw={},$v={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,_){for(var P in _)Object.defineProperty(S,P,{enumerable:!0,get:_[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return w}});var r=o(ot),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,w=r.default.node.isRequired})($v);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(q),n=$v;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(Jw);var SA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=w(q),n=w(pt),o=Je,i=w(et),a=Jw,l=Xe,s=$v;function d(C,g,h){return g in C?Object.defineProperty(C,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):C[g]=h,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.className,c=C.children,p=S(C,["className","children"]),m=(0,a.useAccordion)(),b=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;h=h??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),b)),h),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},p,{ref:g,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(b?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(SA);var CA={},An={},QS=function(e,t){return QS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},QS(e,t)};function PA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");QS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var R1=function(){return R1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function OA(e,t){return function(r,n){t(r,n,e)}}function M$(e,t,r,n,o,i){function a(g){if(g!==void 0&&typeof g!="function")throw new TypeError("Function expected");return g}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),w,S=!1,_=r.length-1;_>=0;_--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(g){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(g||null))};var C=(0,r[_])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(w=a(C.get))&&(v.get=w),(w=a(C.set))&&(v.set=w),(w=a(C.init))&&o.unshift(w)}else(w=a(C))&&(l==="field"?o.unshift(w):v[s]=w)}d&&Object.defineProperty(d,n.name,v),S=!0}function R$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function KP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function NA(){for(var e=[],t=0;t1||s(_,y)})},P&&(o[_]=P(o[_])))}function s(_,P){try{d(n[_](P))}catch(y){S(i[0][3],y)}}function d(_){_.value instanceof zp?Promise.resolve(_.value.v).then(v,w):S(i[0][2],_)}function v(_){s("next",_)}function w(_){s("throw",_)}function S(_,P){_(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function DA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:zp(e[o](a)),done:!1}:i?i(a):a}:i}}function FA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof N1=="function"?N1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function jA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function zA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&e2(t,e,r);return I$(t,e),t}function VA(e){return e&&e.__esModule?e:{default:e}}function BA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function UA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function HA(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function WA(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var L$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function $A(e){function t(i){e.error=e.hasError?new L$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const D$={__extends:PA,__assign:R1,__rest:uh,__decorate:TA,__param:OA,__metadata:kA,__awaiter:EA,__generator:MA,__createBinding:e2,__exportStar:RA,__values:N1,__read:KP,__spread:NA,__spreadArrays:AA,__spreadArray:IA,__await:zp,__asyncGenerator:LA,__asyncDelegator:DA,__asyncValues:FA,__makeTemplateObject:jA,__importStar:zA,__importDefault:VA,__classPrivateFieldGet:BA,__classPrivateFieldSet:UA,__classPrivateFieldIn:HA,__addDisposableResource:WA,__disposeResources:$A},F$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:WA,get __assign(){return R1},__asyncDelegator:DA,__asyncGenerator:LA,__asyncValues:FA,__await:zp,__awaiter:EA,__classPrivateFieldGet:BA,__classPrivateFieldIn:HA,__classPrivateFieldSet:UA,__createBinding:e2,__decorate:TA,__disposeResources:$A,__esDecorate:M$,__exportStar:RA,__extends:PA,__generator:MA,__importDefault:VA,__importStar:zA,__makeTemplateObject:jA,__metadata:kA,__param:OA,__propKey:N$,__read:KP,__rest:uh,__runInitializers:R$,__setFunctionName:A$,__spread:NA,__spreadArray:IA,__spreadArrays:AA,__values:N1,default:D$},Symbol.toStringTag,{value:"Module"})),GA=Lv(F$);var KA={exports:{}},Ft={};/** * @license React * react.production.min.js * @@ -78,7 +78,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gv=Symbol.for("react.element"),z$=Symbol.for("react.portal"),V$=Symbol.for("react.fragment"),B$=Symbol.for("react.strict_mode"),U$=Symbol.for("react.profiler"),H$=Symbol.for("react.provider"),W$=Symbol.for("react.context"),$$=Symbol.for("react.forward_ref"),G$=Symbol.for("react.suspense"),K$=Symbol.for("react.memo"),q$=Symbol.for("react.lazy"),$6=Symbol.iterator;function Y$(e){return e===null||typeof e!="object"?null:(e=$6&&e[$6]||e["@@iterator"],typeof e=="function"?e:null)}var YA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XA=Object.assign,QA={};function ch(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}ch.prototype.isReactComponent={};ch.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ch.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=ch.prototype;function qP(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}var YP=qP.prototype=new ZA;YP.constructor=qP;XA(YP,ch.prototype);YP.isPureReactComponent=!0;var G6=Array.isArray,JA=Object.prototype.hasOwnProperty,XP={current:null},eI={key:!0,ref:!0,__self:!0,__source:!0};function tI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)JA.call(t,n)&&!eI.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Sg=e=>e%1?Number(e.toFixed(5)):e,iv=/(-)?([\d]*\.?[\d])+/g,ZS=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,nG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Kv(e){return typeof e=="string"}const qv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ZP=Object.assign(Object.assign({},qv),{transform:oI(0,1)}),oG=Object.assign(Object.assign({},qv),{default:1}),Yv=e=>({test:t=>Kv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),iG=Yv("deg"),bp=Yv("%"),aG=Yv("px"),lG=Yv("vh"),sG=Yv("vw"),uG=Object.assign(Object.assign({},bp),{parse:e=>bp.parse(e)/100,transform:e=>bp.transform(e*100)}),JP=(e,t)=>r=>!!(Kv(r)&&nG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iI=(e,t,r)=>n=>{if(!Kv(n))return n;const[o,i,a,l]=n.match(iv);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},ag={test:JP("hsl","hue"),parse:iI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bp.transform(Sg(t))+", "+bp.transform(Sg(r))+", "+Sg(ZP.transform(n))+")"},cG=oI(0,255),Ob=Object.assign(Object.assign({},qv),{transform:e=>Math.round(cG(e))}),Zf={test:JP("rgb","red"),parse:iI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ob.transform(e)+", "+Ob.transform(t)+", "+Ob.transform(r)+", "+Sg(ZP.transform(n))+")"};function dG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const JS={test:JP("#"),parse:dG,transform:Zf.transform},e3={test:e=>Zf.test(e)||JS.test(e)||ag.test(e),parse:e=>Zf.test(e)?Zf.parse(e):ag.test(e)?ag.parse(e):JS.parse(e),transform:e=>Kv(e)?e:e.hasOwnProperty("red")?Zf.transform(e):ag.transform(e)},aI="${c}",lI="${n}";function fG(e){var t,r,n,o;return isNaN(e)&&Kv(e)&&((r=(t=e.match(iv))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(ZS))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function sI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(ZS);n&&(r=n.length,e=e.replace(ZS,aI),t.push(...n.map(e3.parse)));const o=e.match(iv);return o&&(e=e.replace(iv,lI),t.push(...o.map(qv.parse))),{values:t,numColors:r,tokenised:e}}function uI(e){return sI(e).values}function cI(e){const{values:t,numColors:r,tokenised:n}=sI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function hG(e){const t=uI(e);return cI(e)(t.map(pG))}const dI={test:fG,parse:uI,createTransformer:cI,getAnimatableNone:hG},gG=new Set(["brightness","contrast","saturate","opacity"]);function vG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(iv)||[];if(!n)return e;const o=r.replace(n,"");let i=gG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const mG=/([a-z-]*)\(.*?\)/g,yG=Object.assign(Object.assign({},dI),{getAnimatableNone:e=>{const t=e.match(mG);return t?t.map(vG).join(" "):e}});bn.alpha=ZP;bn.color=e3;bn.complex=dI;bn.degrees=iG;bn.filter=yG;bn.hex=JS;bn.hsla=ag;bn.number=qv;bn.percent=bp;bn.progressPercentage=uG;bn.px=aG;bn.rgbUnit=Ob;bn.rgba=Zf;bn.scale=oG;bn.vh=lG;bn.vw=sG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const fI=1/60*1e3,bG=typeof performance<"u"?()=>performance.now():()=>Date.now(),pI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bG()),fI);function wG(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const w=v&&o,S=w?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),w&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=wG(()=>av=!0),e),{}),xG=Xv.reduce((e,t)=>{const r=t2[t];return e[t]=(n,o=!1,i=!1)=>(av||TG(),r.schedule(n,o,i)),e},{}),SG=Xv.reduce((e,t)=>(e[t]=t2[t].cancel,e),{}),CG=Xv.reduce((e,t)=>(e[t]=()=>t2[t].process(wp),e),{}),PG=e=>t2[e].process(wp),hI=e=>{av=!1,wp.delta=eC?fI:Math.max(Math.min(e-wp.timestamp,_G),1),wp.timestamp=e,tC=!0,Xv.forEach(PG),tC=!1,av&&(eC=!1,pI(hI))},TG=()=>{av=!0,eC=!0,tC||pI(hI)},OG=()=>wp;Cd.cancelSync=SG;Cd.default=xG;Cd.flushSync=CG;Cd.getFrameData=OG;Object.defineProperty(lt,"__esModule",{value:!0});var gI=KA,Vp=nI,Aa=bn,r2=Cd;function kG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var EG=kG(r2);const lv=(e,t,r)=>Math.min(Math.max(r,e),t),W_=.001,MG=.01,q6=10,RG=.05,NG=1;function AG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Vp.warning(e<=q6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=lv(RG,NG,a),e=lv(MG,q6,e/1e3),a<1?(o=d=>{const v=d*a,w=v*e,S=v-r,b=rC(d,a),P=Math.exp(-w);return W_-S/b*P},i=d=>{const w=d*a*e,S=w*r+r,b=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-w),y=rC(Math.pow(d,2),a);return(-o(d)+W_>0?-1:1)*((S-b)*P)/y}):(o=d=>{const v=Math.exp(-d*e),w=(d-r)*e+1;return-W_+v*w},i=d=>{const v=Math.exp(-d*e),w=(r-d)*(e*e);return v*w});const l=5/e,s=LG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const IG=12;function LG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function jG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Y6(e,FG)&&Y6(e,DG)){const r=AG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function n2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=gI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:w,isResolvedFromDuration:S}=jG(i),b=X6,P=X6;function y(){const C=v?-(v/1e3):0,g=r-t,f=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),f<1){const h=rC(c,f);b=m=>{const _=Math.exp(-f*c*m);return r-_*((C+f*c*g)/h*Math.sin(h*m)+g*Math.cos(h*m))},P=m=>{const _=Math.exp(-f*c*m);return f*c*_*(Math.sin(h*m)*(C+f*c*g)/h+g*Math.cos(h*m))-_*(Math.cos(h*m)*(C+f*c*g)-h*g*Math.sin(h*m))}}else if(f===1)b=h=>r-Math.exp(-c*h)*(g+(C+c*g)*h);else{const h=c*Math.sqrt(f*f-1);b=m=>{const _=Math.exp(-f*c*m),T=Math.min(h*m,300);return r-_*((C+f*c*g)*Math.sinh(T)+h*g*Math.cosh(T))/h}}}return y(),{next:C=>{const g=b(C);if(S)a.done=C>=w;else{const f=P(C)*1e3,c=Math.abs(f)<=n,h=Math.abs(r-g)<=o;a.done=c&&h}return a.value=a.done?r:g,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}n2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const X6=e=>0,t3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},o2=(e,t,r)=>-r*e+r*t+e;function $_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Q6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=$_(s,l,e+1/3),i=$_(s,l,e),a=$_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const zG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},VG=[Aa.hex,Aa.rgba,Aa.hsla],Z6=e=>VG.find(t=>t.test(e)),J6=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,r3=(e,t)=>{let r=Z6(e),n=Z6(t);Vp.invariant(!!r,J6(e)),Vp.invariant(!!n,J6(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Q6(o),r=Aa.rgba),n===Aa.hsla&&(i=Q6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=zG(o[s],i[s],l));return a.alpha=o2(o.alpha,i.alpha,l),r.transform(a)}},BG={x:0,y:0,z:0},nC=e=>typeof e=="number",UG=(e,t)=>r=>t(e(r)),n3=(...e)=>e.reduce(UG);function vI(e,t){return nC(e)?r=>o2(e,t,r):Aa.color.test(e)?r3(e,t):o3(e,t)}const mI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>vI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=vI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function ek(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=ek(e),o=ek(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?n3(mI(n.parsed,o.parsed),r):(Vp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},WG=(e,t)=>r=>o2(e,t,r);function $G(e){if(typeof e=="number")return WG;if(typeof e=="string")return Aa.color.test(e)?r3:o3;if(Array.isArray(e))return mI;if(typeof e=="object")return HG}function GG(e,t,r){const n=[],o=r||$G(e[0]),i=e.length-1;for(let a=0;ar(t3(e,t,n))}function qG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=t3(e[i],e[i+1],o);return t[i](l)}}function i3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Vp.invariant(i===t.length,"Both input and output ranges must be the same length"),Vp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=GG(t,n,o),l=i===2?KG(e,a):qG(e,a);return r?s=>l(lv(e[0],e[i-1],s)):l}const Qv=e=>t=>1-e(1-t),i2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yI=e=>t=>Math.pow(t,e),a3=e=>t=>t*t*((e+1)*t-e),bI=e=>{const t=a3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},wI=1.525,YG=4/11,XG=8/11,QG=9/10,_I=e=>e,l3=yI(2),ZG=Qv(l3),xI=i2(l3),SI=e=>1-Math.sin(Math.acos(e)),CI=Qv(SI),JG=i2(CI),s3=a3(wI),eK=Qv(s3),tK=i2(s3),rK=bI(wI),nK=4356/361,oK=35442/1805,iK=16061/1805,A1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-A1(1-e*2)):.5*A1(e*2-1)+.5;function sK(e,t){return e.map(()=>t||xI).splice(0,e.length-1)}function uK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function cK(e,t){return e.map(r=>r*t)}function Cg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=cK(n&&n.length===a.length?n:uK(a),o);function s(){return i3(l,a,{ease:Array.isArray(r)?r:sK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function PI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const w=-l*Math.exp(-v/n);return a.done=!(w>o||w<-o),a.value=a.done?d:d+w,a},flipTarget:()=>{}}}const tk={keyframes:Cg,spring:n2,decay:PI};function dK(e){if(Array.isArray(e.to))return Cg;if(tk[e.type])return tk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Cg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?n2:Cg}function TI(e,t,r=0){return e-t-r}function fK(e,t,r=0,n=!0){return n?TI(t+-e,t,r):t-(e-t)+r}function pK(e,t,r,n){return n?e>=t+r:e<=-r}const hK=e=>{const t=({delta:r})=>e(r);return{start:()=>EG.default.update(t,!0),stop:()=>r2.cancelSync.update(t)}};function OI(e){var t,r,{from:n,autoplay:o=!0,driver:i=hK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:w,onComplete:S,onRepeat:b,onUpdate:P}=e,y=gI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,g,f=0,c=y.duration,h,m=!1,_=!0,T;const k=dK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=i3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){f++,s==="reverse"?(_=f%2===0,a=fK(a,c,d,_)):(a=TI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,b&&b()}function A(){g.stop(),S&&S()}function F(B){if(_||(B=-B),a+=B,!m){const H=R.next(Math.max(0,a));h=H.value,T&&(h=T(h)),m=_?H.done:a<=0}P==null||P(h),m&&(f===0&&(c??(c=a)),f{w==null||w(),g.stop()}}}function kI(e,t){return t?e*(1e3/t):0}function gK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:w,onComplete:S,onStop:b}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;w==null||w(h),(m=c.onUpdate)===null||m===void 0||m.call(c,h)},onComplete:S,onStop:b}))}function f(c){g(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))f({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const h=C(c),m=h===r?-1:1;let _,T;const k=R=>{_=T,T=R,t=kI(R-_,r2.getFrameData().delta),(m===1&&R>h||m===-1&&RP==null?void 0:P.stop()}}const EI=e=>e*180/Math.PI,vK=(e,t=BG)=>EI(Math.atan2(t.y-e.y,t.x-e.x)),mK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},yK=e=>e,u3=(e=yK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},bK=u3(),wK=u3(Math.sqrt),MI=e=>e*Math.PI/180,I1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),oC=e=>I1(e)&&e.hasOwnProperty("z"),Ry=(e,t)=>Math.abs(e-t);function _K(e,t){if(nC(e)&&nC(t))return Ry(e,t);if(I1(e)&&I1(t)){const r=Ry(e.x,t.x),n=Ry(e.y,t.y),o=oC(e)&&oC(t)?Ry(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const xK=(e,t,r)=>(t=MI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),RI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),NI=(e,t,r,n=0)=>RI(e+r*(t-e)/Math.max(n,r)),SK=(e=50)=>{let t=0,r=0;return n=>{const o=r2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?NI(t,n,i,e):t;return r=o,t=a,a}},CK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function PK(e,t){return e/(1e3/t)}const TK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},AI=(e,t)=>1-3*t+3*e,II=(e,t)=>3*t-6*e,LI=e=>3*e,L1=(e,t,r)=>((AI(t,r)*e+II(t,r))*e+LI(t))*e,DI=(e,t,r)=>3*AI(t,r)*e*e+2*II(t,r)*e+LI(t),OK=1e-7,kK=10;function EK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=L1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>OK&&++l=RK?NK(a,w,e,r):S===0?w:EK(a,l,l+Ny,e,r)}return a=>a===0||a===1?a:L1(i(a),t,n)}const IK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return lv(0,1,o/e)};lt.angle=vK;lt.animate=OI;lt.anticipate=rK;lt.applyOffset=mK;lt.attract=bK;lt.attractExpo=wK;lt.backIn=s3;lt.backInOut=tK;lt.backOut=eK;lt.bounceIn=aK;lt.bounceInOut=lK;lt.bounceOut=A1;lt.circIn=SI;lt.circInOut=JG;lt.circOut=CI;lt.clamp=lv;lt.createAnticipate=bI;lt.createAttractor=u3;lt.createBackIn=a3;lt.createExpoIn=yI;lt.cubicBezier=AK;lt.decay=PI;lt.degreesToRadians=MI;lt.distance=_K;lt.easeIn=l3;lt.easeInOut=xI;lt.easeOut=ZG;lt.inertia=gK;lt.interpolate=i3;lt.isPoint=I1;lt.isPoint3D=oC;lt.keyframes=Cg;lt.linear=_I;lt.mirrorEasing=i2;lt.mix=o2;lt.mixColor=r3;lt.mixComplex=o3;lt.pipe=n3;lt.pointFromVector=xK;lt.progress=t3;lt.radiansToDegrees=EI;lt.reverseEasing=Qv;lt.smooth=SK;lt.smoothFrame=NI;lt.snap=CK;lt.spring=n2;lt.steps=IK;lt.toDecimal=RI;lt.velocityPerFrame=PK;lt.velocityPerSecond=kI;lt.wrap=TK;class LK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const G_=new WeakMap;function c3(e){return G_.has(e)||G_.set(e,{transforms:[],values:new Map}),G_.get(e)}function DK(e,t){return e.has(t)||e.set(t,new LK),e.get(t)}function FI(e,t){e.indexOf(t)===-1&&e.push(t)}function jI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const zI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",sv=e=>Array.isArray(e)&&!ds(e[0]),FK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function VI(e,t){return sv(e)?e[FK(0,e.length,t)]:e}const d3=(e,t,r)=>-r*e+r*t+e,f3=()=>{},rs=e=>e,a2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function p3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=a2(0,t,n);e.push(d3(r,1,o))}}function h3(e){const t=[0];return p3(t,e-1),t}function BI(e,t=h3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&p3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),D1=e=>typeof e=="object"&&!!e.createAnimation,jK=e=>typeof e=="function",g3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function HI(e,t){return t?e*(1e3/t):0}const zK=["","X","Y","Z"],VK=["translate","scale","rotate","skew"],Bp={x:"translateX",y:"translateY",z:"translateZ"},rk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},BK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:rk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:rk},Up=new Map,l2=e=>`--motion-${e}`,F1=["x","y","z"];VK.forEach(e=>{zK.forEach(t=>{F1.push(e+t),Up.set(l2(e+t),BK[e])})});const UK=(e,t)=>F1.indexOf(e)-F1.indexOf(t),HK=new Set(F1),s2=e=>HK.has(e),WK=(e,t)=>{Bp[t]&&(t=Bp[t]);const{transforms:r}=c3(e);FI(r,t),e.style.transform=WI(r)},WI=e=>e.sort(UK).reduce($K,"").trim(),$K=(e,t)=>`${e} ${t}(var(${l2(t)}))`,iC=e=>e.startsWith("--"),nk=new Set;function GK(e){if(!nk.has(e)){nk.add(e);try{const{syntax:t,initialValue:r}=Up.has(e)?Up.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const $I=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,KK=1e-7,qK=12;function YK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=$I(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>KK&&++lYK(i,0,1,e,r);return i=>i===0||i===1?i:$I(o(i),t,n)}const XK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return zI(0,1,o/e)},QK={ease:lg(.25,.1,.25,1),"ease-in":lg(.42,0,1,1),"ease-in-out":lg(.42,0,.58,1),"ease-out":lg(0,0,.58,1)},ZK=/\((.*?)\)/;function aC(e){if(jK(e))return e;if(UI(e))return lg(...e);const t=QK[e];if(t)return t;if(e.startsWith("steps")){const r=ZK.exec(e);if(r){const n=r[1].split(",");return XK(parseFloat(n[0]),n[1].trim())}}return rs}let JK=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,b)=>{this.resolve=S,this.reject=b}),n=n||Go.easing,D1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=sv(n)?rs:aC(n),this.updateDuration(o);const w=BI(r,s,sv(n)?n.map(aC):rs);this.tick=S=>{var b;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),g=y%1;!g&&y>=1&&(g=1),g===1&&C--;const f=C%2;(d==="reverse"||d==="alternate"&&f||d==="alternate-reverse"&&!f)&&(g=1-g);const c=P>=this.totalDuration?1:Math.min(g,1),h=w(this.easing(c));t(h),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(b=this.resolve)===null||b===void 0||b.call(this,h)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ok=e=>UI(e)?eq(e):e,eq=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ik=e=>document.createElement("div").animate(e,{duration:.001}),ak={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ik({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ik({opacity:[0,1]}).finished},K_={},Eb={};for(const e in ak)Eb[e]=()=>(K_[e]===void 0&&(K_[e]=ak[e]()),K_[e]);function tq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function j1(e){return Bp[e]&&(e=Bp[e]),s2(e)?l2(e):e}const Jf={get:(e,t)=>{t=j1(t);let r=iC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Up.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=j1(t),iC(t)?e.style.setProperty(t,r):e.style[t]=r}};function KI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function rq(){return window.__MOTION_DEV_TOOLS_RECORD}function u2(e,t,r,n={}){const o=rq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:w=Go.easing,direction:S,offset:b,allowWebkitAcceleration:P=!1}=n;const y=c3(e);let C=Eb.waapi();const g=s2(t);g&&WK(e,t);const f=j1(t),c=DK(y.values,f),h=Up.get(f);return KI(c.animation,!(D1(w)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=Jf.get(e,f))!==null&&T!==void 0?T:h==null?void 0:h.initialValue)!==null&&k!==void 0?k:0};let _=tq(GI(r),m);if(D1(w)){const T=w.createAnimation(_,m,g,f,c);w=T.easing,T.keyframes!==void 0&&(_=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(iC(f)&&(Eb.cssRegisterProperty()?GK(f):C=!1),C){h&&(_=_.map(R=>ds(R)?h.toDefaultUnit(R):R)),_.length===1&&(!Eb.partialKeyframes()||i)&&_.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:sv(w)?void 0:ok(w),direction:S,iterations:v+1,fill:"both"};a=e.animate({[f]:_,offset:b,easing:sv(w)?w.map(ok):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=_[_.length-1];a.finished.then(()=>{Jf.set(e,f,k),a.cancel()}).catch(f3),P||(a.playbackRate=1.000001)}else if(g){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(m()));const T=k=>{h&&(k=h.toDefaultUnit(k)),Jf.set(e,f,k)};a=new JK(T,_,Object.assign(Object.assign({},n),{duration:l,easing:w}))}else{const T=_[_.length-1];Jf.set(e,f,h&&ds(T)?h.toDefaultUnit(T):T)}return i&&o(e,t,_,{duration:l,delay:s,easing:w,repeat:v,offset:b},"motion-one"),c.setAnimation(a),a}}const v3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function c2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const nq=e=>e(),m3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(nq).filter(Boolean),duration:r,options:t},iq),oq=e=>e.animations[0],iq={get:(e,t)=>{const r=oq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(aq)).catch(f3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>KI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function lq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:sq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=aC(n)(s/d)*d}return t+s}}function sq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function qI(e,t,r){return typeof e=="function"?e(t,r):e}function uq(e,t,r={}){e=c2(e);const n=e.length,o=[];for(let i=0;it&&o.atu2(...i)).filter(Boolean);return m3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function hq(e,t={}){var{defaultOptions:r={}}=t,n=uh(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let w=0;w"0",re);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=qI(y.delay,c,f)||0,V=d+F,B=V+E;let{offset:H=h3(k.length)}=R;H.length===1&&H[0]===0&&(H[1]=1);const q=length-k.length;q>0&&p3(H,q),k.length===1&&k.unshift(null),dq(T,k,A,H,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((w,S)=>{for(const b in w){const P=w[b];P.sort(fq);const y=[],C=[],g=[];for(let f=0;ft/(2*Math.sqrt(e*r));function bq(e,t,r){return e=t||e>t&&r<=t}const YI=({stiffness:e=_p.stiffness,damping:t=_p.damping,mass:r=_p.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,w=yq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let b;if(w<1){const P=v*Math.sqrt(1-w*w);b=y=>o-Math.exp(-w*v*y)*((-i+w*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else b=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=b(P);const y=P===0?i:y3(b,P,s.current),C=Math.abs(y)<=a,g=Math.abs(o-s.current)<=l;return s.done=C&&g,s.hasReachedTarget=bq(n,o,s.current),s}},wq=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const w={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,b=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),f=T=>C+g(T),c=T=>{const k=g(T),R=f(T);w.done=Math.abs(k)<=d,w.current=w.done?C:R};let h,m;const _=T=>{S(w.current)&&(h=T,m=YI({from:w.current,to:b(w.current),velocity:y3(f,T,w.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return _(0),T=>{let k=!1;return!m&&h===void 0&&(k=!0,c(T),_(T)),h!==void 0&&T>h?(w.hasReachedTarget=!0,m(T-h)):(w.hasReachedTarget=!1,!k&&c(T),w)}},q_=10,_q=1e4;function xq(e,t=rs){let r,n=q_,o=e(0);const i=[t(o.current)];for(;!o.done&&n<_q;)o=e(n),i.push(t(o.done?o.target:o.current)),r===void 0&&o.hasReachedTarget&&(r=n),n+=q_;const a=n-q_;return i.length===1&&i.push(o.current),{keyframes:i,duration:a/1e3,overshootDuration:(r??a)/1e3}}function XI(e){const t=new WeakMap;return(r={})=>{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,xq(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var w,S;let b;const P=a.length;if(s&&P<=2&&a.every(Sq)){const C=a[P-1],g=P===1?null:a[0];let f=0,c=0;const h=v==null?void 0:v.generator;if(h){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=h(E).current;c=(w=g)!==null&&w!==void 0?w:A,(P===1||P===2&&a[0]===null)&&(f=y3(F=>h(F).current,E,A))}else c=(S=g)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,f,d==null?void 0:d.includes("scale")),_=i(m);b=Object.assign(Object.assign({},_),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else b={easing:"ease",duration:i(o(0,100)).overshootDuration};return b}}}}const Sq=e=>typeof e!="string",Cq=XI(YI),Pq=XI(wq),Tq={any:0,all:1};function QI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=c2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const w=a.get(v.target);if(v.isIntersecting!==!!w)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else w&&(w(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Tq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Mb=new WeakMap;let qs;function Oq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function kq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Mb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return Oq(e,r)}})})}function Eq(e){e.forEach(kq)}function Mq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(Eq))}function Rq(e,t){qs||Mq();const r=c2(e);return r.forEach(n=>{let o=Mb.get(n);o||(o=new Set,Mb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Mb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Rb=new Set;let Pg;function Nq(){Pg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Rb.forEach(r=>r(t))},window.addEventListener("resize",Pg)}function Aq(e){return Rb.add(e),Pg||Nq(),()=>{Rb.delete(e),!Rb.size&&Pg&&(Pg=void 0)}}function ZI(e,t){return typeof e=="function"?Aq(e):Rq(e,t)}const Iq=50,sk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Lq=()=>({time:0,x:sk(),y:sk()}),Dq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function uk(e,t,r,n){const o=r[t],{length:i,position:a}=Dq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=a2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Iq?0:HI(o.current-l,d)}function Fq(e,t,r){uk(e,"x",t,r),uk(e,"y",t,r),t.time=r}function jq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const JI={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},lC={start:0,center:.5,end:1};function ck(e,t,r=0){let n=0;if(lC[e]!==void 0&&(e=lC[e]),g3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const zq=[0,0];function Vq(e,t,r,n){let o=Array.isArray(e)?e:zq,i=0,a=0;return ds(e)?o=[e,e]:g3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,lC[e]?e:"0"]),i=ck(o[0],r,n),a=ck(o[1],t),i-a}const Bq={x:0,y:0};function Uq(e,t,r){let{offset:n=JI.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?jq(o,e):Bq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const w=n.length;for(let S=0;SHq(e,n.target,r),update:i=>{Fq(e,r,i),(n.offset||n.target)&&Uq(e,r,n)},notify:typeof t=="function"?()=>t(r):$q(t,r[o])}}function $q(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const z0=new WeakMap,dk=new WeakMap,Y_=new WeakMap,fk=e=>e===document.documentElement?window:e;function Gq(e,t={}){var{container:r=document.documentElement}=t,n=uh(t,["container"]);let o=Y_.get(r);o||(o=new Set,Y_.set(r,o));const i=Lq(),a=Wq(r,e,i,n);if(o.add(a),!z0.has(r)){const d=()=>{const w=performance.now();for(const S of o)S.measure();for(const S of o)S.update(w);for(const S of o)S.notify()};z0.set(r,d);const v=fk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&dk.set(r,ZI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=z0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=Y_.get(r);if(!v||(v.delete(a),v.size))return;const w=z0.get(r);z0.delete(r),w&&(fk(r).removeEventListener("scroll",w),(d=dk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",w))}}function Kq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!qq(e,t):e!==t}function qq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),Jq=e=>e.animateUpdates(),hk=e=>e.next(),gk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function sC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function vk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const eY={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=uh(n,["once"]);return QI(e,a=>{if(t(),vk(e,"viewenter",a),!o)return l=>{r(),vk(e,"viewleave",l)}},i)}},mk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),sC(e,t,n))},tY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=mk(e,"hoverstart",t),o=mk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},rY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),sC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),sC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Nb={inView:eY,hover:tY,press:rY},yk=["initial","animate",...Object.keys(Nb),"exit"],uC=new WeakMap;function nY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of yk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=pk(e[l]||a[l],e.variants)||{},d=uh(s,["transition"]);const v=Object.assign({},d);function*w(){var y,C;const g=d;d={};const f={};for(const T of yk){if(!o[T])continue;const k=pk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],f[R]=v3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(g)]),h=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),Kq(g[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=Jf.get(r,T)),h.push(u2(r,T,d[T],f[T])))}),yield;const m=h.map(T=>T()).filter(Boolean);if(!m.length)return;const _=d;r.dispatchEvent(gk("motionstart",_)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(gk("motioncomplete",_))}).catch(f3)}const S=(y,C)=>()=>{o[y]=C,X_(P)},b=()=>{for(const y in Nb){const C=Nb[y].isActive(e),g=i[y];C&&!g?i[y]=Nb[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&g&&(g(),delete i[y])}},P={update:y=>{r&&(e=y,b(),X_(P))},setActive:(y,C)=>{r&&(o[y]=C,X_(P))},animateUpdates:w,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,uC.set(r,P),b(),()=>{uC.delete(r),Qq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function eL(e){const t={},r=[];for(let n in e){const o=e[n];s2(n)&&(Bp[n]&&(n=Bp[n]),r.push(n),n=l2(n));let i=Array.isArray(o)?o[0]:o;const a=Up.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=WI(r)),t}const oY=e=>`-${e.toLowerCase()}`,iY=e=>e.replace(/[A-Z]/g,oY);function aY(e={}){const t=eL(e);let r="";for(const n in t)r+=n.startsWith("--")?n:iY(n),r+=`: ${t[n]}; `;return r}const lY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:JI,animate:uq,animateStyle:u2,createMotionState:nY,createStyleString:aY,createStyles:eL,getAnimationData:c3,getStyleName:j1,glide:Pq,inView:QI,mountedStates:uC,resize:ZI,scroll:Gq,spring:Cq,stagger:lq,style:Jf,timeline:pq,withControls:m3},Symbol.toStringTag,{value:"Module"})),sY=Lv(lY);function uY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dY=uY(function(e){return cY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const fY=Object.freeze(Object.defineProperty({__proto__:null,default:dY},Symbol.toStringTag,{value:"Module"})),pY=Lv(fY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=KA,r=eG,n=nI,o=bn,i=lt,a=Cd,l=sY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),w=s(r),S=s(a),b=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:b(["layout","layoutId","drag"]),animation:b(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:b(["exit"]),drag:b(["drag","dragControls"]),focus:b(["whileFocus"]),hover:b(["whileHover","onHoverStart","onHoverEnd"]),tap:b(["whileTap","onTap","onTapStart","onTapCancel"]),pan:b(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:b(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),g=Object.keys(P),f=g.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Tt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var _t={};function ir(x){Object.assign(_t,x)}var Wt=["","X","Y","Z"],Lt=["translate","scale","rotate","skew"],Zt=["transformPerspective","x","y","z"];Lt.forEach(function(x){return Wt.forEach(function(M){return Zt.push(x+M)})});function Dr(x,M){return Zt.indexOf(x)-Zt.indexOf(M)}var ln=new Set(Zt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function rr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||rr(x)||(I||D!==void 0)&&(!!_t[x]||x==="opacity")}var qt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,U=G===void 0?!0:G,Z=M.allowTransformNone,ee=Z===void 0?!0:Z,ie="";$.sort(Dr);for(var de=!1,fe=$.length,ge=0;ge"u"?K5:Rh;ee(Z,U.current,M,G)}var G5={some:0,all:1};function Rh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,U=G===void 0?"some":G,Z=D.once;r.useEffect(function(){if(x){var ee={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof U=="number"?U:G5[U]},ie=function(de){var fe,ge=de.isIntersecting;if(M.isInView!==ge&&(M.isInView=ge,!(Z&&!ge&&M.hasEnteredView))){ge&&(M.hasEnteredView=!0),(fe=I.animationState)===null||fe===void 0||fe.setActive(e.AnimationType.InView,ge);var u=I.getProps(),p=ge?u.onViewportEnter:u.onViewportLeave;p==null||p(de)}};return Jr(I.getInstance(),ee,ie)}},[x,z,$,U])}function K5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var U=I.getProps().onViewportEnter;U==null||U(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Mh),tap:ii(H5),focus:ii(Ue),hover:ii(ym)},q5=0,Y5=function(){return q5++},jo=function(){return ue(Y5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Nh(r.useContext(T))}function Nh(x){return x===null?!0:x.isPresent}function Ah(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Et,he=Array.isArray(Ae)?Ae:[Ae],Pe=he.reduce($,{});bt===!1&&(Pe={});var Ve=ze.prevResolvedValues,et=Ve===void 0?{}:Ve,mt=t.__assign(t.__assign({},et),Pe),ct=function(rt){we=!0,O.delete(rt),ze.needsAnimating[rt]=!0};for(var vt in mt){var ft=Pe[vt],Ne=et[vt];N.hasOwnProperty(vt)||(ft!==Ne?yt(ft)&&yt(Ne)?!Ah(ft,Ne)||On?ct(vt):ze.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):ze.protectedKeys[vt]=!0)}ze.prevProp=Ae,ze.prevResolvedValues=Pe,ze.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(we=!1),we&&!Jt&&p.push.apply(p,t.__spreadArray([],t.__read(he.map(function(rt){return{animation:rt,options:t.__assign({type:Me},ie)}})),!1))},K=0;K=3;if(!(!ge&&!u)){var p=fe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},p),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;ge||(L&&L(z.lastMoveEvent,fe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,fe)}}},this.handlePointerMove=function(fe,ge){if(z.lastMoveEvent=fe,z.lastMoveEventInfo=Vo(ge,z.transformPagePoint),At(fe)&&fe.buttons===0){z.handlePointerUp(fe,ge);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(fe,ge){z.end();var u=z.handlers,p=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(ge,z.transformPagePoint),z.history);z.startEvent&&p&&p(fe,N),O&&O(fe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var U=wo(M),Z=Vo(U,this.transformPagePoint),ee=Z.point,ie=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},ee),{timestamp:ie})];var de=I.onSessionStart;de&&de(M,Ja(Z,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Tm(M)),velocity:fr(M,.1)}}function Tm(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Bh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Uh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Hh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function Om(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function km(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function Wh(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return Wh(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function $h(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Gh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var U,Z,ee=0;eeM?I="y":Math.abs(x.x)>M&&(I="x"),I}function J5(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new Q5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Am(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,U=r.useRef(null),Z=r.useContext(h).transformPagePoint,ee={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,fe){U.current=null,D&&D(de,fe)}};r.useEffect(function(){U.current!==null&&U.current.updateHandlers(ee)});function ie(de){U.current=new Nl(de,ee,{transformPagePoint:Z})}Ol($,"pointerdown",G&&ie),Ya(function(){return U.current&&U.current.end()})}var Yh={pan:ii(Am),drag:ii(J5)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,U=D[G];($=M[z])===null||$===void 0||$.call(M),U&&(M[z]=I[G](U))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,ee=zm(M,x,U);return $.length&&$.forEach(function(ie){var de=t.__read(ie,2),fe=de[0],ge=de[1];x.getValue(fe).set(ge)}),x.syncRender(),Z!==null&&window.scrollTo({top:Z}),{target:ee,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Bm(x,M,I,D){return Qh(M)?Vm(x,M,I,D):{target:M,transitionEnd:D}}var Um=function(x,M,I,D){var z=Xh(x,M,D);return M=z.target,D=z.transitionEnd,Bm(x,M,I,D)};function Hm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Hm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return qh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,U=t.__rest(M,["transition","transitionEnd"]),Z=Co(U,$||{},x);if(z&&(G&&(G=z(G)),U&&(U=z(U)),Z&&(Z=z(Z))),D){cc(x,U,Z);var ee=Um(x,U,Z,G);G=ee.transitionEnd,U=ee.target}return t.__assign({transition:$,transitionEnd:G},U)},scrapeMotionValuesFromProps:Ot,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Qe},Wm=uf(ff),t0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=We.has(M)?M:De(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Rt,build:function(x,M,I,D,z){pe(M,I,D,z.transformTemplate)},render:$e})),pf=function(x,M){return Tt(x)?t0(M,{enableHardwareAcceleration:!1}):Wm(M,{enableHardwareAcceleration:!0})};function r0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=r0(x,M.target.x),D=r0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",$m={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(p){return G.push(p),hf}));var U=o.complex.parse(x);if(U.length>5)return z;var Z=o.complex.createTransformer(x),ee=typeof U[0]!="number"?1:0,ie=D.x.scale*I.x,de=D.y.scale*I.y;U[0+ee]/=ie,U[1+ee]/=de;var fe=i.mix(ie,de,.5);typeof U[2+ee]=="number"&&(U[2+ee]/=fe),typeof U[3+ee]=="number"&&(U[3+ee]/=fe);var ge=Z(U);if($){var u=0;ge=ge.replace(hf,function(){var p=G[u];return u++,p})}return ge}},n0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,U=D.layoutId,Z=z.projection;ir(r_),Z&&($!=null&&$.group&&$.group.add(Z),G!=null&&G.register&&U&&G.register(Z),Z.root.didUpdate(),Z.addEventListener("animationComplete",function(){I.safeToRemove()}),Z.setOptions(t.__assign(t.__assign({},Z.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,U=z.drag,Z=z.isPresent,ee=G.projection;return ee&&(ee.isPresent=Z,U||I.layoutDependency!==$||$===void 0?ee.willUpdate():this.safeToRemove(),I.isPresent!==Z&&(Z?ee.promote():ee.relegate()||S.default.postRender(function(){var ie;!((ie=ee.getStack())===null||ie===void 0)&&ie.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(w.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(xe);return w.default.createElement(n0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Te),isPresent:I,safeToRemove:D}))}var r_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:$m},o0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=qt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var i0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=i0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Gm=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,U,Z,ee;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((U=M.opacity)!==null&&U!==void 0?U:1,0,Sc(D))):$&&(x.opacity=i.mix((Z=M.opacity)!==null&&Z!==void 0?Z:1,(ee=I.opacity)!==null&&ee!==void 0?ee:1,D));for(var ie=0;ieM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var U=i.mix(G.min,G.max,M/100);M=U-G.min}if(typeof M=="number"){var Z=i.mix($.min,$.max,D);x===$&&(Z-=M),x.min=Vs(x.min,M,I,Z,z),x.max=Vs(x.max,M,I,Z,z)}}function Km(x,M,I,D,z){var $=t.__read(I,3),G=$[0],U=$[1],Z=$[2];Tn(x,M[G],M[U],M[Z],M.scale,D,z)}var n_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){Km(x.x,M,n_,I==null?void 0:I.x,D==null?void 0:D.x),Km(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function qm(x){return x.translate===0&&x.scale===1}function He(x){return qm(x.x)&&qm(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var l0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Ih(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Ym="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Xm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,U=I.rotateX,Z=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),U&&($+="rotateX(".concat(U,"deg) ")),Z&&($+="rotateY(".concat(Z,"deg) "))}var ee=x.x.scale*M.x,ie=x.y.scale*M.y;return $+="scale(".concat(ee,", ").concat(ie,")"),$===Ym?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Ih(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function s0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(U,Z,ee){var ie=this;Z===void 0&&(Z={}),ee===void 0&&(ee=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ie.isUpdating&&(ie.isUpdating=!1,ie.clearAllSnapshots())},this.updateProjection=function(){ie.nodes.forEach($i),ie.nodes.forEach(c0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=U,this.latestValues=Z,this.root=ee?ee.root||ee:this,this.path=ee?t.__spreadArray(t.__spreadArray([],t.__read(ee.path),!1),[ee],!1):[],this.parent=ee,this.depth=ee?ee.depth+1:0,U&&this.root.registerPotentialNode(U,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function f0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){f0(x.x),f0(x.y)}var _f=s0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=s0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Yh),o0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function p0(x){return Ye(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var h0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,U=ue(i_),Z=jo(),ee=r.useMemo(function(){return{id:Z,initial:I,isPresent:D,custom:$,onExitComplete:function(ie){var de,fe;U.set(ie,!0);try{for(var ge=t.__values(U.values()),u=ge.next();!u.done;u=ge.next()){var p=u.value;if(!p)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(fe=ge.return)&&fe.call(ge)}finally{if(de)throw de.error}}z==null||z()},register:function(ie){return U.set(ie,!1),function(){return U.delete(ie)}}}},G?void 0:[D]);return r.useMemo(function(){U.forEach(function(ie,de){return U.set(de,!1)})},[D]),v.useEffect(function(){!D&&!U.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:ee},M)};function i_(){return new Map}var ba=function(x){return x.key||""};function g0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var St=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,U=x.presenceAffectsLayout,Z=U===void 0?!0:U,ee=t.__read(Mc(),1),ie=ee[0],de=r.useContext(xe).forceRender;de&&(ie=de);var fe=xf(),ge=Pr(M),u=ge,p=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,g0(ge,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),p.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Me){return v.createElement(Rc,{key:ba(Me),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:Z},Me)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=ge.map(ba),le=j.length,me=0;me0?1:-1,G=x[z+$];if(!G)return x;var U=x[z],Z=G.layout,ee=i.mix(Z.min,Z.max,.5);return $===1&&U.layout.max+I>ee||$===-1&&U.layout.min+I.001?1/x:d_},Ef=!1;function f_(x){var M=Ki(1),I=Ki(1),D=_();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=St,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=xe,e.LazyMotion=v0,e.MotionConfig=Sf,e.MotionConfigContext=h,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Te,e.addPointerEvent=Tl,e.addScaleCorrector=ir,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=p0,e.createMotionComponent=Ye,e.domAnimation=b0,e.domMax=w0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Eh,e.isMotionValue=qt,e.isValidMotionProp=Dn,e.m=h0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=l_,e.useAnimationControls=iy,e.useAnimationFrame=S0,e.useCycle=ay,e.useDeprecatedAnimatedState=cy,e.useDeprecatedInvertedScale=f_,e.useDomEvent=Nt,e.useDragControls=Ul,e.useElementScroll=x0,e.useForceUpdate=Mc,e.useInView=ly,e.useInstantLayoutTransition=P0,e.useInstantTransition=u_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=_0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=sy,e.useScroll=kf,e.useSpring=a_,e.useTime=C0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=_,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(X),n=An,o=S(pt),i=S(Xn),a=S(Je),l=Ze,s=Jw,d=qe,v=$v;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.className,h=g.children,m=b(g,["className","children"]),_=(0,s.useAccordion)(),T=_.open,k=_.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,w({},m,{ref:f,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),h)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(PA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return g}});var r=b(X),n=b(pt),o=Ze,i=b(Je),a=qe,l=Jw,s=$v,d=CA,v=PA;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.open,m=f.icon,_=f.animate,T=f.className,k=f.disabled,R=f.children,E=P(f,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,_=_??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),w({},(0,i.default)(V.disabled),k)),T),H=r.default.useMemo(function(){return{open:h,icon:m,animate:_,disabled:k}},[h,m,_,k]);return r.default.createElement(l.AccordionContextProvider,{value:H},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var g=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(JR);var tL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var d2={},dh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(dh),i=S(pt),a=Ze,l=S(Sr),s=S(Je),d=qe,v=_d;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.size,m=g.color,_=g.ripple,T=g.className,k=g.children;g.fullWidth;var R=b(g,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,H=V.variants,q=V.sizes;c=c??F.variant,h=h??F.size,m=m??F.color,_=_??F.ripple,T=(0,a.twMerge)(F.className||"",T);var re=_!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(H[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),Y=(0,s.default)(q[(0,l.default)(A.sizes,h,"md")]),te=(0,a.twMerge)((0,i.default)(Q,Y,W),T);return r.default.createElement("button",w({},R,{ref:f,className:te,type:R.type||"button",onMouseDown:function(ne){var se=R==null?void 0:R.onMouseDown;return _&&re.create(ne,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof se=="function"&&se(ne)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(d2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{Alert:function(){return g},default:function(){return f}});var r=P(X),n=P(nt),o=An,i=P(pt),a=P(Xn),l=Ze,s=P(Sr),d=P(Je),v=qe,w=NP,S=P(d2);function b(){return b=Object.assign||function(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,h){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(h.indexOf(T)>=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,h){var m=c.variant,_=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),H=(0,v.useTheme)().alert,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.variants;m=m??q.variant,_=_??q.color,A=A??q.animate,k=k??q.open,R=R??q.action,E=E??q.onClose,F=(0,l.twMerge)(q.className||"",F);var te=(0,d.default)(W.alert),ne=(0,d.default)(W.action),se=(0,d.default)(Y[(0,s.default)(re.variants,m,"filled")][(0,s.default)(re.colors,_,"gray")]),ve=(0,l.twMerge)((0,i.default)(te,se),F),ye=(0,i.default)(ne),ce={unmount:{opacity:0},mount:{opacity:1}},J=(0,a.default)(ce,A),oe=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,b({},B,{ref:h,role:"alert",className:"".concat(ve," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:J}),T&&oe,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:ye},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),icon:w.propTypesIcon,open:w.propTypesOpen,action:w.propTypesAction,onClose:w.propTypesOnClose,animate:w.propTypesAnimate,className:w.propTypesClassName,children:w.propTypesChildren},g.displayName="MaterialTailwind.Alert";var f=g})(tL);var rL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=Ze,a=S(Sr),l=S(Je),s=qe,d=AP;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.size,m=g.className,_=g.color,T=g.withBorder,k=b(g,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,H=F.sizes,q=F.borderColor;c=c??A.variant,h=h??A.size,T=T??A.withBorder,_=_??A.color,m=(0,i.twMerge)(A.className||"",m);var re=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(H[(0,a.default)(E.sizes,h,"md")]),W=(0,l.default)(q[(0,a.default)(E.colors,_,"gray")]),Y,te=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),re,Q,(Y={},v(Y,(0,l.default)(V.withBorder),T),v(Y,W,T),Y)),m);return r.default.createElement("img",w({},k,{ref:f,className:te}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(rL);var nL={},oL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(nt);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(oL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(X),n=v(pt),o=Ze,i=v(Je),a=qe,l=oL;function s(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function d(){return d=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=(0,r.forwardRef)(function(g,f){var c=g.separator,h=g.fullWidth,m=g.className,_=g.children,T=b(g,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,h=h??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),h)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:f,className:F}),r.Children.map(_,function(H,q){if((0,r.isValidElement)(H)){var re;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),H==null||(re=H.props)===null||re===void 0?void 0:re.disabled))},H,q!==r.Children.count(_)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(nL);var iL={},b3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Spinner:function(){return C},default:function(){return g}});var r=w(nt),n=b(X),o=w(pt),i=Ze,a=w(Sr),l=w(Je),s=qe,d=GP;function v(){return v=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=(0,n.forwardRef)(function(f,c){var h=f.color,m=f.className,_=P(f,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;h=h??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,h,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),H,q;return n.default.createElement("svg",v({},_,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(H=_==null?void 0:_.width)!==null&&H!==void 0?H:24,height:(q=_==null?void 0:_.height)!==null&&q!==void 0?q:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var g=C})(b3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{Button:function(){return g},default:function(){return f}});var r=P(X),n=P(nt),o=P(dh),i=P(pt),a=Ze,l=P(Sr),s=P(Je),d=qe,v=P(b3),w=_d;function S(c,h,m){return h in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}function b(){return b=Object.assign||function(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,h){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(h.indexOf(T)>=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,h){var m=c.variant,_=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,H=B.valid,q=B.defaultProps,re=B.styles,Q=re.base,W=re.variants,Y=re.sizes;m=m??q.variant,_=_??q.size,T=T??q.color,k=k??q.fullWidth,R=R??q.ripple,E=(0,a.twMerge)(q.className||"",E);var te=R!==void 0&&new o.default,ne=(0,s.default)(Q.initial),se=(0,s.default)(W[(0,l.default)(H.variants,m,"filled")][(0,l.default)(H.colors,T,"gray")]),ve=(0,s.default)(Y[(0,l.default)(H.sizes,_,"md")]),ye=(0,a.twMerge)((0,i.default)(ne,ve,se,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":_==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":_==="lg"})),J;return r.default.createElement("button",b({},V,{disabled:(J=V.disabled)!==null&&J!==void 0?J:F,ref:h,className:ye,type:V.type||"button",onMouseDown:function(oe){var ue=V==null?void 0:V.onMouseDown;return R&&te.create(oe,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(oe)}}),F&&r.default.createElement(v.default,{className:ce}),A)});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),size:n.default.oneOf(w.propTypesSize),color:n.default.oneOf(w.propTypesColor),fullWidth:w.propTypesFullWidth,ripple:w.propTypesRipple,className:w.propTypesClassName,children:w.propTypesChildren,loading:w.propTypesLoading},g.displayName="MaterialTailwind.Button";var f=g})(iL);var aL={},lL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=Ze,a=S(Sr),l=S(Je),s=qe,d=xd;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.color,m=g.shadow,_=g.floated,T=g.className,k=g.children,R=b(g,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,H=F.variants;c=c??A.variant,h=h??A.color,m=m??A.shadow,_=_??A.floated,T=(0,i.twMerge)(A.className||"",T);var q=(0,l.default)(B.initial),re=(0,l.default)(H[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,h,"white")]),Q=(0,i.twMerge)((0,o.default)(q,re,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),_)),T);return r.default.createElement("div",w({},R,{ref:f,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(lL);var sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return b}});var r=d(X),n=d(pt),o=Ze,i=d(Je),a=qe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,h=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(h.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},f,{ref:y,className:_}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var b=S})(sL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{CardFooter:function(){return b},default:function(){return P}});var r=v(X),n=v(pt),o=Ze,i=v(Je),a=qe,l=xd;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.divider,f=y.className,c=y.children,h=w(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,_=m.defaultProps,T=m.styles.base;g=g??_.divider,f=(0,o.twMerge)(_.className||"",f);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),g)),f);return r.default.createElement("div",d({},h,{ref:C,className:k}),c)});b.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},b.displayName="MaterialTailwind.CardFooter";var P=b})(uL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return f},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return w.CardFooter},default:function(){return c}});var r=y(X),n=y(nt),o=y(pt),i=Ze,a=y(Sr),l=y(Je),s=qe,d=lL,v=sL,w=uL,S=xd;function b(h,m,_){return m in h?Object.defineProperty(h,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):h[m]=_,h}function P(){return P=Object.assign||function(h){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function g(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}var f=r.default.forwardRef(function(h,m){var _=h.variant,T=h.color,k=h.shadow,R=h.className,E=h.children,A=C(h,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,H=F.valid,q=B.base,re=B.variants;_=_??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(q.initial),W=(0,l.default)(re[(0,a.default)(H.variants,_,"filled")][(0,a.default)(H.colors,T,"white")]),Y=(0,i.twMerge)((0,o.default)(Q,W,b({},(0,l.default)(q.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:Y}),E)});f.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},f.displayName="MaterialTailwind.Card";var c=Object.assign(f,{Header:d.CardHeader,Body:v.CardBody,Footer:w.CardFooter})})(aL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Checkbox:function(){return C},default:function(){return g}});var r=b(X),n=b(nt),o=b(dh),i=b(pt),a=Ze,l=b(Sr),s=b(Je),d=qe,v=Sd;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.color,m=f.label,_=f.icon,T=f.ripple,k=f.className,R=f.disabled,E=f.containerProps,A=f.labelProps,F=f.iconProps,V=f.inputRef,B=P(f,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().checkbox,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.colors,te=r.default.useId();h=h??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ye=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(re.colors,h,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||te,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:ye,id:B.id||te})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||te}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var g=C})(cL);var dL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{Chip:function(){return g},default:function(){return f}});var r=P(X),n=P(nt),o=An,i=P(pt),a=P(Xn),l=Ze,s=P(Sr),d=P(Je),v=qe,w=VP,S=P(d2);function b(){return b=Object.assign||function(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,h){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(h.indexOf(T)>=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,h){var m=c.variant,_=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,H=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),q=(0,v.useTheme)().chip,re=q.defaultProps,Q=q.valid,W=q.styles,Y=W.base,te=W.variants,ne=W.sizes;m=m??re.variant,_=_??re.size,T=T??re.color,F=F??re.animate,R=R??re.open,A=A??re.action,E=E??re.onClose,V=(0,l.twMerge)(re.className||"",V);var se=(0,d.default)(Y.chip),ve=(0,d.default)(Y.action),ye=(0,d.default)(Y.icon),ce=(0,d.default)(te[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),J=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].chip),oe=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].action),ue=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].icon),Se=(0,l.twMerge)((0,i.default)(se,ce,J),V),Ce=(0,i.default)(ve,oe),Re=(0,i.default)(ye,ue),xe=(0,i.default)({"ml-4":k&&_==="sm","ml-[18px]":k&&_==="md","ml-5":k&&_==="lg","mr-5":E}),Te={unmount:{opacity:0},mount:{opacity:1}},Oe=(0,a.default)(Te,F),je=r.default.createElement("div",{className:Re},k),Ye=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(Ye,null,R&&r.default.createElement(o.m.div,b({},H,{ref:h,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Oe}),k&&je,r.default.createElement("span",{className:xe},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),size:n.default.oneOf(w.propTypesSize),color:n.default.oneOf(w.propTypesColor),icon:w.propTypesIcon,open:w.propTypesOpen,onClose:w.propTypesOnClose,action:w.propTypesAction,animate:w.propTypesAnimate,className:w.propTypesClassName,value:w.propTypesValue},g.displayName="MaterialTailwind.Chip";var f=g})(dL);var fL={},pL={exports:{}},jt={};/** + */var Gv=Symbol.for("react.element"),j$=Symbol.for("react.portal"),z$=Symbol.for("react.fragment"),V$=Symbol.for("react.strict_mode"),B$=Symbol.for("react.profiler"),U$=Symbol.for("react.provider"),H$=Symbol.for("react.context"),W$=Symbol.for("react.forward_ref"),$$=Symbol.for("react.suspense"),G$=Symbol.for("react.memo"),K$=Symbol.for("react.lazy"),$6=Symbol.iterator;function q$(e){return e===null||typeof e!="object"?null:(e=$6&&e[$6]||e["@@iterator"],typeof e=="function"?e:null)}var qA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YA=Object.assign,XA={};function ch(e,t,r){this.props=e,this.context=t,this.refs=XA,this.updater=r||qA}ch.prototype.isReactComponent={};ch.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ch.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function QA(){}QA.prototype=ch.prototype;function qP(e,t,r){this.props=e,this.context=t,this.refs=XA,this.updater=r||qA}var YP=qP.prototype=new QA;YP.constructor=qP;YA(YP,ch.prototype);YP.isPureReactComponent=!0;var G6=Array.isArray,ZA=Object.prototype.hasOwnProperty,XP={current:null},JA={key:!0,ref:!0,__self:!0,__source:!0};function eI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)ZA.call(t,n)&&!JA.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Sg=e=>e%1?Number(e.toFixed(5)):e,iv=/(-)?([\d]*\.?[\d])+/g,ZS=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,rG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Kv(e){return typeof e=="string"}const qv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ZP=Object.assign(Object.assign({},qv),{transform:nI(0,1)}),nG=Object.assign(Object.assign({},qv),{default:1}),Yv=e=>({test:t=>Kv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oG=Yv("deg"),bp=Yv("%"),iG=Yv("px"),aG=Yv("vh"),lG=Yv("vw"),sG=Object.assign(Object.assign({},bp),{parse:e=>bp.parse(e)/100,transform:e=>bp.transform(e*100)}),JP=(e,t)=>r=>!!(Kv(r)&&rG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),oI=(e,t,r)=>n=>{if(!Kv(n))return n;const[o,i,a,l]=n.match(iv);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},ag={test:JP("hsl","hue"),parse:oI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bp.transform(Sg(t))+", "+bp.transform(Sg(r))+", "+Sg(ZP.transform(n))+")"},uG=nI(0,255),Ob=Object.assign(Object.assign({},qv),{transform:e=>Math.round(uG(e))}),Zf={test:JP("rgb","red"),parse:oI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ob.transform(e)+", "+Ob.transform(t)+", "+Ob.transform(r)+", "+Sg(ZP.transform(n))+")"};function cG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const JS={test:JP("#"),parse:cG,transform:Zf.transform},e3={test:e=>Zf.test(e)||JS.test(e)||ag.test(e),parse:e=>Zf.test(e)?Zf.parse(e):ag.test(e)?ag.parse(e):JS.parse(e),transform:e=>Kv(e)?e:e.hasOwnProperty("red")?Zf.transform(e):ag.transform(e)},iI="${c}",aI="${n}";function dG(e){var t,r,n,o;return isNaN(e)&&Kv(e)&&((r=(t=e.match(iv))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(ZS))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function lI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(ZS);n&&(r=n.length,e=e.replace(ZS,iI),t.push(...n.map(e3.parse)));const o=e.match(iv);return o&&(e=e.replace(iv,aI),t.push(...o.map(qv.parse))),{values:t,numColors:r,tokenised:e}}function sI(e){return lI(e).values}function uI(e){const{values:t,numColors:r,tokenised:n}=lI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function pG(e){const t=sI(e);return uI(e)(t.map(fG))}const cI={test:dG,parse:sI,createTransformer:uI,getAnimatableNone:pG},hG=new Set(["brightness","contrast","saturate","opacity"]);function gG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(iv)||[];if(!n)return e;const o=r.replace(n,"");let i=hG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const vG=/([a-z-]*)\(.*?\)/g,mG=Object.assign(Object.assign({},cI),{getAnimatableNone:e=>{const t=e.match(vG);return t?t.map(gG).join(" "):e}});bn.alpha=ZP;bn.color=e3;bn.complex=cI;bn.degrees=oG;bn.filter=mG;bn.hex=JS;bn.hsla=ag;bn.number=qv;bn.percent=bp;bn.progressPercentage=sG;bn.px=iG;bn.rgbUnit=Ob;bn.rgba=Zf;bn.scale=nG;bn.vh=aG;bn.vw=lG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const dI=1/60*1e3,yG=typeof performance<"u"?()=>performance.now():()=>Date.now(),fI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(yG()),dI);function bG(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const w=v&&o,S=w?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),w&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=bG(()=>av=!0),e),{}),_G=Xv.reduce((e,t)=>{const r=t2[t];return e[t]=(n,o=!1,i=!1)=>(av||PG(),r.schedule(n,o,i)),e},{}),xG=Xv.reduce((e,t)=>(e[t]=t2[t].cancel,e),{}),SG=Xv.reduce((e,t)=>(e[t]=()=>t2[t].process(wp),e),{}),CG=e=>t2[e].process(wp),pI=e=>{av=!1,wp.delta=eC?dI:Math.max(Math.min(e-wp.timestamp,wG),1),wp.timestamp=e,tC=!0,Xv.forEach(CG),tC=!1,av&&(eC=!1,fI(pI))},PG=()=>{av=!0,eC=!0,tC||fI(pI)},TG=()=>wp;Cd.cancelSync=xG;Cd.default=_G;Cd.flushSync=SG;Cd.getFrameData=TG;Object.defineProperty(lt,"__esModule",{value:!0});var hI=GA,Vp=rI,Aa=bn,r2=Cd;function OG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var kG=OG(r2);const lv=(e,t,r)=>Math.min(Math.max(r,e),t),W_=.001,EG=.01,q6=10,MG=.05,RG=1;function NG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Vp.warning(e<=q6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=lv(MG,RG,a),e=lv(EG,q6,e/1e3),a<1?(o=d=>{const v=d*a,w=v*e,S=v-r,_=rC(d,a),P=Math.exp(-w);return W_-S/_*P},i=d=>{const w=d*a*e,S=w*r+r,_=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-w),y=rC(Math.pow(d,2),a);return(-o(d)+W_>0?-1:1)*((S-_)*P)/y}):(o=d=>{const v=Math.exp(-d*e),w=(d-r)*e+1;return-W_+v*w},i=d=>{const v=Math.exp(-d*e),w=(r-d)*(e*e);return v*w});const l=5/e,s=IG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const AG=12;function IG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function FG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Y6(e,DG)&&Y6(e,LG)){const r=NG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function n2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=hI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:w,isResolvedFromDuration:S}=FG(i),_=X6,P=X6;function y(){const C=v?-(v/1e3):0,g=r-t,h=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),h<1){const p=rC(c,h);_=m=>{const b=Math.exp(-h*c*m);return r-b*((C+h*c*g)/p*Math.sin(p*m)+g*Math.cos(p*m))},P=m=>{const b=Math.exp(-h*c*m);return h*c*b*(Math.sin(p*m)*(C+h*c*g)/p+g*Math.cos(p*m))-b*(Math.cos(p*m)*(C+h*c*g)-p*g*Math.sin(p*m))}}else if(h===1)_=p=>r-Math.exp(-c*p)*(g+(C+c*g)*p);else{const p=c*Math.sqrt(h*h-1);_=m=>{const b=Math.exp(-h*c*m),T=Math.min(p*m,300);return r-b*((C+h*c*g)*Math.sinh(T)+p*g*Math.cosh(T))/p}}}return y(),{next:C=>{const g=_(C);if(S)a.done=C>=w;else{const h=P(C)*1e3,c=Math.abs(h)<=n,p=Math.abs(r-g)<=o;a.done=c&&p}return a.value=a.done?r:g,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}n2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const X6=e=>0,t3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},o2=(e,t,r)=>-r*e+r*t+e;function $_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Q6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=$_(s,l,e+1/3),i=$_(s,l,e),a=$_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const jG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},zG=[Aa.hex,Aa.rgba,Aa.hsla],Z6=e=>zG.find(t=>t.test(e)),J6=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,r3=(e,t)=>{let r=Z6(e),n=Z6(t);Vp.invariant(!!r,J6(e)),Vp.invariant(!!n,J6(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Q6(o),r=Aa.rgba),n===Aa.hsla&&(i=Q6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=jG(o[s],i[s],l));return a.alpha=o2(o.alpha,i.alpha,l),r.transform(a)}},VG={x:0,y:0,z:0},nC=e=>typeof e=="number",BG=(e,t)=>r=>t(e(r)),n3=(...e)=>e.reduce(BG);function gI(e,t){return nC(e)?r=>o2(e,t,r):Aa.color.test(e)?r3(e,t):o3(e,t)}const vI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>gI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=gI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function ek(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=ek(e),o=ek(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?n3(vI(n.parsed,o.parsed),r):(Vp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},HG=(e,t)=>r=>o2(e,t,r);function WG(e){if(typeof e=="number")return HG;if(typeof e=="string")return Aa.color.test(e)?r3:o3;if(Array.isArray(e))return vI;if(typeof e=="object")return UG}function $G(e,t,r){const n=[],o=r||WG(e[0]),i=e.length-1;for(let a=0;ar(t3(e,t,n))}function KG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=t3(e[i],e[i+1],o);return t[i](l)}}function i3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Vp.invariant(i===t.length,"Both input and output ranges must be the same length"),Vp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=$G(t,n,o),l=i===2?GG(e,a):KG(e,a);return r?s=>l(lv(e[0],e[i-1],s)):l}const Qv=e=>t=>1-e(1-t),i2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mI=e=>t=>Math.pow(t,e),a3=e=>t=>t*t*((e+1)*t-e),yI=e=>{const t=a3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},bI=1.525,qG=4/11,YG=8/11,XG=9/10,wI=e=>e,l3=mI(2),QG=Qv(l3),_I=i2(l3),xI=e=>1-Math.sin(Math.acos(e)),SI=Qv(xI),ZG=i2(SI),s3=a3(bI),JG=Qv(s3),eK=i2(s3),tK=yI(bI),rK=4356/361,nK=35442/1805,oK=16061/1805,A1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-A1(1-e*2)):.5*A1(e*2-1)+.5;function lK(e,t){return e.map(()=>t||_I).splice(0,e.length-1)}function sK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function uK(e,t){return e.map(r=>r*t)}function Cg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=uK(n&&n.length===a.length?n:sK(a),o);function s(){return i3(l,a,{ease:Array.isArray(r)?r:lK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function CI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const w=-l*Math.exp(-v/n);return a.done=!(w>o||w<-o),a.value=a.done?d:d+w,a},flipTarget:()=>{}}}const tk={keyframes:Cg,spring:n2,decay:CI};function cK(e){if(Array.isArray(e.to))return Cg;if(tk[e.type])return tk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Cg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?n2:Cg}function PI(e,t,r=0){return e-t-r}function dK(e,t,r=0,n=!0){return n?PI(t+-e,t,r):t-(e-t)+r}function fK(e,t,r,n){return n?e>=t+r:e<=-r}const pK=e=>{const t=({delta:r})=>e(r);return{start:()=>kG.default.update(t,!0),stop:()=>r2.cancelSync.update(t)}};function TI(e){var t,r,{from:n,autoplay:o=!0,driver:i=pK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:w,onComplete:S,onRepeat:_,onUpdate:P}=e,y=hI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,g,h=0,c=y.duration,p,m=!1,b=!0,T;const k=cK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=i3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){h++,s==="reverse"?(b=h%2===0,a=dK(a,c,d,b)):(a=PI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,_&&_()}function A(){g.stop(),S&&S()}function F(B){if(b||(B=-B),a+=B,!m){const H=R.next(Math.max(0,a));p=H.value,T&&(p=T(p)),m=b?H.done:a<=0}P==null||P(p),m&&(h===0&&(c??(c=a)),h{w==null||w(),g.stop()}}}function OI(e,t){return t?e*(1e3/t):0}function hK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:w,onComplete:S,onStop:_}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;w==null||w(p),(m=c.onUpdate)===null||m===void 0||m.call(c,p)},onComplete:S,onStop:_}))}function h(c){g(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))h({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const p=C(c),m=p===r?-1:1;let b,T;const k=R=>{b=T,T=R,t=OI(R-b,r2.getFrameData().delta),(m===1&&R>p||m===-1&&RP==null?void 0:P.stop()}}const kI=e=>e*180/Math.PI,gK=(e,t=VG)=>kI(Math.atan2(t.y-e.y,t.x-e.x)),vK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},mK=e=>e,u3=(e=mK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},yK=u3(),bK=u3(Math.sqrt),EI=e=>e*Math.PI/180,I1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),oC=e=>I1(e)&&e.hasOwnProperty("z"),Ry=(e,t)=>Math.abs(e-t);function wK(e,t){if(nC(e)&&nC(t))return Ry(e,t);if(I1(e)&&I1(t)){const r=Ry(e.x,t.x),n=Ry(e.y,t.y),o=oC(e)&&oC(t)?Ry(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const _K=(e,t,r)=>(t=EI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),MI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),RI=(e,t,r,n=0)=>MI(e+r*(t-e)/Math.max(n,r)),xK=(e=50)=>{let t=0,r=0;return n=>{const o=r2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?RI(t,n,i,e):t;return r=o,t=a,a}},SK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function CK(e,t){return e/(1e3/t)}const PK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},NI=(e,t)=>1-3*t+3*e,AI=(e,t)=>3*t-6*e,II=e=>3*e,L1=(e,t,r)=>((NI(t,r)*e+AI(t,r))*e+II(t))*e,LI=(e,t,r)=>3*NI(t,r)*e*e+2*AI(t,r)*e+II(t),TK=1e-7,OK=10;function kK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=L1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>TK&&++l=MK?RK(a,w,e,r):S===0?w:kK(a,l,l+Ny,e,r)}return a=>a===0||a===1?a:L1(i(a),t,n)}const AK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return lv(0,1,o/e)};lt.angle=gK;lt.animate=TI;lt.anticipate=tK;lt.applyOffset=vK;lt.attract=yK;lt.attractExpo=bK;lt.backIn=s3;lt.backInOut=eK;lt.backOut=JG;lt.bounceIn=iK;lt.bounceInOut=aK;lt.bounceOut=A1;lt.circIn=xI;lt.circInOut=ZG;lt.circOut=SI;lt.clamp=lv;lt.createAnticipate=yI;lt.createAttractor=u3;lt.createBackIn=a3;lt.createExpoIn=mI;lt.cubicBezier=NK;lt.decay=CI;lt.degreesToRadians=EI;lt.distance=wK;lt.easeIn=l3;lt.easeInOut=_I;lt.easeOut=QG;lt.inertia=hK;lt.interpolate=i3;lt.isPoint=I1;lt.isPoint3D=oC;lt.keyframes=Cg;lt.linear=wI;lt.mirrorEasing=i2;lt.mix=o2;lt.mixColor=r3;lt.mixComplex=o3;lt.pipe=n3;lt.pointFromVector=_K;lt.progress=t3;lt.radiansToDegrees=kI;lt.reverseEasing=Qv;lt.smooth=xK;lt.smoothFrame=RI;lt.snap=SK;lt.spring=n2;lt.steps=AK;lt.toDecimal=MI;lt.velocityPerFrame=CK;lt.velocityPerSecond=OI;lt.wrap=PK;class IK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const G_=new WeakMap;function c3(e){return G_.has(e)||G_.set(e,{transforms:[],values:new Map}),G_.get(e)}function LK(e,t){return e.has(t)||e.set(t,new IK),e.get(t)}function DI(e,t){e.indexOf(t)===-1&&e.push(t)}function FI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const jI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",sv=e=>Array.isArray(e)&&!ds(e[0]),DK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function zI(e,t){return sv(e)?e[DK(0,e.length,t)]:e}const d3=(e,t,r)=>-r*e+r*t+e,f3=()=>{},rs=e=>e,a2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function p3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=a2(0,t,n);e.push(d3(r,1,o))}}function h3(e){const t=[0];return p3(t,e-1),t}function VI(e,t=h3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&p3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),D1=e=>typeof e=="object"&&!!e.createAnimation,FK=e=>typeof e=="function",g3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function UI(e,t){return t?e*(1e3/t):0}const jK=["","X","Y","Z"],zK=["translate","scale","rotate","skew"],Bp={x:"translateX",y:"translateY",z:"translateZ"},rk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},VK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:rk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:rk},Up=new Map,l2=e=>`--motion-${e}`,F1=["x","y","z"];zK.forEach(e=>{jK.forEach(t=>{F1.push(e+t),Up.set(l2(e+t),VK[e])})});const BK=(e,t)=>F1.indexOf(e)-F1.indexOf(t),UK=new Set(F1),s2=e=>UK.has(e),HK=(e,t)=>{Bp[t]&&(t=Bp[t]);const{transforms:r}=c3(e);DI(r,t),e.style.transform=HI(r)},HI=e=>e.sort(BK).reduce(WK,"").trim(),WK=(e,t)=>`${e} ${t}(var(${l2(t)}))`,iC=e=>e.startsWith("--"),nk=new Set;function $K(e){if(!nk.has(e)){nk.add(e);try{const{syntax:t,initialValue:r}=Up.has(e)?Up.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const WI=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,GK=1e-7,KK=12;function qK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=WI(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>GK&&++lqK(i,0,1,e,r);return i=>i===0||i===1?i:WI(o(i),t,n)}const YK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return jI(0,1,o/e)},XK={ease:lg(.25,.1,.25,1),"ease-in":lg(.42,0,1,1),"ease-in-out":lg(.42,0,.58,1),"ease-out":lg(0,0,.58,1)},QK=/\((.*?)\)/;function aC(e){if(FK(e))return e;if(BI(e))return lg(...e);const t=XK[e];if(t)return t;if(e.startsWith("steps")){const r=QK.exec(e);if(r){const n=r[1].split(",");return YK(parseFloat(n[0]),n[1].trim())}}return rs}let ZK=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,_)=>{this.resolve=S,this.reject=_}),n=n||Go.easing,D1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=sv(n)?rs:aC(n),this.updateDuration(o);const w=VI(r,s,sv(n)?n.map(aC):rs);this.tick=S=>{var _;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),g=y%1;!g&&y>=1&&(g=1),g===1&&C--;const h=C%2;(d==="reverse"||d==="alternate"&&h||d==="alternate-reverse"&&!h)&&(g=1-g);const c=P>=this.totalDuration?1:Math.min(g,1),p=w(this.easing(c));t(p),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(_=this.resolve)===null||_===void 0||_.call(this,p)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ok=e=>BI(e)?JK(e):e,JK=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ik=e=>document.createElement("div").animate(e,{duration:.001}),ak={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ik({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ik({opacity:[0,1]}).finished},K_={},Eb={};for(const e in ak)Eb[e]=()=>(K_[e]===void 0&&(K_[e]=ak[e]()),K_[e]);function eq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function j1(e){return Bp[e]&&(e=Bp[e]),s2(e)?l2(e):e}const Jf={get:(e,t)=>{t=j1(t);let r=iC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Up.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=j1(t),iC(t)?e.style.setProperty(t,r):e.style[t]=r}};function GI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function tq(){return window.__MOTION_DEV_TOOLS_RECORD}function u2(e,t,r,n={}){const o=tq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:w=Go.easing,direction:S,offset:_,allowWebkitAcceleration:P=!1}=n;const y=c3(e);let C=Eb.waapi();const g=s2(t);g&&HK(e,t);const h=j1(t),c=LK(y.values,h),p=Up.get(h);return GI(c.animation,!(D1(w)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=Jf.get(e,h))!==null&&T!==void 0?T:p==null?void 0:p.initialValue)!==null&&k!==void 0?k:0};let b=eq($I(r),m);if(D1(w)){const T=w.createAnimation(b,m,g,h,c);w=T.easing,T.keyframes!==void 0&&(b=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(iC(h)&&(Eb.cssRegisterProperty()?$K(h):C=!1),C){p&&(b=b.map(R=>ds(R)?p.toDefaultUnit(R):R)),b.length===1&&(!Eb.partialKeyframes()||i)&&b.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:sv(w)?void 0:ok(w),direction:S,iterations:v+1,fill:"both"};a=e.animate({[h]:b,offset:_,easing:sv(w)?w.map(ok):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=b[b.length-1];a.finished.then(()=>{Jf.set(e,h,k),a.cancel()}).catch(f3),P||(a.playbackRate=1.000001)}else if(g){b=b.map(k=>typeof k=="string"?parseFloat(k):k),b.length===1&&b.unshift(parseFloat(m()));const T=k=>{p&&(k=p.toDefaultUnit(k)),Jf.set(e,h,k)};a=new ZK(T,b,Object.assign(Object.assign({},n),{duration:l,easing:w}))}else{const T=b[b.length-1];Jf.set(e,h,p&&ds(T)?p.toDefaultUnit(T):T)}return i&&o(e,t,b,{duration:l,delay:s,easing:w,repeat:v,offset:_},"motion-one"),c.setAnimation(a),a}}const v3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function c2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const rq=e=>e(),m3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(rq).filter(Boolean),duration:r,options:t},oq),nq=e=>e.animations[0],oq={get:(e,t)=>{const r=nq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(iq)).catch(f3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>GI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function aq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:lq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=aC(n)(s/d)*d}return t+s}}function lq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function KI(e,t,r){return typeof e=="function"?e(t,r):e}function sq(e,t,r={}){e=c2(e);const n=e.length,o=[];for(let i=0;it&&o.atu2(...i)).filter(Boolean);return m3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function pq(e,t={}){var{defaultOptions:r={}}=t,n=uh(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let w=0;w"0",re);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=KI(y.delay,c,h)||0,V=d+F,B=V+E;let{offset:H=h3(k.length)}=R;H.length===1&&H[0]===0&&(H[1]=1);const Y=length-k.length;Y>0&&p3(H,Y),k.length===1&&k.unshift(null),cq(T,k,A,H,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((w,S)=>{for(const _ in w){const P=w[_];P.sort(dq);const y=[],C=[],g=[];for(let h=0;ht/(2*Math.sqrt(e*r));function yq(e,t,r){return e=t||e>t&&r<=t}const qI=({stiffness:e=_p.stiffness,damping:t=_p.damping,mass:r=_p.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,w=mq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let _;if(w<1){const P=v*Math.sqrt(1-w*w);_=y=>o-Math.exp(-w*v*y)*((-i+w*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else _=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=_(P);const y=P===0?i:y3(_,P,s.current),C=Math.abs(y)<=a,g=Math.abs(o-s.current)<=l;return s.done=C&&g,s.hasReachedTarget=yq(n,o,s.current),s}},bq=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const w={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,_=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),h=T=>C+g(T),c=T=>{const k=g(T),R=h(T);w.done=Math.abs(k)<=d,w.current=w.done?C:R};let p,m;const b=T=>{S(w.current)&&(p=T,m=qI({from:w.current,to:_(w.current),velocity:y3(h,T,w.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return b(0),T=>{let k=!1;return!m&&p===void 0&&(k=!0,c(T),b(T)),p!==void 0&&T>p?(w.hasReachedTarget=!0,m(T-p)):(w.hasReachedTarget=!1,!k&&c(T),w)}},q_=10,wq=1e4;function _q(e,t=rs){let r,n=q_,o=e(0);const i=[t(o.current)];for(;!o.done&&n{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,_q(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var w,S;let _;const P=a.length;if(s&&P<=2&&a.every(xq)){const C=a[P-1],g=P===1?null:a[0];let h=0,c=0;const p=v==null?void 0:v.generator;if(p){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=p(E).current;c=(w=g)!==null&&w!==void 0?w:A,(P===1||P===2&&a[0]===null)&&(h=y3(F=>p(F).current,E,A))}else c=(S=g)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,h,d==null?void 0:d.includes("scale")),b=i(m);_=Object.assign(Object.assign({},b),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else _={easing:"ease",duration:i(o(0,100)).overshootDuration};return _}}}}const xq=e=>typeof e!="string",Sq=YI(qI),Cq=YI(bq),Pq={any:0,all:1};function XI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=c2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const w=a.get(v.target);if(v.isIntersecting!==!!w)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else w&&(w(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Pq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Mb=new WeakMap;let qs;function Tq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function Oq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Mb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return Tq(e,r)}})})}function kq(e){e.forEach(Oq)}function Eq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(kq))}function Mq(e,t){qs||Eq();const r=c2(e);return r.forEach(n=>{let o=Mb.get(n);o||(o=new Set,Mb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Mb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Rb=new Set;let Pg;function Rq(){Pg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Rb.forEach(r=>r(t))},window.addEventListener("resize",Pg)}function Nq(e){return Rb.add(e),Pg||Rq(),()=>{Rb.delete(e),!Rb.size&&Pg&&(Pg=void 0)}}function QI(e,t){return typeof e=="function"?Nq(e):Mq(e,t)}const Aq=50,sk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Iq=()=>({time:0,x:sk(),y:sk()}),Lq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function uk(e,t,r,n){const o=r[t],{length:i,position:a}=Lq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=a2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Aq?0:UI(o.current-l,d)}function Dq(e,t,r){uk(e,"x",t,r),uk(e,"y",t,r),t.time=r}function Fq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const ZI={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},lC={start:0,center:.5,end:1};function ck(e,t,r=0){let n=0;if(lC[e]!==void 0&&(e=lC[e]),g3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const jq=[0,0];function zq(e,t,r,n){let o=Array.isArray(e)?e:jq,i=0,a=0;return ds(e)?o=[e,e]:g3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,lC[e]?e:"0"]),i=ck(o[0],r,n),a=ck(o[1],t),i-a}const Vq={x:0,y:0};function Bq(e,t,r){let{offset:n=ZI.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?Fq(o,e):Vq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const w=n.length;for(let S=0;SUq(e,n.target,r),update:i=>{Dq(e,r,i),(n.offset||n.target)&&Bq(e,r,n)},notify:typeof t=="function"?()=>t(r):Wq(t,r[o])}}function Wq(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const z0=new WeakMap,dk=new WeakMap,Y_=new WeakMap,fk=e=>e===document.documentElement?window:e;function $q(e,t={}){var{container:r=document.documentElement}=t,n=uh(t,["container"]);let o=Y_.get(r);o||(o=new Set,Y_.set(r,o));const i=Iq(),a=Hq(r,e,i,n);if(o.add(a),!z0.has(r)){const d=()=>{const w=performance.now();for(const S of o)S.measure();for(const S of o)S.update(w);for(const S of o)S.notify()};z0.set(r,d);const v=fk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&dk.set(r,QI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=z0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=Y_.get(r);if(!v||(v.delete(a),v.size))return;const w=z0.get(r);z0.delete(r),w&&(fk(r).removeEventListener("scroll",w),(d=dk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",w))}}function Gq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!Kq(e,t):e!==t}function Kq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),Zq=e=>e.animateUpdates(),hk=e=>e.next(),gk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function sC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function vk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const Jq={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=uh(n,["once"]);return XI(e,a=>{if(t(),vk(e,"viewenter",a),!o)return l=>{r(),vk(e,"viewleave",l)}},i)}},mk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),sC(e,t,n))},eY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=mk(e,"hoverstart",t),o=mk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},tY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),sC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),sC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Nb={inView:Jq,hover:eY,press:tY},yk=["initial","animate",...Object.keys(Nb),"exit"],uC=new WeakMap;function rY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of yk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=pk(e[l]||a[l],e.variants)||{},d=uh(s,["transition"]);const v=Object.assign({},d);function*w(){var y,C;const g=d;d={};const h={};for(const T of yk){if(!o[T])continue;const k=pk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],h[R]=v3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(g)]),p=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),Gq(g[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=Jf.get(r,T)),p.push(u2(r,T,d[T],h[T])))}),yield;const m=p.map(T=>T()).filter(Boolean);if(!m.length)return;const b=d;r.dispatchEvent(gk("motionstart",b)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(gk("motioncomplete",b))}).catch(f3)}const S=(y,C)=>()=>{o[y]=C,X_(P)},_=()=>{for(const y in Nb){const C=Nb[y].isActive(e),g=i[y];C&&!g?i[y]=Nb[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&g&&(g(),delete i[y])}},P={update:y=>{r&&(e=y,_(),X_(P))},setActive:(y,C)=>{r&&(o[y]=C,X_(P))},animateUpdates:w,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,uC.set(r,P),_(),()=>{uC.delete(r),Xq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function JI(e){const t={},r=[];for(let n in e){const o=e[n];s2(n)&&(Bp[n]&&(n=Bp[n]),r.push(n),n=l2(n));let i=Array.isArray(o)?o[0]:o;const a=Up.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=HI(r)),t}const nY=e=>`-${e.toLowerCase()}`,oY=e=>e.replace(/[A-Z]/g,nY);function iY(e={}){const t=JI(e);let r="";for(const n in t)r+=n.startsWith("--")?n:oY(n),r+=`: ${t[n]}; `;return r}const aY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:ZI,animate:sq,animateStyle:u2,createMotionState:rY,createStyleString:iY,createStyles:JI,getAnimationData:c3,getStyleName:j1,glide:Cq,inView:XI,mountedStates:uC,resize:QI,scroll:$q,spring:Sq,stagger:aq,style:Jf,timeline:fq,withControls:m3},Symbol.toStringTag,{value:"Module"})),lY=Lv(aY);function sY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var uY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cY=sY(function(e){return uY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const dY=Object.freeze(Object.defineProperty({__proto__:null,default:cY},Symbol.toStringTag,{value:"Module"})),fY=Lv(dY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=GA,r=J$,n=rI,o=bn,i=lt,a=Cd,l=lY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),w=s(r),S=s(a),_=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:_(["layout","layoutId","drag"]),animation:_(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:_(["exit"]),drag:_(["drag","dragControls"]),focus:_(["whileFocus"]),hover:_(["whileHover","onHoverStart","onHoverEnd"]),tap:_(["whileTap","onTap","onTapStart","onTapCancel"]),pan:_(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:_(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),g=Object.keys(P),h=g.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var zt={};function Ht(x){Object.assign(zt,x)}var mt=["","X","Y","Z"],Ot=["translate","scale","rotate","skew"],Jt=["transformPerspective","x","y","z"];Ot.forEach(function(x){return mt.forEach(function(M){return Jt.push(x+M)})});function Dr(x,M){return Jt.indexOf(x)-Jt.indexOf(M)}var ln=new Set(Jt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function nr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||nr(x)||(I||D!==void 0)&&(!!zt[x]||x==="opacity")}var Yt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,U=G===void 0?!0:G,Z=M.allowTransformNone,ee=Z===void 0?!0:Z,ie="";$.sort(Dr);for(var de=!1,fe=$.length,ge=0;ge"u"?K5:Rh;ee(Z,U.current,M,G)}var G5={some:0,all:1};function Rh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,U=G===void 0?"some":G,Z=D.once;r.useEffect(function(){if(x){var ee={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof U=="number"?U:G5[U]},ie=function(de){var fe,ge=de.isIntersecting;if(M.isInView!==ge&&(M.isInView=ge,!(Z&&!ge&&M.hasEnteredView))){ge&&(M.hasEnteredView=!0),(fe=I.animationState)===null||fe===void 0||fe.setActive(e.AnimationType.InView,ge);var u=I.getProps(),f=ge?u.onViewportEnter:u.onViewportLeave;f==null||f(de)}};return Jr(I.getInstance(),ee,ie)}},[x,z,$,U])}function K5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var U=I.getProps().onViewportEnter;U==null||U(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Mh),tap:ii(H5),focus:ii(He),hover:ii(ym)},q5=0,Y5=function(){return q5++},jo=function(){return ue(Y5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Nh(r.useContext(T))}function Nh(x){return x===null?!0:x.isPresent}function Ah(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Rt,he=Array.isArray(Ae)?Ae:[Ae],Pe=he.reduce($,{});wt===!1&&(Pe={});var Be=Ve.prevResolvedValues,tt=Be===void 0?{}:Be,yt=t.__assign(t.__assign({},tt),Pe),ct=function(nt){_e=!0,O.delete(nt),Ve.needsAnimating[nt]=!0};for(var vt in yt){var ft=Pe[vt],Ne=tt[vt];N.hasOwnProperty(vt)||(ft!==Ne?bt(ft)&&bt(Ne)?!Ah(ft,Ne)||On?ct(vt):Ve.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):Ve.protectedKeys[vt]=!0)}Ve.prevProp=Ae,Ve.prevResolvedValues=Pe,Ve.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(_e=!1),_e&&!er&&f.push.apply(f,t.__spreadArray([],t.__read(he.map(function(nt){return{animation:nt,options:t.__assign({type:Ee},ie)}})),!1))},K=0;K=3;if(!(!ge&&!u)){var f=fe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},f),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;ge||(L&&L(z.lastMoveEvent,fe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,fe)}}},this.handlePointerMove=function(fe,ge){if(z.lastMoveEvent=fe,z.lastMoveEventInfo=Vo(ge,z.transformPagePoint),It(fe)&&fe.buttons===0){z.handlePointerUp(fe,ge);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(fe,ge){z.end();var u=z.handlers,f=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(ge,z.transformPagePoint),z.history);z.startEvent&&f&&f(fe,N),O&&O(fe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var U=wo(M),Z=Vo(U,this.transformPagePoint),ee=Z.point,ie=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},ee),{timestamp:ie})];var de=I.onSessionStart;de&&de(M,Ja(Z,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Tm(M)),velocity:fr(M,.1)}}function Tm(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Bh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Uh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Hh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function Om(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function km(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function Wh(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return Wh(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function $h(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Gh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var U,Z,ee=0;eeM?I="y":Math.abs(x.x)>M&&(I="x"),I}function J5(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new Q5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Am(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,U=r.useRef(null),Z=r.useContext(p).transformPagePoint,ee={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,fe){U.current=null,D&&D(de,fe)}};r.useEffect(function(){U.current!==null&&U.current.updateHandlers(ee)});function ie(de){U.current=new Nl(de,ee,{transformPagePoint:Z})}Ol($,"pointerdown",G&&ie),Ya(function(){return U.current&&U.current.end()})}var Yh={pan:ii(Am),drag:ii(J5)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,U=D[G];($=M[z])===null||$===void 0||$.call(M),U&&(M[z]=I[G](U))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,ee=zm(M,x,U);return $.length&&$.forEach(function(ie){var de=t.__read(ie,2),fe=de[0],ge=de[1];x.getValue(fe).set(ge)}),x.syncRender(),Z!==null&&window.scrollTo({top:Z}),{target:ee,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Bm(x,M,I,D){return Qh(M)?Vm(x,M,I,D):{target:M,transitionEnd:D}}var Um=function(x,M,I,D){var z=Xh(x,M,D);return M=z.target,D=z.transitionEnd,Bm(x,M,I,D)};function Hm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Hm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return qh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,U=t.__rest(M,["transition","transitionEnd"]),Z=Co(U,$||{},x);if(z&&(G&&(G=z(G)),U&&(U=z(U)),Z&&(Z=z(Z))),D){cc(x,U,Z);var ee=Um(x,U,Z,G);G=ee.transitionEnd,U=ee.target}return t.__assign({transition:$,transitionEnd:G},U)},scrapeMotionValuesFromProps:kt,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Ze},Wm=uf(ff),t0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=$e.has(M)?M:Fe(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Nt,build:function(x,M,I,D,z){pe(M,I,D,z.transformTemplate)},render:Ge})),pf=function(x,M){return xt(x)?t0(M,{enableHardwareAcceleration:!1}):Wm(M,{enableHardwareAcceleration:!0})};function r0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=r0(x,M.target.x),D=r0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",$m={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(f){return G.push(f),hf}));var U=o.complex.parse(x);if(U.length>5)return z;var Z=o.complex.createTransformer(x),ee=typeof U[0]!="number"?1:0,ie=D.x.scale*I.x,de=D.y.scale*I.y;U[0+ee]/=ie,U[1+ee]/=de;var fe=i.mix(ie,de,.5);typeof U[2+ee]=="number"&&(U[2+ee]/=fe),typeof U[3+ee]=="number"&&(U[3+ee]/=fe);var ge=Z(U);if($){var u=0;ge=ge.replace(hf,function(){var f=G[u];return u++,f})}return ge}},n0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,U=D.layoutId,Z=z.projection;Ht(r_),Z&&($!=null&&$.group&&$.group.add(Z),G!=null&&G.register&&U&&G.register(Z),Z.root.didUpdate(),Z.addEventListener("animationComplete",function(){I.safeToRemove()}),Z.setOptions(t.__assign(t.__assign({},Z.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,U=z.drag,Z=z.isPresent,ee=G.projection;return ee&&(ee.isPresent=Z,U||I.layoutDependency!==$||$===void 0?ee.willUpdate():this.safeToRemove(),I.isPresent!==Z&&(Z?ee.promote():ee.relegate()||S.default.postRender(function(){var ie;!((ie=ee.getStack())===null||ie===void 0)&&ie.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(w.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(Ie);return w.default.createElement(n0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Re),isPresent:I,safeToRemove:D}))}var r_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:$m},o0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=Yt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var i0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=i0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Gm=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,U,Z,ee;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((U=M.opacity)!==null&&U!==void 0?U:1,0,Sc(D))):$&&(x.opacity=i.mix((Z=M.opacity)!==null&&Z!==void 0?Z:1,(ee=I.opacity)!==null&&ee!==void 0?ee:1,D));for(var ie=0;ieM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var U=i.mix(G.min,G.max,M/100);M=U-G.min}if(typeof M=="number"){var Z=i.mix($.min,$.max,D);x===$&&(Z-=M),x.min=Vs(x.min,M,I,Z,z),x.max=Vs(x.max,M,I,Z,z)}}function Km(x,M,I,D,z){var $=t.__read(I,3),G=$[0],U=$[1],Z=$[2];Tn(x,M[G],M[U],M[Z],M.scale,D,z)}var n_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){Km(x.x,M,n_,I==null?void 0:I.x,D==null?void 0:D.x),Km(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function qm(x){return x.translate===0&&x.scale===1}function We(x){return qm(x.x)&&qm(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var l0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Ih(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Ym="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Xm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,U=I.rotateX,Z=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),U&&($+="rotateX(".concat(U,"deg) ")),Z&&($+="rotateY(".concat(Z,"deg) "))}var ee=x.x.scale*M.x,ie=x.y.scale*M.y;return $+="scale(".concat(ee,", ").concat(ie,")"),$===Ym?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Ih(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function s0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(U,Z,ee){var ie=this;Z===void 0&&(Z={}),ee===void 0&&(ee=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ie.isUpdating&&(ie.isUpdating=!1,ie.clearAllSnapshots())},this.updateProjection=function(){ie.nodes.forEach($i),ie.nodes.forEach(c0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=U,this.latestValues=Z,this.root=ee?ee.root||ee:this,this.path=ee?t.__spreadArray(t.__spreadArray([],t.__read(ee.path),!1),[ee],!1):[],this.parent=ee,this.depth=ee?ee.depth+1:0,U&&this.root.registerPotentialNode(U,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function f0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){f0(x.x),f0(x.y)}var _f=s0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=s0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Yh),o0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function p0(x){return ze(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var h0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,U=ue(i_),Z=jo(),ee=r.useMemo(function(){return{id:Z,initial:I,isPresent:D,custom:$,onExitComplete:function(ie){var de,fe;U.set(ie,!0);try{for(var ge=t.__values(U.values()),u=ge.next();!u.done;u=ge.next()){var f=u.value;if(!f)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(fe=ge.return)&&fe.call(ge)}finally{if(de)throw de.error}}z==null||z()},register:function(ie){return U.set(ie,!1),function(){return U.delete(ie)}}}},G?void 0:[D]);return r.useMemo(function(){U.forEach(function(ie,de){return U.set(de,!1)})},[D]),v.useEffect(function(){!D&&!U.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:ee},M)};function i_(){return new Map}var ba=function(x){return x.key||""};function g0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var Ct=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,U=x.presenceAffectsLayout,Z=U===void 0?!0:U,ee=t.__read(Mc(),1),ie=ee[0],de=r.useContext(Ie).forceRender;de&&(ie=de);var fe=xf(),ge=Pr(M),u=ge,f=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,g0(ge,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),f.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Ee){return v.createElement(Rc,{key:ba(Ee),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:Z},Ee)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=ge.map(ba),le=j.length,me=0;me0?1:-1,G=x[z+$];if(!G)return x;var U=x[z],Z=G.layout,ee=i.mix(Z.min,Z.max,.5);return $===1&&U.layout.max+I>ee||$===-1&&U.layout.min+I.001?1/x:d_},Ef=!1;function f_(x){var M=Ki(1),I=Ki(1),D=b();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=Ct,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=Ie,e.LazyMotion=v0,e.MotionConfig=Sf,e.MotionConfigContext=p,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Re,e.addPointerEvent=Tl,e.addScaleCorrector=Ht,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=p0,e.createMotionComponent=ze,e.domAnimation=b0,e.domMax=w0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Eh,e.isMotionValue=Yt,e.isValidMotionProp=Dn,e.m=h0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=l_,e.useAnimationControls=iy,e.useAnimationFrame=S0,e.useCycle=ay,e.useDeprecatedAnimatedState=cy,e.useDeprecatedInvertedScale=f_,e.useDomEvent=At,e.useDragControls=Ul,e.useElementScroll=x0,e.useForceUpdate=Mc,e.useInView=ly,e.useInstantLayoutTransition=P0,e.useInstantTransition=u_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=_0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=sy,e.useScroll=kf,e.useSpring=a_,e.useTime=C0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=b,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(q),n=An,o=S(pt),i=S(Xn),a=S(et),l=Je,s=Jw,d=Xe,v=$v;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.className,p=g.children,m=_(g,["className","children"]),b=(0,s.useAccordion)(),T=b.open,k=b.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,w({},m,{ref:h,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),p)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(CA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return g}});var r=_(q),n=_(pt),o=Je,i=_(et),a=Xe,l=Jw,s=$v,d=SA,v=CA;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.open,m=h.icon,b=h.animate,T=h.className,k=h.disabled,R=h.children,E=P(h,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,b=b??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),w({},(0,i.default)(V.disabled),k)),T),H=r.default.useMemo(function(){return{open:p,icon:m,animate:b,disabled:k}},[p,m,b,k]);return r.default.createElement(l.AccordionContextProvider,{value:H},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var g=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(ZR);var eL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var d2={},dh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(dh),i=S(pt),a=Je,l=S(Sr),s=S(et),d=Xe,v=_d;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.size,m=g.color,b=g.ripple,T=g.className,k=g.children;g.fullWidth;var R=_(g,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,H=V.variants,Y=V.sizes;c=c??F.variant,p=p??F.size,m=m??F.color,b=b??F.ripple,T=(0,a.twMerge)(F.className||"",T);var re=b!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(H[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),X=(0,s.default)(Y[(0,l.default)(A.sizes,p,"md")]),te=(0,a.twMerge)((0,i.default)(Q,X,W),T);return r.default.createElement("button",w({},R,{ref:h,className:te,type:R.type||"button",onMouseDown:function(ne){var se=R==null?void 0:R.onMouseDown;return b&&re.create(ne,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof se=="function"&&se(ne)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(d2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var m in p)Object.defineProperty(c,m,{enumerable:!0,get:p[m]})}t(e,{Alert:function(){return g},default:function(){return h}});var r=P(q),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,w=NP,S=P(d2);function _(){return _=Object.assign||function(c){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(c,b)&&(m[b]=c[b])}return m}function C(c,p){if(c==null)return{};var m={},b=Object.keys(c),T,k;for(k=0;k=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,p){var m=c.variant,b=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),H=(0,v.useTheme)().alert,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.variants;m=m??Y.variant,b=b??Y.color,A=A??Y.animate,k=k??Y.open,R=R??Y.action,E=E??Y.onClose,F=(0,l.twMerge)(Y.className||"",F);var te=(0,d.default)(W.alert),ne=(0,d.default)(W.action),se=(0,d.default)(X[(0,s.default)(re.variants,m,"filled")][(0,s.default)(re.colors,b,"gray")]),ve=(0,l.twMerge)((0,i.default)(te,se),F),we=(0,i.default)(ne),ce={unmount:{opacity:0},mount:{opacity:1}},J=(0,a.default)(ce,A),oe=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,_({},B,{ref:p,role:"alert",className:"".concat(ve," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:J}),T&&oe,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?b:"white",className:we},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),icon:w.propTypesIcon,open:w.propTypesOpen,action:w.propTypesAction,onClose:w.propTypesOnClose,animate:w.propTypesAnimate,className:w.propTypesClassName,children:w.propTypesChildren},g.displayName="MaterialTailwind.Alert";var h=g})(eL);var tL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=AP;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.size,m=g.className,b=g.color,T=g.withBorder,k=_(g,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,H=F.sizes,Y=F.borderColor;c=c??A.variant,p=p??A.size,T=T??A.withBorder,b=b??A.color,m=(0,i.twMerge)(A.className||"",m);var re=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(H[(0,a.default)(E.sizes,p,"md")]),W=(0,l.default)(Y[(0,a.default)(E.colors,b,"gray")]),X,te=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),re,Q,(X={},v(X,(0,l.default)(V.withBorder),T),v(X,W,T),X)),m);return r.default.createElement("img",w({},k,{ref:h,className:te}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(tL);var rL={},nL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(ot);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(nL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(q),n=v(pt),o=Je,i=v(et),a=Xe,l=nL;function s(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function d(){return d=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=(0,r.forwardRef)(function(g,h){var c=g.separator,p=g.fullWidth,m=g.className,b=g.children,T=_(g,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,p=p??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),p)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:h,className:F}),r.Children.map(b,function(H,Y){if((0,r.isValidElement)(H)){var re;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),H==null||(re=H.props)===null||re===void 0?void 0:re.disabled))},H,Y!==r.Children.count(b)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(rL);var oL={},b3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Spinner:function(){return C},default:function(){return g}});var r=w(ot),n=_(q),o=w(pt),i=Je,a=w(Sr),l=w(et),s=Xe,d=GP;function v(){return v=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=(0,n.forwardRef)(function(h,c){var p=h.color,m=h.className,b=P(h,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;p=p??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,p,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),H,Y;return n.default.createElement("svg",v({},b,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(H=b==null?void 0:b.width)!==null&&H!==void 0?H:24,height:(Y=b==null?void 0:b.height)!==null&&Y!==void 0?Y:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var g=C})(b3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var m in p)Object.defineProperty(c,m,{enumerable:!0,get:p[m]})}t(e,{Button:function(){return g},default:function(){return h}});var r=P(q),n=P(ot),o=P(dh),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=P(b3),w=_d;function S(c,p,m){return p in c?Object.defineProperty(c,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[p]=m,c}function _(){return _=Object.assign||function(c){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(c,b)&&(m[b]=c[b])}return m}function C(c,p){if(c==null)return{};var m={},b=Object.keys(c),T,k;for(k=0;k=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,p){var m=c.variant,b=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,H=B.valid,Y=B.defaultProps,re=B.styles,Q=re.base,W=re.variants,X=re.sizes;m=m??Y.variant,b=b??Y.size,T=T??Y.color,k=k??Y.fullWidth,R=R??Y.ripple,E=(0,a.twMerge)(Y.className||"",E);var te=R!==void 0&&new o.default,ne=(0,s.default)(Q.initial),se=(0,s.default)(W[(0,l.default)(H.variants,m,"filled")][(0,l.default)(H.colors,T,"gray")]),ve=(0,s.default)(X[(0,l.default)(H.sizes,b,"md")]),we=(0,a.twMerge)((0,i.default)(ne,ve,se,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":b==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":b==="lg"})),J;return r.default.createElement("button",_({},V,{disabled:(J=V.disabled)!==null&&J!==void 0?J:F,ref:p,className:we,type:V.type||"button",onMouseDown:function(oe){var ue=V==null?void 0:V.onMouseDown;return R&&te.create(oe,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(oe)}}),F&&r.default.createElement(v.default,{className:ce}),A)});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),size:n.default.oneOf(w.propTypesSize),color:n.default.oneOf(w.propTypesColor),fullWidth:w.propTypesFullWidth,ripple:w.propTypesRipple,className:w.propTypesClassName,children:w.propTypesChildren,loading:w.propTypesLoading},g.displayName="MaterialTailwind.Button";var h=g})(oL);var iL={},aL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=xd;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.color,m=g.shadow,b=g.floated,T=g.className,k=g.children,R=_(g,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,H=F.variants;c=c??A.variant,p=p??A.color,m=m??A.shadow,b=b??A.floated,T=(0,i.twMerge)(A.className||"",T);var Y=(0,l.default)(B.initial),re=(0,l.default)(H[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,p,"white")]),Q=(0,i.twMerge)((0,o.default)(Y,re,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),b)),T);return r.default.createElement("div",w({},R,{ref:h,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(aL);var lL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return _}});var r=d(q),n=d(pt),o=Je,i=d(et),a=Xe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,p=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(p.className||"",C);var b=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},h,{ref:y,className:b}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var _=S})(lL);var sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{CardFooter:function(){return _},default:function(){return P}});var r=v(q),n=v(pt),o=Je,i=v(et),a=Xe,l=xd;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.divider,h=y.className,c=y.children,p=w(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,b=m.defaultProps,T=m.styles.base;g=g??b.divider,h=(0,o.twMerge)(b.className||"",h);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),g)),h);return r.default.createElement("div",d({},p,{ref:C,className:k}),c)});_.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},_.displayName="MaterialTailwind.CardFooter";var P=_})(sL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{Card:function(){return h},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return w.CardFooter},default:function(){return c}});var r=y(q),n=y(ot),o=y(pt),i=Je,a=y(Sr),l=y(et),s=Xe,d=aL,v=lL,w=sL,S=xd;function _(p,m,b){return m in p?Object.defineProperty(p,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[m]=b,p}function P(){return P=Object.assign||function(p){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function g(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}var h=r.default.forwardRef(function(p,m){var b=p.variant,T=p.color,k=p.shadow,R=p.className,E=p.children,A=C(p,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,H=F.valid,Y=B.base,re=B.variants;b=b??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(Y.initial),W=(0,l.default)(re[(0,a.default)(H.variants,b,"filled")][(0,a.default)(H.colors,T,"white")]),X=(0,i.twMerge)((0,o.default)(Q,W,_({},(0,l.default)(Y.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:X}),E)});h.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},h.displayName="MaterialTailwind.Card";var c=Object.assign(h,{Header:d.CardHeader,Body:v.CardBody,Footer:w.CardFooter})})(iL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Checkbox:function(){return C},default:function(){return g}});var r=_(q),n=_(ot),o=_(dh),i=_(pt),a=Je,l=_(Sr),s=_(et),d=Xe,v=Sd;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.color,m=h.label,b=h.icon,T=h.ripple,k=h.className,R=h.disabled,E=h.containerProps,A=h.labelProps,F=h.iconProps,V=h.inputRef,B=P(h,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().checkbox,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.colors,te=r.default.useId();p=p??Y.color,m=m??Y.label,b=b??Y.icon,T=T??Y.ripple,R=R??Y.disabled,E=E??Y.containerProps,A=A??Y.labelProps,F=F??Y.iconProps,k=(0,a.twMerge)(Y.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(re.colors,p,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||te,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:we,id:B.id||te})),r.default.createElement("span",{className:J},b||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||te}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var g=C})(uL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var m in p)Object.defineProperty(c,m,{enumerable:!0,get:p[m]})}t(e,{Chip:function(){return g},default:function(){return h}});var r=P(q),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,w=VP,S=P(d2);function _(){return _=Object.assign||function(c){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(c,b)&&(m[b]=c[b])}return m}function C(c,p){if(c==null)return{};var m={},b=Object.keys(c),T,k;for(k=0;k=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,p){var m=c.variant,b=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,H=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),Y=(0,v.useTheme)().chip,re=Y.defaultProps,Q=Y.valid,W=Y.styles,X=W.base,te=W.variants,ne=W.sizes;m=m??re.variant,b=b??re.size,T=T??re.color,F=F??re.animate,R=R??re.open,A=A??re.action,E=E??re.onClose,V=(0,l.twMerge)(re.className||"",V);var se=(0,d.default)(X.chip),ve=(0,d.default)(X.action),we=(0,d.default)(X.icon),ce=(0,d.default)(te[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),J=(0,d.default)(ne[(0,s.default)(Q.sizes,b,"md")].chip),oe=(0,d.default)(ne[(0,s.default)(Q.sizes,b,"md")].action),ue=(0,d.default)(ne[(0,s.default)(Q.sizes,b,"md")].icon),Se=(0,l.twMerge)((0,i.default)(se,ce,J),V),Ce=(0,i.default)(ve,oe),Me=(0,i.default)(we,ue),Ie=(0,i.default)({"ml-4":k&&b==="sm","ml-[18px]":k&&b==="md","ml-5":k&&b==="lg","mr-5":E}),Re={unmount:{opacity:0},mount:{opacity:1}},ye=(0,a.default)(Re,F),ke=r.default.createElement("div",{className:Me},k),ze=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ze,null,R&&r.default.createElement(o.m.div,_({},H,{ref:p,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:ye}),k&&ke,r.default.createElement("span",{className:Ie},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":b==="sm","h-4 w-4":b==="md","h-5 w-5":b==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),size:n.default.oneOf(w.propTypesSize),color:n.default.oneOf(w.propTypesColor),icon:w.propTypesIcon,open:w.propTypesOpen,onClose:w.propTypesOnClose,action:w.propTypesAction,animate:w.propTypesAnimate,className:w.propTypesClassName,value:w.propTypesValue},g.displayName="MaterialTailwind.Chip";var h=g})(cL);var dL={},fL={exports:{}},jt={};/** * @license React * react.production.min.js * @@ -86,10 +86,10 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Zv=Symbol.for("react.element"),hY=Symbol.for("react.portal"),gY=Symbol.for("react.fragment"),vY=Symbol.for("react.strict_mode"),mY=Symbol.for("react.profiler"),yY=Symbol.for("react.provider"),bY=Symbol.for("react.context"),wY=Symbol.for("react.forward_ref"),_Y=Symbol.for("react.suspense"),xY=Symbol.for("react.memo"),SY=Symbol.for("react.lazy"),bk=Symbol.iterator;function CY(e){return e===null||typeof e!="object"?null:(e=bk&&e[bk]||e["@@iterator"],typeof e=="function"?e:null)}var hL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gL=Object.assign,vL={};function fh(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}fh.prototype.isReactComponent={};fh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mL(){}mL.prototype=fh.prototype;function w3(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}var _3=w3.prototype=new mL;_3.constructor=w3;gL(_3,fh.prototype);_3.isPureReactComponent=!0;var wk=Array.isArray,yL=Object.prototype.hasOwnProperty,x3={current:null},bL={key:!0,ref:!0,__self:!0,__source:!0};function wL(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)yL.call(t,n)&&!bL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Iy=new WeakMap,Ly={},Z_=0,xL=function(e){return e&&(e.host||xL(e.parentNode))},RY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},NY=function(e,t,r,n){var o=RY(t,Array.isArray(e)?e:[e]);Ly[r]||(Ly[r]=new WeakMap);var i=Ly[r],a=[],l=new Set,s=new Set(o),d=function(w){!w||l.has(w)||(l.add(w),d(w.parentNode))};o.forEach(d);var v=function(w){!w||s.has(w)||Array.prototype.forEach.call(w.children,function(S){if(l.has(S))v(S);else try{var b=S.getAttribute(n),P=b!==null&&b!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Iy.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",S,g)}})};return v(t),l.clear(),Z_++,function(){a.forEach(function(w){var S=Nf.get(w)-1,b=i.get(w)-1;Nf.set(w,S),i.set(w,b),S||(Iy.has(w)||w.removeAttribute(n),Iy.delete(w)),b||w.removeAttribute(r)}),Z_--,Z_||(Nf=new WeakMap,Nf=new WeakMap,Iy=new WeakMap,Ly={})}},AY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=MY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),NY(n,o,r,"aria-hidden")):function(){return null}};/*! + */var Zv=Symbol.for("react.element"),pY=Symbol.for("react.portal"),hY=Symbol.for("react.fragment"),gY=Symbol.for("react.strict_mode"),vY=Symbol.for("react.profiler"),mY=Symbol.for("react.provider"),yY=Symbol.for("react.context"),bY=Symbol.for("react.forward_ref"),wY=Symbol.for("react.suspense"),_Y=Symbol.for("react.memo"),xY=Symbol.for("react.lazy"),bk=Symbol.iterator;function SY(e){return e===null||typeof e!="object"?null:(e=bk&&e[bk]||e["@@iterator"],typeof e=="function"?e:null)}var pL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hL=Object.assign,gL={};function fh(e,t,r){this.props=e,this.context=t,this.refs=gL,this.updater=r||pL}fh.prototype.isReactComponent={};fh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vL(){}vL.prototype=fh.prototype;function w3(e,t,r){this.props=e,this.context=t,this.refs=gL,this.updater=r||pL}var _3=w3.prototype=new vL;_3.constructor=w3;hL(_3,fh.prototype);_3.isPureReactComponent=!0;var wk=Array.isArray,mL=Object.prototype.hasOwnProperty,x3={current:null},yL={key:!0,ref:!0,__self:!0,__source:!0};function bL(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)mL.call(t,n)&&!yL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Iy=new WeakMap,Ly={},Z_=0,_L=function(e){return e&&(e.host||_L(e.parentNode))},MY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=_L(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},RY=function(e,t,r,n){var o=MY(t,Array.isArray(e)?e:[e]);Ly[r]||(Ly[r]=new WeakMap);var i=Ly[r],a=[],l=new Set,s=new Set(o),d=function(w){!w||l.has(w)||(l.add(w),d(w.parentNode))};o.forEach(d);var v=function(w){!w||s.has(w)||Array.prototype.forEach.call(w.children,function(S){if(l.has(S))v(S);else try{var _=S.getAttribute(n),P=_!==null&&_!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Iy.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",S,g)}})};return v(t),l.clear(),Z_++,function(){a.forEach(function(w){var S=Nf.get(w)-1,_=i.get(w)-1;Nf.set(w,S),i.set(w,_),S||(Iy.has(w)||w.removeAttribute(n),Iy.delete(w)),_||w.removeAttribute(r)}),Z_--,Z_||(Nf=new WeakMap,Nf=new WeakMap,Iy=new WeakMap,Ly={})}},NY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=EY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),RY(n,o,r,"aria-hidden")):function(){return null}};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var IY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],cC=IY.join(","),SL=typeof Element>"u",uv=SL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,z1=!SL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},V1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},LY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},DY=function(t,r,n){if(V1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(cC));return r&&uv.call(t,cC)&&o.unshift(t),o=o.filter(n),o},FY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!V1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=uv.call(a,cC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var w=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!V1(w,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(w&&S){var b=e(w===!0?a.children:w.children,!0,n);n.flatten?o.push.apply(o,b):o.push({scopeParent:a,candidates:b})}else i.unshift.apply(i,a.children)}}return o},CL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},PL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||LY(t))&&!CL(t)?0:t.tabIndex},jY=function(t,r){var n=PL(t);return n<0&&r&&!CL(t)?0:n},zY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},TL=function(t){return t.tagName==="INPUT"},VY=function(t){return TL(t)&&t.type==="hidden"},BY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},UY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(uv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=z1(t);if(s&&!s.shadowRoot&&o(s)===!0)return xk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if(GY(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return xk(t);return!1},qY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},QY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=jY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(zY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},B1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=FY([t],r.includeContainer,{filter:Sk.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:XY}):n=DY(t,r.includeContainer,Sk.bind(null,r)),QY(n)},OL={exports:{}},Ni={};/** +*/var AY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],cC=AY.join(","),xL=typeof Element>"u",uv=xL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,z1=!xL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},V1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},IY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},LY=function(t,r,n){if(V1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(cC));return r&&uv.call(t,cC)&&o.unshift(t),o=o.filter(n),o},DY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!V1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=uv.call(a,cC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var w=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!V1(w,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(w&&S){var _=e(w===!0?a.children:w.children,!0,n);n.flatten?o.push.apply(o,_):o.push({scopeParent:a,candidates:_})}else i.unshift.apply(i,a.children)}}return o},SL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},CL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||IY(t))&&!SL(t)?0:t.tabIndex},FY=function(t,r){var n=CL(t);return n<0&&r&&!SL(t)?0:n},jY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},PL=function(t){return t.tagName==="INPUT"},zY=function(t){return PL(t)&&t.type==="hidden"},VY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},BY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(uv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=z1(t);if(s&&!s.shadowRoot&&o(s)===!0)return xk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if($Y(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return xk(t);return!1},KY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},XY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=FY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(jY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},B1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=DY([t],r.includeContainer,{filter:Sk.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:YY}):n=LY(t,r.includeContainer,Sk.bind(null,r)),XY(n)},TL={exports:{}},Ni={};/** * @license React * react-dom.production.min.js * @@ -97,18 +97,18 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kL=be,ki=fp;function Le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dC=Object.prototype.hasOwnProperty,ZY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ck={},Pk={};function JY(e){return dC.call(Pk,e)?!0:dC.call(Ck,e)?!1:ZY.test(e)?Pk[e]=!0:(Ck[e]=!0,!1)}function eX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tX(e,t,r,n){if(t===null||typeof t>"u"||eX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var C3=/[\-:]([a-z])/g;function P3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function T3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dC=Object.prototype.hasOwnProperty,QY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ck={},Pk={};function ZY(e){return dC.call(Pk,e)?!0:dC.call(Ck,e)?!1:QY.test(e)?Pk[e]=!0:(Ck[e]=!0,!1)}function JY(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eX(e,t,r,n){if(t===null||typeof t>"u"||JY(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var C3=/[\-:]([a-z])/g;function P3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function T3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ex=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?sg(e):""}function rX(e){switch(e.tag){case 5:return sg(e.type);case 16:return sg("Lazy");case 13:return sg("Suspense");case 19:return sg("SuspenseList");case 0:case 2:case 15:return e=tx(e.type,!1),e;case 11:return e=tx(e.type.render,!1),e;case 1:return e=tx(e.type,!0),e;default:return""}}function gC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case tp:return"Fragment";case ep:return"Portal";case fC:return"Profiler";case O3:return"StrictMode";case pC:return"Suspense";case hC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RL:return(e.displayName||"Context")+".Consumer";case ML:return(e._context.displayName||"Context")+".Provider";case k3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case E3:return t=e.displayName||null,t!==null?t:gC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return gC(e(t))}catch{}}return null}function nX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gC(t);case 8:return t===O3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oX(e){var t=AL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fy(e){e._valueTracker||(e._valueTracker=oX(e))}function IL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function U1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ok(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LL(e,t){t=t.checked,t!=null&&T3(e,"checked",t,!1)}function mC(e,t){LL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yC(e,t.type,r):t.hasOwnProperty("defaultValue")&&yC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kk(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function yC(e,t,r){(t!=="number"||U1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ug=Array.isArray;function xp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=jy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Tg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iX=["Webkit","ms","Moz","O"];Object.keys(Tg).forEach(function(e){iX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tg[t]=Tg[e]})});function zL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Tg.hasOwnProperty(e)&&Tg[e]?(""+t).trim():t+"px"}function VL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=zL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var aX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _C(e,t){if(t){if(aX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function xC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var SC=null;function M3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var CC=null,Sp=null,Cp=null;function Rk(e){if(e=tm(e)){if(typeof CC!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=v2(t),CC(e.stateNode,e.type,t))}}function BL(e){Sp?Cp?Cp.push(e):Cp=[e]:Sp=e}function UL(){if(Sp){var e=Sp,t=Cp;if(Cp=Sp=null,Rk(e),t)for(e=0;e>>=0,e===0?32:31-(mX(e)/yX|0)|0}var zy=64,Vy=4194304;function cg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function G1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=cg(l):(i&=a,i!==0&&(n=cg(i)))}else a=r&~o,a!==0?n=cg(a):i!==0&&(n=cg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function xX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=kg),Vk=" ",Bk=!1;function sD(e,t){switch(e){case"keyup":return XX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rp=!1;function ZX(e,t){switch(e){case"compositionend":return uD(t);case"keypress":return t.which!==32?null:(Bk=!0,Vk);case"textInput":return e=t.data,e===Vk&&Bk?null:e;default:return null}}function JX(e,t){if(rp)return e==="compositionend"||!j3&&sD(e,t)?(e=aD(),Db=L3=uu=null,rp=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$k(r)}}function pD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hD(){for(var e=window,t=U1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=U1(e.document)}return t}function z3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sQ(e){var t=hD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pD(r.ownerDocument.documentElement,r)){if(n!==null&&z3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Gk(r,i);var a=Gk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,np=null,MC=null,Mg=null,RC=!1;function Kk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;RC||np==null||np!==U1(n)||(n=np,"selectionStart"in n&&z3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mg&&mv(Mg,n)||(Mg=n,n=Y1(MC,"onSelect"),0ap||(e.current=FC[ap],FC[ap]=null,ap--)}function cr(e,t){ap++,FC[ap]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function Wp(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Q1(){yr(Jo),yr(go)}function e8(e,t,r){if(go.current!==Ru)throw Error(Le(168));cr(go,t),cr(Jo,r)}function SD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Le(108,nX(e)||"Unknown",o));return Ir({},r,n)}function Z1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function t8(e,t,r){var n=e.stateNode;if(!n)throw Error(Le(169));r?(e=SD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,m2=!1,gx=!1;function CD(e){Yl===null?Yl=[e]:Yl.push(e)}function wQ(e){m2=!0,CD(e)}function Hu(){if(!gx&&Yl!==null){gx=!0;var e=0,t=Xt;try{var r=Yl;for(Xt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(g,T,c[k],h);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(g,T),f=i(E,f,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(g,T),xr&&zc(g,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(g,T,E.value,h);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(g,T),f=i(A,f,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(g,T),xr&&zc(g,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=w(g,E.value,h),E!==null&&(f=i(E,f,k),_===null?m=E:_.sibling=E,_=E);return xr&&zc(g,k),m}for(T=n(g,T);!E.done;k++,E=c.next())E=b(T,g,k,E.value,h),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),f=i(E,f,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(g,F)}),xr&&zc(g,k),m}function C(g,f,c,h){if(typeof c=="object"&&c!==null&&c.type===tp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Dy:e:{for(var m=c.key,_=f;_!==null;){if(_.key===m){if(m=c.type,m===tp){if(_.tag===7){r(g,_.sibling),f=o(_,c.props.children),f.return=g,g=f;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&s8(m)===_.type){r(g,_.sibling),f=o(_,c.props),f.ref=$0(g,_,c),f.return=g,g=f;break e}r(g,_);break}else t(g,_);_=_.sibling}c.type===tp?(f=ed(c.props.children,g.mode,h,c.key),f.return=g,g=f):(h=Wb(c.type,c.key,c.props,null,g.mode,h),h.ref=$0(g,f,c),h.return=g,g=h)}return a(g);case ep:e:{for(_=c.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===c.containerInfo&&f.stateNode.implementation===c.implementation){r(g,f.sibling),f=o(f,c.children||[]),f.return=g,g=f;break e}else{r(g,f);break}else t(g,f);f=f.sibling}f=Sx(c,g.mode,h),f.return=g,g=f}return a(g);case eu:return _=c._init,C(g,f,_(c._payload),h)}if(ug(c))return P(g,f,c,h);if(V0(c))return y(g,f,c,h);Ky(g,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,f!==null&&f.tag===6?(r(g,f.sibling),f=o(f,c),f.return=g,g=f):(r(g,f),f=xx(c,g.mode,h),f.return=g,g=f),a(g)):r(g,f)}return C}var Gp=ND(!0),AD=ND(!1),rm={},yl=Uu(rm),_v=Uu(rm),xv=Uu(rm);function Yc(e){if(e===rm)throw Error(Le(174));return e}function q3(e,t){switch(cr(xv,t),cr(_v,e),cr(yl,rm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wC(t,e)}yr(yl),cr(yl,t)}function Kp(){yr(yl),yr(_v),yr(xv)}function ID(e){Yc(xv.current);var t=Yc(yl.current),r=wC(t,e.type);t!==r&&(cr(_v,e),cr(yl,r))}function Y3(e){_v.current===e&&(yr(yl),yr(_v))}var Er=Uu(0);function ow(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vx=[];function X3(){for(var e=0;er?r:4,e(!0);var n=mx.transition;mx.transition={};try{e(!1),t()}finally{Xt=r,mx.transition=n}}function XD(){return ca().memoizedState}function CQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},QD(e))ZD(t,r);else if(r=kD(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),JD(r,t,n)}}function PQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(QD(e))ZD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,G3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=kD(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),JD(r,t,n))}}function QD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function ZD(e,t){Rg=iw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function JD(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,N3(e,r)}}var aw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},TQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:c8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Vb(4194308,4,$D.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:u8,useDebugValue:tT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=u8(!1),t=e[0];return e=SQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(Le(407));r=r()}else{if(r=t(),Nn===null)throw Error(Le(349));(ud&30)!==0||FD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,c8(zD.bind(null,n,i,e),[e]),n.flags|=2048,Pv(9,jD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sv++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ex=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?sg(e):""}function tX(e){switch(e.tag){case 5:return sg(e.type);case 16:return sg("Lazy");case 13:return sg("Suspense");case 19:return sg("SuspenseList");case 0:case 2:case 15:return e=tx(e.type,!1),e;case 11:return e=tx(e.type.render,!1),e;case 1:return e=tx(e.type,!0),e;default:return""}}function gC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case tp:return"Fragment";case ep:return"Portal";case fC:return"Profiler";case O3:return"StrictMode";case pC:return"Suspense";case hC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ML:return(e.displayName||"Context")+".Consumer";case EL:return(e._context.displayName||"Context")+".Provider";case k3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case E3:return t=e.displayName||null,t!==null?t:gC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return gC(e(t))}catch{}}return null}function rX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gC(t);case 8:return t===O3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function NL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nX(e){var t=NL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fy(e){e._valueTracker||(e._valueTracker=nX(e))}function AL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=NL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function U1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ok(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function IL(e,t){t=t.checked,t!=null&&T3(e,"checked",t,!1)}function mC(e,t){IL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yC(e,t.type,r):t.hasOwnProperty("defaultValue")&&yC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kk(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function yC(e,t,r){(t!=="number"||U1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ug=Array.isArray;function xp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=jy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Tg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},oX=["Webkit","ms","Moz","O"];Object.keys(Tg).forEach(function(e){oX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tg[t]=Tg[e]})});function jL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Tg.hasOwnProperty(e)&&Tg[e]?(""+t).trim():t+"px"}function zL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=jL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var iX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _C(e,t){if(t){if(iX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(De(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(De(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(De(61))}if(t.style!=null&&typeof t.style!="object")throw Error(De(62))}}function xC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var SC=null;function M3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var CC=null,Sp=null,Cp=null;function Rk(e){if(e=tm(e)){if(typeof CC!="function")throw Error(De(280));var t=e.stateNode;t&&(t=v2(t),CC(e.stateNode,e.type,t))}}function VL(e){Sp?Cp?Cp.push(e):Cp=[e]:Sp=e}function BL(){if(Sp){var e=Sp,t=Cp;if(Cp=Sp=null,Rk(e),t)for(e=0;e>>=0,e===0?32:31-(vX(e)/mX|0)|0}var zy=64,Vy=4194304;function cg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function G1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=cg(l):(i&=a,i!==0&&(n=cg(i)))}else a=r&~o,a!==0?n=cg(a):i!==0&&(n=cg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function _X(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=kg),Vk=" ",Bk=!1;function lD(e,t){switch(e){case"keyup":return YX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rp=!1;function QX(e,t){switch(e){case"compositionend":return sD(t);case"keypress":return t.which!==32?null:(Bk=!0,Vk);case"textInput":return e=t.data,e===Vk&&Bk?null:e;default:return null}}function ZX(e,t){if(rp)return e==="compositionend"||!j3&&lD(e,t)?(e=iD(),Db=L3=uu=null,rp=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$k(r)}}function fD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pD(){for(var e=window,t=U1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=U1(e.document)}return t}function z3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lQ(e){var t=pD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fD(r.ownerDocument.documentElement,r)){if(n!==null&&z3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Gk(r,i);var a=Gk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,np=null,MC=null,Mg=null,RC=!1;function Kk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;RC||np==null||np!==U1(n)||(n=np,"selectionStart"in n&&z3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mg&&mv(Mg,n)||(Mg=n,n=Y1(MC,"onSelect"),0ap||(e.current=FC[ap],FC[ap]=null,ap--)}function cr(e,t){ap++,FC[ap]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function Wp(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Q1(){yr(Jo),yr(go)}function e8(e,t,r){if(go.current!==Ru)throw Error(De(168));cr(go,t),cr(Jo,r)}function xD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(De(108,rX(e)||"Unknown",o));return Ir({},r,n)}function Z1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function t8(e,t,r){var n=e.stateNode;if(!n)throw Error(De(169));r?(e=xD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,m2=!1,gx=!1;function SD(e){Yl===null?Yl=[e]:Yl.push(e)}function bQ(e){m2=!0,SD(e)}function Hu(){if(!gx&&Yl!==null){gx=!0;var e=0,t=Qt;try{var r=Yl;for(Qt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(g,T,c[k],p);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(g,T),h=i(E,h,k),b===null?m=E:b.sibling=E,b=E,T=R}if(k===c.length)return r(g,T),xr&&zc(g,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(g,T,E.value,p);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(g,T),h=i(A,h,k),b===null?m=A:b.sibling=A,b=A,T=R}if(E.done)return r(g,T),xr&&zc(g,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=w(g,E.value,p),E!==null&&(h=i(E,h,k),b===null?m=E:b.sibling=E,b=E);return xr&&zc(g,k),m}for(T=n(g,T);!E.done;k++,E=c.next())E=_(T,g,k,E.value,p),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),h=i(E,h,k),b===null?m=E:b.sibling=E,b=E);return e&&T.forEach(function(F){return t(g,F)}),xr&&zc(g,k),m}function C(g,h,c,p){if(typeof c=="object"&&c!==null&&c.type===tp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Dy:e:{for(var m=c.key,b=h;b!==null;){if(b.key===m){if(m=c.type,m===tp){if(b.tag===7){r(g,b.sibling),h=o(b,c.props.children),h.return=g,g=h;break e}}else if(b.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&s8(m)===b.type){r(g,b.sibling),h=o(b,c.props),h.ref=$0(g,b,c),h.return=g,g=h;break e}r(g,b);break}else t(g,b);b=b.sibling}c.type===tp?(h=ed(c.props.children,g.mode,p,c.key),h.return=g,g=h):(p=Wb(c.type,c.key,c.props,null,g.mode,p),p.ref=$0(g,h,c),p.return=g,g=p)}return a(g);case ep:e:{for(b=c.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===c.containerInfo&&h.stateNode.implementation===c.implementation){r(g,h.sibling),h=o(h,c.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=Sx(c,g.mode,p),h.return=g,g=h}return a(g);case eu:return b=c._init,C(g,h,b(c._payload),p)}if(ug(c))return P(g,h,c,p);if(V0(c))return y(g,h,c,p);Ky(g,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,c),h.return=g,g=h):(r(g,h),h=xx(c,g.mode,p),h.return=g,g=h),a(g)):r(g,h)}return C}var Gp=RD(!0),ND=RD(!1),rm={},yl=Uu(rm),_v=Uu(rm),xv=Uu(rm);function Yc(e){if(e===rm)throw Error(De(174));return e}function q3(e,t){switch(cr(xv,t),cr(_v,e),cr(yl,rm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wC(t,e)}yr(yl),cr(yl,t)}function Kp(){yr(yl),yr(_v),yr(xv)}function AD(e){Yc(xv.current);var t=Yc(yl.current),r=wC(t,e.type);t!==r&&(cr(_v,e),cr(yl,r))}function Y3(e){_v.current===e&&(yr(yl),yr(_v))}var Er=Uu(0);function ow(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vx=[];function X3(){for(var e=0;er?r:4,e(!0);var n=mx.transition;mx.transition={};try{e(!1),t()}finally{Qt=r,mx.transition=n}}function YD(){return ca().memoizedState}function SQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},XD(e))QD(t,r);else if(r=OD(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),ZD(r,t,n)}}function CQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(XD(e))QD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,G3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=OD(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),ZD(r,t,n))}}function XD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function QD(e,t){Rg=iw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ZD(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,N3(e,r)}}var aw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},PQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:c8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Vb(4194308,4,WD.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=SQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:u8,useDebugValue:tT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=u8(!1),t=e[0];return e=xQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(De(407));r=r()}else{if(r=t(),Nn===null)throw Error(De(349));(ud&30)!==0||DD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,c8(jD.bind(null,n,i,e),[e]),n.flags|=2048,Pv(9,FD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[wv]=n,sF(e,t,!1,!1),t.stateNode=e;e:{switch(a=xC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oYp&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304)}else{if(!n)if(e=ow(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),G0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Yp&&r!==1073741824&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return lT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function IQ(e,t){switch(B3(t),t.tag){case 1:return ei(t.type)&&Q1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kp(),yr(Jo),yr(go),X3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Y3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));$p()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return Kp(),null;case 10:return $3(t.type._context),null;case 22:case 23:return lT(),null;case 24:return null;default:return null}}var Yy=!1,fo=!1,LQ=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function cp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function YC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var b8=!1;function DQ(e,t){if(NC=K1,e=hD(),z3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,w=e,S=null;t:for(;;){for(var b;w!==r||o!==0&&w.nodeType!==3||(l=a+o),w!==i||n!==0&&w.nodeType!==3||(s=a+n),w.nodeType===3&&(a+=w.nodeValue.length),(b=w.firstChild)!==null;)S=w,w=b;for(;;){if(w===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(b=w.nextSibling)!==null)break;w=S,S=w.parentNode}w=b}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(AC={focusedElem:e,selectionRange:r},K1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(h){Br(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=b8,b8=!1,P}function Ng(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&YC(t,r,i)}o=o.next}while(o!==n)}}function w2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function XC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function dF(e){var t=e.alternate;t!==null&&(e.alternate=null,dF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[wv],delete t[DC],delete t[yQ],delete t[bQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fF(e){return e.tag===5||e.tag===3||e.tag===4}function w8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function QC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=X1));else if(n!==4&&(e=e.child,e!==null))for(QC(e,t,r),e=e.sibling;e!==null;)QC(e,t,r),e=e.sibling}function ZC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ZC(e,t,r),e=e.sibling;e!==null;)ZC(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)pF(e,t,r),r=r.sibling}function pF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(f2,r)}catch{}switch(r.tag){case 5:fo||cp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?hx(e.parentNode,r):e.nodeType===1&&hx(e,r),gv(e)):hx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&YC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(cp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function _8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new LQ),t.forEach(function(n){var o=$Q.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*jQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,uw=0,(Ht&6)!==0)throw Error(Le(331));var o=Ht;for(Ht|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-iT?Jc(e,0):oT|=r),ti(e,t)}function _F(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vy,Vy<<=1,(Vy&130023424)===0&&(Vy=4194304)));var r=No();e=hs(e,t),e!==null&&(Jv(e,t,r),ti(e,r))}function WQ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),_F(e,r)}function $Q(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Le(314))}n!==null&&n.delete(t),_F(e,r)}var xF;xF=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,NQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&PD(t,ew,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bb(e,t),e=t.pendingProps;var o=Wp(t,go.current);Tp(t,r),o=Z3(null,t,n,e,o,r);var i=J3();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,Z1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,K3(t),o.updater=y2,t.stateNode=o,o._reactInternals=t,UC(t,n,e,r),t=$C(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&V3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=KQ(n),e=Oa(n,e),o){case 0:t=WC(null,t,n,e,r);break e;case 1:t=v8(null,t,n,e,r);break e;case 11:t=h8(null,t,n,e,r);break e;case 14:t=g8(null,t,n,Oa(n.type,e),r);break e}throw Error(Le(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),WC(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),v8(e,t,n,o,r);case 3:e:{if(iF(t),e===null)throw Error(Le(387));n=t.pendingProps,i=t.memoizedState,o=i.element,ED(e,t),nw(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qp(Error(Le(423)),t),t=m8(e,t,n,r,o);break e}else if(n!==o){o=qp(Error(Le(424)),t),t=m8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=AD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($p(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return ID(t),e===null&&zC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,IC(n,o)?a=null:i!==null&&IC(n,i)&&(t.flags|=32),oF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&zC(t),null;case 13:return aF(e,t,r);case 4:return q3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),h8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(tw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),VC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Le(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),VC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Tp(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),g8(e,t,n,o,r);case 15:return rF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Bb(e,t),t.tag=1,ei(n)?(e=!0,Z1(t)):e=!1,Tp(t,r),RD(t,n,o),UC(t,n,o,r),$C(null,t,n,!0,e,r);case 19:return lF(e,t,r);case 22:return nF(e,t,r)}throw Error(Le(156,t.tag))};function SF(e,t){return YL(e,t)}function GQ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new GQ(e,t,r,n)}function uT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KQ(e){if(typeof e=="function")return uT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k3)return 11;if(e===E3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Wb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")uT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case tp:return ed(r.children,o,i,t);case O3:a=8,o|=8;break;case fC:return e=ra(12,r,t,o|2),e.elementType=fC,e.lanes=i,e;case pC:return e=ra(13,r,t,o),e.elementType=pC,e.lanes=i,e;case hC:return e=ra(19,r,t,o),e.elementType=hC,e.lanes=i,e;case NL:return x2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ML:a=10;break e;case RL:a=9;break e;case k3:a=11;break e;case E3:a=14;break e;case eu:a=16,n=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function x2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=NL,e.lanes=r,e.stateNode={isHidden:!1},e}function xx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Sx(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nx(0),this.expirationTimes=nx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cT(e,t,r,n,o,i,a,l,s){return e=new qQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},K3(i),e}function YQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OF)}catch(e){console.error(e)}}OF(),OL.exports=Ni;var Nu=OL.exports;const kF=["top","right","bottom","left"],E8=["start","end"],M8=kF.reduce((e,t)=>e.concat(t,t+"-"+E8[0],t+"-"+E8[1]),[]),Ua=Math.min,po=Math.max,fw=Math.round,Zy=Math.floor,Au=e=>({x:e,y:e}),eZ={left:"right",right:"left",bottom:"top",top:"bottom"},tZ={start:"end",end:"start"};function n4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function hT(e){return e==="x"?"y":"x"}function gT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function vT(e){return hT(vs(e))}function EF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=vT(e),i=gT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=hw(a)),[a,hw(a)]}function rZ(e){const t=hw(e);return[pw(e),t,pw(t)]}function pw(e){return e.replace(/start|end/g,t=>tZ[t])}function nZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function oZ(e,t,r,n){const o=ja(e);let i=nZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(pw)))),i}function hw(e){return e.replace(/left|right|bottom|top/g,t=>eZ[t])}function iZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function mT(e){return typeof e!="number"?iZ(e):{top:e,right:e,bottom:e,left:e}}function Xp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function R8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=vT(t),l=gT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,w=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let b;switch(s){case"top":b={x:v,y:n.y-o.height};break;case"bottom":b={x:v,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:w};break;case"left":b={x:n.x-o.width,y:w};break;default:b={x:n.x,y:n.y}}switch(ja(t)){case"start":b[a]-=S*(r&&d?-1:1);break;case"end":b[a]+=S*(r&&d?-1:1);break}return b}const aZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:w}=R8(d,n,s),S=n,b={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const w=mT(v),S={x:r,y:n},b=vT(o),P=gT(b),y=await a.getDimensions(d),C=b==="y",g=C?"top":"left",f=C?"bottom":"right",c=C?"clientHeight":"clientWidth",h=i.reference[P]+i.reference[b]-S[b]-i.floating[P],m=S[b]-i.reference[b],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=_?_[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(_)))&&(T=l.floating[c]||i.floating[P]);const k=h/2-m/2,R=T/2-y[P]/2-1,E=Ua(w[g],R),A=Ua(w[f],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,H=n4(F,B,V),q=!s.arrow&&ja(o)!=null&&B!==H&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?pw(o)!==o:!1):!0)}const uZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:w,allowedPlacements:S=M8,autoAlignment:b=!0,...P}=Ha(e,t),y=w!==void 0||S===M8?sZ(w||null,b,S):S,C=await fd(t,P),g=((r=a.autoPlacement)==null?void 0:r.index)||0,f=y[g];if(f==null)return{};const c=EF(f,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==f)return{reset:{placement:y[0]}};const h=[C[Ei(f)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:f,overflows:h}],_=y[g+1];if(_)return{data:{index:g+1,overflows:m},reset:{placement:_}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:g+1,overflows:m},reset:{placement:R}}:{}}}},cZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:w=!0,fallbackPlacements:S,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const g=Ei(o),f=vs(l),c=Ei(l)===l,h=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[hw(l)]:rZ(l)),_=P!=="none";!S&&_&&m.push(...oZ(l,y,P,h));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[g]),w){const B=EF(o,a,h);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,H=T[B];if(H)return{data:{index:B,overflows:E},reset:{placement:H}};let q=(F=E.filter(re=>re.overflows[0]<=0).sort((re,Q)=>re.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!q)switch(b){case"bestFit":{var V;const re=(V=E.filter(Q=>{if(_){const W=vs(Q.placement);return W===f||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,Y)=>W+Y,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];re&&(q=re);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function N8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A8(e){return kF.some(t=>e[t]>=0)}const dZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=N8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:A8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=N8(i,r.floating);return{data:{escapedOffsets:a,escaped:A8(a)}}}default:return{}}}}};function MF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function fZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Xp(MF(o)))}const pZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),w=fZ(v),S=Xp(MF(v)),b=mT(l);function P(){if(w.length===2&&w[0].left>w[1].right&&s!=null&&d!=null)return w.find(C=>s>C.left-b.left&&sC.top-b.top&&d=2){if(vs(r)==="y"){const E=w[0],A=w[w.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,H=F?E.left:A.left,q=F?E.right:A.right,re=q-H,Q=B-V;return{top:V,bottom:B,left:H,right:q,width:re,height:Q,x:H,y:V}}const C=Ei(r)==="left",g=po(...w.map(E=>E.right)),f=Ua(...w.map(E=>E.left)),c=w.filter(E=>C?E.left===f:E.right===g),h=c[0].top,m=c[c.length-1].bottom,_=f,T=g,k=T-_,R=m-h;return{top:h,bottom:m,left:_,right:T,width:k,height:R,x:_,y:h}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function hZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,w=Ha(t,e);let{mainAxis:S,crossAxis:b,alignmentAxis:P}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return l&&typeof P=="number"&&(b=l==="end"?P*-1:P),s?{x:b*v,y:S*d}:{x:S*d,y:b*v}}const gZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await hZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},vZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:g,y:f}=C;return{x:g,y:f}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),w=vs(Ei(o)),S=hT(w);let b=d[S],P=d[w];if(i){const C=S==="y"?"top":"left",g=S==="y"?"bottom":"right",f=b+v[C],c=b-v[g];b=n4(f,b,c)}if(a){const C=w==="y"?"top":"left",g=w==="y"?"bottom":"right",f=P+v[C],c=P-v[g];P=n4(f,P,c)}const y=l.fn({...t,[S]:b,[w]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[w]:a}}}}}},mZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},w=vs(o),S=hT(w);let b=v[S],P=v[w];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",h=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;bm&&(b=m)}if(d){var g,f;const c=S==="y"?"width":"height",h=["top","left"].includes(Ei(o)),m=i.reference[w]-i.floating[c]+(h&&((g=a.offset)==null?void 0:g[w])||0)+(h?0:C.crossAxis),_=i.reference[w]+i.reference[c]+(h?0:((f=a.offset)==null?void 0:f[w])||0)-(h?C.crossAxis:0);P_&&(P=_)}return{[S]:b,[w]:P}}}},yZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),w=Ei(o),S=ja(o),b=vs(o)==="y",{width:P,height:y}=i.floating;let C,g;w==="top"||w==="bottom"?(C=w,g=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=w,C=S==="end"?"top":"bottom");const f=y-v.top-v.bottom,c=P-v.left-v.right,h=Ua(y-v[C],f),m=Ua(P-v[g],c),_=!t.middlewareData.shift;let T=h,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=f),_&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);b?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function O2(){return typeof window<"u"}function gh(e){return RF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(RF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RF(e){return O2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return O2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return O2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function I8(e){return!O2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function nm(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function bZ(e){return["table","td","th"].includes(gh(e))}function k2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yT(e){const t=bT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function wZ(e){let t=Iu(e);for(;wl(t)&&!Qp(t);){if(yT(t))return t;if(k2(t))return null;t=Iu(t)}return null}function bT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qp(e){return["html","body","#document"].includes(gh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function E2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(gh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||I8(e)&&e.host||_l(e);return I8(t)?t.host:t}function NF(e){const t=Iu(e);return Qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&nm(t)?t:NF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=NF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=o4(a);return t.concat(a,a.visualViewport||[],nm(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function o4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=fw(r)!==i||fw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function wT(e){return Wa(e)?e:e.contextElement}function kp(e){const t=wT(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=AF(t);let a=(i?fw(r.width):r.width)/n,l=(i?fw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _Z=Au(0);function IF(e){const t=Pi(e);return!bT()||!t.visualViewport?_Z:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=wT(e);let a=Au(1);t&&(n?Wa(n)&&(a=kp(n)):a=kp(e));const l=xZ(i,r,n)?IF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,w=o.height/a.y;if(i){const S=Pi(i),b=n&&Wa(n)?Pi(n):n;let P=S,y=o4(P);for(;y&&n&&b!==P;){const C=kp(y),g=y.getBoundingClientRect(),f=$a(y),c=g.left+(y.clientLeft+parseFloat(f.paddingLeft))*C.x,h=g.top+(y.clientTop+parseFloat(f.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,w*=C.y,s+=c,d+=h,P=Pi(y),y=o4(P)}}return Xp({width:v,height:w,x:s,y:d})}function SZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?k2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),w=wl(n);if((w||!w&&!i)&&((gh(n)!=="body"||nm(a))&&(s=E2(n)),wl(n))){const S=pd(n);d=kp(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function CZ(e){return Array.from(e.getClientRects())}function i4(e,t){const r=E2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function PZ(e){const t=_l(e),r=E2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+i4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function TZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=bT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function OZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?kp(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function L8(e,t,r){let n;if(t==="viewport")n=TZ(e,r);else if(t==="document")n=PZ(_l(e));else if(Wa(t))n=OZ(t,r);else{const o=IF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Xp(n)}function LF(e,t){const r=Iu(e);return r===t||!Wa(r)||Qp(r)?!1:$a(r).position==="fixed"||LF(r,t)}function kZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&gh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Qp(a);){const l=$a(a),s=yT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nm(a)&&!s&&LF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function EZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?k2(t)?[]:kZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const w=L8(t,v,o);return d.top=po(w.top,d.top),d.right=Ua(w.right,d.right),d.bottom=Ua(w.bottom,d.bottom),d.left=po(w.left,d.left),d},L8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function MZ(e){const{width:t,height:r}=AF(e);return{width:t,height:r}}function RZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((gh(t)!=="body"||nm(o))&&(l=E2(t)),n){const b=pd(t,!0,i,t);s.x=b.x+t.clientLeft,s.y=b.y+t.clientTop}else o&&(s.x=i4(o));let d=0,v=0;if(o&&!n&&!i){const b=o.getBoundingClientRect();v=b.top+l.scrollTop,d=b.left+l.scrollLeft-i4(o,b)}const w=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:w,y:S,width:a.width,height:a.height}}function Cx(e){return $a(e).position==="static"}function D8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function DF(e,t){const r=Pi(e);if(k2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Qp(o);){if(Wa(o)&&!Cx(o))return o;o=Iu(o)}return r}let n=D8(e,t);for(;n&&bZ(n)&&Cx(n);)n=D8(n,t);return n&&Qp(n)&&Cx(n)&&!yT(n)?r:n||wZ(e)||r}const NZ=async function(e){const t=this.getOffsetParent||DF,r=this.getDimensions,n=await r(e.floating);return{reference:RZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function AZ(e){return $a(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:SZ,getDocumentElement:_l,getClippingRect:EZ,getOffsetParent:DF,getElementRects:NZ,getClientRects:CZ,getDimensions:MZ,getScale:kp,isElement:Wa,isRTL:AZ};function IZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:w,height:S}=e.getBoundingClientRect();if(l||t(),!w||!S)return;const b=Zy(v),P=Zy(o.clientWidth-(d+w)),y=Zy(o.clientHeight-(v+S)),C=Zy(d),f={rootMargin:-b+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function h(m){const _=m[0].intersectionRatio;if(_!==s){if(!c)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch{r=new IntersectionObserver(h,f)}r.observe(e)}return a(!0),i}function LZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=wT(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const w=d&&l?IZ(d,r):null;let S=-1,b=null;a&&(b=new ResizeObserver(g=>{let[f]=g;f&&f.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=b)==null||c.observe(t)})),r()}),d&&!s&&b.observe(d),b.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const g=pd(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&r(),y=g,P=requestAnimationFrame(C)}return r(),()=>{var g;v.forEach(f=>{o&&f.removeEventListener("scroll",r),i&&f.removeEventListener("resize",r)}),w==null||w(),(g=b)==null||g.disconnect(),b=null,s&&cancelAnimationFrame(P)}}const $b=fd,jF=gZ,DZ=uZ,FZ=vZ,jZ=cZ,zZ=yZ,VZ=dZ,F8=lZ,BZ=pZ,UZ=mZ,zF=(e,t,r)=>{const n=new Map,o={platform:FF,...r},i={...o.platform,_c:n};return aZ(e,t,{...o,platform:i})},HZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?F8({element:t.current,padding:r}).fn(o):{}:t?F8({element:t,padding:r}).fn(o):{}}}};var Gb=typeof document<"u"?be.useLayoutEffect:be.useEffect;function gw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!gw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function j8(e){const t=be.useRef(e);return Gb(()=>{t.current=e}),t}function WZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=be.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=be.useState(n);gw(d,n)||v(n);const w=be.useRef(null),S=be.useRef(null),b=be.useRef(l),P=j8(i),y=j8(o),[C,g]=be.useState(null),[f,c]=be.useState(null),h=be.useCallback(E=>{w.current!==E&&(w.current=E,g(E))},[]),m=be.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),_=be.useCallback(()=>{if(!w.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),zF(w.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!gw(b.current,F)&&(b.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Gb(()=>{a===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=be.useRef(!1);Gb(()=>(T.current=!0,()=>{T.current=!1}),[]),Gb(()=>{if(C&&f){if(P.current)return P.current(C,f,_);_()}},[C,f,_,P]);const k=be.useMemo(()=>({reference:w,floating:S,setReference:h,setFloating:m}),[h,m]),R=be.useMemo(()=>({reference:C,floating:f}),[C,f]);return be.useMemo(()=>({...l,update:_,refs:k,elements:R,reference:h,floating:m}),[l,_,k,R,h,m])}var Mr=typeof document<"u"?be.useLayoutEffect:be.useEffect;let Px=!1,$Z=0;const z8=()=>"floating-ui-"+$Z++;function GZ(){const[e,t]=be.useState(()=>Px?z8():void 0);return Mr(()=>{e==null&&t(z8())},[]),be.useEffect(()=>{Px||(Px=!0)},[]),e}const KZ=_L.useId,Ov=KZ||GZ;function VF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const BF=be.createContext(null),UF=be.createContext(null),vh=()=>{var e;return((e=be.useContext(BF))==null?void 0:e.id)||null},Od=()=>be.useContext(UF),qZ=e=>{const t=Ov(),r=Od(),n=vh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},YZ=e=>{let{children:t,id:r}=e;const n=vh();return be.createElement(BF.Provider,{value:be.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},XZ=e=>{let{children:t}=e;const r=be.useRef([]),n=be.useCallback(a=>{r.current=[...r.current,a]},[]),o=be.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=be.useState(()=>VF())[0];return be.createElement(UF.Provider,{value:be.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function _T(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function HF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function xT(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof xT(e).Element:!1}function hd(e){return e?e instanceof xT(e).HTMLElement:!1}function QZ(e){if(typeof ShadowRoot>"u")return!1;const t=xT(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WF(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(_T())||t.test(HF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $F(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function a4(){return/apple/i.test(navigator.vendor)}function GF(){return _T().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=be.useRef(e);return Mr(()=>{t.current=e}),t}const V8="data-floating-ui-safe-polygon";function Kb(e,t,r){return r&&!vw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const ZZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:w,elements:{domReference:S,floating:b},refs:P}=e,y=Od(),C=vh(),g=oa(o),f=oa(n),c=be.useRef(),h=be.useRef(),m=be.useRef(),_=be.useRef(),T=be.useRef(!0),k=be.useRef(!1),R=be.useRef(()=>{}),E=be.useCallback(()=>{var B;const H=(B=v.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"},[v]);be.useEffect(()=>{if(!r)return;function B(){clearTimeout(h.current),clearTimeout(_.current),T.current=!0}return w.on("dismiss",B),()=>{w.off("dismiss",B)}},[r,w]),be.useEffect(()=>{if(!r||!g.current||!s)return;function B(){E()&&d(!1)}const H=Yo(b).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[b,s,d,r,g,v,E]);const A=be.useCallback(function(B){B===void 0&&(B=!0);const H=Kb(f.current,"close",c.current);H&&!m.current?(clearTimeout(h.current),h.current=setTimeout(()=>d(!1),H)):B&&(clearTimeout(h.current),d(!1))},[f,d]),F=be.useCallback(()=>{R.current(),m.current=void 0},[]),V=be.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(V8),k.current=!1}},[P]);return be.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function H(Q){if(clearTimeout(h.current),T.current=!1,i&&!vw(c.current)||a>0&&Kb(f.current,"open")===0)return;v.current.openEvent=Q;const W=Kb(f.current,"open",c.current);W?h.current=setTimeout(()=>{d(!0)},W):d(!0)}function q(Q){if(B())return;R.current();const W=Yo(b);if(clearTimeout(_.current),g.current){clearTimeout(h.current),m.current=g.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const Y=m.current;W.addEventListener("mousemove",Y),R.current=()=>{W.removeEventListener("mousemove",Y)};return}A()}function re(Q){B()||g.current==null||g.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",re),b==null||b.addEventListener("mouseleave",re),l&&Q.addEventListener("mousemove",H,{once:!0}),Q.addEventListener("mouseenter",H),Q.addEventListener("mouseleave",q),()=>{s&&Q.removeEventListener("mouseleave",re),b==null||b.removeEventListener("mouseleave",re),l&&Q.removeEventListener("mousemove",H),Q.removeEventListener("mouseenter",H),Q.removeEventListener("mouseleave",q)}}},[S,b,r,e,i,a,l,A,F,V,d,s,y,f,g,v]),Mr(()=>{var B;if(r&&s&&(B=g.current)!=null&&B.__options.blockPointerEvents&&E()){const re=Yo(b).body;if(re.setAttribute(V8,""),re.style.pointerEvents="none",k.current=!0,na(S)&&b){var H,q;const Q=S,W=y==null||(H=y.nodesRef.current.find(Y=>Y.id===C))==null||(q=H.context)==null?void 0:q.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",b.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",b.style.pointerEvents=""}}}},[r,s,C,b,S,y,g,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),be.useEffect(()=>()=>{F(),clearTimeout(h.current),clearTimeout(_.current),V()},[r,F,V]),be.useMemo(()=>{if(!r)return{};function B(H){c.current=H.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(h.current)},onMouseLeave(){w.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[w,r,a,s,d,A])},KF=be.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),qF=()=>be.useContext(KF),JZ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=be.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=be.useRef(null),l=be.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),be.createElement(KF.Provider,{value:be.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},eJ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=qF();be.useEffect(()=>{i&&(s({delay:{open:1,close:Kb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),be.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const w=window.setTimeout(v,d);return()=>{clearTimeout(w)}}else v()},[r,s,i,o,n,l,d]),be.useEffect(()=>{r&&a(o)},[r,a,o])};function kv(){return kv=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():B8=requestAnimationFrame(i)}function tJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Lg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function M2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const rJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function YF(e){return hd(e)&&e.matches(rJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const mw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function XF(e,t){const r=B1(e,mw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function QF(){return XF(document.body,"next")}function ZF(){return XF(document.body,"prev")}function Dg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function nJ(e){B1(e,mw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function oJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const iJ=_L.useInsertionEffect,aJ=iJ||(e=>e());function mh(e){const t=be.useRef(()=>{});return aJ(()=>{t.current=e}),be.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(a4()&&i("button"),document.addEventListener("keydown",U8),()=>{document.removeEventListener("keydown",U8)}),[]),be.createElement("span",kv({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:ST,onFocus:a=>{a4()&&GF()&&!lJ(a)?(a.persist(),CT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),JF=be.createContext(null),ej=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=be.useState(null),i=Ov(),a=tj();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},sJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=ej({id:r,enabled:!n}),[a,l]=be.useState(null),s=be.useRef(null),d=be.useRef(null),v=be.useRef(null),w=be.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return be.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function b(P){i&&Dg(P)&&(P.type==="focusin"?oJ:nJ)(i)}return i.addEventListener("focusin",b,!0),i.addEventListener("focusout",b,!0),()=>{i.removeEventListener("focusin",b,!0),i.removeEventListener("focusout",b,!0)}},[i,o,a==null?void 0:a.modal]),be.createElement(JF.Provider,{value:be.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:w,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&be.createElement(yw,{"data-type":"outside",ref:s,onFocus:b=>{if(Dg(b,i)){var P;(P=v.current)==null||P.focus()}else{const y=ZF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&be.createElement("span",{"aria-owns":i.id,style:ST}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&be.createElement(yw,{"data-type":"outside",ref:d,onFocus:b=>{if(Dg(b,i)){var P;(P=w.current)==null||P.focus()}else{const y=QF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},tj=()=>be.useContext(JF),uJ=be.forwardRef(function(t,r){return be.createElement("button",kv({},t,{type:"button",ref:r,tabIndex:-1,style:ST}))});function cJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:w,onOpenChange:S,events:b,dataRef:P,elements:{domReference:y,floating:C}}=t,g=oa(n),f=Od(),c=tj(),[h,m]=be.useState(null),_=typeof i=="number"&&i<0,T=be.useRef(null),k=be.useRef(null),R=be.useRef(!1),E=be.useRef(null),A=be.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&YF(y),B=be.useCallback(function(Q){return Q===void 0&&(Q=C),Q?B1(Q,mw()):[]},[C]),H=be.useCallback(Q=>{const W=B(Q);return g.current.map(Y=>y&&Y==="reference"?y:C&&Y==="floating"?C:W).filter(Boolean).flat()},[y,C,g,B]);be.useEffect(()=>{if(!l)return;function Q(Y){if(Y.key==="Tab"){B().length===0&&!V&&Xi(Y);const te=H(),ne=M2(Y);g.current[0]==="reference"&&ne===y&&(Xi(Y),Y.shiftKey?Ys(te[te.length-1]):Ys(te[1])),g.current[1]==="floating"&&ne===C&&Y.shiftKey&&(Xi(Y),Ys(te[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,g,v,V,B,H]),be.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(Y){const te=Y.relatedTarget,ne=!(Ho(y,te)||Ho(C,te)||Ho(te,C)||Ho(c==null?void 0:c.portalNode,te)||te!=null&&te.hasAttribute("data-floating-ui-focus-guard")||f&&(Lg(f.nodesRef.current,w).find(se=>{var ve,ye;return Ho((ve=se.context)==null?void 0:ve.elements.floating,te)||Ho((ye=se.context)==null?void 0:ye.elements.domReference,te)})||tJ(f.nodesRef.current,w).find(se=>{var ve,ye;return((ve=se.context)==null?void 0:ve.elements.floating)===te||((ye=se.context)==null?void 0:ye.elements.domReference)===te})));te&&ne&&!A.current&&te!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,w,f,c,S,d]),be.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function Y(){return[T.current,k.current].filter(Boolean)}if(C&&l){const te=[C,...W,...Y()],ne=AY(g.current.includes("reference")||V?te.concat(y||[]):te);return()=>{ne()}}},[y,C,l,g,c,V]),be.useEffect(()=>{if(l&&!o&&C){const Q=[],W=mw(),Y=B1(Yo(C).body,W),te=H(),ne=Y.filter(se=>!te.includes(se));return ne.forEach((se,ve)=>{Q[ve]=se.getAttribute("tabindex"),se.setAttribute("tabindex","-1")}),()=>{ne.forEach((se,ve)=>{const ye=Q[ve];ye==null?se.removeAttribute("tabindex"):se.setAttribute("tabindex",ye)})}}},[C,l,o,H]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,Y=!1;const te=gd(Q),ne=P.current;E.current=te;const se=H(C),ve=(typeof i=="number"?se[i]:i.current)||C;!_&&Ys(ve,{preventScroll:ve===C});function ye(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const J=ce.data.returnFocus;typeof J=="object"?(W=!0,Y=J.preventScroll):W=J}return b.on("dismiss",ye),()=>{if(b.off("dismiss",ye),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:Y});else{var ce;ne.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:Y}),setTimeout(()=>{delete ne.__syncReturnFocus})}}},[C,H,i,a,P,v,b,_]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(_||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,_,v]);const q=o&&(F||l)&&!V;function re(Q){return s&&l?be.createElement(uJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return be.createElement(be.Fragment,null,q&&be.createElement(yw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const Y=H();Ys(n[0]==="reference"?Y[0]:Y[Y.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Dg(Q,c.portalNode)){const Y=QF()||y;Y==null||Y.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:re("start"),be.cloneElement(r,h===0||n.includes("floating")?{tabIndex:0}:{}),re("end"),q&&be.createElement(yw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(H()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Dg(Q,c.portalNode)){const Y=ZF()||y;Y==null||Y.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const Jy="data-floating-ui-scroll-lock",dJ=be.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(Jy))return;document.body.setAttribute(Jy,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(_T()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(Jy),Object.assign(document.body.style,{overflow:"",[d]:""})};const w=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,b=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(b-Math.floor(w))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(Jy),window.scrollTo(b,P)}},[n]),be.createElement("div",kv({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function H8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function W8(e){return YF(e)}const fJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const w=be.useRef();return be.useMemo(()=>a?{reference:{onPointerDown(S){w.current=S.pointerType},onMouseDown(S){S.button===0&&(vw(w.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&w.current){w.current=void 0;return}vw(w.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){w.current=void 0,v&&(H8(S)||(S.key===" "&&!W8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(H8(S)||W8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function qb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const pJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},hJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},gJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},vJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:w=!0,outsidePress:S=!0,outsidePressEvent:b="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:g=!0}=t===void 0?{}:t;const f=Od(),c=vh()!=null,h=mh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?h:S,_=be.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=gJ(g);return be.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const H=f?Lg(f.nodesRef.current,i):[];if(H.length>0){let q=!0;if(H.forEach(re=>{var Q;if((Q=re.context)!=null&&Q.open&&!re.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const H=_.current;if(_.current=!1,H||typeof m=="function"&&!m(B))return;const q=M2(B);if(hd(q)&&s){const W=s.ownerDocument.defaultView||window,Y=q.scrollWidth>q.clientWidth,te=q.scrollHeight>q.clientHeight;let ne=te&&B.offsetX>q.clientWidth;if(te&&W.getComputedStyle(q).direction==="rtl"&&(ne=B.offsetX<=q.offsetWidth-q.clientWidth),ne||Y&&B.offsetY>q.clientHeight)return}const re=f&&Lg(f.nodesRef.current,i).some(W=>{var Y;return qb(B,(Y=W.context)==null?void 0:Y.elements.floating)});if(qb(B,s)||qb(B,l)||re)return;const Q=f?Lg(f.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(Y=>{var te;if((te=Y.context)!=null&&te.open&&!Y.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:WF(B)||$F(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);w&&F.addEventListener("keydown",R),m&&F.addEventListener(b,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var H;return B!==((H=F.defaultView)==null?void 0:H.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{w&&F.removeEventListener("keydown",R),m&&F.removeEventListener(b,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,w,m,b,o,f,i,r,n,C,v,T,k,c]),be.useEffect(()=>{_.current=!1},[m,b]),be.useMemo(()=>v?{reference:{[pJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[hJ[b]]:()=>{_.current=!0}}}:{},[v,o,P,b,y,n])},mJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const w=be.useRef(""),S=be.useRef(!1),b=be.useRef();return be.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),be.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),be.useEffect(()=>()=>{clearTimeout(b.current)},[]),be.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;w.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&qb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";b.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let $8=!1;const PT="ArrowUp",R2="ArrowDown",Zp="ArrowLeft",om="ArrowRight";function eb(e,t,r){return Math.floor(e/t)!==r}function q0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function N2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function G8(e,t){return N2(t,e===PT||e===R2,e===Zp||e===om)}function Tx(e,t,r){return N2(t,e===R2,r?e===Zp:e===om)||e==="Enter"||e==" "||e===""}function yJ(e,t,r){return N2(t,r?e===Zp:e===om,e===R2)}function bJ(e,t,r){return N2(t,r?e===om:e===Zp,e===PT)}function Ox(e,t){return uo(e,{disabledIndices:t})}function K8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const wJ=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:w=!1,loop:S=!1,nested:b=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:f=!0,disabledIndices:c=void 0,orientation:h="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=vh(),k=Od(),R=mh(s),E=be.useRef(C),A=be.useRef(v??-1),F=be.useRef(null),V=be.useRef(!0),B=be.useRef(R),H=be.useRef(r),q=be.useRef(!1),re=be.useRef(!1),Q=oa(c),W=oa(r),Y=oa(_),[te,ne]=be.useState(),se=be.useCallback(function(ce,J,oe){oe===void 0&&(oe=!1);const ue=ce.current[J.current];y?ne(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:GF()&&a4()?$8||q.current:!1}),requestAnimationFrame(()=>{const Se=Y.current;Se&&ue&&(oe||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,Y]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return $8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(re.current=!0,R(v)):H.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(q.current=!1,v!=null)return;H.current&&(A.current=-1,se(a,A)),!H.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||Tx(F.current,h,P)||b?Ox(a,Q.current):K8(a,Q.current),R(A.current))}else q0(a,l)||(A.current=l,se(a,A,re.current),re.current=!1)},[d,r,l,v,b,a,h,P,R,se,Q]),Mr(()=>{if(d&&H.current&&!r){var ce,J;const oe=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(J=ce.context)==null?void 0:J.elements.floating;oe&&!Ho(oe,gd(Yo(oe)))&&oe.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,H.current=r});const ve=l!=null,ye=be.useMemo(()=>{function ce(oe){if(!r)return;const ue=a.current.indexOf(oe);ue!==-1&&R(ue)}return{onFocus(oe){let{currentTarget:ue}=oe;ce(ue)},onClick:oe=>{let{currentTarget:ue}=oe;return ue.focus({preventScroll:!0})},...g&&{onMouseMove(oe){let{currentTarget:ue}=oe;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,se(a,A),Nu.flushSync(()=>R(null)),!y)){var oe;(oe=o.floating.current)==null||oe.focus({preventScroll:!0})}}}}},[r,o,se,g,a,R,y]);return be.useMemo(()=>{if(!d)return{};const ce=Q.current;function J(Ce){if(V.current=!1,q.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(b&&bJ(Ce.key,h,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Re=A.current,xe=Ox(a,ce),Te=K8(a,ce);if(Ce.key==="Home"&&(A.current=xe,R(A.current)),Ce.key==="End"&&(A.current=Te,R(A.current)),m>1){const Oe=A.current;if(Ce.key===PT){if(Xi(Ce),Oe===-1)A.current=Te;else if(A.current=uo(a,{startingIndex:Oe,amount:m,decrement:!0,disabledIndices:ce}),S&&(Oe-mje?it:it-m}q0(a,A.current)&&(A.current=Oe),R(A.current)}if(Ce.key===R2&&(Xi(Ce),Oe===-1?A.current=xe:(A.current=uo(a,{startingIndex:Oe,amount:m,disabledIndices:ce}),S&&Oe+m>Te&&(A.current=uo(a,{startingIndex:Oe%m-m,amount:m,disabledIndices:ce}))),q0(a,A.current)&&(A.current=Oe),R(A.current)),h==="both"){const je=Math.floor(Oe/m);Ce.key===om&&(Xi(Ce),Oe%m!==m-1?(A.current=uo(a,{startingIndex:Oe,disabledIndices:ce}),S&&eb(A.current,m,je)&&(A.current=uo(a,{startingIndex:Oe-Oe%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:Oe-Oe%m-1,disabledIndices:ce})),eb(A.current,m,je)&&(A.current=Oe)),Ce.key===Zp&&(Xi(Ce),Oe%m!==0?(A.current=uo(a,{startingIndex:Oe,disabledIndices:ce,decrement:!0}),S&&eb(A.current,m,je)&&(A.current=uo(a,{startingIndex:Oe+(m-Oe%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:Oe+(m-Oe%m),decrement:!0,disabledIndices:ce})),eb(A.current,m,je)&&(A.current=Oe));const Ye=Math.floor(Te/m)===je;q0(a,A.current)&&(S&&Ye?A.current=Ce.key===Zp?Te:uo(a,{startingIndex:Oe-Oe%m-1,disabledIndices:ce}):A.current=Oe),R(A.current);return}}if(G8(Ce.key,h)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=Tx(Ce.key,h,P)?xe:Te,R(A.current);return}Tx(Ce.key,h,P)?S?A.current=Re>=Te?w&&Re!==a.current.length?-1:xe:uo(a,{startingIndex:Re,disabledIndices:ce}):A.current=Math.min(Te,uo(a,{startingIndex:Re,disabledIndices:ce})):S?A.current=Re<=xe?w&&Re!==-1?a.current.length:Te:uo(a,{startingIndex:Re,decrement:!0,disabledIndices:ce}):A.current=Math.max(xe,uo(a,{startingIndex:Re,decrement:!0,disabledIndices:ce})),q0(a,A.current)?R(null):R(A.current)}}function oe(Ce){C==="auto"&&WF(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&$F(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&ve&&{"aria-activedescendant":te};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Re=Ce.key.indexOf("Arrow")===0;if(y&&r)return J(Ce);if(!r&&!f&&Re)return;if((Re||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),b){yJ(Ce.key,h,P)&&(Xi(Ce),r?(A.current=Ox(a,ce),R(A.current)):n(!0));return}G8(Ce.key,h)&&(v!=null&&(A.current=v),Xi(Ce),!r&&f?n(!0):J(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:oe,onClick:oe},floating:{"aria-orientation":h==="both"?void 0:h,...Se,onKeyDown:J,onPointerMove(){V.current=!0}},item:ye}},[i,o,te,Q,W,a,d,h,P,y,r,ve,b,v,f,w,m,S,C,R,n,ye])};function _J(e){return be.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const xJ=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=Ov(),a=Ov();return be.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},q8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function SJ(e,t){const[r,n]=be.useState(e);return e&&!r&&n(!0),be.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function rj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=be.useState(!1),[d,v]=be.useState("unmounted"),w=SJ(r,a);return Mr(()=>{l&&!w&&v("unmounted")},[l,w]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:w,status:d}}function CJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=be.useState({}),{isMounted:w,status:S}=rj(e,{duration:a}),b=oa(r),P=oa(n),y=oa(o),C=oa(i),g=typeof a=="number",f=(g?a:a.open)||0,c=(g?a:a.close)||0;return Mr(()=>{const h={side:s,placement:l},m=b.current,_=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(h):m,E=typeof _=="function"?_(h):_,A=typeof k=="function"?k(h):k,F=(typeof T=="function"?T(h):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(q8).join(","),transitionDuration:f+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(q8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,b,P,C,f,S]),{isMounted:w,styles:d}}const PJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:w=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const b=be.useRef(),P=be.useRef(""),y=be.useRef((r=S??a)!=null?r:-1),C=be.useRef(null),g=mh(l),f=oa(d),c=oa(w);return Mr(()=>{n&&(clearTimeout(b.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var h;y.current=(h=S??a)!=null?h:-1}},[n,S,a]),be.useMemo(()=>{if(!s)return{};function h(m){const _=M2(m.nativeEvent);if(na(_)&&(gd(Yo(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,H;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((H=V[1])==null?void 0:H.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(b.current),b.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=f.current?f.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(g(F),C.current=F)}return{reference:{onKeyDown:h},floating:{onKeyDown:h}}},[s,o,i,v,c,f,g])};function Y8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const TJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:w,elements:{floating:S}}=t,b=r.current[a];if(!b)return{};const P={...t,...await jF(-b.offsetTop-w.reference.height/2-b.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await $b(Y8(P,y.scrollHeight),v),g=await $b(P,{...v,elementContext:"reference"}),f=Math.max(0,C.top),c=P.y+f,h=Math.max(0,y.scrollHeight-f-Math.max(0,C.bottom));return y.style.maxHeight=h+"px",y.scrollTop=f,o&&(y.offsetHeight=-s||g.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await $b(Y8({...P,y:c},y.offsetHeight),v)),{y:c}}}),OJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=mh(l),d=be.useRef(!1),v=be.useRef(null),w=be.useRef(null);return be.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!b||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,g=i.current.bottom>=-.5,f=b.scrollHeight-b.clientHeight,c=y<0?-1:1,h=y<0?"max":"min";b.scrollHeight<=b.clientHeight||(!C&&y>0||!g&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[h](y,f*c))})):/firefox/i.test(HF())&&(b.scrollTop+=y))}const b=(a==null?void 0:a.current)||n.floating;if(r&&b)return b.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=b.scrollTop,i.current!=null&&(w.current={...i.current})}),()=>{v.current=null,w.current=null,b.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),be.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const b=S.scrollTop-v.current;(i.current.bottom<-.5&&b<-1||i.current.top<-.5&&b>1)&&Nu.flushSync(()=>s(P=>P+b))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function kJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=w>=n&&r<=(v-s)*(n-d)/(w-d)+s&&(o=!o)}return o}function EJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function MJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:w,elements:S,onClose:b,nodeId:P,tree:y}=s;return function(g){function f(){clearTimeout(o),b()}if(clearTimeout(o),!S.domReference||!S.floating||w==null||d==null||v==null)return;const{clientX:c,clientY:h}=g,m=[c,h],_=M2(g),T=g.type==="mouseleave",k=Ho(S.floating,_),R=Ho(S.domReference,_),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=w.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,H=EJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(g.relatedTarget)&&Ho(S.floating,g.relatedTarget)||y&&Lg(y.nodesRef.current,P).some(W=>{let{context:Y}=W;return Y==null?void 0:Y.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return f();let q=[];switch(F){case"top":q=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&h>=A.top&&h<=E.top+1;break;case"bottom":q=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&h>=E.bottom-1&&h<=A.bottom;break;case"left":q=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&h>=A.top&&h<=A.bottom;break;case"right":q=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&h>=A.top&&h<=A.bottom;break}function re(W){let[Y,te]=W;const ne=A.width>E.width,se=A.height>E.height;switch(F){case"top":{const ve=[ne?Y+r/2:V?Y+r*4:Y-r*4,te+r+1],ye=[ne?Y-r/2:V?Y+r*4:Y-r*4,te+r+1],ce=[[A.left,V||ne?A.bottom-r:A.top],[A.right,V?ne?A.bottom-r:A.top:A.bottom-r]];return[ve,ye,...ce]}case"bottom":{const ve=[ne?Y+r/2:V?Y+r*4:Y-r*4,te-r],ye=[ne?Y-r/2:V?Y+r*4:Y-r*4,te-r],ce=[[A.left,V||ne?A.top+r:A.bottom],[A.right,V?ne?A.top+r:A.bottom:A.top+r]];return[ve,ye,...ce]}case"left":{const ve=[Y+r+1,se?te+r/2:B?te+r*4:te-r*4],ye=[Y+r+1,se?te-r/2:B?te+r*4:te-r*4];return[...[[B||se?A.right-r:A.left,A.top],[B?se?A.right-r:A.left:A.right-r,A.bottom]],ve,ye]}case"right":{const ve=[Y-r,se?te+r/2:B?te+r*4:te-r*4],ye=[Y-r,se?te-r/2:B?te+r*4:te-r*4],ce=[[B||se?A.left+r:A.right,A.top],[B?se?A.left+r:A.right:A.left+r,A.bottom]];return[ve,ye,...ce]}}}const Q=i?q:re([d,v]);if(!i){if(a&&!H)return f();kJ([c,h],Q)?t&&!a&&(o=setTimeout(f,t)):f()}}};return l.__options={blockPointerEvents:n},l}function RJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=WZ(e),i=Od(),a=be.useRef(null),l=be.useRef({}),s=be.useState(()=>VF())[0],[d,v]=be.useState(null),w=be.useCallback(g=>{const f=na(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;o.refs.setReference(f)},[o.refs]),S=be.useCallback(g=>{(na(g)||g===null)&&(a.current=g,v(g)),(na(o.refs.reference.current)||o.refs.reference.current===null||g!==null&&!na(g))&&o.refs.setReference(g)},[o.refs]),b=be.useMemo(()=>({...o.refs,setReference:S,setPositionReference:w,domReference:a}),[o.refs,S,w]),P=be.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=mh(r),C=be.useMemo(()=>({...o,refs:b,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,b,P]);return Mr(()=>{const g=i==null?void 0:i.nodesRef.current.find(f=>f.id===n);g&&(g.context=C)}),be.useMemo(()=>({...o,context:C,refs:b,reference:S,positionReference:w}),[o,b,C,S,w])}function kx(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,w=arguments.length,S=new Array(w),b=0;bP(...S))}}}else o[l]=s}),o),{})}}const NJ=function(e){e===void 0&&(e=[]);const t=e,r=be.useCallback(i=>kx(i,e,"reference"),t),n=be.useCallback(i=>kx(i,e,"floating"),t),o=be.useCallback(i=>kx(i,e,"item"),e.map(i=>i==null?void 0:i.item));return be.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},AJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:JZ,FloatingFocusManager:cJ,FloatingNode:YZ,FloatingOverlay:dJ,FloatingPortal:sJ,FloatingTree:XZ,arrow:HZ,autoPlacement:DZ,autoUpdate:LZ,computePosition:zF,detectOverflow:$b,flip:jZ,getOverflowAncestors:os,hide:VZ,inline:BZ,inner:TJ,limitShift:UZ,offset:jF,platform:FF,safePolygon:MJ,shift:FZ,size:zZ,useClick:fJ,useDelayGroup:eJ,useDelayGroupContext:qF,useDismiss:vJ,useFloating:RJ,useFloatingNodeId:qZ,useFloatingParentNodeId:vh,useFloatingPortalNode:ej,useFloatingTree:Od,useFocus:mJ,useHover:ZZ,useId:Ov,useInnerOffset:OJ,useInteractions:NJ,useListNavigation:wJ,useMergeRefs:_J,useRole:xJ,useTransitionStatus:rj,useTransitionStyles:CJ,useTypeahead:PJ},Symbol.toStringTag,{value:"Module"})),wn=Lv(AJ);var nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return b}});var r=d(X),n=d(pt),o=Ze,i=d(Je),a=qe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,h=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(h.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},f,{ref:y,className:_}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var b=S})(nj);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{DialogBody:function(){return b},default:function(){return P}});var r=v(X),n=v(pt),o=Ze,i=v(Je),a=qe,l=sh;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.divider,f=y.className,c=y.children,h=w(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,_=m.defaultProps,T=m.styles.base;f=(0,o.twMerge)(_.className||"",f);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),g)),f);return r.default.createElement("div",d({},h,{ref:C,className:k}),c)});b.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},b.displayName="MaterialTailwind.DialogBody";var P=b})(oj);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return b}});var r=d(X),n=d(pt),o=Ze,i=d(Je),a=qe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,h=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(h.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},f,{ref:y,className:_}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var b=S})(ij);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return b.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=f(X),n=f(nt),o=wn,i=An,a=f(pt),l=f(Xn),s=Ze,d=f(Sr),v=f(Je),w=qe,S=sh,b=nj,P=oj,y=ij;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function g(){return g=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,H=E.dismiss,q=E.animate,re=E.className,Q=E.children,W=_(E,["open","handler","size","dismiss","animate","className","children"]),Y=(0,w.useTheme)().dialog,te=Y.defaultProps,ne=Y.valid,se=Y.styles,ve=se.base,ye=se.sizes;V=V??void 0,B=B??te.size,H=H??te.dismiss,q=q??te.animate,re=(0,s.twMerge)(te.className||"",re);var ce=(0,a.default)((0,v.default)(ve.backdrop)),J=(0,s.twMerge)((0,a.default)((0,v.default)(ve.container),(0,v.default)(ye[(0,d.default)(ne.sizes,B,"md")])),re),oe={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(oe,q),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Re=Ce.floating,xe=Ce.context,Te=(0,o.useId)(),Oe="".concat(Te,"-label"),je="".concat(Te,"-description"),Ye=(0,o.useInteractions)([(0,o.useClick)(xe),(0,o.useRole)(xe),(0,o.useDismiss)(xe,H)]).getFloatingProps,it=(0,o.useMergeRefs)([A,Re]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:xe},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,g({},Ye(m(c({},W),{ref:it,className:J,"aria-labelledby":Oe,"aria-describedby":je})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:b.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(fL);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=S(Sr),a=S(Je),l=qe,s=Hv,d=Ze;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.color,m=g.size,_=g.label,T=g.error,k=g.success,R=g.icon,E=g.containerProps,A=g.labelProps,F=g.className,V=g.shrink,B=g.inputRef,H=b(g,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),q=(0,l.useTheme)().input,re=q.defaultProps,Q=q.valid,W=q.styles,Y=W.base,te=W.variants;c=c??re.variant,m=m??re.size,h=h??re.color,_=_??re.label,A=A??re.labelProps,E=E??re.containerProps,V=V??re.shrink,R=R??re.icon,F=(0,d.twMerge)(re.className||"",F);var ne=te[(0,i.default)(Q.variants,c,"outlined")],se=ne.sizes[(0,i.default)(Q.sizes,m,"md")],ve=(0,a.default)(ne.error.input),ye=(0,a.default)(ne.success.input),ce=(0,a.default)(ne.shrink.input),J=(0,a.default)(ne.colors.input[(0,i.default)(Q.colors,h,"gray")]),oe=(0,a.default)(ne.error.label),ue=(0,a.default)(ne.success.label),Se=(0,a.default)(ne.shrink.label),Ce=(0,a.default)(ne.colors.label[(0,i.default)(Q.colors,h,"gray")]),Re=(0,o.default)((0,a.default)(Y.container),(0,a.default)(se.container),E==null?void 0:E.className),xe=(0,o.default)((0,a.default)(Y.input),(0,a.default)(ne.base.input),(0,a.default)(se.input),v({},(0,a.default)(ne.base.inputWithIcon),R),v({},J,!T&&!k),v({},ve,T),v({},ye,k),v({},ce,V),F),Te=(0,o.default)((0,a.default)(Y.label),(0,a.default)(ne.base.label),(0,a.default)(se.label),v({},Ce,!T&&!k),v({},oe,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),Oe=(0,o.default)((0,a.default)(Y.icon),(0,a.default)(ne.base.icon),(0,a.default)(se.icon)),je=(0,o.default)((0,a.default)(Y.asterisk));return r.default.createElement("div",w({},E,{ref:f,className:Re}),R&&r.default.createElement("div",{className:Oe},R),r.default.createElement("input",w({},H,{ref:B,className:xe,placeholder:(H==null?void 0:H.placeholder)||" "})),r.default.createElement("label",w({},A,{className:Te}),_," ",H.required?r.default.createElement("span",{className:je},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(aj);var lj={},im={},yh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return w},propTypesDisabled:function(){return S},propTypesClassName:function(){return b},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(nt),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,w=r.default.bool,S=r.default.bool,b=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(yh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(X),n=yh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(im);var sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{MenuCore:function(){return C},default:function(){return g}});var r=w(X),n=w(nt),o=wn,i=w(Xn),a=qe,l=im,s=yh;function d(f,c){(c==null||c>f.length)&&(c=f.length);for(var h=0,m=new Array(c);h=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.children,f=w(y,["children"]),c=(0,o.useMenu)(),h=c.getReferenceProps,m=c.reference,_=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(g,s({},h(s(v(s({},f),{ref:T,onClick:function(R){R.stopPropagation()}}),_&&{role:"menuitem"}))))});b.propTypes={children:i.propTypesChildren},b.displayName="MaterialTailwind.MenuHandler";var P=b})(uj);var cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(X),n=wn,o=An,i=S(pt),a=Ze,l=S(Je),s=qe,d=im,v=yh;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.children,h=g.className,m=b(g,["children","className"]),_=(0,s.useTheme)().menu,T=_.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,H=k.listItemsRef,q=k.getFloatingProps,re=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,Y=k.context,te=k.activeIndex,ne=k.tree,se=k.allowHover,ve=k.internalAllowHover,ye=k.setActiveIndex,ce=k.nested;h=h??"";var J=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),h),oe=(0,n.useMergeRefs)([f,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,w({},m,{ref:oe,style:{position:A,top:V??0,left:F??0},className:J},q({onKeyDown:function(Re){Re.key==="Tab"&&(E(!1),Re.shiftKey&&Re.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Re){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,re({tabIndex:te===Re?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Te){H.current[Re]=Te},onClick:function(Te){if(Ce.props.onClick){var Oe,je;(je=(Oe=Ce.props).onClick)===null||je===void 0||je.call(Oe,Te)}ne==null||ne.events.emit("click")},onMouseEnter:function(){(se&&R||ve&&R)&&ye(Re)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:Y,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:Y,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(cj);var dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{MenuItem:function(){return b},default:function(){return P}});var r=v(X),n=v(pt),o=Ze,i=v(Je),a=qe,l=yh;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.className,f=g===void 0?"":g,c=y.disabled,h=c===void 0?!1:c,m=y.children,_=w(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),h)),f);return r.default.createElement("button",d({},_,{ref:C,role:"menuitem",className:R}),m)});b.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},b.displayName="MaterialTailwind.MenuItem";var P=b})(dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return w},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(X),n=wn,o=im,i=sj,a=uj,l=cj,s=dj;function d(){return d=Object.assign||function(b){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.open,h=g.animate,m=g.className,_=g.children,T=b(g,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function wx(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function HC(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var kQ=typeof WeakMap=="function"?WeakMap:Map;function JD(e,t,r){r=ns(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){sw||(sw=!0,JC=n),HC(e,t)},r}function eF(e,t,r){r=ns(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){HC(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){HC(e,t),typeof n!="function"&&(Pu===null?Pu=new Set([this]):Pu.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function d8(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new kQ;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=UQ.bind(null,e,t,r),t.then(e,e))}function f8(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function p8(e,t,r,n,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ns(-1,1),t.tag=2,Cu(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var EQ=ws.ReactCurrentOwner,qo=!1;function Mo(e,t,r,n){t.child=e===null?ND(t,null,r,n):Gp(t,e.child,r,n)}function h8(e,t,r,n,o){r=r.render;var i=t.ref;return Tp(t,o),n=Z3(e,t,r,n,i,o),r=J3(),e!==null&&!qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,gs(e,t,o)):(xr&&r&&V3(t),t.flags|=1,Mo(e,t,n,o),t.child)}function g8(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!uT(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,tF(e,t,i,n,o)):(e=Wb(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:mv,r(a,n)&&e.ref===t.ref)return gs(e,t,o)}return t.flags|=1,e=Ou(i,n),e.ref=t.ref,e.return=t,t.child=e}function tF(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(mv(i,n)&&e.ref===t.ref)if(qo=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(qo=!0);else return t.lanes=e.lanes,gs(e,t,o)}return WC(e,t,r,n,o)}function rF(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},cr(dp,bi),bi|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,cr(dp,bi),bi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,cr(dp,bi),bi|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,cr(dp,bi),bi|=n;return Mo(e,t,o,r),t.child}function nF(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function WC(e,t,r,n,o){var i=ei(r)?ld:go.current;return i=Wp(t,i),Tp(t,o),r=Z3(e,t,r,n,i,o),n=J3(),e!==null&&!qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,gs(e,t,o)):(xr&&n&&V3(t),t.flags|=1,Mo(e,t,r,o),t.child)}function v8(e,t,r,n,o){if(ei(r)){var i=!0;Z1(t)}else i=!1;if(Tp(t,o),t.stateNode===null)Bb(e,t),MD(t,r,n),UC(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,d=r.contextType;typeof d=="object"&&d!==null?d=ua(d):(d=ei(r)?ld:go.current,d=Wp(t,d));var v=r.getDerivedStateFromProps,w=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function";w||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==n||s!==d)&&l8(t,a,n,d),tu=!1;var S=t.memoizedState;a.state=S,nw(t,n,a,o),s=t.memoizedState,l!==n||S!==s||Jo.current||tu?(typeof v=="function"&&(BC(t,r,v,n),s=t.memoizedState),(l=tu||a8(t,r,l,n,S,s,d))?(w||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),a.props=n,a.state=s,a.context=d,n=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,kD(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:Oa(t.type,l),a.props=d,w=t.pendingProps,S=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=ua(s):(s=ei(r)?ld:go.current,s=Wp(t,s));var _=r.getDerivedStateFromProps;(v=typeof _=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==w||S!==s)&&l8(t,a,n,s),tu=!1,S=t.memoizedState,a.state=S,nw(t,n,a,o);var P=t.memoizedState;l!==w||S!==P||Jo.current||tu?(typeof _=="function"&&(BC(t,r,_,n),P=t.memoizedState),(d=tu||a8(t,r,d,n,S,P,s)||!1)?(v||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,P,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,P,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=P),a.props=n,a.state=P,a.context=s,n=d):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),n=!1)}return $C(e,t,r,n,i,o)}function $C(e,t,r,n,o,i){nF(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&t8(t,r,!1),gs(e,t,i);n=t.stateNode,EQ.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Gp(t,e.child,null,i),t.child=Gp(t,null,l,i)):Mo(e,t,l,i),t.memoizedState=n.state,o&&t8(t,r,!0),t.child}function oF(e){var t=e.stateNode;t.pendingContext?e8(e,t.pendingContext,t.pendingContext!==t.context):t.context&&e8(e,t.context,!1),q3(e,t.containerInfo)}function m8(e,t,r,n,o){return $p(),U3(o),t.flags|=256,Mo(e,t,r,n),t.child}var GC={dehydrated:null,treeContext:null,retryLane:0};function KC(e){return{baseLanes:e,cachePool:null,transitions:null}}function iF(e,t,r){var n=t.pendingProps,o=Er.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),cr(Er,o&1),e===null)return zC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=x2(a,n,0,null),e=ed(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=KC(r),t.memoizedState=GC,e):rT(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return MQ(e,t,a,n,l,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:n.children};return(a&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=Ou(o,s),n.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Ou(l,i):(i=ed(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?KC(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=GC,n}return i=e.child,e=i.sibling,n=Ou(i,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function rT(e,t){return t=x2({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qy(e,t,r,n){return n!==null&&U3(n),Gp(t,e.child,null,r),e=rT(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function MQ(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=wx(Error(De(422))),qy(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=x2({mode:"visible",children:n.children},o,0,null),i=ed(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Gp(t,e.child,null,a),t.child.memoizedState=KC(a),t.memoizedState=GC,i);if((t.mode&1)===0)return qy(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(De(419)),n=wx(i,n,void 0),qy(e,t,a,n)}if(l=(a&e.childLanes)!==0,qo||l){if(n=Nn,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,hs(e,o),Fa(n,e,o,-1))}return sT(),n=wx(Error(De(421))),qy(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=HQ.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,xi=Su(o.nextSibling),Ci=t,xr=!0,Na=null,e!==null&&(Ji[ea++]=Zl,Ji[ea++]=Jl,Ji[ea++]=sd,Zl=e.id,Jl=e.overflow,sd=t),t=rT(t,n.children),t.flags|=4096,t)}function y8(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),VC(e.return,t,r)}function _x(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function aF(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Mo(e,t,n.children,r),n=Er.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&y8(e,r,t);else if(e.tag===19)y8(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(cr(Er,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&ow(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),_x(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ow(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}_x(t,!0,r,null,i);break;case"together":_x(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bb(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),cd|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(De(153));if(t.child!==null){for(e=t.child,r=Ou(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ou(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function RQ(e,t,r){switch(t.tag){case 3:oF(t),$p();break;case 5:AD(t);break;case 1:ei(t.type)&&Z1(t);break;case 4:q3(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;cr(tw,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(cr(Er,Er.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?iF(e,t,r):(cr(Er,Er.current&1),e=gs(e,t,r),e!==null?e.sibling:null);cr(Er,Er.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return aF(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),cr(Er,Er.current),n)break;return null;case 22:case 23:return t.lanes=0,rF(e,t,r)}return gs(e,t,r)}var lF,qC,sF,uF;lF=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};qC=function(){};sF=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Yc(yl.current);var i=null;switch(r){case"input":o=vC(e,o),n=vC(e,n),i=[];break;case"select":o=Ir({},o,{value:void 0}),n=Ir({},n,{value:void 0}),i=[];break;case"textarea":o=bC(e,o),n=bC(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=X1)}_C(r,n);var a;r=null;for(d in o)if(!n.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var l=o[d];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(cv.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in n){var s=n[d];if(l=o!=null?o[d]:void 0,n.hasOwnProperty(d)&&s!==l&&(s!=null||l!=null))if(d==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(d,r)),r=s;else d==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(d,s)):d==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(d,""+s):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(cv.hasOwnProperty(d)?(s!=null&&d==="onScroll"&&vr("scroll",e),i||l===s||(i=[])):(i=i||[]).push(d,s))}r&&(i=i||[]).push("style",r);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};uF=function(e,t,r,n){r!==n&&(t.flags|=4)};function G0(e,t){if(!xr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ao(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function NQ(e,t,r){var n=t.pendingProps;switch(B3(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ao(t),null;case 1:return ei(t.type)&&Q1(),ao(t),null;case 3:return n=t.stateNode,Kp(),yr(Jo),yr(go),X3(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gy(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Na!==null&&(r4(Na),Na=null))),qC(e,t),ao(t),null;case 5:Y3(t);var o=Yc(xv.current);if(r=t.type,e!==null&&t.stateNode!=null)sF(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(De(166));return ao(t),null}if(e=Yc(yl.current),Gy(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[pl]=t,n[wv]=i,e=(t.mode&1)!==0,r){case"dialog":vr("cancel",n),vr("close",n);break;case"iframe":case"object":case"embed":vr("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[wv]=n,lF(e,t,!1,!1),t.stateNode=e;e:{switch(a=xC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oYp&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304)}else{if(!n)if(e=ow(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),G0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Yp&&r!==1073741824&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return lT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function AQ(e,t){switch(B3(t),t.tag){case 1:return ei(t.type)&&Q1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kp(),yr(Jo),yr(go),X3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Y3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(De(340));$p()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return Kp(),null;case 10:return $3(t.type._context),null;case 22:case 23:return lT(),null;case 24:return null;default:return null}}var Yy=!1,fo=!1,IQ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function cp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function YC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var b8=!1;function LQ(e,t){if(NC=K1,e=pD(),z3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,w=e,S=null;t:for(;;){for(var _;w!==r||o!==0&&w.nodeType!==3||(l=a+o),w!==i||n!==0&&w.nodeType!==3||(s=a+n),w.nodeType===3&&(a+=w.nodeValue.length),(_=w.firstChild)!==null;)S=w,w=_;for(;;){if(w===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(_=w.nextSibling)!==null)break;w=S,S=w.parentNode}w=_}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(AC={focusedElem:e,selectionRange:r},K1=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(De(163))}}catch(p){Br(t,t.return,p)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return P=b8,b8=!1,P}function Ng(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&YC(t,r,i)}o=o.next}while(o!==n)}}function w2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function XC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function cF(e){var t=e.alternate;t!==null&&(e.alternate=null,cF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[wv],delete t[DC],delete t[mQ],delete t[yQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dF(e){return e.tag===5||e.tag===3||e.tag===4}function w8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function QC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=X1));else if(n!==4&&(e=e.child,e!==null))for(QC(e,t,r),e=e.sibling;e!==null;)QC(e,t,r),e=e.sibling}function ZC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ZC(e,t,r),e=e.sibling;e!==null;)ZC(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)fF(e,t,r),r=r.sibling}function fF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(f2,r)}catch{}switch(r.tag){case 5:fo||cp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?hx(e.parentNode,r):e.nodeType===1&&hx(e,r),gv(e)):hx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&YC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(cp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function _8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new IQ),t.forEach(function(n){var o=WQ.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*FQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,uw=0,($t&6)!==0)throw Error(De(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-iT?Jc(e,0):oT|=r),ti(e,t)}function wF(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vy,Vy<<=1,(Vy&130023424)===0&&(Vy=4194304)));var r=No();e=hs(e,t),e!==null&&(Jv(e,t,r),ti(e,r))}function HQ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),wF(e,r)}function WQ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(De(314))}n!==null&&n.delete(t),wF(e,r)}var _F;_F=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,RQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&CD(t,ew,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bb(e,t),e=t.pendingProps;var o=Wp(t,go.current);Tp(t,r),o=Z3(null,t,n,e,o,r);var i=J3();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,Z1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,K3(t),o.updater=y2,t.stateNode=o,o._reactInternals=t,UC(t,n,e,r),t=$C(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&V3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=GQ(n),e=Oa(n,e),o){case 0:t=WC(null,t,n,e,r);break e;case 1:t=v8(null,t,n,e,r);break e;case 11:t=h8(null,t,n,e,r);break e;case 14:t=g8(null,t,n,Oa(n.type,e),r);break e}throw Error(De(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),WC(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),v8(e,t,n,o,r);case 3:e:{if(oF(t),e===null)throw Error(De(387));n=t.pendingProps,i=t.memoizedState,o=i.element,kD(e,t),nw(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qp(Error(De(423)),t),t=m8(e,t,n,r,o);break e}else if(n!==o){o=qp(Error(De(424)),t),t=m8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=ND(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($p(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return AD(t),e===null&&zC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,IC(n,o)?a=null:i!==null&&IC(n,i)&&(t.flags|=32),nF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&zC(t),null;case 13:return iF(e,t,r);case 4:return q3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),h8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(tw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),VC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(De(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),VC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Tp(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),g8(e,t,n,o,r);case 15:return tF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Bb(e,t),t.tag=1,ei(n)?(e=!0,Z1(t)):e=!1,Tp(t,r),MD(t,n,o),UC(t,n,o,r),$C(null,t,n,!0,e,r);case 19:return aF(e,t,r);case 22:return rF(e,t,r)}throw Error(De(156,t.tag))};function xF(e,t){return qL(e,t)}function $Q(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new $Q(e,t,r,n)}function uT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GQ(e){if(typeof e=="function")return uT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k3)return 11;if(e===E3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Wb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")uT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case tp:return ed(r.children,o,i,t);case O3:a=8,o|=8;break;case fC:return e=ra(12,r,t,o|2),e.elementType=fC,e.lanes=i,e;case pC:return e=ra(13,r,t,o),e.elementType=pC,e.lanes=i,e;case hC:return e=ra(19,r,t,o),e.elementType=hC,e.lanes=i,e;case RL:return x2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case EL:a=10;break e;case ML:a=9;break e;case k3:a=11;break e;case E3:a=14;break e;case eu:a=16,n=null;break e}throw Error(De(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function x2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=RL,e.lanes=r,e.stateNode={isHidden:!1},e}function xx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Sx(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nx(0),this.expirationTimes=nx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cT(e,t,r,n,o,i,a,l,s){return e=new KQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},K3(i),e}function qQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TF)}catch(e){console.error(e)}}TF(),TL.exports=Ni;var Nu=TL.exports;const OF=["top","right","bottom","left"],E8=["start","end"],M8=OF.reduce((e,t)=>e.concat(t,t+"-"+E8[0],t+"-"+E8[1]),[]),Ua=Math.min,po=Math.max,fw=Math.round,Zy=Math.floor,Au=e=>({x:e,y:e}),JQ={left:"right",right:"left",bottom:"top",top:"bottom"},eZ={start:"end",end:"start"};function n4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function hT(e){return e==="x"?"y":"x"}function gT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function vT(e){return hT(vs(e))}function kF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=vT(e),i=gT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=hw(a)),[a,hw(a)]}function tZ(e){const t=hw(e);return[pw(e),t,pw(t)]}function pw(e){return e.replace(/start|end/g,t=>eZ[t])}function rZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function nZ(e,t,r,n){const o=ja(e);let i=rZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(pw)))),i}function hw(e){return e.replace(/left|right|bottom|top/g,t=>JQ[t])}function oZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function mT(e){return typeof e!="number"?oZ(e):{top:e,right:e,bottom:e,left:e}}function Xp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function R8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=vT(t),l=gT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,w=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let _;switch(s){case"top":_={x:v,y:n.y-o.height};break;case"bottom":_={x:v,y:n.y+n.height};break;case"right":_={x:n.x+n.width,y:w};break;case"left":_={x:n.x-o.width,y:w};break;default:_={x:n.x,y:n.y}}switch(ja(t)){case"start":_[a]-=S*(r&&d?-1:1);break;case"end":_[a]+=S*(r&&d?-1:1);break}return _}const iZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:w}=R8(d,n,s),S=n,_={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const w=mT(v),S={x:r,y:n},_=vT(o),P=gT(_),y=await a.getDimensions(d),C=_==="y",g=C?"top":"left",h=C?"bottom":"right",c=C?"clientHeight":"clientWidth",p=i.reference[P]+i.reference[_]-S[_]-i.floating[P],m=S[_]-i.reference[_],b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=b?b[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(b)))&&(T=l.floating[c]||i.floating[P]);const k=p/2-m/2,R=T/2-y[P]/2-1,E=Ua(w[g],R),A=Ua(w[h],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,H=n4(F,B,V),Y=!s.arrow&&ja(o)!=null&&B!==H&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?pw(o)!==o:!1):!0)}const sZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:w,allowedPlacements:S=M8,autoAlignment:_=!0,...P}=Ha(e,t),y=w!==void 0||S===M8?lZ(w||null,_,S):S,C=await fd(t,P),g=((r=a.autoPlacement)==null?void 0:r.index)||0,h=y[g];if(h==null)return{};const c=kF(h,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==h)return{reset:{placement:y[0]}};const p=[C[Ei(h)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:h,overflows:p}],b=y[g+1];if(b)return{data:{index:g+1,overflows:m},reset:{placement:b}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:g+1,overflows:m},reset:{placement:R}}:{}}}},uZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:w=!0,fallbackPlacements:S,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const g=Ei(o),h=vs(l),c=Ei(l)===l,p=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[hw(l)]:tZ(l)),b=P!=="none";!S&&b&&m.push(...nZ(l,y,P,p));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[g]),w){const B=kF(o,a,p);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,H=T[B];if(H)return{data:{index:B,overflows:E},reset:{placement:H}};let Y=(F=E.filter(re=>re.overflows[0]<=0).sort((re,Q)=>re.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!Y)switch(_){case"bestFit":{var V;const re=(V=E.filter(Q=>{if(b){const W=vs(Q.placement);return W===h||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,X)=>W+X,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];re&&(Y=re);break}case"initialPlacement":Y=l;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function N8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A8(e){return OF.some(t=>e[t]>=0)}const cZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=N8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:A8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=N8(i,r.floating);return{data:{escapedOffsets:a,escaped:A8(a)}}}default:return{}}}}};function EF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function dZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Xp(EF(o)))}const fZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),w=dZ(v),S=Xp(EF(v)),_=mT(l);function P(){if(w.length===2&&w[0].left>w[1].right&&s!=null&&d!=null)return w.find(C=>s>C.left-_.left&&sC.top-_.top&&d=2){if(vs(r)==="y"){const E=w[0],A=w[w.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,H=F?E.left:A.left,Y=F?E.right:A.right,re=Y-H,Q=B-V;return{top:V,bottom:B,left:H,right:Y,width:re,height:Q,x:H,y:V}}const C=Ei(r)==="left",g=po(...w.map(E=>E.right)),h=Ua(...w.map(E=>E.left)),c=w.filter(E=>C?E.left===h:E.right===g),p=c[0].top,m=c[c.length-1].bottom,b=h,T=g,k=T-b,R=m-p;return{top:p,bottom:m,left:b,right:T,width:k,height:R,x:b,y:p}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function pZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,w=Ha(t,e);let{mainAxis:S,crossAxis:_,alignmentAxis:P}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return l&&typeof P=="number"&&(_=l==="end"?P*-1:P),s?{x:_*v,y:S*d}:{x:S*d,y:_*v}}const hZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await pZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},gZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:g,y:h}=C;return{x:g,y:h}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),w=vs(Ei(o)),S=hT(w);let _=d[S],P=d[w];if(i){const C=S==="y"?"top":"left",g=S==="y"?"bottom":"right",h=_+v[C],c=_-v[g];_=n4(h,_,c)}if(a){const C=w==="y"?"top":"left",g=w==="y"?"bottom":"right",h=P+v[C],c=P-v[g];P=n4(h,P,c)}const y=l.fn({...t,[S]:_,[w]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[w]:a}}}}}},vZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},w=vs(o),S=hT(w);let _=v[S],P=v[w];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",p=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;_m&&(_=m)}if(d){var g,h;const c=S==="y"?"width":"height",p=["top","left"].includes(Ei(o)),m=i.reference[w]-i.floating[c]+(p&&((g=a.offset)==null?void 0:g[w])||0)+(p?0:C.crossAxis),b=i.reference[w]+i.reference[c]+(p?0:((h=a.offset)==null?void 0:h[w])||0)-(p?C.crossAxis:0);Pb&&(P=b)}return{[S]:_,[w]:P}}}},mZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),w=Ei(o),S=ja(o),_=vs(o)==="y",{width:P,height:y}=i.floating;let C,g;w==="top"||w==="bottom"?(C=w,g=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=w,C=S==="end"?"top":"bottom");const h=y-v.top-v.bottom,c=P-v.left-v.right,p=Ua(y-v[C],h),m=Ua(P-v[g],c),b=!t.middlewareData.shift;let T=p,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=h),b&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);_?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function O2(){return typeof window<"u"}function gh(e){return MF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(MF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function MF(e){return O2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return O2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return O2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function I8(e){return!O2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function nm(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function yZ(e){return["table","td","th"].includes(gh(e))}function k2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yT(e){const t=bT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function bZ(e){let t=Iu(e);for(;wl(t)&&!Qp(t);){if(yT(t))return t;if(k2(t))return null;t=Iu(t)}return null}function bT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qp(e){return["html","body","#document"].includes(gh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function E2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(gh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||I8(e)&&e.host||_l(e);return I8(t)?t.host:t}function RF(e){const t=Iu(e);return Qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&nm(t)?t:RF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=RF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=o4(a);return t.concat(a,a.visualViewport||[],nm(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function o4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=fw(r)!==i||fw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function wT(e){return Wa(e)?e:e.contextElement}function kp(e){const t=wT(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=NF(t);let a=(i?fw(r.width):r.width)/n,l=(i?fw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const wZ=Au(0);function AF(e){const t=Pi(e);return!bT()||!t.visualViewport?wZ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _Z(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=wT(e);let a=Au(1);t&&(n?Wa(n)&&(a=kp(n)):a=kp(e));const l=_Z(i,r,n)?AF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,w=o.height/a.y;if(i){const S=Pi(i),_=n&&Wa(n)?Pi(n):n;let P=S,y=o4(P);for(;y&&n&&_!==P;){const C=kp(y),g=y.getBoundingClientRect(),h=$a(y),c=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*C.x,p=g.top+(y.clientTop+parseFloat(h.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,w*=C.y,s+=c,d+=p,P=Pi(y),y=o4(P)}}return Xp({width:v,height:w,x:s,y:d})}function xZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?k2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),w=wl(n);if((w||!w&&!i)&&((gh(n)!=="body"||nm(a))&&(s=E2(n)),wl(n))){const S=pd(n);d=kp(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function SZ(e){return Array.from(e.getClientRects())}function i4(e,t){const r=E2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function CZ(e){const t=_l(e),r=E2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+i4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function PZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=bT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function TZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?kp(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function L8(e,t,r){let n;if(t==="viewport")n=PZ(e,r);else if(t==="document")n=CZ(_l(e));else if(Wa(t))n=TZ(t,r);else{const o=AF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Xp(n)}function IF(e,t){const r=Iu(e);return r===t||!Wa(r)||Qp(r)?!1:$a(r).position==="fixed"||IF(r,t)}function OZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&gh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Qp(a);){const l=$a(a),s=yT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nm(a)&&!s&&IF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function kZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?k2(t)?[]:OZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const w=L8(t,v,o);return d.top=po(w.top,d.top),d.right=Ua(w.right,d.right),d.bottom=Ua(w.bottom,d.bottom),d.left=po(w.left,d.left),d},L8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function EZ(e){const{width:t,height:r}=NF(e);return{width:t,height:r}}function MZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((gh(t)!=="body"||nm(o))&&(l=E2(t)),n){const _=pd(t,!0,i,t);s.x=_.x+t.clientLeft,s.y=_.y+t.clientTop}else o&&(s.x=i4(o));let d=0,v=0;if(o&&!n&&!i){const _=o.getBoundingClientRect();v=_.top+l.scrollTop,d=_.left+l.scrollLeft-i4(o,_)}const w=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:w,y:S,width:a.width,height:a.height}}function Cx(e){return $a(e).position==="static"}function D8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function LF(e,t){const r=Pi(e);if(k2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Qp(o);){if(Wa(o)&&!Cx(o))return o;o=Iu(o)}return r}let n=D8(e,t);for(;n&&yZ(n)&&Cx(n);)n=D8(n,t);return n&&Qp(n)&&Cx(n)&&!yT(n)?r:n||bZ(e)||r}const RZ=async function(e){const t=this.getOffsetParent||LF,r=this.getDimensions,n=await r(e.floating);return{reference:MZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function NZ(e){return $a(e).direction==="rtl"}const DF={convertOffsetParentRelativeRectToViewportRelativeRect:xZ,getDocumentElement:_l,getClippingRect:kZ,getOffsetParent:LF,getElementRects:RZ,getClientRects:SZ,getDimensions:EZ,getScale:kp,isElement:Wa,isRTL:NZ};function AZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:w,height:S}=e.getBoundingClientRect();if(l||t(),!w||!S)return;const _=Zy(v),P=Zy(o.clientWidth-(d+w)),y=Zy(o.clientHeight-(v+S)),C=Zy(d),h={rootMargin:-_+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function p(m){const b=m[0].intersectionRatio;if(b!==s){if(!c)return a();b?a(!1,b):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(p,{...h,root:o.ownerDocument})}catch{r=new IntersectionObserver(p,h)}r.observe(e)}return a(!0),i}function IZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=wT(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const w=d&&l?AZ(d,r):null;let S=-1,_=null;a&&(_=new ResizeObserver(g=>{let[h]=g;h&&h.target===d&&_&&(_.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=_)==null||c.observe(t)})),r()}),d&&!s&&_.observe(d),_.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const g=pd(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&r(),y=g,P=requestAnimationFrame(C)}return r(),()=>{var g;v.forEach(h=>{o&&h.removeEventListener("scroll",r),i&&h.removeEventListener("resize",r)}),w==null||w(),(g=_)==null||g.disconnect(),_=null,s&&cancelAnimationFrame(P)}}const $b=fd,FF=hZ,LZ=sZ,DZ=gZ,FZ=uZ,jZ=mZ,zZ=cZ,F8=aZ,VZ=fZ,BZ=vZ,jF=(e,t,r)=>{const n=new Map,o={platform:DF,...r},i={...o.platform,_c:n};return iZ(e,t,{...o,platform:i})},UZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?F8({element:t.current,padding:r}).fn(o):{}:t?F8({element:t,padding:r}).fn(o):{}}}};var Gb=typeof document<"u"?be.useLayoutEffect:be.useEffect;function gw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!gw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function j8(e){const t=be.useRef(e);return Gb(()=>{t.current=e}),t}function HZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=be.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=be.useState(n);gw(d,n)||v(n);const w=be.useRef(null),S=be.useRef(null),_=be.useRef(l),P=j8(i),y=j8(o),[C,g]=be.useState(null),[h,c]=be.useState(null),p=be.useCallback(E=>{w.current!==E&&(w.current=E,g(E))},[]),m=be.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),b=be.useCallback(()=>{if(!w.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),jF(w.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!gw(_.current,F)&&(_.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Gb(()=>{a===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=be.useRef(!1);Gb(()=>(T.current=!0,()=>{T.current=!1}),[]),Gb(()=>{if(C&&h){if(P.current)return P.current(C,h,b);b()}},[C,h,b,P]);const k=be.useMemo(()=>({reference:w,floating:S,setReference:p,setFloating:m}),[p,m]),R=be.useMemo(()=>({reference:C,floating:h}),[C,h]);return be.useMemo(()=>({...l,update:b,refs:k,elements:R,reference:p,floating:m}),[l,b,k,R,p,m])}var Mr=typeof document<"u"?be.useLayoutEffect:be.useEffect;let Px=!1,WZ=0;const z8=()=>"floating-ui-"+WZ++;function $Z(){const[e,t]=be.useState(()=>Px?z8():void 0);return Mr(()=>{e==null&&t(z8())},[]),be.useEffect(()=>{Px||(Px=!0)},[]),e}const GZ=wL.useId,Ov=GZ||$Z;function zF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const VF=be.createContext(null),BF=be.createContext(null),vh=()=>{var e;return((e=be.useContext(VF))==null?void 0:e.id)||null},Od=()=>be.useContext(BF),KZ=e=>{const t=Ov(),r=Od(),n=vh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},qZ=e=>{let{children:t,id:r}=e;const n=vh();return be.createElement(VF.Provider,{value:be.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},YZ=e=>{let{children:t}=e;const r=be.useRef([]),n=be.useCallback(a=>{r.current=[...r.current,a]},[]),o=be.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=be.useState(()=>zF())[0];return be.createElement(BF.Provider,{value:be.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function _T(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function UF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function xT(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof xT(e).Element:!1}function hd(e){return e?e instanceof xT(e).HTMLElement:!1}function XZ(e){if(typeof ShadowRoot>"u")return!1;const t=xT(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HF(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(_T())||t.test(UF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function WF(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function a4(){return/apple/i.test(navigator.vendor)}function $F(){return _T().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=be.useRef(e);return Mr(()=>{t.current=e}),t}const V8="data-floating-ui-safe-polygon";function Kb(e,t,r){return r&&!vw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const QZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:w,elements:{domReference:S,floating:_},refs:P}=e,y=Od(),C=vh(),g=oa(o),h=oa(n),c=be.useRef(),p=be.useRef(),m=be.useRef(),b=be.useRef(),T=be.useRef(!0),k=be.useRef(!1),R=be.useRef(()=>{}),E=be.useCallback(()=>{var B;const H=(B=v.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"},[v]);be.useEffect(()=>{if(!r)return;function B(){clearTimeout(p.current),clearTimeout(b.current),T.current=!0}return w.on("dismiss",B),()=>{w.off("dismiss",B)}},[r,w]),be.useEffect(()=>{if(!r||!g.current||!s)return;function B(){E()&&d(!1)}const H=Yo(_).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[_,s,d,r,g,v,E]);const A=be.useCallback(function(B){B===void 0&&(B=!0);const H=Kb(h.current,"close",c.current);H&&!m.current?(clearTimeout(p.current),p.current=setTimeout(()=>d(!1),H)):B&&(clearTimeout(p.current),d(!1))},[h,d]),F=be.useCallback(()=>{R.current(),m.current=void 0},[]),V=be.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(V8),k.current=!1}},[P]);return be.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function H(Q){if(clearTimeout(p.current),T.current=!1,i&&!vw(c.current)||a>0&&Kb(h.current,"open")===0)return;v.current.openEvent=Q;const W=Kb(h.current,"open",c.current);W?p.current=setTimeout(()=>{d(!0)},W):d(!0)}function Y(Q){if(B())return;R.current();const W=Yo(_);if(clearTimeout(b.current),g.current){clearTimeout(p.current),m.current=g.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const X=m.current;W.addEventListener("mousemove",X),R.current=()=>{W.removeEventListener("mousemove",X)};return}A()}function re(Q){B()||g.current==null||g.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",re),_==null||_.addEventListener("mouseleave",re),l&&Q.addEventListener("mousemove",H,{once:!0}),Q.addEventListener("mouseenter",H),Q.addEventListener("mouseleave",Y),()=>{s&&Q.removeEventListener("mouseleave",re),_==null||_.removeEventListener("mouseleave",re),l&&Q.removeEventListener("mousemove",H),Q.removeEventListener("mouseenter",H),Q.removeEventListener("mouseleave",Y)}}},[S,_,r,e,i,a,l,A,F,V,d,s,y,h,g,v]),Mr(()=>{var B;if(r&&s&&(B=g.current)!=null&&B.__options.blockPointerEvents&&E()){const re=Yo(_).body;if(re.setAttribute(V8,""),re.style.pointerEvents="none",k.current=!0,na(S)&&_){var H,Y;const Q=S,W=y==null||(H=y.nodesRef.current.find(X=>X.id===C))==null||(Y=H.context)==null?void 0:Y.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",_.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",_.style.pointerEvents=""}}}},[r,s,C,_,S,y,g,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),be.useEffect(()=>()=>{F(),clearTimeout(p.current),clearTimeout(b.current),V()},[r,F,V]),be.useMemo(()=>{if(!r)return{};function B(H){c.current=H.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(b.current),b.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(p.current)},onMouseLeave(){w.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[w,r,a,s,d,A])},GF=be.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),KF=()=>be.useContext(GF),ZZ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=be.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=be.useRef(null),l=be.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),be.createElement(GF.Provider,{value:be.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},JZ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=KF();be.useEffect(()=>{i&&(s({delay:{open:1,close:Kb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),be.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const w=window.setTimeout(v,d);return()=>{clearTimeout(w)}}else v()},[r,s,i,o,n,l,d]),be.useEffect(()=>{r&&a(o)},[r,a,o])};function kv(){return kv=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():B8=requestAnimationFrame(i)}function eJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Lg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function M2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const tJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function qF(e){return hd(e)&&e.matches(tJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const mw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function YF(e,t){const r=B1(e,mw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function XF(){return YF(document.body,"next")}function QF(){return YF(document.body,"prev")}function Dg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function rJ(e){B1(e,mw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function nJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const oJ=wL.useInsertionEffect,iJ=oJ||(e=>e());function mh(e){const t=be.useRef(()=>{});return iJ(()=>{t.current=e}),be.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(a4()&&i("button"),document.addEventListener("keydown",U8),()=>{document.removeEventListener("keydown",U8)}),[]),be.createElement("span",kv({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:ST,onFocus:a=>{a4()&&$F()&&!aJ(a)?(a.persist(),CT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),ZF=be.createContext(null),JF=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=be.useState(null),i=Ov(),a=ej();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},lJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=JF({id:r,enabled:!n}),[a,l]=be.useState(null),s=be.useRef(null),d=be.useRef(null),v=be.useRef(null),w=be.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return be.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function _(P){i&&Dg(P)&&(P.type==="focusin"?nJ:rJ)(i)}return i.addEventListener("focusin",_,!0),i.addEventListener("focusout",_,!0),()=>{i.removeEventListener("focusin",_,!0),i.removeEventListener("focusout",_,!0)}},[i,o,a==null?void 0:a.modal]),be.createElement(ZF.Provider,{value:be.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:w,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&be.createElement(yw,{"data-type":"outside",ref:s,onFocus:_=>{if(Dg(_,i)){var P;(P=v.current)==null||P.focus()}else{const y=QF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&be.createElement("span",{"aria-owns":i.id,style:ST}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&be.createElement(yw,{"data-type":"outside",ref:d,onFocus:_=>{if(Dg(_,i)){var P;(P=w.current)==null||P.focus()}else{const y=XF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},ej=()=>be.useContext(ZF),sJ=be.forwardRef(function(t,r){return be.createElement("button",kv({},t,{type:"button",ref:r,tabIndex:-1,style:ST}))});function uJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:w,onOpenChange:S,events:_,dataRef:P,elements:{domReference:y,floating:C}}=t,g=oa(n),h=Od(),c=ej(),[p,m]=be.useState(null),b=typeof i=="number"&&i<0,T=be.useRef(null),k=be.useRef(null),R=be.useRef(!1),E=be.useRef(null),A=be.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&qF(y),B=be.useCallback(function(Q){return Q===void 0&&(Q=C),Q?B1(Q,mw()):[]},[C]),H=be.useCallback(Q=>{const W=B(Q);return g.current.map(X=>y&&X==="reference"?y:C&&X==="floating"?C:W).filter(Boolean).flat()},[y,C,g,B]);be.useEffect(()=>{if(!l)return;function Q(X){if(X.key==="Tab"){B().length===0&&!V&&Xi(X);const te=H(),ne=M2(X);g.current[0]==="reference"&&ne===y&&(Xi(X),X.shiftKey?Ys(te[te.length-1]):Ys(te[1])),g.current[1]==="floating"&&ne===C&&X.shiftKey&&(Xi(X),Ys(te[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,g,v,V,B,H]),be.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(X){const te=X.relatedTarget,ne=!(Ho(y,te)||Ho(C,te)||Ho(te,C)||Ho(c==null?void 0:c.portalNode,te)||te!=null&&te.hasAttribute("data-floating-ui-focus-guard")||h&&(Lg(h.nodesRef.current,w).find(se=>{var ve,we;return Ho((ve=se.context)==null?void 0:ve.elements.floating,te)||Ho((we=se.context)==null?void 0:we.elements.domReference,te)})||eJ(h.nodesRef.current,w).find(se=>{var ve,we;return((ve=se.context)==null?void 0:ve.elements.floating)===te||((we=se.context)==null?void 0:we.elements.domReference)===te})));te&&ne&&!A.current&&te!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,w,h,c,S,d]),be.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function X(){return[T.current,k.current].filter(Boolean)}if(C&&l){const te=[C,...W,...X()],ne=NY(g.current.includes("reference")||V?te.concat(y||[]):te);return()=>{ne()}}},[y,C,l,g,c,V]),be.useEffect(()=>{if(l&&!o&&C){const Q=[],W=mw(),X=B1(Yo(C).body,W),te=H(),ne=X.filter(se=>!te.includes(se));return ne.forEach((se,ve)=>{Q[ve]=se.getAttribute("tabindex"),se.setAttribute("tabindex","-1")}),()=>{ne.forEach((se,ve)=>{const we=Q[ve];we==null?se.removeAttribute("tabindex"):se.setAttribute("tabindex",we)})}}},[C,l,o,H]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,X=!1;const te=gd(Q),ne=P.current;E.current=te;const se=H(C),ve=(typeof i=="number"?se[i]:i.current)||C;!b&&Ys(ve,{preventScroll:ve===C});function we(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const J=ce.data.returnFocus;typeof J=="object"?(W=!0,X=J.preventScroll):W=J}return _.on("dismiss",we),()=>{if(_.off("dismiss",we),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:X});else{var ce;ne.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:X}),setTimeout(()=>{delete ne.__syncReturnFocus})}}},[C,H,i,a,P,v,_,b]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(b||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,b,v]);const Y=o&&(F||l)&&!V;function re(Q){return s&&l?be.createElement(sJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return be.createElement(be.Fragment,null,Y&&be.createElement(yw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const X=H();Ys(n[0]==="reference"?X[0]:X[X.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Dg(Q,c.portalNode)){const X=XF()||y;X==null||X.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:re("start"),be.cloneElement(r,p===0||n.includes("floating")?{tabIndex:0}:{}),re("end"),Y&&be.createElement(yw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(H()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Dg(Q,c.portalNode)){const X=QF()||y;X==null||X.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const Jy="data-floating-ui-scroll-lock",cJ=be.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(Jy))return;document.body.setAttribute(Jy,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(_T()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(Jy),Object.assign(document.body.style,{overflow:"",[d]:""})};const w=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,_=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(_-Math.floor(w))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(Jy),window.scrollTo(_,P)}},[n]),be.createElement("div",kv({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function H8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function W8(e){return qF(e)}const dJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const w=be.useRef();return be.useMemo(()=>a?{reference:{onPointerDown(S){w.current=S.pointerType},onMouseDown(S){S.button===0&&(vw(w.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&w.current){w.current=void 0;return}vw(w.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){w.current=void 0,v&&(H8(S)||(S.key===" "&&!W8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(H8(S)||W8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function qb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const fJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},pJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},hJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},gJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:w=!0,outsidePress:S=!0,outsidePressEvent:_="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:g=!0}=t===void 0?{}:t;const h=Od(),c=vh()!=null,p=mh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?p:S,b=be.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=hJ(g);return be.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const H=h?Lg(h.nodesRef.current,i):[];if(H.length>0){let Y=!0;if(H.forEach(re=>{var Q;if((Q=re.context)!=null&&Q.open&&!re.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const H=b.current;if(b.current=!1,H||typeof m=="function"&&!m(B))return;const Y=M2(B);if(hd(Y)&&s){const W=s.ownerDocument.defaultView||window,X=Y.scrollWidth>Y.clientWidth,te=Y.scrollHeight>Y.clientHeight;let ne=te&&B.offsetX>Y.clientWidth;if(te&&W.getComputedStyle(Y).direction==="rtl"&&(ne=B.offsetX<=Y.offsetWidth-Y.clientWidth),ne||X&&B.offsetY>Y.clientHeight)return}const re=h&&Lg(h.nodesRef.current,i).some(W=>{var X;return qb(B,(X=W.context)==null?void 0:X.elements.floating)});if(qb(B,s)||qb(B,l)||re)return;const Q=h?Lg(h.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(X=>{var te;if((te=X.context)!=null&&te.open&&!X.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:HF(B)||WF(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);w&&F.addEventListener("keydown",R),m&&F.addEventListener(_,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var H;return B!==((H=F.defaultView)==null?void 0:H.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{w&&F.removeEventListener("keydown",R),m&&F.removeEventListener(_,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,w,m,_,o,h,i,r,n,C,v,T,k,c]),be.useEffect(()=>{b.current=!1},[m,_]),be.useMemo(()=>v?{reference:{[fJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[pJ[_]]:()=>{b.current=!0}}}:{},[v,o,P,_,y,n])},vJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const w=be.useRef(""),S=be.useRef(!1),_=be.useRef();return be.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),be.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),be.useEffect(()=>()=>{clearTimeout(_.current)},[]),be.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;w.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&qb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";_.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let $8=!1;const PT="ArrowUp",R2="ArrowDown",Zp="ArrowLeft",om="ArrowRight";function eb(e,t,r){return Math.floor(e/t)!==r}function q0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function N2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function G8(e,t){return N2(t,e===PT||e===R2,e===Zp||e===om)}function Tx(e,t,r){return N2(t,e===R2,r?e===Zp:e===om)||e==="Enter"||e==" "||e===""}function mJ(e,t,r){return N2(t,r?e===Zp:e===om,e===R2)}function yJ(e,t,r){return N2(t,r?e===om:e===Zp,e===PT)}function Ox(e,t){return uo(e,{disabledIndices:t})}function K8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const bJ=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:w=!1,loop:S=!1,nested:_=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:h=!0,disabledIndices:c=void 0,orientation:p="vertical",cols:m=1,scrollItemIntoView:b=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=vh(),k=Od(),R=mh(s),E=be.useRef(C),A=be.useRef(v??-1),F=be.useRef(null),V=be.useRef(!0),B=be.useRef(R),H=be.useRef(r),Y=be.useRef(!1),re=be.useRef(!1),Q=oa(c),W=oa(r),X=oa(b),[te,ne]=be.useState(),se=be.useCallback(function(ce,J,oe){oe===void 0&&(oe=!1);const ue=ce.current[J.current];y?ne(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:$F()&&a4()?$8||Y.current:!1}),requestAnimationFrame(()=>{const Se=X.current;Se&&ue&&(oe||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,X]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return $8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(re.current=!0,R(v)):H.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(Y.current=!1,v!=null)return;H.current&&(A.current=-1,se(a,A)),!H.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||Tx(F.current,p,P)||_?Ox(a,Q.current):K8(a,Q.current),R(A.current))}else q0(a,l)||(A.current=l,se(a,A,re.current),re.current=!1)},[d,r,l,v,_,a,p,P,R,se,Q]),Mr(()=>{if(d&&H.current&&!r){var ce,J;const oe=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(J=ce.context)==null?void 0:J.elements.floating;oe&&!Ho(oe,gd(Yo(oe)))&&oe.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,H.current=r});const ve=l!=null,we=be.useMemo(()=>{function ce(oe){if(!r)return;const ue=a.current.indexOf(oe);ue!==-1&&R(ue)}return{onFocus(oe){let{currentTarget:ue}=oe;ce(ue)},onClick:oe=>{let{currentTarget:ue}=oe;return ue.focus({preventScroll:!0})},...g&&{onMouseMove(oe){let{currentTarget:ue}=oe;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,se(a,A),Nu.flushSync(()=>R(null)),!y)){var oe;(oe=o.floating.current)==null||oe.focus({preventScroll:!0})}}}}},[r,o,se,g,a,R,y]);return be.useMemo(()=>{if(!d)return{};const ce=Q.current;function J(Ce){if(V.current=!1,Y.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(_&&yJ(Ce.key,p,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Me=A.current,Ie=Ox(a,ce),Re=K8(a,ce);if(Ce.key==="Home"&&(A.current=Ie,R(A.current)),Ce.key==="End"&&(A.current=Re,R(A.current)),m>1){const ye=A.current;if(Ce.key===PT){if(Xi(Ce),ye===-1)A.current=Re;else if(A.current=uo(a,{startingIndex:ye,amount:m,decrement:!0,disabledIndices:ce}),S&&(ye-mke?Ye:Ye-m}q0(a,A.current)&&(A.current=ye),R(A.current)}if(Ce.key===R2&&(Xi(Ce),ye===-1?A.current=Ie:(A.current=uo(a,{startingIndex:ye,amount:m,disabledIndices:ce}),S&&ye+m>Re&&(A.current=uo(a,{startingIndex:ye%m-m,amount:m,disabledIndices:ce}))),q0(a,A.current)&&(A.current=ye),R(A.current)),p==="both"){const ke=Math.floor(ye/m);Ce.key===om&&(Xi(Ce),ye%m!==m-1?(A.current=uo(a,{startingIndex:ye,disabledIndices:ce}),S&&eb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce})),eb(A.current,m,ke)&&(A.current=ye)),Ce.key===Zp&&(Xi(Ce),ye%m!==0?(A.current=uo(a,{startingIndex:ye,disabledIndices:ce,decrement:!0}),S&&eb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:ye+(m-ye%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:ye+(m-ye%m),decrement:!0,disabledIndices:ce})),eb(A.current,m,ke)&&(A.current=ye));const ze=Math.floor(Re/m)===ke;q0(a,A.current)&&(S&&ze?A.current=Ce.key===Zp?Re:uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce}):A.current=ye),R(A.current);return}}if(G8(Ce.key,p)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=Tx(Ce.key,p,P)?Ie:Re,R(A.current);return}Tx(Ce.key,p,P)?S?A.current=Me>=Re?w&&Me!==a.current.length?-1:Ie:uo(a,{startingIndex:Me,disabledIndices:ce}):A.current=Math.min(Re,uo(a,{startingIndex:Me,disabledIndices:ce})):S?A.current=Me<=Ie?w&&Me!==-1?a.current.length:Re:uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce}):A.current=Math.max(Ie,uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce})),q0(a,A.current)?R(null):R(A.current)}}function oe(Ce){C==="auto"&&HF(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&WF(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&ve&&{"aria-activedescendant":te};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Me=Ce.key.indexOf("Arrow")===0;if(y&&r)return J(Ce);if(!r&&!h&&Me)return;if((Me||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),_){mJ(Ce.key,p,P)&&(Xi(Ce),r?(A.current=Ox(a,ce),R(A.current)):n(!0));return}G8(Ce.key,p)&&(v!=null&&(A.current=v),Xi(Ce),!r&&h?n(!0):J(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:oe,onClick:oe},floating:{"aria-orientation":p==="both"?void 0:p,...Se,onKeyDown:J,onPointerMove(){V.current=!0}},item:we}},[i,o,te,Q,W,a,d,p,P,y,r,ve,_,v,h,w,m,S,C,R,n,we])};function wJ(e){return be.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const _J=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=Ov(),a=Ov();return be.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},q8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function xJ(e,t){const[r,n]=be.useState(e);return e&&!r&&n(!0),be.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function tj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=be.useState(!1),[d,v]=be.useState("unmounted"),w=xJ(r,a);return Mr(()=>{l&&!w&&v("unmounted")},[l,w]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:w,status:d}}function SJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=be.useState({}),{isMounted:w,status:S}=tj(e,{duration:a}),_=oa(r),P=oa(n),y=oa(o),C=oa(i),g=typeof a=="number",h=(g?a:a.open)||0,c=(g?a:a.close)||0;return Mr(()=>{const p={side:s,placement:l},m=_.current,b=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(p):m,E=typeof b=="function"?b(p):b,A=typeof k=="function"?k(p):k,F=(typeof T=="function"?T(p):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(q8).join(","),transitionDuration:h+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(q8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,_,P,C,h,S]),{isMounted:w,styles:d}}const CJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:w=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const _=be.useRef(),P=be.useRef(""),y=be.useRef((r=S??a)!=null?r:-1),C=be.useRef(null),g=mh(l),h=oa(d),c=oa(w);return Mr(()=>{n&&(clearTimeout(_.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var p;y.current=(p=S??a)!=null?p:-1}},[n,S,a]),be.useMemo(()=>{if(!s)return{};function p(m){const b=M2(m.nativeEvent);if(na(b)&&(gd(Yo(b))!==m.currentTarget&&b.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,H;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((H=V[1])==null?void 0:H.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(_.current),_.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=h.current?h.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(g(F),C.current=F)}return{reference:{onKeyDown:p},floating:{onKeyDown:p}}},[s,o,i,v,c,h,g])};function Y8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const PJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:w,elements:{floating:S}}=t,_=r.current[a];if(!_)return{};const P={...t,...await FF(-_.offsetTop-w.reference.height/2-_.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await $b(Y8(P,y.scrollHeight),v),g=await $b(P,{...v,elementContext:"reference"}),h=Math.max(0,C.top),c=P.y+h,p=Math.max(0,y.scrollHeight-h-Math.max(0,C.bottom));return y.style.maxHeight=p+"px",y.scrollTop=h,o&&(y.offsetHeight<_.offsetHeight*Math.min(l,r.current.length-1)-1||g.top>=-s||g.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await $b(Y8({...P,y:c},y.offsetHeight),v)),{y:c}}}),TJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=mh(l),d=be.useRef(!1),v=be.useRef(null),w=be.useRef(null);return be.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!_||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,g=i.current.bottom>=-.5,h=_.scrollHeight-_.clientHeight,c=y<0?-1:1,p=y<0?"max":"min";_.scrollHeight<=_.clientHeight||(!C&&y>0||!g&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[p](y,h*c))})):/firefox/i.test(UF())&&(_.scrollTop+=y))}const _=(a==null?void 0:a.current)||n.floating;if(r&&_)return _.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=_.scrollTop,i.current!=null&&(w.current={...i.current})}),()=>{v.current=null,w.current=null,_.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),be.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const _=S.scrollTop-v.current;(i.current.bottom<-.5&&_<-1||i.current.top<-.5&&_>1)&&Nu.flushSync(()=>s(P=>P+_))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function OJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=w>=n&&r<=(v-s)*(n-d)/(w-d)+s&&(o=!o)}return o}function kJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function EJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:w,elements:S,onClose:_,nodeId:P,tree:y}=s;return function(g){function h(){clearTimeout(o),_()}if(clearTimeout(o),!S.domReference||!S.floating||w==null||d==null||v==null)return;const{clientX:c,clientY:p}=g,m=[c,p],b=M2(g),T=g.type==="mouseleave",k=Ho(S.floating,b),R=Ho(S.domReference,b),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=w.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,H=kJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(g.relatedTarget)&&Ho(S.floating,g.relatedTarget)||y&&Lg(y.nodesRef.current,P).some(W=>{let{context:X}=W;return X==null?void 0:X.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return h();let Y=[];switch(F){case"top":Y=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&p>=A.top&&p<=E.top+1;break;case"bottom":Y=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&p>=E.bottom-1&&p<=A.bottom;break;case"left":Y=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&p>=A.top&&p<=A.bottom;break;case"right":Y=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&p>=A.top&&p<=A.bottom;break}function re(W){let[X,te]=W;const ne=A.width>E.width,se=A.height>E.height;switch(F){case"top":{const ve=[ne?X+r/2:V?X+r*4:X-r*4,te+r+1],we=[ne?X-r/2:V?X+r*4:X-r*4,te+r+1],ce=[[A.left,V||ne?A.bottom-r:A.top],[A.right,V?ne?A.bottom-r:A.top:A.bottom-r]];return[ve,we,...ce]}case"bottom":{const ve=[ne?X+r/2:V?X+r*4:X-r*4,te-r],we=[ne?X-r/2:V?X+r*4:X-r*4,te-r],ce=[[A.left,V||ne?A.top+r:A.bottom],[A.right,V?ne?A.top+r:A.bottom:A.top+r]];return[ve,we,...ce]}case"left":{const ve=[X+r+1,se?te+r/2:B?te+r*4:te-r*4],we=[X+r+1,se?te-r/2:B?te+r*4:te-r*4];return[...[[B||se?A.right-r:A.left,A.top],[B?se?A.right-r:A.left:A.right-r,A.bottom]],ve,we]}case"right":{const ve=[X-r,se?te+r/2:B?te+r*4:te-r*4],we=[X-r,se?te-r/2:B?te+r*4:te-r*4],ce=[[B||se?A.left+r:A.right,A.top],[B?se?A.left+r:A.right:A.left+r,A.bottom]];return[ve,we,...ce]}}}const Q=i?Y:re([d,v]);if(!i){if(a&&!H)return h();OJ([c,p],Q)?t&&!a&&(o=setTimeout(h,t)):h()}}};return l.__options={blockPointerEvents:n},l}function MJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=HZ(e),i=Od(),a=be.useRef(null),l=be.useRef({}),s=be.useState(()=>zF())[0],[d,v]=be.useState(null),w=be.useCallback(g=>{const h=na(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;o.refs.setReference(h)},[o.refs]),S=be.useCallback(g=>{(na(g)||g===null)&&(a.current=g,v(g)),(na(o.refs.reference.current)||o.refs.reference.current===null||g!==null&&!na(g))&&o.refs.setReference(g)},[o.refs]),_=be.useMemo(()=>({...o.refs,setReference:S,setPositionReference:w,domReference:a}),[o.refs,S,w]),P=be.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=mh(r),C=be.useMemo(()=>({...o,refs:_,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,_,P]);return Mr(()=>{const g=i==null?void 0:i.nodesRef.current.find(h=>h.id===n);g&&(g.context=C)}),be.useMemo(()=>({...o,context:C,refs:_,reference:S,positionReference:w}),[o,_,C,S,w])}function kx(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,w=arguments.length,S=new Array(w),_=0;_P(...S))}}}else o[l]=s}),o),{})}}const RJ=function(e){e===void 0&&(e=[]);const t=e,r=be.useCallback(i=>kx(i,e,"reference"),t),n=be.useCallback(i=>kx(i,e,"floating"),t),o=be.useCallback(i=>kx(i,e,"item"),e.map(i=>i==null?void 0:i.item));return be.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},NJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:ZZ,FloatingFocusManager:uJ,FloatingNode:qZ,FloatingOverlay:cJ,FloatingPortal:lJ,FloatingTree:YZ,arrow:UZ,autoPlacement:LZ,autoUpdate:IZ,computePosition:jF,detectOverflow:$b,flip:FZ,getOverflowAncestors:os,hide:zZ,inline:VZ,inner:PJ,limitShift:BZ,offset:FF,platform:DF,safePolygon:EJ,shift:DZ,size:jZ,useClick:dJ,useDelayGroup:JZ,useDelayGroupContext:KF,useDismiss:gJ,useFloating:MJ,useFloatingNodeId:KZ,useFloatingParentNodeId:vh,useFloatingPortalNode:JF,useFloatingTree:Od,useFocus:vJ,useHover:QZ,useId:Ov,useInnerOffset:TJ,useInteractions:RJ,useListNavigation:bJ,useMergeRefs:wJ,useRole:_J,useTransitionStatus:tj,useTransitionStyles:SJ,useTypeahead:CJ},Symbol.toStringTag,{value:"Module"})),wn=Lv(NJ);var rj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return _}});var r=d(q),n=d(pt),o=Je,i=d(et),a=Xe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,p=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(p.className||"",C);var b=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},h,{ref:y,className:b}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var _=S})(rj);var nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{DialogBody:function(){return _},default:function(){return P}});var r=v(q),n=v(pt),o=Je,i=v(et),a=Xe,l=sh;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.divider,h=y.className,c=y.children,p=w(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,b=m.defaultProps,T=m.styles.base;h=(0,o.twMerge)(b.className||"",h);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),g)),h);return r.default.createElement("div",d({},p,{ref:C,className:k}),c)});_.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},_.displayName="MaterialTailwind.DialogBody";var P=_})(nj);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return _}});var r=d(q),n=d(pt),o=Je,i=d(et),a=Xe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,p=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(p.className||"",C);var b=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},h,{ref:y,className:b}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var _=S})(oj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return _.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=h(q),n=h(ot),o=wn,i=An,a=h(pt),l=h(Xn),s=Je,d=h(Sr),v=h(et),w=Xe,S=sh,_=rj,P=nj,y=oj;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function g(){return g=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,H=E.dismiss,Y=E.animate,re=E.className,Q=E.children,W=b(E,["open","handler","size","dismiss","animate","className","children"]),X=(0,w.useTheme)().dialog,te=X.defaultProps,ne=X.valid,se=X.styles,ve=se.base,we=se.sizes;V=V??void 0,B=B??te.size,H=H??te.dismiss,Y=Y??te.animate,re=(0,s.twMerge)(te.className||"",re);var ce=(0,a.default)((0,v.default)(ve.backdrop)),J=(0,s.twMerge)((0,a.default)((0,v.default)(ve.container),(0,v.default)(we[(0,d.default)(ne.sizes,B,"md")])),re),oe={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(oe,Y),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Me=Ce.floating,Ie=Ce.context,Re=(0,o.useId)(),ye="".concat(Re,"-label"),ke="".concat(Re,"-description"),ze=(0,o.useInteractions)([(0,o.useClick)(Ie),(0,o.useRole)(Ie),(0,o.useDismiss)(Ie,H)]).getFloatingProps,Ye=(0,o.useMergeRefs)([A,Me]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Ie},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,g({},ze(m(c({},W),{ref:Ye,className:J,"aria-labelledby":ye,"aria-describedby":ke})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:_.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(dL);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Hv,d=Je;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.color,m=g.size,b=g.label,T=g.error,k=g.success,R=g.icon,E=g.containerProps,A=g.labelProps,F=g.className,V=g.shrink,B=g.inputRef,H=_(g,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),Y=(0,l.useTheme)().input,re=Y.defaultProps,Q=Y.valid,W=Y.styles,X=W.base,te=W.variants;c=c??re.variant,m=m??re.size,p=p??re.color,b=b??re.label,A=A??re.labelProps,E=E??re.containerProps,V=V??re.shrink,R=R??re.icon,F=(0,d.twMerge)(re.className||"",F);var ne=te[(0,i.default)(Q.variants,c,"outlined")],se=ne.sizes[(0,i.default)(Q.sizes,m,"md")],ve=(0,a.default)(ne.error.input),we=(0,a.default)(ne.success.input),ce=(0,a.default)(ne.shrink.input),J=(0,a.default)(ne.colors.input[(0,i.default)(Q.colors,p,"gray")]),oe=(0,a.default)(ne.error.label),ue=(0,a.default)(ne.success.label),Se=(0,a.default)(ne.shrink.label),Ce=(0,a.default)(ne.colors.label[(0,i.default)(Q.colors,p,"gray")]),Me=(0,o.default)((0,a.default)(X.container),(0,a.default)(se.container),E==null?void 0:E.className),Ie=(0,o.default)((0,a.default)(X.input),(0,a.default)(ne.base.input),(0,a.default)(se.input),v({},(0,a.default)(ne.base.inputWithIcon),R),v({},J,!T&&!k),v({},ve,T),v({},we,k),v({},ce,V),F),Re=(0,o.default)((0,a.default)(X.label),(0,a.default)(ne.base.label),(0,a.default)(se.label),v({},Ce,!T&&!k),v({},oe,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),ye=(0,o.default)((0,a.default)(X.icon),(0,a.default)(ne.base.icon),(0,a.default)(se.icon)),ke=(0,o.default)((0,a.default)(X.asterisk));return r.default.createElement("div",w({},E,{ref:h,className:Me}),R&&r.default.createElement("div",{className:ye},R),r.default.createElement("input",w({},H,{ref:B,className:Ie,placeholder:(H==null?void 0:H.placeholder)||" "})),r.default.createElement("label",w({},A,{className:Re}),b," ",H.required?r.default.createElement("span",{className:ke},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(ij);var aj={},im={},yh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return w},propTypesDisabled:function(){return S},propTypesClassName:function(){return _},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,w=r.default.bool,S=r.default.bool,_=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(yh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(q),n=yh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(im);var lj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{MenuCore:function(){return C},default:function(){return g}});var r=w(q),n=w(ot),o=wn,i=w(Xn),a=Xe,l=im,s=yh;function d(h,c){(c==null||c>h.length)&&(c=h.length);for(var p=0,m=new Array(c);p=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.children,h=w(y,["children"]),c=(0,o.useMenu)(),p=c.getReferenceProps,m=c.reference,b=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(g,s({},p(s(v(s({},h),{ref:T,onClick:function(R){R.stopPropagation()}}),b&&{role:"menuitem"}))))});_.propTypes={children:i.propTypesChildren},_.displayName="MaterialTailwind.MenuHandler";var P=_})(sj);var uj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(q),n=wn,o=An,i=S(pt),a=Je,l=S(et),s=Xe,d=im,v=yh;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.children,p=g.className,m=_(g,["children","className"]),b=(0,s.useTheme)().menu,T=b.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,H=k.listItemsRef,Y=k.getFloatingProps,re=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,X=k.context,te=k.activeIndex,ne=k.tree,se=k.allowHover,ve=k.internalAllowHover,we=k.setActiveIndex,ce=k.nested;p=p??"";var J=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),p),oe=(0,n.useMergeRefs)([h,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,w({},m,{ref:oe,style:{position:A,top:V??0,left:F??0},className:J},Y({onKeyDown:function(Me){Me.key==="Tab"&&(E(!1),Me.shiftKey&&Me.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Me){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,re({tabIndex:te===Me?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Re){H.current[Me]=Re},onClick:function(Re){if(Ce.props.onClick){var ye,ke;(ke=(ye=Ce.props).onClick)===null||ke===void 0||ke.call(ye,Re)}ne==null||ne.events.emit("click")},onMouseEnter:function(){(se&&R||ve&&R)&&we(Me)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(uj);var cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{MenuItem:function(){return _},default:function(){return P}});var r=v(q),n=v(pt),o=Je,i=v(et),a=Xe,l=yh;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.className,h=g===void 0?"":g,c=y.disabled,p=c===void 0?!1:c,m=y.children,b=w(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),p)),h);return r.default.createElement("button",d({},b,{ref:C,role:"menuitem",className:R}),m)});_.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},_.displayName="MaterialTailwind.MenuItem";var P=_})(cj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return w},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(q),n=wn,o=im,i=lj,a=sj,l=uj,s=cj;function d(){return d=Object.assign||function(_){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.open,p=g.animate,m=g.className,b=g.children,T=_(g,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. More details: https://www.material-tailwind.com/docs/react/collapse - `);var R=r.default.useRef(null),E=(0,d.useTheme)().navbar,A=E.styles,F=A.base.mobileNav;h=h??{},m=m??"";var V=(0,l.twMerge)((0,a.default)((0,s.default)(F)),m),B={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=R.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},H=(0,i.default)(B,h),q=n.AnimatePresence,re=(0,o.useMergeRefs)([f,R]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(q,null,r.default.createElement(n.m.div,w({},T,{ref:re,className:V,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:H}),_)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(pj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Navbar:function(){return C},MobileNav:function(){return d.MobileNav},default:function(){return g}});var r=b(X),n=b(nt),o=b(pt),i=Ze,a=b(Sr),l=b(Je),s=qe,d=pj,v=Zw;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.variant,m=f.color,_=f.shadow,T=f.blurred,k=f.fullWidth,R=f.className,E=f.children,A=P(f,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,H=F.styles,q=H.base,re=H.variants;h=h??V.variant,m=m??V.color,_=_??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(q.navbar.initial),(Q={},w(Q,(0,l.default)(q.navbar.shadow),_),w(Q,(0,l.default)(q.navbar.blurred),T&&m==="white"),w(Q,(0,l.default)(q.navbar.fullWidth),k),Q)),Y=(0,o.default)((0,l.default)(re[(0,a.default)(B.variants,h,"filled")][(0,a.default)(B.colors,m,"white")])),te=(0,i.twMerge)((0,o.default)(W,Y),R);return r.default.createElement("nav",S({},A,{ref:c,className:te}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var g=Object.assign(C,{MobileNav:d.MobileNav})})(fj);var hj={},A2={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return w},propTypesInteractive:function(){return S},propTypesClassName:function(){return b},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(nt),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,w=r.default.node,S=r.default.bool,b=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(X),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(A2);var gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{PopoverHandler:function(){return b},default:function(){return P}});var r=l(X),n=wn,o=A2,i=bh;function a(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(g[f]=y[f])}return g}function S(y,C){if(y==null)return{};var g={},f=Object.keys(y),c,h;for(h=0;h=0)&&(g[c]=y[c]);return g}var b=r.default.forwardRef(function(y,C){var g=y.children,f=w(y,["children"]),c=(0,o.usePopover)(),h=c.getReferenceProps,m=c.reference,_=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(g,s({},h(v(s({},f),{ref:_}))))});b.propTypes={children:i.propTypesChildren},b.displayName="MaterialTailwind.PopoverHandler";var P=b})(gj);var vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{PopoverContent:function(){return c},default:function(){return h}});var r=b(X),n=wn,o=An,i=b(pt),a=Ze,l=b(Je),s=qe,d=A2,v=bh;function w(m,_,T){return _ in m?Object.defineProperty(m,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[_]=T,m}function S(){return S=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function f(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,_){var T=m.children,k=m.className,R=g(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,H=V.strategy,q=V.x,re=V.y,Q=V.context,W=V.floating,Y=V.getFloatingProps,te=V.appliedAnimation,ne=V.labelId,se=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var ve=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),ye=(0,n.useMergeRefs)([_,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},Y(C(P({},R),{ref:ye,className:ve,style:{position:H,top:re??"",left:q??""},"aria-labelledby":ne,"aria-describedby":se})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:te}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var h=c})(vj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return f},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=b(X),n=b(nt),o=wn,i=b(Xn),a=qe,l=A2,s=bh,d=gj,v=vj;function w(h,m){(m==null||m>h.length)&&(m=h.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.color,m=g.size,_=g.value,T=g.label,k=g.className,R=g.barProps,E=b(g,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,H=B.base,q=B.variants,re=B.sizes;c=c??F.variant,h=h??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(q[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,h,"gray")]),W=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].container.initial),Y=(0,o.default)((0,l.default)(H.container.initial),W),te=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].container.withLabel),ne=(0,o.default)((0,l.default)(H.container.withLabel),te),se=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].bar),ve=(0,o.default)((0,l.default)(H.bar),se),ye=(0,i.twMerge)((0,o.default)(Y,v({},ne,T)),k),ce=(0,i.twMerge)((0,o.default)(ve,Q),R==null?void 0:R.className);return r.default.createElement("div",w({},E,{ref:f,className:ye}),r.default.createElement("div",w({},R,{className:ce,style:{width:"".concat(_,"%")}}),T&&"".concat(_,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(mj);var yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Radio:function(){return C},default:function(){return g}});var r=b(X),n=b(nt),o=b(dh),i=b(pt),a=Ze,l=b(Sr),s=b(Je),d=qe,v=Sd;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.color,m=f.label,_=f.icon,T=f.ripple,k=f.className,R=f.disabled,E=f.containerProps,A=f.labelProps,F=f.iconProps,V=f.inputRef,B=P(f,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().radio,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.colors,te=r.default.useId();h=h??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ye=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(re.colors,h,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,i.default)((0,i.default)((0,s.default)(W.icon)),Y[(0,l.default)(re.colors,h,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||te,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:ye,id:B.id||te})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||te}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var g=C})(yj);var bj={},TT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,w){for(var S in w)Object.defineProperty(v,S,{enumerable:!0,get:w[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(X),n=An,o=Wv;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var w=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){w.current=v},[v]),w.current}var d=function(v){var w=v.value,S=v.children;return r.default.createElement(a.Provider,{value:w},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(TT);var wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=w(X),n=w(pt),o=Ze,i=w(Je),a=qe,l=TT,s=Wv;function d(C,g,f){return g in C?Object.defineProperty(C,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):C[g]=f,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=function(C){var g=function(){Q(_),te(h),Y(!1),se(null)},f=function(Re){(Re.key==="Enter"||Re.key===" "&&!ye.current.typing)&&(Re.preventDefault(),g())},c=C.value,h=c===void 0?"":c,m=C.index,_=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,H=B.base,q=(0,l.useSelect)(),re=q.selectedIndex,Q=q.setSelectedIndex,W=q.listRef,Y=q.setOpen,te=q.onChange,ne=q.activeIndex,se=q.setActiveIndex,ve=q.getItemProps,ye=q.dataRef,ce=(0,i.default)(H.option.initial),J=(0,i.default)(H.option.active),oe=(0,i.default)(H.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,J,re===_),d(ue,oe,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[_]=Ce},className:Se,disabled:k,tabIndex:ne===_?0:1,"aria-selected":ne===_&&re===_,"data-selected":re===_},ve({onClick:function(Ce){var Re=F==null?void 0:F.onClick;typeof Re=="function"&&(Re(Ce),g()),g()},onKeyDown:function(Ce){var Re=F==null?void 0:F.onKeyDown;typeof Re=="function"&&(Re(Ce),f(Ce)),f(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(wj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,Y){for(var te in Y)Object.defineProperty(W,te,{enumerable:!0,get:Y[te]})}t(e,{Select:function(){return re},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=h(X),n=h(nt),o=wn,i=An,a=h(pt),l=Ze,s=h(Xn),d=h(Sr),v=h(Je),w=qe,S=TT,b=Wv,P=wj;function y(W,Y){(Y==null||Y>W.length)&&(Y=W.length);for(var te=0,ne=new Array(Y);te=0)&&Object.prototype.propertyIsEnumerable.call(W,ne)&&(te[ne]=W[ne])}return te}function V(W,Y){if(W==null)return{};var te={},ne=Object.keys(W),se,ve;for(ve=0;ve=0)&&(te[se]=W[se]);return te}function B(W,Y){return C(W)||_(W,Y)||q(W,Y)||T()}function H(W){return g(W)||m(W)||q(W)||k()}function q(W,Y){if(W){if(typeof W=="string")return y(W,Y);var te=Object.prototype.toString.call(W).slice(8,-1);if(te==="Object"&&W.constructor&&(te=W.constructor.name),te==="Map"||te==="Set")return Array.from(te);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return y(W,Y)}}var re=r.default.forwardRef(function(W,Y){var te=W.variant,ne=W.color,se=W.size,ve=W.label,ye=W.error,ce=W.success,J=W.arrow,oe=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Re=W.dismiss,xe=W.animate,Te=W.lockScroll,Oe=W.labelProps,je=W.menuProps,Ye=W.className,it=W.disabled,Mt=W.name,gt=W.children,Tt=W.containerProps,_t=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),ir,Wt=(0,w.useTheme)().select,Lt=Wt.defaultProps,Zt=Wt.valid,Dr=Wt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),rr=Ln[0],mo=Ln[1];te=te??Lt.variant,ne=ne??Lt.color,se=se??Lt.size,ve=ve??Lt.label,ye=ye??Lt.error,ce=ce??Lt.success,J=J??Lt.arrow,oe=oe??Lt.value,ue=ue??Lt.onChange,Se=Se??Lt.selected,Ce=Ce??Lt.offset,Re=Re??Lt.dismiss,xe=xe??Lt.animate,Oe=Oe??Lt.labelProps,je=je??Lt.menuProps;var qt;Tt=(qt=(0,s.default)(Tt,(Lt==null?void 0:Lt.containerProps)||{}))!==null&&qt!==void 0?qt:Lt.containerProps,Ye=(0,l.twMerge)(Lt.className||"",Ye),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(H((Qr=r.default.Children.map(gt,function(at){var tt=at.props;return tt==null?void 0:tt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(tt){var xt=tt.rects,cn=tt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(xt==null||(wo=xt.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,ae=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(oe)+1))},[oe]);var pe=ga.floating,_e=(0,o.useInteractions)([(0,o.useClick)(ae),(0,o.useRole)(ae,{role:"listbox"}),(0,o.useDismiss)(ae,R({},Re)),(0,o.useListNavigation)(ae,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(ae,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Ee=_e.getReferenceProps,Be=_e.getFloatingProps,Xe=_e.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=pe.current;if(Sn&&pa&&at){var tt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(tt&&Fi!=null){var xt,cn,wr=(cn=(xt=yo.current[Fi])===null||xt===void 0?void 0:xt.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=tt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Xe,dataRef:ae.dataRef}},[$r,ue,sn,Xe,ae.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&oe?"withValue":"close")},[Sn,oe,$r,Se]);var De=Qn[(0,d.default)(Zt.variants,te,"outlined")],Qe=De.sizes[(0,d.default)(Zt.sizes,se,"md")],We=De.error.select,$e=De.success.select,Ot=De.colors.select[(0,d.default)(Zt.colors,ne,"gray")],Rt=De.error.label,Bt=De.success.label,yt=De.colors.label[(0,d.default)(Zt.colors,ne,"gray")],dr=De.states[rr],nr=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Qe.container),Tt==null?void 0:Tt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(De.base.select),(0,v.default)(dr.select),(0,v.default)(Qe.select),f({},(0,v.default)(Ot[rr]),!ye&&!ce),f({},(0,v.default)(We.initial),ye),f({},(0,v.default)(We.states[rr]),ye),f({},(0,v.default)($e.initial),ce),f({},(0,v.default)($e.states[rr]),ce)),Ye),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(De.base.label),(0,v.default)(dr.label),(0,v.default)(Qe.label.initial),(0,v.default)(Qe.label.states[rr]),f({},(0,v.default)(yt[rr]),!ye&&!ce),f({},(0,v.default)(Rt.initial),ye),f({},(0,v.default)(Rt.states[rr]),ye),f({},(0,v.default)(Bt.initial),ce),f({},(0,v.default)(Bt.states[rr]),ce)),(Fr=Oe.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),f({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=je.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",te==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},Nt=(0,s.default)(Zr,xe),Ue=i.AnimatePresence;r.default.useEffect(function(){oe&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[oe,ue]);var At=r.default.createElement(o.FloatingFocusManager,{context:ae,modal:!1},r.default.createElement(i.m.ul,c({},Be(A(R({},je),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(tt){var xt=je==null?void 0:je.onPointerEnter;typeof xt=="function"&&(xt(tt),Dn(!1)),Dn(!1)},onPointerMove:function(tt){var xt=je==null?void 0:je.onPointerMove;typeof xt=="function"&&(xt(tt),Dn(!1)),Dn(!1)},onKeyDown:function(tt){var xt=je==null?void 0:je.onKeyDown;typeof xt=="function"&&(xt(tt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:Nt}),r.default.Children.map(gt,function(at,tt){var xt;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((xt=at.props)===null||xt===void 0?void 0:xt.index)||tt+1,id:"material-tailwind-select-".concat(tt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},Tt,{ref:Y,className:nr}),r.default.createElement("button",c({type:"button"},Ee(A(R({},_t),{ref:ga.setReference,className:Fn,disabled:it,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):oe&&!ue?r.default.createElement("span",{className:un},oe):r.default.createElement("span",c({},(ir=gt[$r-1])===null||ir===void 0?void 0:ir.props,{className:un})),r.default.createElement("div",{className:Zn},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},Oe,{className:jn}),ve),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(Ue,null,Sn&&r.default.createElement(r.default.Fragment,null,Te?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},At):At)))))});re.propTypes={variant:n.default.oneOf(b.propTypesVariant),color:n.default.oneOf(b.propTypesColor),size:n.default.oneOf(b.propTypesSize),label:b.propTypesLabel,error:b.propTypesError,success:b.propTypesSuccess,arrow:b.propTypesArrow,value:b.propTypesValue,onChange:b.propTypesOnChange,selected:b.propTypesSelected,offset:b.propTypesOffset,dismiss:b.propTypesDismiss,animate:b.propTypesAnimate,lockScroll:b.propTypesLockScroll,labelProps:b.propTypesLabelProps,menuProps:b.propTypesMenuProps,className:b.propTypesClassName,disabled:b.propTypesDisabled,name:b.propTypesName,children:b.propTypesChildren,containerProps:b.propTypesContainerProps},re.displayName="MaterialTailwind.Select";var Q=Object.assign(re,{Option:P.SelectOption})})(bj);var _j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Switch:function(){return C},default:function(){return g}});var r=b(X),n=b(nt),o=b(dh),i=b(pt),a=Ze,l=b(Sr),s=b(Je),d=qe,v=Sd;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.color,m=f.label,_=f.ripple,T=f.className,k=f.disabled,R=f.containerProps,E=f.circleProps,A=f.labelProps,F=f.inputRef,V=P(f,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),H=B.switch,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.colors,te=r.default.useId();h=h??q.color,_=_??q.ripple,k=k??q.disabled,R=R??q.containerProps,A=A??q.labelProps,E=E??q.circleProps,T=(0,a.twMerge)(q.className||"",T);var ne=_!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),k)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),ye=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(re.colors,h,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),Y[(0,l.default)(re.colors,h,"gray")].circle,Y[(0,l.default)(re.colors,h,"gray")].before),E==null?void 0:E.className),J=(0,i.default)((0,s.default)(W.ripple)),oe=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("div",S({},R,{className:ve}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||te,className:ye})),r.default.createElement("label",S({},E,{htmlFor:V.id||te,className:ce}),_&&r.default.createElement("div",{className:J,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return _&&ne.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||te,className:oe}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var g=C})(_j);var xj={},wh={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return w},propTypesChildren:function(){return S}});var r=o(nt),n=br;function o(b){return b&&b.__esModule?b:{default:b}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),w=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return g},TabsContextProvider:function(){return f},setId:function(){return c},setActive:function(){return h},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(X),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.value,h=g.className,m=g.activeClassName,_=g.disabled,T=g.children,k=b(g,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,H=V.dispatch,q=B.id,re=B.active,Q=B.indicatorProps;_=_??A.disabled,h=(0,i.twMerge)(A.className||"",h),m=(0,i.twMerge)(A.activeClassName||"",m);var W,Y=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),_),v(W,m,re===c),W)),h),te,ne=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(te=Q==null?void 0:Q.className)!==null&&te!==void 0?te:"");return r.default.createElement("li",w({},k,{ref:f,role:"tab",className:Y,onClick:function(se){var ve=k==null?void 0:k.onClick;typeof ve=="function"&&((0,s.setActive)(H,c),(0,s.setIsInitial)(H,!1),ve(se)),(0,s.setIsInitial)(H,!1),(0,s.setActive)(H,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),re===c&&r.default.createElement(n.motion.div,w({},Q,{transition:{duration:.5},className:ne,layoutId:q})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(Sj);var Cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(X),n=An,o=S(Xn),i=S(pt),a=Ze,l=S(Je),s=qe,d=wh,v=kd;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.animate,h=g.className,m=g.children,_=b(g,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,h=(0,a.twMerge)(k.className||"",h);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),h),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",w({},_,{ref:f,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=w(X),n=w(pt),o=Ze,i=w(Je),a=qe,l=wh,s=kd;function d(C,g,f){return g in C?Object.defineProperty(C,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):C[g]=f,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.indicatorProps,c=C.className,h=C.children,m=S(C,["indicatorProps","className","children"]),_=(0,a.useTheme)().tabsHeader,T=_.defaultProps,k=_.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,f)},[A,f]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:g,role:"tablist",className:V}),h))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Pj);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=w(X),n=An,o=w(pt),i=Ze,a=w(Je),l=qe,s=wh,d=kd;function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.value,c=C.className,h=C.children,m=S(C,["value","className","children"]),_=(0,l.useTheme)().tabPanel,T=_.defaultProps,k=_.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:g,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===f?"mount":F?"initial":"unmount",variants:A,"data-value":f}),h)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Tj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return f},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return w.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(X),n=y(pt),o=Ze,i=y(Je),a=qe,l=wh,s=Sj,d=Cj,v=Pj,w=Tj,S=kd;function b(h,m,_){return m in h?Object.defineProperty(h,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):h[m]=_,h}function P(){return P=Object.assign||function(h){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function g(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}var f=r.default.forwardRef(function(h,m){var _=h.value,T=h.className,k=h.orientation,R=h.children,E=C(h,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var H=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),b({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:_,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:H}),R))});f.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},f.displayName="MaterialTailwind.Tabs";var c=Object.assign(f,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:w.TabPanel})})(xj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=S(Sr),a=S(Je),l=qe,s=Hv,d=Ze;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.color,m=g.size,_=g.label,T=g.error,k=g.success,R=g.resize,E=g.labelProps,A=g.containerProps,F=g.shrink,V=g.className,B=b(g,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),H=(0,l.useTheme)().textarea,q=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,Y=Q.variants;c=c??q.variant,m=m??q.size,h=h??q.color,_=_??q.label,E=E??q.labelProps,A=A??q.containerProps,F=F??q.shrink,V=(0,d.twMerge)(q.className||"",V);var te=Y[(0,i.default)(re.variants,c,"outlined")],ne=(0,a.default)(te.error.textarea),se=(0,a.default)(te.success.textarea),ve=(0,a.default)(te.shrink.textarea),ye=(0,a.default)(te.colors.textarea[(0,i.default)(re.colors,h,"gray")]),ce=(0,a.default)(te.error.label),J=(0,a.default)(te.success.label),oe=(0,a.default)(te.shrink.label),ue=(0,a.default)(te.colors.label[(0,i.default)(re.colors,h,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(te.base.textarea),(0,a.default)(te.sizes[(0,i.default)(re.sizes,m,"md")].textarea),v({},ye,!T&&!k),v({},ne,T),v({},se,k),v({},ve,F),R?"":"!resize-none",V),Re=(0,o.default)((0,a.default)(W.label),(0,a.default)(te.base.label),(0,a.default)(te.sizes[(0,i.default)(re.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},J,k),v({},oe,F),E==null?void 0:E.className),xe=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:f,className:Se},r.default.createElement("textarea",w({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Re},_," ",B.required?r.default.createElement("span",{className:xe},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(Oj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(X),n=C(nt),o=wn,i=An,a=C(pt),l=Ze,s=C(Xn),d=C(Je),v=qe,w=bh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,H=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,H)&&(B[H]=F[H])}return B}function T(F,V){if(F==null)return{};var B={},H=Object.keys(F),q,re;for(re=0;re=0)&&(B[q]=F[q]);return B}function k(F,V){return b(F)||g(F,V)||R(F,V)||f()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,H=F.handler,q=F.content,re=F.interactive,Q=F.placement,W=F.offset,Y=F.dismiss,te=F.animate,ne=F.className,se=F.children,ve=_(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),ye=(0,v.useTheme)().tooltip,ce=ye.defaultProps,J=ye.styles.base,oe=k(r.default.useState(!1),2),ue=oe[0],Se=oe[1];B=B??ue,H=H??Se,re=re??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,Y=Y??ce.dismiss,te=te??ce.animate,ne=(0,l.twMerge)(ce.className||"",ne);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(J)),ne),Re={unmount:{opacity:0},mount:{opacity:1}},xe=(0,s.default)(Re,te),Te=(0,o.useFloating)({open:B,onOpenChange:H,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),Oe=Te.x,je=Te.y,Ye=Te.reference,it=Te.floating,Mt=Te.strategy,gt=Te.refs,Tt=Te.update,_t=Te.context,ir=(0,o.useInteractions)([(0,o.useClick)(_t,{enabled:re}),(0,o.useFocus)(_t),(0,o.useHover)(_t),(0,o.useRole)(_t,{role:"tooltip"}),(0,o.useDismiss)(_t,Y)]),Wt=ir.getReferenceProps,Lt=ir.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,Tt)},[B,Tt,gt.reference,gt.floating]);var Zt=(0,o.useMergeRefs)([V,it]),Dr=(0,o.useMergeRefs)([V,Ye]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof se=="string"?r.default.createElement("span",y({},Wt({ref:Dr})),se):r.default.cloneElement(se,c({},Wt(m(c({},se==null?void 0:se.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Lt(m(c({},ve),{ref:Zt,className:Ce,style:{position:Mt,top:je??"",left:Oe??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:xe}),q)))))});E.propTypes={open:w.propTypesOpen,handler:w.propTypesHandler,content:w.propTypesContent,interactive:w.propTypesInteractive,placement:n.default.oneOf(w.propTypesPlacement),offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,className:w.propTypesClassName,children:w.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(kj);var Ej={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,h){for(var m in h)Object.defineProperty(c,m,{enumerable:!0,get:h[m]})}t(e,{Typography:function(){return g},default:function(){return f}});var r=w(X),n=w(nt),o=w(pt),i=Ze,a=w(Sr),l=w(Je),s=qe,d=UP;function v(c,h,m){return h in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}function w(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,h){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(h.indexOf(T)>=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,h){var m=c.variant,_=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,H=F.styles,q=H.variants,re=H.colors,Q=H.textGradient;m=m??V.variant,_=_??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(q[(0,a.default)(B.variants,m,"paragraph")]),Y=re[(0,a.default)(B.colors,_,"inherit")],te=(0,l.default)(Q),ne=(0,i.twMerge)((0,o.default)(W,v({},Y.color,!T),v({},te,T),v({},Y.gradient,T)),R),se;switch(m){case"h1":se=r.default.createElement(k||"h1",P(S({},A),{ref:h,className:ne}),E);break;case"h2":se=r.default.createElement(k||"h2",P(S({},A),{ref:h,className:ne}),E);break;case"h3":se=r.default.createElement(k||"h3",P(S({},A),{ref:h,className:ne}),E);break;case"h4":se=r.default.createElement(k||"h4",P(S({},A),{ref:h,className:ne}),E);break;case"h5":se=r.default.createElement(k||"h5",P(S({},A),{ref:h,className:ne}),E);break;case"h6":se=r.default.createElement(k||"h6",P(S({},A),{ref:h,className:ne}),E);break;case"lead":se=r.default.createElement(k||"p",P(S({},A),{ref:h,className:ne}),E);break;case"paragraph":se=r.default.createElement(k||"p",P(S({},A),{ref:h,className:ne}),E);break;case"small":se=r.default.createElement(k||"p",P(S({},A),{ref:h,className:ne}),E);break;default:se=r.default.createElement(k||"p",P(S({},A),{ref:h,className:ne}),E);break}return se});g.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},g.displayName="MaterialTailwind.Typography";var f=g})(Ej);var Mj={},Rj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(nt),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Rj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(X),n=An,o=wn,i=S(Xn),a=S(pt),l=Ze,s=S(Je),d=qe,v=Rj;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.open,h=g.animate,m=g.className,_=g.children,T=b(g,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;h=h??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,h),H=n.AnimatePresence,q=(0,o.useMergeRefs)([f,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(H,null,r.default.createElement(n.m.div,w({},T,{ref:q,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Mj);var Nj={},am={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(nt);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(am);var Aj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return b}});var r=d(X),n=qe,o=d(pt),i=Ze,a=d(Je),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,n.useTheme)().list,h=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(h.itemPrefix)),C);return r.default.createElement("div",s({},f,{ref:y,className:m}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var b=S})(OT);var kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return b}});var r=d(X),n=qe,o=d(pt),i=Ze,a=d(Je),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),f,c;for(c=0;c=0)&&(C[f]=P[f]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,f=v(P,["className","children"]),c=(0,n.useTheme)().list,h=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(h.itemSuffix)),C);return r.default.createElement("div",s({},f,{ref:y,className:m}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var b=S})(kT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return g}});var r=b(X),n=qe,o=b(dh),i=b(pt),a=Ze,l=b(Je),s=am,d=OT,v=kT;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.className,m=f.disabled,_=f.selected,T=f.ripple,k=f.children,R=P(f,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,H=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},w(B,(0,l.default)(F.item.disabled),m),w(B,(0,l.default)(F.item.selected),_&&!m),B)),h);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:H,onMouseDown:function(q){var re=R==null?void 0:R.onMouseDown;return T&&V.create(q,"dark"),typeof re=="function"&&re(q)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var g=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Aj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(X),n=qe,o=S(pt),i=Ze,a=S(Je),l=am,s=Aj,d=OT,v=kT;function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.className,h=g.children,m=b(g,["className","children"]),_=(0,n.useTheme)().list,T=_.defaultProps,k=_.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",w({},m,{ref:f,className:R}),h)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Nj);var Ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,f){for(var c in f)Object.defineProperty(g,c,{enumerable:!0,get:f[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(X),n=S(nt),o=S(pt),i=Ze,a=S(Sr),l=S(Je),s=qe,d=_d;function v(g,f,c){return f in g?Object.defineProperty(g,f,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[f]=c,g}function w(){return w=Object.assign||function(g){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(g,h)&&(c[h]=g[h])}return c}function P(g,f){if(g==null)return{};var c={},h=Object.keys(g),m,_;for(_=0;_=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,f){var c=g.variant,h=g.size,m=g.color,_=g.fullWidth,T=g.ripple,k=g.className,R=g.children,E=b(g,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,H=V.base,q=V.dividerColor;c=c??F.variant,h=h??F.size,m=m??F.color,T=T??F.ripple,_=_??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var re,Q=(0,i.twMerge)((0,o.default)((0,l.default)(H.initial),(re={},v(re,(0,l.default)(H.fullWidth),_),v(re,"divide-x",c!=="outlined"),v(re,(0,l.default)(q[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),re)),k);return r.default.createElement("div",w({},E,{ref:f,className:Q}),r.default.Children.map(R,function(W,Y){var te;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:h,color:m,ripple:T,fullWidth:_,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":Y!==r.default.Children.count(R)-1,"border-r-0":Y!==r.default.Children.count(R)-1,"rounded-l-none":Y!==0}),(te=W.props)===null||te===void 0?void 0:te.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Ij);var Lj={},Dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return w},propTypesChildren:function(){return S},propTypesSlideRef:function(){return b}});var r=n(nt);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,w=r.default.bool,S=r.default.node.isRequired,b=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,T){for(var k in T)Object.defineProperty(_,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return h},default:function(){return m}});var r=b(X),n=An,o=wn,i=b(pt),a=Ze,l=b(Je),s=qe,d=Dj;function v(_,T){(T==null||T>_.length)&&(T=_.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(k[R]=_[R])}return k}function g(_,T){if(_==null)return{};var k={},R=Object.keys(_),E,A;for(A=0;A=0)&&(k[E]=_[E]);return k}function f(_,T){return w(_)||P(_,T)||c(_,T)||y()}function c(_,T){if(_){if(typeof _=="string")return v(_,T);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(_,T)}}var h=r.default.forwardRef(function(_,T){var k=_.children,R=_.prevArrow,E=_.nextArrow,A=_.navigation,F=_.autoplay,V=_.autoplayDelay,B=_.transition,H=_.loop,q=_.className,re=_.slideRef,Q=C(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,Y=W.defaultProps,te=W.styles.base,ne=(0,n.useMotionValue)(0),se=r.default.useRef(null),ve=f(r.default.useState(0),2),ye=ve[0],ce=ve[1],J=r.default.Children.toArray(k);R=R??Y.prevArrow,E=E??Y.nextArrow,A=A??Y.navigation,F=F??Y.autoplay,V=V??Y.autoplayDelay,B=B??Y.transition,H=H??Y.loop,q=(0,a.twMerge)(Y.className||"",q);var oe=(0,a.twMerge)((0,i.default)((0,l.default)(te.carousel)),q),ue=(0,a.twMerge)((0,i.default)((0,l.default)(te.slide))),Se=r.default.useCallback(function(){var Te;return-ye*(((Te=se.current)===null||Te===void 0?void 0:Te.clientWidth)||0)},[ye]),Ce=r.default.useCallback(function(){var Te=H?0:ye;ce(ye+1===J.length?Te:ye+1)},[ye,H,J.length]),Re=function(){var Te=H?J.length-1:0;ce(ye-1<0?Te:ye-1)};r.default.useEffect(function(){var Te=(0,n.animate)(ne,Se(),B);return Te.stop},[Se,ye,ne,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(ne,Se(),B)})},[Se,B,ne]),r.default.useEffect(function(){if(F){var Te=setInterval(function(){return Ce()},V);return function(){return clearInterval(Te)}}},[F,Ce,V]);var xe=(0,o.useMergeRefs)([se,T]);return r.default.createElement("div",S({},Q,{ref:xe,className:oe}),J.map(function(Te,Oe){return r.default.createElement(n.LazyMotion,{key:Oe,features:n.domAnimation},r.default.createElement(n.m.div,{ref:re,className:ue,style:{x:ne,left:"".concat(Oe*100,"%"),right:"".concat(Oe*100,"%")}},Te))}),R&&R({loop:H,handlePrev:Re,activeIndex:ye,firstIndex:ye===0}),E&&E({loop:H,handleNext:Ce,activeIndex:ye,lastIndex:ye===J.length-1}),A&&A({setActiveIndex:ce,activeIndex:ye,length:J.length}))});h.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},h.displayName="MaterialTailwind.Carousel";var m=h})(Lj);var Fj={},jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return w},propTypesOnClose:function(){return S},propTypesDismiss:function(){return b},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(nt),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,w=r.default.string,S=r.default.func,b=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(jj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return f},default:function(){return c}});var r=P(X),n=P(nt),o=An,i=wn,a=P(Xn),l=P(pt),s=Ze,d=P(Je),v=qe,w=jj;function S(h,m,_){return m in h?Object.defineProperty(h,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):h[m]=_,h}function b(){return b=Object.assign||function(h){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function g(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}var f=r.default.forwardRef(function(h,m){var _=h.open,T=h.size,k=h.overlay,R=h.children,E=h.placement,A=h.overlayProps,F=h.className,V=h.onClose,B=h.dismiss,H=h.transition,q=h.overlayRef,re=C(h,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,Y=Q.styles.base,te=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var ne;B=(ne=(0,a.default)(W.dismiss,B||{}))!==null&&ne!==void 0?ne:W.dismiss,H=H??W.transition,F=(0,s.twMerge)(W.className||"",F);var se=(0,s.twMerge)((0,l.default)((0,d.default)(Y.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),ve=(0,s.twMerge)((0,l.default)((0,d.default)(Y.overlay)),A==null?void 0:A.className),ye=(0,i.useFloating)({open:_,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(ye,B)]).getFloatingProps;r.default.useEffect(function(){te.start(_?"open":"close")},[_,te,E]);var J={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},oe={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:q,className:ve,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:oe,transition:{duration:.3}})),r.default.createElement(o.m.div,b({},ce(y({ref:m},re)),{className:se,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:te,variants:J,transition:H}),R)))});f.propTypes={open:w.propTypesOpen,size:w.propTypesSize,overlay:w.propTypesOverlay,children:w.propTypesChildren,placement:n.default.oneOf(w.propTypesPlacement),overlayProps:w.propTypesOverlayProps,className:w.propTypesClassName,onClose:w.propTypesOnClose,dismiss:w.propTypesDismiss,transition:w.propTypesTransition,overlayRef:w.propTypesOverlayRef},f.displayName="MaterialTailwind.Drawer";var c=f})(Fj);var zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Badge:function(){return C},default:function(){return g}});var r=b(X),n=b(nt),o=b(Xn),i=b(pt),a=Ze,l=b(Sr),s=b(Je),d=qe,v=HP;function w(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.color,m=f.invisible,_=f.withBorder,T=f.overlap,k=f.placement,R=f.className,E=f.content,A=f.children,F=f.containerProps,V=f.containerRef,B=P(f,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),H=(0,d.useTheme)().badge,q=H.valid,re=H.defaultProps,Q=H.styles,W=Q.base,Y=Q.placements,te=Q.colors;h=h??re.color,m=m??re.invisible,_=_??re.withBorder,T=T??re.overlap,k=k??re.placement,R=(0,a.twMerge)(re.className||"",R);var ne;F=(ne=(0,o.default)(F,re.containerProps||{}))!==null&&ne!==void 0?ne:re.containerProps;var se=(0,s.default)(W.badge.initial),ve=(0,s.default)(W.badge.withBorder),ye=(0,s.default)(W.badge.withContent),ce=(0,s.default)(te[(0,l.default)(q.colors,h,"red")]),J=(0,s.default)(Y[(0,l.default)(q.placements,k,"top-end")][(0,l.default)(q.overlaps,T,"square")]),oe,ue=(0,a.twMerge)((0,i.default)(se,J,ce,(oe={},w(oe,ve,_),w(oe,ye,E),oe)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var g=C})(zj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(X),n=P(nt),o=P(pt),i=Ze,a=P(Sr),l=P(Je),s=qe,d=WP;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function h(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}function m(E,A){return w(E)||C(E,A)||T(E,A)||g()}function _(E){return S(E)||y(E)||T(E)||f()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,H=E.unratedIcon,q=E.ratedColor,re=E.unratedColor,Q=E.className,W=E.onChange,Y=E.readonly,te=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),ne,se,ve=(0,s.useTheme)().rating,ye=ve.valid,ce=ve.defaultProps,J=ve.styles,oe=J.base,ue=J.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,H=H??ce.unratedIcon,q=q??ce.ratedColor,re=re??ce.unratedColor,W=W??ce.onChange,Y=Y??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return _(Array(V).fill("rated")).concat(_(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Re=Se[1],xe=m(r.default.useState(function(){return _(Array(F).fill("un_rated"))}),2),Te=xe[0],Oe=xe[1],je=m(r.default.useState(!1),2),Ye=je[0],it=je[1],Mt=(0,l.default)(ue[(0,a.default)(ye.colors,q,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(ye.colors,re,"blue-gray")]),Tt=(0,i.twMerge)((0,o.default)((0,l.default)(oe.rating),Q)),_t=(0,l.default)(oe.icon),ir=B,Wt=H,Lt=r.default.isValidElement(B)&&r.default.cloneElement(ir,{className:(0,i.twMerge)((0,o.default)(_t,Mt,ir==null||(ne=ir.props)===null||ne===void 0?void 0:ne.className))}),Zt=r.default.isValidElement(B)&&r.default.cloneElement(Wt,{className:(0,i.twMerge)((0,o.default)(_t,gt,Wt==null||(se=Wt.props)===null||se===void 0?void 0:se.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(_t,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(H,{className:(0,i.twMerge)((0,o.default)(_t,gt))}),Qn=function(Ln){return Ln.map(function(rr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!Y){var qt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Re(qt),W&&typeof W=="function"&&W(qt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!Y){var qt=Te.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});it(!0),Oe(qt)}},onMouseLeave:function(){return!Y&&it(!1)}},r.default.isValidElement(rr==="rated"?B:H)?rr==="rated"?Lt:Zt:rr==="rated"?Dr:ln)})};return r.default.createElement("div",b({},te,{ref:A,className:Tt}),Qn(Ye?Te:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(Vj);var Bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=P(X),n=P(nt),o=P(Xn),i=P(pt),a=Ze,l=P(Sr),s=P(Je),d=qe,v=$P;function w(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function f(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||h(T,k)||C()}function h(T,k){if(T){if(typeof T=="string")return w(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,H=T.value,q=T.defaultValue,re=T.onChange,Q=T.min,W=T.max,Y=T.step,te=T.inputRef,ne=T.inputProps,se=g(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),ve=(0,d.useTheme)().slider,ye=ve.valid,ce=ve.defaultProps,J=ve.styles,oe=J.base,ue=J.sizes,Se=J.colors,Ce=c(r.default.useState(q||0),2),Re=Ce[0],xe=Ce[1];r.default.useMemo(function(){q&&xe(q)},[q]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,Y=Y??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Te;V=(Te=(0,i.default)(ce.thumbClassName,V))!==null&&Te!==void 0?Te:ce.thumbClassName;var Oe;F=(Oe=(0,i.default)(ce.trackClassName,F))!==null&&Oe!==void 0?Oe:ce.trackClassName;var je;B=(je=(0,i.default)(ce.barClassName,B))!==null&&je!==void 0?je:ce.barClassName;var Ye;ne=(Ye=(0,o.default)(ne,(ce==null?void 0:ce.inputProps)||{}))!==null&&Ye!==void 0?Ye:ce.inputProps;var it=(0,a.twMerge)((0,i.default)((0,s.default)(oe.container),(0,s.default)(Se[(0,l.default)(ye.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(ye.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(oe.bar),B)),gt=(0,i.default)((0,s.default)(oe.track),(0,s.default)(ue[(0,l.default)(ye.sizes,E,"md")].track)),Tt=(0,i.default)((0,s.default)(oe.thumb),(0,s.default)(ue[(0,l.default)(ye.sizes,E,"md")].thumb)),_t=(0,i.default)((0,s.default)(oe.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(Tt,V));return r.default.createElement("div",b({},se,{ref:k,className:it}),r.default.createElement("label",{className:Mt,style:{width:"".concat(H||Re,"%")}}),r.default.createElement("input",b({ref:te,type:"range",max:W,min:Q,step:Y,className:_t},H?{value:H}:null,{defaultValue:q,onChange:function(ir){return re?re(ir):xe(Number(ir.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(Bj);var Uj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{useTimelineItem:function(){return f},TimelineItem:function(){return c},default:function(){return h}});var r=v(X),n=Ze,o=v(Je),i=qe,a=bs;function l(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function s(m){if(Array.isArray(m))return m}function d(){return d=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,_){return s(m)||w(m,_)||C(m,_)||S()}function C(m,_){if(m){if(typeof m=="string")return l(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,_)}}var g=r.default.createContext(0);g.displayName="MaterialTailwind.TimelineItemContext";function f(){var m=r.default.useContext(g);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,_){var T=m.className,k=m.children,R=b(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],H=V[1],q=r.default.useMemo(function(){return[B,H]},[B,H]),re=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(g.Provider,{value:q},r.default.createElement("li",d({ref:_},R,{className:re}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var h=c})(lm);var Hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=P(X),n=P(nt),o=wn,i=Ze,a=P(Sr),l=P(Je),s=qe,d=lm,v=bs;function w(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function f(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||h(T,k)||C()}function h(T,k){if(T){if(typeof T=="string")return w(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=g(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,H=B.styles,q=B.valid,re=H.base,Q=H.variants,W=c((0,d.useTimelineItem)(),2),Y=W[1],te=r.default.useRef(null),ne=(0,o.useMergeRefs)([k,te]);r.default.useEffect(function(){var ye=te.current;if(ye){var ce=ye.getBoundingClientRect().width;return Y(ce),function(){Y(0)}}},[Y,A,F]);var se=(0,l.default)(Q[(0,a.default)(q.variants,E,"filled")][(0,a.default)(q.colors,R,"gray")]),ve=(0,i.twMerge)((0,l.default)(re),se,A);return r.default.createElement("span",b({ref:ne},V,{className:ve}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(Hj);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return f},default:function(){return c}});var r=w(X),n=Ze,o=w(Je),i=qe,a=lm,l=bs;function s(h,m){(m==null||m>h.length)&&(m=h.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function y(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}function C(h,m){return d(h)||S(h,m)||g(h,m)||b()}function g(h,m){if(h){if(typeof h=="string")return s(h,m);var _=Object.prototype.toString.call(h).slice(8,-1);if(_==="Object"&&h.constructor&&(_=h.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(h,m)}}var f=r.default.forwardRef(function(h,m){var _=h.className,T=h.children,k=P(h,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),_);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});f.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},f.displayName="MaterialTailwind.TimelineHeader";var c=f})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return w},default:function(){return S}});var r=s(X),n=Ze,o=s(Je),i=qe,a=bs;function l(){return l=Object.assign||function(b){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(b,C)&&(y[C]=b[C])}return y}function v(b,P){if(b==null)return{};var y={},C=Object.keys(b),g,f;for(f=0;f=0)&&(y[g]=b[g]);return y}var w=r.default.forwardRef(function(b,P){var y=b.className,C=b.children,g=d(b,["className","children"]),f=(0,i.useTheme)().timelineHeader,c=f.styles,h=c.base,m=(0,n.twMerge)((0,o.default)(h),y);return r.default.createElement("div",l({},g,{ref:P,className:m}),C)});w.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},w.displayName="MaterialTailwind.TimelineHeader";var S=w})($j);var Gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,m){for(var _ in m)Object.defineProperty(h,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return f},default:function(){return c}});var r=w(X),n=Ze,o=w(Je),i=qe,a=lm,l=bs;function s(h,m){(m==null||m>h.length)&&(m=h.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,T)&&(_[T]=h[T])}return _}function y(h,m){if(h==null)return{};var _={},T=Object.keys(h),k,R;for(R=0;R=0)&&(_[k]=h[k]);return _}function C(h,m){return d(h)||S(h,m)||g(h,m)||b()}function g(h,m){if(h){if(typeof h=="string")return s(h,m);var _=Object.prototype.toString.call(h).slice(8,-1);if(_==="Object"&&h.constructor&&(_=h.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(h,m)}}var f=r.default.forwardRef(function(h,m){var _=h.className,T=h.children,k=P(h,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],H=(0,o.default)(F.line),q=(0,n.twMerge)((0,o.default)(F.container),_);return r.default.createElement("span",v({},k,{ref:m,className:q,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(H,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:H}))});f.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},f.displayName="MaterialTailwind.TimelineConnector";var c=f})(Gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,c){for(var h in c)Object.defineProperty(f,h,{enumerable:!0,get:c[h]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return w.default},default:function(){return g}});var r=b(X),n=Ze,o=b(Je),i=qe,a=bs,l=b(lm),s=b(Hj),d=b(Wj),v=b($j),w=b(Gj);function S(){return S=Object.assign||function(f){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(f,m)&&(h[m]=f[m])}return h}function y(f,c){if(f==null)return{};var h={},m=Object.keys(f),_,T;for(T=0;T=0)&&(h[_]=f[_]);return h}var C=r.default.forwardRef(function(f,c){var h=f.className,m=f.children,_=P(f,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),h);return r.default.createElement("ul",S({ref:c},_,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var g=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:w.default})})(Uj);var Kj={},qj={},ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(nt);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return w},default:function(){return S}});var r=s(X),n=Ze,o=s(Je),i=qe,a=ET;function l(){return l=Object.assign||function(b){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(b,C)&&(y[C]=b[C])}return y}function v(b,P){if(b==null)return{};var y={},C=Object.keys(b),g,f;for(f=0;f=0)&&(y[g]=b[g]);return y}var w=r.default.forwardRef(function(b,P){var y=b.className;b.activeClassName,b.completedClassName;var C=b.children,g=d(b,["className","activeClassName","completedClassName","children"]),f=(0,i.useTheme)().step,c=f.styles.base,h=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},g,{ref:P,className:h}),C)});w.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},w.displayName="MaterialTailwind.Step";var S=w})(qj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=b(X),n=wn,o=Ze,i=b(Je),a=qe,l=b(qj),s=ET;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function h(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||_(R,E)||y()}function _(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,H=R.lineClassName,q=R.activeLineClassName,re=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),Y=W.stepper,te=W.step,ne=Y.styles.base,se=te.styles,ve=se.base,ye=r.default.useRef(null),ce=m(r.default.useState(0),2),J=ce[0],oe=ce[1],ue=A===0,Se=Array.isArray(re)&&A===re.length-1,Ce=Array.isArray(re)&&A>re.length-1;r.default.useEffect(function(){if(ye.current){var it=re,Mt=ye.current.getBoundingClientRect().width,gt=Mt/(it.length-1);oe(gt)}},[re]);var Re=r.default.useMemo(function(){if(!Ce)return J*A},[A,Ce,J]);(0,n.useMergeRefs)([E,ye]);var xe=(0,o.twMerge)((0,i.default)(ne.stepper),B),Te=(0,o.twMerge)((0,i.default)(ne.line.initial),H),Oe=(0,o.twMerge)(Te,(0,i.default)(ne.line.active),q),je=(0,i.default)(ve.active),Ye=(0,i.default)(ve.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:ye,className:xe}),r.default.createElement("div",{className:Te}),r.default.createElement("div",{className:Oe,style:{width:"".concat(Re,"px")}}),Array.isArray(re)?re.map(function(it,Mt){var gt,Tt;return r.default.cloneElement(it,f(C({key:Mt},it.props),{className:(0,o.twMerge)(it.props.className,Mt===A?(0,o.twMerge)(je,(gt=it.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.children,c=S(C,["children"]),h,m=(0,o.useSpeedDial)(),_=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([g,T.setReference]);return r.default.cloneElement(f,d({},_(w(d({},c),{ref:k,className:(0,i.twMerge)(f==null||(h=f.props)===null||h===void 0?void 0:h.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Mx)),Mx}var Rx={},Q8;function LJ(){return Q8||(Q8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var f in g)Object.defineProperty(C,f,{enumerable:!0,get:g[f]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=w(X),n=An,o=wn,i=MT(),a=qe,l=Ze,s=w(Je),d=sm;function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(f[c]=C[c])}return f}function b(C,g){if(C==null)return{};var f={},c=Object.keys(C),h,m;for(m=0;m=0)&&(f[h]=C[h]);return f}var P=r.default.forwardRef(function(C,g){var f=C.children,c=C.className,h=S(C,["children","className"]),m=(0,a.useTheme)(),_=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,H=(0,o.useMergeRefs)([g,E.setFloating]),q=(0,l.twMerge)((0,s.default)(_),c),re=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(re,null,A&&r.default.createElement("div",v({},h,{ref:H,className:q,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(f,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Rx)),Rx}var Yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,P){for(var y in P)Object.defineProperty(b,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return w},default:function(){return S}});var r=s(X),n=qe,o=Ze,i=s(Je),a=sm;function l(){return l=Object.assign||function(b){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(b,C)&&(y[C]=b[C])}return y}function v(b,P){if(b==null)return{};var y={},C=Object.keys(b),g,f;for(f=0;f=0)&&(y[g]=b[g]);return y}var w=r.default.forwardRef(function(b,P){var y=b.className,C=b.children,g=d(b,["className","children"]),f=(0,n.useTheme)(),c=f.speedDialAction.styles,h=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},g,{ref:P,className:h}),C)});w.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},w.displayName="SpeedDialAction";var S=w})(Yj);var Z8;function MT(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{SpeedDialContext:function(){return g},useSpeedDial:function(){return f},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return h}});var r=S(X),n=wn,o=qe,i=S(Xn),a=sm,l=S(IJ()),s=S(LJ()),d=S(Yj);function v(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function w(m){if(Array.isArray(m))return m}function S(m){return m&&m.__esModule?m:{default:m}}function b(m,_){var T=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(T!=null){var k=[],R=!0,E=!1,A,F;try{for(T=T.call(m);!(R=(A=T.next()).done)&&(k.push(A.value),!(_&&k.length===_));R=!0);}catch(V){E=!0,F=V}finally{try{!R&&T.return!=null&&T.return()}finally{if(E)throw F}}return k}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(m,_){return w(m)||b(m,_)||C(m,_)||P()}function C(m,_){if(m){if(typeof m=="string")return v(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return v(m,_)}}var g=r.default.createContext(null);function f(){var m=r.default.useContext(g);if(!m)throw new Error("useSpeedDial must be used within a .");return m}function c(m){var _=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,H=y(r.default.useState(!1),2),q=H[0],re=H[1];_=_??q,T=T??re,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),Y=(0,n.useFloatingNodeId)(),te=(0,n.useFloating)({open:_,nodeId:Y,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),ne=te.x,se=te.y,ve=te.strategy,ye=te.refs,ce=te.context,J=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),oe=J.getReferenceProps,ue=J.getFloatingProps,Se=r.default.useMemo(function(){return{x:ne,y:se,strategy:ve,refs:ye,open:_,context:ce,getReferenceProps:oe,getFloatingProps:ue,animation:W}},[ce,ue,oe,ye,ve,ne,se,_,W]);return r.default.createElement(g.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:Y},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var h=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Ex)),Ex}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(JR,e),t(tL,e),t(rL,e),t(nL,e),t(iL,e),t(aL,e),t(cL,e),t(dL,e),t(fL,e),t(d2,e),t(aj,e),t(lj,e),t(fj,e),t(hj,e),t(mj,e),t(yj,e),t(bj,e),t(_j,e),t(xj,e),t(Oj,e),t(kj,e),t(Ej,e),t(Mj,e),t(Nj,e),t(Ij,e),t(Lj,e),t(Fj,e),t(zj,e),t(Vj,e),t(Bj,e),t(b3,e),t(Uj,e),t(Kj,e),t(MT(),e),t(qe,e),t(RP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(QW);function DJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var RT={exports:{}},I2={},bw={},Pt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof sO<"u"?sO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Pt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Pt;class r{constructor(h=[1,0,0,1,0,0]){this.dirty=!1,this.m=h&&h.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(h){h.m[0]=this.m[0],h.m[1]=this.m[1],h.m[2]=this.m[2],h.m[3]=this.m[3],h.m[4]=this.m[4],h.m[5]=this.m[5]}point(h){const m=this.m;return{x:m[0]*h.x+m[2]*h.y+m[4],y:m[1]*h.x+m[3]*h.y+m[5]}}translate(h,m){return this.m[4]+=this.m[0]*h+this.m[2]*m,this.m[5]+=this.m[1]*h+this.m[3]*m,this}scale(h,m){return this.m[0]*=h,this.m[1]*=h,this.m[2]*=m,this.m[3]*=m,this}rotate(h){const m=Math.cos(h),_=Math.sin(h),T=this.m[0]*m+this.m[2]*_,k=this.m[1]*m+this.m[3]*_,R=this.m[0]*-_+this.m[2]*m,E=this.m[1]*-_+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(h,m){const _=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*h,R=this.m[3]+this.m[1]*h;return this.m[0]=_,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(h){const m=this.m[0]*h.m[0]+this.m[2]*h.m[1],_=this.m[1]*h.m[0]+this.m[3]*h.m[1],T=this.m[0]*h.m[2]+this.m[2]*h.m[3],k=this.m[1]*h.m[2]+this.m[3]*h.m[3],R=this.m[0]*h.m[4]+this.m[2]*h.m[5]+this.m[4],E=this.m[1]*h.m[4]+this.m[3]*h.m[5]+this.m[5];return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const h=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*h,_=-this.m[1]*h,T=-this.m[2]*h,k=this.m[0]*h,R=h*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=h*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const h=this.m[0],m=this.m[1],_=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=h*T-m*_,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(h!=0||m!=0){const F=Math.sqrt(h*h+m*m);A.rotation=m>0?Math.acos(h/F):-Math.acos(h/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(h*_+m*T)/E,A.skewY=0}else if(_!=0||T!=0){const F=Math.sqrt(_*_+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-_/F):-Math.acos(_/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(h*_+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",w="0",S="Konva warning: ",b="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let g=[];const f=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const h=c[0];return h==="#"||h==="."||h===h.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){g.push(c),g.length===1&&f(function(){const h=g;g=[],h.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,h){const m=e.Util.createImageElement();m.onload=function(){h(m)},m.src=c},_rgbToHex(c,h,m){return((1<<24)+(c<<16)+(h<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const h=parseInt(c,16);return{r:h>>16&255,g:h>>8&255,b:h&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=w+c;return d+c},getRGB(c){let h;return c in y?(h=y[c],{r:h[0],g:h[1],b:h[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(h=C.exec(c.replace(/ /g,"")),{r:parseInt(h[1],10),g:parseInt(h[2],10),b:parseInt(h[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const h=y[c.toLowerCase()];return h?{r:h[0],g:h[1],b:h[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const h=c.split(/ *, */).map(Number);return{r:h[0],g:h[1],b:h[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const h=c.split(/ *, */).map((m,_)=>m.slice(-1)==="%"?_===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:h[0],g:h[1],b:h[2],a:h[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[h,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),_=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=_+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,h){return!(h.x>c.x+c.width||h.x+h.widthc.y+c.height||h.y+h.height1?(R=m,E=_,A=(m-T)*(m-T)+(_-k)*(_-k)):(R=c+V*(m-c),E=h+V*(_-h),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,h,m){const _=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return h.forEach(function(k,R){if(!m&&R===h.length-1)return;const E=h[(R+1)%h.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bh.length){const R=h;h=c,c=R}for(let R=0;R{h.width=0,h.height=0})},drawRoundedRectPath(c,h,m,_){let T=0,k=0,R=0,E=0;typeof _=="number"?T=k=R=E=Math.min(_,h/2,m/2):(T=Math.min(_[0]||0,h/2,m/2),k=Math.min(_[1]||0,h/2,m/2),E=Math.min(_[2]||0,h/2,m/2),R=Math.min(_[3]||0,h/2,m/2)),c.moveTo(T,0),c.lineTo(h-k,0),c.arc(h-k,k,k,Math.PI*3/2,0,!1),c.lineTo(h,m-E),c.arc(h-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},kt={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=FJ;ht.alphaComponent=jJ;ht.getNumberValidator=zJ;ht.getNumberOrArrayOfNumbersValidator=VJ;ht.getNumberOrAutoValidator=BJ;ht.getStringValidator=UJ;ht.getStringOrGradientValidator=HJ;ht.getFunctionValidator=WJ;ht.getNumberArrayValidator=$J;ht.getBooleanValidator=GJ;ht.getComponentValidator=KJ;const _s=Pt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function FJ(e){return e>255?255:e<0?0:Math.round(e)}function jJ(e){return e>1?1:e<1e-4?1e-4:e}function zJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function VJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function BJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function GJ(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function KJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,w=t.Util._capitalize,S=n+w(a),b=o+w(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+w(g),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const w=this.attrs[a];return w===void 0?l:w},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),w=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[w]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(kt);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Xj=Lr,qJ=Pt;function YJ(e){const t=[],r=e.length,n=Xj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=XJ+d.join(J8)+QJ)):(i+=l.property,t||(i+=ree+l.val)),i+=eee;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=oee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,w=this._context;v.length===3?w.drawImage(t,r,n):v.length===5?w.drawImage(t,r,n,o,i):v.length===9&&w.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=eE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=YJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(F2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,um=kt,Y0=za,Gs=Pt,qi=F2,Xr=ht,Yb="absoluteOpacity",rb="allEventListeners",$l="absoluteTransform",tE="absoluteScale",Dc="canvas",fee="Change",pee="children",hee="konva",s4="listening",rE="mouseenter",nE="mouseleave",oE="set",iE="Shape",Xb=" ",aE="stage",Xs="transform",gee="Stage",u4="visible",vee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Xb);let mee=1,wt=class c4{constructor(t){this._id=mee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Xb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,w=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,b=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+b,l-=d,s-=d;const P=new Y0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new Y0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new Y0.HitCanvas({pixelRatio:w,width:o,height:i}),g=P.getContext(),f=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),g.save(),f.save(),g.translate(-l,-s),f.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Yb),this._clearSelfAndDescendantCache(tE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,g.restore(),f.restore(),v&&(g.save(),g.beginPath(),g.rect(0,0,o,i),g.closePath(),g.setAttr("strokeStyle","red"),g.setAttr("lineWidth",5),g.stroke(),g.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==pee&&(n=oE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(s4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(u4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==gee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Yb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=c4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Nx.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Nx.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,w=n===this;if(v){a.save();const b=this.getAbsoluteTransform(n);let P=b.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),g=this.clipY();a.rect(C||0,g||0,l,s)}a.clip.apply(a,y),P=b.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!w&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(b){b[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(b){if(!b.visible())return;const P=b.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const w=this.find("Shape");let S=!1;for(let b=0;bce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",ne=ce=>{const J=te(ce);if(J==="pointer")return o.Konva.pointerEventsEnabled&&Y.pointer;if(J==="touch")return Y.touch;if(J==="mouse")return Y.mouse};function se(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const ve="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class ye extends n.Container{constructor(J){super(se(J)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{se(this.attrs)}),this._checkVisibility()}_validateAdd(J){const oe=J.getType()==="Layer",ue=J.getType()==="FastLayer";oe||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const J=this.visible()?"":"none";this.content.style.display=J}setContainer(J){if(typeof J===v){if(J.charAt(0)==="."){const ue=J.slice(1);J=document.getElementsByClassName(ue)[0]}else{var oe;J.charAt(0)!=="#"?oe=J:oe=J.slice(1),J=document.getElementById(oe)}if(!J)throw"Can not find container in document with id "+oe}return this._setAttr("container",J),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),J.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const J=this.children,oe=J.length;for(let ue=0;ue-1&&e.stages.splice(oe,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const J=this._pointerPositions[0]||this._changedPointerPositions[0];return J?{x:J.x,y:J.y}:(t.Util.warn(ve),null)}_getPointerById(J){return this._pointerPositions.find(oe=>oe.id===J)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(J){J=J||{},J.x=J.x||0,J.y=J.y||0,J.width=J.width||this.width(),J.height=J.height||this.height();const oe=new i.SceneCanvas({width:J.width,height:J.height,pixelRatio:J.pixelRatio||1}),ue=oe.getContext()._context,Se=this.children;return(J.x||J.y)&&ue.translate(-1*J.x,-1*J.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Re=Ce._toKonvaCanvas(J);ue.drawImage(Re._canvas,J.x,J.y,Re.getWidth()/Re.getPixelRatio(),Re.getHeight()/Re.getPixelRatio())}),oe}getIntersection(J){if(!J)return null;const oe=this.children,ue=oe.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Re=oe[Ce].getIntersection(J);if(Re)return Re}return null}_resizeDOM(){const J=this.width(),oe=this.height();this.content&&(this.content.style.width=J+w,this.content.style.height=oe+w),this.bufferCanvas.setSize(J,oe),this.bufferHitCanvas.setSize(J,oe),this.children.forEach(ue=>{ue.setSize({width:J,height:oe}),ue.draw()})}add(J,...oe){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),J.setSize({width:this.width(),height:this.height()}),J.draw(),o.Konva.isBrowser&&this.content.appendChild(J.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(J){return s.hasPointerCapture(J,this)}setPointerCapture(J){s.setPointerCapture(J,this)}releaseCapture(J){s.releaseCapture(J,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([J,oe])=>{this.content.addEventListener(J,ue=>{this[oe](ue)},{passive:!1})})}_pointerenter(J){this.setPointersPositions(J);const oe=ne(J.type);oe&&this._fire(oe.pointerenter,{evt:J,target:this,currentTarget:this})}_pointerover(J){this.setPointersPositions(J);const oe=ne(J.type);oe&&this._fire(oe.pointerover,{evt:J,target:this,currentTarget:this})}_getTargetShape(J){let oe=this[J+"targetShape"];return oe&&!oe.getStage()&&(oe=null),oe}_pointerleave(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(oe.pointerout,{evt:J}),Se._fireAndBubble(oe.pointerleave,{evt:J}),this._fire(oe.pointerleave,{evt:J,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(oe.pointerleave,{evt:J,target:this,currentTarget:this}),this._fire(oe.pointerout,{evt:J,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Re=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Re||!Re.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Re.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Re,Re._fireAndBubble(oe.pointerdown,{evt:J,pointerId:Ce.id}),Se=!0;const xe=J.type.indexOf("touch")>=0;Re.preventDefault()&&J.cancelable&&xe&&J.preventDefault()}),Se||this._fire(oe.pointerdown,{evt:J,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(J){const oe=ne(J.type),ue=te(J.type);if(!oe||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&J.cancelable&&J.preventDefault(),this.setPointersPositions(J),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Re=!1;const xe=this._getTargetShape(ue);this._changedPointerPositions.forEach(Te=>{const Oe=s.getCapturedShape(Te.id)||this.getIntersection(Te),je=Te.id,Ye={evt:J,pointerId:je},it=xe!==Oe;if(it&&xe&&(xe._fireAndBubble(oe.pointerout,{...Ye},Oe),xe._fireAndBubble(oe.pointerleave,{...Ye},Oe)),Oe){if(Ce[Oe._id])return;Ce[Oe._id]=!0}Oe&&Oe.isListening()?(Re=!0,it&&(Oe._fireAndBubble(oe.pointerover,{...Ye},xe),Oe._fireAndBubble(oe.pointerenter,{...Ye},xe),this[ue+"targetShape"]=Oe),Oe._fireAndBubble(oe.pointermove,{...Ye})):xe&&(this._fire(oe.pointerover,{evt:J,target:this,currentTarget:this,pointerId:je}),this[ue+"targetShape"]=null)}),Re||this._fire(oe.pointermove,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Re={};let xe=!1;this._changedPointerPositions.forEach(Te=>{const Oe=s.getCapturedShape(Te.id)||this.getIntersection(Te);if(Oe){if(Oe.releaseCapture(Te.id),Re[Oe._id])return;Re[Oe._id]=!0}const je=Te.id,Ye={evt:J,pointerId:je};let it=!1;o.Konva["_"+ue+"InDblClickWindow"]?(it=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),Oe&&Oe.isListening()?(xe=!0,this[ue+"ClickEndShape"]=Oe,Oe._fireAndBubble(oe.pointerup,{...Ye}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===Oe&&(Oe._fireAndBubble(oe.pointerclick,{...Ye}),it&&Ce&&Ce===Oe&&Oe._fireAndBubble(oe.pointerdblclick,{...Ye}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(oe.pointerclick,{evt:J,target:this,currentTarget:this,pointerId:je}),it&&this._fire(oe.pointerdblclick,{evt:J,target:this,currentTarget:this,pointerId:je}))}),xe||this._fire(oe.pointerup,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,J.cancelable&&ue!=="touch"&&ue!=="pointer"&&J.preventDefault()}_contextmenu(J){this.setPointersPositions(J);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(F,{evt:J}):this._fire(F,{evt:J,target:this,currentTarget:this})}_wheel(J){this.setPointersPositions(J);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(re,{evt:J}):this._fire(re,{evt:J,target:this,currentTarget:this})}_pointercancel(J){this.setPointersPositions(J);const oe=s.getCapturedShape(J.pointerId)||this.getIntersection(this.getPointerPosition());oe&&oe._fireAndBubble(m,s.createEvent(J)),s.releaseCapture(J.pointerId)}_lostpointercapture(J){s.releaseCapture(J.pointerId)}setPointersPositions(J){const oe=this._getContentPosition();let ue=null,Se=null;J=J||window.event,J.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(J.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})}),Array.prototype.forEach.call(J.changedTouches||J.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})})):(ue=(J.clientX-oe.left)/oe.scaleX,Se=(J.clientY-oe.top)/oe.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}])}_setPointerPosition(J){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(J)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const J=this.content.getBoundingClientRect();return{top:J.top,left:J.left,scaleX:J.width/this.content.clientWidth||1,scaleY:J.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const J=this.container();if(!J)throw"Stage has no container. A container is required.";J.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),J.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(J){J.batchDraw()}),this}}e.Stage=ye,ye.prototype.nodeType=d,(0,l._registerNode)(ye),r.Factory.addGetterSetter(ye,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(Jj);var cm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Pt,r=Lr,n=kt,o=Cr,i=ht,a=Pt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",w="linearGradient",S="radialGradient";let b;function P(){return b||(b=r.Util.createCanvasElement().getContext("2d"),b)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function g(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function f(R){R.stroke()}function c(){this._clearCache(s)}function h(){this._clearCache(d)}function m(){this._clearCache(v)}function _(){this._clearCache(w)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(w,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let H=0;Hthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),H=this.getAbsoluteOpacity()!==1;if(V&&B&&H)return!0;const q=this.hasShadow(),re=this.shadowForStrokeEnabled();return!!(V&&B&&q&&re)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,H=this.getSelfRect(),re=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=H.width+re,W=H.height+re,Y=!E.skipShadow&&this.hasShadow(),te=Y?this.shadowOffsetX():0,ne=Y?this.shadowOffsetY():0,se=Q+Math.abs(te),ve=W+Math.abs(ne),ye=Y&&this.shadowBlur()||0,ce=se+ye*2,J=ve+ye*2,oe={width:ce,height:J,x:-(re/2+ye)+Math.min(te,0)+H.x,y:-(re/2+ye)+Math.min(ne,0)+H.y};return V?oe:this._transformedRect(oe,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),H=B.getContext(),q=this._getCanvasCache(),re=this.getSceneFunc(),Q=this.hasShadow(),W,Y;const te=B.isCache,ne=A===this;if(!this.isVisible()&&!ne)return this;if(q){H.save();const ve=this.getAbsoluteTransform(A).getMatrix();return H.transform(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5]),this._drawCachedSceneCanvas(H),H.restore(),this}if(!re)return this;if(H.save(),this._useBufferCanvas()&&!te){W=this.getStage();const ve=F||W.bufferCanvas;Y=ve.getContext(),Y.clear(),Y.save(),Y._applyLineJoin(this);var se=this.getAbsoluteTransform(A).getMatrix();Y.transform(se[0],se[1],se[2],se[3],se[4],se[5]),re.call(this,Y,this),Y.restore();const ye=ve.pixelRatio;Q&&H._applyShadow(this),H._applyOpacity(this),H._applyGlobalCompositeOperation(this),H.drawImage(ve._canvas,0,0,ve.width/ye,ve.height/ye)}else{if(H._applyLineJoin(this),!ne){var se=this.getAbsoluteTransform(A).getMatrix();H.transform(se[0],se[1],se[2],se[3],se[4],se[5]),H._applyOpacity(this),H._applyGlobalCompositeOperation(this)}Q&&H._applyShadow(this),re.call(this,H,this)}return H.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,H=B&&B.getContext(),q=this.hitFunc()||this.sceneFunc(),re=this._getCanvasCache(),Q=re&&re.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){H.save();const Y=this.getAbsoluteTransform(A).getMatrix();return H.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5]),this._drawCachedHitCanvas(H),H.restore(),this}if(!q)return this;if(H.save(),H._applyLineJoin(this),!(this===A)){const Y=this.getAbsoluteTransform(A).getMatrix();H.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5])}return q.call(this,H,this),H.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),H=V.getWidth(),q=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,H,q);try{const re=B.getImageData(0,0,H,q),Q=re.data,W=Q.length,Y=r.Util._hexToRgb(this.colorKey);for(let te=0;teE?(Q[te]=Y.r,Q[te+1]=Y.g,Q[te+2]=Y.b,Q[te+3]=255):Q[te+3]=0;B.putImageData(re,0,0)}catch(re){r.Util.error("Unable to draw hit graph from cached scene canvas. "+re.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=g,k.prototype._strokeFuncHit=f,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",h),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",_),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(cm,"__esModule",{value:!0});cm.Layer=void 0;const Hl=Lr,Ax=Ed,If=Cr,AT=kt,lE=za,xee=ht,See=_n,Cee=Pt,Pee="#",Tee="beforeDraw",Oee="draw",rz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],kee=rz.length;let xh=class extends Ax.Container{constructor(t){super(t),this.canvas=new lE.SceneCanvas,this.hitCanvas=new lE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Tee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Ax.Container.prototype.drawScene.call(this,o,r),this._fire(Oee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Ax.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};cm.Layer=xh;xh.prototype.nodeType="Layer";(0,Cee._registerNode)(xh);AT.Factory.addGetterSetter(xh,"imageSmoothingEnabled",!0);AT.Factory.addGetterSetter(xh,"clearBeforeDraw",!0);AT.Factory.addGetterSetter(xh,"hitGraphEnabled",!0,(0,xee.getBooleanValidator)());var z2={};Object.defineProperty(z2,"__esModule",{value:!0});z2.FastLayer=void 0;const Eee=Lr,Mee=cm,Ree=Pt;class IT extends Mee.Layer{constructor(t){super(t),this.listening(!1),Eee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}z2.FastLayer=IT;IT.prototype.nodeType="FastLayer";(0,Ree._registerNode)(IT);var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.Group=void 0;const Nee=Lr,Aee=Ed,Iee=Pt;let LT=class extends Aee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Nee.Util.throw("You may only add groups and shapes to groups.")}};Sh.Group=LT;LT.prototype.nodeType="Group";(0,Iee._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Animation=void 0;const Ix=Pt,sE=Lr,Lx=(function(){return Ix.glob.performance&&Ix.glob.performance.now?function(){return Ix.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Lx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,g=C._id,f=P.easing||e.Easings.Linear,c=!!P.yoyo;let h,m;typeof P.duration>"u"?h=.3:P.duration===0?h=.001:h=P.duration,this.node=C,this._id=v++;const _=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);_||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},_),this.tween=new w(m,function(T){y._tweenFunc(T)},f,0,1,h*1e3,c),this._addListeners(),S.attrs[g]||(S.attrs[g]={}),S.attrs[g][this._id]||(S.attrs[g][this._id]={}),S.tweens[g]||(S.tweens[g]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,g=C._id;let f,c,h,m,_;const T=S.tweens[g][P];T&&delete S.attrs[g][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(f=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(h=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const g in C)delete S.tweens[P][g];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(b){const P=b.onFinish;b.node=this,b.onFinish=function(){this.destroy(),P&&P()},new S(b).play()},e.Easings={BackEaseIn(b,P,y,C){return y*(b/=C)*b*((1.70158+1)*b-1.70158)+P},BackEaseOut(b,P,y,C){return y*((b=b/C-1)*b*((1.70158+1)*b+1.70158)+1)+P},BackEaseInOut(b,P,y,C){let g=1.70158;return(b/=C/2)<1?y/2*(b*b*(((g*=1.525)+1)*b-g))+P:y/2*((b-=2)*b*(((g*=1.525)+1)*b+g)+2)+P},ElasticEaseIn(b,P,y,C,g,f){let c=0;return b===0?P:(b/=C)===1?P+y:(f||(f=C*.3),!g||g0?t:r),v=a*r,w=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:w,width:v-d,height:S-w}}}V2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Dee._registerNode)(Ss);B2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"angle",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,U2.getBooleanValidator)());var H2={},dm={};Object.defineProperty(dm,"__esModule",{value:!0});dm.Line=void 0;const W2=kt,Fee=Pt,jee=_n,oz=ht;function d4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),w=r-d*(o-e),S=n-d*(i-t),b=r+v*(o-e),P=n+v*(i-t);return[w,S,b,P]}function cE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let b=0;b<20;b++)v=S*e.tValues[20][b]+S,d+=e.cValues[20][b]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],w=2*a[1]-2*a[0],S=2*l[1]-2*l[0],b=4*(d*d+v*v),P=4*(d*w+v*S),y=w*w+S*S;if(b===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*b),g=y/b,f=s+C,c=g-C*C,h=f*f+c>0?Math.sqrt(f*f+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,_=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((f+h)/(C+m))):0;return Math.sqrt(b)/2*(f*h-C*m+_)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),w=d*d+v*v;return Math.sqrt(w)}const o=(a,l,s)=>{const d=s.length-1;let v,w;if(d===0)return 0;if(a===0){w=0;for(let S=0;S<=d;S++)w+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return w}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,w=(a-s(v))/l,S=0;for(;d>.001;){const b=s(v+w),P=Math.abs(a-b)/l;if(P500)break}return v};e.t2length=i})(iz);Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Path=void 0;const zee=kt,Vee=_n,Bee=Pt,Lf=iz;class hn extends Vee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,b=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(b,P),t.arc(0,0,S,s,s+d,1-w),t.scale(1/b,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],w=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-w)w;b-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],b,0);t.push(P.x,P.y)}else for(let b=d+S;br[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],w=l[3],S=l[4],b=l[5],P=l[6];return S+=b*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,w,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,b,P,y,C,g,f,c,h,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var _=E.shift(),T=E.shift();if(s+=_,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let H=a.length-2;H>=0;H--)if(a[H].command==="M"){s=a[H].points[0]+_,d=a[H].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":b=s,P=d,S=a[a.length-1],S.command==="C"&&(b=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(b,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":b=s,P=d,S=a[a.length-1],S.command==="C"&&(b=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(b,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":b=s,P=d,S=a[a.length-1],S.command==="Q"&&(b=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(b,P,s,d);break;case"t":b=s,P=d,S=a[a.length-1],S.command==="Q"&&(b=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(b,P,s,d);break;case"A":y=E.shift(),C=E.shift(),g=E.shift(),f=E.shift(),c=E.shift(),h=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(h,m,s,d,f,c,y,C,g);break;case"a":y=E.shift(),C=E.shift(),g=E.shift(),f=E.shift(),c=E.shift(),h=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(h,m,s,d,f,c,y,C,g);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],w=o[5],S=o[4]+w,b=Math.PI/180;if(Math.abs(v-S)S;s-=b)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+b;s1&&(l*=Math.sqrt(b),s*=Math.sqrt(b));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(w*w))/(l*l*(S*S)+s*s*(w*w)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*w/l,g=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,f=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},h=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[g,f,l,s,_,R,v,a]}}Ph.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Bee._registerNode)(hn);zee.Factory.addGetterSetter(hn,"data");Object.defineProperty(H2,"__esModule",{value:!0});H2.Arrow=void 0;const $2=kt,Uee=dm,az=ht,Hee=Pt,dE=Ph;class Rd extends Uee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],b=dE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=dE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/b),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,w=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,w/2),t.lineTo(-a,-w/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,w/2),t.lineTo(-a,-w/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}H2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Hee._registerNode)(Rd);$2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,az.getNumberValidator)());$2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,az.getNumberValidator)());$2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);$2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var G2={};Object.defineProperty(G2,"__esModule",{value:!0});G2.Circle=void 0;const Wee=kt,$ee=_n,Gee=ht,Kee=Pt;let Th=class extends $ee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};G2.Circle=Th;Th.prototype._centroid=!0;Th.prototype.className="Circle";Th.prototype._attrsAffectingSize=["radius"];(0,Kee._registerNode)(Th);Wee.Factory.addGetterSetter(Th,"radius",0,(0,Gee.getNumberValidator)());var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.Ellipse=void 0;const DT=kt,qee=_n,lz=ht,Yee=Pt;class Gu extends qee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}K2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Yee._registerNode)(Gu);DT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);DT.Factory.addGetterSetter(Gu,"radiusX",0,(0,lz.getNumberValidator)());DT.Factory.addGetterSetter(Gu,"radiusY",0,(0,lz.getNumberValidator)());var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Image=void 0;const Dx=Lr,Nd=kt,Xee=_n,Qee=Pt,fm=ht;let xl=class sz extends Xee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?Dx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?Dx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=Dx.Util.createImageElement();o.onload=function(){const i=new sz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};q2.Image=xl;xl.prototype.className="Image";(0,Qee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,fm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,fm.getNumberValidator)());var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.Tag=Jp.Label=void 0;const Y2=kt,Zee=_n,Jee=Sh,FT=ht,uz=Pt,cz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],ete="Change.konva",tte="none",f4="up",p4="right",h4="down",g4="left",rte=cz.length;class jT extends Jee.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Q2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,ute._registerNode)(Id);dz.Factory.addGetterSetter(Id,"radius",0,(0,fz.getNumberValidator)());dz.Factory.addGetterSetter(Id,"sides",0,(0,fz.getNumberValidator)());var Z2={};Object.defineProperty(Z2,"__esModule",{value:!0});Z2.Ring=void 0;const pz=kt,cte=_n,hz=ht,dte=Pt,fE=Math.PI*2;class Ld extends cte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,fE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),fE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}Z2.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,dte._registerNode)(Ld);pz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,hz.getNumberValidator)());pz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,hz.getNumberValidator)());var J2={};Object.defineProperty(J2,"__esModule",{value:!0});J2.Sprite=void 0;const Dd=kt,fte=_n,pte=Ch,gz=ht,hte=Pt;class Sl extends fte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new pte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],w=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),w)if(a){const S=a[r],b=n*2;t.drawImage(w,l,s,d,v,S[b+0],S[b+1],d,v)}else t.drawImage(w,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",bte="center",vz="inherit",X0="justify",wte="Change.konva",_te="2d",pE="-",mz="left",xte="text",Ste="Text",Cte="top",Pte="bottom",hE="middle",yz="normal",Tte="px ",nb=" ",Ote="right",gE="rtl",kte="word",Ete="char",vE="none",jx="…",bz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Mte=bz.length;function Rte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ob;function zx(){return ob||(ob=v4.Util.createCanvasElement().getContext(_te),ob)}function Nte(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Ate(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Ite(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends mte.Shape{constructor(t){super(Ite(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(f+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=v4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(xte,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return v4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,w,S;let b=zx(),P=this.fontSize(),y;b.save(),b.font=this._getContextFont(),y=b.measureText(t),b.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(w=y.hangingBaseline)!==null&&w!==void 0?w:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+nb+this.fontVariant()+nb+(this.fontSize()+Tte)+Rte(this.fontFamily())}_addTextLine(t){this.align()===X0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return zx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` -`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,w=a-d*2,S=0,b=this.wrap(),P=b!==vE,y=b!==Ete&&P,C=this.ellipsis();this.textArr=[],zx().font=this._getContextFont();const g=C?this._getTextWidth(jx):0;for(let f=0,c=t.length;fv)for(;h.length>0;){let _=0,T=Bc(h).length,k="",R=0;for(;_>>1,A=Bc(h),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+g;V<=v?(_=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(h),V=Bc(k),B=F[V.length],H=B===nb||B===pE;let q;if(H&&R<=v)q=V.length;else{const re=V.lastIndexOf(nb),Q=V.lastIndexOf(pE);q=Math.max(re,Q)+1}q>0&&(_=q,k=F.slice(0,_).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(h=Bc(h).slice(_).join("").trimLeft(),h.length>0&&(m=this._getTextWidth(h),m<=v)){this._addTextLine(h),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(h),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&fw)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==vE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+jx)r?null:Q0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Q0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Cz}`).join(" "),bE="nodesRect",Ute=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Hte={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Wte="ontouchstart"in Pa.Konva._global;function $te(e,t,r){if(e==="rotater")return r;t+=er.Util.degToRad(Hte[e]||0);const n=(er.Util.radToDeg(t)%360+360)%360;return er.Util._inRange(n,315+22.5,360)||er.Util._inRange(n,0,22.5)?"ns-resize":er.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":er.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":er.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":er.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":er.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":er.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":er.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(er.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const _w=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Gte(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Pz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function Kte(e,t){const r=Gte(e);return Pz(e,t,r)}function qte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(er.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Ute.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(bE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(bE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Pz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),w=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();w.forEach(function(b){const P=S.point(b);r.push(P)})});const n=new er.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),_w.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new zte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Wte?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=$te(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new jte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*er.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},m4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let _=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(_-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+_,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=qte(this.rotationSnaps(),k,R)-m.rotation,F=Kte(m,A);this._fitNodesInto(F,t);return}const w=this.shiftBehavior();let S;w==="inverted"?S=this.keepRatio()&&!t.shiftKey:w==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var g=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var b=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(b.x-i.x(),2)+Math.pow(b.y-i.y(),2));var P=this.findOne(".top-left").x()>b.x?-1:1,y=this.findOne(".top-left").y()>b.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(b.x-r),this.findOne(".top-left").y(b.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var b=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-b.x,2)+Math.pow(b.y-i.y(),2));var P=this.findOne(".top-right").x()b.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(b.x+r),this.findOne(".top-right").y(b.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var b=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(b.x-i.x(),2)+Math.pow(i.y()-b.y,2));var P=b.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(er.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(er.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new er.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:er.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new er.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new er.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const w=s.multiply(l.invert());this._nodes.forEach(S=>{var b;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new er.Transform;C.multiply(P.copy().invert()).multiply(w).multiply(P).multiply(y);const g=C.decompose();S.setAttrs(g),(b=S.getLayer())===null||b===void 0||b.batchDraw()}),this.rotation(er.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(er.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(w=>{w.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*er.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(w=>{v(w)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),yE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return mE.Node.prototype.toObject.call(this)}clone(t){return mE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}r5.Transformer=Vt;Vt.isTransforming=()=>m4>0;function Yte(e){return e instanceof Array||er.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){_w.indexOf(t)===-1&&er.Util.warn("Unknown anchor name: "+t+". Available names are: "+_w.join(", "))}),e||[]}Vt.prototype.className="Transformer";(0,Vte._registerNode)(Vt);Kt.Factory.addGetterSetter(Vt,"enabledAnchors",_w,Yte);Kt.Factory.addGetterSetter(Vt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());Kt.Factory.addGetterSetter(Vt,"resizeEnabled",!0);Kt.Factory.addGetterSetter(Vt,"anchorSize",10,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"rotateEnabled",!0);Kt.Factory.addGetterSetter(Vt,"rotateLineVisible",!0);Kt.Factory.addGetterSetter(Vt,"rotationSnaps",[]);Kt.Factory.addGetterSetter(Vt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"rotateAnchorCursor","crosshair");Kt.Factory.addGetterSetter(Vt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"borderEnabled",!0);Kt.Factory.addGetterSetter(Vt,"anchorStroke","rgb(0, 161, 255)");Kt.Factory.addGetterSetter(Vt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"anchorFill","white");Kt.Factory.addGetterSetter(Vt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"borderStroke","rgb(0, 161, 255)");Kt.Factory.addGetterSetter(Vt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"borderDash");Kt.Factory.addGetterSetter(Vt,"keepRatio",!0);Kt.Factory.addGetterSetter(Vt,"shiftBehavior","default");Kt.Factory.addGetterSetter(Vt,"centeredScaling",!1);Kt.Factory.addGetterSetter(Vt,"ignoreStroke",!1);Kt.Factory.addGetterSetter(Vt,"padding",0,(0,Yu.getNumberValidator)());Kt.Factory.addGetterSetter(Vt,"nodes");Kt.Factory.addGetterSetter(Vt,"node");Kt.Factory.addGetterSetter(Vt,"boundBoxFunc");Kt.Factory.addGetterSetter(Vt,"anchorDragBoundFunc");Kt.Factory.addGetterSetter(Vt,"anchorStyleFunc");Kt.Factory.addGetterSetter(Vt,"shouldOverdrawWholeArea",!1);Kt.Factory.addGetterSetter(Vt,"useSingleNodeRotation",!0);Kt.Factory.backCompat(Vt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var n5={};Object.defineProperty(n5,"__esModule",{value:!0});n5.Wedge=void 0;const o5=kt,Xte=_n,Qte=Pt,Tz=ht,Zte=Pt;class Cs extends Xte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Qte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}n5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Zte._registerNode)(Cs);o5.Factory.addGetterSetter(Cs,"radius",0,(0,Tz.getNumberValidator)());o5.Factory.addGetterSetter(Cs,"angle",0,(0,Tz.getNumberValidator)());o5.Factory.addGetterSetter(Cs,"clockwise",!1);o5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var i5={};Object.defineProperty(i5,"__esModule",{value:!0});i5.Blur=void 0;const wE=kt,Jte=Cr,ere=ht;function _E(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const tre=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],rre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function nre(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,w,S,b,P,y,C,g,f,c,h,m,_,T,k,R,E,A,F;const V=t+t+1,B=n-1,H=o-1,q=t+1,re=q*(q+1)/2,Q=new _E,W=tre[t],Y=rre[t];let te=null,ne=Q,se=null,ve=null;for(l=1;l>Y,A!==0?(A=255/A,r[v]=(S*W>>Y)*A,r[v+1]=(b*W>>Y)*A,r[v+2]=(P*W>>Y)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,b-=g,P-=f,y-=c,C-=se.r,g-=se.g,f-=se.b,c-=se.a,s=w+((s=i+t+1)>Y,A>0?(A=255/A,r[s]=(S*W>>Y)*A,r[s+1]=(b*W>>Y)*A,r[s+2]=(P*W>>Y)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,b-=g,P-=f,y-=c,C-=se.r,g-=se.g,f-=se.b,c-=se.a,s=i+((s=a+q)0&&nre(t,r)};i5.Blur=ore;wE.Factory.addGetterSetter(Jte.Node,"blurRadius",0,(0,ere.getNumberValidator)(),wE.Factory.afterSetFilter);var a5={};Object.defineProperty(a5,"__esModule",{value:!0});a5.Brighten=void 0;const xE=kt,ire=Cr,are=ht,lre=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};l5.Contrast=cre;SE.Factory.addGetterSetter(sre.Node,"contrast",0,(0,ure.getNumberValidator)(),SE.Factory.afterSetFilter);var s5={};Object.defineProperty(s5,"__esModule",{value:!0});s5.Emboss=void 0;const Lu=kt,u5=Cr,dre=Lr,Oz=ht,fre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,w=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:dre.Util.error("Unknown emboss direction: "+n)}do{const S=(w-1)*s;let b=d;w+b<1&&(b=0),w+b>l&&(b=0);const P=(w-1+b)*a*4;let y=a;do{const C=S+(y-1)*4;let g=v;y+g<1&&(g=0),y+g>a&&(g=0);const f=P+(y-1+g)*4,c=i[C]-i[f],h=i[C+1]-i[f+1],m=i[C+2]-i[f+2];let _=c;const T=_>0?_:-_,k=h>0?h:-h,R=m>0?m:-m;if(k>T&&(_=h),R>T&&(_=m),_*=t,o){const E=i[C]+_,A=i[C+1]+_,F=i[C+2]+_;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-_;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--w)};s5.Emboss=fre;Lu.Factory.addGetterSetter(u5.Node,"embossStrength",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossWhiteLevel",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var c5={};Object.defineProperty(c5,"__esModule",{value:!0});c5.Enhance=void 0;const CE=kt,pre=Cr,hre=ht;function Ux(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const gre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,w;const S=this.enhance();if(S===0)return;for(let _=0;_o&&(o=i),s=t[_+1],sl&&(l=s),w=t[_+2],wv&&(v=w);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let b,P,y,C,g,f,c,h,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),g=l+S*(255-l),f=a-S*(a-0),h=v+S*(255-v),m=d-S*(d-0)):(b=(o+n)*.5,P=o+S*(o-b),y=n+S*(n-b),C=(l+a)*.5,g=l+S*(l-C),f=a+S*(a-C),c=(v+d)*.5,h=v+S*(v-c),m=d+S*(d-c));for(let _=0;_d?S:d;const b=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const b=a,P=i,y=0;let C,g;for(v=0;vt&&(h=c,m=0,_=-1),o=0;o=0&&b=0&&P=0&&b=0&&P=1020?255:0}return a}function Mre(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&b=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=h[a+0],s+=h[a+1],d+=h[a+2],v+=h[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=b;o=r))for(i=y;i=n||(a=(r*i+o)*4,h[a+0]=l,h[a+1]=s,h[a+2]=d,h[a+3]=v)}};y5.Pixelate=jre;kE.Factory.addGetterSetter(Dre.Node,"pixelSize",8,(0,Fre.getNumberValidator)(),kE.Factory.afterSetFilter);var b5={};Object.defineProperty(b5,"__esModule",{value:!0});b5.Posterize=void 0;const EE=kt,zre=Cr,Vre=ht,Bre=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Sw.Factory.addGetterSetter($T.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Sw.Factory.addGetterSetter($T.Node,"blue",0,Ure.RGBComponent,Sw.Factory.afterSetFilter);var _5={};Object.defineProperty(_5,"__esModule",{value:!0});_5.RGBA=void 0;const Mv=kt,x5=Cr,Wre=ht,$re=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(x5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(x5.Node,"blue",0,Wre.RGBComponent,Mv.Factory.afterSetFilter);Mv.Factory.addGetterSetter(x5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var S5={};Object.defineProperty(S5,"__esModule",{value:!0});S5.Sepia=void 0;const Gre=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),w>127&&(w=255-w),t[s]=d,t[s+1]=v,t[s+2]=w}while(--l)}while(--i)};C5.Solarize=Kre;var P5={};Object.defineProperty(P5,"__esModule",{value:!0});P5.Threshold=void 0;const ME=kt,qre=Cr,Yre=ht,Xre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.variant,m=h.color,b=h.shadow,T=h.blurred,k=h.fullWidth,R=h.className,E=h.children,A=P(h,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,H=F.styles,Y=H.base,re=H.variants;p=p??V.variant,m=m??V.color,b=b??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(Y.navbar.initial),(Q={},w(Q,(0,l.default)(Y.navbar.shadow),b),w(Q,(0,l.default)(Y.navbar.blurred),T&&m==="white"),w(Q,(0,l.default)(Y.navbar.fullWidth),k),Q)),X=(0,o.default)((0,l.default)(re[(0,a.default)(B.variants,p,"filled")][(0,a.default)(B.colors,m,"white")])),te=(0,i.twMerge)((0,o.default)(W,X),R);return r.default.createElement("nav",S({},A,{ref:c,className:te}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var g=Object.assign(C,{MobileNav:d.MobileNav})})(dj);var pj={},A2={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return w},propTypesInteractive:function(){return S},propTypesClassName:function(){return _},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,w=r.default.node,S=r.default.bool,_=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(q),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(A2);var hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{PopoverHandler:function(){return _},default:function(){return P}});var r=l(q),n=wn,o=A2,i=bh;function a(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.children,h=w(y,["children"]),c=(0,o.usePopover)(),p=c.getReferenceProps,m=c.reference,b=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(g,s({},p(v(s({},h),{ref:b}))))});_.propTypes={children:i.propTypesChildren},_.displayName="MaterialTailwind.PopoverHandler";var P=_})(hj);var gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,b){for(var T in b)Object.defineProperty(m,T,{enumerable:!0,get:b[T]})}t(e,{PopoverContent:function(){return c},default:function(){return p}});var r=_(q),n=wn,o=An,i=_(pt),a=Je,l=_(et),s=Xe,d=A2,v=bh;function w(m,b,T){return b in m?Object.defineProperty(m,b,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[b]=T,m}function S(){return S=Object.assign||function(m){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function h(m,b){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,b){var T=m.children,k=m.className,R=g(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,H=V.strategy,Y=V.x,re=V.y,Q=V.context,W=V.floating,X=V.getFloatingProps,te=V.appliedAnimation,ne=V.labelId,se=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var ve=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),we=(0,n.useMergeRefs)([b,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},X(C(P({},R),{ref:we,className:ve,style:{position:H,top:re??"",left:Y??""},"aria-labelledby":ne,"aria-describedby":se})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:te}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var p=c})(gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{Popover:function(){return h},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=_(q),n=_(ot),o=wn,i=_(Xn),a=Xe,l=A2,s=bh,d=hj,v=gj;function w(p,m){(m==null||m>p.length)&&(m=p.length);for(var b=0,T=new Array(m);b=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.color,m=g.size,b=g.value,T=g.label,k=g.className,R=g.barProps,E=_(g,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,H=B.base,Y=B.variants,re=B.sizes;c=c??F.variant,p=p??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(Y[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,p,"gray")]),W=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].container.initial),X=(0,o.default)((0,l.default)(H.container.initial),W),te=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].container.withLabel),ne=(0,o.default)((0,l.default)(H.container.withLabel),te),se=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].bar),ve=(0,o.default)((0,l.default)(H.bar),se),we=(0,i.twMerge)((0,o.default)(X,v({},ne,T)),k),ce=(0,i.twMerge)((0,o.default)(ve,Q),R==null?void 0:R.className);return r.default.createElement("div",w({},E,{ref:h,className:we}),r.default.createElement("div",w({},R,{className:ce,style:{width:"".concat(b,"%")}}),T&&"".concat(b,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(vj);var mj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Radio:function(){return C},default:function(){return g}});var r=_(q),n=_(ot),o=_(dh),i=_(pt),a=Je,l=_(Sr),s=_(et),d=Xe,v=Sd;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.color,m=h.label,b=h.icon,T=h.ripple,k=h.className,R=h.disabled,E=h.containerProps,A=h.labelProps,F=h.iconProps,V=h.inputRef,B=P(h,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().radio,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.colors,te=r.default.useId();p=p??Y.color,m=m??Y.label,b=b??Y.icon,T=T??Y.ripple,R=R??Y.disabled,E=E??Y.containerProps,A=A??Y.labelProps,F=F??Y.iconProps,k=(0,a.twMerge)(Y.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(re.colors,p,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,i.default)((0,i.default)((0,s.default)(W.icon)),X[(0,l.default)(re.colors,p,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||te,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:we,id:B.id||te})),r.default.createElement("span",{className:J},b||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||te}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var g=C})(mj);var yj={},TT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,w){for(var S in w)Object.defineProperty(v,S,{enumerable:!0,get:w[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(q),n=An,o=Wv;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var w=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){w.current=v},[v]),w.current}var d=function(v){var w=v.value,S=v.children;return r.default.createElement(a.Provider,{value:w},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(TT);var bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=w(q),n=w(pt),o=Je,i=w(et),a=Xe,l=TT,s=Wv;function d(C,g,h){return g in C?Object.defineProperty(C,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):C[g]=h,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=function(C){var g=function(){Q(b),te(p),X(!1),se(null)},h=function(Me){(Me.key==="Enter"||Me.key===" "&&!we.current.typing)&&(Me.preventDefault(),g())},c=C.value,p=c===void 0?"":c,m=C.index,b=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,H=B.base,Y=(0,l.useSelect)(),re=Y.selectedIndex,Q=Y.setSelectedIndex,W=Y.listRef,X=Y.setOpen,te=Y.onChange,ne=Y.activeIndex,se=Y.setActiveIndex,ve=Y.getItemProps,we=Y.dataRef,ce=(0,i.default)(H.option.initial),J=(0,i.default)(H.option.active),oe=(0,i.default)(H.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,J,re===b),d(ue,oe,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[b]=Ce},className:Se,disabled:k,tabIndex:ne===b?0:1,"aria-selected":ne===b&&re===b,"data-selected":re===b},ve({onClick:function(Ce){var Me=F==null?void 0:F.onClick;typeof Me=="function"&&(Me(Ce),g()),g()},onKeyDown:function(Ce){var Me=F==null?void 0:F.onKeyDown;typeof Me=="function"&&(Me(Ce),h(Ce)),h(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(bj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,X){for(var te in X)Object.defineProperty(W,te,{enumerable:!0,get:X[te]})}t(e,{Select:function(){return re},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=p(q),n=p(ot),o=wn,i=An,a=p(pt),l=Je,s=p(Xn),d=p(Sr),v=p(et),w=Xe,S=TT,_=Wv,P=bj;function y(W,X){(X==null||X>W.length)&&(X=W.length);for(var te=0,ne=new Array(X);te=0)&&Object.prototype.propertyIsEnumerable.call(W,ne)&&(te[ne]=W[ne])}return te}function V(W,X){if(W==null)return{};var te={},ne=Object.keys(W),se,ve;for(ve=0;ve=0)&&(te[se]=W[se]);return te}function B(W,X){return C(W)||b(W,X)||Y(W,X)||T()}function H(W){return g(W)||m(W)||Y(W)||k()}function Y(W,X){if(W){if(typeof W=="string")return y(W,X);var te=Object.prototype.toString.call(W).slice(8,-1);if(te==="Object"&&W.constructor&&(te=W.constructor.name),te==="Map"||te==="Set")return Array.from(te);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return y(W,X)}}var re=r.default.forwardRef(function(W,X){var te=W.variant,ne=W.color,se=W.size,ve=W.label,we=W.error,ce=W.success,J=W.arrow,oe=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Me=W.dismiss,Ie=W.animate,Re=W.lockScroll,ye=W.labelProps,ke=W.menuProps,ze=W.className,Ye=W.disabled,Mt=W.name,gt=W.children,xt=W.containerProps,zt=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Ht,mt=(0,w.useTheme)().select,Ot=mt.defaultProps,Jt=mt.valid,Dr=mt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),nr=Ln[0],mo=Ln[1];te=te??Ot.variant,ne=ne??Ot.color,se=se??Ot.size,ve=ve??Ot.label,we=we??Ot.error,ce=ce??Ot.success,J=J??Ot.arrow,oe=oe??Ot.value,ue=ue??Ot.onChange,Se=Se??Ot.selected,Ce=Ce??Ot.offset,Me=Me??Ot.dismiss,Ie=Ie??Ot.animate,ye=ye??Ot.labelProps,ke=ke??Ot.menuProps;var Yt;xt=(Yt=(0,s.default)(xt,(Ot==null?void 0:Ot.containerProps)||{}))!==null&&Yt!==void 0?Yt:Ot.containerProps,ze=(0,l.twMerge)(Ot.className||"",ze),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(H((Qr=r.default.Children.map(gt,function(at){var rt=at.props;return rt==null?void 0:rt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(rt){var St=rt.rects,cn=rt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(St==null||(wo=St.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,ae=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(oe)+1))},[oe]);var pe=ga.floating,xe=(0,o.useInteractions)([(0,o.useClick)(ae),(0,o.useRole)(ae,{role:"listbox"}),(0,o.useDismiss)(ae,R({},Me)),(0,o.useListNavigation)(ae,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(ae,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Oe=xe.getReferenceProps,Ue=xe.getFloatingProps,Qe=xe.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=pe.current;if(Sn&&pa&&at){var rt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(rt&&Fi!=null){var St,cn,wr=(cn=(St=yo.current[Fi])===null||St===void 0?void 0:St.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=rt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Qe,dataRef:ae.dataRef}},[$r,ue,sn,Qe,ae.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&oe?"withValue":"close")},[Sn,oe,$r,Se]);var Fe=Qn[(0,d.default)(Jt.variants,te,"outlined")],Ze=Fe.sizes[(0,d.default)(Jt.sizes,se,"md")],$e=Fe.error.select,Ge=Fe.success.select,kt=Fe.colors.select[(0,d.default)(Jt.colors,ne,"gray")],Nt=Fe.error.label,Ut=Fe.success.label,bt=Fe.colors.label[(0,d.default)(Jt.colors,ne,"gray")],dr=Fe.states[nr],or=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Ze.container),xt==null?void 0:xt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(Fe.base.select),(0,v.default)(dr.select),(0,v.default)(Ze.select),h({},(0,v.default)(kt[nr]),!we&&!ce),h({},(0,v.default)($e.initial),we),h({},(0,v.default)($e.states[nr]),we),h({},(0,v.default)(Ge.initial),ce),h({},(0,v.default)(Ge.states[nr]),ce)),ze),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(Fe.base.label),(0,v.default)(dr.label),(0,v.default)(Ze.label.initial),(0,v.default)(Ze.label.states[nr]),h({},(0,v.default)(bt[nr]),!we&&!ce),h({},(0,v.default)(Nt.initial),we),h({},(0,v.default)(Nt.states[nr]),we),h({},(0,v.default)(Ut.initial),ce),h({},(0,v.default)(Ut.states[nr]),ce)),(Fr=ye.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),h({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=ke.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",te==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},At=(0,s.default)(Zr,Ie),He=i.AnimatePresence;r.default.useEffect(function(){oe&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[oe,ue]);var It=r.default.createElement(o.FloatingFocusManager,{context:ae,modal:!1},r.default.createElement(i.m.ul,c({},Ue(A(R({},ke),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(rt){var St=ke==null?void 0:ke.onPointerEnter;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onPointerMove:function(rt){var St=ke==null?void 0:ke.onPointerMove;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onKeyDown:function(rt){var St=ke==null?void 0:ke.onKeyDown;typeof St=="function"&&(St(rt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:At}),r.default.Children.map(gt,function(at,rt){var St;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((St=at.props)===null||St===void 0?void 0:St.index)||rt+1,id:"material-tailwind-select-".concat(rt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},xt,{ref:X,className:or}),r.default.createElement("button",c({type:"button"},Oe(A(R({},zt),{ref:ga.setReference,className:Fn,disabled:Ye,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):oe&&!ue?r.default.createElement("span",{className:un},oe):r.default.createElement("span",c({},(Ht=gt[$r-1])===null||Ht===void 0?void 0:Ht.props,{className:un})),r.default.createElement("div",{className:Zn},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},ye,{className:jn}),ve),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(He,null,Sn&&r.default.createElement(r.default.Fragment,null,Re?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},It):It)))))});re.propTypes={variant:n.default.oneOf(_.propTypesVariant),color:n.default.oneOf(_.propTypesColor),size:n.default.oneOf(_.propTypesSize),label:_.propTypesLabel,error:_.propTypesError,success:_.propTypesSuccess,arrow:_.propTypesArrow,value:_.propTypesValue,onChange:_.propTypesOnChange,selected:_.propTypesSelected,offset:_.propTypesOffset,dismiss:_.propTypesDismiss,animate:_.propTypesAnimate,lockScroll:_.propTypesLockScroll,labelProps:_.propTypesLabelProps,menuProps:_.propTypesMenuProps,className:_.propTypesClassName,disabled:_.propTypesDisabled,name:_.propTypesName,children:_.propTypesChildren,containerProps:_.propTypesContainerProps},re.displayName="MaterialTailwind.Select";var Q=Object.assign(re,{Option:P.SelectOption})})(yj);var wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Switch:function(){return C},default:function(){return g}});var r=_(q),n=_(ot),o=_(dh),i=_(pt),a=Je,l=_(Sr),s=_(et),d=Xe,v=Sd;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.color,m=h.label,b=h.ripple,T=h.className,k=h.disabled,R=h.containerProps,E=h.circleProps,A=h.labelProps,F=h.inputRef,V=P(h,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),H=B.switch,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.colors,te=r.default.useId();p=p??Y.color,b=b??Y.ripple,k=k??Y.disabled,R=R??Y.containerProps,A=A??Y.labelProps,E=E??Y.circleProps,T=(0,a.twMerge)(Y.className||"",T);var ne=b!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),k)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(re.colors,p,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),X[(0,l.default)(re.colors,p,"gray")].circle,X[(0,l.default)(re.colors,p,"gray")].before),E==null?void 0:E.className),J=(0,i.default)((0,s.default)(W.ripple)),oe=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("div",S({},R,{className:ve}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||te,className:we})),r.default.createElement("label",S({},E,{htmlFor:V.id||te,className:ce}),b&&r.default.createElement("div",{className:J,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return b&&ne.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||te,className:oe}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var g=C})(wj);var _j={},wh={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return w},propTypesChildren:function(){return S}});var r=o(ot),n=br;function o(_){return _&&_.__esModule?_:{default:_}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),w=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return g},TabsContextProvider:function(){return h},setId:function(){return c},setActive:function(){return p},setAnimation:function(){return m},setIndicator:function(){return b},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(q),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.value,p=g.className,m=g.activeClassName,b=g.disabled,T=g.children,k=_(g,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,H=V.dispatch,Y=B.id,re=B.active,Q=B.indicatorProps;b=b??A.disabled,p=(0,i.twMerge)(A.className||"",p),m=(0,i.twMerge)(A.activeClassName||"",m);var W,X=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),b),v(W,m,re===c),W)),p),te,ne=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(te=Q==null?void 0:Q.className)!==null&&te!==void 0?te:"");return r.default.createElement("li",w({},k,{ref:h,role:"tab",className:X,onClick:function(se){var ve=k==null?void 0:k.onClick;typeof ve=="function"&&((0,s.setActive)(H,c),(0,s.setIsInitial)(H,!1),ve(se)),(0,s.setIsInitial)(H,!1),(0,s.setActive)(H,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),re===c&&r.default.createElement(n.motion.div,w({},Q,{transition:{duration:.5},className:ne,layoutId:Y})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(xj);var Sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(q),n=An,o=S(Xn),i=S(pt),a=Je,l=S(et),s=Xe,d=wh,v=kd;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.animate,p=g.className,m=g.children,b=_(g,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,p=(0,a.twMerge)(k.className||"",p);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),p),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",w({},b,{ref:h,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Sj);var Cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=w(q),n=w(pt),o=Je,i=w(et),a=Xe,l=wh,s=kd;function d(C,g,h){return g in C?Object.defineProperty(C,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):C[g]=h,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.indicatorProps,c=C.className,p=C.children,m=S(C,["indicatorProps","className","children"]),b=(0,a.useTheme)().tabsHeader,T=b.defaultProps,k=b.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,h)},[A,h]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:g,role:"tablist",className:V}),p))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=w(q),n=An,o=w(pt),i=Je,a=w(et),l=Xe,s=wh,d=kd;function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.value,c=C.className,p=C.children,m=S(C,["value","className","children"]),b=(0,l.useTheme)().tabPanel,T=b.defaultProps,k=b.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:g,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===h?"mount":F?"initial":"unmount",variants:A,"data-value":h}),p)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Pj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{Tabs:function(){return h},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return w.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(q),n=y(pt),o=Je,i=y(et),a=Xe,l=wh,s=xj,d=Sj,v=Cj,w=Pj,S=kd;function _(p,m,b){return m in p?Object.defineProperty(p,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[m]=b,p}function P(){return P=Object.assign||function(p){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function g(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}var h=r.default.forwardRef(function(p,m){var b=p.value,T=p.className,k=p.orientation,R=p.children,E=C(p,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var H=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),_({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:b,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:H}),R))});h.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},h.displayName="MaterialTailwind.Tabs";var c=Object.assign(h,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:w.TabPanel})})(_j);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Hv,d=Je;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.color,m=g.size,b=g.label,T=g.error,k=g.success,R=g.resize,E=g.labelProps,A=g.containerProps,F=g.shrink,V=g.className,B=_(g,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),H=(0,l.useTheme)().textarea,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.variants;c=c??Y.variant,m=m??Y.size,p=p??Y.color,b=b??Y.label,E=E??Y.labelProps,A=A??Y.containerProps,F=F??Y.shrink,V=(0,d.twMerge)(Y.className||"",V);var te=X[(0,i.default)(re.variants,c,"outlined")],ne=(0,a.default)(te.error.textarea),se=(0,a.default)(te.success.textarea),ve=(0,a.default)(te.shrink.textarea),we=(0,a.default)(te.colors.textarea[(0,i.default)(re.colors,p,"gray")]),ce=(0,a.default)(te.error.label),J=(0,a.default)(te.success.label),oe=(0,a.default)(te.shrink.label),ue=(0,a.default)(te.colors.label[(0,i.default)(re.colors,p,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(te.base.textarea),(0,a.default)(te.sizes[(0,i.default)(re.sizes,m,"md")].textarea),v({},we,!T&&!k),v({},ne,T),v({},se,k),v({},ve,F),R?"":"!resize-none",V),Me=(0,o.default)((0,a.default)(W.label),(0,a.default)(te.base.label),(0,a.default)(te.sizes[(0,i.default)(re.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},J,k),v({},oe,F),E==null?void 0:E.className),Ie=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:h,className:Se},r.default.createElement("textarea",w({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Me},b," ",B.required?r.default.createElement("span",{className:Ie},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(Tj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(q),n=C(ot),o=wn,i=An,a=C(pt),l=Je,s=C(Xn),d=C(et),v=Xe,w=bh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,H=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,H)&&(B[H]=F[H])}return B}function T(F,V){if(F==null)return{};var B={},H=Object.keys(F),Y,re;for(re=0;re=0)&&(B[Y]=F[Y]);return B}function k(F,V){return _(F)||g(F,V)||R(F,V)||h()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,H=F.handler,Y=F.content,re=F.interactive,Q=F.placement,W=F.offset,X=F.dismiss,te=F.animate,ne=F.className,se=F.children,ve=b(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),we=(0,v.useTheme)().tooltip,ce=we.defaultProps,J=we.styles.base,oe=k(r.default.useState(!1),2),ue=oe[0],Se=oe[1];B=B??ue,H=H??Se,re=re??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,X=X??ce.dismiss,te=te??ce.animate,ne=(0,l.twMerge)(ce.className||"",ne);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(J)),ne),Me={unmount:{opacity:0},mount:{opacity:1}},Ie=(0,s.default)(Me,te),Re=(0,o.useFloating)({open:B,onOpenChange:H,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),ye=Re.x,ke=Re.y,ze=Re.reference,Ye=Re.floating,Mt=Re.strategy,gt=Re.refs,xt=Re.update,zt=Re.context,Ht=(0,o.useInteractions)([(0,o.useClick)(zt,{enabled:re}),(0,o.useFocus)(zt),(0,o.useHover)(zt),(0,o.useRole)(zt,{role:"tooltip"}),(0,o.useDismiss)(zt,X)]),mt=Ht.getReferenceProps,Ot=Ht.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,xt)},[B,xt,gt.reference,gt.floating]);var Jt=(0,o.useMergeRefs)([V,Ye]),Dr=(0,o.useMergeRefs)([V,ze]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof se=="string"?r.default.createElement("span",y({},mt({ref:Dr})),se):r.default.cloneElement(se,c({},mt(m(c({},se==null?void 0:se.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Ot(m(c({},ve),{ref:Jt,className:Ce,style:{position:Mt,top:ke??"",left:ye??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:Ie}),Y)))))});E.propTypes={open:w.propTypesOpen,handler:w.propTypesHandler,content:w.propTypesContent,interactive:w.propTypesInteractive,placement:n.default.oneOf(w.propTypesPlacement),offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,className:w.propTypesClassName,children:w.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(Oj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var m in p)Object.defineProperty(c,m,{enumerable:!0,get:p[m]})}t(e,{Typography:function(){return g},default:function(){return h}});var r=w(q),n=w(ot),o=w(pt),i=Je,a=w(Sr),l=w(et),s=Xe,d=UP;function v(c,p,m){return p in c?Object.defineProperty(c,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[p]=m,c}function w(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(c,b)&&(m[b]=c[b])}return m}function C(c,p){if(c==null)return{};var m={},b=Object.keys(c),T,k;for(k=0;k=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,p){var m=c.variant,b=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,H=F.styles,Y=H.variants,re=H.colors,Q=H.textGradient;m=m??V.variant,b=b??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(Y[(0,a.default)(B.variants,m,"paragraph")]),X=re[(0,a.default)(B.colors,b,"inherit")],te=(0,l.default)(Q),ne=(0,i.twMerge)((0,o.default)(W,v({},X.color,!T),v({},te,T),v({},X.gradient,T)),R),se;switch(m){case"h1":se=r.default.createElement(k||"h1",P(S({},A),{ref:p,className:ne}),E);break;case"h2":se=r.default.createElement(k||"h2",P(S({},A),{ref:p,className:ne}),E);break;case"h3":se=r.default.createElement(k||"h3",P(S({},A),{ref:p,className:ne}),E);break;case"h4":se=r.default.createElement(k||"h4",P(S({},A),{ref:p,className:ne}),E);break;case"h5":se=r.default.createElement(k||"h5",P(S({},A),{ref:p,className:ne}),E);break;case"h6":se=r.default.createElement(k||"h6",P(S({},A),{ref:p,className:ne}),E);break;case"lead":se=r.default.createElement(k||"p",P(S({},A),{ref:p,className:ne}),E);break;case"paragraph":se=r.default.createElement(k||"p",P(S({},A),{ref:p,className:ne}),E);break;case"small":se=r.default.createElement(k||"p",P(S({},A),{ref:p,className:ne}),E);break;default:se=r.default.createElement(k||"p",P(S({},A),{ref:p,className:ne}),E);break}return se});g.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},g.displayName="MaterialTailwind.Typography";var h=g})(kj);var Ej={},Mj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(ot),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Mj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(q),n=An,o=wn,i=S(Xn),a=S(pt),l=Je,s=S(et),d=Xe,v=Mj;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.open,p=g.animate,m=g.className,b=g.children,T=_(g,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;p=p??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,p),H=n.AnimatePresence,Y=(0,o.useMergeRefs)([h,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(H,null,r.default.createElement(n.m.div,w({},T,{ref:Y,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),b)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Ej);var Rj={},am={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(am);var Nj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return _}});var r=d(q),n=Xe,o=d(pt),i=Je,a=d(et),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,n.useTheme)().list,p=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(p.itemPrefix)),C);return r.default.createElement("div",s({},h,{ref:y,className:m}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var _=S})(OT);var kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return _}});var r=d(q),n=Xe,o=d(pt),i=Je,a=d(et),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,n.useTheme)().list,p=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(p.itemSuffix)),C);return r.default.createElement("div",s({},h,{ref:y,className:m}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var _=S})(kT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return g}});var r=_(q),n=Xe,o=_(dh),i=_(pt),a=Je,l=_(et),s=am,d=OT,v=kT;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.className,m=h.disabled,b=h.selected,T=h.ripple,k=h.children,R=P(h,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,H=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},w(B,(0,l.default)(F.item.disabled),m),w(B,(0,l.default)(F.item.selected),b&&!m),B)),p);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:H,onMouseDown:function(Y){var re=R==null?void 0:R.onMouseDown;return T&&V.create(Y,"dark"),typeof re=="function"&&re(Y)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var g=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Nj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(q),n=Xe,o=S(pt),i=Je,a=S(et),l=am,s=Nj,d=OT,v=kT;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.className,p=g.children,m=_(g,["className","children"]),b=(0,n.useTheme)().list,T=b.defaultProps,k=b.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",w({},m,{ref:h,className:R}),p)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Rj);var Aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=_d;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.size,m=g.color,b=g.fullWidth,T=g.ripple,k=g.className,R=g.children,E=_(g,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,H=V.base,Y=V.dividerColor;c=c??F.variant,p=p??F.size,m=m??F.color,T=T??F.ripple,b=b??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var re,Q=(0,i.twMerge)((0,o.default)((0,l.default)(H.initial),(re={},v(re,(0,l.default)(H.fullWidth),b),v(re,"divide-x",c!=="outlined"),v(re,(0,l.default)(Y[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),re)),k);return r.default.createElement("div",w({},E,{ref:h,className:Q}),r.default.Children.map(R,function(W,X){var te;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:p,color:m,ripple:T,fullWidth:b,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":X!==r.default.Children.count(R)-1,"border-r-0":X!==r.default.Children.count(R)-1,"rounded-l-none":X!==0}),(te=W.props)===null||te===void 0?void 0:te.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Aj);var Ij={},Lj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return w},propTypesChildren:function(){return S},propTypesSlideRef:function(){return _}});var r=n(ot);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,w=r.default.bool,S=r.default.node.isRequired,_=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Lj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,T){for(var k in T)Object.defineProperty(b,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return p},default:function(){return m}});var r=_(q),n=An,o=wn,i=_(pt),a=Je,l=_(et),s=Xe,d=Lj;function v(b,T){(T==null||T>b.length)&&(T=b.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(b,R)&&(k[R]=b[R])}return k}function g(b,T){if(b==null)return{};var k={},R=Object.keys(b),E,A;for(A=0;A=0)&&(k[E]=b[E]);return k}function h(b,T){return w(b)||P(b,T)||c(b,T)||y()}function c(b,T){if(b){if(typeof b=="string")return v(b,T);var k=Object.prototype.toString.call(b).slice(8,-1);if(k==="Object"&&b.constructor&&(k=b.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(b,T)}}var p=r.default.forwardRef(function(b,T){var k=b.children,R=b.prevArrow,E=b.nextArrow,A=b.navigation,F=b.autoplay,V=b.autoplayDelay,B=b.transition,H=b.loop,Y=b.className,re=b.slideRef,Q=C(b,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,X=W.defaultProps,te=W.styles.base,ne=(0,n.useMotionValue)(0),se=r.default.useRef(null),ve=h(r.default.useState(0),2),we=ve[0],ce=ve[1],J=r.default.Children.toArray(k);R=R??X.prevArrow,E=E??X.nextArrow,A=A??X.navigation,F=F??X.autoplay,V=V??X.autoplayDelay,B=B??X.transition,H=H??X.loop,Y=(0,a.twMerge)(X.className||"",Y);var oe=(0,a.twMerge)((0,i.default)((0,l.default)(te.carousel)),Y),ue=(0,a.twMerge)((0,i.default)((0,l.default)(te.slide))),Se=r.default.useCallback(function(){var Re;return-we*(((Re=se.current)===null||Re===void 0?void 0:Re.clientWidth)||0)},[we]),Ce=r.default.useCallback(function(){var Re=H?0:we;ce(we+1===J.length?Re:we+1)},[we,H,J.length]),Me=function(){var Re=H?J.length-1:0;ce(we-1<0?Re:we-1)};r.default.useEffect(function(){var Re=(0,n.animate)(ne,Se(),B);return Re.stop},[Se,we,ne,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(ne,Se(),B)})},[Se,B,ne]),r.default.useEffect(function(){if(F){var Re=setInterval(function(){return Ce()},V);return function(){return clearInterval(Re)}}},[F,Ce,V]);var Ie=(0,o.useMergeRefs)([se,T]);return r.default.createElement("div",S({},Q,{ref:Ie,className:oe}),J.map(function(Re,ye){return r.default.createElement(n.LazyMotion,{key:ye,features:n.domAnimation},r.default.createElement(n.m.div,{ref:re,className:ue,style:{x:ne,left:"".concat(ye*100,"%"),right:"".concat(ye*100,"%")}},Re))}),R&&R({loop:H,handlePrev:Me,activeIndex:we,firstIndex:we===0}),E&&E({loop:H,handleNext:Ce,activeIndex:we,lastIndex:we===J.length-1}),A&&A({setActiveIndex:ce,activeIndex:we,length:J.length}))});p.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},p.displayName="MaterialTailwind.Carousel";var m=p})(Ij);var Dj={},Fj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return w},propTypesOnClose:function(){return S},propTypesDismiss:function(){return _},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,w=r.default.string,S=r.default.func,_=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Fj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{Drawer:function(){return h},default:function(){return c}});var r=P(q),n=P(ot),o=An,i=wn,a=P(Xn),l=P(pt),s=Je,d=P(et),v=Xe,w=Fj;function S(p,m,b){return m in p?Object.defineProperty(p,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[m]=b,p}function _(){return _=Object.assign||function(p){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function g(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}var h=r.default.forwardRef(function(p,m){var b=p.open,T=p.size,k=p.overlay,R=p.children,E=p.placement,A=p.overlayProps,F=p.className,V=p.onClose,B=p.dismiss,H=p.transition,Y=p.overlayRef,re=C(p,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,X=Q.styles.base,te=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var ne;B=(ne=(0,a.default)(W.dismiss,B||{}))!==null&&ne!==void 0?ne:W.dismiss,H=H??W.transition,F=(0,s.twMerge)(W.className||"",F);var se=(0,s.twMerge)((0,l.default)((0,d.default)(X.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),ve=(0,s.twMerge)((0,l.default)((0,d.default)(X.overlay)),A==null?void 0:A.className),we=(0,i.useFloating)({open:b,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(we,B)]).getFloatingProps;r.default.useEffect(function(){te.start(b?"open":"close")},[b,te,E]);var J={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},oe={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&b&&r.default.createElement(o.m.div,{ref:Y,className:ve,initial:"unmount",exit:"unmount",animate:b?"mount":"unmount",variants:oe,transition:{duration:.3}})),r.default.createElement(o.m.div,_({},ce(y({ref:m},re)),{className:se,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:te,variants:J,transition:H}),R)))});h.propTypes={open:w.propTypesOpen,size:w.propTypesSize,overlay:w.propTypesOverlay,children:w.propTypesChildren,placement:n.default.oneOf(w.propTypesPlacement),overlayProps:w.propTypesOverlayProps,className:w.propTypesClassName,onClose:w.propTypesOnClose,dismiss:w.propTypesDismiss,transition:w.propTypesTransition,overlayRef:w.propTypesOverlayRef},h.displayName="MaterialTailwind.Drawer";var c=h})(Dj);var jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Badge:function(){return C},default:function(){return g}});var r=_(q),n=_(ot),o=_(Xn),i=_(pt),a=Je,l=_(Sr),s=_(et),d=Xe,v=HP;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.color,m=h.invisible,b=h.withBorder,T=h.overlap,k=h.placement,R=h.className,E=h.content,A=h.children,F=h.containerProps,V=h.containerRef,B=P(h,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),H=(0,d.useTheme)().badge,Y=H.valid,re=H.defaultProps,Q=H.styles,W=Q.base,X=Q.placements,te=Q.colors;p=p??re.color,m=m??re.invisible,b=b??re.withBorder,T=T??re.overlap,k=k??re.placement,R=(0,a.twMerge)(re.className||"",R);var ne;F=(ne=(0,o.default)(F,re.containerProps||{}))!==null&&ne!==void 0?ne:re.containerProps;var se=(0,s.default)(W.badge.initial),ve=(0,s.default)(W.badge.withBorder),we=(0,s.default)(W.badge.withContent),ce=(0,s.default)(te[(0,l.default)(Y.colors,p,"red")]),J=(0,s.default)(X[(0,l.default)(Y.placements,k,"top-end")][(0,l.default)(Y.overlaps,T,"square")]),oe,ue=(0,a.twMerge)((0,i.default)(se,J,ce,(oe={},w(oe,ve,b),w(oe,we,E),oe)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var g=C})(jj);var zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(q),n=P(ot),o=P(pt),i=Je,a=P(Sr),l=P(et),s=Xe,d=WP;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function p(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}function m(E,A){return w(E)||C(E,A)||T(E,A)||g()}function b(E){return S(E)||y(E)||T(E)||h()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,H=E.unratedIcon,Y=E.ratedColor,re=E.unratedColor,Q=E.className,W=E.onChange,X=E.readonly,te=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),ne,se,ve=(0,s.useTheme)().rating,we=ve.valid,ce=ve.defaultProps,J=ve.styles,oe=J.base,ue=J.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,H=H??ce.unratedIcon,Y=Y??ce.ratedColor,re=re??ce.unratedColor,W=W??ce.onChange,X=X??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return b(Array(V).fill("rated")).concat(b(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Me=Se[1],Ie=m(r.default.useState(function(){return b(Array(F).fill("un_rated"))}),2),Re=Ie[0],ye=Ie[1],ke=m(r.default.useState(!1),2),ze=ke[0],Ye=ke[1],Mt=(0,l.default)(ue[(0,a.default)(we.colors,Y,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(we.colors,re,"blue-gray")]),xt=(0,i.twMerge)((0,o.default)((0,l.default)(oe.rating),Q)),zt=(0,l.default)(oe.icon),Ht=B,mt=H,Ot=r.default.isValidElement(B)&&r.default.cloneElement(Ht,{className:(0,i.twMerge)((0,o.default)(zt,Mt,Ht==null||(ne=Ht.props)===null||ne===void 0?void 0:ne.className))}),Jt=r.default.isValidElement(B)&&r.default.cloneElement(mt,{className:(0,i.twMerge)((0,o.default)(zt,gt,mt==null||(se=mt.props)===null||se===void 0?void 0:se.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(zt,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(H,{className:(0,i.twMerge)((0,o.default)(zt,gt))}),Qn=function(Ln){return Ln.map(function(nr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!X){var Yt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Me(Yt),W&&typeof W=="function"&&W(Yt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!X){var Yt=Re.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Ye(!0),ye(Yt)}},onMouseLeave:function(){return!X&&Ye(!1)}},r.default.isValidElement(nr==="rated"?B:H)?nr==="rated"?Ot:Jt:nr==="rated"?Dr:ln)})};return r.default.createElement("div",_({},te,{ref:A,className:xt}),Qn(ze?Re:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(zj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return b}});var r=P(q),n=P(ot),o=P(Xn),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=$P;function w(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function h(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||p(T,k)||C()}function p(T,k){if(T){if(typeof T=="string")return w(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,H=T.value,Y=T.defaultValue,re=T.onChange,Q=T.min,W=T.max,X=T.step,te=T.inputRef,ne=T.inputProps,se=g(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),ve=(0,d.useTheme)().slider,we=ve.valid,ce=ve.defaultProps,J=ve.styles,oe=J.base,ue=J.sizes,Se=J.colors,Ce=c(r.default.useState(Y||0),2),Me=Ce[0],Ie=Ce[1];r.default.useMemo(function(){Y&&Ie(Y)},[Y]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,X=X??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Re;V=(Re=(0,i.default)(ce.thumbClassName,V))!==null&&Re!==void 0?Re:ce.thumbClassName;var ye;F=(ye=(0,i.default)(ce.trackClassName,F))!==null&&ye!==void 0?ye:ce.trackClassName;var ke;B=(ke=(0,i.default)(ce.barClassName,B))!==null&&ke!==void 0?ke:ce.barClassName;var ze;ne=(ze=(0,o.default)(ne,(ce==null?void 0:ce.inputProps)||{}))!==null&&ze!==void 0?ze:ce.inputProps;var Ye=(0,a.twMerge)((0,i.default)((0,s.default)(oe.container),(0,s.default)(Se[(0,l.default)(we.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(oe.bar),B)),gt=(0,i.default)((0,s.default)(oe.track),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].track)),xt=(0,i.default)((0,s.default)(oe.thumb),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].thumb)),zt=(0,i.default)((0,s.default)(oe.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(xt,V));return r.default.createElement("div",_({},se,{ref:k,className:Ye}),r.default.createElement("label",{className:Mt,style:{width:"".concat(H||Me,"%")}}),r.default.createElement("input",_({ref:te,type:"range",max:W,min:Q,step:X,className:zt},H?{value:H}:null,{defaultValue:Y,onChange:function(Ht){return re?re(Ht):Ie(Number(Ht.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var b=m})(Vj);var Bj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,b){for(var T in b)Object.defineProperty(m,T,{enumerable:!0,get:b[T]})}t(e,{useTimelineItem:function(){return h},TimelineItem:function(){return c},default:function(){return p}});var r=v(q),n=Je,o=v(et),i=Xe,a=bs;function l(m,b){(b==null||b>m.length)&&(b=m.length);for(var T=0,k=new Array(b);T=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,b){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,b){return s(m)||w(m,b)||C(m,b)||S()}function C(m,b){if(m){if(typeof m=="string")return l(m,b);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,b)}}var g=r.default.createContext(0);g.displayName="MaterialTailwind.TimelineItemContext";function h(){var m=r.default.useContext(g);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,b){var T=m.className,k=m.children,R=_(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],H=V[1],Y=r.default.useMemo(function(){return[B,H]},[B,H]),re=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(g.Provider,{value:Y},r.default.createElement("li",d({ref:b},R,{className:re}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var p=c})(lm);var Uj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return b}});var r=P(q),n=P(ot),o=wn,i=Je,a=P(Sr),l=P(et),s=Xe,d=lm,v=bs;function w(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function h(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||p(T,k)||C()}function p(T,k){if(T){if(typeof T=="string")return w(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=g(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,H=B.styles,Y=B.valid,re=H.base,Q=H.variants,W=c((0,d.useTimelineItem)(),2),X=W[1],te=r.default.useRef(null),ne=(0,o.useMergeRefs)([k,te]);r.default.useEffect(function(){var we=te.current;if(we){var ce=we.getBoundingClientRect().width;return X(ce),function(){X(0)}}},[X,A,F]);var se=(0,l.default)(Q[(0,a.default)(Y.variants,E,"filled")][(0,a.default)(Y.colors,R,"gray")]),ve=(0,i.twMerge)((0,l.default)(re),se,A);return r.default.createElement("span",_({ref:ne},V,{className:ve}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var b=m})(Uj);var Hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{TimelineHeader:function(){return h},default:function(){return c}});var r=w(q),n=Je,o=w(et),i=Xe,a=lm,l=bs;function s(p,m){(m==null||m>p.length)&&(m=p.length);for(var b=0,T=new Array(m);b=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function y(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}function C(p,m){return d(p)||S(p,m)||g(p,m)||_()}function g(p,m){if(p){if(typeof p=="string")return s(p,m);var b=Object.prototype.toString.call(p).slice(8,-1);if(b==="Object"&&p.constructor&&(b=p.constructor.name),b==="Map"||b==="Set")return Array.from(b);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return s(p,m)}}var h=r.default.forwardRef(function(p,m){var b=p.className,T=p.children,k=P(p,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),b);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});h.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},h.displayName="MaterialTailwind.TimelineHeader";var c=h})(Hj);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return w},default:function(){return S}});var r=s(q),n=Je,o=s(et),i=Xe,a=bs;function l(){return l=Object.assign||function(_){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(_,C)&&(y[C]=_[C])}return y}function v(_,P){if(_==null)return{};var y={},C=Object.keys(_),g,h;for(h=0;h=0)&&(y[g]=_[g]);return y}var w=r.default.forwardRef(function(_,P){var y=_.className,C=_.children,g=d(_,["className","children"]),h=(0,i.useTheme)().timelineHeader,c=h.styles,p=c.base,m=(0,n.twMerge)((0,o.default)(p),y);return r.default.createElement("div",l({},g,{ref:P,className:m}),C)});w.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},w.displayName="MaterialTailwind.TimelineHeader";var S=w})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{TimelineConnector:function(){return h},default:function(){return c}});var r=w(q),n=Je,o=w(et),i=Xe,a=lm,l=bs;function s(p,m){(m==null||m>p.length)&&(m=p.length);for(var b=0,T=new Array(m);b=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function y(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}function C(p,m){return d(p)||S(p,m)||g(p,m)||_()}function g(p,m){if(p){if(typeof p=="string")return s(p,m);var b=Object.prototype.toString.call(p).slice(8,-1);if(b==="Object"&&p.constructor&&(b=p.constructor.name),b==="Map"||b==="Set")return Array.from(b);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return s(p,m)}}var h=r.default.forwardRef(function(p,m){var b=p.className,T=p.children,k=P(p,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],H=(0,o.default)(F.line),Y=(0,n.twMerge)((0,o.default)(F.container),b);return r.default.createElement("span",v({},k,{ref:m,className:Y,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(H,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:H}))});h.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},h.displayName="MaterialTailwind.TimelineConnector";var c=h})($j);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return w.default},default:function(){return g}});var r=_(q),n=Je,o=_(et),i=Xe,a=bs,l=_(lm),s=_(Uj),d=_(Hj),v=_(Wj),w=_($j);function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.className,m=h.children,b=P(h,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),p);return r.default.createElement("ul",S({ref:c},b,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var g=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:w.default})})(Bj);var Gj={},Kj={},ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return w},default:function(){return S}});var r=s(q),n=Je,o=s(et),i=Xe,a=ET;function l(){return l=Object.assign||function(_){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(_,C)&&(y[C]=_[C])}return y}function v(_,P){if(_==null)return{};var y={},C=Object.keys(_),g,h;for(h=0;h=0)&&(y[g]=_[g]);return y}var w=r.default.forwardRef(function(_,P){var y=_.className;_.activeClassName,_.completedClassName;var C=_.children,g=d(_,["className","activeClassName","completedClassName","children"]),h=(0,i.useTheme)().step,c=h.styles.base,p=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},g,{ref:P,className:p}),C)});w.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},w.displayName="MaterialTailwind.Step";var S=w})(Kj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=_(q),n=wn,o=Je,i=_(et),a=Xe,l=_(Kj),s=ET;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function p(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||b(R,E)||y()}function b(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,H=R.lineClassName,Y=R.activeLineClassName,re=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),X=W.stepper,te=W.step,ne=X.styles.base,se=te.styles,ve=se.base,we=r.default.useRef(null),ce=m(r.default.useState(0),2),J=ce[0],oe=ce[1],ue=A===0,Se=Array.isArray(re)&&A===re.length-1,Ce=Array.isArray(re)&&A>re.length-1;r.default.useEffect(function(){if(we.current){var Ye=re,Mt=we.current.getBoundingClientRect().width,gt=Mt/(Ye.length-1);oe(gt)}},[re]);var Me=r.default.useMemo(function(){if(!Ce)return J*A},[A,Ce,J]);(0,n.useMergeRefs)([E,we]);var Ie=(0,o.twMerge)((0,i.default)(ne.stepper),B),Re=(0,o.twMerge)((0,i.default)(ne.line.initial),H),ye=(0,o.twMerge)(Re,(0,i.default)(ne.line.active),Y),ke=(0,i.default)(ve.active),ze=(0,i.default)(ve.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:we,className:Ie}),r.default.createElement("div",{className:Re}),r.default.createElement("div",{className:ye,style:{width:"".concat(Me,"px")}}),Array.isArray(re)?re.map(function(Ye,Mt){var gt,xt;return r.default.cloneElement(Ye,h(C({key:Mt},Ye.props),{className:(0,o.twMerge)(Ye.props.className,Mt===A?(0,o.twMerge)(ke,(gt=Ye.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.children,c=S(C,["children"]),p,m=(0,o.useSpeedDial)(),b=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([g,T.setReference]);return r.default.cloneElement(h,d({},b(w(d({},c),{ref:k,className:(0,i.twMerge)(h==null||(p=h.props)===null||p===void 0?void 0:p.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Mx)),Mx}var Rx={},Q8;function IJ(){return Q8||(Q8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=w(q),n=An,o=wn,i=MT(),a=Xe,l=Je,s=w(et),d=sm;function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.children,c=C.className,p=S(C,["children","className"]),m=(0,a.useTheme)(),b=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,H=(0,o.useMergeRefs)([g,E.setFloating]),Y=(0,l.twMerge)((0,s.default)(b),c),re=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(re,null,A&&r.default.createElement("div",v({},p,{ref:H,className:Y,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(h,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Rx)),Rx}var qj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return w},default:function(){return S}});var r=s(q),n=Xe,o=Je,i=s(et),a=sm;function l(){return l=Object.assign||function(_){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(_,C)&&(y[C]=_[C])}return y}function v(_,P){if(_==null)return{};var y={},C=Object.keys(_),g,h;for(h=0;h=0)&&(y[g]=_[g]);return y}var w=r.default.forwardRef(function(_,P){var y=_.className,C=_.children,g=d(_,["className","children"]),h=(0,n.useTheme)(),c=h.speedDialAction.styles,p=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},g,{ref:P,className:p}),C)});w.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},w.displayName="SpeedDialAction";var S=w})(qj);var Z8;function MT(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,b){for(var T in b)Object.defineProperty(m,T,{enumerable:!0,get:b[T]})}t(e,{SpeedDialContext:function(){return g},useSpeedDial:function(){return h},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return p}});var r=S(q),n=wn,o=Xe,i=S(Xn),a=sm,l=S(AJ()),s=S(IJ()),d=S(qj);function v(m,b){(b==null||b>m.length)&&(b=m.length);for(var T=0,k=new Array(b);T.");return m}function c(m){var b=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,H=y(r.default.useState(!1),2),Y=H[0],re=H[1];b=b??Y,T=T??re,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),X=(0,n.useFloatingNodeId)(),te=(0,n.useFloating)({open:b,nodeId:X,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),ne=te.x,se=te.y,ve=te.strategy,we=te.refs,ce=te.context,J=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),oe=J.getReferenceProps,ue=J.getFloatingProps,Se=r.default.useMemo(function(){return{x:ne,y:se,strategy:ve,refs:we,open:b,context:ce,getReferenceProps:oe,getFloatingProps:ue,animation:W}},[ce,ue,oe,we,ve,ne,se,b,W]);return r.default.createElement(g.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:X},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var p=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Ex)),Ex}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(ZR,e),t(eL,e),t(tL,e),t(rL,e),t(oL,e),t(iL,e),t(uL,e),t(cL,e),t(dL,e),t(d2,e),t(ij,e),t(aj,e),t(dj,e),t(pj,e),t(vj,e),t(mj,e),t(yj,e),t(wj,e),t(_j,e),t(Tj,e),t(Oj,e),t(kj,e),t(Ej,e),t(Rj,e),t(Aj,e),t(Ij,e),t(Dj,e),t(jj,e),t(zj,e),t(Vj,e),t(b3,e),t(Bj,e),t(Gj,e),t(MT(),e),t(Xe,e),t(RP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(XW);function LJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var RT={exports:{}},I2={},bw={},Tt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof sO<"u"?sO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Tt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Tt;class r{constructor(p=[1,0,0,1,0,0]){this.dirty=!1,this.m=p&&p.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(p){p.m[0]=this.m[0],p.m[1]=this.m[1],p.m[2]=this.m[2],p.m[3]=this.m[3],p.m[4]=this.m[4],p.m[5]=this.m[5]}point(p){const m=this.m;return{x:m[0]*p.x+m[2]*p.y+m[4],y:m[1]*p.x+m[3]*p.y+m[5]}}translate(p,m){return this.m[4]+=this.m[0]*p+this.m[2]*m,this.m[5]+=this.m[1]*p+this.m[3]*m,this}scale(p,m){return this.m[0]*=p,this.m[1]*=p,this.m[2]*=m,this.m[3]*=m,this}rotate(p){const m=Math.cos(p),b=Math.sin(p),T=this.m[0]*m+this.m[2]*b,k=this.m[1]*m+this.m[3]*b,R=this.m[0]*-b+this.m[2]*m,E=this.m[1]*-b+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(p,m){const b=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*p,R=this.m[3]+this.m[1]*p;return this.m[0]=b,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(p){const m=this.m[0]*p.m[0]+this.m[2]*p.m[1],b=this.m[1]*p.m[0]+this.m[3]*p.m[1],T=this.m[0]*p.m[2]+this.m[2]*p.m[3],k=this.m[1]*p.m[2]+this.m[3]*p.m[3],R=this.m[0]*p.m[4]+this.m[2]*p.m[5]+this.m[4],E=this.m[1]*p.m[4]+this.m[3]*p.m[5]+this.m[5];return this.m[0]=m,this.m[1]=b,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const p=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*p,b=-this.m[1]*p,T=-this.m[2]*p,k=this.m[0]*p,R=p*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=p*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=b,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const p=this.m[0],m=this.m[1],b=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=p*T-m*b,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(p!=0||m!=0){const F=Math.sqrt(p*p+m*m);A.rotation=m>0?Math.acos(p/F):-Math.acos(p/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(p*b+m*T)/E,A.skewY=0}else if(b!=0||T!=0){const F=Math.sqrt(b*b+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-b/F):-Math.acos(b/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(p*b+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",w="0",S="Konva warning: ",_="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let g=[];const h=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const p=c[0];return p==="#"||p==="."||p===p.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){g.push(c),g.length===1&&h(function(){const p=g;g=[],p.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,p){const m=e.Util.createImageElement();m.onload=function(){p(m)},m.src=c},_rgbToHex(c,p,m){return((1<<24)+(c<<16)+(p<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const p=parseInt(c,16);return{r:p>>16&255,g:p>>8&255,b:p&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=w+c;return d+c},getRGB(c){let p;return c in y?(p=y[c],{r:p[0],g:p[1],b:p[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(p=C.exec(c.replace(/ /g,"")),{r:parseInt(p[1],10),g:parseInt(p[2],10),b:parseInt(p[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const p=y[c.toLowerCase()];return p?{r:p[0],g:p[1],b:p[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const p=c.split(/ *, */).map(Number);return{r:p[0],g:p[1],b:p[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const p=c.split(/ *, */).map((m,b)=>m.slice(-1)==="%"?b===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:p[0],g:p[1],b:p[2],a:p[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[p,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),b=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=b+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,p){return!(p.x>c.x+c.width||p.x+p.widthc.y+c.height||p.y+p.height1?(R=m,E=b,A=(m-T)*(m-T)+(b-k)*(b-k)):(R=c+V*(m-c),E=p+V*(b-p),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,p,m){const b=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return p.forEach(function(k,R){if(!m&&R===p.length-1)return;const E=p[(R+1)%p.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bp.length){const R=p;p=c,c=R}for(let R=0;R{p.width=0,p.height=0})},drawRoundedRectPath(c,p,m,b){let T=0,k=0,R=0,E=0;typeof b=="number"?T=k=R=E=Math.min(b,p/2,m/2):(T=Math.min(b[0]||0,p/2,m/2),k=Math.min(b[1]||0,p/2,m/2),E=Math.min(b[2]||0,p/2,m/2),R=Math.min(b[3]||0,p/2,m/2)),c.moveTo(T,0),c.lineTo(p-k,0),c.arc(p-k,k,k,Math.PI*3/2,0,!1),c.lineTo(p,m-E),c.arc(p-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},Et={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=DJ;ht.alphaComponent=FJ;ht.getNumberValidator=jJ;ht.getNumberOrArrayOfNumbersValidator=zJ;ht.getNumberOrAutoValidator=VJ;ht.getStringValidator=BJ;ht.getStringOrGradientValidator=UJ;ht.getFunctionValidator=HJ;ht.getNumberArrayValidator=WJ;ht.getBooleanValidator=$J;ht.getComponentValidator=GJ;const _s=Tt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function DJ(e){return e>255?255:e<0?0:Math.round(e)}function FJ(e){return e>1?1:e<1e-4?1e-4:e}function jJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function zJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function VJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function BJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function GJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,w=t.Util._capitalize,S=n+w(a),_=o+w(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+w(g),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const w=this.attrs[a];return w===void 0?l:w},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),w=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[w]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(Et);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Yj=Lr,KJ=Tt;function qJ(e){const t=[],r=e.length,n=Yj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=YJ+d.join(J8)+XJ)):(i+=l.property,t||(i+=tee+l.val)),i+=JJ;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=nee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,w=this._context;v.length===3?w.drawImage(t,r,n):v.length===5?w.drawImage(t,r,n,o,i):v.length===9&&w.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=eE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=qJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(F2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,um=Et,Y0=za,Gs=Tt,qi=F2,Xr=ht,Yb="absoluteOpacity",rb="allEventListeners",$l="absoluteTransform",tE="absoluteScale",Dc="canvas",dee="Change",fee="children",pee="konva",s4="listening",rE="mouseenter",nE="mouseleave",oE="set",iE="Shape",Xb=" ",aE="stage",Xs="transform",hee="Stage",u4="visible",gee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Xb);let vee=1,_t=class c4{constructor(t){this._id=vee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Xb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,w=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,_=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+_,l-=d,s-=d;const P=new Y0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new Y0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new Y0.HitCanvas({pixelRatio:w,width:o,height:i}),g=P.getContext(),h=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),g.save(),h.save(),g.translate(-l,-s),h.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Yb),this._clearSelfAndDescendantCache(tE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,g.restore(),h.restore(),v&&(g.save(),g.beginPath(),g.rect(0,0,o,i),g.closePath(),g.setAttr("strokeStyle","red"),g.setAttr("lineWidth",5),g.stroke(),g.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==fee&&(n=oE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(s4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(u4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==hee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Yb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=c4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Nx.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Nx.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,w=n===this;if(v){a.save();const _=this.getAbsoluteTransform(n);let P=_.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),g=this.clipY();a.rect(C||0,g||0,l,s)}a.clip.apply(a,y),P=_.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!w&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(_){_[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(_){if(!_.visible())return;const P=_.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const w=this.find("Shape");let S=!1;for(let _=0;_ce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",ne=ce=>{const J=te(ce);if(J==="pointer")return o.Konva.pointerEventsEnabled&&X.pointer;if(J==="touch")return X.touch;if(J==="mouse")return X.mouse};function se(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const ve="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class we extends n.Container{constructor(J){super(se(J)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{se(this.attrs)}),this._checkVisibility()}_validateAdd(J){const oe=J.getType()==="Layer",ue=J.getType()==="FastLayer";oe||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const J=this.visible()?"":"none";this.content.style.display=J}setContainer(J){if(typeof J===v){if(J.charAt(0)==="."){const ue=J.slice(1);J=document.getElementsByClassName(ue)[0]}else{var oe;J.charAt(0)!=="#"?oe=J:oe=J.slice(1),J=document.getElementById(oe)}if(!J)throw"Can not find container in document with id "+oe}return this._setAttr("container",J),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),J.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const J=this.children,oe=J.length;for(let ue=0;ue-1&&e.stages.splice(oe,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const J=this._pointerPositions[0]||this._changedPointerPositions[0];return J?{x:J.x,y:J.y}:(t.Util.warn(ve),null)}_getPointerById(J){return this._pointerPositions.find(oe=>oe.id===J)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(J){J=J||{},J.x=J.x||0,J.y=J.y||0,J.width=J.width||this.width(),J.height=J.height||this.height();const oe=new i.SceneCanvas({width:J.width,height:J.height,pixelRatio:J.pixelRatio||1}),ue=oe.getContext()._context,Se=this.children;return(J.x||J.y)&&ue.translate(-1*J.x,-1*J.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Me=Ce._toKonvaCanvas(J);ue.drawImage(Me._canvas,J.x,J.y,Me.getWidth()/Me.getPixelRatio(),Me.getHeight()/Me.getPixelRatio())}),oe}getIntersection(J){if(!J)return null;const oe=this.children,ue=oe.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Me=oe[Ce].getIntersection(J);if(Me)return Me}return null}_resizeDOM(){const J=this.width(),oe=this.height();this.content&&(this.content.style.width=J+w,this.content.style.height=oe+w),this.bufferCanvas.setSize(J,oe),this.bufferHitCanvas.setSize(J,oe),this.children.forEach(ue=>{ue.setSize({width:J,height:oe}),ue.draw()})}add(J,...oe){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),J.setSize({width:this.width(),height:this.height()}),J.draw(),o.Konva.isBrowser&&this.content.appendChild(J.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(J){return s.hasPointerCapture(J,this)}setPointerCapture(J){s.setPointerCapture(J,this)}releaseCapture(J){s.releaseCapture(J,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([J,oe])=>{this.content.addEventListener(J,ue=>{this[oe](ue)},{passive:!1})})}_pointerenter(J){this.setPointersPositions(J);const oe=ne(J.type);oe&&this._fire(oe.pointerenter,{evt:J,target:this,currentTarget:this})}_pointerover(J){this.setPointersPositions(J);const oe=ne(J.type);oe&&this._fire(oe.pointerover,{evt:J,target:this,currentTarget:this})}_getTargetShape(J){let oe=this[J+"targetShape"];return oe&&!oe.getStage()&&(oe=null),oe}_pointerleave(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(oe.pointerout,{evt:J}),Se._fireAndBubble(oe.pointerleave,{evt:J}),this._fire(oe.pointerleave,{evt:J,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(oe.pointerleave,{evt:J,target:this,currentTarget:this}),this._fire(oe.pointerout,{evt:J,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Me=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Me||!Me.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Me.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Me,Me._fireAndBubble(oe.pointerdown,{evt:J,pointerId:Ce.id}),Se=!0;const Ie=J.type.indexOf("touch")>=0;Me.preventDefault()&&J.cancelable&&Ie&&J.preventDefault()}),Se||this._fire(oe.pointerdown,{evt:J,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(J){const oe=ne(J.type),ue=te(J.type);if(!oe||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&J.cancelable&&J.preventDefault(),this.setPointersPositions(J),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Me=!1;const Ie=this._getTargetShape(ue);this._changedPointerPositions.forEach(Re=>{const ye=s.getCapturedShape(Re.id)||this.getIntersection(Re),ke=Re.id,ze={evt:J,pointerId:ke},Ye=Ie!==ye;if(Ye&&Ie&&(Ie._fireAndBubble(oe.pointerout,{...ze},ye),Ie._fireAndBubble(oe.pointerleave,{...ze},ye)),ye){if(Ce[ye._id])return;Ce[ye._id]=!0}ye&&ye.isListening()?(Me=!0,Ye&&(ye._fireAndBubble(oe.pointerover,{...ze},Ie),ye._fireAndBubble(oe.pointerenter,{...ze},Ie),this[ue+"targetShape"]=ye),ye._fireAndBubble(oe.pointermove,{...ze})):Ie&&(this._fire(oe.pointerover,{evt:J,target:this,currentTarget:this,pointerId:ke}),this[ue+"targetShape"]=null)}),Me||this._fire(oe.pointermove,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Me={};let Ie=!1;this._changedPointerPositions.forEach(Re=>{const ye=s.getCapturedShape(Re.id)||this.getIntersection(Re);if(ye){if(ye.releaseCapture(Re.id),Me[ye._id])return;Me[ye._id]=!0}const ke=Re.id,ze={evt:J,pointerId:ke};let Ye=!1;o.Konva["_"+ue+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),ye&&ye.isListening()?(Ie=!0,this[ue+"ClickEndShape"]=ye,ye._fireAndBubble(oe.pointerup,{...ze}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===ye&&(ye._fireAndBubble(oe.pointerclick,{...ze}),Ye&&Ce&&Ce===ye&&ye._fireAndBubble(oe.pointerdblclick,{...ze}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(oe.pointerclick,{evt:J,target:this,currentTarget:this,pointerId:ke}),Ye&&this._fire(oe.pointerdblclick,{evt:J,target:this,currentTarget:this,pointerId:ke}))}),Ie||this._fire(oe.pointerup,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,J.cancelable&&ue!=="touch"&&ue!=="pointer"&&J.preventDefault()}_contextmenu(J){this.setPointersPositions(J);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(F,{evt:J}):this._fire(F,{evt:J,target:this,currentTarget:this})}_wheel(J){this.setPointersPositions(J);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(re,{evt:J}):this._fire(re,{evt:J,target:this,currentTarget:this})}_pointercancel(J){this.setPointersPositions(J);const oe=s.getCapturedShape(J.pointerId)||this.getIntersection(this.getPointerPosition());oe&&oe._fireAndBubble(m,s.createEvent(J)),s.releaseCapture(J.pointerId)}_lostpointercapture(J){s.releaseCapture(J.pointerId)}setPointersPositions(J){const oe=this._getContentPosition();let ue=null,Se=null;J=J||window.event,J.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(J.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})}),Array.prototype.forEach.call(J.changedTouches||J.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})})):(ue=(J.clientX-oe.left)/oe.scaleX,Se=(J.clientY-oe.top)/oe.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}])}_setPointerPosition(J){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(J)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const J=this.content.getBoundingClientRect();return{top:J.top,left:J.left,scaleX:J.width/this.content.clientWidth||1,scaleY:J.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const J=this.container();if(!J)throw"Stage has no container. A container is required.";J.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),J.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(J){J.batchDraw()}),this}}e.Stage=we,we.prototype.nodeType=d,(0,l._registerNode)(we),r.Factory.addGetterSetter(we,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(Zj);var cm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Tt,r=Lr,n=Et,o=Cr,i=ht,a=Tt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",w="linearGradient",S="radialGradient";let _;function P(){return _||(_=r.Util.createCanvasElement().getContext("2d"),_)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function g(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function h(R){R.stroke()}function c(){this._clearCache(s)}function p(){this._clearCache(d)}function m(){this._clearCache(v)}function b(){this._clearCache(w)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(w,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let H=0;Hthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),H=this.getAbsoluteOpacity()!==1;if(V&&B&&H)return!0;const Y=this.hasShadow(),re=this.shadowForStrokeEnabled();return!!(V&&B&&Y&&re)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,H=this.getSelfRect(),re=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=H.width+re,W=H.height+re,X=!E.skipShadow&&this.hasShadow(),te=X?this.shadowOffsetX():0,ne=X?this.shadowOffsetY():0,se=Q+Math.abs(te),ve=W+Math.abs(ne),we=X&&this.shadowBlur()||0,ce=se+we*2,J=ve+we*2,oe={width:ce,height:J,x:-(re/2+we)+Math.min(te,0)+H.x,y:-(re/2+we)+Math.min(ne,0)+H.y};return V?oe:this._transformedRect(oe,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),H=B.getContext(),Y=this._getCanvasCache(),re=this.getSceneFunc(),Q=this.hasShadow(),W,X;const te=B.isCache,ne=A===this;if(!this.isVisible()&&!ne)return this;if(Y){H.save();const ve=this.getAbsoluteTransform(A).getMatrix();return H.transform(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5]),this._drawCachedSceneCanvas(H),H.restore(),this}if(!re)return this;if(H.save(),this._useBufferCanvas()&&!te){W=this.getStage();const ve=F||W.bufferCanvas;X=ve.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var se=this.getAbsoluteTransform(A).getMatrix();X.transform(se[0],se[1],se[2],se[3],se[4],se[5]),re.call(this,X,this),X.restore();const we=ve.pixelRatio;Q&&H._applyShadow(this),H._applyOpacity(this),H._applyGlobalCompositeOperation(this),H.drawImage(ve._canvas,0,0,ve.width/we,ve.height/we)}else{if(H._applyLineJoin(this),!ne){var se=this.getAbsoluteTransform(A).getMatrix();H.transform(se[0],se[1],se[2],se[3],se[4],se[5]),H._applyOpacity(this),H._applyGlobalCompositeOperation(this)}Q&&H._applyShadow(this),re.call(this,H,this)}return H.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,H=B&&B.getContext(),Y=this.hitFunc()||this.sceneFunc(),re=this._getCanvasCache(),Q=re&&re.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){H.save();const X=this.getAbsoluteTransform(A).getMatrix();return H.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(H),H.restore(),this}if(!Y)return this;if(H.save(),H._applyLineJoin(this),!(this===A)){const X=this.getAbsoluteTransform(A).getMatrix();H.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return Y.call(this,H,this),H.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),H=V.getWidth(),Y=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,H,Y);try{const re=B.getImageData(0,0,H,Y),Q=re.data,W=Q.length,X=r.Util._hexToRgb(this.colorKey);for(let te=0;teE?(Q[te]=X.r,Q[te+1]=X.g,Q[te+2]=X.b,Q[te+3]=255):Q[te+3]=0;B.putImageData(re,0,0)}catch(re){r.Util.error("Unable to draw hit graph from cached scene canvas. "+re.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=g,k.prototype._strokeFuncHit=h,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",p),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",b),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(cm,"__esModule",{value:!0});cm.Layer=void 0;const Hl=Lr,Ax=Ed,If=Cr,AT=Et,lE=za,_ee=ht,xee=_n,See=Tt,Cee="#",Pee="beforeDraw",Tee="draw",tz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Oee=tz.length;let xh=class extends Ax.Container{constructor(t){super(t),this.canvas=new lE.SceneCanvas,this.hitCanvas=new lE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Pee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Ax.Container.prototype.drawScene.call(this,o,r),this._fire(Tee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Ax.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};cm.Layer=xh;xh.prototype.nodeType="Layer";(0,See._registerNode)(xh);AT.Factory.addGetterSetter(xh,"imageSmoothingEnabled",!0);AT.Factory.addGetterSetter(xh,"clearBeforeDraw",!0);AT.Factory.addGetterSetter(xh,"hitGraphEnabled",!0,(0,_ee.getBooleanValidator)());var z2={};Object.defineProperty(z2,"__esModule",{value:!0});z2.FastLayer=void 0;const kee=Lr,Eee=cm,Mee=Tt;class IT extends Eee.Layer{constructor(t){super(t),this.listening(!1),kee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}z2.FastLayer=IT;IT.prototype.nodeType="FastLayer";(0,Mee._registerNode)(IT);var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.Group=void 0;const Ree=Lr,Nee=Ed,Aee=Tt;let LT=class extends Nee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Ree.Util.throw("You may only add groups and shapes to groups.")}};Sh.Group=LT;LT.prototype.nodeType="Group";(0,Aee._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Animation=void 0;const Ix=Tt,sE=Lr,Lx=(function(){return Ix.glob.performance&&Ix.glob.performance.now?function(){return Ix.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Lx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,g=C._id,h=P.easing||e.Easings.Linear,c=!!P.yoyo;let p,m;typeof P.duration>"u"?p=.3:P.duration===0?p=.001:p=P.duration,this.node=C,this._id=v++;const b=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);b||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},b),this.tween=new w(m,function(T){y._tweenFunc(T)},h,0,1,p*1e3,c),this._addListeners(),S.attrs[g]||(S.attrs[g]={}),S.attrs[g][this._id]||(S.attrs[g][this._id]={}),S.tweens[g]||(S.tweens[g]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,g=C._id;let h,c,p,m,b;const T=S.tweens[g][P];T&&delete S.attrs[g][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(h=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(p=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const g in C)delete S.tweens[P][g];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(_){const P=_.onFinish;_.node=this,_.onFinish=function(){this.destroy(),P&&P()},new S(_).play()},e.Easings={BackEaseIn(_,P,y,C){return y*(_/=C)*_*((1.70158+1)*_-1.70158)+P},BackEaseOut(_,P,y,C){return y*((_=_/C-1)*_*((1.70158+1)*_+1.70158)+1)+P},BackEaseInOut(_,P,y,C){let g=1.70158;return(_/=C/2)<1?y/2*(_*_*(((g*=1.525)+1)*_-g))+P:y/2*((_-=2)*_*(((g*=1.525)+1)*_+g)+2)+P},ElasticEaseIn(_,P,y,C,g,h){let c=0;return _===0?P:(_/=C)===1?P+y:(h||(h=C*.3),!g||g0?t:r),v=a*r,w=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:w,width:v-d,height:S-w}}}V2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Lee._registerNode)(Ss);B2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"angle",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,U2.getBooleanValidator)());var H2={},dm={};Object.defineProperty(dm,"__esModule",{value:!0});dm.Line=void 0;const W2=Et,Dee=Tt,Fee=_n,nz=ht;function d4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),w=r-d*(o-e),S=n-d*(i-t),_=r+v*(o-e),P=n+v*(i-t);return[w,S,_,P]}function cE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let _=0;_<20;_++)v=S*e.tValues[20][_]+S,d+=e.cValues[20][_]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],w=2*a[1]-2*a[0],S=2*l[1]-2*l[0],_=4*(d*d+v*v),P=4*(d*w+v*S),y=w*w+S*S;if(_===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*_),g=y/_,h=s+C,c=g-C*C,p=h*h+c>0?Math.sqrt(h*h+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,b=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((h+p)/(C+m))):0;return Math.sqrt(_)/2*(h*p-C*m+b)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),w=d*d+v*v;return Math.sqrt(w)}const o=(a,l,s)=>{const d=s.length-1;let v,w;if(d===0)return 0;if(a===0){w=0;for(let S=0;S<=d;S++)w+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return w}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,w=(a-s(v))/l,S=0;for(;d>.001;){const _=s(v+w),P=Math.abs(a-_)/l;if(P500)break}return v};e.t2length=i})(oz);Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Path=void 0;const jee=Et,zee=_n,Vee=Tt,Lf=oz;class hn extends zee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,_=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(_,P),t.arc(0,0,S,s,s+d,1-w),t.scale(1/_,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],w=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-w)w;_-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],_,0);t.push(P.x,P.y)}else for(let _=d+S;_r[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],w=l[3],S=l[4],_=l[5],P=l[6];return S+=_*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,w,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,_,P,y,C,g,h,c,p,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var b=E.shift(),T=E.shift();if(s+=b,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let H=a.length-2;H>=0;H--)if(a[H].command==="M"){s=a[H].points[0]+b,d=a[H].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":_=s,P=d,S=a[a.length-1],S.command==="C"&&(_=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(_,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":_=s,P=d,S=a[a.length-1],S.command==="C"&&(_=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(_,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":_=s,P=d,S=a[a.length-1],S.command==="Q"&&(_=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(_,P,s,d);break;case"t":_=s,P=d,S=a[a.length-1],S.command==="Q"&&(_=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(_,P,s,d);break;case"A":y=E.shift(),C=E.shift(),g=E.shift(),h=E.shift(),c=E.shift(),p=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(p,m,s,d,h,c,y,C,g);break;case"a":y=E.shift(),C=E.shift(),g=E.shift(),h=E.shift(),c=E.shift(),p=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(p,m,s,d,h,c,y,C,g);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],w=o[5],S=o[4]+w,_=Math.PI/180;if(Math.abs(v-S)<_&&(_=Math.abs(v-S)),a=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],v,0),w<0)for(s=v-_;s>S;s-=_)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+_;s1&&(l*=Math.sqrt(_),s*=Math.sqrt(_));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(w*w))/(l*l*(S*S)+s*s*(w*w)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*w/l,g=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,h=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},p=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[g,h,l,s,b,R,v,a]}}Ph.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Vee._registerNode)(hn);jee.Factory.addGetterSetter(hn,"data");Object.defineProperty(H2,"__esModule",{value:!0});H2.Arrow=void 0;const $2=Et,Bee=dm,iz=ht,Uee=Tt,dE=Ph;class Rd extends Bee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],_=dE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=dE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/_),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,w=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,w/2),t.lineTo(-a,-w/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,w/2),t.lineTo(-a,-w/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}H2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Uee._registerNode)(Rd);$2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,iz.getNumberValidator)());$2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,iz.getNumberValidator)());$2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);$2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var G2={};Object.defineProperty(G2,"__esModule",{value:!0});G2.Circle=void 0;const Hee=Et,Wee=_n,$ee=ht,Gee=Tt;let Th=class extends Wee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};G2.Circle=Th;Th.prototype._centroid=!0;Th.prototype.className="Circle";Th.prototype._attrsAffectingSize=["radius"];(0,Gee._registerNode)(Th);Hee.Factory.addGetterSetter(Th,"radius",0,(0,$ee.getNumberValidator)());var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.Ellipse=void 0;const DT=Et,Kee=_n,az=ht,qee=Tt;class Gu extends Kee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}K2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,qee._registerNode)(Gu);DT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);DT.Factory.addGetterSetter(Gu,"radiusX",0,(0,az.getNumberValidator)());DT.Factory.addGetterSetter(Gu,"radiusY",0,(0,az.getNumberValidator)());var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Image=void 0;const Dx=Lr,Nd=Et,Yee=_n,Xee=Tt,fm=ht;let xl=class lz extends Yee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?Dx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?Dx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=Dx.Util.createImageElement();o.onload=function(){const i=new lz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};q2.Image=xl;xl.prototype.className="Image";(0,Xee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,fm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,fm.getNumberValidator)());var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.Tag=Jp.Label=void 0;const Y2=Et,Qee=_n,Zee=Sh,FT=ht,sz=Tt,uz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],Jee="Change.konva",ete="none",f4="up",p4="right",h4="down",g4="left",tte=uz.length;class jT extends Zee.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Q2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,ste._registerNode)(Id);cz.Factory.addGetterSetter(Id,"radius",0,(0,dz.getNumberValidator)());cz.Factory.addGetterSetter(Id,"sides",0,(0,dz.getNumberValidator)());var Z2={};Object.defineProperty(Z2,"__esModule",{value:!0});Z2.Ring=void 0;const fz=Et,ute=_n,pz=ht,cte=Tt,fE=Math.PI*2;class Ld extends ute.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,fE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),fE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}Z2.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,cte._registerNode)(Ld);fz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,pz.getNumberValidator)());fz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,pz.getNumberValidator)());var J2={};Object.defineProperty(J2,"__esModule",{value:!0});J2.Sprite=void 0;const Dd=Et,dte=_n,fte=Ch,hz=ht,pte=Tt;class Sl extends dte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new fte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],w=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),w)if(a){const S=a[r],_=n*2;t.drawImage(w,l,s,d,v,S[_+0],S[_+1],d,v)}else t.drawImage(w,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",yte="center",gz="inherit",X0="justify",bte="Change.konva",wte="2d",pE="-",vz="left",_te="text",xte="Text",Ste="top",Cte="bottom",hE="middle",mz="normal",Pte="px ",nb=" ",Tte="right",gE="rtl",Ote="word",kte="char",vE="none",jx="…",yz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Ete=yz.length;function Mte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ob;function zx(){return ob||(ob=v4.Util.createCanvasElement().getContext(wte),ob)}function Rte(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Nte(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Ate(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends vte.Shape{constructor(t){super(Ate(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(h+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=v4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(_te,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return v4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,w,S;let _=zx(),P=this.fontSize(),y;_.save(),_.font=this._getContextFont(),y=_.measureText(t),_.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(w=y.hangingBaseline)!==null&&w!==void 0?w:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+nb+this.fontVariant()+nb+(this.fontSize()+Pte)+Mte(this.fontFamily())}_addTextLine(t){this.align()===X0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return zx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` +`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,w=a-d*2,S=0,_=this.wrap(),P=_!==vE,y=_!==kte&&P,C=this.ellipsis();this.textArr=[],zx().font=this._getContextFont();const g=C?this._getTextWidth(jx):0;for(let h=0,c=t.length;hv)for(;p.length>0;){let b=0,T=Bc(p).length,k="",R=0;for(;b>>1,A=Bc(p),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+g;V<=v?(b=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(p),V=Bc(k),B=F[V.length],H=B===nb||B===pE;let Y;if(H&&R<=v)Y=V.length;else{const re=V.lastIndexOf(nb),Q=V.lastIndexOf(pE);Y=Math.max(re,Q)+1}Y>0&&(b=Y,k=F.slice(0,b).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(p=Bc(p).slice(b).join("").trimLeft(),p.length>0&&(m=this._getTextWidth(p),m<=v)){this._addTextLine(p),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(p),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&hw)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==vE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+jx)r?null:Q0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Q0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Sz}`).join(" "),bE="nodesRect",Bte=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Ute={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Hte="ontouchstart"in Pa.Konva._global;function Wte(e,t,r){if(e==="rotater")return r;t+=tr.Util.degToRad(Ute[e]||0);const n=(tr.Util.radToDeg(t)%360+360)%360;return tr.Util._inRange(n,315+22.5,360)||tr.Util._inRange(n,0,22.5)?"ns-resize":tr.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":tr.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":tr.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":tr.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":tr.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":tr.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":tr.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(tr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const _w=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function $te(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Cz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function Gte(e,t){const r=$te(e);return Cz(e,t,r)}function Kte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(tr.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Bte.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(bE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(bE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Cz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),w=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();w.forEach(function(_){const P=S.point(_);r.push(P)})});const n=new tr.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),_w.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new jte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Hte?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=Wte(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new Fte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*tr.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},m4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let b=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(b-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+b,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=Kte(this.rotationSnaps(),k,R)-m.rotation,F=Gte(m,A);this._fitNodesInto(F,t);return}const w=this.shiftBehavior();let S;w==="inverted"?S=this.keepRatio()&&!t.shiftKey:w==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var g=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var _=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(_.x-i.x(),2)+Math.pow(_.y-i.y(),2));var P=this.findOne(".top-left").x()>_.x?-1:1,y=this.findOne(".top-left").y()>_.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(_.x-r),this.findOne(".top-left").y(_.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var _=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-_.x,2)+Math.pow(_.y-i.y(),2));var P=this.findOne(".top-right").x()<_.x?-1:1,y=this.findOne(".top-right").y()>_.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(_.x+r),this.findOne(".top-right").y(_.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var _=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(_.x-i.x(),2)+Math.pow(i.y()-_.y,2));var P=_.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(tr.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tr.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new tr.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:tr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new tr.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new tr.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const w=s.multiply(l.invert());this._nodes.forEach(S=>{var _;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new tr.Transform;C.multiply(P.copy().invert()).multiply(w).multiply(P).multiply(y);const g=C.decompose();S.setAttrs(g),(_=S.getLayer())===null||_===void 0||_.batchDraw()}),this.rotation(tr.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(tr.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(w=>{w.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*tr.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(w=>{v(w)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),yE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return mE.Node.prototype.toObject.call(this)}clone(t){return mE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}r5.Transformer=Bt;Bt.isTransforming=()=>m4>0;function qte(e){return e instanceof Array||tr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){_w.indexOf(t)===-1&&tr.Util.warn("Unknown anchor name: "+t+". Available names are: "+_w.join(", "))}),e||[]}Bt.prototype.className="Transformer";(0,zte._registerNode)(Bt);qt.Factory.addGetterSetter(Bt,"enabledAnchors",_w,qte);qt.Factory.addGetterSetter(Bt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());qt.Factory.addGetterSetter(Bt,"resizeEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorSize",10,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateEnabled",!0);qt.Factory.addGetterSetter(Bt,"rotateLineVisible",!0);qt.Factory.addGetterSetter(Bt,"rotationSnaps",[]);qt.Factory.addGetterSetter(Bt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateAnchorCursor","crosshair");qt.Factory.addGetterSetter(Bt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"anchorFill","white");qt.Factory.addGetterSetter(Bt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderDash");qt.Factory.addGetterSetter(Bt,"keepRatio",!0);qt.Factory.addGetterSetter(Bt,"shiftBehavior","default");qt.Factory.addGetterSetter(Bt,"centeredScaling",!1);qt.Factory.addGetterSetter(Bt,"ignoreStroke",!1);qt.Factory.addGetterSetter(Bt,"padding",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"nodes");qt.Factory.addGetterSetter(Bt,"node");qt.Factory.addGetterSetter(Bt,"boundBoxFunc");qt.Factory.addGetterSetter(Bt,"anchorDragBoundFunc");qt.Factory.addGetterSetter(Bt,"anchorStyleFunc");qt.Factory.addGetterSetter(Bt,"shouldOverdrawWholeArea",!1);qt.Factory.addGetterSetter(Bt,"useSingleNodeRotation",!0);qt.Factory.backCompat(Bt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var n5={};Object.defineProperty(n5,"__esModule",{value:!0});n5.Wedge=void 0;const o5=Et,Yte=_n,Xte=Tt,Pz=ht,Qte=Tt;class Cs extends Yte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Xte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}n5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Qte._registerNode)(Cs);o5.Factory.addGetterSetter(Cs,"radius",0,(0,Pz.getNumberValidator)());o5.Factory.addGetterSetter(Cs,"angle",0,(0,Pz.getNumberValidator)());o5.Factory.addGetterSetter(Cs,"clockwise",!1);o5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var i5={};Object.defineProperty(i5,"__esModule",{value:!0});i5.Blur=void 0;const wE=Et,Zte=Cr,Jte=ht;function _E(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const ere=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],tre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function rre(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,w,S,_,P,y,C,g,h,c,p,m,b,T,k,R,E,A,F;const V=t+t+1,B=n-1,H=o-1,Y=t+1,re=Y*(Y+1)/2,Q=new _E,W=ere[t],X=tre[t];let te=null,ne=Q,se=null,ve=null;for(l=1;l>X,A!==0?(A=255/A,r[v]=(S*W>>X)*A,r[v+1]=(_*W>>X)*A,r[v+2]=(P*W>>X)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,_-=g,P-=h,y-=c,C-=se.r,g-=se.g,h-=se.b,c-=se.a,s=w+((s=i+t+1)>X,A>0?(A=255/A,r[s]=(S*W>>X)*A,r[s+1]=(_*W>>X)*A,r[s+2]=(P*W>>X)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,_-=g,P-=h,y-=c,C-=se.r,g-=se.g,h-=se.b,c-=se.a,s=i+((s=a+Y)0&&rre(t,r)};i5.Blur=nre;wE.Factory.addGetterSetter(Zte.Node,"blurRadius",0,(0,Jte.getNumberValidator)(),wE.Factory.afterSetFilter);var a5={};Object.defineProperty(a5,"__esModule",{value:!0});a5.Brighten=void 0;const xE=Et,ore=Cr,ire=ht,are=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};l5.Contrast=ure;SE.Factory.addGetterSetter(lre.Node,"contrast",0,(0,sre.getNumberValidator)(),SE.Factory.afterSetFilter);var s5={};Object.defineProperty(s5,"__esModule",{value:!0});s5.Emboss=void 0;const Lu=Et,u5=Cr,cre=Lr,Tz=ht,dre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,w=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:cre.Util.error("Unknown emboss direction: "+n)}do{const S=(w-1)*s;let _=d;w+_<1&&(_=0),w+_>l&&(_=0);const P=(w-1+_)*a*4;let y=a;do{const C=S+(y-1)*4;let g=v;y+g<1&&(g=0),y+g>a&&(g=0);const h=P+(y-1+g)*4,c=i[C]-i[h],p=i[C+1]-i[h+1],m=i[C+2]-i[h+2];let b=c;const T=b>0?b:-b,k=p>0?p:-p,R=m>0?m:-m;if(k>T&&(b=p),R>T&&(b=m),b*=t,o){const E=i[C]+b,A=i[C+1]+b,F=i[C+2]+b;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-b;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--w)};s5.Emboss=dre;Lu.Factory.addGetterSetter(u5.Node,"embossStrength",.5,(0,Tz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossWhiteLevel",.5,(0,Tz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var c5={};Object.defineProperty(c5,"__esModule",{value:!0});c5.Enhance=void 0;const CE=Et,fre=Cr,pre=ht;function Ux(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const hre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,w;const S=this.enhance();if(S===0)return;for(let b=0;bo&&(o=i),s=t[b+1],sl&&(l=s),w=t[b+2],wv&&(v=w);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let _,P,y,C,g,h,c,p,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),g=l+S*(255-l),h=a-S*(a-0),p=v+S*(255-v),m=d-S*(d-0)):(_=(o+n)*.5,P=o+S*(o-_),y=n+S*(n-_),C=(l+a)*.5,g=l+S*(l-C),h=a+S*(a-C),c=(v+d)*.5,p=v+S*(v-c),m=d+S*(d-c));for(let b=0;bd?S:d;const _=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const _=a,P=i,y=0;let C,g;for(v=0;vt&&(p=c,m=0,b=-1),o=0;o=0&&_=0&&P=0&&_=0&&P=1020?255:0}return a}function Ere(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&_=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=p[a+0],s+=p[a+1],d+=p[a+2],v+=p[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=_;o=r))for(i=y;i=n||(a=(r*i+o)*4,p[a+0]=l,p[a+1]=s,p[a+2]=d,p[a+3]=v)}};y5.Pixelate=Fre;kE.Factory.addGetterSetter(Lre.Node,"pixelSize",8,(0,Dre.getNumberValidator)(),kE.Factory.afterSetFilter);var b5={};Object.defineProperty(b5,"__esModule",{value:!0});b5.Posterize=void 0;const EE=Et,jre=Cr,zre=ht,Vre=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Sw.Factory.addGetterSetter($T.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Sw.Factory.addGetterSetter($T.Node,"blue",0,Bre.RGBComponent,Sw.Factory.afterSetFilter);var _5={};Object.defineProperty(_5,"__esModule",{value:!0});_5.RGBA=void 0;const Mv=Et,x5=Cr,Hre=ht,Wre=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(x5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(x5.Node,"blue",0,Hre.RGBComponent,Mv.Factory.afterSetFilter);Mv.Factory.addGetterSetter(x5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var S5={};Object.defineProperty(S5,"__esModule",{value:!0});S5.Sepia=void 0;const $re=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),w>127&&(w=255-w),t[s]=d,t[s+1]=v,t[s+2]=w}while(--l)}while(--i)};C5.Solarize=Gre;var P5={};Object.defineProperty(P5,"__esModule",{value:!0});P5.Threshold=void 0;const ME=Et,Kre=Cr,qre=ht,Yre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;ole||L[K]!==j[le]){var me=` -`+L[K].replace(" at new "," at ");return u.displayName&&me.includes("")&&(me=me.replace("",u.displayName)),me}while(1<=K&&0<=le);break}}}finally{jn=!1,Error.prepareStackTrace=O}return(u=u?u.displayName||u.name:"")?Fr(u):""}var ji=Object.prototype.hasOwnProperty,zn=[],un=-1;function Zr(u){return{current:u}}function Nt(u){0>un||(u.current=zn[un],zn[un]=null,un--)}function Ue(u,p){un++,zn[un]=u.current,u.current=p}var At={},at=Zr(At),tt=Zr(!1),xt=At;function cn(u,p){var O=u.type.contextTypes;if(!O)return At;var N=u.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===p)return N.__reactInternalMemoizedMaskedChildContext;var L={},j;for(j in O)L[j]=p[j];return N&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=p,u.__reactInternalMemoizedMaskedChildContext=L),L}function wr(u){return u=u.childContextTypes,u!=null}function wo(){Nt(tt),Nt(at)}function qa(u,p,O){if(at.current!==At)throw Error(a(168));Ue(at,p),Ue(tt,O)}function Qu(u,p,O){var N=u.stateNode;if(p=p.childContextTypes,typeof N.getChildContext!="function")return O;N=N.getChildContext();for(var L in N)if(!(L in p))throw Error(a(108,k(u)||"Unknown",L));return i({},O,N)}function jd(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||At,xt=at.current,Ue(at,u),Ue(tt,tt.current),!0}function gm(u,p,O){var N=u.stateNode;if(!N)throw Error(a(169));O?(u=Qu(u,p,xt),N.__reactInternalMemoizedMergedChildContext=u,Nt(tt),Nt(at),Ue(at,u)):Nt(tt),Ue(tt,O)}var oi=Math.clz32?Math.clz32:Tl,U5=Math.log,vm=Math.LN2;function Tl(u){return u>>>=0,u===0?32:31-(U5(u)/vm|0)|0}var Ol=64,Zu=4194304;function ks(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Ju(u,p){var O=u.pendingLanes;if(O===0)return 0;var N=0,L=u.suspendedLanes,j=u.pingedLanes,K=O&268435455;if(K!==0){var le=K&~L;le!==0?N=ks(le):(j&=K,j!==0&&(N=ks(j)))}else K=O&~L,K!==0?N=ks(K):j!==0&&(N=ks(j));if(N===0)return 0;if(p!==0&&p!==N&&(p&L)===0&&(L=N&-N,j=p&-p,L>=j||L===16&&(j&4194240)!==0))return p;if((N&4)!==0&&(N|=O&16),p=u.entangledLanes,p!==0)for(u=u.entanglements,p&=N;0O;O++)p.push(u);return p}function Ya(u,p,O){u.pendingLanes|=p,p!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,p=31-oi(p),u[p]=O}function H5(u,p){var O=u.pendingLanes&~p;u.pendingLanes=p,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=p,u.mutableReadLanes&=p,u.entangledLanes&=p,p=u.entanglements;var N=u.eventTimes;for(u=u.expirationTimes;0>=K,L-=K,Vi=1<<32-oi(p)+L|O<vt?(ft=ct,ct=null):ft=ct.sibling;var Ne=Ae(we,ct,Pe[vt],Ve);if(Ne===null){ct===null&&(ct=ft);break}u&&ct&&Ne.alternate===null&&p(we,ct),he=j(Ne,he,vt),mt===null?et=Ne:mt.sibling=Ne,mt=Ne,ct=ft}if(vt===Pe.length)return O(we,ct),ar&&Ml(we,vt),et;if(ct===null){for(;vtvt?(ft=ct,ct=null):ft=ct.sibling;var rt=Ae(we,ct,Ne.value,Ve);if(rt===null){ct===null&&(ct=ft);break}u&&ct&&rt.alternate===null&&p(we,ct),he=j(rt,he,vt),mt===null?et=rt:mt.sibling=rt,mt=rt,ct=ft}if(Ne.done)return O(we,ct),ar&&Ml(we,vt),et;if(ct===null){for(;!Ne.done;vt++,Ne=Pe.next())Ne=ze(we,Ne.value,Ve),Ne!==null&&(he=j(Ne,he,vt),mt===null?et=Ne:mt.sibling=Ne,mt=Ne);return ar&&Ml(we,vt),et}for(ct=N(we,ct);!Ne.done;vt++,Ne=Pe.next())Ne=Et(ct,we,vt,Ne.value,Ve),Ne!==null&&(u&&Ne.alternate!==null&&ct.delete(Ne.key===null?vt:Ne.key),he=j(Ne,he,vt),mt===null?et=Ne:mt.sibling=Ne,mt=Ne);return u&&ct.forEach(function(Un){return p(we,Un)}),ar&&Ml(we,vt),et}function On(we,he,Pe,Ve){if(typeof Pe=="object"&&Pe!==null&&Pe.type===v&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case s:e:{for(var et=Pe.key,mt=he;mt!==null;){if(mt.key===et){if(et=Pe.type,et===v){if(mt.tag===7){O(we,mt.sibling),he=L(mt,Pe.props.children),he.return=we,we=he;break e}}else if(mt.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===c&&So(et)===mt.type){O(we,mt.sibling),he=L(mt,Pe.props),he.ref=lc(we,mt,Pe),he.return=we,we=he;break e}O(we,mt);break}else p(we,mt);mt=mt.sibling}Pe.type===v?(he=I(Pe.props.children,we.mode,Ve,Pe.key),he.return=we,we=he):(Ve=M(Pe.type,Pe.key,Pe.props,null,we.mode,Ve),Ve.ref=lc(we,he,Pe),Ve.return=we,we=Ve)}return K(we);case d:e:{for(mt=Pe.key;he!==null;){if(he.key===mt)if(he.tag===4&&he.stateNode.containerInfo===Pe.containerInfo&&he.stateNode.implementation===Pe.implementation){O(we,he.sibling),he=L(he,Pe.children||[]),he.return=we,we=he;break e}else{O(we,he);break}else p(we,he);he=he.sibling}he=$(Pe,we.mode,Ve),he.return=we,we=he}return K(we);case c:return mt=Pe._init,On(we,he,mt(Pe._payload),Ve)}if(H(Pe))return bt(we,he,Pe,Ve);if(_(Pe))return Jt(we,he,Pe,Ve);sc(we,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,he!==null&&he.tag===6?(O(we,he.sibling),he=L(he,Pe),he.return=we,we=he):(O(we,he),he=z(Pe,we.mode,Ve),he.return=we,we=he),K(we)):O(we,he)}return On}var Ns=Lh(!0),Dh=Lh(!1),Xa=Zr(null),Xd=null,As=null,Fh=null;function uc(){Fh=As=Xd=null}function Qd(u,p,O){Se?(Ue(Xa,p._currentValue),p._currentValue=O):(Ue(Xa,p._currentValue2),p._currentValue2=O)}function jh(u){var p=Xa.current;Nt(Xa),Se?u._currentValue=p:u._currentValue2=p}function cc(u,p,O){for(;u!==null;){var N=u.alternate;if((u.childLanes&p)!==p?(u.childLanes|=p,N!==null&&(N.childLanes|=p)):N!==null&&(N.childLanes&p)!==p&&(N.childLanes|=p),u===O)break;u=u.return}}function Is(u,p){Xd=u,Fh=As=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&p)!==0&&(eo=!0),u.firstContext=null)}function Co(u){var p=Se?u._currentValue:u._currentValue2;if(Fh!==u)if(u={context:u,memoizedValue:p,next:null},As===null){if(Xd===null)throw Error(a(308));As=u,Xd.dependencies={lanes:0,firstContext:u}}else As=As.next=u;return p}var Bi=null;function dc(u){Bi===null?Bi=[u]:Bi.push(u)}function zh(u,p,O,N){var L=p.interleaved;return L===null?(O.next=O,dc(p)):(O.next=L.next,L.next=O),p.interleaved=O,Ui(u,N)}function Ui(u,p){u.lanes|=p;var O=u.alternate;for(O!==null&&(O.lanes|=p),O=u,u=u.return;u!==null;)u.childLanes|=p,O=u.alternate,O!==null&&(O.childLanes|=p),O=u,u=u.return;return O.tag===3?O.stateNode:null}var Qa=!1;function Vh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(u,p){u=u.updateQueue,p.updateQueue===u&&(p.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ci(u,p){return{eventTime:u,lane:p,tag:0,payload:null,callback:null,next:null}}function Za(u,p,O){var N=u.updateQueue;if(N===null)return null;if(N=N.shared,(St&2)!==0){var L=N.pending;return L===null?p.next=p:(p.next=L.next,L.next=p),N.pending=p,Ui(u,O)}return L=N.interleaved,L===null?(p.next=p,dc(N)):(p.next=L.next,L.next=p),N.interleaved=p,Ui(u,O)}function Zd(u,p,O){if(p=p.updateQueue,p!==null&&(p=p.shared,(O&4194240)!==0)){var N=p.lanes;N&=u.pendingLanes,O|=N,p.lanes=O,Bd(u,O)}}function Cm(u,p){var O=u.updateQueue,N=u.alternate;if(N!==null&&(N=N.updateQueue,O===N)){var L=null,j=null;if(O=O.firstBaseUpdate,O!==null){do{var K={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};j===null?L=j=K:j=j.next=K,O=O.next}while(O!==null);j===null?L=j=p:j=j.next=p}else L=j=p;O={baseState:N.baseState,firstBaseUpdate:L,lastBaseUpdate:j,shared:N.shared,effects:N.effects},u.updateQueue=O;return}u=O.lastBaseUpdate,u===null?O.firstBaseUpdate=p:u.next=p,O.lastBaseUpdate=p}function Jd(u,p,O,N){var L=u.updateQueue;Qa=!1;var j=L.firstBaseUpdate,K=L.lastBaseUpdate,le=L.shared.pending;if(le!==null){L.shared.pending=null;var me=le,ke=me.next;me.next=null,K===null?j=ke:K.next=ke,K=me;var Me=u.alternate;Me!==null&&(Me=Me.updateQueue,le=Me.lastBaseUpdate,le!==K&&(le===null?Me.firstBaseUpdate=ke:le.next=ke,Me.lastBaseUpdate=me))}if(j!==null){var ze=L.baseState;K=0,Me=ke=me=null,le=j;do{var Ae=le.lane,Et=le.eventTime;if((N&Ae)===Ae){Me!==null&&(Me=Me.next={eventTime:Et,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var bt=u,Jt=le;switch(Ae=p,Et=O,Jt.tag){case 1:if(bt=Jt.payload,typeof bt=="function"){ze=bt.call(Et,ze,Ae);break e}ze=bt;break e;case 3:bt.flags=bt.flags&-65537|128;case 0:if(bt=Jt.payload,Ae=typeof bt=="function"?bt.call(Et,ze,Ae):bt,Ae==null)break e;ze=i({},ze,Ae);break e;case 2:Qa=!0}}le.callback!==null&&le.lane!==0&&(u.flags|=64,Ae=L.effects,Ae===null?L.effects=[le]:Ae.push(le))}else Et={eventTime:Et,lane:Ae,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Me===null?(ke=Me=Et,me=ze):Me=Me.next=Et,K|=Ae;if(le=le.next,le===null){if(le=L.shared.pending,le===null)break;Ae=le,le=Ae.next,Ae.next=null,L.lastBaseUpdate=Ae,L.shared.pending=null}}while(!0);if(Me===null&&(me=ze),L.baseState=me,L.firstBaseUpdate=ke,L.lastBaseUpdate=Me,p=L.shared.interleaved,p!==null){L=p;do K|=L.lane,L=L.next;while(L!==p)}else j===null&&(L.shared.lanes=0);jl|=K,u.lanes=K,u.memoizedState=ze}}function Pm(u,p,O){if(u=p.effects,p.effects=null,u!==null)for(p=0;pO?O:4,u(!0);var N=of.transition;of.transition={};try{u(!1),p()}finally{zt=O,of.transition=N}}function mc(){return To().memoizedState}function Z5(u,p,O){var N=nl(u);if(O={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null},Am(u))Yh(p,O);else if(O=zh(u,p,O,N),O!==null){var L=pn();Uo(O,u,N,L),yc(O,p,N)}}function J5(u,p,O){var N=nl(u),L={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null};if(Am(u))Yh(p,L);else{var j=u.alternate;if(u.lanes===0&&(j===null||j.lanes===0)&&(j=p.lastRenderedReducer,j!==null))try{var K=p.lastRenderedState,le=j(K,O);if(L.hasEagerState=!0,L.eagerState=le,jo(le,K)){var me=p.interleaved;me===null?(L.next=L,dc(p)):(L.next=me.next,me.next=L),p.interleaved=L;return}}catch{}finally{}O=zh(u,p,L,N),O!==null&&(L=pn(),Uo(O,u,N,L),yc(O,p,N))}}function Am(u){var p=u.alternate;return u===lr||p!==null&&p===lr}function Yh(u,p){pc=fc=!0;var O=u.pending;O===null?p.next=p:(p.next=O.next,O.next=p),u.pending=p}function yc(u,p,O){if((O&4194240)!==0){var N=p.lanes;N&=u.pendingLanes,O|=N,p.lanes=O,Bd(u,O)}}var sf={readContext:Co,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},e_={readContext:Co,useCallback:function(u,p){return fi().memoizedState=[u,p===void 0?null:p],u},useContext:Co,useEffect:$h,useImperativeHandle:function(u,p,O){return O=O!=null?O.concat([u]):null,vc(4194308,4,Em.bind(null,p,u),O)},useLayoutEffect:function(u,p){return vc(4194308,4,u,p)},useInsertionEffect:function(u,p){return vc(4,2,u,p)},useMemo:function(u,p){var O=fi();return p=p===void 0?null:p,u=u(),O.memoizedState=[u,p],u},useReducer:function(u,p,O){var N=fi();return p=O!==void 0?O(p):p,N.memoizedState=N.baseState=p,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:p},N.queue=u,u=u.dispatch=Z5.bind(null,lr,u),[N.memoizedState,u]},useRef:function(u){var p=fi();return u={current:u},p.memoizedState=u},useState:ma,useDebugValue:tl,useDeferredValue:function(u){return fi().memoizedState=u},useTransition:function(){var u=ma(!1),p=u[0];return u=Q5.bind(null,u[1]),fi().memoizedState=u,[p,u]},useMutableSource:function(){},useSyncExternalStore:function(u,p,O){var N=lr,L=fi();if(ar){if(O===void 0)throw Error(a(407));O=O()}else{if(O=p(),Kr===null)throw Error(a(349));(Al&30)!==0||Hh(N,p,O)}L.memoizedState=O;var j={value:O,getSnapshot:p};return L.queue=j,$h(km.bind(null,N,j,u),[u]),N.flags|=2048,Fs(9,Om.bind(null,N,j,O,p),void 0,null),O},useId:function(){var u=fi(),p=Kr.identifierPrefix;if(ar){var O=va,N=Vi;O=(N&~(1<<32-oi(N)-1)).toString(32)+O,p=":"+p+"R"+O,O=Ls++,0")&&(me=me.replace("",u.displayName)),me}while(1<=K&&0<=le);break}}}finally{jn=!1,Error.prepareStackTrace=O}return(u=u?u.displayName||u.name:"")?Fr(u):""}var ji=Object.prototype.hasOwnProperty,zn=[],un=-1;function Zr(u){return{current:u}}function At(u){0>un||(u.current=zn[un],zn[un]=null,un--)}function He(u,f){un++,zn[un]=u.current,u.current=f}var It={},at=Zr(It),rt=Zr(!1),St=It;function cn(u,f){var O=u.type.contextTypes;if(!O)return It;var N=u.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===f)return N.__reactInternalMemoizedMaskedChildContext;var L={},j;for(j in O)L[j]=f[j];return N&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=f,u.__reactInternalMemoizedMaskedChildContext=L),L}function wr(u){return u=u.childContextTypes,u!=null}function wo(){At(rt),At(at)}function qa(u,f,O){if(at.current!==It)throw Error(a(168));He(at,f),He(rt,O)}function Qu(u,f,O){var N=u.stateNode;if(f=f.childContextTypes,typeof N.getChildContext!="function")return O;N=N.getChildContext();for(var L in N)if(!(L in f))throw Error(a(108,k(u)||"Unknown",L));return i({},O,N)}function jd(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||It,St=at.current,He(at,u),He(rt,rt.current),!0}function gm(u,f,O){var N=u.stateNode;if(!N)throw Error(a(169));O?(u=Qu(u,f,St),N.__reactInternalMemoizedMergedChildContext=u,At(rt),At(at),He(at,u)):At(rt),He(rt,O)}var oi=Math.clz32?Math.clz32:Tl,U5=Math.log,vm=Math.LN2;function Tl(u){return u>>>=0,u===0?32:31-(U5(u)/vm|0)|0}var Ol=64,Zu=4194304;function ks(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Ju(u,f){var O=u.pendingLanes;if(O===0)return 0;var N=0,L=u.suspendedLanes,j=u.pingedLanes,K=O&268435455;if(K!==0){var le=K&~L;le!==0?N=ks(le):(j&=K,j!==0&&(N=ks(j)))}else K=O&~L,K!==0?N=ks(K):j!==0&&(N=ks(j));if(N===0)return 0;if(f!==0&&f!==N&&(f&L)===0&&(L=N&-N,j=f&-f,L>=j||L===16&&(j&4194240)!==0))return f;if((N&4)!==0&&(N|=O&16),f=u.entangledLanes,f!==0)for(u=u.entanglements,f&=N;0O;O++)f.push(u);return f}function Ya(u,f,O){u.pendingLanes|=f,f!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,f=31-oi(f),u[f]=O}function H5(u,f){var O=u.pendingLanes&~f;u.pendingLanes=f,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=f,u.mutableReadLanes&=f,u.entangledLanes&=f,f=u.entanglements;var N=u.eventTimes;for(u=u.expirationTimes;0>=K,L-=K,Vi=1<<32-oi(f)+L|O<vt?(ft=ct,ct=null):ft=ct.sibling;var Ne=Ae(_e,ct,Pe[vt],Be);if(Ne===null){ct===null&&(ct=ft);break}u&&ct&&Ne.alternate===null&&f(_e,ct),he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne,ct=ft}if(vt===Pe.length)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;vtvt?(ft=ct,ct=null):ft=ct.sibling;var nt=Ae(_e,ct,Ne.value,Be);if(nt===null){ct===null&&(ct=ft);break}u&&ct&&nt.alternate===null&&f(_e,ct),he=j(nt,he,vt),yt===null?tt=nt:yt.sibling=nt,yt=nt,ct=ft}if(Ne.done)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;!Ne.done;vt++,Ne=Pe.next())Ne=Ve(_e,Ne.value,Be),Ne!==null&&(he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return ar&&Ml(_e,vt),tt}for(ct=N(_e,ct);!Ne.done;vt++,Ne=Pe.next())Ne=Rt(ct,_e,vt,Ne.value,Be),Ne!==null&&(u&&Ne.alternate!==null&&ct.delete(Ne.key===null?vt:Ne.key),he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return u&&ct.forEach(function(Un){return f(_e,Un)}),ar&&Ml(_e,vt),tt}function On(_e,he,Pe,Be){if(typeof Pe=="object"&&Pe!==null&&Pe.type===v&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case s:e:{for(var tt=Pe.key,yt=he;yt!==null;){if(yt.key===tt){if(tt=Pe.type,tt===v){if(yt.tag===7){O(_e,yt.sibling),he=L(yt,Pe.props.children),he.return=_e,_e=he;break e}}else if(yt.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===c&&So(tt)===yt.type){O(_e,yt.sibling),he=L(yt,Pe.props),he.ref=lc(_e,yt,Pe),he.return=_e,_e=he;break e}O(_e,yt);break}else f(_e,yt);yt=yt.sibling}Pe.type===v?(he=I(Pe.props.children,_e.mode,Be,Pe.key),he.return=_e,_e=he):(Be=M(Pe.type,Pe.key,Pe.props,null,_e.mode,Be),Be.ref=lc(_e,he,Pe),Be.return=_e,_e=Be)}return K(_e);case d:e:{for(yt=Pe.key;he!==null;){if(he.key===yt)if(he.tag===4&&he.stateNode.containerInfo===Pe.containerInfo&&he.stateNode.implementation===Pe.implementation){O(_e,he.sibling),he=L(he,Pe.children||[]),he.return=_e,_e=he;break e}else{O(_e,he);break}else f(_e,he);he=he.sibling}he=$(Pe,_e.mode,Be),he.return=_e,_e=he}return K(_e);case c:return yt=Pe._init,On(_e,he,yt(Pe._payload),Be)}if(H(Pe))return wt(_e,he,Pe,Be);if(b(Pe))return er(_e,he,Pe,Be);sc(_e,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,he!==null&&he.tag===6?(O(_e,he.sibling),he=L(he,Pe),he.return=_e,_e=he):(O(_e,he),he=z(Pe,_e.mode,Be),he.return=_e,_e=he),K(_e)):O(_e,he)}return On}var Ns=Lh(!0),Dh=Lh(!1),Xa=Zr(null),Xd=null,As=null,Fh=null;function uc(){Fh=As=Xd=null}function Qd(u,f,O){Se?(He(Xa,f._currentValue),f._currentValue=O):(He(Xa,f._currentValue2),f._currentValue2=O)}function jh(u){var f=Xa.current;At(Xa),Se?u._currentValue=f:u._currentValue2=f}function cc(u,f,O){for(;u!==null;){var N=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,N!==null&&(N.childLanes|=f)):N!==null&&(N.childLanes&f)!==f&&(N.childLanes|=f),u===O)break;u=u.return}}function Is(u,f){Xd=u,Fh=As=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&f)!==0&&(eo=!0),u.firstContext=null)}function Co(u){var f=Se?u._currentValue:u._currentValue2;if(Fh!==u)if(u={context:u,memoizedValue:f,next:null},As===null){if(Xd===null)throw Error(a(308));As=u,Xd.dependencies={lanes:0,firstContext:u}}else As=As.next=u;return f}var Bi=null;function dc(u){Bi===null?Bi=[u]:Bi.push(u)}function zh(u,f,O,N){var L=f.interleaved;return L===null?(O.next=O,dc(f)):(O.next=L.next,L.next=O),f.interleaved=O,Ui(u,N)}function Ui(u,f){u.lanes|=f;var O=u.alternate;for(O!==null&&(O.lanes|=f),O=u,u=u.return;u!==null;)u.childLanes|=f,O=u.alternate,O!==null&&(O.childLanes|=f),O=u,u=u.return;return O.tag===3?O.stateNode:null}var Qa=!1;function Vh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ci(u,f){return{eventTime:u,lane:f,tag:0,payload:null,callback:null,next:null}}function Za(u,f,O){var N=u.updateQueue;if(N===null)return null;if(N=N.shared,(Ct&2)!==0){var L=N.pending;return L===null?f.next=f:(f.next=L.next,L.next=f),N.pending=f,Ui(u,O)}return L=N.interleaved,L===null?(f.next=f,dc(N)):(f.next=L.next,L.next=f),N.interleaved=f,Ui(u,O)}function Zd(u,f,O){if(f=f.updateQueue,f!==null&&(f=f.shared,(O&4194240)!==0)){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}function Cm(u,f){var O=u.updateQueue,N=u.alternate;if(N!==null&&(N=N.updateQueue,O===N)){var L=null,j=null;if(O=O.firstBaseUpdate,O!==null){do{var K={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};j===null?L=j=K:j=j.next=K,O=O.next}while(O!==null);j===null?L=j=f:j=j.next=f}else L=j=f;O={baseState:N.baseState,firstBaseUpdate:L,lastBaseUpdate:j,shared:N.shared,effects:N.effects},u.updateQueue=O;return}u=O.lastBaseUpdate,u===null?O.firstBaseUpdate=f:u.next=f,O.lastBaseUpdate=f}function Jd(u,f,O,N){var L=u.updateQueue;Qa=!1;var j=L.firstBaseUpdate,K=L.lastBaseUpdate,le=L.shared.pending;if(le!==null){L.shared.pending=null;var me=le,Te=me.next;me.next=null,K===null?j=Te:K.next=Te,K=me;var Ee=u.alternate;Ee!==null&&(Ee=Ee.updateQueue,le=Ee.lastBaseUpdate,le!==K&&(le===null?Ee.firstBaseUpdate=Te:le.next=Te,Ee.lastBaseUpdate=me))}if(j!==null){var Ve=L.baseState;K=0,Ee=Te=me=null,le=j;do{var Ae=le.lane,Rt=le.eventTime;if((N&Ae)===Ae){Ee!==null&&(Ee=Ee.next={eventTime:Rt,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var wt=u,er=le;switch(Ae=f,Rt=O,er.tag){case 1:if(wt=er.payload,typeof wt=="function"){Ve=wt.call(Rt,Ve,Ae);break e}Ve=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=er.payload,Ae=typeof wt=="function"?wt.call(Rt,Ve,Ae):wt,Ae==null)break e;Ve=i({},Ve,Ae);break e;case 2:Qa=!0}}le.callback!==null&&le.lane!==0&&(u.flags|=64,Ae=L.effects,Ae===null?L.effects=[le]:Ae.push(le))}else Rt={eventTime:Rt,lane:Ae,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Ee===null?(Te=Ee=Rt,me=Ve):Ee=Ee.next=Rt,K|=Ae;if(le=le.next,le===null){if(le=L.shared.pending,le===null)break;Ae=le,le=Ae.next,Ae.next=null,L.lastBaseUpdate=Ae,L.shared.pending=null}}while(!0);if(Ee===null&&(me=Ve),L.baseState=me,L.firstBaseUpdate=Te,L.lastBaseUpdate=Ee,f=L.shared.interleaved,f!==null){L=f;do K|=L.lane,L=L.next;while(L!==f)}else j===null&&(L.shared.lanes=0);jl|=K,u.lanes=K,u.memoizedState=Ve}}function Pm(u,f,O){if(u=f.effects,f.effects=null,u!==null)for(f=0;fO?O:4,u(!0);var N=of.transition;of.transition={};try{u(!1),f()}finally{Vt=O,of.transition=N}}function mc(){return To().memoizedState}function Z5(u,f,O){var N=nl(u);if(O={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null},Am(u))Yh(f,O);else if(O=zh(u,f,O,N),O!==null){var L=pn();Uo(O,u,N,L),yc(O,f,N)}}function J5(u,f,O){var N=nl(u),L={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null};if(Am(u))Yh(f,L);else{var j=u.alternate;if(u.lanes===0&&(j===null||j.lanes===0)&&(j=f.lastRenderedReducer,j!==null))try{var K=f.lastRenderedState,le=j(K,O);if(L.hasEagerState=!0,L.eagerState=le,jo(le,K)){var me=f.interleaved;me===null?(L.next=L,dc(f)):(L.next=me.next,me.next=L),f.interleaved=L;return}}catch{}finally{}O=zh(u,f,L,N),O!==null&&(L=pn(),Uo(O,u,N,L),yc(O,f,N))}}function Am(u){var f=u.alternate;return u===lr||f!==null&&f===lr}function Yh(u,f){pc=fc=!0;var O=u.pending;O===null?f.next=f:(f.next=O.next,O.next=f),u.pending=f}function yc(u,f,O){if((O&4194240)!==0){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}var sf={readContext:Co,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},e_={readContext:Co,useCallback:function(u,f){return fi().memoizedState=[u,f===void 0?null:f],u},useContext:Co,useEffect:$h,useImperativeHandle:function(u,f,O){return O=O!=null?O.concat([u]):null,vc(4194308,4,Em.bind(null,f,u),O)},useLayoutEffect:function(u,f){return vc(4194308,4,u,f)},useInsertionEffect:function(u,f){return vc(4,2,u,f)},useMemo:function(u,f){var O=fi();return f=f===void 0?null:f,u=u(),O.memoizedState=[u,f],u},useReducer:function(u,f,O){var N=fi();return f=O!==void 0?O(f):f,N.memoizedState=N.baseState=f,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:f},N.queue=u,u=u.dispatch=Z5.bind(null,lr,u),[N.memoizedState,u]},useRef:function(u){var f=fi();return u={current:u},f.memoizedState=u},useState:ma,useDebugValue:tl,useDeferredValue:function(u){return fi().memoizedState=u},useTransition:function(){var u=ma(!1),f=u[0];return u=Q5.bind(null,u[1]),fi().memoizedState=u,[f,u]},useMutableSource:function(){},useSyncExternalStore:function(u,f,O){var N=lr,L=fi();if(ar){if(O===void 0)throw Error(a(407));O=O()}else{if(O=f(),Kr===null)throw Error(a(349));(Al&30)!==0||Hh(N,f,O)}L.memoizedState=O;var j={value:O,getSnapshot:f};return L.queue=j,$h(km.bind(null,N,j,u),[u]),N.flags|=2048,Fs(9,Om.bind(null,N,j,O,f),void 0,null),O},useId:function(){var u=fi(),f=Kr.identifierPrefix;if(ar){var O=va,N=Vi;O=(N&~(1<<32-oi(N)-1)).toString(32)+O,f=":"+f+"R"+O,O=Ls++,0y0&&(p.flags|=128,N=!0,Vs(L,!1),p.lanes=4194304)}else{if(!N)if(u=Po(j),u!==null){if(p.flags|=128,N=!0,u=u.updateQueue,u!==null&&(p.updateQueue=u,p.flags|=4),Vs(L,!0),L.tail===null&&L.tailMode==="hidden"&&!j.alternate&&!ar)return Tn(p),null}else 2*Jr()-L.renderingStartTime>y0&&O!==1073741824&&(p.flags|=128,N=!0,Vs(L,!1),p.lanes=4194304);L.isBackwards?(j.sibling=p.child,p.child=j):(u=L.last,u!==null?u.sibling=j:p.child=j,L.last=j)}return L.tail!==null?(p=L.tail,L.rendering=p,L.tail=p.sibling,L.renderingStartTime=Jr(),p.sibling=null,u=fr.current,Ue(fr,N?u&1|2:u&1),p):(Tn(p),null);case 22:case 23:return x0(),O=p.memoizedState!==null,u!==null&&u.memoizedState!==null!==O&&(p.flags|=8192),O&&(p.mode&1)!==0?(to&1073741824)!==0&&(Tn(p),Ce&&p.subtreeFlags&6&&(p.flags|=8192)):Tn(p),null;case 24:return null;case 25:return null}throw Error(a(156,p.tag))}function n_(u,p){switch(nc(p),p.tag){case 1:return wr(p.type)&&wo(),u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 3:return Ja(),Nt(tt),Nt(at),nf(),u=p.flags,(u&65536)!==0&&(u&128)===0?(p.flags=u&-65537|128,p):null;case 5:return tf(p),null;case 13:if(Nt(fr),u=p.memoizedState,u!==null&&u.dehydrated!==null){if(p.alternate===null)throw Error(a(340));Rs()}return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 19:return Nt(fr),null;case 4:return Ja(),null;case 10:return jh(p.type._context),null;case 22:case 23:return x0(),null;case 24:return null;default:return null}}var yf=!1,dn=!1,qm=typeof WeakSet=="function"?WeakSet:Set,He=null;function Dl(u,p){var O=u.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(N){sr(u,p,N)}else O.current=null}function l0(u,p,O){try{O()}catch(N){sr(u,p,N)}}var Ym=!1;function Xm(u,p){for(W(u.containerInfo),He=p;He!==null;)if(u=He,p=u.child,(u.subtreeFlags&1028)!==0&&p!==null)p.return=u,He=p;else for(;He!==null;){u=He;try{var O=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var N=O.memoizedProps,L=O.memoizedState,j=u.stateNode,K=j.getSnapshotBeforeUpdate(u.elementType===u.type?N:hi(u.type,N),L);j.__reactInternalSnapshotBeforeUpdate=K}break;case 3:Ce&&Li(u.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(le){sr(u,u.return,le)}if(p=u.sibling,p!==null){p.return=u.return,He=p;break}He=u.return}return O=Ym,Ym=!1,O}function Tc(u,p,O){var N=p.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var L=N=N.next;do{if((L.tag&u)===u){var j=L.destroy;L.destroy=void 0,j!==void 0&&l0(p,O,j)}L=L.next}while(L!==N)}}function Oc(u,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var O=p=p.next;do{if((O.tag&u)===u){var N=O.create;O.destroy=N()}O=O.next}while(O!==p)}}function bf(u){var p=u.ref;if(p!==null){var O=u.stateNode;switch(u.tag){case 5:u=q(O);break;default:u=O}typeof p=="function"?p(u):p.current=u}}function s0(u){var p=u.alternate;p!==null&&(u.alternate=null,s0(p)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(p=u.stateNode,p!==null&&Ye(p)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function Qm(u){return u.tag===5||u.tag===3||u.tag===4}function Zm(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Qm(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function u0(u,p,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,p?yo(O,u,p):Qn(O,u);else if(N!==4&&(u=u.child,u!==null))for(u0(u,p,O),u=u.sibling;u!==null;)u0(u,p,O),u=u.sibling}function wf(u,p,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,p?qt(O,u,p):ln(O,u);else if(N!==4&&(u=u.child,u!==null))for(wf(u,p,O),u=u.sibling;u!==null;)wf(u,p,O),u=u.sibling}var fn=null,gi=!1;function $i(u,p,O){for(O=O.child;O!==null;)c0(u,p,O),O=O.sibling}function c0(u,p,O){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(ii,O)}catch{}switch(O.tag){case 5:dn||Dl(O,p);case 6:if(Ce){var N=fn,L=gi;fn=null,$i(u,p,O),fn=N,gi=L,fn!==null&&(gi?Cl(fn,O.stateNode):Qr(fn,O.stateNode))}else $i(u,p,O);break;case 18:Ce&&fn!==null&&(gi?Bt(fn,O.stateNode):Rt(fn,O.stateNode));break;case 4:Ce?(N=fn,L=gi,fn=O.stateNode.containerInfo,gi=!0,$i(u,p,O),fn=N,gi=L):(Re&&(N=O.stateNode.containerInfo,L=$r(N),pa(N,L)),$i(u,p,O));break;case 0:case 11:case 14:case 15:if(!dn&&(N=O.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){L=N=N.next;do{var j=L,K=j.destroy;j=j.tag,K!==void 0&&((j&2)!==0||(j&4)!==0)&&l0(O,p,K),L=L.next}while(L!==N)}$i(u,p,O);break;case 1:if(!dn&&(Dl(O,p),N=O.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=O.memoizedProps,N.state=O.memoizedState,N.componentWillUnmount()}catch(le){sr(O,p,le)}$i(u,p,O);break;case 21:$i(u,p,O);break;case 22:O.mode&1?(dn=(N=dn)||O.memoizedState!==null,$i(u,p,O),dn=N):$i(u,p,O);break;default:$i(u,p,O)}}function Jm(u){var p=u.updateQueue;if(p!==null){u.updateQueue=null;var O=u.stateNode;O===null&&(O=u.stateNode=new qm),p.forEach(function(N){var L=c_.bind(null,u,N);O.has(N)||(O.add(N),N.then(L,L))})}}function vi(u,p){var O=p.deletions;if(O!==null)for(var N=0;N";case _f:return":has("+(xf(u)||"")+")";case Gi:return'[role="'+u.value+'"]';case Ec:return'"'+u.value+'"';case Bs:return'[data-testname="'+u.value+'"]';default:throw Error(a(365))}}function Mc(u,p){var O=[];u=[u,0];for(var N=0;NL&&(L=K),N&=~j}if(N=L,N=Jr()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*i_(N/1960))-N,10u?16:u,_a===null)var N=!1;else{if(u=_a,_a=null,Tf=0,(St&6)!==0)throw Error(a(331));var L=St;for(St|=4,He=u.current;He!==null;){var j=He,K=j.child;if((He.flags&16)!==0){var le=j.deletions;if(le!==null){for(var me=0;meJr()-m0?Bl(u,0):v0|=O),ro(u,p)}function sy(u,p){p===0&&((u.mode&1)===0?p=1:(p=Zu,Zu<<=1,(Zu&130023424)===0&&(Zu=4194304)));var O=pn();u=Ui(u,p),u!==null&&(Ya(u,p,O),ro(u,O))}function T0(u){var p=u.memoizedState,O=0;p!==null&&(O=p.retryLane),sy(u,O)}function c_(u,p){var O=0;switch(u.tag){case 13:var N=u.stateNode,L=u.memoizedState;L!==null&&(O=L.retryLane);break;case 19:N=u.stateNode;break;default:throw Error(a(314))}N!==null&&N.delete(p),sy(u,O)}var uy;uy=function(u,p,O){if(u!==null)if(u.memoizedProps!==p.pendingProps||tt.current)eo=!0;else{if((u.lanes&O)===0&&(p.flags&128)===0)return eo=!1,Gm(u,p,O);eo=(u.flags&131072)!==0}else eo=!1,ar&&(p.flags&1048576)!==0&&$d(p,zi,p.index);switch(p.lanes=0,p.tag){case 2:var N=p.type;mf(u,p),u=p.pendingProps;var L=cn(p,at.current);Is(p,O),L=hc(null,p,N,u,L,O);var j=Uh();return p.flags|=1,typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,wr(N)?(j=!0,jd(p)):j=!1,p.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,Vh(p),L.updater=wc,p.stateNode=L,L._reactInternals=p,Xh(p,N,u,O),p=t0(null,p,N,!0,j,O)):(p.tag=0,ar&&j&&rc(p),Pn(null,p,L,O),p=p.child),p;case 16:N=p.elementType;e:{switch(mf(u,p),u=p.pendingProps,L=N._init,N=L(N._payload),p.type=N,L=p.tag=f_(N),u=hi(N,u),L){case 0:p=ff(null,p,N,u,O);break e;case 1:p=Wm(null,p,N,u,O);break e;case 11:p=zm(null,p,N,u,O);break e;case 14:p=Vm(null,p,N,hi(N.type,u),O);break e}throw Error(a(306,N,""))}return p;case 0:return N=p.type,L=p.pendingProps,L=p.elementType===N?L:hi(N,L),ff(u,p,N,L,O);case 1:return N=p.type,L=p.pendingProps,L=p.elementType===N?L:hi(N,L),Wm(u,p,N,L,O);case 3:e:{if(pf(p),u===null)throw Error(a(387));N=p.pendingProps,j=p.memoizedState,L=j.element,Sm(u,p),Jd(p,N,null,O);var K=p.memoizedState;if(N=K.element,xe&&j.isDehydrated)if(j={element:N,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},p.updateQueue.baseState=j,p.memoizedState=j,p.flags&256){L=zs(Error(a(423)),p),p=r0(u,p,N,O,L);break e}else if(N!==L){L=zs(Error(a(424)),p),p=r0(u,p,N,O,L);break e}else for(xe&&(xo=Be(p.stateNode.containerInfo),_o=p,ar=!0,ui=null,oc=!1),O=Dh(p,null,N,O),p.child=O;O;)O.flags=O.flags&-3|4096,O=O.sibling;else{if(Rs(),N===L){p=Hi(u,p,O);break e}Pn(u,p,N,O)}p=p.child}return p;case 5:return Tm(p),u===null&&Kd(p),N=p.type,L=p.pendingProps,j=u!==null?u.memoizedProps:null,K=L.children,ye(N,L)?K=null:j!==null&&ye(N,j)&&(p.flags|=32),Hm(u,p),Pn(u,p,K,O),p.child;case 6:return u===null&&Kd(p),null;case 13:return $m(u,p,O);case 4:return ef(p,p.stateNode.containerInfo),N=p.pendingProps,u===null?p.child=Ns(p,null,N,O):Pn(u,p,N,O),p.child;case 11:return N=p.type,L=p.pendingProps,L=p.elementType===N?L:hi(N,L),zm(u,p,N,L,O);case 7:return Pn(u,p,p.pendingProps,O),p.child;case 8:return Pn(u,p,p.pendingProps.children,O),p.child;case 12:return Pn(u,p,p.pendingProps.children,O),p.child;case 10:e:{if(N=p.type._context,L=p.pendingProps,j=p.memoizedProps,K=L.value,Qd(p,N,K),j!==null)if(jo(j.value,K)){if(j.children===L.children&&!tt.current){p=Hi(u,p,O);break e}}else for(j=p.child,j!==null&&(j.return=p);j!==null;){var le=j.dependencies;if(le!==null){K=j.child;for(var me=le.firstContext;me!==null;){if(me.context===N){if(j.tag===1){me=ci(-1,O&-O),me.tag=2;var ke=j.updateQueue;if(ke!==null){ke=ke.shared;var Me=ke.pending;Me===null?me.next=me:(me.next=Me.next,Me.next=me),ke.pending=me}}j.lanes|=O,me=j.alternate,me!==null&&(me.lanes|=O),cc(j.return,O,p),le.lanes|=O;break}me=me.next}}else if(j.tag===10)K=j.type===p.type?null:j.child;else if(j.tag===18){if(K=j.return,K===null)throw Error(a(341));K.lanes|=O,le=K.alternate,le!==null&&(le.lanes|=O),cc(K,O,p),K=j.sibling}else K=j.child;if(K!==null)K.return=j;else for(K=j;K!==null;){if(K===p){K=null;break}if(j=K.sibling,j!==null){j.return=K.return,K=j;break}K=K.return}j=K}Pn(u,p,L.children,O),p=p.child}return p;case 9:return L=p.type,N=p.pendingProps.children,Is(p,O),L=Co(L),N=N(L),p.flags|=1,Pn(u,p,N,O),p.child;case 14:return N=p.type,L=hi(N,p.pendingProps),L=hi(N.type,L),Vm(u,p,N,L,O);case 15:return Bm(u,p,p.type,p.pendingProps,O);case 17:return N=p.type,L=p.pendingProps,L=p.elementType===N?L:hi(N,L),mf(u,p),p.tag=1,wr(N)?(u=!0,jd(p)):u=!1,Is(p,O),Dm(p,N,L),Xh(p,N,L,O),t0(null,p,N,!0,u,O);case 19:return i0(u,p,O);case 22:return Um(u,p,O)}throw Error(a(156,p.tag))};function cy(u,p){return ec(u,p)}function d_(u,p,O,N){this.tag=u,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(u,p,O,N){return new d_(u,p,O,N)}function Ef(u){return u=u.prototype,!(!u||!u.isReactComponent)}function f_(u){if(typeof u=="function")return Ef(u)?1:0;if(u!=null){if(u=u.$$typeof,u===y)return 11;if(u===f)return 14}return 2}function x(u,p){var O=u.alternate;return O===null?(O=Oo(u.tag,p,u.key,u.mode),O.elementType=u.elementType,O.type=u.type,O.stateNode=u.stateNode,O.alternate=u,u.alternate=O):(O.pendingProps=p,O.type=u.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=u.flags&14680064,O.childLanes=u.childLanes,O.lanes=u.lanes,O.child=u.child,O.memoizedProps=u.memoizedProps,O.memoizedState=u.memoizedState,O.updateQueue=u.updateQueue,p=u.dependencies,O.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},O.sibling=u.sibling,O.index=u.index,O.ref=u.ref,O}function M(u,p,O,N,L,j){var K=2;if(N=u,typeof u=="function")Ef(u)&&(K=1);else if(typeof u=="string")K=5;else e:switch(u){case v:return I(O.children,L,j,p);case w:K=8,L|=8;break;case S:return u=Oo(12,O,p,L|2),u.elementType=S,u.lanes=j,u;case C:return u=Oo(13,O,p,L),u.elementType=C,u.lanes=j,u;case g:return u=Oo(19,O,p,L),u.elementType=g,u.lanes=j,u;case h:return D(O,L,j,p);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case b:K=10;break e;case P:K=9;break e;case y:K=11;break e;case f:K=14;break e;case c:K=16,N=null;break e}throw Error(a(130,u==null?u:typeof u,""))}return p=Oo(K,O,p,L),p.elementType=u,p.type=N,p.lanes=j,p}function I(u,p,O,N){return u=Oo(7,u,N,p),u.lanes=O,u}function D(u,p,O,N){return u=Oo(22,u,N,p),u.elementType=h,u.lanes=O,u.stateNode={isHidden:!1},u}function z(u,p,O){return u=Oo(6,u,null,p),u.lanes=O,u}function $(u,p,O){return p=Oo(4,u.children!==null?u.children:[],u.key,p),p.lanes=O,p.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},p}function G(u,p,O,N,L){this.tag=p,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=N,this.onRecoverableError=L,xe&&(this.mutableSourceEagerHydrationData=null)}function U(u,p,O,N,L,j,K,le,me){return u=new G(u,p,O,le,me),p===1?(p=1,j===!0&&(p|=8)):p=0,j=Oo(3,null,null,p),u.current=j,j.stateNode=u,j.memoizedState={element:N,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vh(j),u}function Z(u){if(!u)return At;u=u._reactInternals;e:{if(R(u)!==u||u.tag!==1)throw Error(a(170));var p=u;do{switch(p.tag){case 3:p=p.stateNode.context;break e;case 1:if(wr(p.type)){p=p.stateNode.__reactInternalMemoizedMergedChildContext;break e}}p=p.return}while(p!==null);throw Error(a(171))}if(u.tag===1){var O=u.type;if(wr(O))return Qu(u,O,p)}return p}function ee(u){var p=u._reactInternals;if(p===void 0)throw typeof u.render=="function"?Error(a(188)):(u=Object.keys(u).join(","),Error(a(268,u)));return u=F(p),u===null?null:u.stateNode}function ie(u,p){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var O=u.retryLane;u.retryLane=O!==0&&O=ke&&j>=ze&&L<=Me&&K<=Ae){u.splice(p,1);break}else if(N!==ke||O.width!==me.width||AeK){if(!(j!==ze||O.height!==me.height||MeL)){ke>N&&(me.width+=ke-N,me.x=N),Mej&&(me.height+=ze-j,me.y=j),AeO&&(O=K)),Ky0&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304)}else{if(!N)if(u=Po(j),u!==null){if(f.flags|=128,N=!0,u=u.updateQueue,u!==null&&(f.updateQueue=u,f.flags|=4),Vs(L,!0),L.tail===null&&L.tailMode==="hidden"&&!j.alternate&&!ar)return Tn(f),null}else 2*Jr()-L.renderingStartTime>y0&&O!==1073741824&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304);L.isBackwards?(j.sibling=f.child,f.child=j):(u=L.last,u!==null?u.sibling=j:f.child=j,L.last=j)}return L.tail!==null?(f=L.tail,L.rendering=f,L.tail=f.sibling,L.renderingStartTime=Jr(),f.sibling=null,u=fr.current,He(fr,N?u&1|2:u&1),f):(Tn(f),null);case 22:case 23:return x0(),O=f.memoizedState!==null,u!==null&&u.memoizedState!==null!==O&&(f.flags|=8192),O&&(f.mode&1)!==0?(to&1073741824)!==0&&(Tn(f),Ce&&f.subtreeFlags&6&&(f.flags|=8192)):Tn(f),null;case 24:return null;case 25:return null}throw Error(a(156,f.tag))}function n_(u,f){switch(nc(f),f.tag){case 1:return wr(f.type)&&wo(),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return Ja(),At(rt),At(at),nf(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 5:return tf(f),null;case 13:if(At(fr),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(a(340));Rs()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return At(fr),null;case 4:return Ja(),null;case 10:return jh(f.type._context),null;case 22:case 23:return x0(),null;case 24:return null;default:return null}}var yf=!1,dn=!1,qm=typeof WeakSet=="function"?WeakSet:Set,We=null;function Dl(u,f){var O=u.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(N){sr(u,f,N)}else O.current=null}function l0(u,f,O){try{O()}catch(N){sr(u,f,N)}}var Ym=!1;function Xm(u,f){for(W(u.containerInfo),We=f;We!==null;)if(u=We,f=u.child,(u.subtreeFlags&1028)!==0&&f!==null)f.return=u,We=f;else for(;We!==null;){u=We;try{var O=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var N=O.memoizedProps,L=O.memoizedState,j=u.stateNode,K=j.getSnapshotBeforeUpdate(u.elementType===u.type?N:hi(u.type,N),L);j.__reactInternalSnapshotBeforeUpdate=K}break;case 3:Ce&&Li(u.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(le){sr(u,u.return,le)}if(f=u.sibling,f!==null){f.return=u.return,We=f;break}We=u.return}return O=Ym,Ym=!1,O}function Tc(u,f,O){var N=f.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var L=N=N.next;do{if((L.tag&u)===u){var j=L.destroy;L.destroy=void 0,j!==void 0&&l0(f,O,j)}L=L.next}while(L!==N)}}function Oc(u,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var O=f=f.next;do{if((O.tag&u)===u){var N=O.create;O.destroy=N()}O=O.next}while(O!==f)}}function bf(u){var f=u.ref;if(f!==null){var O=u.stateNode;switch(u.tag){case 5:u=Y(O);break;default:u=O}typeof f=="function"?f(u):f.current=u}}function s0(u){var f=u.alternate;f!==null&&(u.alternate=null,s0(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&ze(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function Qm(u){return u.tag===5||u.tag===3||u.tag===4}function Zm(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Qm(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function u0(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?yo(O,u,f):Qn(O,u);else if(N!==4&&(u=u.child,u!==null))for(u0(u,f,O),u=u.sibling;u!==null;)u0(u,f,O),u=u.sibling}function wf(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?Yt(O,u,f):ln(O,u);else if(N!==4&&(u=u.child,u!==null))for(wf(u,f,O),u=u.sibling;u!==null;)wf(u,f,O),u=u.sibling}var fn=null,gi=!1;function $i(u,f,O){for(O=O.child;O!==null;)c0(u,f,O),O=O.sibling}function c0(u,f,O){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(ii,O)}catch{}switch(O.tag){case 5:dn||Dl(O,f);case 6:if(Ce){var N=fn,L=gi;fn=null,$i(u,f,O),fn=N,gi=L,fn!==null&&(gi?Cl(fn,O.stateNode):Qr(fn,O.stateNode))}else $i(u,f,O);break;case 18:Ce&&fn!==null&&(gi?Ut(fn,O.stateNode):Nt(fn,O.stateNode));break;case 4:Ce?(N=fn,L=gi,fn=O.stateNode.containerInfo,gi=!0,$i(u,f,O),fn=N,gi=L):(Me&&(N=O.stateNode.containerInfo,L=$r(N),pa(N,L)),$i(u,f,O));break;case 0:case 11:case 14:case 15:if(!dn&&(N=O.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){L=N=N.next;do{var j=L,K=j.destroy;j=j.tag,K!==void 0&&((j&2)!==0||(j&4)!==0)&&l0(O,f,K),L=L.next}while(L!==N)}$i(u,f,O);break;case 1:if(!dn&&(Dl(O,f),N=O.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=O.memoizedProps,N.state=O.memoizedState,N.componentWillUnmount()}catch(le){sr(O,f,le)}$i(u,f,O);break;case 21:$i(u,f,O);break;case 22:O.mode&1?(dn=(N=dn)||O.memoizedState!==null,$i(u,f,O),dn=N):$i(u,f,O);break;default:$i(u,f,O)}}function Jm(u){var f=u.updateQueue;if(f!==null){u.updateQueue=null;var O=u.stateNode;O===null&&(O=u.stateNode=new qm),f.forEach(function(N){var L=c_.bind(null,u,N);O.has(N)||(O.add(N),N.then(L,L))})}}function vi(u,f){var O=f.deletions;if(O!==null)for(var N=0;N";case _f:return":has("+(xf(u)||"")+")";case Gi:return'[role="'+u.value+'"]';case Ec:return'"'+u.value+'"';case Bs:return'[data-testname="'+u.value+'"]';default:throw Error(a(365))}}function Mc(u,f){var O=[];u=[u,0];for(var N=0;NL&&(L=K),N&=~j}if(N=L,N=Jr()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*i_(N/1960))-N,10u?16:u,_a===null)var N=!1;else{if(u=_a,_a=null,Tf=0,(Ct&6)!==0)throw Error(a(331));var L=Ct;for(Ct|=4,We=u.current;We!==null;){var j=We,K=j.child;if((We.flags&16)!==0){var le=j.deletions;if(le!==null){for(var me=0;meJr()-m0?Bl(u,0):v0|=O),ro(u,f)}function sy(u,f){f===0&&((u.mode&1)===0?f=1:(f=Zu,Zu<<=1,(Zu&130023424)===0&&(Zu=4194304)));var O=pn();u=Ui(u,f),u!==null&&(Ya(u,f,O),ro(u,O))}function T0(u){var f=u.memoizedState,O=0;f!==null&&(O=f.retryLane),sy(u,O)}function c_(u,f){var O=0;switch(u.tag){case 13:var N=u.stateNode,L=u.memoizedState;L!==null&&(O=L.retryLane);break;case 19:N=u.stateNode;break;default:throw Error(a(314))}N!==null&&N.delete(f),sy(u,O)}var uy;uy=function(u,f,O){if(u!==null)if(u.memoizedProps!==f.pendingProps||rt.current)eo=!0;else{if((u.lanes&O)===0&&(f.flags&128)===0)return eo=!1,Gm(u,f,O);eo=(u.flags&131072)!==0}else eo=!1,ar&&(f.flags&1048576)!==0&&$d(f,zi,f.index);switch(f.lanes=0,f.tag){case 2:var N=f.type;mf(u,f),u=f.pendingProps;var L=cn(f,at.current);Is(f,O),L=hc(null,f,N,u,L,O);var j=Uh();return f.flags|=1,typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,wr(N)?(j=!0,jd(f)):j=!1,f.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,Vh(f),L.updater=wc,f.stateNode=L,L._reactInternals=f,Xh(f,N,u,O),f=t0(null,f,N,!0,j,O)):(f.tag=0,ar&&j&&rc(f),Pn(null,f,L,O),f=f.child),f;case 16:N=f.elementType;e:{switch(mf(u,f),u=f.pendingProps,L=N._init,N=L(N._payload),f.type=N,L=f.tag=f_(N),u=hi(N,u),L){case 0:f=ff(null,f,N,u,O);break e;case 1:f=Wm(null,f,N,u,O);break e;case 11:f=zm(null,f,N,u,O);break e;case 14:f=Vm(null,f,N,hi(N.type,u),O);break e}throw Error(a(306,N,""))}return f;case 0:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),ff(u,f,N,L,O);case 1:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),Wm(u,f,N,L,O);case 3:e:{if(pf(f),u===null)throw Error(a(387));N=f.pendingProps,j=f.memoizedState,L=j.element,Sm(u,f),Jd(f,N,null,O);var K=f.memoizedState;if(N=K.element,Ie&&j.isDehydrated)if(j={element:N,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},f.updateQueue.baseState=j,f.memoizedState=j,f.flags&256){L=zs(Error(a(423)),f),f=r0(u,f,N,O,L);break e}else if(N!==L){L=zs(Error(a(424)),f),f=r0(u,f,N,O,L);break e}else for(Ie&&(xo=Ue(f.stateNode.containerInfo),_o=f,ar=!0,ui=null,oc=!1),O=Dh(f,null,N,O),f.child=O;O;)O.flags=O.flags&-3|4096,O=O.sibling;else{if(Rs(),N===L){f=Hi(u,f,O);break e}Pn(u,f,N,O)}f=f.child}return f;case 5:return Tm(f),u===null&&Kd(f),N=f.type,L=f.pendingProps,j=u!==null?u.memoizedProps:null,K=L.children,we(N,L)?K=null:j!==null&&we(N,j)&&(f.flags|=32),Hm(u,f),Pn(u,f,K,O),f.child;case 6:return u===null&&Kd(f),null;case 13:return $m(u,f,O);case 4:return ef(f,f.stateNode.containerInfo),N=f.pendingProps,u===null?f.child=Ns(f,null,N,O):Pn(u,f,N,O),f.child;case 11:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),zm(u,f,N,L,O);case 7:return Pn(u,f,f.pendingProps,O),f.child;case 8:return Pn(u,f,f.pendingProps.children,O),f.child;case 12:return Pn(u,f,f.pendingProps.children,O),f.child;case 10:e:{if(N=f.type._context,L=f.pendingProps,j=f.memoizedProps,K=L.value,Qd(f,N,K),j!==null)if(jo(j.value,K)){if(j.children===L.children&&!rt.current){f=Hi(u,f,O);break e}}else for(j=f.child,j!==null&&(j.return=f);j!==null;){var le=j.dependencies;if(le!==null){K=j.child;for(var me=le.firstContext;me!==null;){if(me.context===N){if(j.tag===1){me=ci(-1,O&-O),me.tag=2;var Te=j.updateQueue;if(Te!==null){Te=Te.shared;var Ee=Te.pending;Ee===null?me.next=me:(me.next=Ee.next,Ee.next=me),Te.pending=me}}j.lanes|=O,me=j.alternate,me!==null&&(me.lanes|=O),cc(j.return,O,f),le.lanes|=O;break}me=me.next}}else if(j.tag===10)K=j.type===f.type?null:j.child;else if(j.tag===18){if(K=j.return,K===null)throw Error(a(341));K.lanes|=O,le=K.alternate,le!==null&&(le.lanes|=O),cc(K,O,f),K=j.sibling}else K=j.child;if(K!==null)K.return=j;else for(K=j;K!==null;){if(K===f){K=null;break}if(j=K.sibling,j!==null){j.return=K.return,K=j;break}K=K.return}j=K}Pn(u,f,L.children,O),f=f.child}return f;case 9:return L=f.type,N=f.pendingProps.children,Is(f,O),L=Co(L),N=N(L),f.flags|=1,Pn(u,f,N,O),f.child;case 14:return N=f.type,L=hi(N,f.pendingProps),L=hi(N.type,L),Vm(u,f,N,L,O);case 15:return Bm(u,f,f.type,f.pendingProps,O);case 17:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),mf(u,f),f.tag=1,wr(N)?(u=!0,jd(f)):u=!1,Is(f,O),Dm(f,N,L),Xh(f,N,L,O),t0(null,f,N,!0,u,O);case 19:return i0(u,f,O);case 22:return Um(u,f,O)}throw Error(a(156,f.tag))};function cy(u,f){return ec(u,f)}function d_(u,f,O,N){this.tag=u,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(u,f,O,N){return new d_(u,f,O,N)}function Ef(u){return u=u.prototype,!(!u||!u.isReactComponent)}function f_(u){if(typeof u=="function")return Ef(u)?1:0;if(u!=null){if(u=u.$$typeof,u===y)return 11;if(u===h)return 14}return 2}function x(u,f){var O=u.alternate;return O===null?(O=Oo(u.tag,f,u.key,u.mode),O.elementType=u.elementType,O.type=u.type,O.stateNode=u.stateNode,O.alternate=u,u.alternate=O):(O.pendingProps=f,O.type=u.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=u.flags&14680064,O.childLanes=u.childLanes,O.lanes=u.lanes,O.child=u.child,O.memoizedProps=u.memoizedProps,O.memoizedState=u.memoizedState,O.updateQueue=u.updateQueue,f=u.dependencies,O.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},O.sibling=u.sibling,O.index=u.index,O.ref=u.ref,O}function M(u,f,O,N,L,j){var K=2;if(N=u,typeof u=="function")Ef(u)&&(K=1);else if(typeof u=="string")K=5;else e:switch(u){case v:return I(O.children,L,j,f);case w:K=8,L|=8;break;case S:return u=Oo(12,O,f,L|2),u.elementType=S,u.lanes=j,u;case C:return u=Oo(13,O,f,L),u.elementType=C,u.lanes=j,u;case g:return u=Oo(19,O,f,L),u.elementType=g,u.lanes=j,u;case p:return D(O,L,j,f);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case _:K=10;break e;case P:K=9;break e;case y:K=11;break e;case h:K=14;break e;case c:K=16,N=null;break e}throw Error(a(130,u==null?u:typeof u,""))}return f=Oo(K,O,f,L),f.elementType=u,f.type=N,f.lanes=j,f}function I(u,f,O,N){return u=Oo(7,u,N,f),u.lanes=O,u}function D(u,f,O,N){return u=Oo(22,u,N,f),u.elementType=p,u.lanes=O,u.stateNode={isHidden:!1},u}function z(u,f,O){return u=Oo(6,u,null,f),u.lanes=O,u}function $(u,f,O){return f=Oo(4,u.children!==null?u.children:[],u.key,f),f.lanes=O,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}function G(u,f,O,N,L){this.tag=f,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=N,this.onRecoverableError=L,Ie&&(this.mutableSourceEagerHydrationData=null)}function U(u,f,O,N,L,j,K,le,me){return u=new G(u,f,O,le,me),f===1?(f=1,j===!0&&(f|=8)):f=0,j=Oo(3,null,null,f),u.current=j,j.stateNode=u,j.memoizedState={element:N,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vh(j),u}function Z(u){if(!u)return It;u=u._reactInternals;e:{if(R(u)!==u||u.tag!==1)throw Error(a(170));var f=u;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(wr(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(a(171))}if(u.tag===1){var O=u.type;if(wr(O))return Qu(u,O,f)}return f}function ee(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(a(188)):(u=Object.keys(u).join(","),Error(a(268,u)));return u=F(f),u===null?null:u.stateNode}function ie(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var O=u.retryLane;u.retryLane=O!==0&&O=Te&&j>=Ve&&L<=Ee&&K<=Ae){u.splice(f,1);break}else if(N!==Te||O.width!==me.width||AeK){if(!(j!==Ve||O.height!==me.height||EeL)){Te>N&&(me.width+=Te-N,me.x=N),Eej&&(me.height+=Ve-j,me.y=j),AeO&&(O=K)),K ")+` No matching component was found for: - `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return q(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:fe,findFiberByHostInstance:u.findFiberByHostInstance||ge,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(p.isDisabled||!p.supportsFiber)u=!0;else{try{ii=p.inject(u),ai=p}catch{}u=!!p.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,p,O,N){if(!gt)throw Error(a(363));u=Rc(u,p);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,p){var O=p._getVersion;O=O(p._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[p,O]:u.mutableSourceEagerHydrationData.push(p,O)},r.runWithPriority=function(u,p){var O=zt;try{return zt=u,p()}finally{zt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,p,O,N){var L=p.current,j=pn(),K=nl(L);return O=Z(O),p.context===null?p.context=O:p.pendingContext=O,p=ci(j,K),p.payload={element:u},N=N===void 0?null:N,N!==null&&(p.callback=N),u=Za(L,p,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Mz.exports=Dne;var Fne=Mz.exports;const jne=nh(Fne);var Rz={exports:{}},Fd={};/** + `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return Y(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:fe,findFiberByHostInstance:u.findFiberByHostInstance||ge,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)u=!0;else{try{ii=f.inject(u),ai=f}catch{}u=!!f.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,f,O,N){if(!gt)throw Error(a(363));u=Rc(u,f);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,f){var O=f._getVersion;O=O(f._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[f,O]:u.mutableSourceEagerHydrationData.push(f,O)},r.runWithPriority=function(u,f){var O=Vt;try{return Vt=u,f()}finally{Vt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,f,O,N){var L=f.current,j=pn(),K=nl(L);return O=Z(O),f.context===null?f.context=O:f.pendingContext=O,f=ci(j,K),f.payload={element:u},N=N===void 0?null:N,N!==null&&(f.callback=N),u=Za(L,f,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Ez.exports=Lne;var Dne=Ez.exports;const Fne=nh(Dne);var Mz={exports:{}},Fd={};/** * @license React * react-reconciler-constants.production.min.js * @@ -134,56 +134,56 @@ No matching component was found for: * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Rz.exports=Fd;var Nz=Rz.exports;const AE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let IE=!1,LE=!1;const GT=".react-konva-event",zne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. + */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Mz.exports=Fd;var Rz=Mz.exports;const AE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let IE=!1,LE=!1;const GT=".react-konva-event",jne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. Position of a node will be changed during drag&drop, so you should update state of the react app as well. Consider to add onDragMove or onDragEnd events. For more info see: https://github.com/konvajs/react-konva/issues/256 -`,Vne=`ReactKonva: You are using "zIndex" attribute for a Konva node. +`,zne=`ReactKonva: You are using "zIndex" attribute for a Konva node. react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. For more info see: https://github.com/konvajs/react-konva/issues/194 -`,Bne={};function T5(e,t,r=Bne){if(!IE&&"zIndex"in t&&(console.warn(Vne),IE=!0),!LE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(zne),LE=!0)}for(var i in r)if(!AE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,w={},S=!1;const b={};for(var i in t)if(!AE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(b[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,w[i]=t[i])}S&&(e.setAttrs(w),Xu(e));for(var s in b)e.on(s+GT,b[s])}function Xu(e){if(!Pt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Az={},Une={};Rv.Node.prototype._applyProps=T5;function Hne(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function Wne(e,t,r){let n=Rv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Rv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return T5(s,i),s}function $ne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Gne(e,t,r){return!1}function Kne(e){return e}function qne(){return null}function Yne(){return null}function Xne(e,t,r,n){return Une}function Qne(){}function Zne(e){}function Jne(e,t){return!1}function eoe(){return Az}function toe(){return Az}const roe=setTimeout,noe=clearTimeout,ooe=-1;function ioe(e,t){return!1}const aoe=!1,loe=!0,soe=!0;function uoe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function coe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Iz(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function doe(e,t,r){Iz(e,t,r)}function foe(e,t){t.destroy(),t.off(GT),Xu(e)}function poe(e,t){t.destroy(),t.off(GT),Xu(e)}function hoe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function goe(e,t,r){}function voe(e,t,r,n,o){T5(e,o,n)}function moe(e){e.hide(),Xu(e)}function yoe(e){}function boe(e,t){(t.visible==null||t.visible)&&e.show()}function woe(e,t){}function _oe(e){}function xoe(){}const Soe=()=>Nz.DefaultEventPriority,Coe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:uoe,appendChildToContainer:coe,appendInitialChild:Hne,cancelTimeout:noe,clearContainer:_oe,commitMount:goe,commitTextUpdate:hoe,commitUpdate:voe,createInstance:Wne,createTextInstance:$ne,detachDeletedInstance:xoe,finalizeInitialChildren:Gne,getChildHostContext:toe,getCurrentEventPriority:Soe,getPublicInstance:Kne,getRootHostContext:eoe,hideInstance:moe,hideTextInstance:yoe,idlePriority:fp.unstable_IdlePriority,insertBefore:Iz,insertInContainerBefore:doe,isPrimaryRenderer:aoe,noTimeout:ooe,now:fp.unstable_now,prepareForCommit:qne,preparePortalMount:Yne,prepareUpdate:Xne,removeChild:foe,removeChildFromContainer:poe,resetAfterCommit:Qne,resetTextContent:Zne,run:fp.unstable_runWithPriority,scheduleTimeout:roe,shouldDeprioritizeSubtree:Jne,shouldSetTextContent:ioe,supportsMutation:soe,unhideInstance:boe,unhideTextInstance:woe,warnsIfNotActing:loe},Symbol.toStringTag,{value:"Module"}));var Poe=Object.defineProperty,Toe=Object.defineProperties,Ooe=Object.getOwnPropertyDescriptors,DE=Object.getOwnPropertySymbols,koe=Object.prototype.hasOwnProperty,Eoe=Object.prototype.propertyIsEnumerable,FE=(e,t,r)=>t in e?Poe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jE=(e,t)=>{for(var r in t||(t={}))koe.call(t,r)&&FE(e,r,t[r]);if(DE)for(var r of DE(t))Eoe.call(t,r)&&FE(e,r,t[r]);return e},Moe=(e,t)=>Toe(e,Ooe(t)),zE,VE;typeof window<"u"&&((zE=window.document)!=null&&zE.createElement||((VE=window.navigator)==null?void 0:VE.product)==="ReactNative")?X.useLayoutEffect:X.useEffect;function Lz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Lz(n,t,r);if(o)return o;n=n.sibling}}function Dz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const BE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=BE;return}return BE.apply(this,arguments)};const KT=Dz(X.createContext(null));class Fz extends X.Component{render(){return X.createElement(KT.Provider,{value:this._reactInternals},this.props.children)}}function Roe(){const e=X.useContext(KT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=X.useId();return X.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Lz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Noe(){const e=Roe(),[t]=X.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==KT&&!t.has(o)&&t.set(o,X.useContext(Dz(o)))}r=r.return}return t}function Aoe(){const e=Noe();return X.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>X.createElement(t,null,X.createElement(r.Provider,Moe(jE({},n),{value:e.get(r)}))),t=>X.createElement(Fz,jE({},t))),[e])}function Ioe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Loe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Ioe(e),i=Aoe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Rv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=fg.createContainer(r.current,Nz.LegacyRoot,!1,null),fg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Rv.isBrowser&&(a(null),fg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),T5(r.current,e,o),fg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},Hx="Layer",UE="Group",Doe="Rect",Foe="Circle",joe="Line",zoe="Image",HE="Text",fg=jne(Coe);fg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const Voe=Or.forwardRef((e,t)=>Or.createElement(Fz,{},Or.createElement(Loe,{...e,forwardedRef:t})));function Boe(e){window.open(e,"_blank","noreferrer")}function w4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Uoe(e,t){return t.includes(e)}const Fg="https://roguewar.org",Hoe=2.5,Woe=1,$oe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltip:a,highlighted:l=!1,opacity:s=1})=>{const d=e.isCapital?Hoe:Woe,v=(l?d*3:d)/t,w=(f,c)=>[...f].sort((h,m)=>m.control-h.control).map(h=>{const m=w4(h.Name,c);return{name:(m==null?void 0:m.prettyName)||h.Name,control:h.control,players:h.ActivePlayers}}),S=f=>`${f.name} ${f.control}% · P${f.players}`,b=e.factions.some(f=>f.ActivePlayers>0),P=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",y=f=>{if(!f)return"None";const h=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([m])=>f[m]).map(([,m])=>m);return h.length?h.join(", "):"None"},C=(f=!1)=>{var R;const c=((R=w4(e.owner,r))==null?void 0:R.prettyName)||"Unknown",h=w(e.factions,r),m=h.slice(0,3),_=Math.max(0,h.length-m.length),T=y(e.state),k=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${c}`,"Control:",...m.map(S),..._>0?[`+${_} more`]:[],`Damage: ${P}`];return T!=="None"&&k.push(`State: ${T}`),f&&k.push("[Tap to open]"),{text:k.join(` -`),controlItems:h}},g=X.useRef(null);return X.useEffect(()=>{if(!n.flashActivePlayes||!b||!g.current)return;const f=g.current,c=s,h=new y4.Animation(m=>{if(!m)return;const _=Math.sin(m.time*.005),T=_*.1+1,k=_*.15+.7;f.scale({x:T,y:T}),f.opacity(c*k)},f.getLayer());return h.start(),()=>{h.stop(),f.opacity(c)}},[b,n,s]),Fe.jsx(Foe,{ref:g,x:Number(e.posX),y:-Number(e.posY),fill:e.factionColour,radius:v,hitStrokeWidth:3,opacity:s,onClick:f=>{f.cancelBubble=!0,e.sysUrl&&Boe(`${Fg}${e.sysUrl}`)},onMouseEnter:f=>{const c=f.target.getStage();if(!c)return;const h=c.getPointerPosition();if(!h)return;const m=C();o(m.text,h.x,h.y,c.x(),c.y(),void 0,m.controlItems)},onMouseLeave:i,onTouchStart:f=>{if(f.evt.touches.length===1){f.evt.preventDefault();const c=f.target.getStage();if(!c)return;const h=c.getRelativePointerPosition();if(!h)return;if(a.visible&&a.text.includes(e.name)){window.location.href=`${Fg}${e.sysUrl}`;return}const m=C(!0);o(m.text,h.x,h.y,void 0,void 0,()=>{window.location.href=`${Fg}${e.sysUrl}`},m.controlItems)}}})},Goe=X.memo($oe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Koe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jz(e){var t=Koe(e,"string");return vd(t)=="symbol"?t:t+""}function pg(e,t,r){return(t=jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(kh,--ri):0,rh--,nn===10&&(rh=1,k5--),nn}function Ti(){return nn=ri2||Av(nn)>3?"":" "}function xie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return hm(e,Qb()+(t<6&&bl()==32&&Ti()==32))}function C4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&C4(nn);break;case 40:e===41&&C4(e);break;case 92:Ti();break}return ri}function Sie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+hm(t,ri-1)+"*"+O5(e===47?e:Ti())}function Cie(e){for(;!Av(bl());)Ti();return hm(e,ri)}function Pie(e){return Gz(Jb("",null,null,null,[""],e=$z(e),0,[0],e))}function Jb(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,w=a,S=0,b=0,P=0,y=1,C=1,g=1,f=0,c="",h=o,m=i,_=n,T=c;C;)switch(P=f,f=Ti()){case 40:if(P!=108&&$n(T,w-1)==58){S4(T+=Gt(Zb(f),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Zb(f);break;case 9:case 10:case 13:case 32:T+=_ie(P);break;case 92:T+=xie(Qb()-1,7);continue;case 47:switch(bl()){case 42:case 47:ab(Tie(Sie(Ti(),Qb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*g;case 125*y:case 59:case 0:switch(f){case 0:case 125:C=0;case 59+v:g==-1&&(T=Gt(T,/\f/g,"")),b>0&&cl(T)-w&&ab(b>32?KE(T+";",n,r,w-1):KE(Gt(T," ","")+";",n,r,w-2),s);break;case 59:T+=";";default:if(ab(_=GE(T,t,r,d,v,o,l,c,h=[],m=[],w),i),f===123)if(v===0)Jb(T,t,_,_,h,i,w,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:Jb(e,_,_,n&&ab(GE(e,_,_,0,0,o,l,c,o,h=[],w),m),o,m,w,l,n?h:m);break;default:Jb(T,_,_,_,[""],m,0,l,m)}}d=v=b=0,y=g=1,c=T="",w=a;break;case 58:w=1+cl(T),b=P;default:if(y<1){if(f==123)--y;else if(f==125&&y++==0&&wie()==125)continue}switch(T+=O5(f),f*y){case 38:g=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*g,g=1;break;case 64:bl()===45&&(T+=Zb(Ti())),S=bl(),v=w=cl(c=T+=Cie(Qb())),f++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function GE(e,t,r,n,o,i,a,l,s,d,v){for(var w=o-1,S=o===0?i:[""],b=QT(S),P=0,y=0,C=0;P0?S[g]+" "+f:Gt(f,/&\f/g,S[g])))&&(s[C++]=c);return E5(e,t,r,o===0?YT:l,s,d,v)}function Tie(e,t,r){return E5(e,t,r,Bz,O5(bie()),Nv(e,2,-2),0)}function KE(e,t,r,n){return E5(e,t,r,XT,Nv(e,0,n),Nv(e,n+1,-1),n)}function Ep(e,t){for(var r="",n=QT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Gt(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Pw+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~S4(e,"stretch")?Kz(Gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~S4(e,"!important")&&10))){case 107:return Gt(e,":",":"+$t)+e;case 101:return Gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+($n(e,14)===45?"inline-":"")+"box$3$1"+$t+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return $t+e+so+Gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+so+Gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+so+Gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+so+e+e}return e}var Die=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case XT:t.return=Kz(t.value,t.length);break;case Uz:return Ep([J0(t,{value:Gt(t.value,"@","@"+$t)})],o);case YT:if(t.length)return yie(t.props,function(i){switch(mie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ep([J0(t,{props:[Gt(i,/:(read-\w+)/,":"+Pw+"$1")]})],o);case"::placeholder":return Ep([J0(t,{props:[Gt(i,/:(plac\w+)/,":"+$t+"input-$1")]}),J0(t,{props:[Gt(i,/:(plac\w+)/,":"+Pw+"$1")]}),J0(t,{props:[Gt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Fie=[Die],jie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Fie,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),g=1;gRz.DefaultEventPriority,Soe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:soe,appendChildToContainer:uoe,appendInitialChild:Une,cancelTimeout:roe,clearContainer:woe,commitMount:hoe,commitTextUpdate:poe,commitUpdate:goe,createInstance:Hne,createTextInstance:Wne,detachDeletedInstance:_oe,finalizeInitialChildren:$ne,getChildHostContext:eoe,getCurrentEventPriority:xoe,getPublicInstance:Gne,getRootHostContext:Jne,hideInstance:voe,hideTextInstance:moe,idlePriority:fp.unstable_IdlePriority,insertBefore:Az,insertInContainerBefore:coe,isPrimaryRenderer:ioe,noTimeout:noe,now:fp.unstable_now,prepareForCommit:Kne,preparePortalMount:qne,prepareUpdate:Yne,removeChild:doe,removeChildFromContainer:foe,resetAfterCommit:Xne,resetTextContent:Qne,run:fp.unstable_runWithPriority,scheduleTimeout:toe,shouldDeprioritizeSubtree:Zne,shouldSetTextContent:ooe,supportsMutation:loe,unhideInstance:yoe,unhideTextInstance:boe,warnsIfNotActing:aoe},Symbol.toStringTag,{value:"Module"}));var Coe=Object.defineProperty,Poe=Object.defineProperties,Toe=Object.getOwnPropertyDescriptors,DE=Object.getOwnPropertySymbols,Ooe=Object.prototype.hasOwnProperty,koe=Object.prototype.propertyIsEnumerable,FE=(e,t,r)=>t in e?Coe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jE=(e,t)=>{for(var r in t||(t={}))Ooe.call(t,r)&&FE(e,r,t[r]);if(DE)for(var r of DE(t))koe.call(t,r)&&FE(e,r,t[r]);return e},Eoe=(e,t)=>Poe(e,Toe(t)),zE,VE;typeof window<"u"&&((zE=window.document)!=null&&zE.createElement||((VE=window.navigator)==null?void 0:VE.product)==="ReactNative")?q.useLayoutEffect:q.useEffect;function Iz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Iz(n,t,r);if(o)return o;n=n.sibling}}function Lz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const BE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=BE;return}return BE.apply(this,arguments)};const KT=Lz(q.createContext(null));class Dz extends q.Component{render(){return q.createElement(KT.Provider,{value:this._reactInternals},this.props.children)}}function Moe(){const e=q.useContext(KT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=q.useId();return q.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Iz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Roe(){const e=Moe(),[t]=q.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==KT&&!t.has(o)&&t.set(o,q.useContext(Lz(o)))}r=r.return}return t}function Noe(){const e=Roe();return q.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>q.createElement(t,null,q.createElement(r.Provider,Eoe(jE({},n),{value:e.get(r)}))),t=>q.createElement(Dz,jE({},t))),[e])}function Aoe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Ioe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Aoe(e),i=Noe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Rv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=fg.createContainer(r.current,Rz.LegacyRoot,!1,null),fg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Rv.isBrowser&&(a(null),fg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),T5(r.current,e,o),fg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},Hx="Layer",UE="Group",Loe="Rect",Doe="Circle",Foe="Line",joe="Image",HE="Text",fg=Fne(Soe);fg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const zoe=Or.forwardRef((e,t)=>Or.createElement(Dz,{},Or.createElement(Ioe,{...e,forwardedRef:t})));function Voe(e){window.open(e,"_blank","noreferrer")}function w4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Boe(e,t){return t.includes(e)}const Fg="https://roguewar.org",Uoe=2.5,Hoe=1,Woe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{const v=e.isCapital?Uoe:Hoe,w=(s?v*3:v)/t,S=(c,p)=>[...c].sort((m,b)=>b.control-m.control).map(m=>{const b=w4(m.Name,p);return{name:(b==null?void 0:b.prettyName)||m.Name,control:m.control,players:m.ActivePlayers}}),_=c=>`${c.name} ${c.control}% · P${c.players}`,P=e.factions.some(c=>c.ActivePlayers>0),y=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",C=c=>{if(!c)return"None";const m=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([b])=>c[b]).map(([,b])=>b);return m.length?m.join(", "):"None"},g=(c=!1)=>{var E;const p=((E=w4(e.owner,r))==null?void 0:E.prettyName)||"Unknown",m=S(e.factions,r),b=m.slice(0,3),T=Math.max(0,m.length-b.length),k=C(e.state),R=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${p}`,"Control:",...b.map(_),...T>0?[`+${T} more`]:[],`Damage: ${y}`];return k!=="None"&&R.push(`State: ${k}`),c&&R.push("[Tap to open]"),{text:R.join(` +`),controlItems:m}},h=q.useRef(null);return q.useEffect(()=>{if(!n.flashActivePlayes||!P||!h.current)return;const c=h.current,p=d,m=new y4.Animation(b=>{if(!b)return;const T=Math.sin(b.time*.005),k=T*.1+1,R=T*.15+.7;c.scale({x:k,y:k}),c.opacity(p*R)},c.getLayer());return m.start(),()=>{m.stop(),c.opacity(p)}},[P,n,d]),je.jsx(Doe,{ref:h,x:Number(e.posX),y:-Number(e.posY),fill:e.factionColour,radius:w,hitStrokeWidth:3,opacity:d,onClick:c=>{c.cancelBubble=!0,e.sysUrl&&Voe(`${Fg}${e.sysUrl}`)},onMouseEnter:c=>{const p=c.target.getStage();if(!p)return;const m=p.getPointerPosition();if(!m)return;const b=g();o(b.text,m.x,m.y,p.x(),p.y(),void 0,b.controlItems)},onMouseLeave:i,onTouchStart:c=>{if(c.evt.touches.length===1){c.evt.preventDefault();const p=c.target.getStage();if(!p)return;const m=p.getRelativePointerPosition();if(!m)return;if(a.current&&l.current===e.name){window.location.href=`${Fg}${e.sysUrl}`;return}const b=g(!0);o(b.text,m.x,m.y,void 0,void 0,()=>{window.location.href=`${Fg}${e.sysUrl}`},b.controlItems),l.current=e.name}}})},$oe=q.memo(Woe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Goe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fz(e){var t=Goe(e,"string");return vd(t)=="symbol"?t:t+""}function pg(e,t,r){return(t=Fz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(kh,--ri):0,rh--,nn===10&&(rh=1,k5--),nn}function Ti(){return nn=ri2||Av(nn)>3?"":" "}function _ie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return hm(e,Qb()+(t<6&&bl()==32&&Ti()==32))}function C4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&C4(nn);break;case 40:e===41&&C4(e);break;case 92:Ti();break}return ri}function xie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+hm(t,ri-1)+"*"+O5(e===47?e:Ti())}function Sie(e){for(;!Av(bl());)Ti();return hm(e,ri)}function Cie(e){return $z(Jb("",null,null,null,[""],e=Wz(e),0,[0],e))}function Jb(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,w=a,S=0,_=0,P=0,y=1,C=1,g=1,h=0,c="",p=o,m=i,b=n,T=c;C;)switch(P=h,h=Ti()){case 40:if(P!=108&&$n(T,w-1)==58){S4(T+=Kt(Zb(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Zb(h);break;case 9:case 10:case 13:case 32:T+=wie(P);break;case 92:T+=_ie(Qb()-1,7);continue;case 47:switch(bl()){case 42:case 47:ab(Pie(xie(Ti(),Qb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*g;case 125*y:case 59:case 0:switch(h){case 0:case 125:C=0;case 59+v:g==-1&&(T=Kt(T,/\f/g,"")),_>0&&cl(T)-w&&ab(_>32?KE(T+";",n,r,w-1):KE(Kt(T," ","")+";",n,r,w-2),s);break;case 59:T+=";";default:if(ab(b=GE(T,t,r,d,v,o,l,c,p=[],m=[],w),i),h===123)if(v===0)Jb(T,t,b,b,p,i,w,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:Jb(e,b,b,n&&ab(GE(e,b,b,0,0,o,l,c,o,p=[],w),m),o,m,w,l,n?p:m);break;default:Jb(T,b,b,b,[""],m,0,l,m)}}d=v=_=0,y=g=1,c=T="",w=a;break;case 58:w=1+cl(T),_=P;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&bie()==125)continue}switch(T+=O5(h),h*y){case 38:g=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*g,g=1;break;case 64:bl()===45&&(T+=Zb(Ti())),S=bl(),v=w=cl(c=T+=Sie(Qb())),h++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function GE(e,t,r,n,o,i,a,l,s,d,v){for(var w=o-1,S=o===0?i:[""],_=QT(S),P=0,y=0,C=0;P0?S[g]+" "+h:Kt(h,/&\f/g,S[g])))&&(s[C++]=c);return E5(e,t,r,o===0?YT:l,s,d,v)}function Pie(e,t,r){return E5(e,t,r,Vz,O5(yie()),Nv(e,2,-2),0)}function KE(e,t,r,n){return E5(e,t,r,XT,Nv(e,0,n),Nv(e,n+1,-1),n)}function Ep(e,t){for(var r="",n=QT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Kt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+Pw+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~S4(e,"stretch")?Gz(Kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~S4(e,"!important")&&10))){case 107:return Kt(e,":",":"+Gt)+e;case 101:return Kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+($n(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+so+e+e}return e}var Lie=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case XT:t.return=Gz(t.value,t.length);break;case Bz:return Ep([J0(t,{value:Kt(t.value,"@","@"+Gt)})],o);case YT:if(t.length)return mie(t.props,function(i){switch(vie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ep([J0(t,{props:[Kt(i,/:(read-\w+)/,":"+Pw+"$1")]})],o);case"::placeholder":return Ep([J0(t,{props:[Kt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),J0(t,{props:[Kt(i,/:(plac\w+)/,":"+Pw+"$1")]}),J0(t,{props:[Kt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Die=[Lie],Fie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Die,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),g=1;g=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zie=/[A-Z]|^ms/g,Jie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jz=function(t){return t.charCodeAt(1)===45},YE=function(t){return t!=null&&typeof t!="boolean"},Wx=Mie(function(e){return Jz(e)?e:e.replace(Zie,"-$&").toLowerCase()}),XE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Jie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Qie[t]!==1&&!Jz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Iv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return eae(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Iv(e,t,d)}break}}var v=r;return v}function eae(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function hae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function V5(){return typeof window<"u"}function rV(e){return oV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nV(e){var t;return(t=(oV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oV(e){return V5()?e instanceof Node||e instanceof ms(e).Node:!1}function gae(e){return V5()?e instanceof Element||e instanceof ms(e).Element:!1}function nO(e){return V5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function ZE(e){return!V5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const vae=new Set(["inline","contents"]);function iV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=oO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!vae.has(o)}function mae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const yae=new Set(["html","body","#document"]);function bae(e){return yae.has(rV(e))}function oO(e){return ms(e).getComputedStyle(e)}function wae(e){if(rV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ZE(e)&&e.host||nV(e);return ZE(t)?t.host:t}function aV(e){const t=wae(e);return bae(t)?e.ownerDocument?e.ownerDocument.body:e.body:nO(t)&&iV(t)?t:aV(t)}function kw(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=aV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=T4(a);return t.concat(a,a.visualViewport||[],iV(o)?o:[],l&&r?kw(l):[])}return t.concat(o,kw(o,[],r))}function T4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _ae(e){const t=oO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=nO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=Tw(r)!==i||Tw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function iO(e){return gae(e)?e:e.contextElement}function JE(e){const t=iO(e);if(!nO(t))return Ow(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=_ae(t);let a=(i?Tw(r.width):r.width)/n,l=(i?Tw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xae=Ow(0);function Sae(e){const t=ms(e);return!mae()||!t.visualViewport?xae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cae(e,t,r){return!1}function e9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=iO(e);let a=Ow(1);t&&(a=JE(e));const l=Cae()?Sae(i):Ow(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,w=o.height/a.y;if(i){const S=ms(i),b=n;let P=S,y=T4(P);for(;y&&n&&b!==P;){const C=JE(y),g=y.getBoundingClientRect(),f=oO(y),c=g.left+(y.clientLeft+parseFloat(f.paddingLeft))*C.x,h=g.top+(y.clientTop+parseFloat(f.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,w*=C.y,s+=c,d+=h,P=ms(y),y=T4(P)}}return hae({width:v,height:w,x:s,y:d})}function lV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pae(e,t){let r=null,n;const o=nV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:w,width:S,height:b}=d;if(l||t(),!S||!b)return;const P=lb(w),y=lb(o.clientWidth-(v+S)),C=lb(o.clientHeight-(w+b)),g=lb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-g+"px",threshold:pae(0,fae(1,s))||1};let h=!0;function m(_){const T=_[0].intersectionRatio;if(T!==s){if(!h)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!lV(d,e.getBoundingClientRect())&&a(),h=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Tae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=iO(e),v=o||i?[...d?kw(d):[],...kw(t)]:[];v.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const w=d&&l?Pae(d,r):null;let S=-1,b=null;a&&(b=new ResizeObserver(g=>{let[f]=g;f&&f.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=b)==null||c.observe(t)})),r()}),d&&!s&&b.observe(d),b.observe(t));let P,y=s?e9(e):null;s&&C();function C(){const g=e9(e);y&&!lV(y,g)&&r(),y=g,P=requestAnimationFrame(C)}return r(),()=>{var g;v.forEach(f=>{o&&f.removeEventListener("scroll",r),i&&f.removeEventListener("resize",r)}),w==null||w(),(g=b)==null||g.disconnect(),b=null,s&&cancelAnimationFrame(P)}}var O4=X.useLayoutEffect,Oae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ew=function(){};function kae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Eae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Mae(e){return B5(e)?window.innerHeight:e.clientHeight}function uV(e){return B5(e)?window.pageYOffset:e.scrollTop}function Mw(e,t){if(B5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Rae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Nae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function sb(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ew,o=uV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Nae(l,o,i,r);Mw(e,d),lr.bottom?Mw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&sb(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&sb(s,E,F);var V=a?T-h:R-h;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,H=a?_:k;return H>=n&&(B=Math.min(H-h-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Mw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&sb(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&_>=n){var q=t;return(!a&&k>=n||a&&_>=n)&&(q=a?_-m:k-m),i&&sb(s,A,F),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Hae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dV=function(t){return t==="auto"?"bottom":t},Wae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},pg(n,Hae(o),"100%"),pg(n,"position","absolute"),pg(n,"width","100%"),pg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},fV=X.createContext(null),$ae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=X.useContext(fV)||{},v=d.setPortalPlacement,w=X.useRef(null),S=X.useState(o),b=as(S,2),P=b[0],y=b[1],C=X.useState(null),g=as(C,2),f=g[0],c=g[1],h=s.spacing.controlHeight;return O4(function(){var m=w.current;if(m){var _=a==="fixed",T=l&&!_,k=Uae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:_,controlHeight:h});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,h]),r({ref:w,placerProps:st(st({},t),{},{placement:f||dV(i),maxHeight:P})})},Gae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return ot("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Kae=Gae,qae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},Yae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return ot("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},pV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Xae=pV,Qae=pV,Zae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,Vae);return ot("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Jae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Bae);return ot("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},ele=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},tle=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=X.useRef(null),d=X.useRef(null),v=X.useState(dV(a)),w=as(v,2),S=w[0],b=w[1],P=X.useMemo(function(){return{setPortalPlacement:b}},[]),y=X.useState(null),C=as(y,2),g=C[0],f=C[1],c=X.useCallback(function(){if(o){var T=Aae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(g==null?void 0:g.offset)||T.left!==(g==null?void 0:g.rect.left)||T.width!==(g==null?void 0:g.rect.width))&&f({offset:R,rect:T})}},[o,l,S,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);O4(function(){c()},[c]);var h=X.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Tae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);O4(function(){h()},[h]);var m=X.useCallback(function(T){s.current=T,h()},[h]);if(!r&&l!=="fixed"||!g)return null;var _=ot("div",dt({ref:m},Hr(st(st({},t),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return ot(fV.Provider,{value:P},r?qw.createPortal(_,r):_)},rle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},nle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return ot("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},ole=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ile=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return ot("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ale=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},lle=function(t){var r=t.children,n=t.innerProps;return ot("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},o9,sle=["size"],ule=["innerProps","isRtl","size"],cle={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hV=function(t){var r=t.size,n=Ps(t,sle);return ot("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cle},n))},aO=function(t){return ot(hV,dt({size:20},t),ot("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gV=function(t){return ot(hV,dt({size:20},t),ot("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},dle=vV,fle=function(t){var r=t.children,n=t.innerProps;return ot("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||ot(gV,null))},ple=vV,hle=function(t){var r=t.children,n=t.innerProps;return ot("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||ot(aO,null))},gle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},vle=function(t){var r=t.innerProps;return ot("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},mle=cae(o9||(o9=dae([` + */var In=typeof Symbol=="function"&&Symbol.for,ZT=In?Symbol.for("react.element"):60103,JT=In?Symbol.for("react.portal"):60106,M5=In?Symbol.for("react.fragment"):60107,R5=In?Symbol.for("react.strict_mode"):60108,N5=In?Symbol.for("react.profiler"):60114,A5=In?Symbol.for("react.provider"):60109,I5=In?Symbol.for("react.context"):60110,eO=In?Symbol.for("react.async_mode"):60111,L5=In?Symbol.for("react.concurrent_mode"):60111,D5=In?Symbol.for("react.forward_ref"):60112,F5=In?Symbol.for("react.suspense"):60113,jie=In?Symbol.for("react.suspense_list"):60120,j5=In?Symbol.for("react.memo"):60115,z5=In?Symbol.for("react.lazy"):60116,zie=In?Symbol.for("react.block"):60121,Vie=In?Symbol.for("react.fundamental"):60117,Bie=In?Symbol.for("react.responder"):60118,Uie=In?Symbol.for("react.scope"):60119;function Ii(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ZT:switch(e=e.type,e){case eO:case L5:case M5:case N5:case R5:case F5:return e;default:switch(e=e&&e.$$typeof,e){case I5:case D5:case z5:case j5:case A5:return e;default:return t}}case JT:return t}}}function qz(e){return Ii(e)===L5}Zt.AsyncMode=eO;Zt.ConcurrentMode=L5;Zt.ContextConsumer=I5;Zt.ContextProvider=A5;Zt.Element=ZT;Zt.ForwardRef=D5;Zt.Fragment=M5;Zt.Lazy=z5;Zt.Memo=j5;Zt.Portal=JT;Zt.Profiler=N5;Zt.StrictMode=R5;Zt.Suspense=F5;Zt.isAsyncMode=function(e){return qz(e)||Ii(e)===eO};Zt.isConcurrentMode=qz;Zt.isContextConsumer=function(e){return Ii(e)===I5};Zt.isContextProvider=function(e){return Ii(e)===A5};Zt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ZT};Zt.isForwardRef=function(e){return Ii(e)===D5};Zt.isFragment=function(e){return Ii(e)===M5};Zt.isLazy=function(e){return Ii(e)===z5};Zt.isMemo=function(e){return Ii(e)===j5};Zt.isPortal=function(e){return Ii(e)===JT};Zt.isProfiler=function(e){return Ii(e)===N5};Zt.isStrictMode=function(e){return Ii(e)===R5};Zt.isSuspense=function(e){return Ii(e)===F5};Zt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===M5||e===L5||e===N5||e===R5||e===F5||e===jie||typeof e=="object"&&e!==null&&(e.$$typeof===z5||e.$$typeof===j5||e.$$typeof===A5||e.$$typeof===I5||e.$$typeof===D5||e.$$typeof===Vie||e.$$typeof===Bie||e.$$typeof===Uie||e.$$typeof===zie)};Zt.typeOf=Ii;Kz.exports=Zt;var Hie=Kz.exports,Yz=Hie,Wie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$ie={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xz={};Xz[Yz.ForwardRef]=Wie;Xz[Yz.Memo]=$ie;var Gie=!0;function Kie(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Qz=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Gie===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},qie=function(t,r,n){Qz(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Yie(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Xie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qie=/[A-Z]|^ms/g,Zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zz=function(t){return t.charCodeAt(1)===45},YE=function(t){return t!=null&&typeof t!="boolean"},Wx=Eie(function(e){return Zz(e)?e:e.replace(Qie,"-$&").toLowerCase()}),XE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Xie[t]!==1&&!Zz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Iv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return Jie(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Iv(e,t,d)}break}}var v=r;return v}function Jie(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function pae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function V5(){return typeof window<"u"}function tV(e){return nV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rV(e){var t;return(t=(nV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nV(e){return V5()?e instanceof Node||e instanceof ms(e).Node:!1}function hae(e){return V5()?e instanceof Element||e instanceof ms(e).Element:!1}function nO(e){return V5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function ZE(e){return!V5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const gae=new Set(["inline","contents"]);function oV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=oO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!gae.has(o)}function vae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mae=new Set(["html","body","#document"]);function yae(e){return mae.has(tV(e))}function oO(e){return ms(e).getComputedStyle(e)}function bae(e){if(tV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ZE(e)&&e.host||rV(e);return ZE(t)?t.host:t}function iV(e){const t=bae(e);return yae(t)?e.ownerDocument?e.ownerDocument.body:e.body:nO(t)&&oV(t)?t:iV(t)}function kw(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=iV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=T4(a);return t.concat(a,a.visualViewport||[],oV(o)?o:[],l&&r?kw(l):[])}return t.concat(o,kw(o,[],r))}function T4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wae(e){const t=oO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=nO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=Tw(r)!==i||Tw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function iO(e){return hae(e)?e:e.contextElement}function JE(e){const t=iO(e);if(!nO(t))return Ow(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=wae(t);let a=(i?Tw(r.width):r.width)/n,l=(i?Tw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _ae=Ow(0);function xae(e){const t=ms(e);return!vae()||!t.visualViewport?_ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sae(e,t,r){return!1}function e9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=iO(e);let a=Ow(1);t&&(a=JE(e));const l=Sae()?xae(i):Ow(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,w=o.height/a.y;if(i){const S=ms(i),_=n;let P=S,y=T4(P);for(;y&&n&&_!==P;){const C=JE(y),g=y.getBoundingClientRect(),h=oO(y),c=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*C.x,p=g.top+(y.clientTop+parseFloat(h.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,w*=C.y,s+=c,d+=p,P=ms(y),y=T4(P)}}return pae({width:v,height:w,x:s,y:d})}function aV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cae(e,t){let r=null,n;const o=rV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:w,width:S,height:_}=d;if(l||t(),!S||!_)return;const P=lb(w),y=lb(o.clientWidth-(v+S)),C=lb(o.clientHeight-(w+_)),g=lb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-g+"px",threshold:fae(0,dae(1,s))||1};let p=!0;function m(b){const T=b[0].intersectionRatio;if(T!==s){if(!p)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!aV(d,e.getBoundingClientRect())&&a(),p=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Pae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=iO(e),v=o||i?[...d?kw(d):[],...kw(t)]:[];v.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const w=d&&l?Cae(d,r):null;let S=-1,_=null;a&&(_=new ResizeObserver(g=>{let[h]=g;h&&h.target===d&&_&&(_.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=_)==null||c.observe(t)})),r()}),d&&!s&&_.observe(d),_.observe(t));let P,y=s?e9(e):null;s&&C();function C(){const g=e9(e);y&&!aV(y,g)&&r(),y=g,P=requestAnimationFrame(C)}return r(),()=>{var g;v.forEach(h=>{o&&h.removeEventListener("scroll",r),i&&h.removeEventListener("resize",r)}),w==null||w(),(g=_)==null||g.disconnect(),_=null,s&&cancelAnimationFrame(P)}}var O4=q.useLayoutEffect,Tae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ew=function(){};function Oae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function kae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Eae(e){return B5(e)?window.innerHeight:e.clientHeight}function sV(e){return B5(e)?window.pageYOffset:e.scrollTop}function Mw(e,t){if(B5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Mae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Rae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function sb(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ew,o=sV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Rae(l,o,i,r);Mw(e,d),lr.bottom?Mw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&sb(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&sb(s,E,F);var V=a?T-p:R-p;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,H=a?b:k;return H>=n&&(B=Math.min(H-p-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Mw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(b>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&sb(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&b>=n){var Y=t;return(!a&&k>=n||a&&b>=n)&&(Y=a?b-m:k-m),i&&sb(s,A,F),{placement:"top",maxHeight:Y}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Uae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var cV=function(t){return t==="auto"?"bottom":t},Hae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},pg(n,Uae(o),"100%"),pg(n,"position","absolute"),pg(n,"width","100%"),pg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},dV=q.createContext(null),Wae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=q.useContext(dV)||{},v=d.setPortalPlacement,w=q.useRef(null),S=q.useState(o),_=as(S,2),P=_[0],y=_[1],C=q.useState(null),g=as(C,2),h=g[0],c=g[1],p=s.spacing.controlHeight;return O4(function(){var m=w.current;if(m){var b=a==="fixed",T=l&&!b,k=Bae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:b,controlHeight:p});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,p]),r({ref:w,placerProps:st(st({},t),{},{placement:h||cV(i),maxHeight:P})})},$ae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return it("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Gae=$ae,Kae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},qae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return it("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},fV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Yae=fV,Xae=fV,Qae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,zae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Zae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Vae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},Jae=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},ele=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=q.useRef(null),d=q.useRef(null),v=q.useState(cV(a)),w=as(v,2),S=w[0],_=w[1],P=q.useMemo(function(){return{setPortalPlacement:_}},[]),y=q.useState(null),C=as(y,2),g=C[0],h=C[1],c=q.useCallback(function(){if(o){var T=Nae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(g==null?void 0:g.offset)||T.left!==(g==null?void 0:g.rect.left)||T.width!==(g==null?void 0:g.rect.width))&&h({offset:R,rect:T})}},[o,l,S,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);O4(function(){c()},[c]);var p=q.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Pae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);O4(function(){p()},[p]);var m=q.useCallback(function(T){s.current=T,p()},[p]);if(!r&&l!=="fixed"||!g)return null;var b=it("div",dt({ref:m},Hr(st(st({},t),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(dV.Provider,{value:P},r?qw.createPortal(b,r):b)},tle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},rle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return it("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},nle=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ole=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return it("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ile=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ale=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},o9,lle=["size"],sle=["innerProps","isRtl","size"],ule={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},pV=function(t){var r=t.size,n=Ps(t,lle);return it("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ule},n))},aO=function(t){return it(pV,dt({size:20},t),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},hV=function(t){return it(pV,dt({size:20},t),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},cle=gV,dle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||it(hV,null))},fle=gV,ple=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||it(aO,null))},hle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},gle=function(t){var r=t.innerProps;return it("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},vle=uae(o9||(o9=cae([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),yle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},$x=function(t){var r=t.delay,n=t.offset;return ot("span",{css:rO({animation:"".concat(mle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ble=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,ule);return ot("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ot($x,{delay:0,offset:n}),ot($x,{delay:160,offset:!0}),ot($x,{delay:320,offset:!n}))},wle=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},_le=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return ot("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},xle=_le,Sle=["data"],Cle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Ple=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,w=t.selectProps;return ot("div",dt({},Hr(t,"group",{group:!0}),s),ot(a,dt({},l,{selectProps:w,theme:v,getStyles:o,getClassNames:i,cx:n}),d),ot("div",null,r))},Tle=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Ole=function(t){var r=sV(t);r.data;var n=Ps(r,Sle);return ot("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},kle=Ple,Ele=["innerRef","isDisabled","isHidden","inputClassName"],Mle=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Rle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},mV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Rle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mV)},Nle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},mV)},Ale=function(t){var r=t.cx,n=t.value,o=sV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,Ele);return ot("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),ot("input",dt({className:r({input:!0},s),ref:i,style:Nle(l),disabled:a},d)))},Ile=Ale,Lle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Dle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Fle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},yV=function(t){var r=t.children,n=t.innerProps;return ot("div",n,r)},jle=yV,zle=yV;function Vle(e){var t=e.children,r=e.innerProps;return ot("div",dt({role:"button"},r),t||ot(aO,{size:14}))}var Ble=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,w=n.Remove;return ot(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},ot(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),ot(w,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ule=Ble,Hle=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return ot("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},$le=Wle,Gle=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Kle=function(t){var r=t.children,n=t.innerProps;return ot("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},qle=Kle,Yle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Xle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return ot("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Qle=Xle,Zle={ClearIndicator:hle,Control:xle,DropdownIndicator:fle,DownChevron:gV,CrossIcon:aO,Group:kle,GroupHeading:Ole,IndicatorsContainer:lle,IndicatorSeparator:vle,Input:Ile,LoadingIndicator:ble,Menu:Kae,MenuList:Yae,MenuPortal:tle,LoadingMessage:Jae,NoOptionsMessage:Zae,MultiValue:Ule,MultiValueContainer:jle,MultiValueLabel:zle,MultiValueRemove:Vle,Option:$le,Placeholder:qle,SelectContainer:nle,SingleValue:Qle,ValueContainer:ile},Jle=function(t){return st(st({},Zle),t.components)},i9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ese(e,t){return!!(e===t||i9(e)&&i9(t))}function tse(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,w=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(w(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",b="".concat(d?" selected":"").concat(S);return"".concat(a).concat(b,", ").concat(w(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ase=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,w=s.ariaLiveMessages,S=s.getOptionLabel,b=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,g=s.menuIsOpen,f=s.options,c=s.screenReaderStatus,h=s.tabSelectsValue,m=s.isLoading,_=s["aria-label"],T=s["aria-live"],k=X.useMemo(function(){return st(st({},ise),w||{})},[w]),R=X.useMemo(function(){var H="";if(r&&k.onChange){var q=r.option,re=r.options,Q=r.removedValue,W=r.removedValues,Y=r.value,te=function(oe){return Array.isArray(oe)?null:oe},ne=Q||q||te(Y),se=ne?S(ne):"",ve=re||W||void 0,ye=ve?ve.map(S):[],ce=st({isDisabled:ne&&y(ne,l),label:se,labels:ye},r);H=k.onChange(ce)}return H},[r,k,y,l,S]),E=X.useMemo(function(){var H="",q=n||o,re=!!(n&&l&&l.includes(n));if(q&&k.onFocus){var Q={focused:q,label:S(q),isDisabled:y(q,l),isSelected:re,options:i,context:q===n?"menu":"value",selectValue:l,isAppleDevice:v};H=k.onFocus(Q)}return H},[n,o,S,y,k,i,l,v]),A=X.useMemo(function(){var H="";if(g&&f.length&&!m&&k.onFilter){var q=c({count:i.length});H=k.onFilter({inputValue:b,resultsMessage:q})}return H},[i,b,g,k,f,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=X.useMemo(function(){var H="";if(k.guidance){var q=o?"value":g?"menu":"input";H=k.guidance({"aria-label":_,context:q,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:h,isInitialFocus:F})}return H},[_,n,o,P,y,C,g,k,l,h,F]),B=ot(X.Fragment,null,ot("span",{id:"aria-selection"},R),ot("span",{id:"aria-focused"},E),ot("span",{id:"aria-results"},A),ot("span",{id:"aria-guidance"},V));return ot(X.Fragment,null,ot(a9,{id:d},F&&B),ot(a9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},lse=ase,k4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sse=new RegExp("["+k4.map(function(e){return e.letters}).join("")+"]","g"),bV={};for(var Gx=0;Gx-1}},fse=["innerRef"];function pse(e){var t=e.innerRef,r=Ps(e,fse),n=zae(r,"onExited","in","enter","exit","appear");return ot("input",dt({ref:t},n,{css:rO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function gse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=X.useRef(!1),l=X.useRef(!1),s=X.useRef(0),d=X.useRef(null),v=X.useCallback(function(C,g){if(d.current!==null){var f=d.current,c=f.scrollTop,h=f.scrollHeight,m=f.clientHeight,_=d.current,T=g>0,k=h-m-c,R=!1;k>g&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&g>k?(r&&!a.current&&r(C),_.scrollTop=h,R=!0,a.current=!0):!T&&-g>c&&(o&&!l.current&&o(C),_.scrollTop=0,R=!0,l.current=!0),R&&hse(C)}},[r,n,o,i]),w=X.useCallback(function(C){v(C,C.deltaY)},[v]),S=X.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),b=X.useCallback(function(C){var g=s.current-C.changedTouches[0].clientY;v(C,g)},[v]),P=X.useCallback(function(C){if(C){var g=Dae?{passive:!1}:!1;C.addEventListener("wheel",w,g),C.addEventListener("touchstart",S,g),C.addEventListener("touchmove",b,g)}},[b,S,w]),y=X.useCallback(function(C){C&&(C.removeEventListener("wheel",w,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",b,!1))},[b,S,w]);return X.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var s9=["boxSizing","height","overflow","paddingRight","position"],u9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function c9(e){e.cancelable&&e.preventDefault()}function d9(e){e.stopPropagation()}function f9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function p9(){return"ontouchstart"in window||navigator.maxTouchPoints}var h9=!!(typeof window<"u"&&window.document&&window.document.createElement),eg=0,Ff={capture:!1,passive:!1};function vse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=X.useRef({}),i=X.useRef(null),a=X.useCallback(function(s){if(h9){var d=document.body,v=d&&d.style;if(n&&s9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&eg<1){var w=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,b=window.innerWidth-S+w||0;Object.keys(u9).forEach(function(P){var y=u9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(b,"px"))}d&&p9()&&(d.addEventListener("touchmove",c9,Ff),s&&(s.addEventListener("touchstart",f9,Ff),s.addEventListener("touchmove",d9,Ff))),eg+=1}},[n]),l=X.useCallback(function(s){if(h9){var d=document.body,v=d&&d.style;eg=Math.max(eg-1,0),n&&eg<1&&s9.forEach(function(w){var S=o.current[w];v&&(v[w]=S)}),d&&p9()&&(d.removeEventListener("touchmove",c9,Ff),s&&(s.removeEventListener("touchstart",f9,Ff),s.removeEventListener("touchmove",d9,Ff)))}},[n]);return X.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var mse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},yse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function bse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=gse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=vse({isEnabled:r}),w=function(b){d(b),v(b)};return ot(X.Fragment,null,r&&ot("div",{onClick:mse,css:yse}),t(w))}var wse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},_se=function(t){var r=t.name,n=t.onFocus;return ot("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:wse,value:"",onChange:function(){}})},xse=_se;function lO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Sse(){return lO(/^iPhone/i)}function _V(){return lO(/^Mac/i)}function Cse(){return lO(/^iPad/i)||_V()&&navigator.maxTouchPoints>1}function Pse(){return Sse()||Cse()}function Tse(){return _V()||Pse()}var Ose=function(t){return t.label},kse=function(t){return t.label},Ese=function(t){return t.value},Mse=function(t){return!!t.isDisabled},Rse={clearIndicator:ple,container:rle,control:wle,dropdownIndicator:dle,group:Cle,groupHeading:Tle,indicatorsContainer:ale,indicatorSeparator:gle,input:Mle,loadingIndicator:yle,loadingMessage:Qae,menu:Wae,menuList:qae,menuPortal:ele,multiValue:Lle,multiValueLabel:Dle,multiValueRemove:Fle,noOptionsMessage:Xae,option:Hle,placeholder:Gle,singleValue:Yle,valueContainer:ole},Nse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Ase=4,xV=4,Ise=38,Lse=xV*2,Dse={baseUnit:xV,controlHeight:Ise,menuGutter:Lse},Yx={borderRadius:Ase,colors:Nse,spacing:Dse},Fse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:n9(),captureMenuScroll:!n9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:dse(),formatGroupLabel:Ose,getOptionLabel:kse,getOptionValue:Ese,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Mse,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Iae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function g9(e,t,r,n){var o=PV(e,t,r),i=TV(e,t,r),a=CV(e,t),l=Rw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function e1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return g9(e,a,t,l)}).filter(function(a){return m9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=g9(e,r,t,n);return m9(e,i)?i:void 0}).filter(Fae)}function SV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,qT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function v9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,qT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function jse(e,t){return SV(e1(e,t))}function m9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!kV(e)||!i)&&OV(e,{label:a,value:l,data:o},n)}function zse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Xx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},CV=function(t,r){return t.getOptionLabel(r)},Rw=function(t,r){return t.getOptionValue(r)};function PV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function TV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Rw(e,t);return r.some(function(o){return Rw(e,o)===n})}function OV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var kV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Bse=1,EV=(function(e){rie(r,e);var t=iie(r);function r(n){var o;if(eie(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,w=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),w(s,d)},o.setValue=function(s,d,v){var w=o.props,S=w.closeMenuOnSelect,b=w.isMulti,P=w.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!b}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,w=d.isMulti,S=d.name,b=o.state.selectValue,P=w&&o.isOptionSelected(s,b),y=o.isOptionDisabled(s,b);if(P){var C=o.getOptionValue(s);o.setValue(b.filter(function(g){return o.getOptionValue(g)!==C}),"deselect-option",s)}else if(!y)w?o.setValue([].concat(qT(b),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,w=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==w}),b=cb(d,S,S[0]||null);o.onChange(b,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(cb(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],w=d.slice(0,d.length-1),S=cb(s,w,w[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Xx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return v9(e1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;vb||S>b}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return kV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,w=d.backspaceRemovesValue,S=d.escapeClearsValue,b=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,g=d.onKeyDown,f=d.tabSelectsValue,c=d.openMenuOnFocus,h=o.state,m=h.focusedOption,_=h.focusedValue,T=h.selectValue;if(!y&&!(typeof g=="function"&&(g(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||b)return;o.focusValue("previous");break;case"ArrowRight":if(!v||b)return;o.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(_)o.removeValue(_);else{if(!w)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!f||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:b}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(b)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Bse),o.state.selectValue=t9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Xx(i,a[l])}return o}return tie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&r9(this.menuListRef,this.focusedOptionRef),Tse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(r9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var w=d.indexOf(l[0]);w>-1&&(v=w)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yx):st(st({},Yx),this.props.theme):Yx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,w=this.props,S=w.isMulti,b=w.isRtl,P=w.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:b,options:P,selectOption:d,selectProps:w,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return PV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return TV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return OV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,w=o.menuIsOpen,S=o.required,b=this.getComponents(),P=b.Input,y=this.state,C=y.inputIsHidden,g=y.ariaSelection,f=this.commonProps,c=l||this.getElementId("input"),h=st(st(st({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?X.createElement(P,dt({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},h)):X.createElement(pse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ew,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},h))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,w=i.Placeholder,S=this.commonProps,b=this.props,P=b.controlShouldRenderValue,y=b.isDisabled,C=b.isMulti,g=b.inputValue,f=b.placeholder,c=this.state,h=c.selectValue,m=c.focusedValue,_=c.isFocused;if(!this.hasValue()||!P)return g?null:X.createElement(w,dt({},S,{key:"placeholder",isDisabled:y,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),f);if(C)return h.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return X.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(g)return null;var T=h[0];return X.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:w,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var w={"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:w,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return X.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,w=i.LoadingMessage,S=i.NoOptionsMessage,b=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,g=C.captureMenuScroll,f=C.inputValue,c=C.isLoading,h=C.loadingMessage,m=C.minMenuHeight,_=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,H=C.onMenuScrollToBottom;if(!T)return null;var q=function(se,ve){var ye=se.type,ce=se.data,J=se.isDisabled,oe=se.isSelected,ue=se.label,Se=se.value,Ce=y===ce,Re=J?void 0:function(){return o.onOptionHover(ce)},xe=J?void 0:function(){return o.selectOption(ce)},Te="".concat(o.getElementId("option"),"-").concat(ve),Oe={id:Te,onClick:xe,onMouseMove:Re,onMouseOver:Re,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:oe};return X.createElement(b,dt({},P,{innerProps:Oe,data:ce,isDisabled:J,isSelected:oe,key:Te,label:ue,type:ye,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(se.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var se=ne.data,ve=ne.options,ye=ne.index,ce="".concat(o.getElementId("group"),"-").concat(ye),J="".concat(ce,"-heading");return X.createElement(a,dt({},P,{key:ce,data:se,options:ve,Heading:l,headingProps:{id:J,data:ne.data},label:o.formatGroupLabel(ne.data)}),ne.options.map(function(oe){return q(oe,"".concat(ye,"-").concat(oe.index))}))}else if(ne.type==="option")return q(ne,"".concat(ne.index))});else if(c){var Q=h({inputValue:f});if(Q===null)return null;re=X.createElement(w,P,Q)}else{var W=V({inputValue:f});if(W===null)return null;re=X.createElement(S,P,W)}var Y={minMenuHeight:m,maxMenuHeight:_,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},te=X.createElement($ae,dt({},P,Y),function(ne){var se=ne.ref,ve=ne.placerProps,ye=ve.placement,ce=ve.maxHeight;return X.createElement(s,dt({},P,Y,{innerRef:se,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:ye}),X.createElement(bse,{captureEnabled:g,onTopArrive:B,onBottomArrive:H,lockEnabled:A},function(J){return X.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),J(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),re)}))});return E||R==="fixed"?X.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),te):te}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,w=this.state.selectValue;if(v&&!this.hasValue()&&!l)return X.createElement(xse,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=w.map(function(y){return o.getOptionValue(y)}).join(a);return X.createElement("input",{name:d,type:"hidden",value:S})}else{var b=w.length>0?w.map(function(y,C){return X.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):X.createElement("input",{name:d,type:"hidden",value:""});return X.createElement("div",null,b)}else{var P=w[0]?this.getOptionValue(w[0]):"";return X.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,w=this.getFocusableOptions();return X.createElement(lse,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:w,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,w=d.id,S=d.isDisabled,b=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return X.createElement(l,dt({},y,{className:v,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),X.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:b}),X.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),X.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,w=i.prevWasFocused,S=i.instancePrefix,b=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,g=o.isMulti,f=t9(P),c={};if(a&&(P!==a.value||b!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var h=y?jse(o,f):[],m=y?v9(e1(o,f),"".concat(S,"-option")):[],_=l?zse(i,f):null,T=Vse(i,h),k=Xx(m,T);c={selectValue:f,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:_,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&w;return v&&!A&&(E={value:cb(g,f,f[0]||null),options:f,action:"initial-input-focus"},A=!w),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(X.Component);EV.defaultProps=Fse;var Use=X.forwardRef(function(e,t){var r=Joe(e);return X.createElement(EV,dt({ref:t},r))}),Hse=Use;/** +`]))),mle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},$x=function(t){var r=t.delay,n=t.offset;return it("span",{css:rO({animation:"".concat(vle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yle=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,sle);return it("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),it($x,{delay:0,offset:n}),it($x,{delay:160,offset:!0}),it($x,{delay:320,offset:!n}))},ble=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return it("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},_le=wle,xle=["data"],Sle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Cle=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,w=t.selectProps;return it("div",dt({},Hr(t,"group",{group:!0}),s),it(a,dt({},l,{selectProps:w,theme:v,getStyles:o,getClassNames:i,cx:n}),d),it("div",null,r))},Ple=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Tle=function(t){var r=lV(t);r.data;var n=Ps(r,xle);return it("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},Ole=Cle,kle=["innerRef","isDisabled","isHidden","inputClassName"],Ele=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Mle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},vV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vV)},Rle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},vV)},Nle=function(t){var r=t.cx,n=t.value,o=lV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,kle);return it("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),it("input",dt({className:r({input:!0},s),ref:i,style:Rle(l),disabled:a},d)))},Ale=Nle,Ile=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Lle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Dle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},mV=function(t){var r=t.children,n=t.innerProps;return it("div",n,r)},Fle=mV,jle=mV;function zle(e){var t=e.children,r=e.innerProps;return it("div",dt({role:"button"},r),t||it(aO,{size:14}))}var Vle=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,w=n.Remove;return it(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},it(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),it(w,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ble=Vle,Ule=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Hle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return it("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},Wle=Hle,$le=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Gle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},Kle=Gle,qle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Yle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return it("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Xle=Yle,Qle={ClearIndicator:ple,Control:_le,DropdownIndicator:dle,DownChevron:hV,CrossIcon:aO,Group:Ole,GroupHeading:Tle,IndicatorsContainer:ale,IndicatorSeparator:gle,Input:Ale,LoadingIndicator:yle,Menu:Gae,MenuList:qae,MenuPortal:ele,LoadingMessage:Zae,NoOptionsMessage:Qae,MultiValue:Ble,MultiValueContainer:Fle,MultiValueLabel:jle,MultiValueRemove:zle,Option:Wle,Placeholder:Kle,SelectContainer:rle,SingleValue:Xle,ValueContainer:ole},Zle=function(t){return st(st({},Qle),t.components)},i9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Jle(e,t){return!!(e===t||i9(e)&&i9(t))}function ese(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,w=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(w(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",_="".concat(d?" selected":"").concat(S);return"".concat(a).concat(_,", ").concat(w(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ise=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,w=s.ariaLiveMessages,S=s.getOptionLabel,_=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,g=s.menuIsOpen,h=s.options,c=s.screenReaderStatus,p=s.tabSelectsValue,m=s.isLoading,b=s["aria-label"],T=s["aria-live"],k=q.useMemo(function(){return st(st({},ose),w||{})},[w]),R=q.useMemo(function(){var H="";if(r&&k.onChange){var Y=r.option,re=r.options,Q=r.removedValue,W=r.removedValues,X=r.value,te=function(oe){return Array.isArray(oe)?null:oe},ne=Q||Y||te(X),se=ne?S(ne):"",ve=re||W||void 0,we=ve?ve.map(S):[],ce=st({isDisabled:ne&&y(ne,l),label:se,labels:we},r);H=k.onChange(ce)}return H},[r,k,y,l,S]),E=q.useMemo(function(){var H="",Y=n||o,re=!!(n&&l&&l.includes(n));if(Y&&k.onFocus){var Q={focused:Y,label:S(Y),isDisabled:y(Y,l),isSelected:re,options:i,context:Y===n?"menu":"value",selectValue:l,isAppleDevice:v};H=k.onFocus(Q)}return H},[n,o,S,y,k,i,l,v]),A=q.useMemo(function(){var H="";if(g&&h.length&&!m&&k.onFilter){var Y=c({count:i.length});H=k.onFilter({inputValue:_,resultsMessage:Y})}return H},[i,_,g,k,h,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=q.useMemo(function(){var H="";if(k.guidance){var Y=o?"value":g?"menu":"input";H=k.guidance({"aria-label":b,context:Y,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:p,isInitialFocus:F})}return H},[b,n,o,P,y,C,g,k,l,p,F]),B=it(q.Fragment,null,it("span",{id:"aria-selection"},R),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},A),it("span",{id:"aria-guidance"},V));return it(q.Fragment,null,it(a9,{id:d},F&&B),it(a9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},ase=ise,k4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],lse=new RegExp("["+k4.map(function(e){return e.letters}).join("")+"]","g"),yV={};for(var Gx=0;Gx-1}},dse=["innerRef"];function fse(e){var t=e.innerRef,r=Ps(e,dse),n=jae(r,"onExited","in","enter","exit","appear");return it("input",dt({ref:t},n,{css:rO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var pse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function hse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=q.useRef(!1),l=q.useRef(!1),s=q.useRef(0),d=q.useRef(null),v=q.useCallback(function(C,g){if(d.current!==null){var h=d.current,c=h.scrollTop,p=h.scrollHeight,m=h.clientHeight,b=d.current,T=g>0,k=p-m-c,R=!1;k>g&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&g>k?(r&&!a.current&&r(C),b.scrollTop=p,R=!0,a.current=!0):!T&&-g>c&&(o&&!l.current&&o(C),b.scrollTop=0,R=!0,l.current=!0),R&&pse(C)}},[r,n,o,i]),w=q.useCallback(function(C){v(C,C.deltaY)},[v]),S=q.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),_=q.useCallback(function(C){var g=s.current-C.changedTouches[0].clientY;v(C,g)},[v]),P=q.useCallback(function(C){if(C){var g=Lae?{passive:!1}:!1;C.addEventListener("wheel",w,g),C.addEventListener("touchstart",S,g),C.addEventListener("touchmove",_,g)}},[_,S,w]),y=q.useCallback(function(C){C&&(C.removeEventListener("wheel",w,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",_,!1))},[_,S,w]);return q.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var s9=["boxSizing","height","overflow","paddingRight","position"],u9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function c9(e){e.cancelable&&e.preventDefault()}function d9(e){e.stopPropagation()}function f9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function p9(){return"ontouchstart"in window||navigator.maxTouchPoints}var h9=!!(typeof window<"u"&&window.document&&window.document.createElement),eg=0,Ff={capture:!1,passive:!1};function gse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=q.useRef({}),i=q.useRef(null),a=q.useCallback(function(s){if(h9){var d=document.body,v=d&&d.style;if(n&&s9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&eg<1){var w=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,_=window.innerWidth-S+w||0;Object.keys(u9).forEach(function(P){var y=u9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(_,"px"))}d&&p9()&&(d.addEventListener("touchmove",c9,Ff),s&&(s.addEventListener("touchstart",f9,Ff),s.addEventListener("touchmove",d9,Ff))),eg+=1}},[n]),l=q.useCallback(function(s){if(h9){var d=document.body,v=d&&d.style;eg=Math.max(eg-1,0),n&&eg<1&&s9.forEach(function(w){var S=o.current[w];v&&(v[w]=S)}),d&&p9()&&(d.removeEventListener("touchmove",c9,Ff),s&&(s.removeEventListener("touchstart",f9,Ff),s.removeEventListener("touchmove",d9,Ff)))}},[n]);return q.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var vse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},mse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=hse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=gse({isEnabled:r}),w=function(_){d(_),v(_)};return it(q.Fragment,null,r&&it("div",{onClick:vse,css:mse}),t(w))}var bse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},wse=function(t){var r=t.name,n=t.onFocus;return it("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:bse,value:"",onChange:function(){}})},_se=wse;function lO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xse(){return lO(/^iPhone/i)}function wV(){return lO(/^Mac/i)}function Sse(){return lO(/^iPad/i)||wV()&&navigator.maxTouchPoints>1}function Cse(){return xse()||Sse()}function Pse(){return wV()||Cse()}var Tse=function(t){return t.label},Ose=function(t){return t.label},kse=function(t){return t.value},Ese=function(t){return!!t.isDisabled},Mse={clearIndicator:fle,container:tle,control:ble,dropdownIndicator:cle,group:Sle,groupHeading:Ple,indicatorsContainer:ile,indicatorSeparator:hle,input:Ele,loadingIndicator:mle,loadingMessage:Xae,menu:Hae,menuList:Kae,menuPortal:Jae,multiValue:Ile,multiValueLabel:Lle,multiValueRemove:Dle,noOptionsMessage:Yae,option:Ule,placeholder:$le,singleValue:qle,valueContainer:nle},Rse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Nse=4,_V=4,Ase=38,Ise=_V*2,Lse={baseUnit:_V,controlHeight:Ase,menuGutter:Ise},Yx={borderRadius:Nse,colors:Rse,spacing:Lse},Dse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:n9(),captureMenuScroll:!n9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cse(),formatGroupLabel:Tse,getOptionLabel:Ose,getOptionValue:kse,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ese,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Aae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function g9(e,t,r,n){var o=CV(e,t,r),i=PV(e,t,r),a=SV(e,t),l=Rw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function e1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return g9(e,a,t,l)}).filter(function(a){return m9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=g9(e,r,t,n);return m9(e,i)?i:void 0}).filter(Dae)}function xV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,qT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function v9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,qT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function Fse(e,t){return xV(e1(e,t))}function m9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!OV(e)||!i)&&TV(e,{label:a,value:l,data:o},n)}function jse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Xx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},SV=function(t,r){return t.getOptionLabel(r)},Rw=function(t,r){return t.getOptionValue(r)};function CV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function PV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Rw(e,t);return r.some(function(o){return Rw(e,o)===n})}function TV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var OV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Vse=1,kV=(function(e){tie(r,e);var t=oie(r);function r(n){var o;if(Joe(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,w=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),w(s,d)},o.setValue=function(s,d,v){var w=o.props,S=w.closeMenuOnSelect,_=w.isMulti,P=w.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!_}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,w=d.isMulti,S=d.name,_=o.state.selectValue,P=w&&o.isOptionSelected(s,_),y=o.isOptionDisabled(s,_);if(P){var C=o.getOptionValue(s);o.setValue(_.filter(function(g){return o.getOptionValue(g)!==C}),"deselect-option",s)}else if(!y)w?o.setValue([].concat(qT(_),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,w=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==w}),_=cb(d,S,S[0]||null);o.onChange(_,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(cb(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],w=d.slice(0,d.length-1),S=cb(s,w,w[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Xx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return v9(e1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;v_||S>_}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return OV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,w=d.backspaceRemovesValue,S=d.escapeClearsValue,_=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,g=d.onKeyDown,h=d.tabSelectsValue,c=d.openMenuOnFocus,p=o.state,m=p.focusedOption,b=p.focusedValue,T=p.selectValue;if(!y&&!(typeof g=="function"&&(g(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||_)return;o.focusValue("previous");break;case"ArrowRight":if(!v||_)return;o.focusValue("next");break;case"Delete":case"Backspace":if(_)return;if(b)o.removeValue(b);else{if(!w)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!h||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:_}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(_)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Vse),o.state.selectValue=t9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Xx(i,a[l])}return o}return eie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&r9(this.menuListRef,this.focusedOptionRef),Pse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(r9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var w=d.indexOf(l[0]);w>-1&&(v=w)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yx):st(st({},Yx),this.props.theme):Yx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,w=this.props,S=w.isMulti,_=w.isRtl,P=w.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:_,options:P,selectOption:d,selectProps:w,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return CV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return PV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return TV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,w=o.menuIsOpen,S=o.required,_=this.getComponents(),P=_.Input,y=this.state,C=y.inputIsHidden,g=y.ariaSelection,h=this.commonProps,c=l||this.getElementId("input"),p=st(st(st({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?q.createElement(P,dt({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},p)):q.createElement(fse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ew,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},p))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,w=i.Placeholder,S=this.commonProps,_=this.props,P=_.controlShouldRenderValue,y=_.isDisabled,C=_.isMulti,g=_.inputValue,h=_.placeholder,c=this.state,p=c.selectValue,m=c.focusedValue,b=c.isFocused;if(!this.hasValue()||!P)return g?null:q.createElement(w,dt({},S,{key:"placeholder",isDisabled:y,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),h);if(C)return p.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return q.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(g)return null;var T=p[0];return q.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return q.createElement(i,dt({},a,{innerProps:w,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var w={"aria-hidden":"true"};return q.createElement(i,dt({},a,{innerProps:w,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return q.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return q.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,w=i.LoadingMessage,S=i.NoOptionsMessage,_=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,g=C.captureMenuScroll,h=C.inputValue,c=C.isLoading,p=C.loadingMessage,m=C.minMenuHeight,b=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,H=C.onMenuScrollToBottom;if(!T)return null;var Y=function(se,ve){var we=se.type,ce=se.data,J=se.isDisabled,oe=se.isSelected,ue=se.label,Se=se.value,Ce=y===ce,Me=J?void 0:function(){return o.onOptionHover(ce)},Ie=J?void 0:function(){return o.selectOption(ce)},Re="".concat(o.getElementId("option"),"-").concat(ve),ye={id:Re,onClick:Ie,onMouseMove:Me,onMouseOver:Me,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:oe};return q.createElement(_,dt({},P,{innerProps:ye,data:ce,isDisabled:J,isSelected:oe,key:Re,label:ue,type:we,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(se.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var se=ne.data,ve=ne.options,we=ne.index,ce="".concat(o.getElementId("group"),"-").concat(we),J="".concat(ce,"-heading");return q.createElement(a,dt({},P,{key:ce,data:se,options:ve,Heading:l,headingProps:{id:J,data:ne.data},label:o.formatGroupLabel(ne.data)}),ne.options.map(function(oe){return Y(oe,"".concat(we,"-").concat(oe.index))}))}else if(ne.type==="option")return Y(ne,"".concat(ne.index))});else if(c){var Q=p({inputValue:h});if(Q===null)return null;re=q.createElement(w,P,Q)}else{var W=V({inputValue:h});if(W===null)return null;re=q.createElement(S,P,W)}var X={minMenuHeight:m,maxMenuHeight:b,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},te=q.createElement(Wae,dt({},P,X),function(ne){var se=ne.ref,ve=ne.placerProps,we=ve.placement,ce=ve.maxHeight;return q.createElement(s,dt({},P,X,{innerRef:se,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:we}),q.createElement(yse,{captureEnabled:g,onTopArrive:B,onBottomArrive:H,lockEnabled:A},function(J){return q.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),J(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),re)}))});return E||R==="fixed"?q.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),te):te}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,w=this.state.selectValue;if(v&&!this.hasValue()&&!l)return q.createElement(_se,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=w.map(function(y){return o.getOptionValue(y)}).join(a);return q.createElement("input",{name:d,type:"hidden",value:S})}else{var _=w.length>0?w.map(function(y,C){return q.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):q.createElement("input",{name:d,type:"hidden",value:""});return q.createElement("div",null,_)}else{var P=w[0]?this.getOptionValue(w[0]):"";return q.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,w=this.getFocusableOptions();return q.createElement(ase,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:w,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,w=d.id,S=d.isDisabled,_=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return q.createElement(l,dt({},y,{className:v,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),q.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:_}),q.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),q.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,w=i.prevWasFocused,S=i.instancePrefix,_=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,g=o.isMulti,h=t9(P),c={};if(a&&(P!==a.value||_!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var p=y?Fse(o,h):[],m=y?v9(e1(o,h),"".concat(S,"-option")):[],b=l?jse(i,h):null,T=zse(i,p),k=Xx(m,T);c={selectValue:h,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:b,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&w;return v&&!A&&(E={value:cb(g,h,h[0]||null),options:h,action:"initial-input-focus"},A=!w),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(q.Component);kV.defaultProps=Dse;var Bse=q.forwardRef(function(e,t){var r=Zoe(e);return q.createElement(kV,dt({ref:t},r))}),Use=Bse;/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Wse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$se=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),y9=e=>{const t=$se(e);return t.charAt(0).toUpperCase()+t.slice(1)},MV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Gse=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** + */const Hse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wse=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),y9=e=>{const t=Wse(e);return t.charAt(0).toUpperCase()+t.slice(1)},EV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),$se=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Kse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + */var Gse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const qse=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>X.createElement("svg",{ref:s,...Kse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:MV("lucide",o),...!i&&!Gse(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>X.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** + */const Kse=q.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>q.createElement("svg",{ref:s,...Gse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:EV("lucide",o),...!i&&!$se(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>q.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const RV=(e,t)=>{const r=X.forwardRef(({className:n,...o},i)=>X.createElement(qse,{ref:i,iconNode:t,className:MV(`lucide-${Wse(y9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=y9(e),r};/** + */const MV=(e,t)=>{const r=q.forwardRef(({className:n,...o},i)=>q.createElement(Kse,{ref:i,iconNode:t,className:EV(`lucide-${Hse(y9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=y9(e),r};/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Yse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Xse=RV("chevrons-down",Yse);/** + */const qse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Yse=MV("chevrons-down",qse);/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Qse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Zse=RV("chevrons-up",Qse),Jse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=X.useState(!1),[l,s]=X.useState(typeof window<"u"&&window.innerWidth>=768);X.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),w=c=>o(c.map(h=>h.value)),S=c=>o(n.filter(h=>h!==c)),b=X.useRef(null),[P,y]=X.useState("32px"),[C,g]=X.useState(!1);X.useEffect(()=>{const c=b.current;if(!c)return;const h=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${h}px`,requestAnimationFrame(()=>{const _=Math.max(m,125);y(`${i?_:32}px`)})})},[i,n]);const f={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return Fe.jsxs("div",{ref:b,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[Fe.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?Fe.jsx(Xse,{size:24}):Fe.jsx(Zse,{size:24})}),i&&Fe.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[Fe.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:Fe.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),Fe.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:Fe.jsxs("div",{style:{width:l?"50%":"100%"},children:[Fe.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Fe.jsx("div",{style:{flexGrow:1},children:Fe.jsx(Hse,{isMulti:!0,options:d,value:v,onChange:w,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,h)=>({...c,color:"black",backgroundColor:h.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),Fe.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&g(!0),onMouseLeave:()=>l&&g(!1),onClick:()=>!l&&g(c=>!c),children:["i",C&&Fe.jsx("div",{style:f,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&Fe.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>Fe.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,Fe.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},eue=e=>{const[t,r]=X.useState({visible:!1,text:"",x:0,y:0});return{tooltip:t,showTooltip:(i,a,l,s,d,v,w)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:w})},hideTooltip:()=>{r(i=>({...i,visible:!1}))}}},tue=()=>{const[e,t]=X.useState([]),[r,n]=X.useState({}),[o,i]=X.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${Fg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${Fg}/api/v1/starmap/warmap`).then(d=>d.json());t(s)}catch(s){console.error("Failed to fetch data:",s)}}}},rue={flashActivePlayes:!0},nue=()=>{const[e,t]=X.useState(rue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},oue=()=>{const[e,t]=X.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=tue(),{settings:l,setFlashActive:s}=nue(),d=X.useCallback(v=>v.map(w=>{const S=w4(w.owner,n),b=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...w,isCapital:Uoe(w.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:b}}),[o,n]);return X.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function iue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=X.useRef(null),o=X.useRef(1),i=X.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=X.useState(1),s=X.useRef(!1),d=X.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=X.useRef(0),w=X.useCallback(P=>{const y=performance.now();if(y-v.current0?c/f:c*f;h=Math.max(e,Math.min(t,h));const m={x:(g.x-C.x())/c,y:(g.y-C.y())/c};o.current=h,i.current={x:g.x-m.x*h,y:g.y-m.y*h},C.scale({x:h,y:h}),C.position(i.current),d(C),l(h)},[t,e,d,r]),S=X.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),b=X.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:b,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:w,onDragMove:S}}}function b9(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function aue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=X.useState(!1),v=X.useRef(0),w=X.useCallback(P=>{if(P.evt.touches.length===1){const y=P.target.className==="Circle",C=P.target.findAncestor("Label",!0);!y&&!C&&(i==null||i())}P.evt.touches.length===2&&(d(!0),v.current=b9(P.evt.touches[0],P.evt.touches[1]))},[i]),S=X.useCallback(P=>{if(P.evt.touches.length!==2||!s)return;P.evt.preventDefault();const[y,C]=P.evt.touches,g=b9(y,C);if(!v.current)return;const f=e.current;if(!f)return;let c=g/v.current;if(Math.abs(1-c)<.02)return;c=Math.max(.9,Math.min(1.1,c));const h=t.current??1,m=Math.max(a,Math.min(l,h*c)),_=f.getPosition(),T=f.scaleX(),k={x:(y.clientX+C.clientX)/2,y:(y.clientY+C.clientY)/2},R={x:(k.x-_.x)/T,y:(k.y-_.y)/T};requestAnimationFrame(()=>{const E={x:k.x-R.x*m,y:k.y-R.y*m};t.current=m,r.current=E,f.scale({x:m,y:m}),f.position(E),n(f),o(m)}),v.current=g},[s,l,a,r,n,t,o,e]),b=X.useCallback(P=>{P.evt.touches.length<2&&d(!1)},[]);return{isPinching:s,handlers:{onTouchStart:w,onTouchMove:S,onTouchEnd:b}}}const lue=.2,sue=25,uue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=oue(),[a,l]=X.useState(!1);return X.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?Fe.jsx(cue,{systems:e,factions:t,settings:i}):null},cue=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:w}}=iue(),[S,b]=X.useState(""),[P,y]=X.useState(!1),C=S.trim().toLowerCase(),g=C.length>=2,[f,c]=X.useState([]),{tooltip:h,showTooltip:m,hideTooltip:_}=eue(o),{isPinching:T,handlers:{onTouchStart:k,onTouchMove:R,onTouchEnd:E}}=aue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:_,minScale:lue,maxScale:sue}),[A,F]=X.useState({width:window.innerWidth,height:window.innerHeight});X.useEffect(()=>{const xe=je=>{je.touches.length>1&&je.preventDefault()},Te=je=>{je.preventDefault()},Oe={passive:!1};return document.addEventListener("touchmove",xe,Oe),document.addEventListener("gesturestart",Te,Oe),document.addEventListener("gesturechange",Te,Oe),document.addEventListener("gestureend",Te,Oe),()=>{document.removeEventListener("touchmove",xe,Oe),document.removeEventListener("gesturestart",Te,Oe),document.removeEventListener("gesturechange",Te,Oe),document.removeEventListener("gestureend",Te,Oe)}},[]),X.useEffect(()=>{const xe=Te=>Te.preventDefault();return window.addEventListener("gesturestart",xe,{passive:!1}),window.addEventListener("gesturechange",xe,{passive:!1}),window.addEventListener("gestureend",xe,{passive:!1}),()=>{window.removeEventListener("gesturestart",xe),window.removeEventListener("gesturechange",xe),window.removeEventListener("gestureend",xe)}},[]),X.useEffect(()=>{const xe=()=>{F({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",xe),()=>window.removeEventListener("resize",xe)},[]);const[V,B]=X.useState(null),[H,q]=X.useState(!1);X.useEffect(()=>{const xe=new window.Image,Oe=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";xe.src="/"+Oe,xe.onload=()=>{B(xe),q(!0)}},[]),X.useEffect(()=>{const xe=n.current;if(!xe)return;const Te=xe.container(),Oe=je=>{je.cancelable&&je.preventDefault()};return Te.addEventListener("gesturestart",Oe,{passive:!1}),Te.addEventListener("gesturechange",Oe,{passive:!1}),Te.addEventListener("gestureend",Oe,{passive:!1}),Te.addEventListener("touchmove",Oe,{passive:!1}),()=>{Te.removeEventListener("gesturestart",Oe),Te.removeEventListener("gesturechange",Oe),Te.removeEventListener("gestureend",Oe),Te.removeEventListener("touchmove",Oe)}},[]);const re=window.innerWidth<768,Q=re?1.5/a.scale:2/a.scale,W=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,Y=6,te=10,ne=12,se=W*1.12,ve=W*.92,ye=se*1.2,ce=(xe,Te)=>{if(Te===0)return[{text:xe,fontStyle:"bold",fontSize:se}];const Oe=xe.match(/^(Owner:|Damage:)\s*(.*)$/);if(Oe){const[,je,Ye]=Oe;return[{text:`${je} `,fontStyle:"bold",fontSize:ve},{text:Ye,fontStyle:"normal",fontSize:ve}]}return[{text:xe,fontStyle:/^(Control|State):/.test(xe)?"bold":"normal",fontSize:ve}]},J=X.useMemo(()=>(h.text||"").split(` -`).map(xe=>xe.trimEnd()),[h.text]),oe=X.useMemo(()=>{const xe=J.length?J:[""],Te=xe.map((it,Mt)=>ce(it,Mt).reduce((gt,Tt)=>{const _t=new y4.Text({text:Tt.text,fontFamily:"Roboto Mono, monospace",fontSize:Tt.fontSize,fontStyle:Tt.fontStyle}),ir=_t.width();return _t.destroy(),gt+ir},0)),je=(Te.length?Math.max(...Te):0)+Y*2,Ye=xe.length*ye+Y*2;return{lines:xe,boxWidth:je,boxHeight:Ye}},[J,W,ye]);X.useEffect(()=>{h.visible&&y(!1)},[h.visible,h.text]);const ue=X.useMemo(()=>{var gt,Tt;const xe=(gt=h.text)==null?void 0:gt.trim();if(!xe)return{title:"",subtitle:"",details:[]};const Te=xe.split(` -`).map(_t=>_t.trim()).filter(_t=>_t&&_t!=="[Tap to open]"),Oe=Te[0]??"",je=(Tt=Te[1])!=null&&Tt.startsWith("(")?Te[1]:"",Ye=Te.slice(je?2:1),it=[];let Mt=!1;for(const _t of Ye){if(_t==="Control:"){Mt=!0;continue}if(Mt){if(!/^[A-Za-z ]+:\s/.test(_t))continue;Mt=!1}it.push(_t)}return{title:Oe,subtitle:je,details:it}},[h.text]),Se=X.useMemo(()=>[...h.controlItems||[]].sort((xe,Te)=>Te.control-xe.control),[h.controlItems]),Ce=P?Se:Se.slice(0,3),Re=Math.max(0,Se.length-3);return Fe.jsxs(Fe.Fragment,{children:[Fe.jsxs(Voe,{width:A.width,height:A.height,draggable:!T,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:w,onTouchStart:k,onTouchMove:R,onTouchEnd:E,children:[Fe.jsx(Hx,{cache:!0,children:H&&V?Fe.jsx(zoe,{image:V,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):Fe.jsx(HE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),Fe.jsx(Hx,{children:e.map((xe,Te)=>{var Mt;const Oe=((Mt=t[xe.owner])==null?void 0:Mt.prettyName)??xe.owner;if(!(!f.length||f.includes(Oe)))return null;const Ye=xe.name.toLowerCase().includes(C),it=g?Ye?1:.2:1;return Fe.jsx(Goe,{zoomScaleFactor:l<1?l:1,system:xe,factions:t,settings:r,showTooltip:m,hideTooltip:_,tooltip:h,highlighted:g&&Ye,opacity:it},xe.name||Te)})}),Fe.jsx(Hx,{children:h.visible&&!re&&Fe.jsxs(UE,{x:h.x,y:h.y,opacity:.75,scaleX:Q,scaleY:Q,children:[Fe.jsx(Doe,{x:-oe.boxWidth/2,y:-(oe.boxHeight+te),width:oe.boxWidth,height:oe.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),Fe.jsx(joe,{points:[-ne/2,-te,0,0,ne/2,-te],fill:"white",closed:!0}),oe.lines.map((xe,Te)=>(()=>{const Oe=ce(xe,Te);return Fe.jsx(UE,{x:-oe.boxWidth/2+Y,y:-(oe.boxHeight+te-Y-Te*ye),listening:!1,children:Oe.map((je,Ye)=>{const it=Oe.slice(0,Ye).reduce((Mt,gt)=>{const Tt=new y4.Text({text:gt.text,fontFamily:"Roboto Mono, monospace",fontSize:gt.fontSize,fontStyle:gt.fontStyle}),_t=Tt.width();return Tt.destroy(),Mt+_t},0);return Fe.jsx(HE,{x:it,y:0,text:je.text,fontFamily:"Roboto Mono, monospace",fontSize:je.fontSize,fontStyle:je.fontStyle,fill:"black",listening:!1},`${je.text}-${Ye}`)})},`${xe}-${Te}`)})())]})})]}),re&&h.visible&&Fe.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[Fe.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:ue.title}),ue.subtitle&&Fe.jsx("div",{style:{marginTop:"2px",opacity:.8},children:ue.subtitle}),Fe.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:ue.details.map((xe,Te)=>Fe.jsx("div",{children:xe},`${xe}-${Te}`))}),Se.length>0&&Fe.jsxs("div",{style:{marginTop:"10px"},children:[Fe.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),Fe.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Ce.map(xe=>Fe.jsx("div",{children:`${xe.name} ${xe.control}% · P${xe.players}`},`${xe.name}-${xe.control}-${xe.players}`))}),Re>0&&Fe.jsx("button",{type:"button",onClick:()=>y(xe=>!xe),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),Fe.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[h.onTouch&&Fe.jsx("button",{type:"button",onClick:()=>{var xe;return(xe=h.onTouch)==null?void 0:xe.call(h)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),Fe.jsx("button",{type:"button",onClick:_,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),Fe.jsx(Jse,{searchTerm:S,setSearchTerm:b,factions:X.useMemo(()=>DJ(e,t),[e,t]),selectedFactions:f,setSelectedFactions:c})]})},w9=uue;function due(e){return Qw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function fue(){return Fe.jsx(XW,{children:Fe.jsx(pue,{})})}function pue(){const e=XR();return Bv(e)?Fe.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",Fe.jsx(O1,{to:"/",children:Fe.jsxs("div",{className:"flex",children:[Fe.jsx(due,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?Fe.jsxs("div",{id:"error-page",children:[Fe.jsx("h1",{children:"Oops! Unexpected Error"}),Fe.jsx("p",{children:"Something went wrong."}),Fe.jsx("p",{children:Fe.jsx("i",{children:e.message})})]}):Fe.jsx(Fe.Fragment,{children:"Unknown error"})}const hue="/",gue=CW(KS(Fe.jsxs(Fe.Fragment,{children:[Fe.jsx(GS,{path:"/",element:Fe.jsx(w9,{}),errorElement:Fe.jsx(fue,{})}),Fe.jsx(GS,{index:!0,element:Fe.jsx(w9,{})})]})),{basename:hue});function vue(){return Fe.jsx(AW,{router:gue})}AR(document.getElementById("react-root")).render(Fe.jsx(X.StrictMode,{children:Fe.jsx(vue,{})})); + */const Xse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Qse=MV("chevrons-up",Xse),Zse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=q.useState(!1),[l,s]=q.useState(typeof window<"u"&&window.innerWidth>=768);q.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),w=c=>o(c.map(p=>p.value)),S=c=>o(n.filter(p=>p!==c)),_=q.useRef(null),[P,y]=q.useState("32px"),[C,g]=q.useState(!1);q.useEffect(()=>{const c=_.current;if(!c)return;const p=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${p}px`,requestAnimationFrame(()=>{const b=Math.max(m,125);y(`${i?b:32}px`)})})},[i,n]);const h={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return je.jsxs("div",{ref:_,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[je.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?je.jsx(Yse,{size:24}):je.jsx(Qse,{size:24})}),i&&je.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[je.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:je.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),je.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:je.jsxs("div",{style:{width:l?"50%":"100%"},children:[je.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[je.jsx("div",{style:{flexGrow:1},children:je.jsx(Use,{isMulti:!0,options:d,value:v,onChange:w,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,p)=>({...c,color:"black",backgroundColor:p.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),je.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&g(!0),onMouseLeave:()=>l&&g(!1),onClick:()=>!l&&g(c=>!c),children:["i",C&&je.jsx("div",{style:h,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&je.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>je.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,je.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},Jse=e=>{const[t,r]=q.useState({visible:!1,text:"",x:0,y:0}),n=q.useCallback((i,a,l,s,d,v,w)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:w})},[e]),o=q.useCallback(()=>{r(i=>({...i,visible:!1}))},[]);return{tooltip:t,showTooltip:n,hideTooltip:o}},eue=()=>{const[e,t]=q.useState([]),[r,n]=q.useState({}),[o,i]=q.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${Fg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${Fg}/api/v1/starmap/warmap`).then(d=>d.json());t(s)}catch(s){console.error("Failed to fetch data:",s)}}}},tue={flashActivePlayes:!0},rue=()=>{const[e,t]=q.useState(tue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},nue=()=>{const[e,t]=q.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=eue(),{settings:l,setFlashActive:s}=rue(),d=q.useCallback(v=>v.map(w=>{const S=w4(w.owner,n),_=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...w,isCapital:Boe(w.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:_}}),[o,n]);return q.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function oue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=q.useRef(null),o=q.useRef(1),i=q.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=q.useState(1),s=q.useRef(!1),d=q.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=q.useRef(0),w=q.useCallback(P=>{const y=performance.now();if(y-v.current0?c/h:c*h;p=Math.max(e,Math.min(t,p));const m={x:(g.x-C.x())/c,y:(g.y-C.y())/c};o.current=p,i.current={x:g.x-m.x*p,y:g.y-m.y*p},C.scale({x:p,y:p}),C.position(i.current),d(C),l(p)},[t,e,d,r]),S=q.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),_=q.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:_,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:w,onDragMove:S}}}function iue(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function aue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=q.useState(!1),v=q.useRef(0),w=q.useRef(null),S=q.useRef(!1),_=q.useRef(null),P=q.useCallback(g=>{if(g.evt.touches.length===1){const h=g.target.className==="Circle",c=g.target.findAncestor("Label",!0);!h&&!c&&(i==null||i())}g.evt.touches.length===2&&(d(!0),v.current=iue(g.evt.touches[0],g.evt.touches[1]))},[i]),y=q.useCallback(g=>{if(g.evt.touches.length!==2||!s)return;g.evt.preventDefault();const[h,c]=g.evt.touches;_.current={touch1:{clientX:h.clientX,clientY:h.clientY},touch2:{clientX:c.clientX,clientY:c.clientY}},!S.current&&(S.current=!0,w.current=requestAnimationFrame(()=>{S.current=!1;const p=_.current;if(!p)return;const m=Math.hypot(p.touch2.clientX-p.touch1.clientX,p.touch2.clientY-p.touch1.clientY);if(!v.current){v.current=m;return}const b=e.current;if(!b)return;let T=m/v.current;if(Math.abs(1-T)<.02)return;T=Math.max(.9,Math.min(1.1,T));const k=t.current??1,R=Math.max(a,Math.min(l,k*T)),E=b.getPosition(),A=b.scaleX(),F={x:(p.touch1.clientX+p.touch2.clientX)/2,y:(p.touch1.clientY+p.touch2.clientY)/2},V={x:(F.x-E.x)/A,y:(F.y-E.y)/A},B={x:F.x-V.x*R,y:F.y-V.y*R};t.current=R,r.current=B,b.scale({x:R,y:R}),b.position(B),n(b),v.current=m}))},[s,l,a,r,n,t,o,e]),C=q.useCallback(g=>{g.evt.touches.length<2&&(d(!1),o(t.current),_.current=null,w.current!==null&&(cancelAnimationFrame(w.current),w.current=null),S.current=!1)},[]);return{isPinching:s,handlers:{onTouchStart:P,onTouchMove:y,onTouchEnd:C}}}const lue=.2,sue=25,uue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=nue(),[a,l]=q.useState(!1);return q.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?je.jsx(cue,{systems:e,factions:t,settings:i}):null},cue=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:w}}=oue(),[S,_]=q.useState(""),[P,y]=q.useState(!1),C=S.trim().toLowerCase(),g=C.length>=2,[h,c]=q.useState([]),{tooltip:p,showTooltip:m,hideTooltip:b}=Jse(o),T=q.useRef(!1),k=q.useRef(null),{isPinching:R,handlers:{onTouchStart:E,onTouchMove:A,onTouchEnd:F}}=aue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:b,minScale:lue,maxScale:sue}),[V,B]=q.useState({width:window.innerWidth,height:window.innerHeight});q.useEffect(()=>{const ye=Ye=>{Ye.touches.length>1&&Ye.preventDefault()},ke=Ye=>{Ye.preventDefault()},ze={passive:!1};return document.addEventListener("touchmove",ye,ze),document.addEventListener("gesturestart",ke,ze),document.addEventListener("gesturechange",ke,ze),document.addEventListener("gestureend",ke,ze),()=>{document.removeEventListener("touchmove",ye,ze),document.removeEventListener("gesturestart",ke,ze),document.removeEventListener("gesturechange",ke,ze),document.removeEventListener("gestureend",ke,ze)}},[]),q.useEffect(()=>{const ye=ke=>ke.preventDefault();return window.addEventListener("gesturestart",ye,{passive:!1}),window.addEventListener("gesturechange",ye,{passive:!1}),window.addEventListener("gestureend",ye,{passive:!1}),()=>{window.removeEventListener("gesturestart",ye),window.removeEventListener("gesturechange",ye),window.removeEventListener("gestureend",ye)}},[]),q.useEffect(()=>{const ye=()=>{B({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",ye),()=>window.removeEventListener("resize",ye)},[]);const[H,Y]=q.useState(null),[re,Q]=q.useState(!1);q.useEffect(()=>{const ye=new window.Image,ze=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";ye.src="/"+ze,ye.onload=()=>{Y(ye),Q(!0)}},[]),q.useEffect(()=>{const ye=n.current;if(!ye)return;const ke=ye.container(),ze=Ye=>{Ye.cancelable&&Ye.preventDefault()};return ke.addEventListener("gesturestart",ze,{passive:!1}),ke.addEventListener("gesturechange",ze,{passive:!1}),ke.addEventListener("gestureend",ze,{passive:!1}),ke.addEventListener("touchmove",ze,{passive:!1}),()=>{ke.removeEventListener("gesturestart",ze),ke.removeEventListener("gesturechange",ze),ke.removeEventListener("gestureend",ze),ke.removeEventListener("touchmove",ze)}},[]);const W=window.innerWidth<768,X=W?1.5/a.scale:2/a.scale,te=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,ne=6,se=10,ve=12,we=te*1.12,ce=te*.92,J=we*1.2,oe=(ye,ke)=>{if(ke===0)return[{text:ye,fontStyle:"bold",fontSize:we}];const ze=ye.match(/^(Owner:|Damage:)\s*(.*)$/);if(ze){const[,Ye,Mt]=ze;return[{text:`${Ye} `,fontStyle:"bold",fontSize:ce},{text:Mt,fontStyle:"normal",fontSize:ce}]}return[{text:ye,fontStyle:/^(Control|State):/.test(ye)?"bold":"normal",fontSize:ce}]},ue=q.useMemo(()=>(p.text||"").split(` +`).map(ye=>ye.trimEnd()),[p.text]),Se=q.useMemo(()=>{const ye=ue.length?ue:[""],ke=ye.map((gt,xt)=>oe(gt,xt).reduce((zt,Ht)=>{const mt=new y4.Text({text:Ht.text,fontFamily:"Roboto Mono, monospace",fontSize:Ht.fontSize,fontStyle:Ht.fontStyle}),Ot=mt.width();return mt.destroy(),zt+Ot},0)),Ye=(ke.length?Math.max(...ke):0)+ne*2,Mt=ye.length*J+ne*2;return{lines:ye,boxWidth:Ye,boxHeight:Mt}},[ue,te,J]);q.useEffect(()=>{p.visible&&y(!1)},[p.visible,p.text]),q.useEffect(()=>{T.current=p.visible,p.visible||(k.current=null)},[p.visible]);const Ce=q.useMemo(()=>{var zt,Ht;const ye=(zt=p.text)==null?void 0:zt.trim();if(!ye)return{title:"",subtitle:"",details:[]};const ke=ye.split(` +`).map(mt=>mt.trim()).filter(mt=>mt&&mt!=="[Tap to open]"),ze=ke[0]??"",Ye=(Ht=ke[1])!=null&&Ht.startsWith("(")?ke[1]:"",Mt=ke.slice(Ye?2:1),gt=[];let xt=!1;for(const mt of Mt){if(mt==="Control:"){xt=!0;continue}if(xt){if(!/^[A-Za-z ]+:\s/.test(mt))continue;xt=!1}gt.push(mt)}return{title:ze,subtitle:Ye,details:gt}},[p.text]),Me=q.useMemo(()=>[...p.controlItems||[]].sort((ye,ke)=>ke.control-ye.control),[p.controlItems]),Ie=P?Me:Me.slice(0,3),Re=Math.max(0,Me.length-3);return je.jsxs(je.Fragment,{children:[je.jsxs(zoe,{width:V.width,height:V.height,draggable:!R,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:w,onTouchStart:E,onTouchMove:A,onTouchEnd:F,children:[je.jsx(Hx,{cache:!0,children:re&&H?je.jsx(joe,{image:H,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):je.jsx(HE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),je.jsx(Hx,{children:e.map((ye,ke)=>{var xt;const ze=((xt=t[ye.owner])==null?void 0:xt.prettyName)??ye.owner;if(!(!h.length||h.includes(ze)))return null;const Mt=ye.name.toLowerCase().includes(C),gt=g?Mt?1:.2:1;return je.jsx($oe,{zoomScaleFactor:l<1?l:1,system:ye,factions:t,settings:r,showTooltip:m,hideTooltip:b,tooltipVisibleRef:T,touchedSystemNameRef:k,highlighted:g&&Mt,opacity:gt},ye.name||ke)})}),je.jsx(Hx,{children:p.visible&&!W&&je.jsxs(UE,{x:p.x,y:p.y,opacity:.75,scaleX:X,scaleY:X,children:[je.jsx(Loe,{x:-Se.boxWidth/2,y:-(Se.boxHeight+se),width:Se.boxWidth,height:Se.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),je.jsx(Foe,{points:[-ve/2,-se,0,0,ve/2,-se],fill:"white",closed:!0}),Se.lines.map((ye,ke)=>(()=>{const ze=oe(ye,ke);return je.jsx(UE,{x:-Se.boxWidth/2+ne,y:-(Se.boxHeight+se-ne-ke*J),listening:!1,children:ze.map((Ye,Mt)=>{const gt=ze.slice(0,Mt).reduce((xt,zt)=>{const Ht=new y4.Text({text:zt.text,fontFamily:"Roboto Mono, monospace",fontSize:zt.fontSize,fontStyle:zt.fontStyle}),mt=Ht.width();return Ht.destroy(),xt+mt},0);return je.jsx(HE,{x:gt,y:0,text:Ye.text,fontFamily:"Roboto Mono, monospace",fontSize:Ye.fontSize,fontStyle:Ye.fontStyle,fill:"black",listening:!1},`${Ye.text}-${Mt}`)})},`${ye}-${ke}`)})())]})})]}),W&&p.visible&&je.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[je.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:Ce.title}),Ce.subtitle&&je.jsx("div",{style:{marginTop:"2px",opacity:.8},children:Ce.subtitle}),je.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:Ce.details.map((ye,ke)=>je.jsx("div",{children:ye},`${ye}-${ke}`))}),Me.length>0&&je.jsxs("div",{style:{marginTop:"10px"},children:[je.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),je.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Ie.map(ye=>je.jsx("div",{children:`${ye.name} ${ye.control}% · P${ye.players}`},`${ye.name}-${ye.control}-${ye.players}`))}),Re>0&&je.jsx("button",{type:"button",onClick:()=>y(ye=>!ye),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),je.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[p.onTouch&&je.jsx("button",{type:"button",onClick:()=>{var ye;return(ye=p.onTouch)==null?void 0:ye.call(p)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),je.jsx("button",{type:"button",onClick:b,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),je.jsx(Zse,{searchTerm:S,setSearchTerm:_,factions:q.useMemo(()=>LJ(e,t),[e,t]),selectedFactions:h,setSelectedFactions:c})]})},b9=uue;function due(e){return Qw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function fue(){return je.jsx(YW,{children:je.jsx(pue,{})})}function pue(){const e=YR();return Bv(e)?je.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",je.jsx(O1,{to:"/",children:je.jsxs("div",{className:"flex",children:[je.jsx(due,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?je.jsxs("div",{id:"error-page",children:[je.jsx("h1",{children:"Oops! Unexpected Error"}),je.jsx("p",{children:"Something went wrong."}),je.jsx("p",{children:je.jsx("i",{children:e.message})})]}):je.jsx(je.Fragment,{children:"Unknown error"})}const hue="/",gue=SW(KS(je.jsxs(je.Fragment,{children:[je.jsx(GS,{path:"/",element:je.jsx(b9,{}),errorElement:je.jsx(fue,{})}),je.jsx(GS,{index:!0,element:je.jsx(b9,{})})]})),{basename:hue});function vue(){return je.jsx(NW,{router:gue})}NR(document.getElementById("react-root")).render(je.jsx(q.StrictMode,{children:je.jsx(vue,{})})); diff --git a/map/index.html b/map/index.html index 2434891..9260b2a 100644 --- a/map/index.html +++ b/map/index.html @@ -5,7 +5,7 @@ RogueTech - + diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index 2d2e884..6574fdb 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -1,6 +1,5 @@ -import { memo, useEffect, useRef } from 'react'; +import { memo } from 'react'; import { Circle } from 'react-konva'; -import Konva from 'konva'; import { findFaction, openInNewTab } from '../helpers'; import { DisplayStarSystemType, @@ -49,7 +48,6 @@ const StarSystem: React.FC = ({ opacity = 1, }) => { const baseRadius = system.isCapital ? CAPITAL_RADIUS : PLANET_RADIUS; - const radius = (highlighted ? baseRadius * 3 : baseRadius) / zoomScaleFactor; const buildControlItems = ( systemFactions: StarSystemType['factions'], @@ -74,6 +72,25 @@ const StarSystem: React.FC = ({ const hasActivePlayers = system.factions.some( (faction) => faction.ActivePlayers > 0 ); + const showActivePlayerIndicator = + settings.flashActivePlayes && hasActivePlayers; + const activePlayerRadiusMultiplier = showActivePlayerIndicator ? 1.25 : 1; + const radius = + ((highlighted ? baseRadius * 3 : baseRadius) * activePlayerRadiusMultiplier) / + zoomScaleFactor; + const centerX = Number(system.posX); + const centerY = -Number(system.posY); + const circleOpacity = showActivePlayerIndicator + ? Math.min(1, opacity + 0.25) + : opacity; + const haloRadius = radius * 1.9; + const haloOpacity = Math.min(0.34, circleOpacity * 0.4); + const rimOpacity = Math.min(0.4, circleOpacity * 0.4); + const shineRadius = radius * 0.45; + const shineOpacity = Math.min(0.42, circleOpacity * 0.45); + const shineOffset = radius * 0.35; + const shineCenterColor = `rgba(255,255,255,${shineOpacity})`; + const shineEdgeColor = 'rgba(255,255,255,0)'; const damageLevelText = system.damageLevel !== undefined && system.damageLevel !== null && @@ -129,103 +146,109 @@ const StarSystem: React.FC = ({ }; }; - const circleRef = useRef(null); - - useEffect(() => { - if (!settings.flashActivePlayes) return; - if (!hasActivePlayers || !circleRef.current) return; - - const node = circleRef.current; - - const baseOpacity = opacity; - - const anim = new Konva.Animation((frame) => { - if (!frame) return; - - const sine = Math.sin(frame.time * 0.005); - const scale = sine * 0.1 + 1; - const pulseOverlay = sine * 0.15 + 0.7; - - node.scale({ x: scale, y: scale }); - node.opacity(baseOpacity * pulseOverlay); - }, node.getLayer()); - - anim.start(); - - return () => { - anim.stop(); - node.opacity(baseOpacity); - }; - }, [hasActivePlayers, settings, opacity]); - return ( - { - e.cancelBubble = true; - if (system.sysUrl) { - openInNewTab(`${API_BASE_URL}${system.sysUrl}`); - } - }} - onMouseEnter={(e) => { - const stage = e.target.getStage(); - if (!stage) return; - - const pointer = stage.getPointerPosition(); - if (!pointer) return; - - const tooltipData = buildTooltipText(); - showTooltip( - tooltipData.text, - pointer.x, - pointer.y, - stage.x(), - stage.y(), - undefined, - tooltipData.controlItems - ); - }} - onMouseLeave={hideTooltip} - onTouchStart={(e) => { - if (e.evt.touches.length === 1) { - e.evt.preventDefault(); + <> + {showActivePlayerIndicator && ( + + )} + {showActivePlayerIndicator && ( + + )} + { + e.cancelBubble = true; + if (system.sysUrl) { + openInNewTab(`${API_BASE_URL}${system.sysUrl}`); + } + }} + onMouseEnter={(e) => { const stage = e.target.getStage(); if (!stage) return; - const pointer = stage.getRelativePointerPosition(); + const pointer = stage.getPointerPosition(); if (!pointer) return; - if ( - tooltipVisibleRef.current && - touchedSystemNameRef.current === system.name - ) { - window.location.href = `${API_BASE_URL}${system.sysUrl}`; - return; - } - - const tooltipData = buildTooltipText(true); - + const tooltipData = buildTooltipText(); showTooltip( tooltipData.text, pointer.x, pointer.y, + stage.x(), + stage.y(), undefined, - undefined, - () => { - window.location.href = `${API_BASE_URL}${system.sysUrl}`; - }, tooltipData.controlItems ); - touchedSystemNameRef.current = system.name; - } - }} - /> + }} + onMouseLeave={hideTooltip} + onTouchStart={(e) => { + if (e.evt.touches.length === 1) { + e.evt.preventDefault(); + const stage = e.target.getStage(); + if (!stage) return; + + const pointer = stage.getRelativePointerPosition(); + if (!pointer) return; + + if ( + tooltipVisibleRef.current && + touchedSystemNameRef.current === system.name + ) { + window.location.href = `${API_BASE_URL}${system.sysUrl}`; + return; + } + + const tooltipData = buildTooltipText(true); + + showTooltip( + tooltipData.text, + pointer.x, + pointer.y, + undefined, + undefined, + () => { + window.location.href = `${API_BASE_URL}${system.sysUrl}`; + }, + tooltipData.controlItems + ); + touchedSystemNameRef.current = system.name; + } + }} + /> + {showActivePlayerIndicator && ( + + )} + ); }; From 807fa749f1390e042d14ff8117a775edce56f1eb Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Mon, 23 Feb 2026 19:00:41 -0800 Subject: [PATCH 14/28] active player halo size increase --- map/assets/index-BxHkQtoi.js | 189 +++++++++++++++++++++++++++++++ map/assets/index-ZsKGIcJ-.js | 189 ------------------------------- map/index.html | 2 +- src/components/ui/StarSystem.tsx | 2 +- 4 files changed, 191 insertions(+), 191 deletions(-) create mode 100644 map/assets/index-BxHkQtoi.js delete mode 100644 map/assets/index-ZsKGIcJ-.js diff --git a/map/assets/index-BxHkQtoi.js b/map/assets/index-BxHkQtoi.js new file mode 100644 index 0000000..ffe07ad --- /dev/null +++ b/map/assets/index-BxHkQtoi.js @@ -0,0 +1,189 @@ +function E4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var sO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _9={exports:{}},Aw={},x9={exports:{}},Lt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dv=Symbol.for("react.element"),NV=Symbol.for("react.portal"),AV=Symbol.for("react.fragment"),IV=Symbol.for("react.strict_mode"),LV=Symbol.for("react.profiler"),DV=Symbol.for("react.provider"),FV=Symbol.for("react.context"),jV=Symbol.for("react.forward_ref"),zV=Symbol.for("react.suspense"),VV=Symbol.for("react.memo"),BV=Symbol.for("react.lazy"),uO=Symbol.iterator;function UV(e){return e===null||typeof e!="object"?null:(e=uO&&e[uO]||e["@@iterator"],typeof e=="function"?e:null)}var S9={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C9=Object.assign,P9={};function oh(e,t,r){this.props=e,this.context=t,this.refs=P9,this.updater=r||S9}oh.prototype.isReactComponent={};oh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function T9(){}T9.prototype=oh.prototype;function M4(e,t,r){this.props=e,this.context=t,this.refs=P9,this.updater=r||S9}var R4=M4.prototype=new T9;R4.constructor=M4;C9(R4,oh.prototype);R4.isPureReactComponent=!0;var cO=Array.isArray,O9=Object.prototype.hasOwnProperty,N4={current:null},k9={key:!0,ref:!0,__self:!0,__source:!0};function E9(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)O9.call(t,n)&&!k9.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1>>1,ne=Q[re];if(0>>1;reo(we,Y))ceo(ee,we)?(Q[re]=ee,Q[ce]=Y,re=ce):(Q[re]=we,Q[ve]=Y,re=ve);else if(ceo(ee,Y))Q[re]=ee,Q[ce]=Y,re=ce;else break e}}return W}function o(Q,W){var Y=Q.sortIndex-W.sortIndex;return Y!==0?Y:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,b=null,S=3,w=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function g(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,q(m);else{var W=r(d);W!==null&&J(g,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,h(k),k=-1),w=!0;var Y=S;try{for(c(W),b=r(s);b!==null&&(!(b.expirationTime>W)||Q&&!A());){var re=b.callback;if(typeof re=="function"){b.callback=null,S=b.priorityLevel;var ne=re(b.expirationTime<=W);W=e.unstable_now(),typeof ne=="function"?b.callback=ne:b===r(s)&&n(s),c(W)}else n(s);b=r(s)}if(b!==null)var se=!0;else{var ve=r(d);ve!==null&&J(g,ve.startTime-W),se=!1}return se}finally{b=null,S=Y,w=!1}}var _=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125re?(Q.sortIndex=Y,t(d,Q),r(s)===null&&Q===r(d)&&(y?(h(k),k=-1):y=!0,J(g,Y-re))):(Q.sortIndex=ne,t(s,Q),P||w||(P=!0,q(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var Y=S;S=W;try{return Q.apply(this,arguments)}finally{S=Y}}}})(I9);A9.exports=I9;var fp=A9.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var JV=X,Oi=fp;function De(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jx=Object.prototype.hasOwnProperty,eB=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fO={},pO={};function tB(e){return Jx.call(pO,e)?!0:Jx.call(fO,e)?!1:eB.test(e)?pO[e]=!0:(fO[e]=!0,!1)}function rB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nB(e,t,r,n){if(t===null||typeof t>"u"||rB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var I4=/[\-:]([a-z])/g;function L4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function D4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{m_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?tg(e):""}function oB(e){switch(e.tag){case 5:return tg(e.type);case 16:return tg("Lazy");case 13:return tg("Suspense");case 19:return tg("SuspenseList");case 0:case 2:case 15:return e=y_(e.type,!1),e;case 11:return e=y_(e.type.render,!1),e;case 1:return e=y_(e.type,!0),e;default:return""}}function nS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vf:return"Fragment";case zf:return"Portal";case eS:return"Profiler";case F4:return"StrictMode";case tS:return"Suspense";case rS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F9:return(e.displayName||"Context")+".Consumer";case D9:return(e._context.displayName||"Context")+".Provider";case j4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z4:return t=e.displayName||null,t!==null?t:nS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return nS(e(t))}catch{}}return null}function iB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nS(t);case 8:return t===F4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function z9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aB(e){var t=z9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hy(e){e._valueTracker||(e._valueTracker=aB(e))}function V9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=z9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function r1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function oS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function gO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function B9(e,t){t=t.checked,t!=null&&D4(e,"checked",t,!1)}function iS(e,t){B9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?aS(e,t.type,r):t.hasOwnProperty("defaultValue")&&aS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function aS(e,t,r){(t!=="number"||r1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rg=Array.isArray;function pp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lB=["Webkit","ms","Moz","O"];Object.keys(hg).forEach(function(e){lB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hg[t]=hg[e]})});function $9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hg.hasOwnProperty(e)&&hg[e]?(""+t).trim():t+"px"}function G9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=$9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var sB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uS(e,t){if(t){if(sB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(De(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(De(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(De(61))}if(t.style!=null&&typeof t.style!="object")throw Error(De(62))}}function cS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dS=null;function V4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fS=null,hp=null,gp=null;function bO(e){if(e=zv(e)){if(typeof fS!="function")throw Error(De(280));var t=e.stateNode;t&&(t=jw(t),fS(e.stateNode,e.type,t))}}function K9(e){hp?gp?gp.push(e):gp=[e]:hp=e}function q9(){if(hp){var e=hp,t=gp;if(gp=hp=null,bO(e),t)for(e=0;e>>=0,e===0?32:31-(bB(e)/wB|0)|0}var vy=64,my=4194304;function ng(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function a1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=ng(l):(i&=a,i!==0&&(n=ng(i)))}else a=r&~o,a!==0?n=ng(a):i!==0&&(n=ng(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Fv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function CB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=vg),kO=" ",EO=!1;function hM(e,t){switch(e){case"keyup":return ZB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bf=!1;function eU(e,t){switch(e){case"compositionend":return gM(t);case"keypress":return t.which!==32?null:(EO=!0,kO);case"textInput":return e=t.data,e===kO&&EO?null:e;default:return null}}function tU(e,t){if(Bf)return e==="compositionend"||!q4&&hM(e,t)?(e=fM(),gb=$4=au=null,Bf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AO(r)}}function bM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wM(){for(var e=window,t=r1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=r1(e.document)}return t}function Y4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cU(e){var t=wM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bM(r.ownerDocument.documentElement,r)){if(n!==null&&Y4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=IO(r,i);var a=IO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Uf=null,yS=null,yg=null,bS=!1;function LO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;bS||Uf==null||Uf!==r1(n)||(n=Uf,"selectionStart"in n&&Y4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yg&&$g(yg,n)||(yg=n,n=u1(yS,"onSelect"),0$f||(e.current=PS[$f],PS[$f]=null,$f--)}function ur(e,t){$f++,PS[$f]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Rp(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function d1(){mr(Xo),mr(ho)}function UO(e,t,r){if(ho.current!==Eu)throw Error(De(168));ur(ho,t),ur(Xo,r)}function EM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(De(108,iB(e)||"Unknown",o));return Ar({},r,n)}function f1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function HO(e,t,r){var n=e.stateNode;if(!n)throw Error(De(169));r?(e=EM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,zw=!1,N_=!1;function MM(e){ql===null?ql=[e]:ql.push(e)}function xU(e){zw=!0,MM(e)}function ju(){if(!N_&&ql!==null){N_=!0;var e=0,t=Xt;try{var r=ql;for(Xt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return _r&&Fc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),_r&&Fc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===Vf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case py:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===Vf){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&GO(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=A0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===Vf?(p=Qc(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=Sb(c.type,c.key,c.props,null,h.mode,g),g.ref=A0(h,p,c),g.return=h,h=g)}return a(h);case zf:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=V_(c,h.mode,g),p.return=h,h=p}return a(h);case Qs:return _=c._init,C(h,p,_(c._payload),g)}if(rg(c))return P(h,p,c,g);if(k0(c))return y(h,p,c,g);Cy(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=z_(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Ap=IM(!0),LM=IM(!1),g1=Fu(null),v1=null,qf=null,J4=null;function eP(){J4=qf=v1=null}function tP(e){var t=g1.current;mr(g1),e._currentValue=t}function kS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function mp(e,t){v1=e,J4=qf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(J4!==e)if(e={context:e,memoizedValue:t,next:null},qf===null){if(v1===null)throw Error(De(308));qf=e,v1.dependencies={lanes:0,firstContext:e}}else qf=qf.next=e;return t}var Wc=null;function rP(e){Wc===null?Wc=[e]:Wc.push(e)}function DM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,rP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function nP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Wt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,rP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function mb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}function KO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function m1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var b=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,w=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,w=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){b=P.call(w,b,S);break e}b=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(w,b,S):P,S==null)break e;b=Ar({},b,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else w={eventTime:w,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=w,s=b):v=v.next=w,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=b),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=b}}function qO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=I_.transition;I_.transition={};try{e(!1),t()}finally{Xt=r,I_.transition=n}}function eR(){return sa().memoizedState}function TU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},tR(e))rR(t,r);else if(r=DM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),nR(r,t,n)}}function OU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(tR(e))rR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,rP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=DM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),nR(r,t,n))}}function tR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function rR(e,t){bg=b1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function nR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}var w1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},kU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:XO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bb(4194308,4,YM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return bb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:YO,useDebugValue:dP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=YO(!1),t=e[0];return e=PU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(De(407));r=r()}else{if(r=t(),Rn===null)throw Error(De(349));(nd&30)!==0||BM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,XO(HM.bind(null,n,i,e),[e]),n.flags|=2048,Jg(9,UM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Qg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[qg]=n,pR(e,t,!1,!1),t.stateNode=e;e:{switch(a=cS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oDp&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304)}else{if(!n)if(e=y1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),I0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Dp&&r!==1073741824&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return mP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function DU(e,t){switch(Q4(t),t.tag){case 1:return Qo(t.type)&&d1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ip(),mr(Xo),mr(ho),aP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return iP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(De(340));Np()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Ip(),null;case 10:return tP(t.type._context),null;case 22:case 23:return mP(),null;case 24:return null;default:return null}}var Ty=!1,co=!1,FU=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Yf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function FS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var l6=!1;function jU(e,t){if(wS=l1,e=wM(),Y4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(_S={focusedElem:e,selectionRange:r},l1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(De(163))}}catch(g){Vr(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=l6,l6=!1,P}function wg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&FS(t,r,i)}o=o.next}while(o!==n)}}function Uw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function jS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function vR(e){var t=e.alternate;t!==null&&(e.alternate=null,vR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[qg],delete t[CS],delete t[wU],delete t[_U])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mR(e){return e.tag===5||e.tag===3||e.tag===4}function s6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=c1));else if(n!==4&&(e=e.child,e!==null))for(zS(e,t,r),e=e.sibling;e!==null;)zS(e,t,r),e=e.sibling}function VS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(VS(e,t,r),e=e.sibling;e!==null;)VS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)yR(e,t,r),r=r.sibling}function yR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Iw,r)}catch{}switch(r.tag){case 5:co||Yf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?R_(e.parentNode,r):e.nodeType===1&&R_(e,r),Hg(e)):R_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&FS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Yf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function u6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FU),t.forEach(function(n){var o=KU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,S1=0,(Wt&6)!==0)throw Error(De(331));var o=Wt;for(Wt|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-gP?Xc(e,0):hP|=r),Zo(e,t)}function TR(e,t){t===0&&((e.mode&1)===0?t=1:(t=my,my<<=1,(my&130023424)===0&&(my=4194304)));var r=Ro();e=us(e,t),e!==null&&(Fv(e,t,r),Zo(e,r))}function GU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TR(e,r)}function KU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(De(314))}n!==null&&n.delete(t),TR(e,r)}var OR;OR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,IU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&RM(t,h1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;wb(e,t),e=t.pendingProps;var o=Rp(t,ho.current);mp(t,r),o=sP(null,t,n,e,o,r);var i=uP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,f1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nP(t),o.updater=Bw,t.stateNode=o,o._reactInternals=t,MS(t,n,e,r),t=AS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&X4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(wb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=YU(n),e=Ta(n,e),o){case 0:t=NS(null,t,n,e,r);break e;case 1:t=o6(null,t,n,e,r);break e;case 11:t=r6(null,t,n,e,r);break e;case 14:t=n6(null,t,n,Ta(n.type,e),r);break e}throw Error(De(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),NS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),o6(e,t,n,o,r);case 3:e:{if(cR(t),e===null)throw Error(De(387));n=t.pendingProps,i=t.memoizedState,o=i.element,FM(e,t),m1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lp(Error(De(423)),t),t=i6(e,t,n,r,o);break e}else if(n!==o){o=Lp(Error(De(424)),t),t=i6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=LM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Np(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return jM(t),e===null&&OS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,xS(n,o)?a=null:i!==null&&xS(n,i)&&(t.flags|=32),uR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&OS(t),null;case 13:return dR(e,t,r);case 4:return oP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ap(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),r6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(g1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),kS(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(De(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),kS(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),n6(e,t,n,o,r);case 15:return lR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),wb(e,t),t.tag=1,Qo(n)?(e=!0,f1(t)):e=!1,mp(t,r),oR(t,n,o),MS(t,n,o,r),AS(null,t,n,!0,e,r);case 19:return fR(e,t,r);case 22:return sR(e,t,r)}throw Error(De(156,t.tag))};function kR(e,t){return tM(e,t)}function qU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new qU(e,t,r,n)}function bP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YU(e){if(typeof e=="function")return bP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j4)return 11;if(e===z4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Sb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")bP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vf:return Qc(r.children,o,i,t);case F4:a=8,o|=8;break;case eS:return e=ta(12,r,t,o|2),e.elementType=eS,e.lanes=i,e;case tS:return e=ta(13,r,t,o),e.elementType=tS,e.lanes=i,e;case rS:return e=ta(19,r,t,o),e.elementType=rS,e.lanes=i,e;case j9:return Ww(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D9:a=10;break e;case F9:a=9;break e;case j4:a=11;break e;case z4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(De(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function Ww(e,t,r,n){return e=ta(22,e,n,t),e.elementType=j9,e.lanes=r,e.stateNode={isHidden:!1},e}function z_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function V_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=w_(0),this.expirationTimes=w_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=w_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wP(e,t,r,n,o,i,a,l,s){return e=new XU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nP(i),e}function QU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),N9.exports=Mi;var Yw=N9.exports;const rH=nh(Yw),nH=E4({__proto__:null,default:rH},[Yw]);var AR,m6=Yw;AR=m6.createRoot,m6.hydrateRoot;/** + * @remix-run/router v1.19.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iH(){return Math.random().toString(36).substr(2,8)}function b6(e,t){return{usr:e.state,key:e.key,idx:t}}function tv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||iH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function b(){l=rn.Pop;let C=v(),h=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:h})}function S(C,h){l=rn.Push;let p=tv(y.location,C,h);d=v()+1;let c=b6(p,d),g=y.createHref(p);try{a.pushState(c,"",g)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(g)}i&&s&&s({action:l,location:y.location,delta:1})}function w(C,h){l=rn.Replace;let p=tv(y.location,C,h);d=v();let c=b6(p,d),g=y.createHref(p);a.replaceState(c,"",g),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof C=="string"?C:ad(C);return p=p.replace(/ $/,"%20"),Pt(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(y6,b),s=C,()=>{o.removeEventListener(y6,b),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let h=P(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:S,replace:w,go(C){return a.go(C)}};return y}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const lH=new Set(["lazy","caseSensitive","path","id","index","children"]);function sH(e){return e.index===!0}function rv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pt(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),sH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=rv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Cb(e,t,r,!1)}function Cb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=lh(o.pathname||"/",r);if(i==null)return null;let a=IR(e);cH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Pt(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),IR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:mH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of LR(i.path))o(i,a,s)}),t}function LR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=LR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function cH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:yH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dH=/^:[\w-]+$/,fH=3,pH=2,hH=1,gH=10,vH=-2,w6=e=>e==="*";function mH(e,t){let r=e.split("/"),n=r.length;return r.some(w6)&&(n+=vH),t&&(n+=pH),r.filter(o=>!w6(o)).reduce((o,i)=>o+(dH.test(i)?fH:i===""?hH:gH),n)}function yH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function bH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:w}=v;if(S==="*"){let y=l[b]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[b];return w&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function wH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Fp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function _H(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function xH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:SH(r,t):t,search:PH(n),hash:TH(o)}}function SH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function B_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function DR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function CP(e,t){let r=DR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function PP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Pt(!o.pathname||!o.pathname.includes("?"),B_("?","pathname","search",o)),Pt(!o.pathname||!o.pathname.includes("#"),B_("#","pathname","hash",o)),Pt(!o.search||!o.search.includes("#"),B_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let b=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),b-=1;o.pathname=S.join("/")}l=b>=0?t[b]:"/"}let s=xH(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),CH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class T1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Bv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FR=["post","put","patch","delete"],OH=new Set(FR),kH=["get",...FR],EH=new Set(kH),MH=new Set([301,302,303,307,308]),RH=new Set([307,308]),U_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},D0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},TP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jR="remix-router-transitions";function IH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ae=e.detectErrorBoundary;o=pe=>({hasErrorBoundary:ae(pe)})}else o=AH;let i={},a=rv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||VH,v=e.unstable_patchRoutesOnNavigation,b=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,w=new Set,P=1e3,y=new Set,C=null,h=null,p=null,c=e.hydrationData!=null,g=Uc(a,e.history.location,s),m=null;if(g==null&&!v){let ae=ko(404,{pathname:e.history.location.pathname}),{matches:pe,route:xe}=M6(a);g=pe,m={[xe.id]:ae}}g&&!e.hydrationData&&bo(g,a,e.history.location.pathname).active&&(g=null);let _;if(g)if(g.some(ae=>ae.route.lazy))_=!1;else if(!g.some(ae=>ae.route.loader))_=!0;else if(b.v7_partialHydration){let ae=e.hydrationData?e.hydrationData.loaderData:null,pe=e.hydrationData?e.hydrationData.errors:null,xe=Oe=>Oe.route.loader?typeof Oe.route.loader=="function"&&Oe.route.loader.hydrate===!0?!1:ae&&ae[Oe.route.id]!==void 0||pe&&pe[Oe.route.id]!==void 0:!0;if(pe){let Oe=g.findIndex(Ue=>pe[Ue.route.id]!==void 0);_=g.slice(0,Oe+1).every(xe)}else _=g.every(xe)}else _=e.hydrationData!=null;else if(_=!1,g=[],b.v7_partialHydration){let ae=bo(null,a,e.history.location.pathname);ae.active&&ae.matches&&(g=ae.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:g,initialized:_,navigation:U_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,U=!1,q=!1,J=[],Q=new Set,W=new Map,Y=0,re=-1,ne=new Map,se=new Set,ve=new Map,we=new Map,ce=new Set,ee=new Map,oe=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(ae=>{let{action:pe,location:xe,delta:Oe}=ae;if(Se){Se(),Se=void 0;return}Fp(oe.size===0||Oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=Li({currentLocation:k.location,nextLocation:xe,historyAction:pe});if(Ue&&Oe!=null){let Qe=new Promise(ut=>{Se=ut});e.history.go(Oe*-1),sn(Ue,{state:"blocked",location:xe,proceed(){sn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Qe.then(()=>e.history.go(Oe))},reset(){let ut=new Map(k.blockers);ut.set(Ue,D0),Re({blockers:ut})}});return}return Ye(pe,xe)}),r){tW(t,V);let ae=()=>rW(t,V);t.addEventListener("pagehide",ae),B=()=>t.removeEventListener("pagehide",ae)}return k.initialized||Ye(rn.Pop,k.location,{initialHydration:!0}),T}function Me(){S&&S(),B&&B(),w.clear(),A&&A.abort(),k.fetchers.forEach((ae,pe)=>Yt(pe)),k.blockers.forEach((ae,pe)=>Ka(pe))}function Ie(ae){return w.add(ae),()=>w.delete(ae)}function Re(ae,pe){pe===void 0&&(pe={}),k=Tr({},k,ae);let xe=[],Oe=[];b.v7_fetcherPersist&&k.fetchers.forEach((Ue,Qe)=>{Ue.state==="idle"&&(ce.has(Qe)?Oe.push(Qe):xe.push(Qe))}),[...w].forEach(Ue=>Ue(k,{deletedFetchers:Oe,unstable_viewTransitionOpts:pe.viewTransitionOpts,unstable_flushSync:pe.flushSync===!0})),b.v7_fetcherPersist&&(xe.forEach(Ue=>k.fetchers.delete(Ue)),Oe.forEach(Ue=>Yt(Ue)))}function ye(ae,pe,xe){var Oe,Ue;let{flushSync:Qe}=xe===void 0?{}:xe,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Oe=ae.state)==null?void 0:Oe._isRedirect)!==!0,je;pe.actionData?Object.keys(pe.actionData).length>0?je=pe.actionData:je=null:ut?je=k.actionData:je=null;let Ze=pe.loaderData?k6(k.loaderData,pe.loaderData,pe.matches||[],pe.errors):k.loaderData,$e=k.blockers;$e.size>0&&($e=new Map($e),$e.forEach((Nt,Ut)=>$e.set(Ut,D0)));let Ge=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Ue=ae.state)==null?void 0:Ue._isRedirect)!==!0;l&&(a=l,l=void 0),U||R===rn.Pop||(R===rn.Push?e.history.push(ae,ae.state):R===rn.Replace&&e.history.replace(ae,ae.state));let kt;if(R===rn.Pop){let Nt=V.get(k.location.pathname);Nt&&Nt.has(ae.pathname)?kt={currentLocation:k.location,nextLocation:ae}:V.has(ae.pathname)&&(kt={currentLocation:ae,nextLocation:k.location})}else if(F){let Nt=V.get(k.location.pathname);Nt?Nt.add(ae.pathname):(Nt=new Set([ae.pathname]),V.set(k.location.pathname,Nt)),kt={currentLocation:k.location,nextLocation:ae}}Re(Tr({},pe,{actionData:je,loaderData:Ze,historyAction:R,location:ae,initialized:!0,navigation:U_,revalidation:"idle",restoreScrollPosition:Fi(ae,pe.matches||k.matches),preventScrollReset:Ge,blockers:$e}),{viewTransitionOpts:kt,flushSync:Qe===!0}),R=rn.Pop,E=!1,F=!1,U=!1,q=!1,J=[]}async function ke(ae,pe){if(typeof ae=="number"){e.history.go(ae);return}let xe=$S(k.location,k.matches,s,b.v7_prependBasename,ae,b.v7_relativeSplatPath,pe==null?void 0:pe.fromRouteId,pe==null?void 0:pe.relative),{path:Oe,submission:Ue,error:Qe}=x6(b.v7_normalizeFormMethod,!1,xe,pe),ut=k.location,je=tv(k.location,Oe,pe&&pe.state);je=Tr({},je,e.history.encodeLocation(je));let Ze=pe&&pe.replace!=null?pe.replace:void 0,$e=rn.Push;Ze===!0?$e=rn.Replace:Ze===!1||Ue!=null&&Ea(Ue.formMethod)&&Ue.formAction===k.location.pathname+k.location.search&&($e=rn.Replace);let Ge=pe&&"preventScrollReset"in pe?pe.preventScrollReset===!0:void 0,kt=(pe&&pe.unstable_flushSync)===!0,Nt=Li({currentLocation:ut,nextLocation:je,historyAction:$e});if(Nt){sn(Nt,{state:"blocked",location:je,proceed(){sn(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),ke(ae,pe)},reset(){let Ut=new Map(k.blockers);Ut.set(Nt,D0),Re({blockers:Ut})}});return}return await Ye($e,je,{submission:Ue,pendingError:Qe,preventScrollReset:Ge,replace:pe&&pe.replace,enableViewTransition:pe&&pe.unstable_viewTransition,flushSync:kt})}function ze(){if(Qn(),Re({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Ye(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Ye(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function Ye(ae,pe,xe){A&&A.abort(),A=null,R=ae,U=(xe&&xe.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(xe&&xe.preventScrollReset)===!0,F=(xe&&xe.enableViewTransition)===!0;let Oe=l||a,Ue=xe&&xe.overrideNavigation,Qe=Uc(Oe,pe,s),ut=(xe&&xe.flushSync)===!0,je=bo(Qe,Oe,pe.pathname);if(je.active&&je.matches&&(Qe=je.matches),!Qe){let{error:bt,notFoundMatches:dr,route:or}=fa(pe.pathname);ye(pe,{matches:dr,loaderData:{},errors:{[or.id]:bt}},{flushSync:ut});return}if(k.initialized&&!q&&GH(k.location,pe)&&!(xe&&xe.submission&&Ea(xe.submission.formMethod))){ye(pe,{matches:Qe},{flushSync:ut});return}A=new AbortController;let Ze=Rf(e.history,pe,A.signal,xe&&xe.submission),$e;if(xe&&xe.pendingError)$e=[Qf(Qe).route.id,{type:rr.error,error:xe.pendingError}];else if(xe&&xe.submission&&Ea(xe.submission.formMethod)){let bt=await Mt(Ze,pe,xe.submission,Qe,je.active,{replace:xe.replace,flushSync:ut});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[dr,or]=bt.pendingActionResult;if(wi(or)&&Bv(or.error)&&or.error.status===404){A=null,ye(pe,{matches:bt.matches,loaderData:{},errors:{[dr]:or.error}});return}}Qe=bt.matches||Qe,$e=bt.pendingActionResult,Ue=H_(pe,xe.submission),ut=!1,je.active=!1,Ze=Rf(e.history,Ze.url,Ze.signal)}let{shortCircuited:Ge,matches:kt,loaderData:Nt,errors:Ut}=await gt(Ze,pe,Qe,je.active,Ue,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,ut,$e);Ge||(A=null,ye(pe,Tr({matches:kt||Qe},E6($e),{loaderData:Nt,errors:Ut})))}async function Mt(ae,pe,xe,Oe,Ue,Qe){Qe===void 0&&(Qe={}),Qn();let ut=JH(pe,xe);if(Re({navigation:ut},{flushSync:Qe.flushSync===!0}),Ue){let $e=await ni(Oe,pe.pathname,ae.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let{boundaryId:Ge,error:kt}=$r(pe.pathname,$e);return{matches:$e.partialMatches,pendingActionResult:[Ge,{type:rr.error,error:kt}]}}else if($e.matches)Oe=$e.matches;else{let{notFoundMatches:Ge,error:kt,route:Nt}=fa(pe.pathname);return{matches:Ge,pendingActionResult:[Nt.id,{type:rr.error,error:kt}]}}}let je,Ze=ig(Oe,pe);if(!Ze.route.action&&!Ze.route.lazy)je={type:rr.error,error:ko(405,{method:ae.method,pathname:pe.pathname,routeId:Ze.route.id})};else if(je=(await Dr("action",k,ae,[Ze],Oe,null))[Ze.route.id],ae.signal.aborted)return{shortCircuited:!0};if(Gc(je)){let $e;return Qe&&Qe.replace!=null?$e=Qe.replace:$e=P6(je.response.headers.get("Location"),new URL(ae.url),s)===k.location.pathname+k.location.search,await Jt(ae,je,!0,{submission:xe,replace:$e}),{shortCircuited:!0}}if(su(je))throw ko(400,{type:"defer-action"});if(wi(je)){let $e=Qf(Oe,Ze.route.id);return(Qe&&Qe.replace)!==!0&&(R=rn.Push),{matches:Oe,pendingActionResult:[$e.route.id,je]}}return{matches:Oe,pendingActionResult:[Ze.route.id,je]}}async function gt(ae,pe,xe,Oe,Ue,Qe,ut,je,Ze,$e,Ge){let kt=Ue||H_(pe,Qe),Nt=Qe||ut||N6(kt),Ut=!U&&(!b.v7_partialHydration||!Ze);if(Oe){if(Ut){let It=xt(Ge);Re(Tr({navigation:kt},It!==void 0?{actionData:It}:{}),{flushSync:$e})}let He=await ni(xe,pe.pathname,ae.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let{boundaryId:It,error:at}=$r(pe.pathname,He);return{matches:He.partialMatches,loaderData:{},errors:{[It]:at}}}else if(He.matches)xe=He.matches;else{let{error:It,notFoundMatches:at,route:rt}=fa(pe.pathname);return{matches:at,loaderData:{},errors:{[rt.id]:It}}}}let bt=l||a,[dr,or]=S6(e.history,k,xe,Nt,pe,b.v7_partialHydration&&Ze===!0,b.v7_skipActionErrorRevalidation,q,J,Q,ce,ve,se,bt,s,Ge);if(Di(He=>!(xe&&xe.some(It=>It.route.id===He))||dr&&dr.some(It=>It.route.id===He)),re=++Y,dr.length===0&&or.length===0){let He=da();return ye(pe,Tr({matches:xe,loaderData:{},errors:Ge&&wi(Ge[1])?{[Ge[0]]:Ge[1].error}:null},E6(Ge),He?{fetchers:new Map(k.fetchers)}:{}),{flushSync:$e}),{shortCircuited:!0}}if(Ut){let He={};if(!Oe){He.navigation=kt;let It=xt(Ge);It!==void 0&&(He.actionData=It)}or.length>0&&(He.fetchers=zt(or)),Re(He,{flushSync:$e})}or.forEach(He=>{W.has(He.key)&&Qr(He.key),He.controller&&W.set(He.key,He.controller)});let Fn=()=>or.forEach(He=>Qr(He.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,xe,dr,or,ae);if(ae.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),or.forEach(He=>W.delete(He.key));let Zn=Ey(Fr);if(Zn)return await Jt(ae,Zn.result,!0,{replace:je}),{shortCircuited:!0};if(Zn=Ey(jn),Zn)return se.add(Zn.key),await Jt(ae,Zn.result,!0,{replace:je}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=O6(k,xe,dr,Fr,Ge,or,jn,ee);ee.forEach((He,It)=>{He.subscribe(at=>{(at||He.done)&&ee.delete(It)})}),b.v7_partialHydration&&Ze&&k.errors&&Object.entries(k.errors).filter(He=>{let[It]=He;return!dr.some(at=>at.route.id===It)}).forEach(He=>{let[It,at]=He;zn=Object.assign(zn||{},{[It]:at})});let un=da(),Zr=Sn(re),At=un||Zr||or.length>0;return Tr({matches:xe,loaderData:ji,errors:zn},At?{fetchers:new Map(k.fetchers)}:{})}function xt(ae){if(ae&&!wi(ae[1]))return{[ae[0]]:ae[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function zt(ae){return ae.forEach(pe=>{let xe=k.fetchers.get(pe.key),Oe=F0(void 0,xe?xe.data:void 0);k.fetchers.set(pe.key,Oe)}),new Map(k.fetchers)}function Ht(ae,pe,xe,Oe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(ae)&&Qr(ae);let Ue=(Oe&&Oe.unstable_flushSync)===!0,Qe=l||a,ut=$S(k.location,k.matches,s,b.v7_prependBasename,xe,b.v7_relativeSplatPath,pe,Oe==null?void 0:Oe.relative),je=Uc(Qe,ut,s),Ze=bo(je,Qe,ut);if(Ze.active&&Ze.matches&&(je=Ze.matches),!je){nr(ae,pe,ko(404,{pathname:ut}),{flushSync:Ue});return}let{path:$e,submission:Ge,error:kt}=x6(b.v7_normalizeFormMethod,!0,ut,Oe);if(kt){nr(ae,pe,kt,{flushSync:Ue});return}let Nt=ig(je,$e);if(E=(Oe&&Oe.preventScrollReset)===!0,Ge&&Ea(Ge.formMethod)){mt(ae,pe,$e,Nt,je,Ze.active,Ue,Ge);return}ve.set(ae,{routeId:pe,path:$e}),Ot(ae,pe,$e,Nt,je,Ze.active,Ue,Ge)}async function mt(ae,pe,xe,Oe,Ue,Qe,ut,je){Qn(),ve.delete(ae);function Ze(rt){if(!rt.route.action&&!rt.route.lazy){let St=ko(405,{method:je.formMethod,pathname:xe,routeId:pe});return nr(ae,pe,St,{flushSync:ut}),!0}return!1}if(!Qe&&Ze(Oe))return;let $e=k.fetchers.get(ae);Ln(ae,eW(je,$e),{flushSync:ut});let Ge=new AbortController,kt=Rf(e.history,xe,Ge.signal,je);if(Qe){let rt=await ni(Ue,xe,kt.signal);if(rt.type==="aborted")return;if(rt.type==="error"){let{error:St}=$r(xe,rt);nr(ae,pe,St,{flushSync:ut});return}else if(rt.matches){if(Ue=rt.matches,Oe=ig(Ue,xe),Ze(Oe))return}else{nr(ae,pe,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(ae,Ge);let Nt=Y,bt=(await Dr("action",k,kt,[Oe],Ue,ae))[Oe.route.id];if(kt.signal.aborted){W.get(ae)===Ge&&W.delete(ae);return}if(b.v7_fetcherPersist&&ce.has(ae)){if(Gc(bt)||wi(bt)){Ln(ae,Ks(void 0));return}}else{if(Gc(bt))if(W.delete(ae),re>Nt){Ln(ae,Ks(void 0));return}else return se.add(ae),Ln(ae,F0(je)),Jt(kt,bt,!1,{fetcherSubmission:je});if(wi(bt)){nr(ae,pe,bt.error);return}}if(su(bt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,or=Rf(e.history,dr,Ge.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Pt(Fr,"Didn't find any matches after fetcher action");let jn=++Y;ne.set(ae,jn);let Zn=F0(je,bt.data);k.fetchers.set(ae,Zn);let[ji,zn]=S6(e.history,k,Fr,je,dr,!1,b.v7_skipActionErrorRevalidation,q,J,Q,ce,ve,se,Fn,s,[Oe.route.id,bt]);zn.filter(rt=>rt.key!==ae).forEach(rt=>{let St=rt.key,cn=k.fetchers.get(St),wr=F0(void 0,cn?cn.data:void 0);k.fetchers.set(St,wr),W.has(St)&&Qr(St),rt.controller&&W.set(St,rt.controller)}),Re({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(rt=>Qr(rt.key));Ge.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:At}=await ln(k,Fr,ji,zn,or);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",un),ne.delete(ae),W.delete(ae),zn.forEach(rt=>W.delete(rt.key));let He=Ey(Zr);if(He)return Jt(or,He.result,!1);if(He=Ey(At),He)return se.add(He.key),Jt(or,He.result,!1);let{loaderData:It,errors:at}=O6(k,Fr,ji,Zr,void 0,zn,At,ee);if(k.fetchers.has(ae)){let rt=Ks(bt.data);k.fetchers.set(ae,rt)}Sn(jn),k.navigation.state==="loading"&&jn>re?(Pt(R,"Expected pending action"),A&&A.abort(),ye(k.navigation.location,{matches:Fr,loaderData:It,errors:at,fetchers:new Map(k.fetchers)})):(Re({errors:at,loaderData:k6(k.loaderData,It,Fr,at),fetchers:new Map(k.fetchers)}),q=!1)}async function Ot(ae,pe,xe,Oe,Ue,Qe,ut,je){let Ze=k.fetchers.get(ae);Ln(ae,F0(je,Ze?Ze.data:void 0),{flushSync:ut});let $e=new AbortController,Ge=Rf(e.history,xe,$e.signal);if(Qe){let bt=await ni(Ue,xe,Ge.signal);if(bt.type==="aborted")return;if(bt.type==="error"){let{error:dr}=$r(xe,bt);nr(ae,pe,dr,{flushSync:ut});return}else if(bt.matches)Ue=bt.matches,Oe=ig(Ue,xe);else{nr(ae,pe,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(ae,$e);let kt=Y,Ut=(await Dr("loader",k,Ge,[Oe],Ue,ae))[Oe.route.id];if(su(Ut)&&(Ut=await OP(Ut,Ge.signal,!0)||Ut),W.get(ae)===$e&&W.delete(ae),!Ge.signal.aborted){if(ce.has(ae)){Ln(ae,Ks(void 0));return}if(Gc(Ut))if(re>kt){Ln(ae,Ks(void 0));return}else{se.add(ae),await Jt(Ge,Ut,!1);return}if(wi(Ut)){nr(ae,pe,Ut.error);return}Pt(!su(Ut),"Unhandled fetcher deferred data"),Ln(ae,Ks(Ut.data))}}async function Jt(ae,pe,xe,Oe){let{submission:Ue,fetcherSubmission:Qe,replace:ut}=Oe===void 0?{}:Oe;pe.response.headers.has("X-Remix-Revalidate")&&(q=!0);let je=pe.response.headers.get("Location");Pt(je,"Expected a Location header on the redirect Response"),je=P6(je,new URL(ae.url),s);let Ze=tv(k.location,je,{_isRedirect:!0});if(r){let bt=!1;if(pe.response.headers.has("X-Remix-Reload-Document"))bt=!0;else if(TP.test(je)){const dr=e.history.createURL(je);bt=dr.origin!==t.location.origin||lh(dr.pathname,s)==null}if(bt){ut?t.location.replace(je):t.location.assign(je);return}}A=null;let $e=ut===!0||pe.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:Ge,formAction:kt,formEncType:Nt}=k.navigation;!Ue&&!Qe&&Ge&&kt&&Nt&&(Ue=N6(k.navigation));let Ut=Ue||Qe;if(RH.has(pe.response.status)&&Ut&&Ea(Ut.formMethod))await Ye($e,Ze,{submission:Tr({},Ut,{formAction:je}),preventScrollReset:E,enableViewTransition:xe?F:void 0});else{let bt=H_(Ze,Ue);await Ye($e,Ze,{overrideNavigation:bt,fetcherSubmission:Qe,preventScrollReset:E,enableViewTransition:xe?F:void 0})}}async function Dr(ae,pe,xe,Oe,Ue,Qe){let ut,je={};try{ut=await BH(d,ae,pe,xe,Oe,Ue,Qe,i,o)}catch(Ze){return Oe.forEach($e=>{je[$e.route.id]={type:rr.error,error:Ze}}),je}for(let[Ze,$e]of Object.entries(ut))if(qH($e)){let Ge=$e.result;je[Ze]={type:rr.redirect,response:WH(Ge,xe,Ze,Ue,s,b.v7_relativeSplatPath)}}else je[Ze]=await HH($e);return je}async function ln(ae,pe,xe,Oe,Ue){let Qe=ae.matches,ut=Dr("loader",ae,Ue,xe,pe,null),je=Promise.all(Oe.map(async Ge=>{if(Ge.matches&&Ge.match&&Ge.controller){let Nt=(await Dr("loader",ae,Rf(e.history,Ge.path,Ge.controller.signal),[Ge.match],Ge.matches,Ge.key))[Ge.match.route.id];return{[Ge.key]:Nt}}else return Promise.resolve({[Ge.key]:{type:rr.error,error:ko(404,{pathname:Ge.path})}})})),Ze=await ut,$e=(await je).reduce((Ge,kt)=>Object.assign(Ge,kt),{});return await Promise.all([QH(pe,Ze,Ue.signal,Qe,ae.loaderData),ZH(pe,$e,Oe)]),{loaderResults:Ze,fetcherResults:$e}}function Qn(){q=!0,J.push(...Di()),ve.forEach((ae,pe)=>{W.has(pe)&&(Q.add(pe),Qr(pe))})}function Ln(ae,pe,xe){xe===void 0&&(xe={}),k.fetchers.set(ae,pe),Re({fetchers:new Map(k.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function nr(ae,pe,xe,Oe){Oe===void 0&&(Oe={});let Ue=Qf(k.matches,pe);Yt(ae),Re({errors:{[Ue.route.id]:xe},fetchers:new Map(k.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function mo(ae){return b.v7_fetcherPersist&&(we.set(ae,(we.get(ae)||0)+1),ce.has(ae)&&ce.delete(ae)),k.fetchers.get(ae)||NH}function Yt(ae){let pe=k.fetchers.get(ae);W.has(ae)&&!(pe&&pe.state==="loading"&&ne.has(ae))&&Qr(ae),ve.delete(ae),ne.delete(ae),se.delete(ae),ce.delete(ae),Q.delete(ae),k.fetchers.delete(ae)}function yo(ae){if(b.v7_fetcherPersist){let pe=(we.get(ae)||0)-1;pe<=0?(we.delete(ae),ce.add(ae)):we.set(ae,pe)}else Yt(ae);Re({fetchers:new Map(k.fetchers)})}function Qr(ae){let pe=W.get(ae);Pt(pe,"Expected fetch controller: "+ae),pe.abort(),W.delete(ae)}function Cl(ae){for(let pe of ae){let xe=mo(pe),Oe=Ks(xe.data);k.fetchers.set(pe,Oe)}}function da(){let ae=[],pe=!1;for(let xe of se){let Oe=k.fetchers.get(xe);Pt(Oe,"Expected fetcher: "+xe),Oe.state==="loading"&&(se.delete(xe),ae.push(xe),pe=!0)}return Cl(ae),pe}function Sn(ae){let pe=[];for(let[xe,Oe]of ne)if(Oe0}function Pl(ae,pe){let xe=k.blockers.get(ae)||D0;return oe.get(ae)!==pe&&oe.set(ae,pe),xe}function Ka(ae){k.blockers.delete(ae),oe.delete(ae)}function sn(ae,pe){let xe=k.blockers.get(ae)||D0;Pt(xe.state==="unblocked"&&pe.state==="blocked"||xe.state==="blocked"&&pe.state==="blocked"||xe.state==="blocked"&&pe.state==="proceeding"||xe.state==="blocked"&&pe.state==="unblocked"||xe.state==="proceeding"&&pe.state==="unblocked","Invalid blocker state transition: "+xe.state+" -> "+pe.state);let Oe=new Map(k.blockers);Oe.set(ae,pe),Re({blockers:Oe})}function Li(ae){let{currentLocation:pe,nextLocation:xe,historyAction:Oe}=ae;if(oe.size===0)return;oe.size>1&&Fp(!1,"A router only supports one blocker at a time");let Ue=Array.from(oe.entries()),[Qe,ut]=Ue[Ue.length-1],je=k.blockers.get(Qe);if(!(je&&je.state==="proceeding")&&ut({currentLocation:pe,nextLocation:xe,historyAction:Oe}))return Qe}function fa(ae){let pe=ko(404,{pathname:ae}),xe=l||a,{matches:Oe,route:Ue}=M6(xe);return Di(),{notFoundMatches:Oe,route:Ue,error:pe}}function $r(ae,pe){return{boundaryId:Qf(pe.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:ae,message:pe.error!=null&&"message"in pe.error?pe.error:String(pe.error)})}}function Di(ae){let pe=[];return ee.forEach((xe,Oe)=>{(!ae||ae(Oe))&&(xe.cancel(),pe.push(Oe),ee.delete(Oe))}),pe}function Ts(ae,pe,xe){if(C=ae,p=pe,h=xe||null,!c&&k.navigation===U_){c=!0;let Oe=Fi(k.location,k.matches);Oe!=null&&Re({restoreScrollPosition:Oe})}return()=>{C=null,p=null,h=null}}function pa(ae,pe){return h&&h(ae,pe.map(Oe=>uH(Oe,k.loaderData)))||ae.key}function Dn(ae,pe){if(C&&p){let xe=pa(ae,pe);C[xe]=p()}}function Fi(ae,pe){if(C){let xe=pa(ae,pe),Oe=C[xe];if(typeof Oe=="number")return Oe}return null}function bo(ae,pe,xe){if(v){if(y.has(xe))return{active:!1,matches:ae};if(ae){if(Object.keys(ae[0].params).length>0)return{active:!0,matches:Cb(pe,xe,s,!0)}}else return{active:!0,matches:Cb(pe,xe,s,!0)||[]}}return{active:!1,matches:null}}async function ni(ae,pe,xe){let Oe=ae;for(;;){let Ue=l==null,Qe=l||a;try{await jH(v,pe,Oe,Qe,i,o,ue,xe)}catch(Ze){return{type:"error",error:Ze,partialMatches:Oe}}finally{Ue&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let ut=Uc(Qe,pe,s);if(ut)return ha(pe,y),{type:"success",matches:ut};let je=Cb(Qe,pe,s,!0);if(!je||Oe.length===je.length&&Oe.every((Ze,$e)=>Ze.route.id===je[$e].route.id))return ha(pe,y),{type:"success",matches:null};Oe=je}}function ha(ae,pe){if(pe.size>=P){let xe=pe.values().next().value;pe.delete(xe)}pe.add(ae)}function Os(ae){i={},l=rv(ae,o,void 0,i)}function ga(ae,pe){let xe=l==null;VR(ae,pe,l||a,i,o),xe&&(a=[...a],Re({}))}return T={get basename(){return s},get future(){return b},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:Ie,enableScrollRestoration:Ts,navigate:ke,fetch:Ht,revalidate:ze,createHref:ae=>e.history.createHref(ae),encodeLocation:ae=>e.history.encodeLocation(ae),getFetcher:mo,deleteFetcher:yo,dispose:Me,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:ee,_internalSetRoutes:Os},T}function LH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $S(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let b of t)if(s.push(b),b.route.id===a){d=b;break}}else s=t,d=t[t.length-1];let v=PP(o||".",CP(s,i),lh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!kP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function x6(e,t,r,n){if(!n||!LH(n))return{path:r};if(n.formMethod&&!XH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=BR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,P)=>{let[y,C]=P;return""+w+y+"="+C+` +`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Pt(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=GS(n.formData),d=n.formData;else if(n.body instanceof FormData)s=GS(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=T6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=T6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let b=zu(r);return t&&b.search&&kP(b.search)&&s.append("index",""),b.search="?"+s,{path:ad(b),submission:v}}function DH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function S6(e,t,r,n,o,i,a,l,s,d,v,b,S,w,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,h=e.createURL(t.location),p=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,g=c?DH(r,c):r,m=y?y[1].statusCode:void 0,_=a&&m&&m>=400,T=g.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(FH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return C6(R,Tr({currentUrl:h,currentParams:F.params,nextUrl:p,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||zR(F,V)}))}),k=[];return b.forEach((R,E)=>{if(i||!r.some(U=>U.route.id===R.routeId)||v.has(E))return;let A=Uc(w,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ig(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=C6(V,Tr({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function FH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function zR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function C6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function jH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,b)=>{l.aborted||VR(v,b,n,o,i)}}),a.set(s,d)),d&&KH(d)&&await d}finally{a.delete(s)}}function VR(e,t,r,n,o){if(e){var i;let a=n[e];Pt(a,"No route found to patch children into: routeId = "+e);let l=rv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=rv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function zH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Pt(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Fp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!lH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function VH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function BH(e,t,r,n,o,i,a,l,s,d){let v=i.map(w=>w.route.lazy?zH(w.route,s,l):void 0),b=i.map((w,P)=>{let y=v[P],C=o.some(p=>p.route.id===w.route.id);return Tr({},w,{shouldLoad:C,resolve:async p=>(p&&n.method==="GET"&&(w.route.lazy||w.route.loader)&&(C=!0),C?UH(t,n,w,y,p,d):Promise.resolve({type:rr.data,result:void 0}))})}),S=await e({matches:b,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function UH(e,t,r,n,o,i){let a,l,s=d=>{let v,b=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),w=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([w,b])};try{let d=r.route[e];if(n)if(d){let v,[b]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=b}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),b=v.pathname+v.search;throw ko(405,{method:t.method,pathname:b,routeId:r.route.id})}else return{type:rr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),b=v.pathname+v.search;throw ko(404,{pathname:b})}Pt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:rr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function HH(e){let{result:t,type:r}=e;if(UR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:rr.error,error:v}}return r===rr.error?{type:rr.error,error:new T1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:rr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===rr.error){if(R6(t)){var n;if(t.data instanceof Error){var o;return{type:rr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new T1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:Bv(t)?t.status:void 0}}if(YH(t)){var i,a;return{type:rr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(R6(t)){var l,s;return{type:rr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function WH(e,t,r,n,o,i){let a=e.headers.get("Location");if(Pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!TP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=$S(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function P6(e,t,r){if(TP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=lh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(BR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=GS(n.formData):i.body=n.formData}return new Request(o,i)}function GS(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function T6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function $H(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let S=b.route.id,w=t[S];if(Pt(!Gc(w),"Cannot handle redirect results in processLoaderData"),wi(w)){let P=w.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Qf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Bv(w.error)?w.error.status:500),w.headers&&(d[S]=w.headers)}else su(w)?(n.set(S,w.deferredData),i[S]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers)):(i[S]=w.data,w.statusCode&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function O6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=$H(t,n,o,l);return i.forEach(v=>{let{key:b,match:S,controller:w}=v,P=a[b];if(Pt(P,"Did not find corresponding fetcher result"),!(w&&w.signal.aborted))if(wi(P)){let y=Qf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(b)}else if(Gc(P))Pt(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Pt(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(b,y)}}),{loaderData:s,errors:d}}function k6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function E6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Qf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function M6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new T1(e||500,l,new Error(s),!0)}function Ey(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function BR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function GH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function KH(e){return typeof e=="object"&&e!=null&&"then"in e}function qH(e){return UR(e.result)&&MH.has(e.result.status)}function su(e){return e.type===rr.deferred}function wi(e){return e.type===rr.error}function Gc(e){return(e&&e.type)===rr.redirect}function R6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function YH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function UR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XH(e){return EH.has(e.toLowerCase())}function Ea(e){return OH.has(e.toLowerCase())}async function QH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),b=v!=null&&!zR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&b&&await OP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function ZH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Pt(a,"Expected an AbortController for revalidating fetcher deferred result"),await OP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function OP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function kP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ig(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&kP(r||""))return e[e.length-1];let n=DR(e);return n[n.length-1]}function N6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function H_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function JH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function F0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eW(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tW(e,t){try{let r=e.sessionStorage.getItem(jR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function rW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(jR,JSON.stringify(r))}catch(n){Fp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),X.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let b=PP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(b.pathname=b.pathname==="/"?t:ts([t,b.pathname])),(v.replace?n.replace:n.push)(b,v.state,v)},[t,n,a,i,e])}function GR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=X.useContext(bd),{matches:o}=X.useContext(wd),{pathname:i}=Qw(),a=JSON.stringify(CP(o,n.v7_relativeSplatPath));return X.useMemo(()=>PP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function aW(e,t,r,n){Uv()||Pt(!1);let{navigator:o}=X.useContext(bd),{matches:i}=X.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Qw(),v;v=d;let b=v.pathname||"/",S=b;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(y.length).join("/")}let w=Uc(e,{pathname:S});return dW(w&&w.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function lW(){let e=XR(),t=Bv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},t),r?X.createElement("pre",{style:o},r):null,null)}const sW=X.createElement(lW,null);class uW extends X.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?X.createElement(wd.Provider,{value:this.props.routeContext},X.createElement(WR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cW(e){let{routeContext:t,match:r,children:n}=e,o=X.useContext(Xw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),X.createElement(wd.Provider,{value:t},n)}function dW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(b=>b.route.id&&(l==null?void 0:l[b.route.id])!==void 0);v>=0||Pt(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,b,S)=>{let w,P=!1,y=null,C=null;r&&(w=l&&b.route.id?l[b.route.id]:void 0,y=b.route.errorElement||sW,s&&(d<0&&S===0?(vW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=b.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,S+1)),p=()=>{let c;return w?c=y:P?c=C:b.route.Component?c=X.createElement(b.route.Component,null):b.route.element?c=b.route.element:c=v,X.createElement(cW,{match:b,routeContext:{outlet:v,matches:h,isDataRoute:r!=null},children:c})};return r&&(b.route.ErrorBoundary||b.route.errorElement||S===0)?X.createElement(uW,{location:r.location,revalidation:r.revalidation,component:y,error:w,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var KR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(KR||{}),qR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(qR||{});function fW(e){let t=X.useContext(Xw);return t||Pt(!1),t}function pW(e){let t=X.useContext(HR);return t||Pt(!1),t}function hW(e){let t=X.useContext(wd);return t||Pt(!1),t}function YR(e){let t=hW(),r=t.matches[t.matches.length-1];return r.route.id||Pt(!1),r.route.id}function XR(){var e;let t=X.useContext(WR),r=pW(qR.UseRouteError),n=YR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function gW(){let{router:e}=fW(KR.UseNavigateStable),t=YR(),r=X.useRef(!1);return $R(()=>{r.current=!0}),X.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,O1({fromRouteId:t},i)))},[e,t])}const A6={};function vW(e,t,r){A6[e]||(A6[e]=!0)}function KS(e){Pt(!1)}function mW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Uv()&&Pt(!1);let s=t.replace(/^\/*/,"/"),d=X.useMemo(()=>({basename:s,navigator:i,static:a,future:O1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:b="",hash:S="",state:w=null,key:P="default"}=n,y=X.useMemo(()=>{let C=lh(v,s);return C==null?null:{location:{pathname:C,search:b,hash:S,state:w,key:P},navigationType:o}},[s,v,b,S,w,P,o]);return y==null?null:X.createElement(bd.Provider,{value:d},X.createElement(EP.Provider,{children:r,value:y}))}new Promise(()=>{});function qS(e,t){t===void 0&&(t=[]);let r=[];return X.Children.forEach(e,(n,o)=>{if(!X.isValidElement(n))return;let i=[...t,o];if(n.type===X.Fragment){r.push.apply(r,qS(n.props.children,i));return}n.type!==KS&&Pt(!1),!n.props.index||!n.props.children||Pt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=qS(n.props.children,i)),r.push(a)}),r}function yW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:X.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:X.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:X.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function wW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _W(e,t){return e.button===0&&(!t||t==="_self")&&!wW(e)}const xW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],SW="6";try{window.__reactRouterVersion=SW}catch{}function CW(e,t){return IH({basename:t==null?void 0:t.basename,future:nv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:oH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||PW(),routes:e,mapRouteProperties:yW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function PW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=nv({},t,{errors:TW(t.errors)})),t}function TW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new T1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const OW=X.createContext({isTransitioning:!1}),kW=X.createContext(new Map),EW="startTransition",I6=Zx[EW],MW="flushSync",L6=nH[MW];function RW(e){I6?I6(e):e()}function j0(e){L6?L6(e):e()}class NW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function AW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=X.useState(r.state),[a,l]=X.useState(),[s,d]=X.useState({isTransitioning:!1}),[v,b]=X.useState(),[S,w]=X.useState(),[P,y]=X.useState(),C=X.useRef(new Map),{v7_startTransition:h}=n||{},p=X.useCallback(k=>{h?RW(k):k()},[h]),c=X.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,U)=>{B.data!==void 0&&C.current.set(U,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?j0(()=>i(k)):p(()=>i(k));return}if(A){j0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{j0(()=>i(k))});B.finished.finally(()=>{j0(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})})}),j0(()=>w(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,p]);X.useLayoutEffect(()=>r.subscribe(c),[r,c]),X.useEffect(()=>{s.isTransitioning&&!s.flushSync&&b(new NW)},[s]),X.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{p(()=>i(k)),await R});E.finished.finally(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})}),w(E)}},[p,a,v,r.window]),X.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),X.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),X.useEffect(()=>{},[]);let g=X.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",_=X.useMemo(()=>({router:r,navigator:g,static:!1,basename:m}),[r,g,m]),T=X.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return X.createElement(X.Fragment,null,X.createElement(Xw.Provider,{value:_},X.createElement(HR.Provider,{value:o},X.createElement(kW.Provider,{value:C.current},X.createElement(OW.Provider,{value:s},X.createElement(mW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:g,future:T},o.initialized||r.future.v7_partialHydration?X.createElement(IW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const IW=X.memo(LW);function LW(e){let{routes:t,future:r,state:n}=e;return aW(t,void 0,n,r)}const DW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k1=X.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:b}=t,S=bW(t,xW),{basename:w}=X.useContext(bd),P,y=!1;if(typeof d=="string"&&FW.test(d)&&(P=d,DW))try{let c=new URL(window.location.href),g=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=lh(g.pathname,w);g.origin===c.origin&&m!=null?d=m+g.search+g.hash:y=!0}catch{}let C=nW(d,{relative:o}),h=jW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:b});function p(c){n&&n(c),c.defaultPrevented||h(c)}return X.createElement("a",nv({},S,{href:P||C,onClick:y||i?n:p,ref:r,target:s}))});var D6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D6||(D6={}));var F6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(F6||(F6={}));function jW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=oW(),d=Qw(),v=GR(e,{relative:a});return X.useCallback(b=>{if(_W(b,r)){b.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var QR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j6=Or.createContext&&Or.createContext(QR),zW=["attr","size","title"];function VW(e,t){if(e==null)return{};var r=BW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,M1({key:r},t.attr),ZR(t.child)))}function Zw(e){return t=>Or.createElement($W,E1({attr:M1({},e.attr)},t),ZR(e.child))}function $W(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=VW(e,zW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",E1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:M1(M1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return j6!==void 0?Or.createElement(j6.Consumer,null,r=>t(r)):t(QR)}function GW(e){return Zw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function KW(e){return Zw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function qW(e){return Zw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function V6(e){return Le.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:Le.jsxs(k1,{to:e.path,children:[Le.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function YW(){return Le.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[Le.jsx(k1,{to:"/",children:Le.jsx("div",{className:"sideMenu-header",children:Le.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),Le.jsx("br",{}),Le.jsx("nav",{children:Le.jsxs("ul",{children:[Le.jsx(V6,{icon:GW,label:"Home",path:"/"},"Home"),Le.jsx(V6,{icon:qW,label:"Map",path:"/map"},"Map")]})}),Le.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:Le.jsxs(k1,{to:"/tos",className:"inline-",children:[Le.jsx(KW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function XW({children:e}){return Le.jsxs("div",{className:"bg-black",children:[Le.jsx(YW,{}),Le.jsx("div",{className:"ml-40 pl-2",children:e})]})}var QW={},JR={},e7={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function e$(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,b=new Array(d);vC.length)&&(h=C.length);for(var p=0,c=new Array(h);pc.length)&&(g=c.length);for(var m=0,_=new Array(g);mp.length)&&(c=p.length);for(var g=0,m=new Array(c);gT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rg.length)&&(m=g.length);for(var _=0,T=new Array(m);_h.length)&&(p=h.length);for(var c=0,g=new Array(p);cm.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function i(m){if(Array.isArray(m))return o(m)}function a(m){return m&&m.__esModule?m:{default:m}}function l(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(m){return i(m)||l(m)||v(m)||s()}function v(m,_){if(m){if(typeof m=="string")return o(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(m,_)}}var b=["white"].concat(d(n.propTypesColors)),S=r.default.bool,w=r.default.bool,P=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],C=r.default.string,h=r.default.node,p=r.default.node.isRequired,c=r.default.instanceOf(Object),g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(HP);var ZN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(ZN);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,s){for(var d in s)Object.defineProperty(l,d,{enumerable:!0,get:s[d]})}t(e,{badge:function(){return i},default:function(){return a}});var r=HP,n=o(ZN);function o(l){return l&&l.__esModule?l:{default:l}}var i={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},a=i})(QN);var JN={},WP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{propTypesCount:function(){return b},propTypesValue:function(){return S},propTypesRatedIcon:function(){return w},propTypesUnratedIcon:function(){return P},propTypesColor:function(){return y},propTypesOnChange:function(){return C},propTypesClassName:function(){return h},propTypesReadonly:function(){return p}});var r=a(ot),n=br;function o(c,g){(g==null||g>c.length)&&(g=c.length);for(var m=0,_=new Array(g);mw.length)&&(P=w.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var h=0,p=new Array(C);h"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(SA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return b},useTheme:function(){return S}});var r=d(X),n=l(ot),o=l(Xn),i=l(RP),a=l(SA);function l(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(w)}function d(w,P){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=s(P);if(y&&y.has(w))return y.get(w);var C={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in w)if(p!=="default"&&Object.prototype.hasOwnProperty.call(w,p)){var c=h?Object.getOwnPropertyDescriptor(w,p):null;c&&(c.get||c.set)?Object.defineProperty(C,p,c):C[p]=w[p]}return C.default=w,y&&y.set(w,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function b(w){var P=w.value,y=P===void 0?i.default:P,C=w.children,h=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:h},C)}var S=function(){return(0,r.useContext)(v)};b.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Xe);var e2={},$v={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,w){for(var P in w)Object.defineProperty(S,P,{enumerable:!0,get:w[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return b}});var r=o(ot),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,b=r.default.node.isRequired})($v);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(X),n=$v;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(e2);var CA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=b(X),n=b(pt),o=Je,i=b(et),a=e2,l=Xe,s=$v;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.className,c=C.children,g=S(C,["className","children"]),m=(0,a.useAccordion)(),_=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;p=p??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),_)),p),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},g,{ref:h,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(CA);var PA={},An={},ZS=function(e,t){return ZS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ZS(e,t)};function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ZS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var N1=function(){return N1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function kA(e,t){return function(r,n){t(r,n,e)}}function R$(e,t,r,n,o,i){function a(h){if(h!==void 0&&typeof h!="function")throw new TypeError("Function expected");return h}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),b,S=!1,w=r.length-1;w>=0;w--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(h){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(h||null))};var C=(0,r[w])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(b=a(C.get))&&(v.get=b),(b=a(C.set))&&(v.set=b),(b=a(C.init))&&o.unshift(b)}else(b=a(C))&&(l==="field"?o.unshift(b):v[s]=b)}d&&Object.defineProperty(d,n.name,v),S=!0}function N$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function KP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function AA(){for(var e=[],t=0;t1||s(w,y)})},P&&(o[w]=P(o[w])))}function s(w,P){try{d(n[w](P))}catch(y){S(i[0][3],y)}}function d(w){w.value instanceof zp?Promise.resolve(w.value.v).then(v,b):S(i[0][2],w)}function v(w){s("next",w)}function b(w){s("throw",w)}function S(w,P){w(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function FA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:zp(e[o](a)),done:!1}:i?i(a):a}:i}}function jA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof A1=="function"?A1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function zA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var L$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function VA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&t2(t,e,r);return L$(t,e),t}function BA(e){return e&&e.__esModule?e:{default:e}}function UA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function HA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function WA(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function $A(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var D$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function GA(e){function t(i){e.error=e.hasError?new D$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const F$={__extends:TA,__assign:N1,__rest:uh,__decorate:OA,__param:kA,__metadata:EA,__awaiter:MA,__generator:RA,__createBinding:t2,__exportStar:NA,__values:A1,__read:KP,__spread:AA,__spreadArrays:IA,__spreadArray:LA,__await:zp,__asyncGenerator:DA,__asyncDelegator:FA,__asyncValues:jA,__makeTemplateObject:zA,__importStar:VA,__importDefault:BA,__classPrivateFieldGet:UA,__classPrivateFieldSet:HA,__classPrivateFieldIn:WA,__addDisposableResource:$A,__disposeResources:GA},j$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:$A,get __assign(){return N1},__asyncDelegator:FA,__asyncGenerator:DA,__asyncValues:jA,__await:zp,__awaiter:MA,__classPrivateFieldGet:UA,__classPrivateFieldIn:WA,__classPrivateFieldSet:HA,__createBinding:t2,__decorate:OA,__disposeResources:GA,__esDecorate:R$,__exportStar:NA,__extends:TA,__generator:RA,__importDefault:BA,__importStar:VA,__makeTemplateObject:zA,__metadata:EA,__param:kA,__propKey:A$,__read:KP,__rest:uh,__runInitializers:N$,__setFunctionName:I$,__spread:AA,__spreadArray:LA,__spreadArrays:IA,__values:A1,default:F$},Symbol.toStringTag,{value:"Module"})),KA=Lv(j$);var qA={exports:{}},Ft={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gv=Symbol.for("react.element"),z$=Symbol.for("react.portal"),V$=Symbol.for("react.fragment"),B$=Symbol.for("react.strict_mode"),U$=Symbol.for("react.profiler"),H$=Symbol.for("react.provider"),W$=Symbol.for("react.context"),$$=Symbol.for("react.forward_ref"),G$=Symbol.for("react.suspense"),K$=Symbol.for("react.memo"),q$=Symbol.for("react.lazy"),$6=Symbol.iterator;function Y$(e){return e===null||typeof e!="object"?null:(e=$6&&e[$6]||e["@@iterator"],typeof e=="function"?e:null)}var YA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XA=Object.assign,QA={};function ch(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}ch.prototype.isReactComponent={};ch.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ch.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=ch.prototype;function qP(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}var YP=qP.prototype=new ZA;YP.constructor=qP;XA(YP,ch.prototype);YP.isPureReactComponent=!0;var G6=Array.isArray,JA=Object.prototype.hasOwnProperty,XP={current:null},eI={key:!0,ref:!0,__self:!0,__source:!0};function tI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)JA.call(t,n)&&!eI.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Sg=e=>e%1?Number(e.toFixed(5)):e,iv=/(-)?([\d]*\.?[\d])+/g,JS=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,nG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Kv(e){return typeof e=="string"}const qv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ZP=Object.assign(Object.assign({},qv),{transform:oI(0,1)}),oG=Object.assign(Object.assign({},qv),{default:1}),Yv=e=>({test:t=>Kv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),iG=Yv("deg"),bp=Yv("%"),aG=Yv("px"),lG=Yv("vh"),sG=Yv("vw"),uG=Object.assign(Object.assign({},bp),{parse:e=>bp.parse(e)/100,transform:e=>bp.transform(e*100)}),JP=(e,t)=>r=>!!(Kv(r)&&nG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iI=(e,t,r)=>n=>{if(!Kv(n))return n;const[o,i,a,l]=n.match(iv);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},ag={test:JP("hsl","hue"),parse:iI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bp.transform(Sg(t))+", "+bp.transform(Sg(r))+", "+Sg(ZP.transform(n))+")"},cG=oI(0,255),kb=Object.assign(Object.assign({},qv),{transform:e=>Math.round(cG(e))}),Zf={test:JP("rgb","red"),parse:iI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+kb.transform(e)+", "+kb.transform(t)+", "+kb.transform(r)+", "+Sg(ZP.transform(n))+")"};function dG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const eC={test:JP("#"),parse:dG,transform:Zf.transform},e3={test:e=>Zf.test(e)||eC.test(e)||ag.test(e),parse:e=>Zf.test(e)?Zf.parse(e):ag.test(e)?ag.parse(e):eC.parse(e),transform:e=>Kv(e)?e:e.hasOwnProperty("red")?Zf.transform(e):ag.transform(e)},aI="${c}",lI="${n}";function fG(e){var t,r,n,o;return isNaN(e)&&Kv(e)&&((r=(t=e.match(iv))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(JS))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function sI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(JS);n&&(r=n.length,e=e.replace(JS,aI),t.push(...n.map(e3.parse)));const o=e.match(iv);return o&&(e=e.replace(iv,lI),t.push(...o.map(qv.parse))),{values:t,numColors:r,tokenised:e}}function uI(e){return sI(e).values}function cI(e){const{values:t,numColors:r,tokenised:n}=sI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function hG(e){const t=uI(e);return cI(e)(t.map(pG))}const dI={test:fG,parse:uI,createTransformer:cI,getAnimatableNone:hG},gG=new Set(["brightness","contrast","saturate","opacity"]);function vG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(iv)||[];if(!n)return e;const o=r.replace(n,"");let i=gG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const mG=/([a-z-]*)\(.*?\)/g,yG=Object.assign(Object.assign({},dI),{getAnimatableNone:e=>{const t=e.match(mG);return t?t.map(vG).join(" "):e}});bn.alpha=ZP;bn.color=e3;bn.complex=dI;bn.degrees=iG;bn.filter=yG;bn.hex=eC;bn.hsla=ag;bn.number=qv;bn.percent=bp;bn.progressPercentage=uG;bn.px=aG;bn.rgbUnit=kb;bn.rgba=Zf;bn.scale=oG;bn.vh=lG;bn.vw=sG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const fI=1/60*1e3,bG=typeof performance<"u"?()=>performance.now():()=>Date.now(),pI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bG()),fI);function wG(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const b=v&&o,S=b?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),b&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=wG(()=>av=!0),e),{}),xG=Xv.reduce((e,t)=>{const r=r2[t];return e[t]=(n,o=!1,i=!1)=>(av||TG(),r.schedule(n,o,i)),e},{}),SG=Xv.reduce((e,t)=>(e[t]=r2[t].cancel,e),{}),CG=Xv.reduce((e,t)=>(e[t]=()=>r2[t].process(wp),e),{}),PG=e=>r2[e].process(wp),hI=e=>{av=!1,wp.delta=tC?fI:Math.max(Math.min(e-wp.timestamp,_G),1),wp.timestamp=e,rC=!0,Xv.forEach(PG),rC=!1,av&&(tC=!1,pI(hI))},TG=()=>{av=!0,tC=!0,rC||pI(hI)},OG=()=>wp;Cd.cancelSync=SG;Cd.default=xG;Cd.flushSync=CG;Cd.getFrameData=OG;Object.defineProperty(lt,"__esModule",{value:!0});var gI=KA,Vp=nI,Aa=bn,n2=Cd;function kG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var EG=kG(n2);const lv=(e,t,r)=>Math.min(Math.max(r,e),t),$_=.001,MG=.01,q6=10,RG=.05,NG=1;function AG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Vp.warning(e<=q6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=lv(RG,NG,a),e=lv(MG,q6,e/1e3),a<1?(o=d=>{const v=d*a,b=v*e,S=v-r,w=nC(d,a),P=Math.exp(-b);return $_-S/w*P},i=d=>{const b=d*a*e,S=b*r+r,w=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-b),y=nC(Math.pow(d,2),a);return(-o(d)+$_>0?-1:1)*((S-w)*P)/y}):(o=d=>{const v=Math.exp(-d*e),b=(d-r)*e+1;return-$_+v*b},i=d=>{const v=Math.exp(-d*e),b=(r-d)*(e*e);return v*b});const l=5/e,s=LG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const IG=12;function LG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function jG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Y6(e,FG)&&Y6(e,DG)){const r=AG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function o2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=gI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:b,isResolvedFromDuration:S}=jG(i),w=X6,P=X6;function y(){const C=v?-(v/1e3):0,h=r-t,p=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),p<1){const g=nC(c,p);w=m=>{const _=Math.exp(-p*c*m);return r-_*((C+p*c*h)/g*Math.sin(g*m)+h*Math.cos(g*m))},P=m=>{const _=Math.exp(-p*c*m);return p*c*_*(Math.sin(g*m)*(C+p*c*h)/g+h*Math.cos(g*m))-_*(Math.cos(g*m)*(C+p*c*h)-g*h*Math.sin(g*m))}}else if(p===1)w=g=>r-Math.exp(-c*g)*(h+(C+c*h)*g);else{const g=c*Math.sqrt(p*p-1);w=m=>{const _=Math.exp(-p*c*m),T=Math.min(g*m,300);return r-_*((C+p*c*h)*Math.sinh(T)+g*h*Math.cosh(T))/g}}}return y(),{next:C=>{const h=w(C);if(S)a.done=C>=b;else{const p=P(C)*1e3,c=Math.abs(p)<=n,g=Math.abs(r-h)<=o;a.done=c&&g}return a.value=a.done?r:h,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}o2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const X6=e=>0,t3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},i2=(e,t,r)=>-r*e+r*t+e;function G_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Q6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=G_(s,l,e+1/3),i=G_(s,l,e),a=G_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const zG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},VG=[Aa.hex,Aa.rgba,Aa.hsla],Z6=e=>VG.find(t=>t.test(e)),J6=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,r3=(e,t)=>{let r=Z6(e),n=Z6(t);Vp.invariant(!!r,J6(e)),Vp.invariant(!!n,J6(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Q6(o),r=Aa.rgba),n===Aa.hsla&&(i=Q6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=zG(o[s],i[s],l));return a.alpha=i2(o.alpha,i.alpha,l),r.transform(a)}},BG={x:0,y:0,z:0},oC=e=>typeof e=="number",UG=(e,t)=>r=>t(e(r)),n3=(...e)=>e.reduce(UG);function vI(e,t){return oC(e)?r=>i2(e,t,r):Aa.color.test(e)?r3(e,t):o3(e,t)}const mI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>vI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=vI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function ek(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=ek(e),o=ek(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?n3(mI(n.parsed,o.parsed),r):(Vp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},WG=(e,t)=>r=>i2(e,t,r);function $G(e){if(typeof e=="number")return WG;if(typeof e=="string")return Aa.color.test(e)?r3:o3;if(Array.isArray(e))return mI;if(typeof e=="object")return HG}function GG(e,t,r){const n=[],o=r||$G(e[0]),i=e.length-1;for(let a=0;ar(t3(e,t,n))}function qG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=t3(e[i],e[i+1],o);return t[i](l)}}function i3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Vp.invariant(i===t.length,"Both input and output ranges must be the same length"),Vp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=GG(t,n,o),l=i===2?KG(e,a):qG(e,a);return r?s=>l(lv(e[0],e[i-1],s)):l}const Qv=e=>t=>1-e(1-t),a2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yI=e=>t=>Math.pow(t,e),a3=e=>t=>t*t*((e+1)*t-e),bI=e=>{const t=a3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},wI=1.525,YG=4/11,XG=8/11,QG=9/10,_I=e=>e,l3=yI(2),ZG=Qv(l3),xI=a2(l3),SI=e=>1-Math.sin(Math.acos(e)),CI=Qv(SI),JG=a2(CI),s3=a3(wI),eK=Qv(s3),tK=a2(s3),rK=bI(wI),nK=4356/361,oK=35442/1805,iK=16061/1805,I1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-I1(1-e*2)):.5*I1(e*2-1)+.5;function sK(e,t){return e.map(()=>t||xI).splice(0,e.length-1)}function uK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function cK(e,t){return e.map(r=>r*t)}function Cg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=cK(n&&n.length===a.length?n:uK(a),o);function s(){return i3(l,a,{ease:Array.isArray(r)?r:sK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function PI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const b=-l*Math.exp(-v/n);return a.done=!(b>o||b<-o),a.value=a.done?d:d+b,a},flipTarget:()=>{}}}const tk={keyframes:Cg,spring:o2,decay:PI};function dK(e){if(Array.isArray(e.to))return Cg;if(tk[e.type])return tk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Cg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?o2:Cg}function TI(e,t,r=0){return e-t-r}function fK(e,t,r=0,n=!0){return n?TI(t+-e,t,r):t-(e-t)+r}function pK(e,t,r,n){return n?e>=t+r:e<=-r}const hK=e=>{const t=({delta:r})=>e(r);return{start:()=>EG.default.update(t,!0),stop:()=>n2.cancelSync.update(t)}};function OI(e){var t,r,{from:n,autoplay:o=!0,driver:i=hK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:b,onComplete:S,onRepeat:w,onUpdate:P}=e,y=gI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,h,p=0,c=y.duration,g,m=!1,_=!0,T;const k=dK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=i3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){p++,s==="reverse"?(_=p%2===0,a=fK(a,c,d,_)):(a=TI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,w&&w()}function A(){h.stop(),S&&S()}function F(B){if(_||(B=-B),a+=B,!m){const U=R.next(Math.max(0,a));g=U.value,T&&(g=T(g)),m=_?U.done:a<=0}P==null||P(g),m&&(p===0&&(c??(c=a)),p{b==null||b(),h.stop()}}}function kI(e,t){return t?e*(1e3/t):0}function gK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:b,onComplete:S,onStop:w}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;b==null||b(g),(m=c.onUpdate)===null||m===void 0||m.call(c,g)},onComplete:S,onStop:w}))}function p(c){h(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))p({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const g=C(c),m=g===r?-1:1;let _,T;const k=R=>{_=T,T=R,t=kI(R-_,n2.getFrameData().delta),(m===1&&R>g||m===-1&&RP==null?void 0:P.stop()}}const EI=e=>e*180/Math.PI,vK=(e,t=BG)=>EI(Math.atan2(t.y-e.y,t.x-e.x)),mK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},yK=e=>e,u3=(e=yK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},bK=u3(),wK=u3(Math.sqrt),MI=e=>e*Math.PI/180,L1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),iC=e=>L1(e)&&e.hasOwnProperty("z"),Ry=(e,t)=>Math.abs(e-t);function _K(e,t){if(oC(e)&&oC(t))return Ry(e,t);if(L1(e)&&L1(t)){const r=Ry(e.x,t.x),n=Ry(e.y,t.y),o=iC(e)&&iC(t)?Ry(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const xK=(e,t,r)=>(t=MI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),RI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),NI=(e,t,r,n=0)=>RI(e+r*(t-e)/Math.max(n,r)),SK=(e=50)=>{let t=0,r=0;return n=>{const o=n2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?NI(t,n,i,e):t;return r=o,t=a,a}},CK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function PK(e,t){return e/(1e3/t)}const TK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},AI=(e,t)=>1-3*t+3*e,II=(e,t)=>3*t-6*e,LI=e=>3*e,D1=(e,t,r)=>((AI(t,r)*e+II(t,r))*e+LI(t))*e,DI=(e,t,r)=>3*AI(t,r)*e*e+2*II(t,r)*e+LI(t),OK=1e-7,kK=10;function EK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=D1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>OK&&++l=RK?NK(a,b,e,r):S===0?b:EK(a,l,l+Ny,e,r)}return a=>a===0||a===1?a:D1(i(a),t,n)}const IK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return lv(0,1,o/e)};lt.angle=vK;lt.animate=OI;lt.anticipate=rK;lt.applyOffset=mK;lt.attract=bK;lt.attractExpo=wK;lt.backIn=s3;lt.backInOut=tK;lt.backOut=eK;lt.bounceIn=aK;lt.bounceInOut=lK;lt.bounceOut=I1;lt.circIn=SI;lt.circInOut=JG;lt.circOut=CI;lt.clamp=lv;lt.createAnticipate=bI;lt.createAttractor=u3;lt.createBackIn=a3;lt.createExpoIn=yI;lt.cubicBezier=AK;lt.decay=PI;lt.degreesToRadians=MI;lt.distance=_K;lt.easeIn=l3;lt.easeInOut=xI;lt.easeOut=ZG;lt.inertia=gK;lt.interpolate=i3;lt.isPoint=L1;lt.isPoint3D=iC;lt.keyframes=Cg;lt.linear=_I;lt.mirrorEasing=a2;lt.mix=i2;lt.mixColor=r3;lt.mixComplex=o3;lt.pipe=n3;lt.pointFromVector=xK;lt.progress=t3;lt.radiansToDegrees=EI;lt.reverseEasing=Qv;lt.smooth=SK;lt.smoothFrame=NI;lt.snap=CK;lt.spring=o2;lt.steps=IK;lt.toDecimal=RI;lt.velocityPerFrame=PK;lt.velocityPerSecond=kI;lt.wrap=TK;class LK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const K_=new WeakMap;function c3(e){return K_.has(e)||K_.set(e,{transforms:[],values:new Map}),K_.get(e)}function DK(e,t){return e.has(t)||e.set(t,new LK),e.get(t)}function FI(e,t){e.indexOf(t)===-1&&e.push(t)}function jI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const zI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",sv=e=>Array.isArray(e)&&!ds(e[0]),FK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function VI(e,t){return sv(e)?e[FK(0,e.length,t)]:e}const d3=(e,t,r)=>-r*e+r*t+e,f3=()=>{},rs=e=>e,l2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function p3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=l2(0,t,n);e.push(d3(r,1,o))}}function h3(e){const t=[0];return p3(t,e-1),t}function BI(e,t=h3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&p3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),F1=e=>typeof e=="object"&&!!e.createAnimation,jK=e=>typeof e=="function",g3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function HI(e,t){return t?e*(1e3/t):0}const zK=["","X","Y","Z"],VK=["translate","scale","rotate","skew"],Bp={x:"translateX",y:"translateY",z:"translateZ"},rk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},BK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:rk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:rk},Up=new Map,s2=e=>`--motion-${e}`,j1=["x","y","z"];VK.forEach(e=>{zK.forEach(t=>{j1.push(e+t),Up.set(s2(e+t),BK[e])})});const UK=(e,t)=>j1.indexOf(e)-j1.indexOf(t),HK=new Set(j1),u2=e=>HK.has(e),WK=(e,t)=>{Bp[t]&&(t=Bp[t]);const{transforms:r}=c3(e);FI(r,t),e.style.transform=WI(r)},WI=e=>e.sort(UK).reduce($K,"").trim(),$K=(e,t)=>`${e} ${t}(var(${s2(t)}))`,aC=e=>e.startsWith("--"),nk=new Set;function GK(e){if(!nk.has(e)){nk.add(e);try{const{syntax:t,initialValue:r}=Up.has(e)?Up.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const $I=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,KK=1e-7,qK=12;function YK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=$I(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>KK&&++lYK(i,0,1,e,r);return i=>i===0||i===1?i:$I(o(i),t,n)}const XK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return zI(0,1,o/e)},QK={ease:lg(.25,.1,.25,1),"ease-in":lg(.42,0,1,1),"ease-in-out":lg(.42,0,.58,1),"ease-out":lg(0,0,.58,1)},ZK=/\((.*?)\)/;function lC(e){if(jK(e))return e;if(UI(e))return lg(...e);const t=QK[e];if(t)return t;if(e.startsWith("steps")){const r=ZK.exec(e);if(r){const n=r[1].split(",");return XK(parseFloat(n[0]),n[1].trim())}}return rs}let JK=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,w)=>{this.resolve=S,this.reject=w}),n=n||Go.easing,F1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=sv(n)?rs:lC(n),this.updateDuration(o);const b=BI(r,s,sv(n)?n.map(lC):rs);this.tick=S=>{var w;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),h=y%1;!h&&y>=1&&(h=1),h===1&&C--;const p=C%2;(d==="reverse"||d==="alternate"&&p||d==="alternate-reverse"&&!p)&&(h=1-h);const c=P>=this.totalDuration?1:Math.min(h,1),g=b(this.easing(c));t(g),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(w=this.resolve)===null||w===void 0||w.call(this,g)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ok=e=>UI(e)?eq(e):e,eq=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ik=e=>document.createElement("div").animate(e,{duration:.001}),ak={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ik({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ik({opacity:[0,1]}).finished},q_={},Mb={};for(const e in ak)Mb[e]=()=>(q_[e]===void 0&&(q_[e]=ak[e]()),q_[e]);function tq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function z1(e){return Bp[e]&&(e=Bp[e]),u2(e)?s2(e):e}const Jf={get:(e,t)=>{t=z1(t);let r=aC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Up.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=z1(t),aC(t)?e.style.setProperty(t,r):e.style[t]=r}};function KI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function rq(){return window.__MOTION_DEV_TOOLS_RECORD}function c2(e,t,r,n={}){const o=rq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:b=Go.easing,direction:S,offset:w,allowWebkitAcceleration:P=!1}=n;const y=c3(e);let C=Mb.waapi();const h=u2(t);h&&WK(e,t);const p=z1(t),c=DK(y.values,p),g=Up.get(p);return KI(c.animation,!(F1(b)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=Jf.get(e,p))!==null&&T!==void 0?T:g==null?void 0:g.initialValue)!==null&&k!==void 0?k:0};let _=tq(GI(r),m);if(F1(b)){const T=b.createAnimation(_,m,h,p,c);b=T.easing,T.keyframes!==void 0&&(_=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(aC(p)&&(Mb.cssRegisterProperty()?GK(p):C=!1),C){g&&(_=_.map(R=>ds(R)?g.toDefaultUnit(R):R)),_.length===1&&(!Mb.partialKeyframes()||i)&&_.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:sv(b)?void 0:ok(b),direction:S,iterations:v+1,fill:"both"};a=e.animate({[p]:_,offset:w,easing:sv(b)?b.map(ok):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=_[_.length-1];a.finished.then(()=>{Jf.set(e,p,k),a.cancel()}).catch(f3),P||(a.playbackRate=1.000001)}else if(h){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(m()));const T=k=>{g&&(k=g.toDefaultUnit(k)),Jf.set(e,p,k)};a=new JK(T,_,Object.assign(Object.assign({},n),{duration:l,easing:b}))}else{const T=_[_.length-1];Jf.set(e,p,g&&ds(T)?g.toDefaultUnit(T):T)}return i&&o(e,t,_,{duration:l,delay:s,easing:b,repeat:v,offset:w},"motion-one"),c.setAnimation(a),a}}const v3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function d2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const nq=e=>e(),m3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(nq).filter(Boolean),duration:r,options:t},iq),oq=e=>e.animations[0],iq={get:(e,t)=>{const r=oq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(aq)).catch(f3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>KI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function lq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:sq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=lC(n)(s/d)*d}return t+s}}function sq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function qI(e,t,r){return typeof e=="function"?e(t,r):e}function uq(e,t,r={}){e=d2(e);const n=e.length,o=[];for(let i=0;it&&o.atc2(...i)).filter(Boolean);return m3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function hq(e,t={}){var{defaultOptions:r={}}=t,n=uh(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let b=0;b"0",J);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=qI(y.delay,c,p)||0,V=d+F,B=V+E;let{offset:U=h3(k.length)}=R;U.length===1&&U[0]===0&&(U[1]=1);const q=length-k.length;q>0&&p3(U,q),k.length===1&&k.unshift(null),dq(T,k,A,U,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((b,S)=>{for(const w in b){const P=b[w];P.sort(fq);const y=[],C=[],h=[];for(let p=0;pt/(2*Math.sqrt(e*r));function bq(e,t,r){return e=t||e>t&&r<=t}const YI=({stiffness:e=_p.stiffness,damping:t=_p.damping,mass:r=_p.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,b=yq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let w;if(b<1){const P=v*Math.sqrt(1-b*b);w=y=>o-Math.exp(-b*v*y)*((-i+b*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else w=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=w(P);const y=P===0?i:y3(w,P,s.current),C=Math.abs(y)<=a,h=Math.abs(o-s.current)<=l;return s.done=C&&h,s.hasReachedTarget=bq(n,o,s.current),s}},wq=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const b={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,w=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),p=T=>C+h(T),c=T=>{const k=h(T),R=p(T);b.done=Math.abs(k)<=d,b.current=b.done?C:R};let g,m;const _=T=>{S(b.current)&&(g=T,m=YI({from:b.current,to:w(b.current),velocity:y3(p,T,b.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return _(0),T=>{let k=!1;return!m&&g===void 0&&(k=!0,c(T),_(T)),g!==void 0&&T>g?(b.hasReachedTarget=!0,m(T-g)):(b.hasReachedTarget=!1,!k&&c(T),b)}},Y_=10,_q=1e4;function xq(e,t=rs){let r,n=Y_,o=e(0);const i=[t(o.current)];for(;!o.done&&n<_q;)o=e(n),i.push(t(o.done?o.target:o.current)),r===void 0&&o.hasReachedTarget&&(r=n),n+=Y_;const a=n-Y_;return i.length===1&&i.push(o.current),{keyframes:i,duration:a/1e3,overshootDuration:(r??a)/1e3}}function XI(e){const t=new WeakMap;return(r={})=>{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,xq(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var b,S;let w;const P=a.length;if(s&&P<=2&&a.every(Sq)){const C=a[P-1],h=P===1?null:a[0];let p=0,c=0;const g=v==null?void 0:v.generator;if(g){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=g(E).current;c=(b=h)!==null&&b!==void 0?b:A,(P===1||P===2&&a[0]===null)&&(p=y3(F=>g(F).current,E,A))}else c=(S=h)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,p,d==null?void 0:d.includes("scale")),_=i(m);w=Object.assign(Object.assign({},_),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else w={easing:"ease",duration:i(o(0,100)).overshootDuration};return w}}}}const Sq=e=>typeof e!="string",Cq=XI(YI),Pq=XI(wq),Tq={any:0,all:1};function QI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=d2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const b=a.get(v.target);if(v.isIntersecting!==!!b)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else b&&(b(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Tq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Rb=new WeakMap;let qs;function Oq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function kq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Rb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return Oq(e,r)}})})}function Eq(e){e.forEach(kq)}function Mq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(Eq))}function Rq(e,t){qs||Mq();const r=d2(e);return r.forEach(n=>{let o=Rb.get(n);o||(o=new Set,Rb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Rb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Nb=new Set;let Pg;function Nq(){Pg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Nb.forEach(r=>r(t))},window.addEventListener("resize",Pg)}function Aq(e){return Nb.add(e),Pg||Nq(),()=>{Nb.delete(e),!Nb.size&&Pg&&(Pg=void 0)}}function ZI(e,t){return typeof e=="function"?Aq(e):Rq(e,t)}const Iq=50,sk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Lq=()=>({time:0,x:sk(),y:sk()}),Dq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function uk(e,t,r,n){const o=r[t],{length:i,position:a}=Dq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=l2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Iq?0:HI(o.current-l,d)}function Fq(e,t,r){uk(e,"x",t,r),uk(e,"y",t,r),t.time=r}function jq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const JI={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},sC={start:0,center:.5,end:1};function ck(e,t,r=0){let n=0;if(sC[e]!==void 0&&(e=sC[e]),g3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const zq=[0,0];function Vq(e,t,r,n){let o=Array.isArray(e)?e:zq,i=0,a=0;return ds(e)?o=[e,e]:g3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,sC[e]?e:"0"]),i=ck(o[0],r,n),a=ck(o[1],t),i-a}const Bq={x:0,y:0};function Uq(e,t,r){let{offset:n=JI.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?jq(o,e):Bq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const b=n.length;for(let S=0;SHq(e,n.target,r),update:i=>{Fq(e,r,i),(n.offset||n.target)&&Uq(e,r,n)},notify:typeof t=="function"?()=>t(r):$q(t,r[o])}}function $q(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const z0=new WeakMap,dk=new WeakMap,X_=new WeakMap,fk=e=>e===document.documentElement?window:e;function Gq(e,t={}){var{container:r=document.documentElement}=t,n=uh(t,["container"]);let o=X_.get(r);o||(o=new Set,X_.set(r,o));const i=Lq(),a=Wq(r,e,i,n);if(o.add(a),!z0.has(r)){const d=()=>{const b=performance.now();for(const S of o)S.measure();for(const S of o)S.update(b);for(const S of o)S.notify()};z0.set(r,d);const v=fk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&dk.set(r,ZI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=z0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=X_.get(r);if(!v||(v.delete(a),v.size))return;const b=z0.get(r);z0.delete(r),b&&(fk(r).removeEventListener("scroll",b),(d=dk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",b))}}function Kq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!qq(e,t):e!==t}function qq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),Jq=e=>e.animateUpdates(),hk=e=>e.next(),gk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function uC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function vk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const eY={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=uh(n,["once"]);return QI(e,a=>{if(t(),vk(e,"viewenter",a),!o)return l=>{r(),vk(e,"viewleave",l)}},i)}},mk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),uC(e,t,n))},tY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=mk(e,"hoverstart",t),o=mk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},rY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),uC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),uC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Ab={inView:eY,hover:tY,press:rY},yk=["initial","animate",...Object.keys(Ab),"exit"],cC=new WeakMap;function nY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of yk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=pk(e[l]||a[l],e.variants)||{},d=uh(s,["transition"]);const v=Object.assign({},d);function*b(){var y,C;const h=d;d={};const p={};for(const T of yk){if(!o[T])continue;const k=pk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],p[R]=v3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(h)]),g=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),Kq(h[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=Jf.get(r,T)),g.push(c2(r,T,d[T],p[T])))}),yield;const m=g.map(T=>T()).filter(Boolean);if(!m.length)return;const _=d;r.dispatchEvent(gk("motionstart",_)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(gk("motioncomplete",_))}).catch(f3)}const S=(y,C)=>()=>{o[y]=C,Q_(P)},w=()=>{for(const y in Ab){const C=Ab[y].isActive(e),h=i[y];C&&!h?i[y]=Ab[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&h&&(h(),delete i[y])}},P={update:y=>{r&&(e=y,w(),Q_(P))},setActive:(y,C)=>{r&&(o[y]=C,Q_(P))},animateUpdates:b,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,cC.set(r,P),w(),()=>{cC.delete(r),Qq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function eL(e){const t={},r=[];for(let n in e){const o=e[n];u2(n)&&(Bp[n]&&(n=Bp[n]),r.push(n),n=s2(n));let i=Array.isArray(o)?o[0]:o;const a=Up.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=WI(r)),t}const oY=e=>`-${e.toLowerCase()}`,iY=e=>e.replace(/[A-Z]/g,oY);function aY(e={}){const t=eL(e);let r="";for(const n in t)r+=n.startsWith("--")?n:iY(n),r+=`: ${t[n]}; `;return r}const lY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:JI,animate:uq,animateStyle:c2,createMotionState:nY,createStyleString:aY,createStyles:eL,getAnimationData:c3,getStyleName:z1,glide:Pq,inView:QI,mountedStates:cC,resize:ZI,scroll:Gq,spring:Cq,stagger:lq,style:Jf,timeline:pq,withControls:m3},Symbol.toStringTag,{value:"Module"})),sY=Lv(lY);function uY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dY=uY(function(e){return cY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const fY=Object.freeze(Object.defineProperty({__proto__:null,default:dY},Symbol.toStringTag,{value:"Module"})),pY=Lv(fY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=KA,r=eG,n=nI,o=bn,i=lt,a=Cd,l=sY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),b=s(r),S=s(a),w=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:w(["layout","layoutId","drag"]),animation:w(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:w(["exit"]),drag:w(["drag","dragControls"]),focus:w(["whileFocus"]),hover:w(["whileHover","onHoverStart","onHoverEnd"]),tap:w(["whileTap","onTap","onTapStart","onTapCancel"]),pan:w(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:w(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),h=Object.keys(P),p=h.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var zt={};function Ht(x){Object.assign(zt,x)}var mt=["","X","Y","Z"],Ot=["translate","scale","rotate","skew"],Jt=["transformPerspective","x","y","z"];Ot.forEach(function(x){return mt.forEach(function(M){return Jt.push(x+M)})});function Dr(x,M){return Jt.indexOf(x)-Jt.indexOf(M)}var ln=new Set(Jt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function nr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||nr(x)||(I||D!==void 0)&&(!!zt[x]||x==="opacity")}var Yt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,H=G===void 0?!0:G,Z=M.allowTransformNone,te=Z===void 0?!0:Z,ie="";$.sort(Dr);for(var de=!1,fe=$.length,ge=0;ge"u"?q5:Rh;te(Z,H.current,M,G)}var K5={some:0,all:1};function Rh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,H=G===void 0?"some":G,Z=D.once;r.useEffect(function(){if(x){var te={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof H=="number"?H:K5[H]},ie=function(de){var fe,ge=de.isIntersecting;if(M.isInView!==ge&&(M.isInView=ge,!(Z&&!ge&&M.hasEnteredView))){ge&&(M.hasEnteredView=!0),(fe=I.animationState)===null||fe===void 0||fe.setActive(e.AnimationType.InView,ge);var u=I.getProps(),f=ge?u.onViewportEnter:u.onViewportLeave;f==null||f(de)}};return Jr(I.getInstance(),te,ie)}},[x,z,$,H])}function q5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var H=I.getProps().onViewportEnter;H==null||H(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Mh),tap:ii(W5),focus:ii(He),hover:ii(ym)},Y5=0,X5=function(){return Y5++},jo=function(){return ue(X5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Nh(r.useContext(T))}function Nh(x){return x===null?!0:x.isPresent}function Ah(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Rt,he=Array.isArray(Ae)?Ae:[Ae],Pe=he.reduce($,{});wt===!1&&(Pe={});var Be=Ve.prevResolvedValues,tt=Be===void 0?{}:Be,yt=t.__assign(t.__assign({},tt),Pe),ct=function(nt){_e=!0,O.delete(nt),Ve.needsAnimating[nt]=!0};for(var vt in yt){var ft=Pe[vt],Ne=tt[vt];N.hasOwnProperty(vt)||(ft!==Ne?bt(ft)&&bt(Ne)?!Ah(ft,Ne)||On?ct(vt):Ve.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):Ve.protectedKeys[vt]=!0)}Ve.prevProp=Ae,Ve.prevResolvedValues=Pe,Ve.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(_e=!1),_e&&!er&&f.push.apply(f,t.__spreadArray([],t.__read(he.map(function(nt){return{animation:nt,options:t.__assign({type:Ee},ie)}})),!1))},K=0;K=3;if(!(!ge&&!u)){var f=fe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},f),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;ge||(L&&L(z.lastMoveEvent,fe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,fe)}}},this.handlePointerMove=function(fe,ge){if(z.lastMoveEvent=fe,z.lastMoveEventInfo=Vo(ge,z.transformPagePoint),It(fe)&&fe.buttons===0){z.handlePointerUp(fe,ge);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(fe,ge){z.end();var u=z.handlers,f=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(ge,z.transformPagePoint),z.history);z.startEvent&&f&&f(fe,N),O&&O(fe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var H=wo(M),Z=Vo(H,this.transformPagePoint),te=Z.point,ie=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},te),{timestamp:ie})];var de=I.onSessionStart;de&&de(M,Ja(Z,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Tm(M)),velocity:fr(M,.1)}}function Tm(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Bh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Uh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Hh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function Om(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function km(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function Wh(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return Wh(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function $h(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Gh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var H,Z,te=0;teM?I="y":Math.abs(x.x)>M&&(I="x"),I}function e_(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new Z5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Am(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,H=r.useRef(null),Z=r.useContext(g).transformPagePoint,te={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,fe){H.current=null,D&&D(de,fe)}};r.useEffect(function(){H.current!==null&&H.current.updateHandlers(te)});function ie(de){H.current=new Nl(de,te,{transformPagePoint:Z})}Ol($,"pointerdown",G&&ie),Ya(function(){return H.current&&H.current.end()})}var Yh={pan:ii(Am),drag:ii(e_)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,H=D[G];($=M[z])===null||$===void 0||$.call(M),H&&(M[z]=I[G](H))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,te=zm(M,x,H);return $.length&&$.forEach(function(ie){var de=t.__read(ie,2),fe=de[0],ge=de[1];x.getValue(fe).set(ge)}),x.syncRender(),Z!==null&&window.scrollTo({top:Z}),{target:te,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Bm(x,M,I,D){return Qh(M)?Vm(x,M,I,D):{target:M,transitionEnd:D}}var Um=function(x,M,I,D){var z=Xh(x,M,D);return M=z.target,D=z.transitionEnd,Bm(x,M,I,D)};function Hm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Hm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return qh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,H=t.__rest(M,["transition","transitionEnd"]),Z=Co(H,$||{},x);if(z&&(G&&(G=z(G)),H&&(H=z(H)),Z&&(Z=z(Z))),D){cc(x,H,Z);var te=Um(x,H,Z,G);G=te.transitionEnd,H=te.target}return t.__assign({transition:$,transitionEnd:G},H)},scrapeMotionValuesFromProps:kt,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Ze},Wm=uf(ff),t0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=$e.has(M)?M:je(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Nt,build:function(x,M,I,D,z){pe(M,I,D,z.transformTemplate)},render:Ge})),pf=function(x,M){return xt(x)?t0(M,{enableHardwareAcceleration:!1}):Wm(M,{enableHardwareAcceleration:!0})};function r0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=r0(x,M.target.x),D=r0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",$m={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(f){return G.push(f),hf}));var H=o.complex.parse(x);if(H.length>5)return z;var Z=o.complex.createTransformer(x),te=typeof H[0]!="number"?1:0,ie=D.x.scale*I.x,de=D.y.scale*I.y;H[0+te]/=ie,H[1+te]/=de;var fe=i.mix(ie,de,.5);typeof H[2+te]=="number"&&(H[2+te]/=fe),typeof H[3+te]=="number"&&(H[3+te]/=fe);var ge=Z(H);if($){var u=0;ge=ge.replace(hf,function(){var f=G[u];return u++,f})}return ge}},n0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,H=D.layoutId,Z=z.projection;Ht(n_),Z&&($!=null&&$.group&&$.group.add(Z),G!=null&&G.register&&H&&G.register(Z),Z.root.didUpdate(),Z.addEventListener("animationComplete",function(){I.safeToRemove()}),Z.setOptions(t.__assign(t.__assign({},Z.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,H=z.drag,Z=z.isPresent,te=G.projection;return te&&(te.isPresent=Z,H||I.layoutDependency!==$||$===void 0?te.willUpdate():this.safeToRemove(),I.isPresent!==Z&&(Z?te.promote():te.relegate()||S.default.postRender(function(){var ie;!((ie=te.getStack())===null||ie===void 0)&&ie.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(b.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(Ie);return b.default.createElement(n0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Re),isPresent:I,safeToRemove:D}))}var n_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:$m},o0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=Yt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var i0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=i0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Gm=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,H,Z,te;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((H=M.opacity)!==null&&H!==void 0?H:1,0,Sc(D))):$&&(x.opacity=i.mix((Z=M.opacity)!==null&&Z!==void 0?Z:1,(te=I.opacity)!==null&&te!==void 0?te:1,D));for(var ie=0;ieM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var H=i.mix(G.min,G.max,M/100);M=H-G.min}if(typeof M=="number"){var Z=i.mix($.min,$.max,D);x===$&&(Z-=M),x.min=Vs(x.min,M,I,Z,z),x.max=Vs(x.max,M,I,Z,z)}}function Km(x,M,I,D,z){var $=t.__read(I,3),G=$[0],H=$[1],Z=$[2];Tn(x,M[G],M[H],M[Z],M.scale,D,z)}var o_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){Km(x.x,M,o_,I==null?void 0:I.x,D==null?void 0:D.x),Km(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function qm(x){return x.translate===0&&x.scale===1}function We(x){return qm(x.x)&&qm(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var l0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Ih(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Ym="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Xm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,H=I.rotateX,Z=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),H&&($+="rotateX(".concat(H,"deg) ")),Z&&($+="rotateY(".concat(Z,"deg) "))}var te=x.x.scale*M.x,ie=x.y.scale*M.y;return $+="scale(".concat(te,", ").concat(ie,")"),$===Ym?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Ih(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function s0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(H,Z,te){var ie=this;Z===void 0&&(Z={}),te===void 0&&(te=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ie.isUpdating&&(ie.isUpdating=!1,ie.clearAllSnapshots())},this.updateProjection=function(){ie.nodes.forEach($i),ie.nodes.forEach(c0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=H,this.latestValues=Z,this.root=te?te.root||te:this,this.path=te?t.__spreadArray(t.__spreadArray([],t.__read(te.path),!1),[te],!1):[],this.parent=te,this.depth=te?te.depth+1:0,H&&this.root.registerPotentialNode(H,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function f0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){f0(x.x),f0(x.y)}var _f=s0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=s0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Yh),o0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function p0(x){return ze(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var h0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,H=ue(a_),Z=jo(),te=r.useMemo(function(){return{id:Z,initial:I,isPresent:D,custom:$,onExitComplete:function(ie){var de,fe;H.set(ie,!0);try{for(var ge=t.__values(H.values()),u=ge.next();!u.done;u=ge.next()){var f=u.value;if(!f)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(fe=ge.return)&&fe.call(ge)}finally{if(de)throw de.error}}z==null||z()},register:function(ie){return H.set(ie,!1),function(){return H.delete(ie)}}}},G?void 0:[D]);return r.useMemo(function(){H.forEach(function(ie,de){return H.set(de,!1)})},[D]),v.useEffect(function(){!D&&!H.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:te},M)};function a_(){return new Map}var ba=function(x){return x.key||""};function g0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var Ct=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,H=x.presenceAffectsLayout,Z=H===void 0?!0:H,te=t.__read(Mc(),1),ie=te[0],de=r.useContext(Ie).forceRender;de&&(ie=de);var fe=xf(),ge=Pr(M),u=ge,f=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,g0(ge,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),f.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Ee){return v.createElement(Rc,{key:ba(Ee),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:Z},Ee)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=ge.map(ba),le=j.length,me=0;me0?1:-1,G=x[z+$];if(!G)return x;var H=x[z],Z=G.layout,te=i.mix(Z.min,Z.max,.5);return $===1&&H.layout.max+I>te||$===-1&&H.layout.min+I.001?1/x:f_},Ef=!1;function p_(x){var M=Ki(1),I=Ki(1),D=_();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=Ct,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=Ie,e.LazyMotion=v0,e.MotionConfig=Sf,e.MotionConfigContext=g,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Re,e.addPointerEvent=Tl,e.addScaleCorrector=Ht,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=p0,e.createMotionComponent=ze,e.domAnimation=b0,e.domMax=w0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Eh,e.isMotionValue=Yt,e.isValidMotionProp=Dn,e.m=h0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=s_,e.useAnimationControls=iy,e.useAnimationFrame=S0,e.useCycle=ay,e.useDeprecatedAnimatedState=cy,e.useDeprecatedInvertedScale=p_,e.useDomEvent=At,e.useDragControls=Ul,e.useElementScroll=x0,e.useForceUpdate=Mc,e.useInView=ly,e.useInstantLayoutTransition=P0,e.useInstantTransition=c_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=_0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=sy,e.useScroll=kf,e.useSpring=l_,e.useTime=C0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=_,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(X),n=An,o=S(pt),i=S(Xn),a=S(et),l=Je,s=e2,d=Xe,v=$v;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,s.useAccordion)(),T=_.open,k=_.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,b({},m,{ref:p,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),g)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(PA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return h}});var r=w(X),n=w(pt),o=Je,i=w(et),a=Xe,l=e2,s=$v,d=CA,v=PA;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.open,m=p.icon,_=p.animate,T=p.className,k=p.disabled,R=p.children,E=P(p,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,_=_??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),b({},(0,i.default)(V.disabled),k)),T),U=r.default.useMemo(function(){return{open:g,icon:m,animate:_,disabled:k}},[g,m,_,k]);return r.default.createElement(l.AccordionContextProvider,{value:U},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var h=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(JR);var tL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var f2={},dh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(dh),i=S(pt),a=Je,l=S(Sr),s=S(et),d=Xe,v=_d;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.ripple,T=h.className,k=h.children;h.fullWidth;var R=w(h,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,U=V.variants,q=V.sizes;c=c??F.variant,g=g??F.size,m=m??F.color,_=_??F.ripple,T=(0,a.twMerge)(F.className||"",T);var J=_!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(U[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),Y=(0,s.default)(q[(0,l.default)(A.sizes,g,"md")]),re=(0,a.twMerge)((0,i.default)(Q,Y,W),T);return r.default.createElement("button",b({},R,{ref:p,className:re,type:R.type||"button",onMouseDown:function(ne){var se=R==null?void 0:R.onMouseDown;return _&&J.create(ne,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof se=="function"&&se(ne)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(f2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Alert:function(){return h},default:function(){return p}});var r=P(X),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=NP,S=P(f2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),U=(0,v.useTheme)().alert,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.variants;m=m??q.variant,_=_??q.color,A=A??q.animate,k=k??q.open,R=R??q.action,E=E??q.onClose,F=(0,l.twMerge)(q.className||"",F);var re=(0,d.default)(W.alert),ne=(0,d.default)(W.action),se=(0,d.default)(Y[(0,s.default)(J.variants,m,"filled")][(0,s.default)(J.colors,_,"gray")]),ve=(0,l.twMerge)((0,i.default)(re,se),F),we=(0,i.default)(ne),ce={unmount:{opacity:0},mount:{opacity:1}},ee=(0,a.default)(ce,A),oe=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,w({},B,{ref:g,role:"alert",className:"".concat(ve," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:ee}),T&&oe,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:we},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,action:b.propTypesAction,onClose:b.propTypesOnClose,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},h.displayName="MaterialTailwind.Alert";var p=h})(tL);var rL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=AP;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.className,_=h.color,T=h.withBorder,k=w(h,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,U=F.sizes,q=F.borderColor;c=c??A.variant,g=g??A.size,T=T??A.withBorder,_=_??A.color,m=(0,i.twMerge)(A.className||"",m);var J=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(U[(0,a.default)(E.sizes,g,"md")]),W=(0,l.default)(q[(0,a.default)(E.colors,_,"gray")]),Y,re=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),J,Q,(Y={},v(Y,(0,l.default)(V.withBorder),T),v(Y,W,T),Y)),m);return r.default.createElement("img",b({},k,{ref:p,className:re}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(rL);var nL={},oL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(ot);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(oL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(X),n=v(pt),o=Je,i=v(et),a=Xe,l=oL;function s(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function d(){return d=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=(0,r.forwardRef)(function(h,p){var c=h.separator,g=h.fullWidth,m=h.className,_=h.children,T=w(h,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,g=g??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),g)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:p,className:F}),r.Children.map(_,function(U,q){if((0,r.isValidElement)(U)){var J;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),U==null||(J=U.props)===null||J===void 0?void 0:J.disabled))},U,q!==r.Children.count(_)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(nL);var iL={},b3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Spinner:function(){return C},default:function(){return h}});var r=b(ot),n=w(X),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=GP;function v(){return v=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=(0,n.forwardRef)(function(p,c){var g=p.color,m=p.className,_=P(p,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;g=g??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,g,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),U,q;return n.default.createElement("svg",v({},_,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(U=_==null?void 0:_.width)!==null&&U!==void 0?U:24,height:(q=_==null?void 0:_.height)!==null&&q!==void 0?q:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var h=C})(b3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Button:function(){return h},default:function(){return p}});var r=P(X),n=P(ot),o=P(dh),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=P(b3),b=_d;function S(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,U=B.valid,q=B.defaultProps,J=B.styles,Q=J.base,W=J.variants,Y=J.sizes;m=m??q.variant,_=_??q.size,T=T??q.color,k=k??q.fullWidth,R=R??q.ripple,E=(0,a.twMerge)(q.className||"",E);var re=R!==void 0&&new o.default,ne=(0,s.default)(Q.initial),se=(0,s.default)(W[(0,l.default)(U.variants,m,"filled")][(0,l.default)(U.colors,T,"gray")]),ve=(0,s.default)(Y[(0,l.default)(U.sizes,_,"md")]),we=(0,a.twMerge)((0,i.default)(ne,ve,se,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":_==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":_==="lg"})),ee;return r.default.createElement("button",w({},V,{disabled:(ee=V.disabled)!==null&&ee!==void 0?ee:F,ref:g,className:we,type:V.type||"button",onMouseDown:function(oe){var ue=V==null?void 0:V.onMouseDown;return R&&re.create(oe,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(oe)}}),F&&r.default.createElement(v.default,{className:ce}),A)});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),fullWidth:b.propTypesFullWidth,ripple:b.propTypesRipple,className:b.propTypesClassName,children:b.propTypesChildren,loading:b.propTypesLoading},h.displayName="MaterialTailwind.Button";var p=h})(iL);var aL={},lL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=xd;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.shadow,_=h.floated,T=h.className,k=h.children,R=w(h,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,U=F.variants;c=c??A.variant,g=g??A.color,m=m??A.shadow,_=_??A.floated,T=(0,i.twMerge)(A.className||"",T);var q=(0,l.default)(B.initial),J=(0,l.default)(U[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"white")]),Q=(0,i.twMerge)((0,o.default)(q,J,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),_)),T);return r.default.createElement("div",b({},R,{ref:p,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(lL);var sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return w}});var r=d(X),n=d(pt),o=Je,i=d(et),a=Xe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var w=S})(sL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{CardFooter:function(){return w},default:function(){return P}});var r=v(X),n=v(pt),o=Je,i=v(et),a=Xe,l=xd;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,_=m.defaultProps,T=m.styles.base;h=h??_.divider,p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.CardFooter";var P=w})(uL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return p},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return b.CardFooter},default:function(){return c}});var r=y(X),n=y(ot),o=y(pt),i=Je,a=y(Sr),l=y(et),s=Xe,d=lL,v=sL,b=uL,S=xd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.variant,T=g.color,k=g.shadow,R=g.className,E=g.children,A=C(g,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,U=F.valid,q=B.base,J=B.variants;_=_??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(q.initial),W=(0,l.default)(J[(0,a.default)(U.variants,_,"filled")][(0,a.default)(U.colors,T,"white")]),Y=(0,i.twMerge)((0,o.default)(Q,W,w({},(0,l.default)(q.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:Y}),E)});p.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},p.displayName="MaterialTailwind.Card";var c=Object.assign(p,{Header:d.CardHeader,Body:v.CardBody,Footer:b.CardFooter})})(aL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Checkbox:function(){return C},default:function(){return h}});var r=w(X),n=w(ot),o=w(dh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),U=(0,d.useTheme)().checkbox,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(J.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),ee=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||re,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:we,id:B.id||re})),r.default.createElement("span",{className:ee},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var h=C})(cL);var dL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Chip:function(){return h},default:function(){return p}});var r=P(X),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=VP,S=P(f2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,U=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),q=(0,v.useTheme)().chip,J=q.defaultProps,Q=q.valid,W=q.styles,Y=W.base,re=W.variants,ne=W.sizes;m=m??J.variant,_=_??J.size,T=T??J.color,F=F??J.animate,R=R??J.open,A=A??J.action,E=E??J.onClose,V=(0,l.twMerge)(J.className||"",V);var se=(0,d.default)(Y.chip),ve=(0,d.default)(Y.action),we=(0,d.default)(Y.icon),ce=(0,d.default)(re[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),ee=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].chip),oe=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].action),ue=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].icon),Se=(0,l.twMerge)((0,i.default)(se,ce,ee),V),Ce=(0,i.default)(ve,oe),Me=(0,i.default)(we,ue),Ie=(0,i.default)({"ml-4":k&&_==="sm","ml-[18px]":k&&_==="md","ml-5":k&&_==="lg","mr-5":E}),Re={unmount:{opacity:0},mount:{opacity:1}},ye=(0,a.default)(Re,F),ke=r.default.createElement("div",{className:Me},k),ze=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ze,null,R&&r.default.createElement(o.m.div,w({},U,{ref:g,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:ye}),k&&ke,r.default.createElement("span",{className:Ie},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,onClose:b.propTypesOnClose,action:b.propTypesAction,animate:b.propTypesAnimate,className:b.propTypesClassName,value:b.propTypesValue},h.displayName="MaterialTailwind.Chip";var p=h})(dL);var fL={},pL={exports:{}},jt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zv=Symbol.for("react.element"),hY=Symbol.for("react.portal"),gY=Symbol.for("react.fragment"),vY=Symbol.for("react.strict_mode"),mY=Symbol.for("react.profiler"),yY=Symbol.for("react.provider"),bY=Symbol.for("react.context"),wY=Symbol.for("react.forward_ref"),_Y=Symbol.for("react.suspense"),xY=Symbol.for("react.memo"),SY=Symbol.for("react.lazy"),bk=Symbol.iterator;function CY(e){return e===null||typeof e!="object"?null:(e=bk&&e[bk]||e["@@iterator"],typeof e=="function"?e:null)}var hL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gL=Object.assign,vL={};function fh(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}fh.prototype.isReactComponent={};fh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mL(){}mL.prototype=fh.prototype;function w3(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}var _3=w3.prototype=new mL;_3.constructor=w3;gL(_3,fh.prototype);_3.isPureReactComponent=!0;var wk=Array.isArray,yL=Object.prototype.hasOwnProperty,x3={current:null},bL={key:!0,ref:!0,__self:!0,__source:!0};function wL(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)yL.call(t,n)&&!bL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Iy=new WeakMap,Ly={},J_=0,xL=function(e){return e&&(e.host||xL(e.parentNode))},RY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},NY=function(e,t,r,n){var o=RY(t,Array.isArray(e)?e:[e]);Ly[r]||(Ly[r]=new WeakMap);var i=Ly[r],a=[],l=new Set,s=new Set(o),d=function(b){!b||l.has(b)||(l.add(b),d(b.parentNode))};o.forEach(d);var v=function(b){!b||s.has(b)||Array.prototype.forEach.call(b.children,function(S){if(l.has(S))v(S);else try{var w=S.getAttribute(n),P=w!==null&&w!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Iy.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(h){console.error("aria-hidden: cannot operate on ",S,h)}})};return v(t),l.clear(),J_++,function(){a.forEach(function(b){var S=Nf.get(b)-1,w=i.get(b)-1;Nf.set(b,S),i.set(b,w),S||(Iy.has(b)||b.removeAttribute(n),Iy.delete(b)),w||b.removeAttribute(r)}),J_--,J_||(Nf=new WeakMap,Nf=new WeakMap,Iy=new WeakMap,Ly={})}},AY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=MY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),NY(n,o,r,"aria-hidden")):function(){return null}};/*! +* tabbable 6.2.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var IY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],dC=IY.join(","),SL=typeof Element>"u",uv=SL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,V1=!SL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},B1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},LY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},DY=function(t,r,n){if(B1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(dC));return r&&uv.call(t,dC)&&o.unshift(t),o=o.filter(n),o},FY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!B1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=uv.call(a,dC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var b=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!B1(b,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(b&&S){var w=e(b===!0?a.children:b.children,!0,n);n.flatten?o.push.apply(o,w):o.push({scopeParent:a,candidates:w})}else i.unshift.apply(i,a.children)}}return o},CL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},PL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||LY(t))&&!CL(t)?0:t.tabIndex},jY=function(t,r){var n=PL(t);return n<0&&r&&!CL(t)?0:n},zY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},TL=function(t){return t.tagName==="INPUT"},VY=function(t){return TL(t)&&t.type==="hidden"},BY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},UY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(uv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=V1(t);if(s&&!s.shadowRoot&&o(s)===!0)return xk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if(GY(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return xk(t);return!1},qY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},QY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=jY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(zY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},U1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=FY([t],r.includeContainer,{filter:Sk.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:XY}):n=DY(t,r.includeContainer,Sk.bind(null,r)),QY(n)},OL={exports:{}},Ni={};/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var kL=be,ki=fp;function Fe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fC=Object.prototype.hasOwnProperty,ZY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ck={},Pk={};function JY(e){return fC.call(Pk,e)?!0:fC.call(Ck,e)?!1:ZY.test(e)?Pk[e]=!0:(Ck[e]=!0,!1)}function eX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tX(e,t,r,n){if(t===null||typeof t>"u"||eX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var C3=/[\-:]([a-z])/g;function P3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function T3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{tx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?sg(e):""}function rX(e){switch(e.tag){case 5:return sg(e.type);case 16:return sg("Lazy");case 13:return sg("Suspense");case 19:return sg("SuspenseList");case 0:case 2:case 15:return e=rx(e.type,!1),e;case 11:return e=rx(e.type.render,!1),e;case 1:return e=rx(e.type,!0),e;default:return""}}function vC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case tp:return"Fragment";case ep:return"Portal";case pC:return"Profiler";case O3:return"StrictMode";case hC:return"Suspense";case gC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RL:return(e.displayName||"Context")+".Consumer";case ML:return(e._context.displayName||"Context")+".Provider";case k3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case E3:return t=e.displayName||null,t!==null?t:vC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return vC(e(t))}catch{}}return null}function nX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vC(t);case 8:return t===O3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oX(e){var t=AL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fy(e){e._valueTracker||(e._valueTracker=oX(e))}function IL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function H1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ok(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LL(e,t){t=t.checked,t!=null&&T3(e,"checked",t,!1)}function yC(e,t){LL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bC(e,t.type,r):t.hasOwnProperty("defaultValue")&&bC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kk(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bC(e,t,r){(t!=="number"||H1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ug=Array.isArray;function xp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=jy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Tg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iX=["Webkit","ms","Moz","O"];Object.keys(Tg).forEach(function(e){iX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tg[t]=Tg[e]})});function zL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Tg.hasOwnProperty(e)&&Tg[e]?(""+t).trim():t+"px"}function VL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=zL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var aX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xC(e,t){if(t){if(aX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Fe(62))}}function SC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var CC=null;function M3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var PC=null,Sp=null,Cp=null;function Rk(e){if(e=tm(e)){if(typeof PC!="function")throw Error(Fe(280));var t=e.stateNode;t&&(t=m2(t),PC(e.stateNode,e.type,t))}}function BL(e){Sp?Cp?Cp.push(e):Cp=[e]:Sp=e}function UL(){if(Sp){var e=Sp,t=Cp;if(Cp=Sp=null,Rk(e),t)for(e=0;e>>=0,e===0?32:31-(mX(e)/yX|0)|0}var zy=64,Vy=4194304;function cg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function K1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=cg(l):(i&=a,i!==0&&(n=cg(i)))}else a=r&~o,a!==0?n=cg(a):i!==0&&(n=cg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function xX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=kg),Vk=" ",Bk=!1;function sD(e,t){switch(e){case"keyup":return XX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rp=!1;function ZX(e,t){switch(e){case"compositionend":return uD(t);case"keypress":return t.which!==32?null:(Bk=!0,Vk);case"textInput":return e=t.data,e===Vk&&Bk?null:e;default:return null}}function JX(e,t){if(rp)return e==="compositionend"||!j3&&sD(e,t)?(e=aD(),Fb=L3=uu=null,rp=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$k(r)}}function pD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hD(){for(var e=window,t=H1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=H1(e.document)}return t}function z3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sQ(e){var t=hD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pD(r.ownerDocument.documentElement,r)){if(n!==null&&z3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Gk(r,i);var a=Gk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,np=null,RC=null,Mg=null,NC=!1;function Kk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;NC||np==null||np!==H1(n)||(n=np,"selectionStart"in n&&z3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mg&&mv(Mg,n)||(Mg=n,n=X1(RC,"onSelect"),0ap||(e.current=jC[ap],jC[ap]=null,ap--)}function cr(e,t){ap++,jC[ap]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function Wp(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Z1(){yr(Jo),yr(go)}function e8(e,t,r){if(go.current!==Ru)throw Error(Fe(168));cr(go,t),cr(Jo,r)}function SD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Fe(108,nX(e)||"Unknown",o));return Ir({},r,n)}function J1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function t8(e,t,r){var n=e.stateNode;if(!n)throw Error(Fe(169));r?(e=SD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,y2=!1,vx=!1;function CD(e){Yl===null?Yl=[e]:Yl.push(e)}function wQ(e){y2=!0,CD(e)}function Hu(){if(!vx&&Yl!==null){vx=!0;var e=0,t=Qt;try{var r=Yl;for(Qt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return xr&&zc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),xr&&zc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===tp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Dy:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===tp){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&s8(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=$0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===tp?(p=ed(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=$b(c.type,c.key,c.props,null,h.mode,g),g.ref=$0(h,p,c),g.return=h,h=g)}return a(h);case ep:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=Cx(c,h.mode,g),p.return=h,h=p}return a(h);case eu:return _=c._init,C(h,p,_(c._payload),g)}if(ug(c))return P(h,p,c,g);if(V0(c))return y(h,p,c,g);Ky(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=Sx(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Gp=ND(!0),AD=ND(!1),rm={},yl=Uu(rm),_v=Uu(rm),xv=Uu(rm);function Yc(e){if(e===rm)throw Error(Fe(174));return e}function q3(e,t){switch(cr(xv,t),cr(_v,e),cr(yl,rm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_C(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_C(t,e)}yr(yl),cr(yl,t)}function Kp(){yr(yl),yr(_v),yr(xv)}function ID(e){Yc(xv.current);var t=Yc(yl.current),r=_C(t,e.type);t!==r&&(cr(_v,e),cr(yl,r))}function Y3(e){_v.current===e&&(yr(yl),yr(_v))}var Er=Uu(0);function iw(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mx=[];function X3(){for(var e=0;er?r:4,e(!0);var n=yx.transition;yx.transition={};try{e(!1),t()}finally{Qt=r,yx.transition=n}}function XD(){return ca().memoizedState}function CQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},QD(e))ZD(t,r);else if(r=kD(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),JD(r,t,n)}}function PQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(QD(e))ZD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,G3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=kD(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),JD(r,t,n))}}function QD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function ZD(e,t){Rg=aw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function JD(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,N3(e,r)}}var lw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},TQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:c8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bb(4194308,4,$D.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:u8,useDebugValue:tT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=u8(!1),t=e[0];return e=SQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=t(),Nn===null)throw Error(Fe(349));(ud&30)!==0||FD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,c8(zD.bind(null,n,i,e),[e]),n.flags|=2048,Pv(9,jD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[wv]=n,sF(e,t,!1,!1),t.stateNode=e;e:{switch(a=SC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oYp&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304)}else{if(!n)if(e=iw(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),G0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Yp&&r!==1073741824&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return lT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Fe(156,t.tag))}function IQ(e,t){switch(B3(t),t.tag){case 1:return ei(t.type)&&Z1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kp(),yr(Jo),yr(go),X3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Y3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Fe(340));$p()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return Kp(),null;case 10:return $3(t.type._context),null;case 22:case 23:return lT(),null;case 24:return null;default:return null}}var Yy=!1,fo=!1,LQ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function cp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function XC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var b8=!1;function DQ(e,t){if(AC=q1,e=hD(),z3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(IC={focusedElem:e,selectionRange:r},q1=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(g){Br(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return P=b8,b8=!1,P}function Ng(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&XC(t,r,i)}o=o.next}while(o!==n)}}function _2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function QC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function dF(e){var t=e.alternate;t!==null&&(e.alternate=null,dF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[wv],delete t[FC],delete t[yQ],delete t[bQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fF(e){return e.tag===5||e.tag===3||e.tag===4}function w8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ZC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Q1));else if(n!==4&&(e=e.child,e!==null))for(ZC(e,t,r),e=e.sibling;e!==null;)ZC(e,t,r),e=e.sibling}function JC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(JC(e,t,r),e=e.sibling;e!==null;)JC(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)pF(e,t,r),r=r.sibling}function pF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(p2,r)}catch{}switch(r.tag){case 5:fo||cp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?gx(e.parentNode,r):e.nodeType===1&&gx(e,r),gv(e)):gx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&XC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(cp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function _8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new LQ),t.forEach(function(n){var o=$Q.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*jQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,cw=0,($t&6)!==0)throw Error(Fe(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-iT?Jc(e,0):oT|=r),ti(e,t)}function _F(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vy,Vy<<=1,(Vy&130023424)===0&&(Vy=4194304)));var r=No();e=hs(e,t),e!==null&&(Jv(e,t,r),ti(e,r))}function WQ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),_F(e,r)}function $Q(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(t),_F(e,r)}var xF;xF=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,NQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&PD(t,tw,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ub(e,t),e=t.pendingProps;var o=Wp(t,go.current);Tp(t,r),o=Z3(null,t,n,e,o,r);var i=J3();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,J1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,K3(t),o.updater=b2,t.stateNode=o,o._reactInternals=t,HC(t,n,e,r),t=GC(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&V3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ub(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=KQ(n),e=Oa(n,e),o){case 0:t=$C(null,t,n,e,r);break e;case 1:t=v8(null,t,n,e,r);break e;case 11:t=h8(null,t,n,e,r);break e;case 14:t=g8(null,t,n,Oa(n.type,e),r);break e}throw Error(Fe(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),$C(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),v8(e,t,n,o,r);case 3:e:{if(iF(t),e===null)throw Error(Fe(387));n=t.pendingProps,i=t.memoizedState,o=i.element,ED(e,t),ow(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qp(Error(Fe(423)),t),t=m8(e,t,n,r,o);break e}else if(n!==o){o=qp(Error(Fe(424)),t),t=m8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=AD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($p(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return ID(t),e===null&&VC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,LC(n,o)?a=null:i!==null&&LC(n,i)&&(t.flags|=32),oF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&VC(t),null;case 13:return aF(e,t,r);case 4:return q3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),h8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(rw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),BC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Fe(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),BC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Tp(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),g8(e,t,n,o,r);case 15:return rF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Ub(e,t),t.tag=1,ei(n)?(e=!0,J1(t)):e=!1,Tp(t,r),RD(t,n,o),HC(t,n,o,r),GC(null,t,n,!0,e,r);case 19:return lF(e,t,r);case 22:return nF(e,t,r)}throw Error(Fe(156,t.tag))};function SF(e,t){return YL(e,t)}function GQ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new GQ(e,t,r,n)}function uT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KQ(e){if(typeof e=="function")return uT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k3)return 11;if(e===E3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $b(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")uT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case tp:return ed(r.children,o,i,t);case O3:a=8,o|=8;break;case pC:return e=ra(12,r,t,o|2),e.elementType=pC,e.lanes=i,e;case hC:return e=ra(13,r,t,o),e.elementType=hC,e.lanes=i,e;case gC:return e=ra(19,r,t,o),e.elementType=gC,e.lanes=i,e;case NL:return S2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ML:a=10;break e;case RL:a=9;break e;case k3:a=11;break e;case E3:a=14;break e;case eu:a=16,n=null;break e}throw Error(Fe(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function S2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=NL,e.lanes=r,e.stateNode={isHidden:!1},e}function Sx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Cx(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ox(0),this.expirationTimes=ox(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ox(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cT(e,t,r,n,o,i,a,l,s){return e=new qQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},K3(i),e}function YQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OF)}catch(e){console.error(e)}}OF(),OL.exports=Ni;var Nu=OL.exports;const kF=["top","right","bottom","left"],E8=["start","end"],M8=kF.reduce((e,t)=>e.concat(t,t+"-"+E8[0],t+"-"+E8[1]),[]),Ua=Math.min,po=Math.max,pw=Math.round,Zy=Math.floor,Au=e=>({x:e,y:e}),eZ={left:"right",right:"left",bottom:"top",top:"bottom"},tZ={start:"end",end:"start"};function o4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function hT(e){return e==="x"?"y":"x"}function gT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function vT(e){return hT(vs(e))}function EF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=vT(e),i=gT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gw(a)),[a,gw(a)]}function rZ(e){const t=gw(e);return[hw(e),t,hw(t)]}function hw(e){return e.replace(/start|end/g,t=>tZ[t])}function nZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function oZ(e,t,r,n){const o=ja(e);let i=nZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(hw)))),i}function gw(e){return e.replace(/left|right|bottom|top/g,t=>eZ[t])}function iZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function mT(e){return typeof e!="number"?iZ(e):{top:e,right:e,bottom:e,left:e}}function Xp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function R8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=vT(t),l=gT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,b=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let w;switch(s){case"top":w={x:v,y:n.y-o.height};break;case"bottom":w={x:v,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:b};break;case"left":w={x:n.x-o.width,y:b};break;default:w={x:n.x,y:n.y}}switch(ja(t)){case"start":w[a]-=S*(r&&d?-1:1);break;case"end":w[a]+=S*(r&&d?-1:1);break}return w}const aZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:b}=R8(d,n,s),S=n,w={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const b=mT(v),S={x:r,y:n},w=vT(o),P=gT(w),y=await a.getDimensions(d),C=w==="y",h=C?"top":"left",p=C?"bottom":"right",c=C?"clientHeight":"clientWidth",g=i.reference[P]+i.reference[w]-S[w]-i.floating[P],m=S[w]-i.reference[w],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=_?_[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(_)))&&(T=l.floating[c]||i.floating[P]);const k=g/2-m/2,R=T/2-y[P]/2-1,E=Ua(b[h],R),A=Ua(b[p],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,U=o4(F,B,V),q=!s.arrow&&ja(o)!=null&&B!==U&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?hw(o)!==o:!1):!0)}const uZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:b,allowedPlacements:S=M8,autoAlignment:w=!0,...P}=Ha(e,t),y=b!==void 0||S===M8?sZ(b||null,w,S):S,C=await fd(t,P),h=((r=a.autoPlacement)==null?void 0:r.index)||0,p=y[h];if(p==null)return{};const c=EF(p,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==p)return{reset:{placement:y[0]}};const g=[C[Ei(p)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:p,overflows:g}],_=y[h+1];if(_)return{data:{index:h+1,overflows:m},reset:{placement:_}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:h+1,overflows:m},reset:{placement:R}}:{}}}},cZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const h=Ei(o),p=vs(l),c=Ei(l)===l,g=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[gw(l)]:rZ(l)),_=P!=="none";!S&&_&&m.push(...oZ(l,y,P,g));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[h]),b){const B=EF(o,a,g);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,U=T[B];if(U)return{data:{index:B,overflows:E},reset:{placement:U}};let q=(F=E.filter(J=>J.overflows[0]<=0).sort((J,Q)=>J.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!q)switch(w){case"bestFit":{var V;const J=(V=E.filter(Q=>{if(_){const W=vs(Q.placement);return W===p||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,Y)=>W+Y,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];J&&(q=J);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function N8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A8(e){return kF.some(t=>e[t]>=0)}const dZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=N8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:A8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=N8(i,r.floating);return{data:{escapedOffsets:a,escaped:A8(a)}}}default:return{}}}}};function MF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function fZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Xp(MF(o)))}const pZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),b=fZ(v),S=Xp(MF(v)),w=mT(l);function P(){if(b.length===2&&b[0].left>b[1].right&&s!=null&&d!=null)return b.find(C=>s>C.left-w.left&&sC.top-w.top&&d=2){if(vs(r)==="y"){const E=b[0],A=b[b.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,U=F?E.left:A.left,q=F?E.right:A.right,J=q-U,Q=B-V;return{top:V,bottom:B,left:U,right:q,width:J,height:Q,x:U,y:V}}const C=Ei(r)==="left",h=po(...b.map(E=>E.right)),p=Ua(...b.map(E=>E.left)),c=b.filter(E=>C?E.left===p:E.right===h),g=c[0].top,m=c[c.length-1].bottom,_=p,T=h,k=T-_,R=m-g;return{top:g,bottom:m,left:_,right:T,width:k,height:R,x:_,y:g}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function hZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,b=Ha(t,e);let{mainAxis:S,crossAxis:w,alignmentAxis:P}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof P=="number"&&(w=l==="end"?P*-1:P),s?{x:w*v,y:S*d}:{x:S*d,y:w*v}}const gZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await hZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},vZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:h,y:p}=C;return{x:h,y:p}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),b=vs(Ei(o)),S=hT(b);let w=d[S],P=d[b];if(i){const C=S==="y"?"top":"left",h=S==="y"?"bottom":"right",p=w+v[C],c=w-v[h];w=o4(p,w,c)}if(a){const C=b==="y"?"top":"left",h=b==="y"?"bottom":"right",p=P+v[C],c=P-v[h];P=o4(p,P,c)}const y=l.fn({...t,[S]:w,[b]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[b]:a}}}}}},mZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},b=vs(o),S=hT(b);let w=v[S],P=v[b];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",g=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;wm&&(w=m)}if(d){var h,p;const c=S==="y"?"width":"height",g=["top","left"].includes(Ei(o)),m=i.reference[b]-i.floating[c]+(g&&((h=a.offset)==null?void 0:h[b])||0)+(g?0:C.crossAxis),_=i.reference[b]+i.reference[c]+(g?0:((p=a.offset)==null?void 0:p[b])||0)-(g?C.crossAxis:0);P_&&(P=_)}return{[S]:w,[b]:P}}}},yZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),b=Ei(o),S=ja(o),w=vs(o)==="y",{width:P,height:y}=i.floating;let C,h;b==="top"||b==="bottom"?(C=b,h=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=b,C=S==="end"?"top":"bottom");const p=y-v.top-v.bottom,c=P-v.left-v.right,g=Ua(y-v[C],p),m=Ua(P-v[h],c),_=!t.middlewareData.shift;let T=g,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=p),_&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);w?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function k2(){return typeof window<"u"}function gh(e){return RF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(RF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RF(e){return k2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return k2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return k2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function I8(e){return!k2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function nm(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function bZ(e){return["table","td","th"].includes(gh(e))}function E2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yT(e){const t=bT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function wZ(e){let t=Iu(e);for(;wl(t)&&!Qp(t);){if(yT(t))return t;if(E2(t))return null;t=Iu(t)}return null}function bT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qp(e){return["html","body","#document"].includes(gh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function M2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(gh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||I8(e)&&e.host||_l(e);return I8(t)?t.host:t}function NF(e){const t=Iu(e);return Qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&nm(t)?t:NF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=NF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=i4(a);return t.concat(a,a.visualViewport||[],nm(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function i4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=pw(r)!==i||pw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function wT(e){return Wa(e)?e:e.contextElement}function kp(e){const t=wT(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=AF(t);let a=(i?pw(r.width):r.width)/n,l=(i?pw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _Z=Au(0);function IF(e){const t=Pi(e);return!bT()||!t.visualViewport?_Z:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=wT(e);let a=Au(1);t&&(n?Wa(n)&&(a=kp(n)):a=kp(e));const l=xZ(i,r,n)?IF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=Pi(i),w=n&&Wa(n)?Pi(n):n;let P=S,y=i4(P);for(;y&&n&&w!==P;){const C=kp(y),h=y.getBoundingClientRect(),p=$a(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=Pi(y),y=i4(P)}}return Xp({width:v,height:b,x:s,y:d})}function SZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?E2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),b=wl(n);if((b||!b&&!i)&&((gh(n)!=="body"||nm(a))&&(s=M2(n)),wl(n))){const S=pd(n);d=kp(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function CZ(e){return Array.from(e.getClientRects())}function a4(e,t){const r=M2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function PZ(e){const t=_l(e),r=M2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+a4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function TZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=bT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function OZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?kp(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function L8(e,t,r){let n;if(t==="viewport")n=TZ(e,r);else if(t==="document")n=PZ(_l(e));else if(Wa(t))n=OZ(t,r);else{const o=IF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Xp(n)}function LF(e,t){const r=Iu(e);return r===t||!Wa(r)||Qp(r)?!1:$a(r).position==="fixed"||LF(r,t)}function kZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&gh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Qp(a);){const l=$a(a),s=yT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nm(a)&&!s&&LF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function EZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?E2(t)?[]:kZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const b=L8(t,v,o);return d.top=po(b.top,d.top),d.right=Ua(b.right,d.right),d.bottom=Ua(b.bottom,d.bottom),d.left=po(b.left,d.left),d},L8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function MZ(e){const{width:t,height:r}=AF(e);return{width:t,height:r}}function RZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((gh(t)!=="body"||nm(o))&&(l=M2(t)),n){const w=pd(t,!0,i,t);s.x=w.x+t.clientLeft,s.y=w.y+t.clientTop}else o&&(s.x=a4(o));let d=0,v=0;if(o&&!n&&!i){const w=o.getBoundingClientRect();v=w.top+l.scrollTop,d=w.left+l.scrollLeft-a4(o,w)}const b=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:b,y:S,width:a.width,height:a.height}}function Px(e){return $a(e).position==="static"}function D8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function DF(e,t){const r=Pi(e);if(E2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Qp(o);){if(Wa(o)&&!Px(o))return o;o=Iu(o)}return r}let n=D8(e,t);for(;n&&bZ(n)&&Px(n);)n=D8(n,t);return n&&Qp(n)&&Px(n)&&!yT(n)?r:n||wZ(e)||r}const NZ=async function(e){const t=this.getOffsetParent||DF,r=this.getDimensions,n=await r(e.floating);return{reference:RZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function AZ(e){return $a(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:SZ,getDocumentElement:_l,getClippingRect:EZ,getOffsetParent:DF,getElementRects:NZ,getClientRects:CZ,getDimensions:MZ,getScale:kp,isElement:Wa,isRTL:AZ};function IZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:b,height:S}=e.getBoundingClientRect();if(l||t(),!b||!S)return;const w=Zy(v),P=Zy(o.clientWidth-(d+b)),y=Zy(o.clientHeight-(v+S)),C=Zy(d),p={rootMargin:-w+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function g(m){const _=m[0].intersectionRatio;if(_!==s){if(!c)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(g,p)}r.observe(e)}return a(!0),i}function LZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=wT(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?IZ(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const h=pd(e);y&&(h.x!==y.x||h.y!==y.y||h.width!==y.width||h.height!==y.height)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}const Gb=fd,jF=gZ,DZ=uZ,FZ=vZ,jZ=cZ,zZ=yZ,VZ=dZ,F8=lZ,BZ=pZ,UZ=mZ,zF=(e,t,r)=>{const n=new Map,o={platform:FF,...r},i={...o.platform,_c:n};return aZ(e,t,{...o,platform:i})},HZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?F8({element:t.current,padding:r}).fn(o):{}:t?F8({element:t,padding:r}).fn(o):{}}}};var Kb=typeof document<"u"?be.useLayoutEffect:be.useEffect;function vw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!vw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!vw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function j8(e){const t=be.useRef(e);return Kb(()=>{t.current=e}),t}function WZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=be.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=be.useState(n);vw(d,n)||v(n);const b=be.useRef(null),S=be.useRef(null),w=be.useRef(l),P=j8(i),y=j8(o),[C,h]=be.useState(null),[p,c]=be.useState(null),g=be.useCallback(E=>{b.current!==E&&(b.current=E,h(E))},[]),m=be.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),_=be.useCallback(()=>{if(!b.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),zF(b.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!vw(w.current,F)&&(w.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Kb(()=>{a===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=be.useRef(!1);Kb(()=>(T.current=!0,()=>{T.current=!1}),[]),Kb(()=>{if(C&&p){if(P.current)return P.current(C,p,_);_()}},[C,p,_,P]);const k=be.useMemo(()=>({reference:b,floating:S,setReference:g,setFloating:m}),[g,m]),R=be.useMemo(()=>({reference:C,floating:p}),[C,p]);return be.useMemo(()=>({...l,update:_,refs:k,elements:R,reference:g,floating:m}),[l,_,k,R,g,m])}var Mr=typeof document<"u"?be.useLayoutEffect:be.useEffect;let Tx=!1,$Z=0;const z8=()=>"floating-ui-"+$Z++;function GZ(){const[e,t]=be.useState(()=>Tx?z8():void 0);return Mr(()=>{e==null&&t(z8())},[]),be.useEffect(()=>{Tx||(Tx=!0)},[]),e}const KZ=_L.useId,Ov=KZ||GZ;function VF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const BF=be.createContext(null),UF=be.createContext(null),vh=()=>{var e;return((e=be.useContext(BF))==null?void 0:e.id)||null},Od=()=>be.useContext(UF),qZ=e=>{const t=Ov(),r=Od(),n=vh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},YZ=e=>{let{children:t,id:r}=e;const n=vh();return be.createElement(BF.Provider,{value:be.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},XZ=e=>{let{children:t}=e;const r=be.useRef([]),n=be.useCallback(a=>{r.current=[...r.current,a]},[]),o=be.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=be.useState(()=>VF())[0];return be.createElement(UF.Provider,{value:be.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function _T(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function HF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function xT(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof xT(e).Element:!1}function hd(e){return e?e instanceof xT(e).HTMLElement:!1}function QZ(e){if(typeof ShadowRoot>"u")return!1;const t=xT(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WF(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(_T())||t.test(HF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $F(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function l4(){return/apple/i.test(navigator.vendor)}function GF(){return _T().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function mw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=be.useRef(e);return Mr(()=>{t.current=e}),t}const V8="data-floating-ui-safe-polygon";function qb(e,t,r){return r&&!mw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const ZZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:b,elements:{domReference:S,floating:w},refs:P}=e,y=Od(),C=vh(),h=oa(o),p=oa(n),c=be.useRef(),g=be.useRef(),m=be.useRef(),_=be.useRef(),T=be.useRef(!0),k=be.useRef(!1),R=be.useRef(()=>{}),E=be.useCallback(()=>{var B;const U=(B=v.current.openEvent)==null?void 0:B.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[v]);be.useEffect(()=>{if(!r)return;function B(){clearTimeout(g.current),clearTimeout(_.current),T.current=!0}return b.on("dismiss",B),()=>{b.off("dismiss",B)}},[r,b]),be.useEffect(()=>{if(!r||!h.current||!s)return;function B(){E()&&d(!1)}const U=Yo(w).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[w,s,d,r,h,v,E]);const A=be.useCallback(function(B){B===void 0&&(B=!0);const U=qb(p.current,"close",c.current);U&&!m.current?(clearTimeout(g.current),g.current=setTimeout(()=>d(!1),U)):B&&(clearTimeout(g.current),d(!1))},[p,d]),F=be.useCallback(()=>{R.current(),m.current=void 0},[]),V=be.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(V8),k.current=!1}},[P]);return be.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function U(Q){if(clearTimeout(g.current),T.current=!1,i&&!mw(c.current)||a>0&&qb(p.current,"open")===0)return;v.current.openEvent=Q;const W=qb(p.current,"open",c.current);W?g.current=setTimeout(()=>{d(!0)},W):d(!0)}function q(Q){if(B())return;R.current();const W=Yo(w);if(clearTimeout(_.current),h.current){clearTimeout(g.current),m.current=h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const Y=m.current;W.addEventListener("mousemove",Y),R.current=()=>{W.removeEventListener("mousemove",Y)};return}A()}function J(Q){B()||h.current==null||h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",J),w==null||w.addEventListener("mouseleave",J),l&&Q.addEventListener("mousemove",U,{once:!0}),Q.addEventListener("mouseenter",U),Q.addEventListener("mouseleave",q),()=>{s&&Q.removeEventListener("mouseleave",J),w==null||w.removeEventListener("mouseleave",J),l&&Q.removeEventListener("mousemove",U),Q.removeEventListener("mouseenter",U),Q.removeEventListener("mouseleave",q)}}},[S,w,r,e,i,a,l,A,F,V,d,s,y,p,h,v]),Mr(()=>{var B;if(r&&s&&(B=h.current)!=null&&B.__options.blockPointerEvents&&E()){const J=Yo(w).body;if(J.setAttribute(V8,""),J.style.pointerEvents="none",k.current=!0,na(S)&&w){var U,q;const Q=S,W=y==null||(U=y.nodesRef.current.find(Y=>Y.id===C))==null||(q=U.context)==null?void 0:q.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",w.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",w.style.pointerEvents=""}}}},[r,s,C,w,S,y,h,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),be.useEffect(()=>()=>{F(),clearTimeout(g.current),clearTimeout(_.current),V()},[r,F,V]),be.useMemo(()=>{if(!r)return{};function B(U){c.current=U.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(g.current)},onMouseLeave(){b.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[b,r,a,s,d,A])},KF=be.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),qF=()=>be.useContext(KF),JZ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=be.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=be.useRef(null),l=be.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),be.createElement(KF.Provider,{value:be.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},eJ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=qF();be.useEffect(()=>{i&&(s({delay:{open:1,close:qb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),be.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const b=window.setTimeout(v,d);return()=>{clearTimeout(b)}}else v()},[r,s,i,o,n,l,d]),be.useEffect(()=>{r&&a(o)},[r,a,o])};function kv(){return kv=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():B8=requestAnimationFrame(i)}function tJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Lg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function R2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const rJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function YF(e){return hd(e)&&e.matches(rJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const yw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function XF(e,t){const r=U1(e,yw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function QF(){return XF(document.body,"next")}function ZF(){return XF(document.body,"prev")}function Dg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function nJ(e){U1(e,yw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function oJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const iJ=_L.useInsertionEffect,aJ=iJ||(e=>e());function mh(e){const t=be.useRef(()=>{});return aJ(()=>{t.current=e}),be.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(l4()&&i("button"),document.addEventListener("keydown",U8),()=>{document.removeEventListener("keydown",U8)}),[]),be.createElement("span",kv({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:ST,onFocus:a=>{l4()&&GF()&&!lJ(a)?(a.persist(),CT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),JF=be.createContext(null),ej=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=be.useState(null),i=Ov(),a=tj();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},sJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=ej({id:r,enabled:!n}),[a,l]=be.useState(null),s=be.useRef(null),d=be.useRef(null),v=be.useRef(null),b=be.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return be.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function w(P){i&&Dg(P)&&(P.type==="focusin"?oJ:nJ)(i)}return i.addEventListener("focusin",w,!0),i.addEventListener("focusout",w,!0),()=>{i.removeEventListener("focusin",w,!0),i.removeEventListener("focusout",w,!0)}},[i,o,a==null?void 0:a.modal]),be.createElement(JF.Provider,{value:be.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:b,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&be.createElement(bw,{"data-type":"outside",ref:s,onFocus:w=>{if(Dg(w,i)){var P;(P=v.current)==null||P.focus()}else{const y=ZF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&be.createElement("span",{"aria-owns":i.id,style:ST}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&be.createElement(bw,{"data-type":"outside",ref:d,onFocus:w=>{if(Dg(w,i)){var P;(P=b.current)==null||P.focus()}else{const y=QF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},tj=()=>be.useContext(JF),uJ=be.forwardRef(function(t,r){return be.createElement("button",kv({},t,{type:"button",ref:r,tabIndex:-1,style:ST}))});function cJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:b,onOpenChange:S,events:w,dataRef:P,elements:{domReference:y,floating:C}}=t,h=oa(n),p=Od(),c=tj(),[g,m]=be.useState(null),_=typeof i=="number"&&i<0,T=be.useRef(null),k=be.useRef(null),R=be.useRef(!1),E=be.useRef(null),A=be.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&YF(y),B=be.useCallback(function(Q){return Q===void 0&&(Q=C),Q?U1(Q,yw()):[]},[C]),U=be.useCallback(Q=>{const W=B(Q);return h.current.map(Y=>y&&Y==="reference"?y:C&&Y==="floating"?C:W).filter(Boolean).flat()},[y,C,h,B]);be.useEffect(()=>{if(!l)return;function Q(Y){if(Y.key==="Tab"){B().length===0&&!V&&Xi(Y);const re=U(),ne=R2(Y);h.current[0]==="reference"&&ne===y&&(Xi(Y),Y.shiftKey?Ys(re[re.length-1]):Ys(re[1])),h.current[1]==="floating"&&ne===C&&Y.shiftKey&&(Xi(Y),Ys(re[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,h,v,V,B,U]),be.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(Y){const re=Y.relatedTarget,ne=!(Ho(y,re)||Ho(C,re)||Ho(re,C)||Ho(c==null?void 0:c.portalNode,re)||re!=null&&re.hasAttribute("data-floating-ui-focus-guard")||p&&(Lg(p.nodesRef.current,b).find(se=>{var ve,we;return Ho((ve=se.context)==null?void 0:ve.elements.floating,re)||Ho((we=se.context)==null?void 0:we.elements.domReference,re)})||tJ(p.nodesRef.current,b).find(se=>{var ve,we;return((ve=se.context)==null?void 0:ve.elements.floating)===re||((we=se.context)==null?void 0:we.elements.domReference)===re})));re&&ne&&!A.current&&re!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,b,p,c,S,d]),be.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function Y(){return[T.current,k.current].filter(Boolean)}if(C&&l){const re=[C,...W,...Y()],ne=AY(h.current.includes("reference")||V?re.concat(y||[]):re);return()=>{ne()}}},[y,C,l,h,c,V]),be.useEffect(()=>{if(l&&!o&&C){const Q=[],W=yw(),Y=U1(Yo(C).body,W),re=U(),ne=Y.filter(se=>!re.includes(se));return ne.forEach((se,ve)=>{Q[ve]=se.getAttribute("tabindex"),se.setAttribute("tabindex","-1")}),()=>{ne.forEach((se,ve)=>{const we=Q[ve];we==null?se.removeAttribute("tabindex"):se.setAttribute("tabindex",we)})}}},[C,l,o,U]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,Y=!1;const re=gd(Q),ne=P.current;E.current=re;const se=U(C),ve=(typeof i=="number"?se[i]:i.current)||C;!_&&Ys(ve,{preventScroll:ve===C});function we(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const ee=ce.data.returnFocus;typeof ee=="object"?(W=!0,Y=ee.preventScroll):W=ee}return w.on("dismiss",we),()=>{if(w.off("dismiss",we),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:Y});else{var ce;ne.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:Y}),setTimeout(()=>{delete ne.__syncReturnFocus})}}},[C,U,i,a,P,v,w,_]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(_||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,_,v]);const q=o&&(F||l)&&!V;function J(Q){return s&&l?be.createElement(uJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return be.createElement(be.Fragment,null,q&&be.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const Y=U();Ys(n[0]==="reference"?Y[0]:Y[Y.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Dg(Q,c.portalNode)){const Y=QF()||y;Y==null||Y.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:J("start"),be.cloneElement(r,g===0||n.includes("floating")?{tabIndex:0}:{}),J("end"),q&&be.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(U()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Dg(Q,c.portalNode)){const Y=ZF()||y;Y==null||Y.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const Jy="data-floating-ui-scroll-lock",dJ=be.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(Jy))return;document.body.setAttribute(Jy,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(_T()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(Jy),Object.assign(document.body.style,{overflow:"",[d]:""})};const b=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,w=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(w-Math.floor(b))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(Jy),window.scrollTo(w,P)}},[n]),be.createElement("div",kv({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function H8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function W8(e){return YF(e)}const fJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const b=be.useRef();return be.useMemo(()=>a?{reference:{onPointerDown(S){b.current=S.pointerType},onMouseDown(S){S.button===0&&(mw(b.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&b.current){b.current=void 0;return}mw(b.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){b.current=void 0,v&&(H8(S)||(S.key===" "&&!W8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(H8(S)||W8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function Yb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const pJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},hJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},gJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},vJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:b=!0,outsidePress:S=!0,outsidePressEvent:w="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:h=!0}=t===void 0?{}:t;const p=Od(),c=vh()!=null,g=mh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?g:S,_=be.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=gJ(h);return be.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const U=p?Lg(p.nodesRef.current,i):[];if(U.length>0){let q=!0;if(U.forEach(J=>{var Q;if((Q=J.context)!=null&&Q.open&&!J.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const U=_.current;if(_.current=!1,U||typeof m=="function"&&!m(B))return;const q=R2(B);if(hd(q)&&s){const W=s.ownerDocument.defaultView||window,Y=q.scrollWidth>q.clientWidth,re=q.scrollHeight>q.clientHeight;let ne=re&&B.offsetX>q.clientWidth;if(re&&W.getComputedStyle(q).direction==="rtl"&&(ne=B.offsetX<=q.offsetWidth-q.clientWidth),ne||Y&&B.offsetY>q.clientHeight)return}const J=p&&Lg(p.nodesRef.current,i).some(W=>{var Y;return Yb(B,(Y=W.context)==null?void 0:Y.elements.floating)});if(Yb(B,s)||Yb(B,l)||J)return;const Q=p?Lg(p.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(Y=>{var re;if((re=Y.context)!=null&&re.open&&!Y.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:WF(B)||$F(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);b&&F.addEventListener("keydown",R),m&&F.addEventListener(w,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var U;return B!==((U=F.defaultView)==null?void 0:U.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{b&&F.removeEventListener("keydown",R),m&&F.removeEventListener(w,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,b,m,w,o,p,i,r,n,C,v,T,k,c]),be.useEffect(()=>{_.current=!1},[m,w]),be.useMemo(()=>v?{reference:{[pJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[hJ[w]]:()=>{_.current=!0}}}:{},[v,o,P,w,y,n])},mJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const b=be.useRef(""),S=be.useRef(!1),w=be.useRef();return be.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),be.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),be.useEffect(()=>()=>{clearTimeout(w.current)},[]),be.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;b.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&Yb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";w.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let $8=!1;const PT="ArrowUp",N2="ArrowDown",Zp="ArrowLeft",om="ArrowRight";function eb(e,t,r){return Math.floor(e/t)!==r}function q0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function A2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function G8(e,t){return A2(t,e===PT||e===N2,e===Zp||e===om)}function Ox(e,t,r){return A2(t,e===N2,r?e===Zp:e===om)||e==="Enter"||e==" "||e===""}function yJ(e,t,r){return A2(t,r?e===Zp:e===om,e===N2)}function bJ(e,t,r){return A2(t,r?e===om:e===Zp,e===PT)}function kx(e,t){return uo(e,{disabledIndices:t})}function K8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const wJ=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:b=!1,loop:S=!1,nested:w=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:h=!0,openOnArrowKeyDown:p=!0,disabledIndices:c=void 0,orientation:g="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=vh(),k=Od(),R=mh(s),E=be.useRef(C),A=be.useRef(v??-1),F=be.useRef(null),V=be.useRef(!0),B=be.useRef(R),U=be.useRef(r),q=be.useRef(!1),J=be.useRef(!1),Q=oa(c),W=oa(r),Y=oa(_),[re,ne]=be.useState(),se=be.useCallback(function(ce,ee,oe){oe===void 0&&(oe=!1);const ue=ce.current[ee.current];y?ne(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:GF()&&l4()?$8||q.current:!1}),requestAnimationFrame(()=>{const Se=Y.current;Se&&ue&&(oe||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,Y]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return $8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(J.current=!0,R(v)):U.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(q.current=!1,v!=null)return;U.current&&(A.current=-1,se(a,A)),!U.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||Ox(F.current,g,P)||w?kx(a,Q.current):K8(a,Q.current),R(A.current))}else q0(a,l)||(A.current=l,se(a,A,J.current),J.current=!1)},[d,r,l,v,w,a,g,P,R,se,Q]),Mr(()=>{if(d&&U.current&&!r){var ce,ee;const oe=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(ee=ce.context)==null?void 0:ee.elements.floating;oe&&!Ho(oe,gd(Yo(oe)))&&oe.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,U.current=r});const ve=l!=null,we=be.useMemo(()=>{function ce(oe){if(!r)return;const ue=a.current.indexOf(oe);ue!==-1&&R(ue)}return{onFocus(oe){let{currentTarget:ue}=oe;ce(ue)},onClick:oe=>{let{currentTarget:ue}=oe;return ue.focus({preventScroll:!0})},...h&&{onMouseMove(oe){let{currentTarget:ue}=oe;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,se(a,A),Nu.flushSync(()=>R(null)),!y)){var oe;(oe=o.floating.current)==null||oe.focus({preventScroll:!0})}}}}},[r,o,se,h,a,R,y]);return be.useMemo(()=>{if(!d)return{};const ce=Q.current;function ee(Ce){if(V.current=!1,q.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(w&&bJ(Ce.key,g,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Me=A.current,Ie=kx(a,ce),Re=K8(a,ce);if(Ce.key==="Home"&&(A.current=Ie,R(A.current)),Ce.key==="End"&&(A.current=Re,R(A.current)),m>1){const ye=A.current;if(Ce.key===PT){if(Xi(Ce),ye===-1)A.current=Re;else if(A.current=uo(a,{startingIndex:ye,amount:m,decrement:!0,disabledIndices:ce}),S&&(ye-mke?Ye:Ye-m}q0(a,A.current)&&(A.current=ye),R(A.current)}if(Ce.key===N2&&(Xi(Ce),ye===-1?A.current=Ie:(A.current=uo(a,{startingIndex:ye,amount:m,disabledIndices:ce}),S&&ye+m>Re&&(A.current=uo(a,{startingIndex:ye%m-m,amount:m,disabledIndices:ce}))),q0(a,A.current)&&(A.current=ye),R(A.current)),g==="both"){const ke=Math.floor(ye/m);Ce.key===om&&(Xi(Ce),ye%m!==m-1?(A.current=uo(a,{startingIndex:ye,disabledIndices:ce}),S&&eb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce})),eb(A.current,m,ke)&&(A.current=ye)),Ce.key===Zp&&(Xi(Ce),ye%m!==0?(A.current=uo(a,{startingIndex:ye,disabledIndices:ce,decrement:!0}),S&&eb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:ye+(m-ye%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:ye+(m-ye%m),decrement:!0,disabledIndices:ce})),eb(A.current,m,ke)&&(A.current=ye));const ze=Math.floor(Re/m)===ke;q0(a,A.current)&&(S&&ze?A.current=Ce.key===Zp?Re:uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce}):A.current=ye),R(A.current);return}}if(G8(Ce.key,g)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=Ox(Ce.key,g,P)?Ie:Re,R(A.current);return}Ox(Ce.key,g,P)?S?A.current=Me>=Re?b&&Me!==a.current.length?-1:Ie:uo(a,{startingIndex:Me,disabledIndices:ce}):A.current=Math.min(Re,uo(a,{startingIndex:Me,disabledIndices:ce})):S?A.current=Me<=Ie?b&&Me!==-1?a.current.length:Re:uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce}):A.current=Math.max(Ie,uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce})),q0(a,A.current)?R(null):R(A.current)}}function oe(Ce){C==="auto"&&WF(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&$F(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&ve&&{"aria-activedescendant":re};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Me=Ce.key.indexOf("Arrow")===0;if(y&&r)return ee(Ce);if(!r&&!p&&Me)return;if((Me||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),w){yJ(Ce.key,g,P)&&(Xi(Ce),r?(A.current=kx(a,ce),R(A.current)):n(!0));return}G8(Ce.key,g)&&(v!=null&&(A.current=v),Xi(Ce),!r&&p?n(!0):ee(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:oe,onClick:oe},floating:{"aria-orientation":g==="both"?void 0:g,...Se,onKeyDown:ee,onPointerMove(){V.current=!0}},item:we}},[i,o,re,Q,W,a,d,g,P,y,r,ve,w,v,p,b,m,S,C,R,n,we])};function _J(e){return be.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const xJ=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=Ov(),a=Ov();return be.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},q8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function SJ(e,t){const[r,n]=be.useState(e);return e&&!r&&n(!0),be.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function rj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=be.useState(!1),[d,v]=be.useState("unmounted"),b=SJ(r,a);return Mr(()=>{l&&!b&&v("unmounted")},[l,b]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:b,status:d}}function CJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=be.useState({}),{isMounted:b,status:S}=rj(e,{duration:a}),w=oa(r),P=oa(n),y=oa(o),C=oa(i),h=typeof a=="number",p=(h?a:a.open)||0,c=(h?a:a.close)||0;return Mr(()=>{const g={side:s,placement:l},m=w.current,_=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(g):m,E=typeof _=="function"?_(g):_,A=typeof k=="function"?k(g):k,F=(typeof T=="function"?T(g):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(q8).join(","),transitionDuration:p+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(q8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,w,P,C,p,S]),{isMounted:b,styles:d}}const PJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:b=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const w=be.useRef(),P=be.useRef(""),y=be.useRef((r=S??a)!=null?r:-1),C=be.useRef(null),h=mh(l),p=oa(d),c=oa(b);return Mr(()=>{n&&(clearTimeout(w.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var g;y.current=(g=S??a)!=null?g:-1}},[n,S,a]),be.useMemo(()=>{if(!s)return{};function g(m){const _=R2(m.nativeEvent);if(na(_)&&(gd(Yo(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,U;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((U=V[1])==null?void 0:U.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(w.current),w.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=p.current?p.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(h(F),C.current=F)}return{reference:{onKeyDown:g},floating:{onKeyDown:g}}},[s,o,i,v,c,p,h])};function Y8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const TJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:b,elements:{floating:S}}=t,w=r.current[a];if(!w)return{};const P={...t,...await jF(-w.offsetTop-b.reference.height/2-w.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await Gb(Y8(P,y.scrollHeight),v),h=await Gb(P,{...v,elementContext:"reference"}),p=Math.max(0,C.top),c=P.y+p,g=Math.max(0,y.scrollHeight-p-Math.max(0,C.bottom));return y.style.maxHeight=g+"px",y.scrollTop=p,o&&(y.offsetHeight=-s||h.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await Gb(Y8({...P,y:c},y.offsetHeight),v)),{y:c}}}),OJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=mh(l),d=be.useRef(!1),v=be.useRef(null),b=be.useRef(null);return be.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!w||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,h=i.current.bottom>=-.5,p=w.scrollHeight-w.clientHeight,c=y<0?-1:1,g=y<0?"max":"min";w.scrollHeight<=w.clientHeight||(!C&&y>0||!h&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[g](y,p*c))})):/firefox/i.test(HF())&&(w.scrollTop+=y))}const w=(a==null?void 0:a.current)||n.floating;if(r&&w)return w.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=w.scrollTop,i.current!=null&&(b.current={...i.current})}),()=>{v.current=null,b.current=null,w.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),be.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const w=S.scrollTop-v.current;(i.current.bottom<-.5&&w<-1||i.current.top<-.5&&w>1)&&Nu.flushSync(()=>s(P=>P+w))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function kJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=b>=n&&r<=(v-s)*(n-d)/(b-d)+s&&(o=!o)}return o}function EJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function MJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:b,elements:S,onClose:w,nodeId:P,tree:y}=s;return function(h){function p(){clearTimeout(o),w()}if(clearTimeout(o),!S.domReference||!S.floating||b==null||d==null||v==null)return;const{clientX:c,clientY:g}=h,m=[c,g],_=R2(h),T=h.type==="mouseleave",k=Ho(S.floating,_),R=Ho(S.domReference,_),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=b.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,U=EJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(h.relatedTarget)&&Ho(S.floating,h.relatedTarget)||y&&Lg(y.nodesRef.current,P).some(W=>{let{context:Y}=W;return Y==null?void 0:Y.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return p();let q=[];switch(F){case"top":q=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&g>=A.top&&g<=E.top+1;break;case"bottom":q=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&g>=E.bottom-1&&g<=A.bottom;break;case"left":q=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&g>=A.top&&g<=A.bottom;break;case"right":q=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&g>=A.top&&g<=A.bottom;break}function J(W){let[Y,re]=W;const ne=A.width>E.width,se=A.height>E.height;switch(F){case"top":{const ve=[ne?Y+r/2:V?Y+r*4:Y-r*4,re+r+1],we=[ne?Y-r/2:V?Y+r*4:Y-r*4,re+r+1],ce=[[A.left,V||ne?A.bottom-r:A.top],[A.right,V?ne?A.bottom-r:A.top:A.bottom-r]];return[ve,we,...ce]}case"bottom":{const ve=[ne?Y+r/2:V?Y+r*4:Y-r*4,re-r],we=[ne?Y-r/2:V?Y+r*4:Y-r*4,re-r],ce=[[A.left,V||ne?A.top+r:A.bottom],[A.right,V?ne?A.top+r:A.bottom:A.top+r]];return[ve,we,...ce]}case"left":{const ve=[Y+r+1,se?re+r/2:B?re+r*4:re-r*4],we=[Y+r+1,se?re-r/2:B?re+r*4:re-r*4];return[...[[B||se?A.right-r:A.left,A.top],[B?se?A.right-r:A.left:A.right-r,A.bottom]],ve,we]}case"right":{const ve=[Y-r,se?re+r/2:B?re+r*4:re-r*4],we=[Y-r,se?re-r/2:B?re+r*4:re-r*4],ce=[[B||se?A.left+r:A.right,A.top],[B?se?A.left+r:A.right:A.left+r,A.bottom]];return[ve,we,...ce]}}}const Q=i?q:J([d,v]);if(!i){if(a&&!U)return p();kJ([c,g],Q)?t&&!a&&(o=setTimeout(p,t)):p()}}};return l.__options={blockPointerEvents:n},l}function RJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=WZ(e),i=Od(),a=be.useRef(null),l=be.useRef({}),s=be.useState(()=>VF())[0],[d,v]=be.useState(null),b=be.useCallback(h=>{const p=na(h)?{getBoundingClientRect:()=>h.getBoundingClientRect(),contextElement:h}:h;o.refs.setReference(p)},[o.refs]),S=be.useCallback(h=>{(na(h)||h===null)&&(a.current=h,v(h)),(na(o.refs.reference.current)||o.refs.reference.current===null||h!==null&&!na(h))&&o.refs.setReference(h)},[o.refs]),w=be.useMemo(()=>({...o.refs,setReference:S,setPositionReference:b,domReference:a}),[o.refs,S,b]),P=be.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=mh(r),C=be.useMemo(()=>({...o,refs:w,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,w,P]);return Mr(()=>{const h=i==null?void 0:i.nodesRef.current.find(p=>p.id===n);h&&(h.context=C)}),be.useMemo(()=>({...o,context:C,refs:w,reference:S,positionReference:b}),[o,w,C,S,b])}function Ex(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,b=arguments.length,S=new Array(b),w=0;wP(...S))}}}else o[l]=s}),o),{})}}const NJ=function(e){e===void 0&&(e=[]);const t=e,r=be.useCallback(i=>Ex(i,e,"reference"),t),n=be.useCallback(i=>Ex(i,e,"floating"),t),o=be.useCallback(i=>Ex(i,e,"item"),e.map(i=>i==null?void 0:i.item));return be.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},AJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:JZ,FloatingFocusManager:cJ,FloatingNode:YZ,FloatingOverlay:dJ,FloatingPortal:sJ,FloatingTree:XZ,arrow:HZ,autoPlacement:DZ,autoUpdate:LZ,computePosition:zF,detectOverflow:Gb,flip:jZ,getOverflowAncestors:os,hide:VZ,inline:BZ,inner:TJ,limitShift:UZ,offset:jF,platform:FF,safePolygon:MJ,shift:FZ,size:zZ,useClick:fJ,useDelayGroup:eJ,useDelayGroupContext:qF,useDismiss:vJ,useFloating:RJ,useFloatingNodeId:qZ,useFloatingParentNodeId:vh,useFloatingPortalNode:ej,useFloatingTree:Od,useFocus:mJ,useHover:ZZ,useId:Ov,useInnerOffset:OJ,useInteractions:NJ,useListNavigation:wJ,useMergeRefs:_J,useRole:xJ,useTransitionStatus:rj,useTransitionStyles:CJ,useTypeahead:PJ},Symbol.toStringTag,{value:"Module"})),wn=Lv(AJ);var nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return w}});var r=d(X),n=d(pt),o=Je,i=d(et),a=Xe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var w=S})(nj);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{DialogBody:function(){return w},default:function(){return P}});var r=v(X),n=v(pt),o=Je,i=v(et),a=Xe,l=sh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,_=m.defaultProps,T=m.styles.base;p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.DialogBody";var P=w})(oj);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return w}});var r=d(X),n=d(pt),o=Je,i=d(et),a=Xe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var w=S})(ij);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return w.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=p(X),n=p(ot),o=wn,i=An,a=p(pt),l=p(Xn),s=Je,d=p(Sr),v=p(et),b=Xe,S=sh,w=nj,P=oj,y=ij;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function h(){return h=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,U;for(U=0;U=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,U=E.dismiss,q=E.animate,J=E.className,Q=E.children,W=_(E,["open","handler","size","dismiss","animate","className","children"]),Y=(0,b.useTheme)().dialog,re=Y.defaultProps,ne=Y.valid,se=Y.styles,ve=se.base,we=se.sizes;V=V??void 0,B=B??re.size,U=U??re.dismiss,q=q??re.animate,J=(0,s.twMerge)(re.className||"",J);var ce=(0,a.default)((0,v.default)(ve.backdrop)),ee=(0,s.twMerge)((0,a.default)((0,v.default)(ve.container),(0,v.default)(we[(0,d.default)(ne.sizes,B,"md")])),J),oe={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(oe,q),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Me=Ce.floating,Ie=Ce.context,Re=(0,o.useId)(),ye="".concat(Re,"-label"),ke="".concat(Re,"-description"),ze=(0,o.useInteractions)([(0,o.useClick)(Ie),(0,o.useRole)(Ie),(0,o.useDismiss)(Ie,U)]).getFloatingProps,Ye=(0,o.useMergeRefs)([A,Me]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Ie},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,h({},ze(m(c({},W),{ref:Ye,className:ee,"aria-labelledby":ye,"aria-describedby":ke})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:w.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(fL);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Hv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.icon,E=h.containerProps,A=h.labelProps,F=h.className,V=h.shrink,B=h.inputRef,U=w(h,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),q=(0,l.useTheme)().input,J=q.defaultProps,Q=q.valid,W=q.styles,Y=W.base,re=W.variants;c=c??J.variant,m=m??J.size,g=g??J.color,_=_??J.label,A=A??J.labelProps,E=E??J.containerProps,V=V??J.shrink,R=R??J.icon,F=(0,d.twMerge)(J.className||"",F);var ne=re[(0,i.default)(Q.variants,c,"outlined")],se=ne.sizes[(0,i.default)(Q.sizes,m,"md")],ve=(0,a.default)(ne.error.input),we=(0,a.default)(ne.success.input),ce=(0,a.default)(ne.shrink.input),ee=(0,a.default)(ne.colors.input[(0,i.default)(Q.colors,g,"gray")]),oe=(0,a.default)(ne.error.label),ue=(0,a.default)(ne.success.label),Se=(0,a.default)(ne.shrink.label),Ce=(0,a.default)(ne.colors.label[(0,i.default)(Q.colors,g,"gray")]),Me=(0,o.default)((0,a.default)(Y.container),(0,a.default)(se.container),E==null?void 0:E.className),Ie=(0,o.default)((0,a.default)(Y.input),(0,a.default)(ne.base.input),(0,a.default)(se.input),v({},(0,a.default)(ne.base.inputWithIcon),R),v({},ee,!T&&!k),v({},ve,T),v({},we,k),v({},ce,V),F),Re=(0,o.default)((0,a.default)(Y.label),(0,a.default)(ne.base.label),(0,a.default)(se.label),v({},Ce,!T&&!k),v({},oe,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),ye=(0,o.default)((0,a.default)(Y.icon),(0,a.default)(ne.base.icon),(0,a.default)(se.icon)),ke=(0,o.default)((0,a.default)(Y.asterisk));return r.default.createElement("div",b({},E,{ref:p,className:Me}),R&&r.default.createElement("div",{className:ye},R),r.default.createElement("input",b({},U,{ref:B,className:Ie,placeholder:(U==null?void 0:U.placeholder)||" "})),r.default.createElement("label",b({},A,{className:Re}),_," ",U.required?r.default.createElement("span",{className:ke},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(aj);var lj={},im={},yh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,b=r.default.bool,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(yh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(X),n=yh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(im);var sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{MenuCore:function(){return C},default:function(){return h}});var r=b(X),n=b(ot),o=wn,i=b(Xn),a=Xe,l=im,s=yh;function d(p,c){(c==null||c>p.length)&&(c=p.length);for(var g=0,m=new Array(c);g=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.useMenu)(),g=c.getReferenceProps,m=c.reference,_=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(s(v(s({},p),{ref:T,onClick:function(R){R.stopPropagation()}}),_&&{role:"menuitem"}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.MenuHandler";var P=w})(uj);var cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(X),n=wn,o=An,i=S(pt),a=Je,l=S(et),s=Xe,d=im,v=yh;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.children,g=h.className,m=w(h,["children","className"]),_=(0,s.useTheme)().menu,T=_.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,U=k.listItemsRef,q=k.getFloatingProps,J=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,Y=k.context,re=k.activeIndex,ne=k.tree,se=k.allowHover,ve=k.internalAllowHover,we=k.setActiveIndex,ce=k.nested;g=g??"";var ee=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),g),oe=(0,n.useMergeRefs)([p,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,b({},m,{ref:oe,style:{position:A,top:V??0,left:F??0},className:ee},q({onKeyDown:function(Me){Me.key==="Tab"&&(E(!1),Me.shiftKey&&Me.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Me){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,J({tabIndex:re===Me?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Re){U.current[Me]=Re},onClick:function(Re){if(Ce.props.onClick){var ye,ke;(ke=(ye=Ce.props).onClick)===null||ke===void 0||ke.call(ye,Re)}ne==null||ne.events.emit("click")},onMouseEnter:function(){(se&&R||ve&&R)&&we(Me)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:Y,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:Y,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(cj);var dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{MenuItem:function(){return w},default:function(){return P}});var r=v(X),n=v(pt),o=Je,i=v(et),a=Xe,l=yh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.className,p=h===void 0?"":h,c=y.disabled,g=c===void 0?!1:c,m=y.children,_=b(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),g)),p);return r.default.createElement("button",d({},_,{ref:C,role:"menuitem",className:R}),m)});w.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},w.displayName="MaterialTailwind.MenuItem";var P=w})(dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return b},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(X),n=wn,o=im,i=sj,a=uj,l=cj,s=dj;function d(){return d=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. + +More details: https://www.material-tailwind.com/docs/react/collapse + `);var R=r.default.useRef(null),E=(0,d.useTheme)().navbar,A=E.styles,F=A.base.mobileNav;g=g??{},m=m??"";var V=(0,l.twMerge)((0,a.default)((0,s.default)(F)),m),B={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=R.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},U=(0,i.default)(B,g),q=n.AnimatePresence,J=(0,o.useMergeRefs)([p,R]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(q,null,r.default.createElement(n.m.div,b({},T,{ref:J,className:V,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:U}),_)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(pj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Navbar:function(){return C},MobileNav:function(){return d.MobileNav},default:function(){return h}});var r=w(X),n=w(ot),o=w(pt),i=Je,a=w(Sr),l=w(et),s=Xe,d=pj,v=Jw;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.variant,m=p.color,_=p.shadow,T=p.blurred,k=p.fullWidth,R=p.className,E=p.children,A=P(p,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,U=F.styles,q=U.base,J=U.variants;g=g??V.variant,m=m??V.color,_=_??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(q.navbar.initial),(Q={},b(Q,(0,l.default)(q.navbar.shadow),_),b(Q,(0,l.default)(q.navbar.blurred),T&&m==="white"),b(Q,(0,l.default)(q.navbar.fullWidth),k),Q)),Y=(0,o.default)((0,l.default)(J[(0,a.default)(B.variants,g,"filled")][(0,a.default)(B.colors,m,"white")])),re=(0,i.twMerge)((0,o.default)(W,Y),R);return r.default.createElement("nav",S({},A,{ref:c,className:re}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var h=Object.assign(C,{MobileNav:d.MobileNav})})(fj);var hj={},I2={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return b},propTypesInteractive:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,b=r.default.node,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(X),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(I2);var gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{PopoverHandler:function(){return w},default:function(){return P}});var r=l(X),n=wn,o=I2,i=bh;function a(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.usePopover)(),g=c.getReferenceProps,m=c.reference,_=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(v(s({},p),{ref:_}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.PopoverHandler";var P=w})(gj);var vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{PopoverContent:function(){return c},default:function(){return g}});var r=w(X),n=wn,o=An,i=w(pt),a=Je,l=w(et),s=Xe,d=I2,v=bh;function b(m,_,T){return _ in m?Object.defineProperty(m,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[_]=T,m}function S(){return S=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function p(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,_){var T=m.children,k=m.className,R=h(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,U=V.strategy,q=V.x,J=V.y,Q=V.context,W=V.floating,Y=V.getFloatingProps,re=V.appliedAnimation,ne=V.labelId,se=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var ve=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),we=(0,n.useMergeRefs)([_,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},Y(C(P({},R),{ref:we,className:ve,style:{position:U,top:J??"",left:q??""},"aria-labelledby":ne,"aria-describedby":se})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:re}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var g=c})(vj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return p},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=w(X),n=w(ot),o=wn,i=w(Xn),a=Xe,l=I2,s=bh,d=gj,v=vj;function b(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.value,T=h.label,k=h.className,R=h.barProps,E=w(h,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,U=B.base,q=B.variants,J=B.sizes;c=c??F.variant,g=g??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(q[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"gray")]),W=(0,l.default)(J[(0,a.default)(V.sizes,m,"md")].container.initial),Y=(0,o.default)((0,l.default)(U.container.initial),W),re=(0,l.default)(J[(0,a.default)(V.sizes,m,"md")].container.withLabel),ne=(0,o.default)((0,l.default)(U.container.withLabel),re),se=(0,l.default)(J[(0,a.default)(V.sizes,m,"md")].bar),ve=(0,o.default)((0,l.default)(U.bar),se),we=(0,i.twMerge)((0,o.default)(Y,v({},ne,T)),k),ce=(0,i.twMerge)((0,o.default)(ve,Q),R==null?void 0:R.className);return r.default.createElement("div",b({},E,{ref:p,className:we}),r.default.createElement("div",b({},R,{className:ce,style:{width:"".concat(_,"%")}}),T&&"".concat(_,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(mj);var yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Radio:function(){return C},default:function(){return h}});var r=w(X),n=w(ot),o=w(dh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),U=(0,d.useTheme)().radio,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(J.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),ee=(0,i.default)((0,i.default)((0,s.default)(W.icon)),Y[(0,l.default)(J.colors,g,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||re,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:we,id:B.id||re})),r.default.createElement("span",{className:ee},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var h=C})(yj);var bj={},TT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,b){for(var S in b)Object.defineProperty(v,S,{enumerable:!0,get:b[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(X),n=An,o=Wv;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var b=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){b.current=v},[v]),b.current}var d=function(v){var b=v.value,S=v.children;return r.default.createElement(a.Provider,{value:b},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(TT);var wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=b(X),n=b(pt),o=Je,i=b(et),a=Xe,l=TT,s=Wv;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=function(C){var h=function(){Q(_),re(g),Y(!1),se(null)},p=function(Me){(Me.key==="Enter"||Me.key===" "&&!we.current.typing)&&(Me.preventDefault(),h())},c=C.value,g=c===void 0?"":c,m=C.index,_=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,U=B.base,q=(0,l.useSelect)(),J=q.selectedIndex,Q=q.setSelectedIndex,W=q.listRef,Y=q.setOpen,re=q.onChange,ne=q.activeIndex,se=q.setActiveIndex,ve=q.getItemProps,we=q.dataRef,ce=(0,i.default)(U.option.initial),ee=(0,i.default)(U.option.active),oe=(0,i.default)(U.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,ee,J===_),d(ue,oe,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[_]=Ce},className:Se,disabled:k,tabIndex:ne===_?0:1,"aria-selected":ne===_&&J===_,"data-selected":J===_},ve({onClick:function(Ce){var Me=F==null?void 0:F.onClick;typeof Me=="function"&&(Me(Ce),h()),h()},onKeyDown:function(Ce){var Me=F==null?void 0:F.onKeyDown;typeof Me=="function"&&(Me(Ce),p(Ce)),p(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(wj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,Y){for(var re in Y)Object.defineProperty(W,re,{enumerable:!0,get:Y[re]})}t(e,{Select:function(){return J},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=g(X),n=g(ot),o=wn,i=An,a=g(pt),l=Je,s=g(Xn),d=g(Sr),v=g(et),b=Xe,S=TT,w=Wv,P=wj;function y(W,Y){(Y==null||Y>W.length)&&(Y=W.length);for(var re=0,ne=new Array(Y);re=0)&&Object.prototype.propertyIsEnumerable.call(W,ne)&&(re[ne]=W[ne])}return re}function V(W,Y){if(W==null)return{};var re={},ne=Object.keys(W),se,ve;for(ve=0;ve=0)&&(re[se]=W[se]);return re}function B(W,Y){return C(W)||_(W,Y)||q(W,Y)||T()}function U(W){return h(W)||m(W)||q(W)||k()}function q(W,Y){if(W){if(typeof W=="string")return y(W,Y);var re=Object.prototype.toString.call(W).slice(8,-1);if(re==="Object"&&W.constructor&&(re=W.constructor.name),re==="Map"||re==="Set")return Array.from(re);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return y(W,Y)}}var J=r.default.forwardRef(function(W,Y){var re=W.variant,ne=W.color,se=W.size,ve=W.label,we=W.error,ce=W.success,ee=W.arrow,oe=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Me=W.dismiss,Ie=W.animate,Re=W.lockScroll,ye=W.labelProps,ke=W.menuProps,ze=W.className,Ye=W.disabled,Mt=W.name,gt=W.children,xt=W.containerProps,zt=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Ht,mt=(0,b.useTheme)().select,Ot=mt.defaultProps,Jt=mt.valid,Dr=mt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),nr=Ln[0],mo=Ln[1];re=re??Ot.variant,ne=ne??Ot.color,se=se??Ot.size,ve=ve??Ot.label,we=we??Ot.error,ce=ce??Ot.success,ee=ee??Ot.arrow,oe=oe??Ot.value,ue=ue??Ot.onChange,Se=Se??Ot.selected,Ce=Ce??Ot.offset,Me=Me??Ot.dismiss,Ie=Ie??Ot.animate,ye=ye??Ot.labelProps,ke=ke??Ot.menuProps;var Yt;xt=(Yt=(0,s.default)(xt,(Ot==null?void 0:Ot.containerProps)||{}))!==null&&Yt!==void 0?Yt:Ot.containerProps,ze=(0,l.twMerge)(Ot.className||"",ze),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(U((Qr=r.default.Children.map(gt,function(at){var rt=at.props;return rt==null?void 0:rt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(rt){var St=rt.rects,cn=rt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(St==null||(wo=St.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,ae=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(oe)+1))},[oe]);var pe=ga.floating,xe=(0,o.useInteractions)([(0,o.useClick)(ae),(0,o.useRole)(ae,{role:"listbox"}),(0,o.useDismiss)(ae,R({},Me)),(0,o.useListNavigation)(ae,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(ae,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Oe=xe.getReferenceProps,Ue=xe.getFloatingProps,Qe=xe.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=pe.current;if(Sn&&pa&&at){var rt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(rt&&Fi!=null){var St,cn,wr=(cn=(St=yo.current[Fi])===null||St===void 0?void 0:St.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=rt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Qe,dataRef:ae.dataRef}},[$r,ue,sn,Qe,ae.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&oe?"withValue":"close")},[Sn,oe,$r,Se]);var je=Qn[(0,d.default)(Jt.variants,re,"outlined")],Ze=je.sizes[(0,d.default)(Jt.sizes,se,"md")],$e=je.error.select,Ge=je.success.select,kt=je.colors.select[(0,d.default)(Jt.colors,ne,"gray")],Nt=je.error.label,Ut=je.success.label,bt=je.colors.label[(0,d.default)(Jt.colors,ne,"gray")],dr=je.states[nr],or=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Ze.container),xt==null?void 0:xt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(je.base.select),(0,v.default)(dr.select),(0,v.default)(Ze.select),p({},(0,v.default)(kt[nr]),!we&&!ce),p({},(0,v.default)($e.initial),we),p({},(0,v.default)($e.states[nr]),we),p({},(0,v.default)(Ge.initial),ce),p({},(0,v.default)(Ge.states[nr]),ce)),ze),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(je.base.label),(0,v.default)(dr.label),(0,v.default)(Ze.label.initial),(0,v.default)(Ze.label.states[nr]),p({},(0,v.default)(bt[nr]),!we&&!ce),p({},(0,v.default)(Nt.initial),we),p({},(0,v.default)(Nt.states[nr]),we),p({},(0,v.default)(Ut.initial),ce),p({},(0,v.default)(Ut.states[nr]),ce)),(Fr=ye.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),p({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=ke.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",re==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},At=(0,s.default)(Zr,Ie),He=i.AnimatePresence;r.default.useEffect(function(){oe&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[oe,ue]);var It=r.default.createElement(o.FloatingFocusManager,{context:ae,modal:!1},r.default.createElement(i.m.ul,c({},Ue(A(R({},ke),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(rt){var St=ke==null?void 0:ke.onPointerEnter;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onPointerMove:function(rt){var St=ke==null?void 0:ke.onPointerMove;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onKeyDown:function(rt){var St=ke==null?void 0:ke.onKeyDown;typeof St=="function"&&(St(rt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:At}),r.default.Children.map(gt,function(at,rt){var St;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((St=at.props)===null||St===void 0?void 0:St.index)||rt+1,id:"material-tailwind-select-".concat(rt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},xt,{ref:Y,className:or}),r.default.createElement("button",c({type:"button"},Oe(A(R({},zt),{ref:ga.setReference,className:Fn,disabled:Ye,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):oe&&!ue?r.default.createElement("span",{className:un},oe):r.default.createElement("span",c({},(Ht=gt[$r-1])===null||Ht===void 0?void 0:Ht.props,{className:un})),r.default.createElement("div",{className:Zn},ee??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},ye,{className:jn}),ve),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(He,null,Sn&&r.default.createElement(r.default.Fragment,null,Re?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},It):It)))))});J.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),size:n.default.oneOf(w.propTypesSize),label:w.propTypesLabel,error:w.propTypesError,success:w.propTypesSuccess,arrow:w.propTypesArrow,value:w.propTypesValue,onChange:w.propTypesOnChange,selected:w.propTypesSelected,offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,lockScroll:w.propTypesLockScroll,labelProps:w.propTypesLabelProps,menuProps:w.propTypesMenuProps,className:w.propTypesClassName,disabled:w.propTypesDisabled,name:w.propTypesName,children:w.propTypesChildren,containerProps:w.propTypesContainerProps},J.displayName="MaterialTailwind.Select";var Q=Object.assign(J,{Option:P.SelectOption})})(bj);var _j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Switch:function(){return C},default:function(){return h}});var r=w(X),n=w(ot),o=w(dh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.ripple,T=p.className,k=p.disabled,R=p.containerProps,E=p.circleProps,A=p.labelProps,F=p.inputRef,V=P(p,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),U=B.switch,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.colors,re=r.default.useId();g=g??q.color,_=_??q.ripple,k=k??q.disabled,R=R??q.containerProps,A=A??q.labelProps,E=E??q.circleProps,T=(0,a.twMerge)(q.className||"",T);var ne=_!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),k)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(J.colors,g,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),Y[(0,l.default)(J.colors,g,"gray")].circle,Y[(0,l.default)(J.colors,g,"gray")].before),E==null?void 0:E.className),ee=(0,i.default)((0,s.default)(W.ripple)),oe=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("div",S({},R,{className:ve}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||re,className:we})),r.default.createElement("label",S({},E,{htmlFor:V.id||re,className:ce}),_&&r.default.createElement("div",{className:ee,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return _&&ne.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||re,className:oe}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var h=C})(_j);var xj={},wh={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return b},propTypesChildren:function(){return S}});var r=o(ot),n=br;function o(w){return w&&w.__esModule?w:{default:w}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),b=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return h},TabsContextProvider:function(){return p},setId:function(){return c},setActive:function(){return g},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(X),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.value,g=h.className,m=h.activeClassName,_=h.disabled,T=h.children,k=w(h,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,U=V.dispatch,q=B.id,J=B.active,Q=B.indicatorProps;_=_??A.disabled,g=(0,i.twMerge)(A.className||"",g),m=(0,i.twMerge)(A.activeClassName||"",m);var W,Y=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),_),v(W,m,J===c),W)),g),re,ne=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(re=Q==null?void 0:Q.className)!==null&&re!==void 0?re:"");return r.default.createElement("li",b({},k,{ref:p,role:"tab",className:Y,onClick:function(se){var ve=k==null?void 0:k.onClick;typeof ve=="function"&&((0,s.setActive)(U,c),(0,s.setIsInitial)(U,!1),ve(se)),(0,s.setIsInitial)(U,!1),(0,s.setActive)(U,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),J===c&&r.default.createElement(n.motion.div,b({},Q,{transition:{duration:.5},className:ne,layoutId:q})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(Sj);var Cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(X),n=An,o=S(Xn),i=S(pt),a=Je,l=S(et),s=Xe,d=wh,v=kd;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.animate,g=h.className,m=h.children,_=w(h,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,g=(0,a.twMerge)(k.className||"",g);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),g),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",b({},_,{ref:p,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=b(X),n=b(pt),o=Je,i=b(et),a=Xe,l=wh,s=kd;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.indicatorProps,c=C.className,g=C.children,m=S(C,["indicatorProps","className","children"]),_=(0,a.useTheme)().tabsHeader,T=_.defaultProps,k=_.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,p)},[A,p]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:h,role:"tablist",className:V}),g))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Pj);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=b(X),n=An,o=b(pt),i=Je,a=b(et),l=Xe,s=wh,d=kd;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.value,c=C.className,g=C.children,m=S(C,["value","className","children"]),_=(0,l.useTheme)().tabPanel,T=_.defaultProps,k=_.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:h,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===p?"mount":F?"initial":"unmount",variants:A,"data-value":p}),g)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Tj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return p},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return b.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(X),n=y(pt),o=Je,i=y(et),a=Xe,l=wh,s=Sj,d=Cj,v=Pj,b=Tj,S=kd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.value,T=g.className,k=g.orientation,R=g.children,E=C(g,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var U=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),w({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:_,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:U}),R))});p.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},p.displayName="MaterialTailwind.Tabs";var c=Object.assign(p,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:b.TabPanel})})(xj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Hv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.resize,E=h.labelProps,A=h.containerProps,F=h.shrink,V=h.className,B=w(h,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),U=(0,l.useTheme)().textarea,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.variants;c=c??q.variant,m=m??q.size,g=g??q.color,_=_??q.label,E=E??q.labelProps,A=A??q.containerProps,F=F??q.shrink,V=(0,d.twMerge)(q.className||"",V);var re=Y[(0,i.default)(J.variants,c,"outlined")],ne=(0,a.default)(re.error.textarea),se=(0,a.default)(re.success.textarea),ve=(0,a.default)(re.shrink.textarea),we=(0,a.default)(re.colors.textarea[(0,i.default)(J.colors,g,"gray")]),ce=(0,a.default)(re.error.label),ee=(0,a.default)(re.success.label),oe=(0,a.default)(re.shrink.label),ue=(0,a.default)(re.colors.label[(0,i.default)(J.colors,g,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(re.base.textarea),(0,a.default)(re.sizes[(0,i.default)(J.sizes,m,"md")].textarea),v({},we,!T&&!k),v({},ne,T),v({},se,k),v({},ve,F),R?"":"!resize-none",V),Me=(0,o.default)((0,a.default)(W.label),(0,a.default)(re.base.label),(0,a.default)(re.sizes[(0,i.default)(J.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},ee,k),v({},oe,F),E==null?void 0:E.className),Ie=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:p,className:Se},r.default.createElement("textarea",b({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Me},_," ",B.required?r.default.createElement("span",{className:Ie},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(Oj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(X),n=C(ot),o=wn,i=An,a=C(pt),l=Je,s=C(Xn),d=C(et),v=Xe,b=bh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,U=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,U)&&(B[U]=F[U])}return B}function T(F,V){if(F==null)return{};var B={},U=Object.keys(F),q,J;for(J=0;J=0)&&(B[q]=F[q]);return B}function k(F,V){return w(F)||h(F,V)||R(F,V)||p()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,U=F.handler,q=F.content,J=F.interactive,Q=F.placement,W=F.offset,Y=F.dismiss,re=F.animate,ne=F.className,se=F.children,ve=_(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),we=(0,v.useTheme)().tooltip,ce=we.defaultProps,ee=we.styles.base,oe=k(r.default.useState(!1),2),ue=oe[0],Se=oe[1];B=B??ue,U=U??Se,J=J??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,Y=Y??ce.dismiss,re=re??ce.animate,ne=(0,l.twMerge)(ce.className||"",ne);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(ee)),ne),Me={unmount:{opacity:0},mount:{opacity:1}},Ie=(0,s.default)(Me,re),Re=(0,o.useFloating)({open:B,onOpenChange:U,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),ye=Re.x,ke=Re.y,ze=Re.reference,Ye=Re.floating,Mt=Re.strategy,gt=Re.refs,xt=Re.update,zt=Re.context,Ht=(0,o.useInteractions)([(0,o.useClick)(zt,{enabled:J}),(0,o.useFocus)(zt),(0,o.useHover)(zt),(0,o.useRole)(zt,{role:"tooltip"}),(0,o.useDismiss)(zt,Y)]),mt=Ht.getReferenceProps,Ot=Ht.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,xt)},[B,xt,gt.reference,gt.floating]);var Jt=(0,o.useMergeRefs)([V,Ye]),Dr=(0,o.useMergeRefs)([V,ze]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof se=="string"?r.default.createElement("span",y({},mt({ref:Dr})),se):r.default.cloneElement(se,c({},mt(m(c({},se==null?void 0:se.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Ot(m(c({},ve),{ref:Jt,className:Ce,style:{position:Mt,top:ke??"",left:ye??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:Ie}),q)))))});E.propTypes={open:b.propTypesOpen,handler:b.propTypesHandler,content:b.propTypesContent,interactive:b.propTypesInteractive,placement:n.default.oneOf(b.propTypesPlacement),offset:b.propTypesOffset,dismiss:b.propTypesDismiss,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(kj);var Ej={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Typography:function(){return h},default:function(){return p}});var r=b(X),n=b(ot),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=UP;function v(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function b(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,U=F.styles,q=U.variants,J=U.colors,Q=U.textGradient;m=m??V.variant,_=_??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(q[(0,a.default)(B.variants,m,"paragraph")]),Y=J[(0,a.default)(B.colors,_,"inherit")],re=(0,l.default)(Q),ne=(0,i.twMerge)((0,o.default)(W,v({},Y.color,!T),v({},re,T),v({},Y.gradient,T)),R),se;switch(m){case"h1":se=r.default.createElement(k||"h1",P(S({},A),{ref:g,className:ne}),E);break;case"h2":se=r.default.createElement(k||"h2",P(S({},A),{ref:g,className:ne}),E);break;case"h3":se=r.default.createElement(k||"h3",P(S({},A),{ref:g,className:ne}),E);break;case"h4":se=r.default.createElement(k||"h4",P(S({},A),{ref:g,className:ne}),E);break;case"h5":se=r.default.createElement(k||"h5",P(S({},A),{ref:g,className:ne}),E);break;case"h6":se=r.default.createElement(k||"h6",P(S({},A),{ref:g,className:ne}),E);break;case"lead":se=r.default.createElement(k||"p",P(S({},A),{ref:g,className:ne}),E);break;case"paragraph":se=r.default.createElement(k||"p",P(S({},A),{ref:g,className:ne}),E);break;case"small":se=r.default.createElement(k||"p",P(S({},A),{ref:g,className:ne}),E);break;default:se=r.default.createElement(k||"p",P(S({},A),{ref:g,className:ne}),E);break}return se});h.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},h.displayName="MaterialTailwind.Typography";var p=h})(Ej);var Mj={},Rj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(ot),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Rj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(X),n=An,o=wn,i=S(Xn),a=S(pt),l=Je,s=S(et),d=Xe,v=Rj;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;g=g??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,g),U=n.AnimatePresence,q=(0,o.useMergeRefs)([p,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(U,null,r.default.createElement(n.m.div,b({},T,{ref:q,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Mj);var Nj={},am={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(am);var Aj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return w}});var r=d(X),n=Xe,o=d(pt),i=Je,a=d(et),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemPrefix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var w=S})(OT);var kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return w}});var r=d(X),n=Xe,o=d(pt),i=Je,a=d(et),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemSuffix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var w=S})(kT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return h}});var r=w(X),n=Xe,o=w(dh),i=w(pt),a=Je,l=w(et),s=am,d=OT,v=kT;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.disabled,_=p.selected,T=p.ripple,k=p.children,R=P(p,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,U=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},b(B,(0,l.default)(F.item.disabled),m),b(B,(0,l.default)(F.item.selected),_&&!m),B)),g);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:U,onMouseDown:function(q){var J=R==null?void 0:R.onMouseDown;return T&&V.create(q,"dark"),typeof J=="function"&&J(q)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var h=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Aj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(X),n=Xe,o=S(pt),i=Je,a=S(et),l=am,s=Aj,d=OT,v=kT;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,n.useTheme)().list,T=_.defaultProps,k=_.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",b({},m,{ref:p,className:R}),g)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Nj);var Ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=_d;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.fullWidth,T=h.ripple,k=h.className,R=h.children,E=w(h,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,U=V.base,q=V.dividerColor;c=c??F.variant,g=g??F.size,m=m??F.color,T=T??F.ripple,_=_??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var J,Q=(0,i.twMerge)((0,o.default)((0,l.default)(U.initial),(J={},v(J,(0,l.default)(U.fullWidth),_),v(J,"divide-x",c!=="outlined"),v(J,(0,l.default)(q[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),J)),k);return r.default.createElement("div",b({},E,{ref:p,className:Q}),r.default.Children.map(R,function(W,Y){var re;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:g,color:m,ripple:T,fullWidth:_,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":Y!==r.default.Children.count(R)-1,"border-r-0":Y!==r.default.Children.count(R)-1,"rounded-l-none":Y!==0}),(re=W.props)===null||re===void 0?void 0:re.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Ij);var Lj={},Dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return b},propTypesChildren:function(){return S},propTypesSlideRef:function(){return w}});var r=n(ot);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,b=r.default.bool,S=r.default.node.isRequired,w=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,T){for(var k in T)Object.defineProperty(_,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return g},default:function(){return m}});var r=w(X),n=An,o=wn,i=w(pt),a=Je,l=w(et),s=Xe,d=Dj;function v(_,T){(T==null||T>_.length)&&(T=_.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(k[R]=_[R])}return k}function h(_,T){if(_==null)return{};var k={},R=Object.keys(_),E,A;for(A=0;A=0)&&(k[E]=_[E]);return k}function p(_,T){return b(_)||P(_,T)||c(_,T)||y()}function c(_,T){if(_){if(typeof _=="string")return v(_,T);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(_,T)}}var g=r.default.forwardRef(function(_,T){var k=_.children,R=_.prevArrow,E=_.nextArrow,A=_.navigation,F=_.autoplay,V=_.autoplayDelay,B=_.transition,U=_.loop,q=_.className,J=_.slideRef,Q=C(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,Y=W.defaultProps,re=W.styles.base,ne=(0,n.useMotionValue)(0),se=r.default.useRef(null),ve=p(r.default.useState(0),2),we=ve[0],ce=ve[1],ee=r.default.Children.toArray(k);R=R??Y.prevArrow,E=E??Y.nextArrow,A=A??Y.navigation,F=F??Y.autoplay,V=V??Y.autoplayDelay,B=B??Y.transition,U=U??Y.loop,q=(0,a.twMerge)(Y.className||"",q);var oe=(0,a.twMerge)((0,i.default)((0,l.default)(re.carousel)),q),ue=(0,a.twMerge)((0,i.default)((0,l.default)(re.slide))),Se=r.default.useCallback(function(){var Re;return-we*(((Re=se.current)===null||Re===void 0?void 0:Re.clientWidth)||0)},[we]),Ce=r.default.useCallback(function(){var Re=U?0:we;ce(we+1===ee.length?Re:we+1)},[we,U,ee.length]),Me=function(){var Re=U?ee.length-1:0;ce(we-1<0?Re:we-1)};r.default.useEffect(function(){var Re=(0,n.animate)(ne,Se(),B);return Re.stop},[Se,we,ne,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(ne,Se(),B)})},[Se,B,ne]),r.default.useEffect(function(){if(F){var Re=setInterval(function(){return Ce()},V);return function(){return clearInterval(Re)}}},[F,Ce,V]);var Ie=(0,o.useMergeRefs)([se,T]);return r.default.createElement("div",S({},Q,{ref:Ie,className:oe}),ee.map(function(Re,ye){return r.default.createElement(n.LazyMotion,{key:ye,features:n.domAnimation},r.default.createElement(n.m.div,{ref:J,className:ue,style:{x:ne,left:"".concat(ye*100,"%"),right:"".concat(ye*100,"%")}},Re))}),R&&R({loop:U,handlePrev:Me,activeIndex:we,firstIndex:we===0}),E&&E({loop:U,handleNext:Ce,activeIndex:we,lastIndex:we===ee.length-1}),A&&A({setActiveIndex:ce,activeIndex:we,length:ee.length}))});g.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},g.displayName="MaterialTailwind.Carousel";var m=g})(Lj);var Fj={},jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return b},propTypesOnClose:function(){return S},propTypesDismiss:function(){return w},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,b=r.default.string,S=r.default.func,w=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(jj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return p},default:function(){return c}});var r=P(X),n=P(ot),o=An,i=wn,a=P(Xn),l=P(pt),s=Je,d=P(et),v=Xe,b=jj;function S(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function w(){return w=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.open,T=g.size,k=g.overlay,R=g.children,E=g.placement,A=g.overlayProps,F=g.className,V=g.onClose,B=g.dismiss,U=g.transition,q=g.overlayRef,J=C(g,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,Y=Q.styles.base,re=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var ne;B=(ne=(0,a.default)(W.dismiss,B||{}))!==null&&ne!==void 0?ne:W.dismiss,U=U??W.transition,F=(0,s.twMerge)(W.className||"",F);var se=(0,s.twMerge)((0,l.default)((0,d.default)(Y.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),ve=(0,s.twMerge)((0,l.default)((0,d.default)(Y.overlay)),A==null?void 0:A.className),we=(0,i.useFloating)({open:_,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(we,B)]).getFloatingProps;r.default.useEffect(function(){re.start(_?"open":"close")},[_,re,E]);var ee={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},oe={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:q,className:ve,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:oe,transition:{duration:.3}})),r.default.createElement(o.m.div,w({},ce(y({ref:m},J)),{className:se,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:re,variants:ee,transition:U}),R)))});p.propTypes={open:b.propTypesOpen,size:b.propTypesSize,overlay:b.propTypesOverlay,children:b.propTypesChildren,placement:n.default.oneOf(b.propTypesPlacement),overlayProps:b.propTypesOverlayProps,className:b.propTypesClassName,onClose:b.propTypesOnClose,dismiss:b.propTypesDismiss,transition:b.propTypesTransition,overlayRef:b.propTypesOverlayRef},p.displayName="MaterialTailwind.Drawer";var c=p})(Fj);var zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Badge:function(){return C},default:function(){return h}});var r=w(X),n=w(ot),o=w(Xn),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=HP;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.invisible,_=p.withBorder,T=p.overlap,k=p.placement,R=p.className,E=p.content,A=p.children,F=p.containerProps,V=p.containerRef,B=P(p,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),U=(0,d.useTheme)().badge,q=U.valid,J=U.defaultProps,Q=U.styles,W=Q.base,Y=Q.placements,re=Q.colors;g=g??J.color,m=m??J.invisible,_=_??J.withBorder,T=T??J.overlap,k=k??J.placement,R=(0,a.twMerge)(J.className||"",R);var ne;F=(ne=(0,o.default)(F,J.containerProps||{}))!==null&&ne!==void 0?ne:J.containerProps;var se=(0,s.default)(W.badge.initial),ve=(0,s.default)(W.badge.withBorder),we=(0,s.default)(W.badge.withContent),ce=(0,s.default)(re[(0,l.default)(q.colors,g,"red")]),ee=(0,s.default)(Y[(0,l.default)(q.placements,k,"top-end")][(0,l.default)(q.overlaps,T,"square")]),oe,ue=(0,a.twMerge)((0,i.default)(se,ee,ce,(oe={},b(oe,ve,_),b(oe,we,E),oe)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var h=C})(zj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(X),n=P(ot),o=P(pt),i=Je,a=P(Sr),l=P(et),s=Xe,d=WP;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function g(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,U;for(U=0;U=0)&&(F[B]=E[B]);return F}function m(E,A){return b(E)||C(E,A)||T(E,A)||h()}function _(E){return S(E)||y(E)||T(E)||p()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,U=E.unratedIcon,q=E.ratedColor,J=E.unratedColor,Q=E.className,W=E.onChange,Y=E.readonly,re=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),ne,se,ve=(0,s.useTheme)().rating,we=ve.valid,ce=ve.defaultProps,ee=ve.styles,oe=ee.base,ue=ee.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,U=U??ce.unratedIcon,q=q??ce.ratedColor,J=J??ce.unratedColor,W=W??ce.onChange,Y=Y??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return _(Array(V).fill("rated")).concat(_(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Me=Se[1],Ie=m(r.default.useState(function(){return _(Array(F).fill("un_rated"))}),2),Re=Ie[0],ye=Ie[1],ke=m(r.default.useState(!1),2),ze=ke[0],Ye=ke[1],Mt=(0,l.default)(ue[(0,a.default)(we.colors,q,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(we.colors,J,"blue-gray")]),xt=(0,i.twMerge)((0,o.default)((0,l.default)(oe.rating),Q)),zt=(0,l.default)(oe.icon),Ht=B,mt=U,Ot=r.default.isValidElement(B)&&r.default.cloneElement(Ht,{className:(0,i.twMerge)((0,o.default)(zt,Mt,Ht==null||(ne=Ht.props)===null||ne===void 0?void 0:ne.className))}),Jt=r.default.isValidElement(B)&&r.default.cloneElement(mt,{className:(0,i.twMerge)((0,o.default)(zt,gt,mt==null||(se=mt.props)===null||se===void 0?void 0:se.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(zt,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(U,{className:(0,i.twMerge)((0,o.default)(zt,gt))}),Qn=function(Ln){return Ln.map(function(nr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!Y){var Yt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Me(Yt),W&&typeof W=="function"&&W(Yt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!Y){var Yt=Re.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Ye(!0),ye(Yt)}},onMouseLeave:function(){return!Y&&Ye(!1)}},r.default.isValidElement(nr==="rated"?B:U)?nr==="rated"?Ot:Jt:nr==="rated"?Dr:ln)})};return r.default.createElement("div",w({},re,{ref:A,className:xt}),Qn(ze?Re:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(Vj);var Bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=P(X),n=P(ot),o=P(Xn),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=$P;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,U=T.value,q=T.defaultValue,J=T.onChange,Q=T.min,W=T.max,Y=T.step,re=T.inputRef,ne=T.inputProps,se=h(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),ve=(0,d.useTheme)().slider,we=ve.valid,ce=ve.defaultProps,ee=ve.styles,oe=ee.base,ue=ee.sizes,Se=ee.colors,Ce=c(r.default.useState(q||0),2),Me=Ce[0],Ie=Ce[1];r.default.useMemo(function(){q&&Ie(q)},[q]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,Y=Y??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Re;V=(Re=(0,i.default)(ce.thumbClassName,V))!==null&&Re!==void 0?Re:ce.thumbClassName;var ye;F=(ye=(0,i.default)(ce.trackClassName,F))!==null&&ye!==void 0?ye:ce.trackClassName;var ke;B=(ke=(0,i.default)(ce.barClassName,B))!==null&&ke!==void 0?ke:ce.barClassName;var ze;ne=(ze=(0,o.default)(ne,(ce==null?void 0:ce.inputProps)||{}))!==null&&ze!==void 0?ze:ce.inputProps;var Ye=(0,a.twMerge)((0,i.default)((0,s.default)(oe.container),(0,s.default)(Se[(0,l.default)(we.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(oe.bar),B)),gt=(0,i.default)((0,s.default)(oe.track),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].track)),xt=(0,i.default)((0,s.default)(oe.thumb),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].thumb)),zt=(0,i.default)((0,s.default)(oe.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(xt,V));return r.default.createElement("div",w({},se,{ref:k,className:Ye}),r.default.createElement("label",{className:Mt,style:{width:"".concat(U||Me,"%")}}),r.default.createElement("input",w({ref:re,type:"range",max:W,min:Q,step:Y,className:zt},U?{value:U}:null,{defaultValue:q,onChange:function(Ht){return J?J(Ht):Ie(Number(Ht.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(Bj);var Uj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{useTimelineItem:function(){return p},TimelineItem:function(){return c},default:function(){return g}});var r=v(X),n=Je,o=v(et),i=Xe,a=bs;function l(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function s(m){if(Array.isArray(m))return m}function d(){return d=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,_){return s(m)||b(m,_)||C(m,_)||S()}function C(m,_){if(m){if(typeof m=="string")return l(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,_)}}var h=r.default.createContext(0);h.displayName="MaterialTailwind.TimelineItemContext";function p(){var m=r.default.useContext(h);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,_){var T=m.className,k=m.children,R=w(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],U=V[1],q=r.default.useMemo(function(){return[B,U]},[B,U]),J=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(h.Provider,{value:q},r.default.createElement("li",d({ref:_},R,{className:J}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var g=c})(lm);var Hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=P(X),n=P(ot),o=wn,i=Je,a=P(Sr),l=P(et),s=Xe,d=lm,v=bs;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=h(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,U=B.styles,q=B.valid,J=U.base,Q=U.variants,W=c((0,d.useTimelineItem)(),2),Y=W[1],re=r.default.useRef(null),ne=(0,o.useMergeRefs)([k,re]);r.default.useEffect(function(){var we=re.current;if(we){var ce=we.getBoundingClientRect().width;return Y(ce),function(){Y(0)}}},[Y,A,F]);var se=(0,l.default)(Q[(0,a.default)(q.variants,E,"filled")][(0,a.default)(q.colors,R,"gray")]),ve=(0,i.twMerge)((0,l.default)(J),se,A);return r.default.createElement("span",w({ref:ne},V,{className:ve}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(Hj);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return p},default:function(){return c}});var r=b(X),n=Je,o=b(et),i=Xe,a=lm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),_);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var c=p})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return b},default:function(){return S}});var r=s(X),n=Je,o=s(et),i=Xe,a=bs;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,i.useTheme)().timelineHeader,c=p.styles,g=c.base,m=(0,n.twMerge)((0,o.default)(g),y);return r.default.createElement("div",l({},h,{ref:P,className:m}),C)});b.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},b.displayName="MaterialTailwind.TimelineHeader";var S=b})($j);var Gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return p},default:function(){return c}});var r=b(X),n=Je,o=b(et),i=Xe,a=lm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],U=(0,o.default)(F.line),q=(0,n.twMerge)((0,o.default)(F.container),_);return r.default.createElement("span",v({},k,{ref:m,className:q,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(U,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:U}))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineConnector";var c=p})(Gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return b.default},default:function(){return h}});var r=w(X),n=Je,o=w(et),i=Xe,a=bs,l=w(lm),s=w(Hj),d=w(Wj),v=w($j),b=w(Gj);function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.children,_=P(p,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),g);return r.default.createElement("ul",S({ref:c},_,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var h=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:b.default})})(Uj);var Kj={},qj={},ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return b},default:function(){return S}});var r=s(X),n=Je,o=s(et),i=Xe,a=ET;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className;w.activeClassName,w.completedClassName;var C=w.children,h=d(w,["className","activeClassName","completedClassName","children"]),p=(0,i.useTheme)().step,c=p.styles.base,g=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},h,{ref:P,className:g}),C)});b.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},b.displayName="MaterialTailwind.Step";var S=b})(qj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=w(X),n=wn,o=Je,i=w(et),a=Xe,l=w(qj),s=ET;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function g(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||_(R,E)||y()}function _(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,U=R.lineClassName,q=R.activeLineClassName,J=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),Y=W.stepper,re=W.step,ne=Y.styles.base,se=re.styles,ve=se.base,we=r.default.useRef(null),ce=m(r.default.useState(0),2),ee=ce[0],oe=ce[1],ue=A===0,Se=Array.isArray(J)&&A===J.length-1,Ce=Array.isArray(J)&&A>J.length-1;r.default.useEffect(function(){if(we.current){var Ye=J,Mt=we.current.getBoundingClientRect().width,gt=Mt/(Ye.length-1);oe(gt)}},[J]);var Me=r.default.useMemo(function(){if(!Ce)return ee*A},[A,Ce,ee]);(0,n.useMergeRefs)([E,we]);var Ie=(0,o.twMerge)((0,i.default)(ne.stepper),B),Re=(0,o.twMerge)((0,i.default)(ne.line.initial),U),ye=(0,o.twMerge)(Re,(0,i.default)(ne.line.active),q),ke=(0,i.default)(ve.active),ze=(0,i.default)(ve.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:we,className:Ie}),r.default.createElement("div",{className:Re}),r.default.createElement("div",{className:ye,style:{width:"".concat(Me,"px")}}),Array.isArray(J)?J.map(function(Ye,Mt){var gt,xt;return r.default.cloneElement(Ye,p(C({key:Mt},Ye.props),{className:(0,o.twMerge)(Ye.props.className,Mt===A?(0,o.twMerge)(ke,(gt=Ye.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=S(C,["children"]),g,m=(0,o.useSpeedDial)(),_=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([h,T.setReference]);return r.default.cloneElement(p,d({},_(b(d({},c),{ref:k,className:(0,i.twMerge)(p==null||(g=p.props)===null||g===void 0?void 0:g.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Rx)),Rx}var Nx={},Q8;function LJ(){return Q8||(Q8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=b(X),n=An,o=wn,i=MT(),a=Xe,l=Je,s=b(et),d=sm;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=C.className,g=S(C,["children","className"]),m=(0,a.useTheme)(),_=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,U=(0,o.useMergeRefs)([h,E.setFloating]),q=(0,l.twMerge)((0,s.default)(_),c),J=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(J,null,A&&r.default.createElement("div",v({},g,{ref:U,className:q,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(p,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Nx)),Nx}var Yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return b},default:function(){return S}});var r=s(X),n=Xe,o=Je,i=s(et),a=sm;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,n.useTheme)(),c=p.speedDialAction.styles,g=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},h,{ref:P,className:g}),C)});b.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},b.displayName="SpeedDialAction";var S=b})(Yj);var Z8;function MT(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{SpeedDialContext:function(){return h},useSpeedDial:function(){return p},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return g}});var r=S(X),n=wn,o=Xe,i=S(Xn),a=sm,l=S(IJ()),s=S(LJ()),d=S(Yj);function v(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function b(m){if(Array.isArray(m))return m}function S(m){return m&&m.__esModule?m:{default:m}}function w(m,_){var T=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(T!=null){var k=[],R=!0,E=!1,A,F;try{for(T=T.call(m);!(R=(A=T.next()).done)&&(k.push(A.value),!(_&&k.length===_));R=!0);}catch(V){E=!0,F=V}finally{try{!R&&T.return!=null&&T.return()}finally{if(E)throw F}}return k}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(m,_){return b(m)||w(m,_)||C(m,_)||P()}function C(m,_){if(m){if(typeof m=="string")return v(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return v(m,_)}}var h=r.default.createContext(null);function p(){var m=r.default.useContext(h);if(!m)throw new Error("useSpeedDial must be used within a .");return m}function c(m){var _=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,U=y(r.default.useState(!1),2),q=U[0],J=U[1];_=_??q,T=T??J,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),Y=(0,n.useFloatingNodeId)(),re=(0,n.useFloating)({open:_,nodeId:Y,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),ne=re.x,se=re.y,ve=re.strategy,we=re.refs,ce=re.context,ee=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),oe=ee.getReferenceProps,ue=ee.getFloatingProps,Se=r.default.useMemo(function(){return{x:ne,y:se,strategy:ve,refs:we,open:_,context:ce,getReferenceProps:oe,getFloatingProps:ue,animation:W}},[ce,ue,oe,we,ve,ne,se,_,W]);return r.default.createElement(h.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:Y},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var g=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Mx)),Mx}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(JR,e),t(tL,e),t(rL,e),t(nL,e),t(iL,e),t(aL,e),t(cL,e),t(dL,e),t(fL,e),t(f2,e),t(aj,e),t(lj,e),t(fj,e),t(hj,e),t(mj,e),t(yj,e),t(bj,e),t(_j,e),t(xj,e),t(Oj,e),t(kj,e),t(Ej,e),t(Mj,e),t(Nj,e),t(Ij,e),t(Lj,e),t(Fj,e),t(zj,e),t(Vj,e),t(Bj,e),t(b3,e),t(Uj,e),t(Kj,e),t(MT(),e),t(Xe,e),t(RP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(QW);function DJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var RT={exports:{}},L2={},ww={},Tt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof sO<"u"?sO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Tt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Tt;class r{constructor(g=[1,0,0,1,0,0]){this.dirty=!1,this.m=g&&g.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(g){g.m[0]=this.m[0],g.m[1]=this.m[1],g.m[2]=this.m[2],g.m[3]=this.m[3],g.m[4]=this.m[4],g.m[5]=this.m[5]}point(g){const m=this.m;return{x:m[0]*g.x+m[2]*g.y+m[4],y:m[1]*g.x+m[3]*g.y+m[5]}}translate(g,m){return this.m[4]+=this.m[0]*g+this.m[2]*m,this.m[5]+=this.m[1]*g+this.m[3]*m,this}scale(g,m){return this.m[0]*=g,this.m[1]*=g,this.m[2]*=m,this.m[3]*=m,this}rotate(g){const m=Math.cos(g),_=Math.sin(g),T=this.m[0]*m+this.m[2]*_,k=this.m[1]*m+this.m[3]*_,R=this.m[0]*-_+this.m[2]*m,E=this.m[1]*-_+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(g,m){const _=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*g,R=this.m[3]+this.m[1]*g;return this.m[0]=_,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(g){const m=this.m[0]*g.m[0]+this.m[2]*g.m[1],_=this.m[1]*g.m[0]+this.m[3]*g.m[1],T=this.m[0]*g.m[2]+this.m[2]*g.m[3],k=this.m[1]*g.m[2]+this.m[3]*g.m[3],R=this.m[0]*g.m[4]+this.m[2]*g.m[5]+this.m[4],E=this.m[1]*g.m[4]+this.m[3]*g.m[5]+this.m[5];return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const g=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*g,_=-this.m[1]*g,T=-this.m[2]*g,k=this.m[0]*g,R=g*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=g*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const g=this.m[0],m=this.m[1],_=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=g*T-m*_,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(g!=0||m!=0){const F=Math.sqrt(g*g+m*m);A.rotation=m>0?Math.acos(g/F):-Math.acos(g/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(g*_+m*T)/E,A.skewY=0}else if(_!=0||T!=0){const F=Math.sqrt(_*_+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-_/F):-Math.acos(_/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(g*_+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",b="0",S="Konva warning: ",w="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let h=[];const p=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const g=c[0];return g==="#"||g==="."||g===g.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){h.push(c),h.length===1&&p(function(){const g=h;h=[],g.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,g){const m=e.Util.createImageElement();m.onload=function(){g(m)},m.src=c},_rgbToHex(c,g,m){return((1<<24)+(c<<16)+(g<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const g=parseInt(c,16);return{r:g>>16&255,g:g>>8&255,b:g&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=b+c;return d+c},getRGB(c){let g;return c in y?(g=y[c],{r:g[0],g:g[1],b:g[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(g=C.exec(c.replace(/ /g,"")),{r:parseInt(g[1],10),g:parseInt(g[2],10),b:parseInt(g[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const g=y[c.toLowerCase()];return g?{r:g[0],g:g[1],b:g[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const g=c.split(/ *, */).map(Number);return{r:g[0],g:g[1],b:g[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const g=c.split(/ *, */).map((m,_)=>m.slice(-1)==="%"?_===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:g[0],g:g[1],b:g[2],a:g[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[g,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),_=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=_+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,g){return!(g.x>c.x+c.width||g.x+g.widthc.y+c.height||g.y+g.height1?(R=m,E=_,A=(m-T)*(m-T)+(_-k)*(_-k)):(R=c+V*(m-c),E=g+V*(_-g),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,g,m){const _=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return g.forEach(function(k,R){if(!m&&R===g.length-1)return;const E=g[(R+1)%g.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bg.length){const R=g;g=c,c=R}for(let R=0;R{g.width=0,g.height=0})},drawRoundedRectPath(c,g,m,_){let T=0,k=0,R=0,E=0;typeof _=="number"?T=k=R=E=Math.min(_,g/2,m/2):(T=Math.min(_[0]||0,g/2,m/2),k=Math.min(_[1]||0,g/2,m/2),E=Math.min(_[2]||0,g/2,m/2),R=Math.min(_[3]||0,g/2,m/2)),c.moveTo(T,0),c.lineTo(g-k,0),c.arc(g-k,k,k,Math.PI*3/2,0,!1),c.lineTo(g,m-E),c.arc(g-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},Et={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=FJ;ht.alphaComponent=jJ;ht.getNumberValidator=zJ;ht.getNumberOrArrayOfNumbersValidator=VJ;ht.getNumberOrAutoValidator=BJ;ht.getStringValidator=UJ;ht.getStringOrGradientValidator=HJ;ht.getFunctionValidator=WJ;ht.getNumberArrayValidator=$J;ht.getBooleanValidator=GJ;ht.getComponentValidator=KJ;const _s=Tt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function FJ(e){return e>255?255:e<0?0:Math.round(e)}function jJ(e){return e>1?1:e<1e-4?1e-4:e}function zJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function VJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function BJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function GJ(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function KJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,b=t.Util._capitalize,S=n+b(a),w=o+b(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+b(h),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const b=this.attrs[a];return b===void 0?l:b},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),b=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[b]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(Et);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Xj=Lr,qJ=Tt;function YJ(e){const t=[],r=e.length,n=Xj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=XJ+d.join(J8)+QJ)):(i+=l.property,t||(i+=ree+l.val)),i+=eee;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=oee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,b=this._context;v.length===3?b.drawImage(t,r,n):v.length===5?b.drawImage(t,r,n,o,i):v.length===9&&b.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=eE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=YJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(j2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,um=Et,Y0=za,Gs=Tt,qi=j2,Xr=ht,Xb="absoluteOpacity",rb="allEventListeners",$l="absoluteTransform",tE="absoluteScale",Dc="canvas",fee="Change",pee="children",hee="konva",u4="listening",rE="mouseenter",nE="mouseleave",oE="set",iE="Shape",Qb=" ",aE="stage",Xs="transform",gee="Stage",c4="visible",vee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Qb);let mee=1,_t=class d4{constructor(t){this._id=mee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Qb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,b=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,w=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+w,l-=d,s-=d;const P=new Y0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new Y0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new Y0.HitCanvas({pixelRatio:b,width:o,height:i}),h=P.getContext(),p=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),h.save(),p.save(),h.translate(-l,-s),p.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Xb),this._clearSelfAndDescendantCache(tE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,h.restore(),p.restore(),v&&(h.save(),h.beginPath(),h.rect(0,0,o,i),h.closePath(),h.setAttr("strokeStyle","red"),h.setAttr("lineWidth",5),h.stroke(),h.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==pee&&(n=oE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(u4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(c4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==gee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Xb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=d4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Ax.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Ax.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,b=n===this;if(v){a.save();const w=this.getAbsoluteTransform(n);let P=w.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),h=this.clipY();a.rect(C||0,h||0,l,s)}a.clip.apply(a,y),P=w.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!b&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(w){w[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(w){if(!w.visible())return;const P=w.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const b=this.find("Shape");let S=!1;for(let w=0;wce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",ne=ce=>{const ee=re(ce);if(ee==="pointer")return o.Konva.pointerEventsEnabled&&Y.pointer;if(ee==="touch")return Y.touch;if(ee==="mouse")return Y.mouse};function se(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const ve="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class we extends n.Container{constructor(ee){super(se(ee)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{se(this.attrs)}),this._checkVisibility()}_validateAdd(ee){const oe=ee.getType()==="Layer",ue=ee.getType()==="FastLayer";oe||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const ee=this.visible()?"":"none";this.content.style.display=ee}setContainer(ee){if(typeof ee===v){if(ee.charAt(0)==="."){const ue=ee.slice(1);ee=document.getElementsByClassName(ue)[0]}else{var oe;ee.charAt(0)!=="#"?oe=ee:oe=ee.slice(1),ee=document.getElementById(oe)}if(!ee)throw"Can not find container in document with id "+oe}return this._setAttr("container",ee),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),ee.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const ee=this.children,oe=ee.length;for(let ue=0;ue-1&&e.stages.splice(oe,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const ee=this._pointerPositions[0]||this._changedPointerPositions[0];return ee?{x:ee.x,y:ee.y}:(t.Util.warn(ve),null)}_getPointerById(ee){return this._pointerPositions.find(oe=>oe.id===ee)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(ee){ee=ee||{},ee.x=ee.x||0,ee.y=ee.y||0,ee.width=ee.width||this.width(),ee.height=ee.height||this.height();const oe=new i.SceneCanvas({width:ee.width,height:ee.height,pixelRatio:ee.pixelRatio||1}),ue=oe.getContext()._context,Se=this.children;return(ee.x||ee.y)&&ue.translate(-1*ee.x,-1*ee.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Me=Ce._toKonvaCanvas(ee);ue.drawImage(Me._canvas,ee.x,ee.y,Me.getWidth()/Me.getPixelRatio(),Me.getHeight()/Me.getPixelRatio())}),oe}getIntersection(ee){if(!ee)return null;const oe=this.children,ue=oe.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Me=oe[Ce].getIntersection(ee);if(Me)return Me}return null}_resizeDOM(){const ee=this.width(),oe=this.height();this.content&&(this.content.style.width=ee+b,this.content.style.height=oe+b),this.bufferCanvas.setSize(ee,oe),this.bufferHitCanvas.setSize(ee,oe),this.children.forEach(ue=>{ue.setSize({width:ee,height:oe}),ue.draw()})}add(ee,...oe){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),ee.setSize({width:this.width(),height:this.height()}),ee.draw(),o.Konva.isBrowser&&this.content.appendChild(ee.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(ee){return s.hasPointerCapture(ee,this)}setPointerCapture(ee){s.setPointerCapture(ee,this)}releaseCapture(ee){s.releaseCapture(ee,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([ee,oe])=>{this.content.addEventListener(ee,ue=>{this[oe](ue)},{passive:!1})})}_pointerenter(ee){this.setPointersPositions(ee);const oe=ne(ee.type);oe&&this._fire(oe.pointerenter,{evt:ee,target:this,currentTarget:this})}_pointerover(ee){this.setPointersPositions(ee);const oe=ne(ee.type);oe&&this._fire(oe.pointerover,{evt:ee,target:this,currentTarget:this})}_getTargetShape(ee){let oe=this[ee+"targetShape"];return oe&&!oe.getStage()&&(oe=null),oe}_pointerleave(ee){const oe=ne(ee.type),ue=re(ee.type);if(!oe)return;this.setPointersPositions(ee);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(oe.pointerout,{evt:ee}),Se._fireAndBubble(oe.pointerleave,{evt:ee}),this._fire(oe.pointerleave,{evt:ee,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(oe.pointerleave,{evt:ee,target:this,currentTarget:this}),this._fire(oe.pointerout,{evt:ee,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(ee){const oe=ne(ee.type),ue=re(ee.type);if(!oe)return;this.setPointersPositions(ee);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Me=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Me||!Me.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Me.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Me,Me._fireAndBubble(oe.pointerdown,{evt:ee,pointerId:Ce.id}),Se=!0;const Ie=ee.type.indexOf("touch")>=0;Me.preventDefault()&&ee.cancelable&&Ie&&ee.preventDefault()}),Se||this._fire(oe.pointerdown,{evt:ee,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(ee){const oe=ne(ee.type),ue=re(ee.type);if(!oe||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&ee.cancelable&&ee.preventDefault(),this.setPointersPositions(ee),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Me=!1;const Ie=this._getTargetShape(ue);this._changedPointerPositions.forEach(Re=>{const ye=s.getCapturedShape(Re.id)||this.getIntersection(Re),ke=Re.id,ze={evt:ee,pointerId:ke},Ye=Ie!==ye;if(Ye&&Ie&&(Ie._fireAndBubble(oe.pointerout,{...ze},ye),Ie._fireAndBubble(oe.pointerleave,{...ze},ye)),ye){if(Ce[ye._id])return;Ce[ye._id]=!0}ye&&ye.isListening()?(Me=!0,Ye&&(ye._fireAndBubble(oe.pointerover,{...ze},Ie),ye._fireAndBubble(oe.pointerenter,{...ze},Ie),this[ue+"targetShape"]=ye),ye._fireAndBubble(oe.pointermove,{...ze})):Ie&&(this._fire(oe.pointerover,{evt:ee,target:this,currentTarget:this,pointerId:ke}),this[ue+"targetShape"]=null)}),Me||this._fire(oe.pointermove,{evt:ee,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(ee){const oe=ne(ee.type),ue=re(ee.type);if(!oe)return;this.setPointersPositions(ee);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Me={};let Ie=!1;this._changedPointerPositions.forEach(Re=>{const ye=s.getCapturedShape(Re.id)||this.getIntersection(Re);if(ye){if(ye.releaseCapture(Re.id),Me[ye._id])return;Me[ye._id]=!0}const ke=Re.id,ze={evt:ee,pointerId:ke};let Ye=!1;o.Konva["_"+ue+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),ye&&ye.isListening()?(Ie=!0,this[ue+"ClickEndShape"]=ye,ye._fireAndBubble(oe.pointerup,{...ze}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===ye&&(ye._fireAndBubble(oe.pointerclick,{...ze}),Ye&&Ce&&Ce===ye&&ye._fireAndBubble(oe.pointerdblclick,{...ze}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(oe.pointerclick,{evt:ee,target:this,currentTarget:this,pointerId:ke}),Ye&&this._fire(oe.pointerdblclick,{evt:ee,target:this,currentTarget:this,pointerId:ke}))}),Ie||this._fire(oe.pointerup,{evt:ee,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,ee.cancelable&&ue!=="touch"&&ue!=="pointer"&&ee.preventDefault()}_contextmenu(ee){this.setPointersPositions(ee);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(F,{evt:ee}):this._fire(F,{evt:ee,target:this,currentTarget:this})}_wheel(ee){this.setPointersPositions(ee);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(J,{evt:ee}):this._fire(J,{evt:ee,target:this,currentTarget:this})}_pointercancel(ee){this.setPointersPositions(ee);const oe=s.getCapturedShape(ee.pointerId)||this.getIntersection(this.getPointerPosition());oe&&oe._fireAndBubble(m,s.createEvent(ee)),s.releaseCapture(ee.pointerId)}_lostpointercapture(ee){s.releaseCapture(ee.pointerId)}setPointersPositions(ee){const oe=this._getContentPosition();let ue=null,Se=null;ee=ee||window.event,ee.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(ee.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})}),Array.prototype.forEach.call(ee.changedTouches||ee.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})})):(ue=(ee.clientX-oe.left)/oe.scaleX,Se=(ee.clientY-oe.top)/oe.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(ee)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(ee)}])}_setPointerPosition(ee){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(ee)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const ee=this.content.getBoundingClientRect();return{top:ee.top,left:ee.left,scaleX:ee.width/this.content.clientWidth||1,scaleY:ee.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const ee=this.container();if(!ee)throw"Stage has no container. A container is required.";ee.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),ee.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(ee){ee.batchDraw()}),this}}e.Stage=we,we.prototype.nodeType=d,(0,l._registerNode)(we),r.Factory.addGetterSetter(we,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(Jj);var cm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Tt,r=Lr,n=Et,o=Cr,i=ht,a=Tt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",b="linearGradient",S="radialGradient";let w;function P(){return w||(w=r.Util.createCanvasElement().getContext("2d"),w)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function h(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function p(R){R.stroke()}function c(){this._clearCache(s)}function g(){this._clearCache(d)}function m(){this._clearCache(v)}function _(){this._clearCache(b)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(b,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let U=0;Uthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),U=this.getAbsoluteOpacity()!==1;if(V&&B&&U)return!0;const q=this.hasShadow(),J=this.shadowForStrokeEnabled();return!!(V&&B&&q&&J)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,U=this.getSelfRect(),J=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=U.width+J,W=U.height+J,Y=!E.skipShadow&&this.hasShadow(),re=Y?this.shadowOffsetX():0,ne=Y?this.shadowOffsetY():0,se=Q+Math.abs(re),ve=W+Math.abs(ne),we=Y&&this.shadowBlur()||0,ce=se+we*2,ee=ve+we*2,oe={width:ce,height:ee,x:-(J/2+we)+Math.min(re,0)+U.x,y:-(J/2+we)+Math.min(ne,0)+U.y};return V?oe:this._transformedRect(oe,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),U=B.getContext(),q=this._getCanvasCache(),J=this.getSceneFunc(),Q=this.hasShadow(),W,Y;const re=B.isCache,ne=A===this;if(!this.isVisible()&&!ne)return this;if(q){U.save();const ve=this.getAbsoluteTransform(A).getMatrix();return U.transform(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5]),this._drawCachedSceneCanvas(U),U.restore(),this}if(!J)return this;if(U.save(),this._useBufferCanvas()&&!re){W=this.getStage();const ve=F||W.bufferCanvas;Y=ve.getContext(),Y.clear(),Y.save(),Y._applyLineJoin(this);var se=this.getAbsoluteTransform(A).getMatrix();Y.transform(se[0],se[1],se[2],se[3],se[4],se[5]),J.call(this,Y,this),Y.restore();const we=ve.pixelRatio;Q&&U._applyShadow(this),U._applyOpacity(this),U._applyGlobalCompositeOperation(this),U.drawImage(ve._canvas,0,0,ve.width/we,ve.height/we)}else{if(U._applyLineJoin(this),!ne){var se=this.getAbsoluteTransform(A).getMatrix();U.transform(se[0],se[1],se[2],se[3],se[4],se[5]),U._applyOpacity(this),U._applyGlobalCompositeOperation(this)}Q&&U._applyShadow(this),J.call(this,U,this)}return U.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,U=B&&B.getContext(),q=this.hitFunc()||this.sceneFunc(),J=this._getCanvasCache(),Q=J&&J.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){U.save();const Y=this.getAbsoluteTransform(A).getMatrix();return U.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5]),this._drawCachedHitCanvas(U),U.restore(),this}if(!q)return this;if(U.save(),U._applyLineJoin(this),!(this===A)){const Y=this.getAbsoluteTransform(A).getMatrix();U.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5])}return q.call(this,U,this),U.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),U=V.getWidth(),q=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,U,q);try{const J=B.getImageData(0,0,U,q),Q=J.data,W=Q.length,Y=r.Util._hexToRgb(this.colorKey);for(let re=0;reE?(Q[re]=Y.r,Q[re+1]=Y.g,Q[re+2]=Y.b,Q[re+3]=255):Q[re+3]=0;B.putImageData(J,0,0)}catch(J){r.Util.error("Unable to draw hit graph from cached scene canvas. "+J.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=h,k.prototype._strokeFuncHit=p,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",g),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",_),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(cm,"__esModule",{value:!0});cm.Layer=void 0;const Hl=Lr,Ix=Ed,If=Cr,AT=Et,lE=za,xee=ht,See=_n,Cee=Tt,Pee="#",Tee="beforeDraw",Oee="draw",rz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],kee=rz.length;let xh=class extends Ix.Container{constructor(t){super(t),this.canvas=new lE.SceneCanvas,this.hitCanvas=new lE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Tee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Ix.Container.prototype.drawScene.call(this,o,r),this._fire(Oee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Ix.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};cm.Layer=xh;xh.prototype.nodeType="Layer";(0,Cee._registerNode)(xh);AT.Factory.addGetterSetter(xh,"imageSmoothingEnabled",!0);AT.Factory.addGetterSetter(xh,"clearBeforeDraw",!0);AT.Factory.addGetterSetter(xh,"hitGraphEnabled",!0,(0,xee.getBooleanValidator)());var V2={};Object.defineProperty(V2,"__esModule",{value:!0});V2.FastLayer=void 0;const Eee=Lr,Mee=cm,Ree=Tt;class IT extends Mee.Layer{constructor(t){super(t),this.listening(!1),Eee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}V2.FastLayer=IT;IT.prototype.nodeType="FastLayer";(0,Ree._registerNode)(IT);var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.Group=void 0;const Nee=Lr,Aee=Ed,Iee=Tt;let LT=class extends Aee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Nee.Util.throw("You may only add groups and shapes to groups.")}};Sh.Group=LT;LT.prototype.nodeType="Group";(0,Iee._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Animation=void 0;const Lx=Tt,sE=Lr,Dx=(function(){return Lx.glob.performance&&Lx.glob.performance.now?function(){return Lx.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Dx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,h=C._id,p=P.easing||e.Easings.Linear,c=!!P.yoyo;let g,m;typeof P.duration>"u"?g=.3:P.duration===0?g=.001:g=P.duration,this.node=C,this._id=v++;const _=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);_||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},_),this.tween=new b(m,function(T){y._tweenFunc(T)},p,0,1,g*1e3,c),this._addListeners(),S.attrs[h]||(S.attrs[h]={}),S.attrs[h][this._id]||(S.attrs[h][this._id]={}),S.tweens[h]||(S.tweens[h]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,h=C._id;let p,c,g,m,_;const T=S.tweens[h][P];T&&delete S.attrs[h][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(p=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(g=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const h in C)delete S.tweens[P][h];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(w){const P=w.onFinish;w.node=this,w.onFinish=function(){this.destroy(),P&&P()},new S(w).play()},e.Easings={BackEaseIn(w,P,y,C){return y*(w/=C)*w*((1.70158+1)*w-1.70158)+P},BackEaseOut(w,P,y,C){return y*((w=w/C-1)*w*((1.70158+1)*w+1.70158)+1)+P},BackEaseInOut(w,P,y,C){let h=1.70158;return(w/=C/2)<1?y/2*(w*w*(((h*=1.525)+1)*w-h))+P:y/2*((w-=2)*w*(((h*=1.525)+1)*w+h)+2)+P},ElasticEaseIn(w,P,y,C,h,p){let c=0;return w===0?P:(w/=C)===1?P+y:(p||(p=C*.3),!h||h0?t:r),v=a*r,b=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:b,width:v-d,height:S-b}}}B2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Dee._registerNode)(Ss);U2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,H2.getNumberValidator)());U2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,H2.getNumberValidator)());U2.Factory.addGetterSetter(Ss,"angle",0,(0,H2.getNumberValidator)());U2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,H2.getBooleanValidator)());var W2={},dm={};Object.defineProperty(dm,"__esModule",{value:!0});dm.Line=void 0;const $2=Et,Fee=Tt,jee=_n,oz=ht;function f4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),b=r-d*(o-e),S=n-d*(i-t),w=r+v*(o-e),P=n+v*(i-t);return[b,S,w,P]}function cE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let w=0;w<20;w++)v=S*e.tValues[20][w]+S,d+=e.cValues[20][w]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],b=2*a[1]-2*a[0],S=2*l[1]-2*l[0],w=4*(d*d+v*v),P=4*(d*b+v*S),y=b*b+S*S;if(w===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*w),h=y/w,p=s+C,c=h-C*C,g=p*p+c>0?Math.sqrt(p*p+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,_=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((p+g)/(C+m))):0;return Math.sqrt(w)/2*(p*g-C*m+_)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),b=d*d+v*v;return Math.sqrt(b)}const o=(a,l,s)=>{const d=s.length-1;let v,b;if(d===0)return 0;if(a===0){b=0;for(let S=0;S<=d;S++)b+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return b}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,b=(a-s(v))/l,S=0;for(;d>.001;){const w=s(v+b),P=Math.abs(a-w)/l;if(P500)break}return v};e.t2length=i})(iz);Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Path=void 0;const zee=Et,Vee=_n,Bee=Tt,Lf=iz;class hn extends Vee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,w=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(w,P),t.arc(0,0,S,s,s+d,1-b),t.scale(1/w,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],b=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-b)b;w-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],w,0);t.push(P.x,P.y)}else for(let w=d+S;wr[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],b=l[3],S=l[4],w=l[5],P=l[6];return S+=w*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,b,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,w,P,y,C,h,p,c,g,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var _=E.shift(),T=E.shift();if(s+=_,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let U=a.length-2;U>=0;U--)if(a[U].command==="M"){s=a[U].points[0]+_,d=a[U].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(w,P,s,d);break;case"t":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(w,P,s,d);break;case"A":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break;case"a":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],b=o[5],S=o[4]+b,w=Math.PI/180;if(Math.abs(v-S)S;s-=w)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+w;s1&&(l*=Math.sqrt(w),s*=Math.sqrt(w));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(b*b))/(l*l*(S*S)+s*s*(b*b)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*b/l,h=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,p=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},g=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[h,p,l,s,_,R,v,a]}}Ph.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Bee._registerNode)(hn);zee.Factory.addGetterSetter(hn,"data");Object.defineProperty(W2,"__esModule",{value:!0});W2.Arrow=void 0;const G2=Et,Uee=dm,az=ht,Hee=Tt,dE=Ph;class Rd extends Uee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],w=dE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=dE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/w),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,b=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}W2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Hee._registerNode)(Rd);G2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,az.getNumberValidator)());G2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,az.getNumberValidator)());G2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);G2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.Circle=void 0;const Wee=Et,$ee=_n,Gee=ht,Kee=Tt;let Th=class extends $ee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};K2.Circle=Th;Th.prototype._centroid=!0;Th.prototype.className="Circle";Th.prototype._attrsAffectingSize=["radius"];(0,Kee._registerNode)(Th);Wee.Factory.addGetterSetter(Th,"radius",0,(0,Gee.getNumberValidator)());var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Ellipse=void 0;const DT=Et,qee=_n,lz=ht,Yee=Tt;class Gu extends qee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}q2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Yee._registerNode)(Gu);DT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);DT.Factory.addGetterSetter(Gu,"radiusX",0,(0,lz.getNumberValidator)());DT.Factory.addGetterSetter(Gu,"radiusY",0,(0,lz.getNumberValidator)());var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.Image=void 0;const Fx=Lr,Nd=Et,Xee=_n,Qee=Tt,fm=ht;let xl=class sz extends Xee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?Fx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?Fx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=Fx.Util.createImageElement();o.onload=function(){const i=new sz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};Y2.Image=xl;xl.prototype.className="Image";(0,Qee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,fm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,fm.getNumberValidator)());var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.Tag=Jp.Label=void 0;const X2=Et,Zee=_n,Jee=Sh,FT=ht,uz=Tt,cz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],ete="Change.konva",tte="none",p4="up",h4="right",g4="down",v4="left",rte=cz.length;class jT extends Jee.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Z2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,ute._registerNode)(Id);dz.Factory.addGetterSetter(Id,"radius",0,(0,fz.getNumberValidator)());dz.Factory.addGetterSetter(Id,"sides",0,(0,fz.getNumberValidator)());var J2={};Object.defineProperty(J2,"__esModule",{value:!0});J2.Ring=void 0;const pz=Et,cte=_n,hz=ht,dte=Tt,fE=Math.PI*2;class Ld extends cte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,fE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),fE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}J2.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,dte._registerNode)(Ld);pz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,hz.getNumberValidator)());pz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,hz.getNumberValidator)());var e5={};Object.defineProperty(e5,"__esModule",{value:!0});e5.Sprite=void 0;const Dd=Et,fte=_n,pte=Ch,gz=ht,hte=Tt;class Sl extends fte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new pte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],b=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),b)if(a){const S=a[r],w=n*2;t.drawImage(b,l,s,d,v,S[w+0],S[w+1],d,v)}else t.drawImage(b,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",bte="center",vz="inherit",X0="justify",wte="Change.konva",_te="2d",pE="-",mz="left",xte="text",Ste="Text",Cte="top",Pte="bottom",hE="middle",yz="normal",Tte="px ",nb=" ",Ote="right",gE="rtl",kte="word",Ete="char",vE="none",zx="…",bz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Mte=bz.length;function Rte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ob;function Vx(){return ob||(ob=m4.Util.createCanvasElement().getContext(_te),ob)}function Nte(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Ate(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Ite(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends mte.Shape{constructor(t){super(Ite(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(p+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=m4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(xte,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return m4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,b,S;let w=Vx(),P=this.fontSize(),y;w.save(),w.font=this._getContextFont(),y=w.measureText(t),w.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(b=y.hangingBaseline)!==null&&b!==void 0?b:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+nb+this.fontVariant()+nb+(this.fontSize()+Tte)+Rte(this.fontFamily())}_addTextLine(t){this.align()===X0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return Vx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` +`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,b=a-d*2,S=0,w=this.wrap(),P=w!==vE,y=w!==Ete&&P,C=this.ellipsis();this.textArr=[],Vx().font=this._getContextFont();const h=C?this._getTextWidth(zx):0;for(let p=0,c=t.length;pv)for(;g.length>0;){let _=0,T=Bc(g).length,k="",R=0;for(;_>>1,A=Bc(g),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+h;V<=v?(_=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(g),V=Bc(k),B=F[V.length],U=B===nb||B===pE;let q;if(U&&R<=v)q=V.length;else{const J=V.lastIndexOf(nb),Q=V.lastIndexOf(pE);q=Math.max(J,Q)+1}q>0&&(_=q,k=F.slice(0,_).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(g=Bc(g).slice(_).join("").trimLeft(),g.length>0&&(m=this._getTextWidth(g),m<=v)){this._addTextLine(g),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(g),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&pb)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==vE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+zx)r?null:Q0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Q0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Cz}`).join(" "),bE="nodesRect",Ute=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Hte={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Wte="ontouchstart"in Pa.Konva._global;function $te(e,t,r){if(e==="rotater")return r;t+=tr.Util.degToRad(Hte[e]||0);const n=(tr.Util.radToDeg(t)%360+360)%360;return tr.Util._inRange(n,315+22.5,360)||tr.Util._inRange(n,0,22.5)?"ns-resize":tr.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":tr.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":tr.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":tr.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":tr.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":tr.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":tr.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(tr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const xw=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Gte(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Pz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function Kte(e,t){const r=Gte(e);return Pz(e,t,r)}function qte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(tr.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Ute.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(bE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(bE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Pz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),b=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();b.forEach(function(w){const P=S.point(w);r.push(P)})});const n=new tr.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),xw.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new zte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Wte?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=$te(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new jte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*tr.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},y4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let _=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(_-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+_,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=qte(this.rotationSnaps(),k,R)-m.rotation,F=Kte(m,A);this._fitNodesInto(F,t);return}const b=this.shiftBehavior();let S;b==="inverted"?S=this.keepRatio()&&!t.shiftKey:b==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var h=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-left").x()>w.x?-1:1,y=this.findOne(".top-left").y()>w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(w.x-r),this.findOne(".top-left").y(w.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-w.x,2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-right").x()w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(w.x+r),this.findOne(".top-right").y(w.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(i.y()-w.y,2));var P=w.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(tr.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tr.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new tr.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:tr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new tr.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new tr.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const b=s.multiply(l.invert());this._nodes.forEach(S=>{var w;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new tr.Transform;C.multiply(P.copy().invert()).multiply(b).multiply(P).multiply(y);const h=C.decompose();S.setAttrs(h),(w=S.getLayer())===null||w===void 0||w.batchDraw()}),this.rotation(tr.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(tr.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(b=>{b.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*tr.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(b=>{v(b)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),yE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return mE.Node.prototype.toObject.call(this)}clone(t){return mE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}n5.Transformer=Bt;Bt.isTransforming=()=>y4>0;function Yte(e){return e instanceof Array||tr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){xw.indexOf(t)===-1&&tr.Util.warn("Unknown anchor name: "+t+". Available names are: "+xw.join(", "))}),e||[]}Bt.prototype.className="Transformer";(0,Vte._registerNode)(Bt);qt.Factory.addGetterSetter(Bt,"enabledAnchors",xw,Yte);qt.Factory.addGetterSetter(Bt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());qt.Factory.addGetterSetter(Bt,"resizeEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorSize",10,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateEnabled",!0);qt.Factory.addGetterSetter(Bt,"rotateLineVisible",!0);qt.Factory.addGetterSetter(Bt,"rotationSnaps",[]);qt.Factory.addGetterSetter(Bt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateAnchorCursor","crosshair");qt.Factory.addGetterSetter(Bt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"anchorFill","white");qt.Factory.addGetterSetter(Bt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderDash");qt.Factory.addGetterSetter(Bt,"keepRatio",!0);qt.Factory.addGetterSetter(Bt,"shiftBehavior","default");qt.Factory.addGetterSetter(Bt,"centeredScaling",!1);qt.Factory.addGetterSetter(Bt,"ignoreStroke",!1);qt.Factory.addGetterSetter(Bt,"padding",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"nodes");qt.Factory.addGetterSetter(Bt,"node");qt.Factory.addGetterSetter(Bt,"boundBoxFunc");qt.Factory.addGetterSetter(Bt,"anchorDragBoundFunc");qt.Factory.addGetterSetter(Bt,"anchorStyleFunc");qt.Factory.addGetterSetter(Bt,"shouldOverdrawWholeArea",!1);qt.Factory.addGetterSetter(Bt,"useSingleNodeRotation",!0);qt.Factory.backCompat(Bt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var o5={};Object.defineProperty(o5,"__esModule",{value:!0});o5.Wedge=void 0;const i5=Et,Xte=_n,Qte=Tt,Tz=ht,Zte=Tt;class Cs extends Xte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Qte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}o5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Zte._registerNode)(Cs);i5.Factory.addGetterSetter(Cs,"radius",0,(0,Tz.getNumberValidator)());i5.Factory.addGetterSetter(Cs,"angle",0,(0,Tz.getNumberValidator)());i5.Factory.addGetterSetter(Cs,"clockwise",!1);i5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var a5={};Object.defineProperty(a5,"__esModule",{value:!0});a5.Blur=void 0;const wE=Et,Jte=Cr,ere=ht;function _E(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const tre=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],rre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function nre(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,b,S,w,P,y,C,h,p,c,g,m,_,T,k,R,E,A,F;const V=t+t+1,B=n-1,U=o-1,q=t+1,J=q*(q+1)/2,Q=new _E,W=tre[t],Y=rre[t];let re=null,ne=Q,se=null,ve=null;for(l=1;l>Y,A!==0?(A=255/A,r[v]=(S*W>>Y)*A,r[v+1]=(w*W>>Y)*A,r[v+2]=(P*W>>Y)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,w-=h,P-=p,y-=c,C-=se.r,h-=se.g,p-=se.b,c-=se.a,s=b+((s=i+t+1)>Y,A>0?(A=255/A,r[s]=(S*W>>Y)*A,r[s+1]=(w*W>>Y)*A,r[s+2]=(P*W>>Y)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,w-=h,P-=p,y-=c,C-=se.r,h-=se.g,p-=se.b,c-=se.a,s=i+((s=a+q)0&&nre(t,r)};a5.Blur=ore;wE.Factory.addGetterSetter(Jte.Node,"blurRadius",0,(0,ere.getNumberValidator)(),wE.Factory.afterSetFilter);var l5={};Object.defineProperty(l5,"__esModule",{value:!0});l5.Brighten=void 0;const xE=Et,ire=Cr,are=ht,lre=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};s5.Contrast=cre;SE.Factory.addGetterSetter(sre.Node,"contrast",0,(0,ure.getNumberValidator)(),SE.Factory.afterSetFilter);var u5={};Object.defineProperty(u5,"__esModule",{value:!0});u5.Emboss=void 0;const Lu=Et,c5=Cr,dre=Lr,Oz=ht,fre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,b=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:dre.Util.error("Unknown emboss direction: "+n)}do{const S=(b-1)*s;let w=d;b+w<1&&(w=0),b+w>l&&(w=0);const P=(b-1+w)*a*4;let y=a;do{const C=S+(y-1)*4;let h=v;y+h<1&&(h=0),y+h>a&&(h=0);const p=P+(y-1+h)*4,c=i[C]-i[p],g=i[C+1]-i[p+1],m=i[C+2]-i[p+2];let _=c;const T=_>0?_:-_,k=g>0?g:-g,R=m>0?m:-m;if(k>T&&(_=g),R>T&&(_=m),_*=t,o){const E=i[C]+_,A=i[C+1]+_,F=i[C+2]+_;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-_;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--b)};u5.Emboss=fre;Lu.Factory.addGetterSetter(c5.Node,"embossStrength",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(c5.Node,"embossWhiteLevel",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(c5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(c5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var d5={};Object.defineProperty(d5,"__esModule",{value:!0});d5.Enhance=void 0;const CE=Et,pre=Cr,hre=ht;function Hx(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const gre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,b;const S=this.enhance();if(S===0)return;for(let _=0;_o&&(o=i),s=t[_+1],sl&&(l=s),b=t[_+2],bv&&(v=b);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let w,P,y,C,h,p,c,g,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),h=l+S*(255-l),p=a-S*(a-0),g=v+S*(255-v),m=d-S*(d-0)):(w=(o+n)*.5,P=o+S*(o-w),y=n+S*(n-w),C=(l+a)*.5,h=l+S*(l-C),p=a+S*(a-C),c=(v+d)*.5,g=v+S*(v-c),m=d+S*(d-c));for(let _=0;_d?S:d;const w=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const w=a,P=i,y=0;let C,h;for(v=0;vt&&(g=c,m=0,_=-1),o=0;o=0&&w=0&&P=0&&w=0&&P=1020?255:0}return a}function Mre(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&w=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=g[a+0],s+=g[a+1],d+=g[a+2],v+=g[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=w;o=r))for(i=y;i=n||(a=(r*i+o)*4,g[a+0]=l,g[a+1]=s,g[a+2]=d,g[a+3]=v)}};b5.Pixelate=jre;kE.Factory.addGetterSetter(Dre.Node,"pixelSize",8,(0,Fre.getNumberValidator)(),kE.Factory.afterSetFilter);var w5={};Object.defineProperty(w5,"__esModule",{value:!0});w5.Posterize=void 0;const EE=Et,zre=Cr,Vre=ht,Bre=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter($T.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter($T.Node,"blue",0,Ure.RGBComponent,Cw.Factory.afterSetFilter);var x5={};Object.defineProperty(x5,"__esModule",{value:!0});x5.RGBA=void 0;const Mv=Et,S5=Cr,Wre=ht,$re=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(S5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(S5.Node,"blue",0,Wre.RGBComponent,Mv.Factory.afterSetFilter);Mv.Factory.addGetterSetter(S5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var C5={};Object.defineProperty(C5,"__esModule",{value:!0});C5.Sepia=void 0;const Gre=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),b>127&&(b=255-b),t[s]=d,t[s+1]=v,t[s+2]=b}while(--l)}while(--i)};P5.Solarize=Kre;var T5={};Object.defineProperty(T5,"__esModule",{value:!0});T5.Threshold=void 0;const ME=Et,qre=Cr,Yre=ht,Xre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;ole||L[K]!==j[le]){var me=` +`+L[K].replace(" at new "," at ");return u.displayName&&me.includes("")&&(me=me.replace("",u.displayName)),me}while(1<=K&&0<=le);break}}}finally{jn=!1,Error.prepareStackTrace=O}return(u=u?u.displayName||u.name:"")?Fr(u):""}var ji=Object.prototype.hasOwnProperty,zn=[],un=-1;function Zr(u){return{current:u}}function At(u){0>un||(u.current=zn[un],zn[un]=null,un--)}function He(u,f){un++,zn[un]=u.current,u.current=f}var It={},at=Zr(It),rt=Zr(!1),St=It;function cn(u,f){var O=u.type.contextTypes;if(!O)return It;var N=u.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===f)return N.__reactInternalMemoizedMaskedChildContext;var L={},j;for(j in O)L[j]=f[j];return N&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=f,u.__reactInternalMemoizedMaskedChildContext=L),L}function wr(u){return u=u.childContextTypes,u!=null}function wo(){At(rt),At(at)}function qa(u,f,O){if(at.current!==It)throw Error(a(168));He(at,f),He(rt,O)}function Qu(u,f,O){var N=u.stateNode;if(f=f.childContextTypes,typeof N.getChildContext!="function")return O;N=N.getChildContext();for(var L in N)if(!(L in f))throw Error(a(108,k(u)||"Unknown",L));return i({},O,N)}function jd(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||It,St=at.current,He(at,u),He(rt,rt.current),!0}function gm(u,f,O){var N=u.stateNode;if(!N)throw Error(a(169));O?(u=Qu(u,f,St),N.__reactInternalMemoizedMergedChildContext=u,At(rt),At(at),He(at,u)):At(rt),He(rt,O)}var oi=Math.clz32?Math.clz32:Tl,H5=Math.log,vm=Math.LN2;function Tl(u){return u>>>=0,u===0?32:31-(H5(u)/vm|0)|0}var Ol=64,Zu=4194304;function ks(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Ju(u,f){var O=u.pendingLanes;if(O===0)return 0;var N=0,L=u.suspendedLanes,j=u.pingedLanes,K=O&268435455;if(K!==0){var le=K&~L;le!==0?N=ks(le):(j&=K,j!==0&&(N=ks(j)))}else K=O&~L,K!==0?N=ks(K):j!==0&&(N=ks(j));if(N===0)return 0;if(f!==0&&f!==N&&(f&L)===0&&(L=N&-N,j=f&-f,L>=j||L===16&&(j&4194240)!==0))return f;if((N&4)!==0&&(N|=O&16),f=u.entangledLanes,f!==0)for(u=u.entanglements,f&=N;0O;O++)f.push(u);return f}function Ya(u,f,O){u.pendingLanes|=f,f!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,f=31-oi(f),u[f]=O}function W5(u,f){var O=u.pendingLanes&~f;u.pendingLanes=f,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=f,u.mutableReadLanes&=f,u.entangledLanes&=f,f=u.entanglements;var N=u.eventTimes;for(u=u.expirationTimes;0>=K,L-=K,Vi=1<<32-oi(f)+L|O<vt?(ft=ct,ct=null):ft=ct.sibling;var Ne=Ae(_e,ct,Pe[vt],Be);if(Ne===null){ct===null&&(ct=ft);break}u&&ct&&Ne.alternate===null&&f(_e,ct),he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne,ct=ft}if(vt===Pe.length)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;vtvt?(ft=ct,ct=null):ft=ct.sibling;var nt=Ae(_e,ct,Ne.value,Be);if(nt===null){ct===null&&(ct=ft);break}u&&ct&&nt.alternate===null&&f(_e,ct),he=j(nt,he,vt),yt===null?tt=nt:yt.sibling=nt,yt=nt,ct=ft}if(Ne.done)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;!Ne.done;vt++,Ne=Pe.next())Ne=Ve(_e,Ne.value,Be),Ne!==null&&(he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return ar&&Ml(_e,vt),tt}for(ct=N(_e,ct);!Ne.done;vt++,Ne=Pe.next())Ne=Rt(ct,_e,vt,Ne.value,Be),Ne!==null&&(u&&Ne.alternate!==null&&ct.delete(Ne.key===null?vt:Ne.key),he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return u&&ct.forEach(function(Un){return f(_e,Un)}),ar&&Ml(_e,vt),tt}function On(_e,he,Pe,Be){if(typeof Pe=="object"&&Pe!==null&&Pe.type===v&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case s:e:{for(var tt=Pe.key,yt=he;yt!==null;){if(yt.key===tt){if(tt=Pe.type,tt===v){if(yt.tag===7){O(_e,yt.sibling),he=L(yt,Pe.props.children),he.return=_e,_e=he;break e}}else if(yt.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===c&&So(tt)===yt.type){O(_e,yt.sibling),he=L(yt,Pe.props),he.ref=lc(_e,yt,Pe),he.return=_e,_e=he;break e}O(_e,yt);break}else f(_e,yt);yt=yt.sibling}Pe.type===v?(he=I(Pe.props.children,_e.mode,Be,Pe.key),he.return=_e,_e=he):(Be=M(Pe.type,Pe.key,Pe.props,null,_e.mode,Be),Be.ref=lc(_e,he,Pe),Be.return=_e,_e=Be)}return K(_e);case d:e:{for(yt=Pe.key;he!==null;){if(he.key===yt)if(he.tag===4&&he.stateNode.containerInfo===Pe.containerInfo&&he.stateNode.implementation===Pe.implementation){O(_e,he.sibling),he=L(he,Pe.children||[]),he.return=_e,_e=he;break e}else{O(_e,he);break}else f(_e,he);he=he.sibling}he=$(Pe,_e.mode,Be),he.return=_e,_e=he}return K(_e);case c:return yt=Pe._init,On(_e,he,yt(Pe._payload),Be)}if(U(Pe))return wt(_e,he,Pe,Be);if(_(Pe))return er(_e,he,Pe,Be);sc(_e,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,he!==null&&he.tag===6?(O(_e,he.sibling),he=L(he,Pe),he.return=_e,_e=he):(O(_e,he),he=z(Pe,_e.mode,Be),he.return=_e,_e=he),K(_e)):O(_e,he)}return On}var Ns=Lh(!0),Dh=Lh(!1),Xa=Zr(null),Xd=null,As=null,Fh=null;function uc(){Fh=As=Xd=null}function Qd(u,f,O){Se?(He(Xa,f._currentValue),f._currentValue=O):(He(Xa,f._currentValue2),f._currentValue2=O)}function jh(u){var f=Xa.current;At(Xa),Se?u._currentValue=f:u._currentValue2=f}function cc(u,f,O){for(;u!==null;){var N=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,N!==null&&(N.childLanes|=f)):N!==null&&(N.childLanes&f)!==f&&(N.childLanes|=f),u===O)break;u=u.return}}function Is(u,f){Xd=u,Fh=As=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&f)!==0&&(eo=!0),u.firstContext=null)}function Co(u){var f=Se?u._currentValue:u._currentValue2;if(Fh!==u)if(u={context:u,memoizedValue:f,next:null},As===null){if(Xd===null)throw Error(a(308));As=u,Xd.dependencies={lanes:0,firstContext:u}}else As=As.next=u;return f}var Bi=null;function dc(u){Bi===null?Bi=[u]:Bi.push(u)}function zh(u,f,O,N){var L=f.interleaved;return L===null?(O.next=O,dc(f)):(O.next=L.next,L.next=O),f.interleaved=O,Ui(u,N)}function Ui(u,f){u.lanes|=f;var O=u.alternate;for(O!==null&&(O.lanes|=f),O=u,u=u.return;u!==null;)u.childLanes|=f,O=u.alternate,O!==null&&(O.childLanes|=f),O=u,u=u.return;return O.tag===3?O.stateNode:null}var Qa=!1;function Vh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ci(u,f){return{eventTime:u,lane:f,tag:0,payload:null,callback:null,next:null}}function Za(u,f,O){var N=u.updateQueue;if(N===null)return null;if(N=N.shared,(Ct&2)!==0){var L=N.pending;return L===null?f.next=f:(f.next=L.next,L.next=f),N.pending=f,Ui(u,O)}return L=N.interleaved,L===null?(f.next=f,dc(N)):(f.next=L.next,L.next=f),N.interleaved=f,Ui(u,O)}function Zd(u,f,O){if(f=f.updateQueue,f!==null&&(f=f.shared,(O&4194240)!==0)){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}function Cm(u,f){var O=u.updateQueue,N=u.alternate;if(N!==null&&(N=N.updateQueue,O===N)){var L=null,j=null;if(O=O.firstBaseUpdate,O!==null){do{var K={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};j===null?L=j=K:j=j.next=K,O=O.next}while(O!==null);j===null?L=j=f:j=j.next=f}else L=j=f;O={baseState:N.baseState,firstBaseUpdate:L,lastBaseUpdate:j,shared:N.shared,effects:N.effects},u.updateQueue=O;return}u=O.lastBaseUpdate,u===null?O.firstBaseUpdate=f:u.next=f,O.lastBaseUpdate=f}function Jd(u,f,O,N){var L=u.updateQueue;Qa=!1;var j=L.firstBaseUpdate,K=L.lastBaseUpdate,le=L.shared.pending;if(le!==null){L.shared.pending=null;var me=le,Te=me.next;me.next=null,K===null?j=Te:K.next=Te,K=me;var Ee=u.alternate;Ee!==null&&(Ee=Ee.updateQueue,le=Ee.lastBaseUpdate,le!==K&&(le===null?Ee.firstBaseUpdate=Te:le.next=Te,Ee.lastBaseUpdate=me))}if(j!==null){var Ve=L.baseState;K=0,Ee=Te=me=null,le=j;do{var Ae=le.lane,Rt=le.eventTime;if((N&Ae)===Ae){Ee!==null&&(Ee=Ee.next={eventTime:Rt,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var wt=u,er=le;switch(Ae=f,Rt=O,er.tag){case 1:if(wt=er.payload,typeof wt=="function"){Ve=wt.call(Rt,Ve,Ae);break e}Ve=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=er.payload,Ae=typeof wt=="function"?wt.call(Rt,Ve,Ae):wt,Ae==null)break e;Ve=i({},Ve,Ae);break e;case 2:Qa=!0}}le.callback!==null&&le.lane!==0&&(u.flags|=64,Ae=L.effects,Ae===null?L.effects=[le]:Ae.push(le))}else Rt={eventTime:Rt,lane:Ae,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Ee===null?(Te=Ee=Rt,me=Ve):Ee=Ee.next=Rt,K|=Ae;if(le=le.next,le===null){if(le=L.shared.pending,le===null)break;Ae=le,le=Ae.next,Ae.next=null,L.lastBaseUpdate=Ae,L.shared.pending=null}}while(!0);if(Ee===null&&(me=Ve),L.baseState=me,L.firstBaseUpdate=Te,L.lastBaseUpdate=Ee,f=L.shared.interleaved,f!==null){L=f;do K|=L.lane,L=L.next;while(L!==f)}else j===null&&(L.shared.lanes=0);jl|=K,u.lanes=K,u.memoizedState=Ve}}function Pm(u,f,O){if(u=f.effects,f.effects=null,u!==null)for(f=0;fO?O:4,u(!0);var N=of.transition;of.transition={};try{u(!1),f()}finally{Vt=O,of.transition=N}}function mc(){return To().memoizedState}function J5(u,f,O){var N=nl(u);if(O={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null},Am(u))Yh(f,O);else if(O=zh(u,f,O,N),O!==null){var L=pn();Uo(O,u,N,L),yc(O,f,N)}}function e_(u,f,O){var N=nl(u),L={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null};if(Am(u))Yh(f,L);else{var j=u.alternate;if(u.lanes===0&&(j===null||j.lanes===0)&&(j=f.lastRenderedReducer,j!==null))try{var K=f.lastRenderedState,le=j(K,O);if(L.hasEagerState=!0,L.eagerState=le,jo(le,K)){var me=f.interleaved;me===null?(L.next=L,dc(f)):(L.next=me.next,me.next=L),f.interleaved=L;return}}catch{}finally{}O=zh(u,f,L,N),O!==null&&(L=pn(),Uo(O,u,N,L),yc(O,f,N))}}function Am(u){var f=u.alternate;return u===lr||f!==null&&f===lr}function Yh(u,f){pc=fc=!0;var O=u.pending;O===null?f.next=f:(f.next=O.next,O.next=f),u.pending=f}function yc(u,f,O){if((O&4194240)!==0){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}var sf={readContext:Co,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},t_={readContext:Co,useCallback:function(u,f){return fi().memoizedState=[u,f===void 0?null:f],u},useContext:Co,useEffect:$h,useImperativeHandle:function(u,f,O){return O=O!=null?O.concat([u]):null,vc(4194308,4,Em.bind(null,f,u),O)},useLayoutEffect:function(u,f){return vc(4194308,4,u,f)},useInsertionEffect:function(u,f){return vc(4,2,u,f)},useMemo:function(u,f){var O=fi();return f=f===void 0?null:f,u=u(),O.memoizedState=[u,f],u},useReducer:function(u,f,O){var N=fi();return f=O!==void 0?O(f):f,N.memoizedState=N.baseState=f,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:f},N.queue=u,u=u.dispatch=J5.bind(null,lr,u),[N.memoizedState,u]},useRef:function(u){var f=fi();return u={current:u},f.memoizedState=u},useState:ma,useDebugValue:tl,useDeferredValue:function(u){return fi().memoizedState=u},useTransition:function(){var u=ma(!1),f=u[0];return u=Z5.bind(null,u[1]),fi().memoizedState=u,[f,u]},useMutableSource:function(){},useSyncExternalStore:function(u,f,O){var N=lr,L=fi();if(ar){if(O===void 0)throw Error(a(407));O=O()}else{if(O=f(),Kr===null)throw Error(a(349));(Al&30)!==0||Hh(N,f,O)}L.memoizedState=O;var j={value:O,getSnapshot:f};return L.queue=j,$h(km.bind(null,N,j,u),[u]),N.flags|=2048,Fs(9,Om.bind(null,N,j,O,f),void 0,null),O},useId:function(){var u=fi(),f=Kr.identifierPrefix;if(ar){var O=va,N=Vi;O=(N&~(1<<32-oi(N)-1)).toString(32)+O,f=":"+f+"R"+O,O=Ls++,0y0&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304)}else{if(!N)if(u=Po(j),u!==null){if(f.flags|=128,N=!0,u=u.updateQueue,u!==null&&(f.updateQueue=u,f.flags|=4),Vs(L,!0),L.tail===null&&L.tailMode==="hidden"&&!j.alternate&&!ar)return Tn(f),null}else 2*Jr()-L.renderingStartTime>y0&&O!==1073741824&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304);L.isBackwards?(j.sibling=f.child,f.child=j):(u=L.last,u!==null?u.sibling=j:f.child=j,L.last=j)}return L.tail!==null?(f=L.tail,L.rendering=f,L.tail=f.sibling,L.renderingStartTime=Jr(),f.sibling=null,u=fr.current,He(fr,N?u&1|2:u&1),f):(Tn(f),null);case 22:case 23:return x0(),O=f.memoizedState!==null,u!==null&&u.memoizedState!==null!==O&&(f.flags|=8192),O&&(f.mode&1)!==0?(to&1073741824)!==0&&(Tn(f),Ce&&f.subtreeFlags&6&&(f.flags|=8192)):Tn(f),null;case 24:return null;case 25:return null}throw Error(a(156,f.tag))}function o_(u,f){switch(nc(f),f.tag){case 1:return wr(f.type)&&wo(),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return Ja(),At(rt),At(at),nf(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 5:return tf(f),null;case 13:if(At(fr),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(a(340));Rs()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return At(fr),null;case 4:return Ja(),null;case 10:return jh(f.type._context),null;case 22:case 23:return x0(),null;case 24:return null;default:return null}}var yf=!1,dn=!1,qm=typeof WeakSet=="function"?WeakSet:Set,We=null;function Dl(u,f){var O=u.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(N){sr(u,f,N)}else O.current=null}function l0(u,f,O){try{O()}catch(N){sr(u,f,N)}}var Ym=!1;function Xm(u,f){for(W(u.containerInfo),We=f;We!==null;)if(u=We,f=u.child,(u.subtreeFlags&1028)!==0&&f!==null)f.return=u,We=f;else for(;We!==null;){u=We;try{var O=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var N=O.memoizedProps,L=O.memoizedState,j=u.stateNode,K=j.getSnapshotBeforeUpdate(u.elementType===u.type?N:hi(u.type,N),L);j.__reactInternalSnapshotBeforeUpdate=K}break;case 3:Ce&&Li(u.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(le){sr(u,u.return,le)}if(f=u.sibling,f!==null){f.return=u.return,We=f;break}We=u.return}return O=Ym,Ym=!1,O}function Tc(u,f,O){var N=f.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var L=N=N.next;do{if((L.tag&u)===u){var j=L.destroy;L.destroy=void 0,j!==void 0&&l0(f,O,j)}L=L.next}while(L!==N)}}function Oc(u,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var O=f=f.next;do{if((O.tag&u)===u){var N=O.create;O.destroy=N()}O=O.next}while(O!==f)}}function bf(u){var f=u.ref;if(f!==null){var O=u.stateNode;switch(u.tag){case 5:u=q(O);break;default:u=O}typeof f=="function"?f(u):f.current=u}}function s0(u){var f=u.alternate;f!==null&&(u.alternate=null,s0(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&ze(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function Qm(u){return u.tag===5||u.tag===3||u.tag===4}function Zm(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Qm(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function u0(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?yo(O,u,f):Qn(O,u);else if(N!==4&&(u=u.child,u!==null))for(u0(u,f,O),u=u.sibling;u!==null;)u0(u,f,O),u=u.sibling}function wf(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?Yt(O,u,f):ln(O,u);else if(N!==4&&(u=u.child,u!==null))for(wf(u,f,O),u=u.sibling;u!==null;)wf(u,f,O),u=u.sibling}var fn=null,gi=!1;function $i(u,f,O){for(O=O.child;O!==null;)c0(u,f,O),O=O.sibling}function c0(u,f,O){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(ii,O)}catch{}switch(O.tag){case 5:dn||Dl(O,f);case 6:if(Ce){var N=fn,L=gi;fn=null,$i(u,f,O),fn=N,gi=L,fn!==null&&(gi?Cl(fn,O.stateNode):Qr(fn,O.stateNode))}else $i(u,f,O);break;case 18:Ce&&fn!==null&&(gi?Ut(fn,O.stateNode):Nt(fn,O.stateNode));break;case 4:Ce?(N=fn,L=gi,fn=O.stateNode.containerInfo,gi=!0,$i(u,f,O),fn=N,gi=L):(Me&&(N=O.stateNode.containerInfo,L=$r(N),pa(N,L)),$i(u,f,O));break;case 0:case 11:case 14:case 15:if(!dn&&(N=O.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){L=N=N.next;do{var j=L,K=j.destroy;j=j.tag,K!==void 0&&((j&2)!==0||(j&4)!==0)&&l0(O,f,K),L=L.next}while(L!==N)}$i(u,f,O);break;case 1:if(!dn&&(Dl(O,f),N=O.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=O.memoizedProps,N.state=O.memoizedState,N.componentWillUnmount()}catch(le){sr(O,f,le)}$i(u,f,O);break;case 21:$i(u,f,O);break;case 22:O.mode&1?(dn=(N=dn)||O.memoizedState!==null,$i(u,f,O),dn=N):$i(u,f,O);break;default:$i(u,f,O)}}function Jm(u){var f=u.updateQueue;if(f!==null){u.updateQueue=null;var O=u.stateNode;O===null&&(O=u.stateNode=new qm),f.forEach(function(N){var L=d_.bind(null,u,N);O.has(N)||(O.add(N),N.then(L,L))})}}function vi(u,f){var O=f.deletions;if(O!==null)for(var N=0;N";case _f:return":has("+(xf(u)||"")+")";case Gi:return'[role="'+u.value+'"]';case Ec:return'"'+u.value+'"';case Bs:return'[data-testname="'+u.value+'"]';default:throw Error(a(365))}}function Mc(u,f){var O=[];u=[u,0];for(var N=0;NL&&(L=K),N&=~j}if(N=L,N=Jr()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*a_(N/1960))-N,10u?16:u,_a===null)var N=!1;else{if(u=_a,_a=null,Tf=0,(Ct&6)!==0)throw Error(a(331));var L=Ct;for(Ct|=4,We=u.current;We!==null;){var j=We,K=j.child;if((We.flags&16)!==0){var le=j.deletions;if(le!==null){for(var me=0;meJr()-m0?Bl(u,0):v0|=O),ro(u,f)}function sy(u,f){f===0&&((u.mode&1)===0?f=1:(f=Zu,Zu<<=1,(Zu&130023424)===0&&(Zu=4194304)));var O=pn();u=Ui(u,f),u!==null&&(Ya(u,f,O),ro(u,O))}function T0(u){var f=u.memoizedState,O=0;f!==null&&(O=f.retryLane),sy(u,O)}function d_(u,f){var O=0;switch(u.tag){case 13:var N=u.stateNode,L=u.memoizedState;L!==null&&(O=L.retryLane);break;case 19:N=u.stateNode;break;default:throw Error(a(314))}N!==null&&N.delete(f),sy(u,O)}var uy;uy=function(u,f,O){if(u!==null)if(u.memoizedProps!==f.pendingProps||rt.current)eo=!0;else{if((u.lanes&O)===0&&(f.flags&128)===0)return eo=!1,Gm(u,f,O);eo=(u.flags&131072)!==0}else eo=!1,ar&&(f.flags&1048576)!==0&&$d(f,zi,f.index);switch(f.lanes=0,f.tag){case 2:var N=f.type;mf(u,f),u=f.pendingProps;var L=cn(f,at.current);Is(f,O),L=hc(null,f,N,u,L,O);var j=Uh();return f.flags|=1,typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,wr(N)?(j=!0,jd(f)):j=!1,f.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,Vh(f),L.updater=wc,f.stateNode=L,L._reactInternals=f,Xh(f,N,u,O),f=t0(null,f,N,!0,j,O)):(f.tag=0,ar&&j&&rc(f),Pn(null,f,L,O),f=f.child),f;case 16:N=f.elementType;e:{switch(mf(u,f),u=f.pendingProps,L=N._init,N=L(N._payload),f.type=N,L=f.tag=p_(N),u=hi(N,u),L){case 0:f=ff(null,f,N,u,O);break e;case 1:f=Wm(null,f,N,u,O);break e;case 11:f=zm(null,f,N,u,O);break e;case 14:f=Vm(null,f,N,hi(N.type,u),O);break e}throw Error(a(306,N,""))}return f;case 0:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),ff(u,f,N,L,O);case 1:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),Wm(u,f,N,L,O);case 3:e:{if(pf(f),u===null)throw Error(a(387));N=f.pendingProps,j=f.memoizedState,L=j.element,Sm(u,f),Jd(f,N,null,O);var K=f.memoizedState;if(N=K.element,Ie&&j.isDehydrated)if(j={element:N,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},f.updateQueue.baseState=j,f.memoizedState=j,f.flags&256){L=zs(Error(a(423)),f),f=r0(u,f,N,O,L);break e}else if(N!==L){L=zs(Error(a(424)),f),f=r0(u,f,N,O,L);break e}else for(Ie&&(xo=Ue(f.stateNode.containerInfo),_o=f,ar=!0,ui=null,oc=!1),O=Dh(f,null,N,O),f.child=O;O;)O.flags=O.flags&-3|4096,O=O.sibling;else{if(Rs(),N===L){f=Hi(u,f,O);break e}Pn(u,f,N,O)}f=f.child}return f;case 5:return Tm(f),u===null&&Kd(f),N=f.type,L=f.pendingProps,j=u!==null?u.memoizedProps:null,K=L.children,we(N,L)?K=null:j!==null&&we(N,j)&&(f.flags|=32),Hm(u,f),Pn(u,f,K,O),f.child;case 6:return u===null&&Kd(f),null;case 13:return $m(u,f,O);case 4:return ef(f,f.stateNode.containerInfo),N=f.pendingProps,u===null?f.child=Ns(f,null,N,O):Pn(u,f,N,O),f.child;case 11:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),zm(u,f,N,L,O);case 7:return Pn(u,f,f.pendingProps,O),f.child;case 8:return Pn(u,f,f.pendingProps.children,O),f.child;case 12:return Pn(u,f,f.pendingProps.children,O),f.child;case 10:e:{if(N=f.type._context,L=f.pendingProps,j=f.memoizedProps,K=L.value,Qd(f,N,K),j!==null)if(jo(j.value,K)){if(j.children===L.children&&!rt.current){f=Hi(u,f,O);break e}}else for(j=f.child,j!==null&&(j.return=f);j!==null;){var le=j.dependencies;if(le!==null){K=j.child;for(var me=le.firstContext;me!==null;){if(me.context===N){if(j.tag===1){me=ci(-1,O&-O),me.tag=2;var Te=j.updateQueue;if(Te!==null){Te=Te.shared;var Ee=Te.pending;Ee===null?me.next=me:(me.next=Ee.next,Ee.next=me),Te.pending=me}}j.lanes|=O,me=j.alternate,me!==null&&(me.lanes|=O),cc(j.return,O,f),le.lanes|=O;break}me=me.next}}else if(j.tag===10)K=j.type===f.type?null:j.child;else if(j.tag===18){if(K=j.return,K===null)throw Error(a(341));K.lanes|=O,le=K.alternate,le!==null&&(le.lanes|=O),cc(K,O,f),K=j.sibling}else K=j.child;if(K!==null)K.return=j;else for(K=j;K!==null;){if(K===f){K=null;break}if(j=K.sibling,j!==null){j.return=K.return,K=j;break}K=K.return}j=K}Pn(u,f,L.children,O),f=f.child}return f;case 9:return L=f.type,N=f.pendingProps.children,Is(f,O),L=Co(L),N=N(L),f.flags|=1,Pn(u,f,N,O),f.child;case 14:return N=f.type,L=hi(N,f.pendingProps),L=hi(N.type,L),Vm(u,f,N,L,O);case 15:return Bm(u,f,f.type,f.pendingProps,O);case 17:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),mf(u,f),f.tag=1,wr(N)?(u=!0,jd(f)):u=!1,Is(f,O),Dm(f,N,L),Xh(f,N,L,O),t0(null,f,N,!0,u,O);case 19:return i0(u,f,O);case 22:return Um(u,f,O)}throw Error(a(156,f.tag))};function cy(u,f){return ec(u,f)}function f_(u,f,O,N){this.tag=u,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(u,f,O,N){return new f_(u,f,O,N)}function Ef(u){return u=u.prototype,!(!u||!u.isReactComponent)}function p_(u){if(typeof u=="function")return Ef(u)?1:0;if(u!=null){if(u=u.$$typeof,u===y)return 11;if(u===p)return 14}return 2}function x(u,f){var O=u.alternate;return O===null?(O=Oo(u.tag,f,u.key,u.mode),O.elementType=u.elementType,O.type=u.type,O.stateNode=u.stateNode,O.alternate=u,u.alternate=O):(O.pendingProps=f,O.type=u.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=u.flags&14680064,O.childLanes=u.childLanes,O.lanes=u.lanes,O.child=u.child,O.memoizedProps=u.memoizedProps,O.memoizedState=u.memoizedState,O.updateQueue=u.updateQueue,f=u.dependencies,O.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},O.sibling=u.sibling,O.index=u.index,O.ref=u.ref,O}function M(u,f,O,N,L,j){var K=2;if(N=u,typeof u=="function")Ef(u)&&(K=1);else if(typeof u=="string")K=5;else e:switch(u){case v:return I(O.children,L,j,f);case b:K=8,L|=8;break;case S:return u=Oo(12,O,f,L|2),u.elementType=S,u.lanes=j,u;case C:return u=Oo(13,O,f,L),u.elementType=C,u.lanes=j,u;case h:return u=Oo(19,O,f,L),u.elementType=h,u.lanes=j,u;case g:return D(O,L,j,f);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case w:K=10;break e;case P:K=9;break e;case y:K=11;break e;case p:K=14;break e;case c:K=16,N=null;break e}throw Error(a(130,u==null?u:typeof u,""))}return f=Oo(K,O,f,L),f.elementType=u,f.type=N,f.lanes=j,f}function I(u,f,O,N){return u=Oo(7,u,N,f),u.lanes=O,u}function D(u,f,O,N){return u=Oo(22,u,N,f),u.elementType=g,u.lanes=O,u.stateNode={isHidden:!1},u}function z(u,f,O){return u=Oo(6,u,null,f),u.lanes=O,u}function $(u,f,O){return f=Oo(4,u.children!==null?u.children:[],u.key,f),f.lanes=O,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}function G(u,f,O,N,L){this.tag=f,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=N,this.onRecoverableError=L,Ie&&(this.mutableSourceEagerHydrationData=null)}function H(u,f,O,N,L,j,K,le,me){return u=new G(u,f,O,le,me),f===1?(f=1,j===!0&&(f|=8)):f=0,j=Oo(3,null,null,f),u.current=j,j.stateNode=u,j.memoizedState={element:N,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vh(j),u}function Z(u){if(!u)return It;u=u._reactInternals;e:{if(R(u)!==u||u.tag!==1)throw Error(a(170));var f=u;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(wr(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(a(171))}if(u.tag===1){var O=u.type;if(wr(O))return Qu(u,O,f)}return f}function te(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(a(188)):(u=Object.keys(u).join(","),Error(a(268,u)));return u=F(f),u===null?null:u.stateNode}function ie(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var O=u.retryLane;u.retryLane=O!==0&&O=Te&&j>=Ve&&L<=Ee&&K<=Ae){u.splice(f,1);break}else if(N!==Te||O.width!==me.width||AeK){if(!(j!==Ve||O.height!==me.height||EeL)){Te>N&&(me.width+=Te-N,me.x=N),Eej&&(me.height+=Ve-j,me.y=j),AeO&&(O=K)),K ")+` + +No matching component was found for: + `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return q(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:fe,findFiberByHostInstance:u.findFiberByHostInstance||ge,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)u=!0;else{try{ii=f.inject(u),ai=f}catch{}u=!!f.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,f,O,N){if(!gt)throw Error(a(363));u=Rc(u,f);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,f){var O=f._getVersion;O=O(f._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[f,O]:u.mutableSourceEagerHydrationData.push(f,O)},r.runWithPriority=function(u,f){var O=Vt;try{return Vt=u,f()}finally{Vt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,f,O,N){var L=f.current,j=pn(),K=nl(L);return O=Z(O),f.context===null?f.context=O:f.pendingContext=O,f=ci(j,K),f.payload={element:u},N=N===void 0?null:N,N!==null&&(f.callback=N),u=Za(L,f,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Mz.exports=Dne;var Fne=Mz.exports;const jne=nh(Fne);var Rz={exports:{}},Fd={};/** + * @license React + * react-reconciler-constants.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Rz.exports=Fd;var Nz=Rz.exports;const IE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let LE=!1,DE=!1;const GT=".react-konva-event",zne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. +Position of a node will be changed during drag&drop, so you should update state of the react app as well. +Consider to add onDragMove or onDragEnd events. +For more info see: https://github.com/konvajs/react-konva/issues/256 +`,Vne=`ReactKonva: You are using "zIndex" attribute for a Konva node. +react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. +For more info see: https://github.com/konvajs/react-konva/issues/194 +`,Bne={};function O5(e,t,r=Bne){if(!LE&&"zIndex"in t&&(console.warn(Vne),LE=!0),!DE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(zne),DE=!0)}for(var i in r)if(!IE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,b={},S=!1;const w={};for(var i in t)if(!IE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(w[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,b[i]=t[i])}S&&(e.setAttrs(b),Xu(e));for(var s in w)e.on(s+GT,w[s])}function Xu(e){if(!Tt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Az={},Une={};Rv.Node.prototype._applyProps=O5;function Hne(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function Wne(e,t,r){let n=Rv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Rv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return O5(s,i),s}function $ne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Gne(e,t,r){return!1}function Kne(e){return e}function qne(){return null}function Yne(){return null}function Xne(e,t,r,n){return Une}function Qne(){}function Zne(e){}function Jne(e,t){return!1}function eoe(){return Az}function toe(){return Az}const roe=setTimeout,noe=clearTimeout,ooe=-1;function ioe(e,t){return!1}const aoe=!1,loe=!0,soe=!0;function uoe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function coe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Iz(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function doe(e,t,r){Iz(e,t,r)}function foe(e,t){t.destroy(),t.off(GT),Xu(e)}function poe(e,t){t.destroy(),t.off(GT),Xu(e)}function hoe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function goe(e,t,r){}function voe(e,t,r,n,o){O5(e,o,n)}function moe(e){e.hide(),Xu(e)}function yoe(e){}function boe(e,t){(t.visible==null||t.visible)&&e.show()}function woe(e,t){}function _oe(e){}function xoe(){}const Soe=()=>Nz.DefaultEventPriority,Coe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:uoe,appendChildToContainer:coe,appendInitialChild:Hne,cancelTimeout:noe,clearContainer:_oe,commitMount:goe,commitTextUpdate:hoe,commitUpdate:voe,createInstance:Wne,createTextInstance:$ne,detachDeletedInstance:xoe,finalizeInitialChildren:Gne,getChildHostContext:toe,getCurrentEventPriority:Soe,getPublicInstance:Kne,getRootHostContext:eoe,hideInstance:moe,hideTextInstance:yoe,idlePriority:fp.unstable_IdlePriority,insertBefore:Iz,insertInContainerBefore:doe,isPrimaryRenderer:aoe,noTimeout:ooe,now:fp.unstable_now,prepareForCommit:qne,preparePortalMount:Yne,prepareUpdate:Xne,removeChild:foe,removeChildFromContainer:poe,resetAfterCommit:Qne,resetTextContent:Zne,run:fp.unstable_runWithPriority,scheduleTimeout:roe,shouldDeprioritizeSubtree:Jne,shouldSetTextContent:ioe,supportsMutation:soe,unhideInstance:boe,unhideTextInstance:woe,warnsIfNotActing:loe},Symbol.toStringTag,{value:"Module"}));var Poe=Object.defineProperty,Toe=Object.defineProperties,Ooe=Object.getOwnPropertyDescriptors,FE=Object.getOwnPropertySymbols,koe=Object.prototype.hasOwnProperty,Eoe=Object.prototype.propertyIsEnumerable,jE=(e,t,r)=>t in e?Poe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))koe.call(t,r)&&jE(e,r,t[r]);if(FE)for(var r of FE(t))Eoe.call(t,r)&&jE(e,r,t[r]);return e},Moe=(e,t)=>Toe(e,Ooe(t)),VE,BE;typeof window<"u"&&((VE=window.document)!=null&&VE.createElement||((BE=window.navigator)==null?void 0:BE.product)==="ReactNative")?X.useLayoutEffect:X.useEffect;function Lz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Lz(n,t,r);if(o)return o;n=n.sibling}}function Dz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const UE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=UE;return}return UE.apply(this,arguments)};const KT=Dz(X.createContext(null));class Fz extends X.Component{render(){return X.createElement(KT.Provider,{value:this._reactInternals},this.props.children)}}function Roe(){const e=X.useContext(KT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=X.useId();return X.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Lz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Noe(){const e=Roe(),[t]=X.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==KT&&!t.has(o)&&t.set(o,X.useContext(Dz(o)))}r=r.return}return t}function Aoe(){const e=Noe();return X.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>X.createElement(t,null,X.createElement(r.Provider,Moe(zE({},n),{value:e.get(r)}))),t=>X.createElement(Fz,zE({},t))),[e])}function Ioe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Loe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Ioe(e),i=Aoe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Rv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=fg.createContainer(r.current,Nz.LegacyRoot,!1,null),fg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Rv.isBrowser&&(a(null),fg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),O5(r.current,e,o),fg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},Wx="Layer",HE="Group",Doe="Rect",ab="Circle",Foe="Line",joe="Image",WE="Text",fg=jne(Coe);fg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const zoe=Or.forwardRef((e,t)=>Or.createElement(Fz,{},Or.createElement(Loe,{...e,forwardedRef:t})));function Voe(e){window.open(e,"_blank","noreferrer")}function w4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Boe(e,t){return t.includes(e)}const Fg="https://roguewar.org",Uoe=2.5,Hoe=1,Woe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{const v=e.isCapital?Uoe:Hoe,b=(U,q)=>[...U].sort((J,Q)=>Q.control-J.control).map(J=>{const Q=w4(J.Name,q);return{name:(Q==null?void 0:Q.prettyName)||J.Name,control:J.control,players:J.ActivePlayers}}),S=U=>`${U.name} ${U.control}% · P${U.players}`,w=e.factions.some(U=>U.ActivePlayers>0),P=n.flashActivePlayes&&w,y=P?1.25:1,C=(s?v*3:v)*y/t,h=Number(e.posX),p=-Number(e.posY),c=P?Math.min(1,d+.25):d,g=C*2.5,m=Math.min(.34,c*.4),_=Math.min(.4,c*.4),T=C*.45,k=Math.min(.42,c*.45),R=C*.35,E=`rgba(255,255,255,${k})`,A="rgba(255,255,255,0)",F=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",V=U=>{if(!U)return"None";const J=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([Q])=>U[Q]).map(([,Q])=>Q);return J.length?J.join(", "):"None"},B=(U=!1)=>{var ne;const q=((ne=w4(e.owner,r))==null?void 0:ne.prettyName)||"Unknown",J=b(e.factions,r),Q=J.slice(0,3),W=Math.max(0,J.length-Q.length),Y=V(e.state),re=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${q}`,"Control:",...Q.map(S),...W>0?[`+${W} more`]:[],`Damage: ${F}`];return Y!=="None"&&re.push(`State: ${Y}`),U&&re.push("[Tap to open]"),{text:re.join(` +`),controlItems:J}};return Le.jsxs(Le.Fragment,{children:[P&&Le.jsx(ab,{x:h,y:p,fill:e.factionColour,radius:g,opacity:m,listening:!1}),P&&Le.jsx(ab,{x:h,y:p,radius:C,stroke:"#ffffff",strokeWidth:Math.max(.2,C*.14),opacity:_,listening:!1}),Le.jsx(ab,{x:h,y:p,fill:e.factionColour,radius:C,hitStrokeWidth:3,opacity:c,onClick:U=>{U.cancelBubble=!0,e.sysUrl&&Voe(`${Fg}${e.sysUrl}`)},onMouseEnter:U=>{const q=U.target.getStage();if(!q)return;const J=q.getPointerPosition();if(!J)return;const Q=B();o(Q.text,J.x,J.y,q.x(),q.y(),void 0,Q.controlItems)},onMouseLeave:i,onTouchStart:U=>{if(U.evt.touches.length===1){U.evt.preventDefault();const q=U.target.getStage();if(!q)return;const J=q.getRelativePointerPosition();if(!J)return;if(a.current&&l.current===e.name){window.location.href=`${Fg}${e.sysUrl}`;return}const Q=B(!0);o(Q.text,J.x,J.y,void 0,void 0,()=>{window.location.href=`${Fg}${e.sysUrl}`},Q.controlItems),l.current=e.name}}}),P&&Le.jsx(ab,{x:h-R,y:p-R,radius:T,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:T,fillRadialGradientColorStops:[0,E,1,A],listening:!1})]})},$oe=X.memo(Woe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Goe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jz(e){var t=Goe(e,"string");return vd(t)=="symbol"?t:t+""}function pg(e,t,r){return(t=jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(kh,--ri):0,rh--,nn===10&&(rh=1,E5--),nn}function Ti(){return nn=ri2||Av(nn)>3?"":" "}function _ie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return hm(e,Zb()+(t<6&&bl()==32&&Ti()==32))}function C4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&C4(nn);break;case 40:e===41&&C4(e);break;case 92:Ti();break}return ri}function xie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+hm(t,ri-1)+"*"+k5(e===47?e:Ti())}function Sie(e){for(;!Av(bl());)Ti();return hm(e,ri)}function Cie(e){return Gz(e1("",null,null,null,[""],e=$z(e),0,[0],e))}function e1(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,b=a,S=0,w=0,P=0,y=1,C=1,h=1,p=0,c="",g=o,m=i,_=n,T=c;C;)switch(P=p,p=Ti()){case 40:if(P!=108&&$n(T,b-1)==58){S4(T+=Kt(Jb(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:T+=Jb(p);break;case 9:case 10:case 13:case 32:T+=wie(P);break;case 92:T+=_ie(Zb()-1,7);continue;case 47:switch(bl()){case 42:case 47:lb(Pie(xie(Ti(),Zb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*h;case 125*y:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+v:h==-1&&(T=Kt(T,/\f/g,"")),w>0&&cl(T)-b&&lb(w>32?qE(T+";",n,r,b-1):qE(Kt(T," ","")+";",n,r,b-2),s);break;case 59:T+=";";default:if(lb(_=KE(T,t,r,d,v,o,l,c,g=[],m=[],b),i),p===123)if(v===0)e1(T,t,_,_,g,i,b,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:e1(e,_,_,n&&lb(KE(e,_,_,0,0,o,l,c,o,g=[],b),m),o,m,b,l,n?g:m);break;default:e1(T,_,_,_,[""],m,0,l,m)}}d=v=w=0,y=h=1,c=T="",b=a;break;case 58:b=1+cl(T),w=P;default:if(y<1){if(p==123)--y;else if(p==125&&y++==0&&bie()==125)continue}switch(T+=k5(p),p*y){case 38:h=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*h,h=1;break;case 64:bl()===45&&(T+=Jb(Ti())),S=bl(),v=b=cl(c=T+=Sie(Zb())),p++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function KE(e,t,r,n,o,i,a,l,s,d,v){for(var b=o-1,S=o===0?i:[""],w=QT(S),P=0,y=0,C=0;P0?S[h]+" "+p:Kt(p,/&\f/g,S[h])))&&(s[C++]=c);return M5(e,t,r,o===0?YT:l,s,d,v)}function Pie(e,t,r){return M5(e,t,r,Bz,k5(yie()),Nv(e,2,-2),0)}function qE(e,t,r,n){return M5(e,t,r,XT,Nv(e,0,n),Nv(e,n+1,-1),n)}function Ep(e,t){for(var r="",n=QT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Kt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+Tw+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~S4(e,"stretch")?Kz(Kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~S4(e,"!important")&&10))){case 107:return Kt(e,":",":"+Gt)+e;case 101:return Kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+($n(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+so+e+e}return e}var Lie=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case XT:t.return=Kz(t.value,t.length);break;case Uz:return Ep([J0(t,{value:Kt(t.value,"@","@"+Gt)})],o);case YT:if(t.length)return mie(t.props,function(i){switch(vie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ep([J0(t,{props:[Kt(i,/:(read-\w+)/,":"+Tw+"$1")]})],o);case"::placeholder":return Ep([J0(t,{props:[Kt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),J0(t,{props:[Kt(i,/:(plac\w+)/,":"+Tw+"$1")]}),J0(t,{props:[Kt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Die=[Lie],Fie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Die,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),h=1;h=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Xie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qie=/[A-Z]|^ms/g,Zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jz=function(t){return t.charCodeAt(1)===45},XE=function(t){return t!=null&&typeof t!="boolean"},$x=Eie(function(e){return Jz(e)?e:e.replace(Qie,"-$&").toLowerCase()}),QE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Xie[t]!==1&&!Jz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Iv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return Jie(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Iv(e,t,d)}break}}var v=r;return v}function Jie(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function pae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function B5(){return typeof window<"u"}function rV(e){return oV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nV(e){var t;return(t=(oV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oV(e){return B5()?e instanceof Node||e instanceof ms(e).Node:!1}function hae(e){return B5()?e instanceof Element||e instanceof ms(e).Element:!1}function nO(e){return B5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function JE(e){return!B5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const gae=new Set(["inline","contents"]);function iV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=oO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!gae.has(o)}function vae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mae=new Set(["html","body","#document"]);function yae(e){return mae.has(rV(e))}function oO(e){return ms(e).getComputedStyle(e)}function bae(e){if(rV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JE(e)&&e.host||nV(e);return JE(t)?t.host:t}function aV(e){const t=bae(e);return yae(t)?e.ownerDocument?e.ownerDocument.body:e.body:nO(t)&&iV(t)?t:aV(t)}function Ew(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=aV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=T4(a);return t.concat(a,a.visualViewport||[],iV(o)?o:[],l&&r?Ew(l):[])}return t.concat(o,Ew(o,[],r))}function T4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wae(e){const t=oO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=nO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=Ow(r)!==i||Ow(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function iO(e){return hae(e)?e:e.contextElement}function e9(e){const t=iO(e);if(!nO(t))return kw(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=wae(t);let a=(i?Ow(r.width):r.width)/n,l=(i?Ow(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _ae=kw(0);function xae(e){const t=ms(e);return!vae()||!t.visualViewport?_ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sae(e,t,r){return!1}function t9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=iO(e);let a=kw(1);t&&(a=e9(e));const l=Sae()?xae(i):kw(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=ms(i),w=n;let P=S,y=T4(P);for(;y&&n&&w!==P;){const C=e9(y),h=y.getBoundingClientRect(),p=oO(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=ms(y),y=T4(P)}}return pae({width:v,height:b,x:s,y:d})}function lV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cae(e,t){let r=null,n;const o=nV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:b,width:S,height:w}=d;if(l||t(),!S||!w)return;const P=sb(b),y=sb(o.clientWidth-(v+S)),C=sb(o.clientHeight-(b+w)),h=sb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-h+"px",threshold:fae(0,dae(1,s))||1};let g=!0;function m(_){const T=_[0].intersectionRatio;if(T!==s){if(!g)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!lV(d,e.getBoundingClientRect())&&a(),g=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Pae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=iO(e),v=o||i?[...d?Ew(d):[],...Ew(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?Cae(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?t9(e):null;s&&C();function C(){const h=t9(e);y&&!lV(y,h)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}var O4=X.useLayoutEffect,Tae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mw=function(){};function Oae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function kae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Eae(e){return U5(e)?window.innerHeight:e.clientHeight}function uV(e){return U5(e)?window.pageYOffset:e.scrollTop}function Rw(e,t){if(U5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Mae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Rae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function ub(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Mw,o=uV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Rae(l,o,i,r);Rw(e,d),lr.bottom?Rw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&ub(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&ub(s,E,F);var V=a?T-g:R-g;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,U=a?_:k;return U>=n&&(B=Math.min(U-g-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Rw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&ub(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&_>=n){var q=t;return(!a&&k>=n||a&&_>=n)&&(q=a?_-m:k-m),i&&ub(s,A,F),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Uae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dV=function(t){return t==="auto"?"bottom":t},Hae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},pg(n,Uae(o),"100%"),pg(n,"position","absolute"),pg(n,"width","100%"),pg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},fV=X.createContext(null),Wae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=X.useContext(fV)||{},v=d.setPortalPlacement,b=X.useRef(null),S=X.useState(o),w=as(S,2),P=w[0],y=w[1],C=X.useState(null),h=as(C,2),p=h[0],c=h[1],g=s.spacing.controlHeight;return O4(function(){var m=b.current;if(m){var _=a==="fixed",T=l&&!_,k=Bae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:_,controlHeight:g});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,g]),r({ref:b,placerProps:st(st({},t),{},{placement:p||dV(i),maxHeight:P})})},$ae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return it("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Gae=$ae,Kae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},qae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return it("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},pV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Yae=pV,Xae=pV,Qae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,zae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Zae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Vae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},Jae=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},ele=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=X.useRef(null),d=X.useRef(null),v=X.useState(dV(a)),b=as(v,2),S=b[0],w=b[1],P=X.useMemo(function(){return{setPortalPlacement:w}},[]),y=X.useState(null),C=as(y,2),h=C[0],p=C[1],c=X.useCallback(function(){if(o){var T=Nae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(h==null?void 0:h.offset)||T.left!==(h==null?void 0:h.rect.left)||T.width!==(h==null?void 0:h.rect.width))&&p({offset:R,rect:T})}},[o,l,S,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);O4(function(){c()},[c]);var g=X.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Pae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);O4(function(){g()},[g]);var m=X.useCallback(function(T){s.current=T,g()},[g]);if(!r&&l!=="fixed"||!h)return null;var _=it("div",dt({ref:m},Hr(st(st({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(fV.Provider,{value:P},r?Yw.createPortal(_,r):_)},tle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},rle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return it("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},nle=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ole=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return it("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ile=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ale=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},i9,lle=["size"],sle=["innerProps","isRtl","size"],ule={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hV=function(t){var r=t.size,n=Ps(t,lle);return it("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ule},n))},aO=function(t){return it(hV,dt({size:20},t),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gV=function(t){return it(hV,dt({size:20},t),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},cle=vV,dle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||it(gV,null))},fle=vV,ple=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||it(aO,null))},hle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},gle=function(t){var r=t.innerProps;return it("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},vle=uae(i9||(i9=cae([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),mle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},Gx=function(t){var r=t.delay,n=t.offset;return it("span",{css:rO({animation:"".concat(vle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yle=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,sle);return it("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),it(Gx,{delay:0,offset:n}),it(Gx,{delay:160,offset:!0}),it(Gx,{delay:320,offset:!n}))},ble=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return it("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},_le=wle,xle=["data"],Sle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Cle=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,b=t.selectProps;return it("div",dt({},Hr(t,"group",{group:!0}),s),it(a,dt({},l,{selectProps:b,theme:v,getStyles:o,getClassNames:i,cx:n}),d),it("div",null,r))},Ple=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Tle=function(t){var r=sV(t);r.data;var n=Ps(r,xle);return it("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},Ole=Cle,kle=["innerRef","isDisabled","isHidden","inputClassName"],Ele=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Mle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},mV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mV)},Rle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},mV)},Nle=function(t){var r=t.cx,n=t.value,o=sV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,kle);return it("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),it("input",dt({className:r({input:!0},s),ref:i,style:Rle(l),disabled:a},d)))},Ale=Nle,Ile=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Lle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Dle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},yV=function(t){var r=t.children,n=t.innerProps;return it("div",n,r)},Fle=yV,jle=yV;function zle(e){var t=e.children,r=e.innerProps;return it("div",dt({role:"button"},r),t||it(aO,{size:14}))}var Vle=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,b=n.Remove;return it(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},it(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),it(b,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ble=Vle,Ule=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Hle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return it("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},Wle=Hle,$le=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Gle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},Kle=Gle,qle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Yle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return it("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Xle=Yle,Qle={ClearIndicator:ple,Control:_le,DropdownIndicator:dle,DownChevron:gV,CrossIcon:aO,Group:Ole,GroupHeading:Tle,IndicatorsContainer:ale,IndicatorSeparator:gle,Input:Ale,LoadingIndicator:yle,Menu:Gae,MenuList:qae,MenuPortal:ele,LoadingMessage:Zae,NoOptionsMessage:Qae,MultiValue:Ble,MultiValueContainer:Fle,MultiValueLabel:jle,MultiValueRemove:zle,Option:Wle,Placeholder:Kle,SelectContainer:rle,SingleValue:Xle,ValueContainer:ole},Zle=function(t){return st(st({},Qle),t.components)},a9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Jle(e,t){return!!(e===t||a9(e)&&a9(t))}function ese(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,b=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(b(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",w="".concat(d?" selected":"").concat(S);return"".concat(a).concat(w,", ").concat(b(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ise=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,b=s.ariaLiveMessages,S=s.getOptionLabel,w=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,h=s.menuIsOpen,p=s.options,c=s.screenReaderStatus,g=s.tabSelectsValue,m=s.isLoading,_=s["aria-label"],T=s["aria-live"],k=X.useMemo(function(){return st(st({},ose),b||{})},[b]),R=X.useMemo(function(){var U="";if(r&&k.onChange){var q=r.option,J=r.options,Q=r.removedValue,W=r.removedValues,Y=r.value,re=function(oe){return Array.isArray(oe)?null:oe},ne=Q||q||re(Y),se=ne?S(ne):"",ve=J||W||void 0,we=ve?ve.map(S):[],ce=st({isDisabled:ne&&y(ne,l),label:se,labels:we},r);U=k.onChange(ce)}return U},[r,k,y,l,S]),E=X.useMemo(function(){var U="",q=n||o,J=!!(n&&l&&l.includes(n));if(q&&k.onFocus){var Q={focused:q,label:S(q),isDisabled:y(q,l),isSelected:J,options:i,context:q===n?"menu":"value",selectValue:l,isAppleDevice:v};U=k.onFocus(Q)}return U},[n,o,S,y,k,i,l,v]),A=X.useMemo(function(){var U="";if(h&&p.length&&!m&&k.onFilter){var q=c({count:i.length});U=k.onFilter({inputValue:w,resultsMessage:q})}return U},[i,w,h,k,p,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=X.useMemo(function(){var U="";if(k.guidance){var q=o?"value":h?"menu":"input";U=k.guidance({"aria-label":_,context:q,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:g,isInitialFocus:F})}return U},[_,n,o,P,y,C,h,k,l,g,F]),B=it(X.Fragment,null,it("span",{id:"aria-selection"},R),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},A),it("span",{id:"aria-guidance"},V));return it(X.Fragment,null,it(l9,{id:d},F&&B),it(l9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},ase=ise,k4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],lse=new RegExp("["+k4.map(function(e){return e.letters}).join("")+"]","g"),bV={};for(var Kx=0;Kx-1}},dse=["innerRef"];function fse(e){var t=e.innerRef,r=Ps(e,dse),n=jae(r,"onExited","in","enter","exit","appear");return it("input",dt({ref:t},n,{css:rO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var pse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function hse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=X.useRef(!1),l=X.useRef(!1),s=X.useRef(0),d=X.useRef(null),v=X.useCallback(function(C,h){if(d.current!==null){var p=d.current,c=p.scrollTop,g=p.scrollHeight,m=p.clientHeight,_=d.current,T=h>0,k=g-m-c,R=!1;k>h&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&h>k?(r&&!a.current&&r(C),_.scrollTop=g,R=!0,a.current=!0):!T&&-h>c&&(o&&!l.current&&o(C),_.scrollTop=0,R=!0,l.current=!0),R&&pse(C)}},[r,n,o,i]),b=X.useCallback(function(C){v(C,C.deltaY)},[v]),S=X.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),w=X.useCallback(function(C){var h=s.current-C.changedTouches[0].clientY;v(C,h)},[v]),P=X.useCallback(function(C){if(C){var h=Lae?{passive:!1}:!1;C.addEventListener("wheel",b,h),C.addEventListener("touchstart",S,h),C.addEventListener("touchmove",w,h)}},[w,S,b]),y=X.useCallback(function(C){C&&(C.removeEventListener("wheel",b,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",w,!1))},[w,S,b]);return X.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var u9=["boxSizing","height","overflow","paddingRight","position"],c9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function d9(e){e.cancelable&&e.preventDefault()}function f9(e){e.stopPropagation()}function p9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function h9(){return"ontouchstart"in window||navigator.maxTouchPoints}var g9=!!(typeof window<"u"&&window.document&&window.document.createElement),eg=0,Ff={capture:!1,passive:!1};function gse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=X.useRef({}),i=X.useRef(null),a=X.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;if(n&&u9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&eg<1){var b=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,w=window.innerWidth-S+b||0;Object.keys(c9).forEach(function(P){var y=c9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(w,"px"))}d&&h9()&&(d.addEventListener("touchmove",d9,Ff),s&&(s.addEventListener("touchstart",p9,Ff),s.addEventListener("touchmove",f9,Ff))),eg+=1}},[n]),l=X.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;eg=Math.max(eg-1,0),n&&eg<1&&u9.forEach(function(b){var S=o.current[b];v&&(v[b]=S)}),d&&h9()&&(d.removeEventListener("touchmove",d9,Ff),s&&(s.removeEventListener("touchstart",p9,Ff),s.removeEventListener("touchmove",f9,Ff)))}},[n]);return X.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var vse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},mse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=hse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=gse({isEnabled:r}),b=function(w){d(w),v(w)};return it(X.Fragment,null,r&&it("div",{onClick:vse,css:mse}),t(b))}var bse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},wse=function(t){var r=t.name,n=t.onFocus;return it("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:bse,value:"",onChange:function(){}})},_se=wse;function lO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xse(){return lO(/^iPhone/i)}function _V(){return lO(/^Mac/i)}function Sse(){return lO(/^iPad/i)||_V()&&navigator.maxTouchPoints>1}function Cse(){return xse()||Sse()}function Pse(){return _V()||Cse()}var Tse=function(t){return t.label},Ose=function(t){return t.label},kse=function(t){return t.value},Ese=function(t){return!!t.isDisabled},Mse={clearIndicator:fle,container:tle,control:ble,dropdownIndicator:cle,group:Sle,groupHeading:Ple,indicatorsContainer:ile,indicatorSeparator:hle,input:Ele,loadingIndicator:mle,loadingMessage:Xae,menu:Hae,menuList:Kae,menuPortal:Jae,multiValue:Ile,multiValueLabel:Lle,multiValueRemove:Dle,noOptionsMessage:Yae,option:Ule,placeholder:$le,singleValue:qle,valueContainer:nle},Rse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Nse=4,xV=4,Ase=38,Ise=xV*2,Lse={baseUnit:xV,controlHeight:Ase,menuGutter:Ise},Xx={borderRadius:Nse,colors:Rse,spacing:Lse},Dse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:o9(),captureMenuScroll:!o9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cse(),formatGroupLabel:Tse,getOptionLabel:Ose,getOptionValue:kse,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ese,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Aae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function v9(e,t,r,n){var o=PV(e,t,r),i=TV(e,t,r),a=CV(e,t),l=Nw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function t1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return v9(e,a,t,l)}).filter(function(a){return y9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=v9(e,r,t,n);return y9(e,i)?i:void 0}).filter(Dae)}function SV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,qT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function m9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,qT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function Fse(e,t){return SV(t1(e,t))}function y9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!kV(e)||!i)&&OV(e,{label:a,value:l,data:o},n)}function jse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Qx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},CV=function(t,r){return t.getOptionLabel(r)},Nw=function(t,r){return t.getOptionValue(r)};function PV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function TV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Nw(e,t);return r.some(function(o){return Nw(e,o)===n})}function OV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var kV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Vse=1,EV=(function(e){tie(r,e);var t=oie(r);function r(n){var o;if(Joe(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,b=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),b(s,d)},o.setValue=function(s,d,v){var b=o.props,S=b.closeMenuOnSelect,w=b.isMulti,P=b.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!w}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,b=d.isMulti,S=d.name,w=o.state.selectValue,P=b&&o.isOptionSelected(s,w),y=o.isOptionDisabled(s,w);if(P){var C=o.getOptionValue(s);o.setValue(w.filter(function(h){return o.getOptionValue(h)!==C}),"deselect-option",s)}else if(!y)b?o.setValue([].concat(qT(w),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,b=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==b}),w=db(d,S,S[0]||null);o.onChange(w,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(db(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],b=d.slice(0,d.length-1),S=db(s,b,b[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Qx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return m9(t1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;vw||S>w}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return kV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,b=d.backspaceRemovesValue,S=d.escapeClearsValue,w=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,h=d.onKeyDown,p=d.tabSelectsValue,c=d.openMenuOnFocus,g=o.state,m=g.focusedOption,_=g.focusedValue,T=g.selectValue;if(!y&&!(typeof h=="function"&&(h(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||w)return;o.focusValue("previous");break;case"ArrowRight":if(!v||w)return;o.focusValue("next");break;case"Delete":case"Backspace":if(w)return;if(_)o.removeValue(_);else{if(!b)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!p||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:w}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(w)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Vse),o.state.selectValue=r9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Qx(i,a[l])}return o}return eie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&n9(this.menuListRef,this.focusedOptionRef),Pse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(n9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var b=d.indexOf(l[0]);b>-1&&(v=b)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Xx):st(st({},Xx),this.props.theme):Xx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,b=this.props,S=b.isMulti,w=b.isRtl,P=b.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:w,options:P,selectOption:d,selectProps:b,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return PV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return TV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return OV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,b=o.menuIsOpen,S=o.required,w=this.getComponents(),P=w.Input,y=this.state,C=y.inputIsHidden,h=y.ariaSelection,p=this.commonProps,c=l||this.getElementId("input"),g=st(st(st({"aria-autocomplete":"list","aria-expanded":b,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},b&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?X.createElement(P,dt({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},g)):X.createElement(fse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mw,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},g))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,b=i.Placeholder,S=this.commonProps,w=this.props,P=w.controlShouldRenderValue,y=w.isDisabled,C=w.isMulti,h=w.inputValue,p=w.placeholder,c=this.state,g=c.selectValue,m=c.focusedValue,_=c.isFocused;if(!this.hasValue()||!P)return h?null:X.createElement(b,dt({},S,{key:"placeholder",isDisabled:y,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),p);if(C)return g.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return X.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(h)return null;var T=g[0];return X.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var b={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:b,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var b={"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:b,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return X.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,b=i.LoadingMessage,S=i.NoOptionsMessage,w=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,h=C.captureMenuScroll,p=C.inputValue,c=C.isLoading,g=C.loadingMessage,m=C.minMenuHeight,_=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,U=C.onMenuScrollToBottom;if(!T)return null;var q=function(se,ve){var we=se.type,ce=se.data,ee=se.isDisabled,oe=se.isSelected,ue=se.label,Se=se.value,Ce=y===ce,Me=ee?void 0:function(){return o.onOptionHover(ce)},Ie=ee?void 0:function(){return o.selectOption(ce)},Re="".concat(o.getElementId("option"),"-").concat(ve),ye={id:Re,onClick:Ie,onMouseMove:Me,onMouseOver:Me,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:oe};return X.createElement(w,dt({},P,{innerProps:ye,data:ce,isDisabled:ee,isSelected:oe,key:Re,label:ue,type:we,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(se.data,"menu"))},J;if(this.hasOptions())J=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var se=ne.data,ve=ne.options,we=ne.index,ce="".concat(o.getElementId("group"),"-").concat(we),ee="".concat(ce,"-heading");return X.createElement(a,dt({},P,{key:ce,data:se,options:ve,Heading:l,headingProps:{id:ee,data:ne.data},label:o.formatGroupLabel(ne.data)}),ne.options.map(function(oe){return q(oe,"".concat(we,"-").concat(oe.index))}))}else if(ne.type==="option")return q(ne,"".concat(ne.index))});else if(c){var Q=g({inputValue:p});if(Q===null)return null;J=X.createElement(b,P,Q)}else{var W=V({inputValue:p});if(W===null)return null;J=X.createElement(S,P,W)}var Y={minMenuHeight:m,maxMenuHeight:_,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},re=X.createElement(Wae,dt({},P,Y),function(ne){var se=ne.ref,ve=ne.placerProps,we=ve.placement,ce=ve.maxHeight;return X.createElement(s,dt({},P,Y,{innerRef:se,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:we}),X.createElement(yse,{captureEnabled:h,onTopArrive:B,onBottomArrive:U,lockEnabled:A},function(ee){return X.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),ee(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),J)}))});return E||R==="fixed"?X.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),re):re}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,b=this.state.selectValue;if(v&&!this.hasValue()&&!l)return X.createElement(_se,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=b.map(function(y){return o.getOptionValue(y)}).join(a);return X.createElement("input",{name:d,type:"hidden",value:S})}else{var w=b.length>0?b.map(function(y,C){return X.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):X.createElement("input",{name:d,type:"hidden",value:""});return X.createElement("div",null,w)}else{var P=b[0]?this.getOptionValue(b[0]):"";return X.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,b=this.getFocusableOptions();return X.createElement(ase,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:b,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,b=d.id,S=d.isDisabled,w=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return X.createElement(l,dt({},y,{className:v,innerProps:{id:b,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),X.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:w}),X.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),X.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,b=i.prevWasFocused,S=i.instancePrefix,w=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,h=o.isMulti,p=r9(P),c={};if(a&&(P!==a.value||w!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var g=y?Fse(o,p):[],m=y?m9(t1(o,p),"".concat(S,"-option")):[],_=l?jse(i,p):null,T=zse(i,g),k=Qx(m,T);c={selectValue:p,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:_,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&b;return v&&!A&&(E={value:db(h,p,p[0]||null),options:p,action:"initial-input-focus"},A=!b),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(X.Component);EV.defaultProps=Dse;var Bse=X.forwardRef(function(e,t){var r=Zoe(e);return X.createElement(EV,dt({ref:t},r))}),Use=Bse;/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wse=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),b9=e=>{const t=Wse(e);return t.charAt(0).toUpperCase()+t.slice(1)},MV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),$se=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Gse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kse=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>X.createElement("svg",{ref:s,...Gse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:MV("lucide",o),...!i&&!$se(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>X.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const RV=(e,t)=>{const r=X.forwardRef(({className:n,...o},i)=>X.createElement(Kse,{ref:i,iconNode:t,className:MV(`lucide-${Hse(b9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=b9(e),r};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Yse=RV("chevrons-down",qse);/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Qse=RV("chevrons-up",Xse),Zse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=X.useState(!1),[l,s]=X.useState(typeof window<"u"&&window.innerWidth>=768);X.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),b=c=>o(c.map(g=>g.value)),S=c=>o(n.filter(g=>g!==c)),w=X.useRef(null),[P,y]=X.useState("32px"),[C,h]=X.useState(!1);X.useEffect(()=>{const c=w.current;if(!c)return;const g=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${g}px`,requestAnimationFrame(()=>{const _=Math.max(m,125);y(`${i?_:32}px`)})})},[i,n]);const p={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return Le.jsxs("div",{ref:w,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[Le.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?Le.jsx(Yse,{size:24}):Le.jsx(Qse,{size:24})}),i&&Le.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[Le.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:Le.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),Le.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:Le.jsxs("div",{style:{width:l?"50%":"100%"},children:[Le.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Le.jsx("div",{style:{flexGrow:1},children:Le.jsx(Use,{isMulti:!0,options:d,value:v,onChange:b,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,g)=>({...c,color:"black",backgroundColor:g.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),Le.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&h(!0),onMouseLeave:()=>l&&h(!1),onClick:()=>!l&&h(c=>!c),children:["i",C&&Le.jsx("div",{style:p,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&Le.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>Le.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,Le.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},Jse=e=>{const[t,r]=X.useState({visible:!1,text:"",x:0,y:0}),n=X.useCallback((i,a,l,s,d,v,b)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:b})},[e]),o=X.useCallback(()=>{r(i=>({...i,visible:!1}))},[]);return{tooltip:t,showTooltip:n,hideTooltip:o}},eue=()=>{const[e,t]=X.useState([]),[r,n]=X.useState({}),[o,i]=X.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${Fg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${Fg}/api/v1/starmap/warmap`).then(d=>d.json());t(s)}catch(s){console.error("Failed to fetch data:",s)}}}},tue={flashActivePlayes:!0},rue=()=>{const[e,t]=X.useState(tue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},nue=()=>{const[e,t]=X.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=eue(),{settings:l,setFlashActive:s}=rue(),d=X.useCallback(v=>v.map(b=>{const S=w4(b.owner,n),w=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...b,isCapital:Boe(b.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:w}}),[o,n]);return X.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function oue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=X.useRef(null),o=X.useRef(1),i=X.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=X.useState(1),s=X.useRef(!1),d=X.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=X.useRef(0),b=X.useCallback(P=>{const y=performance.now();if(y-v.current0?c/p:c*p;g=Math.max(e,Math.min(t,g));const m={x:(h.x-C.x())/c,y:(h.y-C.y())/c};o.current=g,i.current={x:h.x-m.x*g,y:h.y-m.y*g},C.scale({x:g,y:g}),C.position(i.current),d(C),l(g)},[t,e,d,r]),S=X.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),w=X.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:w,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:b,onDragMove:S}}}function iue(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function aue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=X.useState(!1),v=X.useRef(0),b=X.useRef(null),S=X.useRef(!1),w=X.useRef(null),P=X.useCallback(h=>{if(h.evt.touches.length===1){const p=h.target.className==="Circle",c=h.target.findAncestor("Label",!0);!p&&!c&&(i==null||i())}h.evt.touches.length===2&&(d(!0),v.current=iue(h.evt.touches[0],h.evt.touches[1]))},[i]),y=X.useCallback(h=>{if(h.evt.touches.length!==2||!s)return;h.evt.preventDefault();const[p,c]=h.evt.touches;w.current={touch1:{clientX:p.clientX,clientY:p.clientY},touch2:{clientX:c.clientX,clientY:c.clientY}},!S.current&&(S.current=!0,b.current=requestAnimationFrame(()=>{S.current=!1;const g=w.current;if(!g)return;const m=Math.hypot(g.touch2.clientX-g.touch1.clientX,g.touch2.clientY-g.touch1.clientY);if(!v.current){v.current=m;return}const _=e.current;if(!_)return;let T=m/v.current;if(Math.abs(1-T)<.02)return;T=Math.max(.9,Math.min(1.1,T));const k=t.current??1,R=Math.max(a,Math.min(l,k*T)),E=_.getPosition(),A=_.scaleX(),F={x:(g.touch1.clientX+g.touch2.clientX)/2,y:(g.touch1.clientY+g.touch2.clientY)/2},V={x:(F.x-E.x)/A,y:(F.y-E.y)/A},B={x:F.x-V.x*R,y:F.y-V.y*R};t.current=R,r.current=B,_.scale({x:R,y:R}),_.position(B),n(_),v.current=m}))},[s,l,a,r,n,t,o,e]),C=X.useCallback(h=>{h.evt.touches.length<2&&(d(!1),o(t.current),w.current=null,b.current!==null&&(cancelAnimationFrame(b.current),b.current=null),S.current=!1)},[]);return{isPinching:s,handlers:{onTouchStart:P,onTouchMove:y,onTouchEnd:C}}}const lue=.2,sue=25,uue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=nue(),[a,l]=X.useState(!1);return X.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?Le.jsx(cue,{systems:e,factions:t,settings:i}):null},cue=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:b}}=oue(),[S,w]=X.useState(""),[P,y]=X.useState(!1),C=S.trim().toLowerCase(),h=C.length>=2,[p,c]=X.useState([]),{tooltip:g,showTooltip:m,hideTooltip:_}=Jse(o),T=X.useRef(!1),k=X.useRef(null),{isPinching:R,handlers:{onTouchStart:E,onTouchMove:A,onTouchEnd:F}}=aue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:_,minScale:lue,maxScale:sue}),[V,B]=X.useState({width:window.innerWidth,height:window.innerHeight});X.useEffect(()=>{const ye=Ye=>{Ye.touches.length>1&&Ye.preventDefault()},ke=Ye=>{Ye.preventDefault()},ze={passive:!1};return document.addEventListener("touchmove",ye,ze),document.addEventListener("gesturestart",ke,ze),document.addEventListener("gesturechange",ke,ze),document.addEventListener("gestureend",ke,ze),()=>{document.removeEventListener("touchmove",ye,ze),document.removeEventListener("gesturestart",ke,ze),document.removeEventListener("gesturechange",ke,ze),document.removeEventListener("gestureend",ke,ze)}},[]),X.useEffect(()=>{const ye=ke=>ke.preventDefault();return window.addEventListener("gesturestart",ye,{passive:!1}),window.addEventListener("gesturechange",ye,{passive:!1}),window.addEventListener("gestureend",ye,{passive:!1}),()=>{window.removeEventListener("gesturestart",ye),window.removeEventListener("gesturechange",ye),window.removeEventListener("gestureend",ye)}},[]),X.useEffect(()=>{const ye=()=>{B({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",ye),()=>window.removeEventListener("resize",ye)},[]);const[U,q]=X.useState(null),[J,Q]=X.useState(!1);X.useEffect(()=>{const ye=new window.Image,ze=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";ye.src="/"+ze,ye.onload=()=>{q(ye),Q(!0)}},[]),X.useEffect(()=>{const ye=n.current;if(!ye)return;const ke=ye.container(),ze=Ye=>{Ye.cancelable&&Ye.preventDefault()};return ke.addEventListener("gesturestart",ze,{passive:!1}),ke.addEventListener("gesturechange",ze,{passive:!1}),ke.addEventListener("gestureend",ze,{passive:!1}),ke.addEventListener("touchmove",ze,{passive:!1}),()=>{ke.removeEventListener("gesturestart",ze),ke.removeEventListener("gesturechange",ze),ke.removeEventListener("gestureend",ze),ke.removeEventListener("touchmove",ze)}},[]);const W=window.innerWidth<768,Y=W?1.5/a.scale:2/a.scale,re=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,ne=6,se=10,ve=12,we=re*1.12,ce=re*.92,ee=we*1.2,oe=(ye,ke)=>{if(ke===0)return[{text:ye,fontStyle:"bold",fontSize:we}];const ze=ye.match(/^(Owner:|Damage:)\s*(.*)$/);if(ze){const[,Ye,Mt]=ze;return[{text:`${Ye} `,fontStyle:"bold",fontSize:ce},{text:Mt,fontStyle:"normal",fontSize:ce}]}return[{text:ye,fontStyle:/^(Control|State):/.test(ye)?"bold":"normal",fontSize:ce}]},ue=X.useMemo(()=>(g.text||"").split(` +`).map(ye=>ye.trimEnd()),[g.text]),Se=X.useMemo(()=>{const ye=ue.length?ue:[""],ke=ye.map((gt,xt)=>oe(gt,xt).reduce((zt,Ht)=>{const mt=new AE.Text({text:Ht.text,fontFamily:"Roboto Mono, monospace",fontSize:Ht.fontSize,fontStyle:Ht.fontStyle}),Ot=mt.width();return mt.destroy(),zt+Ot},0)),Ye=(ke.length?Math.max(...ke):0)+ne*2,Mt=ye.length*ee+ne*2;return{lines:ye,boxWidth:Ye,boxHeight:Mt}},[ue,re,ee]);X.useEffect(()=>{g.visible&&y(!1)},[g.visible,g.text]),X.useEffect(()=>{T.current=g.visible,g.visible||(k.current=null)},[g.visible]);const Ce=X.useMemo(()=>{var zt,Ht;const ye=(zt=g.text)==null?void 0:zt.trim();if(!ye)return{title:"",subtitle:"",details:[]};const ke=ye.split(` +`).map(mt=>mt.trim()).filter(mt=>mt&&mt!=="[Tap to open]"),ze=ke[0]??"",Ye=(Ht=ke[1])!=null&&Ht.startsWith("(")?ke[1]:"",Mt=ke.slice(Ye?2:1),gt=[];let xt=!1;for(const mt of Mt){if(mt==="Control:"){xt=!0;continue}if(xt){if(!/^[A-Za-z ]+:\s/.test(mt))continue;xt=!1}gt.push(mt)}return{title:ze,subtitle:Ye,details:gt}},[g.text]),Me=X.useMemo(()=>[...g.controlItems||[]].sort((ye,ke)=>ke.control-ye.control),[g.controlItems]),Ie=P?Me:Me.slice(0,3),Re=Math.max(0,Me.length-3);return Le.jsxs(Le.Fragment,{children:[Le.jsxs(zoe,{width:V.width,height:V.height,draggable:!R,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:b,onTouchStart:E,onTouchMove:A,onTouchEnd:F,children:[Le.jsx(Wx,{cache:!0,children:J&&U?Le.jsx(joe,{image:U,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):Le.jsx(WE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),Le.jsx(Wx,{children:e.map((ye,ke)=>{var xt;const ze=((xt=t[ye.owner])==null?void 0:xt.prettyName)??ye.owner;if(!(!p.length||p.includes(ze)))return null;const Mt=ye.name.toLowerCase().includes(C),gt=h?Mt?1:.2:1;return Le.jsx($oe,{zoomScaleFactor:l<1?l:1,system:ye,factions:t,settings:r,showTooltip:m,hideTooltip:_,tooltipVisibleRef:T,touchedSystemNameRef:k,highlighted:h&&Mt,opacity:gt},ye.name||ke)})}),Le.jsx(Wx,{children:g.visible&&!W&&Le.jsxs(HE,{x:g.x,y:g.y,opacity:.75,scaleX:Y,scaleY:Y,children:[Le.jsx(Doe,{x:-Se.boxWidth/2,y:-(Se.boxHeight+se),width:Se.boxWidth,height:Se.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),Le.jsx(Foe,{points:[-ve/2,-se,0,0,ve/2,-se],fill:"white",closed:!0}),Se.lines.map((ye,ke)=>(()=>{const ze=oe(ye,ke);return Le.jsx(HE,{x:-Se.boxWidth/2+ne,y:-(Se.boxHeight+se-ne-ke*ee),listening:!1,children:ze.map((Ye,Mt)=>{const gt=ze.slice(0,Mt).reduce((xt,zt)=>{const Ht=new AE.Text({text:zt.text,fontFamily:"Roboto Mono, monospace",fontSize:zt.fontSize,fontStyle:zt.fontStyle}),mt=Ht.width();return Ht.destroy(),xt+mt},0);return Le.jsx(WE,{x:gt,y:0,text:Ye.text,fontFamily:"Roboto Mono, monospace",fontSize:Ye.fontSize,fontStyle:Ye.fontStyle,fill:"black",listening:!1},`${Ye.text}-${Mt}`)})},`${ye}-${ke}`)})())]})})]}),W&&g.visible&&Le.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[Le.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:Ce.title}),Ce.subtitle&&Le.jsx("div",{style:{marginTop:"2px",opacity:.8},children:Ce.subtitle}),Le.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:Ce.details.map((ye,ke)=>Le.jsx("div",{children:ye},`${ye}-${ke}`))}),Me.length>0&&Le.jsxs("div",{style:{marginTop:"10px"},children:[Le.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),Le.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Ie.map(ye=>Le.jsx("div",{children:`${ye.name} ${ye.control}% · P${ye.players}`},`${ye.name}-${ye.control}-${ye.players}`))}),Re>0&&Le.jsx("button",{type:"button",onClick:()=>y(ye=>!ye),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),Le.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[g.onTouch&&Le.jsx("button",{type:"button",onClick:()=>{var ye;return(ye=g.onTouch)==null?void 0:ye.call(g)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),Le.jsx("button",{type:"button",onClick:_,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),Le.jsx(Zse,{searchTerm:S,setSearchTerm:w,factions:X.useMemo(()=>DJ(e,t),[e,t]),selectedFactions:p,setSelectedFactions:c})]})},w9=uue;function due(e){return Zw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function fue(){return Le.jsx(XW,{children:Le.jsx(pue,{})})}function pue(){const e=XR();return Bv(e)?Le.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",Le.jsx(k1,{to:"/",children:Le.jsxs("div",{className:"flex",children:[Le.jsx(due,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?Le.jsxs("div",{id:"error-page",children:[Le.jsx("h1",{children:"Oops! Unexpected Error"}),Le.jsx("p",{children:"Something went wrong."}),Le.jsx("p",{children:Le.jsx("i",{children:e.message})})]}):Le.jsx(Le.Fragment,{children:"Unknown error"})}const hue="/",gue=CW(qS(Le.jsxs(Le.Fragment,{children:[Le.jsx(KS,{path:"/",element:Le.jsx(w9,{}),errorElement:Le.jsx(fue,{})}),Le.jsx(KS,{index:!0,element:Le.jsx(w9,{})})]})),{basename:hue});function vue(){return Le.jsx(AW,{router:gue})}AR(document.getElementById("react-root")).render(Le.jsx(X.StrictMode,{children:Le.jsx(vue,{})})); diff --git a/map/assets/index-ZsKGIcJ-.js b/map/assets/index-ZsKGIcJ-.js deleted file mode 100644 index 24eef7e..0000000 --- a/map/assets/index-ZsKGIcJ-.js +++ /dev/null @@ -1,189 +0,0 @@ -function E4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var sO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var w9={exports:{}},Nw={},_9={exports:{}},Lt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Dv=Symbol.for("react.element"),RV=Symbol.for("react.portal"),NV=Symbol.for("react.fragment"),AV=Symbol.for("react.strict_mode"),IV=Symbol.for("react.profiler"),LV=Symbol.for("react.provider"),DV=Symbol.for("react.context"),FV=Symbol.for("react.forward_ref"),jV=Symbol.for("react.suspense"),zV=Symbol.for("react.memo"),VV=Symbol.for("react.lazy"),uO=Symbol.iterator;function BV(e){return e===null||typeof e!="object"?null:(e=uO&&e[uO]||e["@@iterator"],typeof e=="function"?e:null)}var x9={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S9=Object.assign,C9={};function oh(e,t,r){this.props=e,this.context=t,this.refs=C9,this.updater=r||x9}oh.prototype.isReactComponent={};oh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function P9(){}P9.prototype=oh.prototype;function M4(e,t,r){this.props=e,this.context=t,this.refs=C9,this.updater=r||x9}var R4=M4.prototype=new P9;R4.constructor=M4;S9(R4,oh.prototype);R4.isPureReactComponent=!0;var cO=Array.isArray,T9=Object.prototype.hasOwnProperty,N4={current:null},O9={key:!0,ref:!0,__self:!0,__source:!0};function k9(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)T9.call(t,n)&&!O9.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1>>1,ne=Q[te];if(0>>1;teo(we,X))ceo(J,we)?(Q[te]=J,Q[ce]=X,te=ce):(Q[te]=we,Q[ve]=X,te=ve);else if(ceo(J,X))Q[te]=J,Q[ce]=X,te=ce;else break e}}return W}function o(Q,W){var X=Q.sortIndex-W.sortIndex;return X!==0?X:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,w=null,S=3,_=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function p(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,Y(m);else{var W=r(d);W!==null&&re(p,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,g(k),k=-1),_=!0;var X=S;try{for(c(W),w=r(s);w!==null&&(!(w.expirationTime>W)||Q&&!A());){var te=w.callback;if(typeof te=="function"){w.callback=null,S=w.priorityLevel;var ne=te(w.expirationTime<=W);W=e.unstable_now(),typeof ne=="function"?w.callback=ne:w===r(s)&&n(s),c(W)}else n(s);w=r(s)}if(w!==null)var se=!0;else{var ve=r(d);ve!==null&&re(p,ve.startTime-W),se=!1}return se}finally{w=null,S=X,_=!1}}var b=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125te?(Q.sortIndex=X,t(d,Q),r(s)===null&&Q===r(d)&&(y?(g(k),k=-1):y=!0,re(p,X-te))):(Q.sortIndex=ne,t(s,Q),P||_||(P=!0,Y(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var X=S;S=W;try{return Q.apply(this,arguments)}finally{S=X}}}})(A9);N9.exports=A9;var fp=N9.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ZV=q,Oi=fp;function Le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zx=Object.prototype.hasOwnProperty,JV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fO={},pO={};function eB(e){return Zx.call(pO,e)?!0:Zx.call(fO,e)?!1:JV.test(e)?pO[e]=!0:(fO[e]=!0,!1)}function tB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rB(e,t,r,n){if(t===null||typeof t>"u"||tB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var I4=/[\-:]([a-z])/g;function L4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function D4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{v_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?tg(e):""}function nB(e){switch(e.tag){case 5:return tg(e.type);case 16:return tg("Lazy");case 13:return tg("Suspense");case 19:return tg("SuspenseList");case 0:case 2:case 15:return e=m_(e.type,!1),e;case 11:return e=m_(e.type.render,!1),e;case 1:return e=m_(e.type,!0),e;default:return""}}function rS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vf:return"Fragment";case zf:return"Portal";case Jx:return"Profiler";case F4:return"StrictMode";case eS:return"Suspense";case tS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case D9:return(e.displayName||"Context")+".Consumer";case L9:return(e._context.displayName||"Context")+".Provider";case j4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z4:return t=e.displayName||null,t!==null?t:rS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return rS(e(t))}catch{}}return null}function oB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rS(t);case 8:return t===F4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function j9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iB(e){var t=j9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hy(e){e._valueTracker||(e._valueTracker=iB(e))}function z9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=j9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function t1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function gO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function V9(e,t){t=t.checked,t!=null&&D4(e,"checked",t,!1)}function oS(e,t){V9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?iS(e,t.type,r):t.hasOwnProperty("defaultValue")&&iS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function iS(e,t,r){(t!=="number"||t1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rg=Array.isArray;function pp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aB=["Webkit","ms","Moz","O"];Object.keys(hg).forEach(function(e){aB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hg[t]=hg[e]})});function W9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hg.hasOwnProperty(e)&&hg[e]?(""+t).trim():t+"px"}function $9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=W9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var lB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function sS(e,t){if(t){if(lB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function uS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cS=null;function V4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dS=null,hp=null,gp=null;function bO(e){if(e=zv(e)){if(typeof dS!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=Fw(t),dS(e.stateNode,e.type,t))}}function G9(e){hp?gp?gp.push(e):gp=[e]:hp=e}function K9(){if(hp){var e=hp,t=gp;if(gp=hp=null,bO(e),t)for(e=0;e>>=0,e===0?32:31-(yB(e)/bB|0)|0}var vy=64,my=4194304;function ng(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function i1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=ng(l):(i&=a,i!==0&&(n=ng(i)))}else a=r&~o,a!==0?n=ng(a):i!==0&&(n=ng(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Fv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function SB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=vg),kO=" ",EO=!1;function pM(e,t){switch(e){case"keyup":return QB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bf=!1;function JB(e,t){switch(e){case"compositionend":return hM(t);case"keypress":return t.which!==32?null:(EO=!0,kO);case"textInput":return e=t.data,e===kO&&EO?null:e;default:return null}}function eU(e,t){if(Bf)return e==="compositionend"||!q4&&pM(e,t)?(e=dM(),hb=$4=au=null,Bf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AO(r)}}function yM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bM(){for(var e=window,t=t1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=t1(e.document)}return t}function Y4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uU(e){var t=bM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&yM(r.ownerDocument.documentElement,r)){if(n!==null&&Y4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=IO(r,i);var a=IO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Uf=null,mS=null,yg=null,yS=!1;function LO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yS||Uf==null||Uf!==t1(n)||(n=Uf,"selectionStart"in n&&Y4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yg&&$g(yg,n)||(yg=n,n=s1(mS,"onSelect"),0$f||(e.current=CS[$f],CS[$f]=null,$f--)}function ur(e,t){$f++,CS[$f]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Rp(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function c1(){mr(Xo),mr(ho)}function UO(e,t,r){if(ho.current!==Eu)throw Error(Le(168));ur(ho,t),ur(Xo,r)}function kM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Le(108,oB(e)||"Unknown",o));return Ar({},r,n)}function d1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function HO(e,t,r){var n=e.stateNode;if(!n)throw Error(Le(169));r?(e=kM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,jw=!1,R_=!1;function EM(e){ql===null?ql=[e]:ql.push(e)}function _U(e){jw=!0,EM(e)}function ju(){if(!R_&&ql!==null){R_=!0;var e=0,t=Xt;try{var r=ql;for(Xt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(g,T,c[k],p);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(g,T),h=i(E,h,k),b===null?m=E:b.sibling=E,b=E,T=R}if(k===c.length)return r(g,T),_r&&Fc(g,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(g,T,E.value,p);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(g,T),h=i(A,h,k),b===null?m=A:b.sibling=A,b=A,T=R}if(E.done)return r(g,T),_r&&Fc(g,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=w(g,E.value,p),E!==null&&(h=i(E,h,k),b===null?m=E:b.sibling=E,b=E);return _r&&Fc(g,k),m}for(T=n(g,T);!E.done;k++,E=c.next())E=_(T,g,k,E.value,p),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),h=i(E,h,k),b===null?m=E:b.sibling=E,b=E);return e&&T.forEach(function(F){return t(g,F)}),_r&&Fc(g,k),m}function C(g,h,c,p){if(typeof c=="object"&&c!==null&&c.type===Vf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case py:e:{for(var m=c.key,b=h;b!==null;){if(b.key===m){if(m=c.type,m===Vf){if(b.tag===7){r(g,b.sibling),h=o(b,c.props.children),h.return=g,g=h;break e}}else if(b.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&GO(m)===b.type){r(g,b.sibling),h=o(b,c.props),h.ref=A0(g,b,c),h.return=g,g=h;break e}r(g,b);break}else t(g,b);b=b.sibling}c.type===Vf?(h=Qc(c.props.children,g.mode,p,c.key),h.return=g,g=h):(p=xb(c.type,c.key,c.props,null,g.mode,p),p.ref=A0(g,h,c),p.return=g,g=p)}return a(g);case zf:e:{for(b=c.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===c.containerInfo&&h.stateNode.implementation===c.implementation){r(g,h.sibling),h=o(h,c.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=z_(c,g.mode,p),h.return=g,g=h}return a(g);case Qs:return b=c._init,C(g,h,b(c._payload),p)}if(rg(c))return P(g,h,c,p);if(k0(c))return y(g,h,c,p);Cy(g,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,c),h.return=g,g=h):(r(g,h),h=j_(c,g.mode,p),h.return=g,g=h),a(g)):r(g,h)}return C}var Ap=AM(!0),IM=AM(!1),h1=Fu(null),g1=null,qf=null,J4=null;function eP(){J4=qf=g1=null}function tP(e){var t=h1.current;mr(h1),e._currentValue=t}function OS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function mp(e,t){g1=e,J4=qf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(J4!==e)if(e={context:e,memoizedValue:t,next:null},qf===null){if(g1===null)throw Error(Le(308));qf=e,g1.dependencies={lanes:0,firstContext:e}}else qf=qf.next=e;return t}var Wc=null;function rP(e){Wc===null?Wc=[e]:Wc.push(e)}function LM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,rP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function nP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function DM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Wt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,rP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function vb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}function KO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function v1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var w=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,_=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:_,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,_=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){w=P.call(_,w,S);break e}w=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(_,w,S):P,S==null)break e;w=Ar({},w,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else _={eventTime:_,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=_,s=w):v=v.next=_,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=w),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=w}}function qO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=A_.transition;A_.transition={};try{e(!1),t()}finally{Xt=r,A_.transition=n}}function JM(){return sa().memoizedState}function PU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},eR(e))tR(t,r);else if(r=LM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),rR(r,t,n)}}function TU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(eR(e))tR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,rP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=LM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),rR(r,t,n))}}function eR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function tR(e,t){bg=y1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function rR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}var b1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},OU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:XO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,yb(4194308,4,qM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return yb(4194308,4,e,t)},useInsertionEffect:function(e,t){return yb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=PU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:YO,useDebugValue:dP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=YO(!1),t=e[0];return e=CU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(Le(407));r=r()}else{if(r=t(),Rn===null)throw Error(Le(349));(nd&30)!==0||VM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,XO(UM.bind(null,n,i,e),[e]),n.flags|=2048,Jg(9,BM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Qg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[qg]=n,fR(e,t,!1,!1),t.stateNode=e;e:{switch(a=uS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oDp&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304)}else{if(!n)if(e=m1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),I0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Dp&&r!==1073741824&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return mP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function LU(e,t){switch(Q4(t),t.tag){case 1:return Qo(t.type)&&c1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ip(),mr(Xo),mr(ho),aP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return iP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));Np()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Ip(),null;case 10:return tP(t.type._context),null;case 22:case 23:return mP(),null;case 24:return null;default:return null}}var Ty=!1,co=!1,DU=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Yf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function DS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var l6=!1;function FU(e,t){if(bS=a1,e=bM(),Y4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,w=e,S=null;t:for(;;){for(var _;w!==r||o!==0&&w.nodeType!==3||(l=a+o),w!==i||n!==0&&w.nodeType!==3||(s=a+n),w.nodeType===3&&(a+=w.nodeValue.length),(_=w.firstChild)!==null;)S=w,w=_;for(;;){if(w===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(_=w.nextSibling)!==null)break;w=S,S=w.parentNode}w=_}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(wS={focusedElem:e,selectionRange:r},a1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(p){Vr(t,t.return,p)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=l6,l6=!1,P}function wg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&DS(t,r,i)}o=o.next}while(o!==n)}}function Bw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function FS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function gR(e){var t=e.alternate;t!==null&&(e.alternate=null,gR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[qg],delete t[SS],delete t[bU],delete t[wU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vR(e){return e.tag===5||e.tag===3||e.tag===4}function s6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=u1));else if(n!==4&&(e=e.child,e!==null))for(jS(e,t,r),e=e.sibling;e!==null;)jS(e,t,r),e=e.sibling}function zS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(zS(e,t,r),e=e.sibling;e!==null;)zS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)mR(e,t,r),r=r.sibling}function mR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Aw,r)}catch{}switch(r.tag){case 5:co||Yf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?M_(e.parentNode,r):e.nodeType===1&&M_(e,r),Hg(e)):M_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&DS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Yf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function u6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new DU),t.forEach(function(n){var o=GU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*zU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,x1=0,(Wt&6)!==0)throw Error(Le(331));var o=Wt;for(Wt|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-gP?Xc(e,0):hP|=r),Zo(e,t)}function PR(e,t){t===0&&((e.mode&1)===0?t=1:(t=my,my<<=1,(my&130023424)===0&&(my=4194304)));var r=Ro();e=us(e,t),e!==null&&(Fv(e,t,r),Zo(e,r))}function $U(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),PR(e,r)}function GU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Le(314))}n!==null&&n.delete(t),PR(e,r)}var TR;TR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,AU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&MM(t,p1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;bb(e,t),e=t.pendingProps;var o=Rp(t,ho.current);mp(t,r),o=sP(null,t,n,e,o,r);var i=uP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,d1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nP(t),o.updater=Vw,t.stateNode=o,o._reactInternals=t,ES(t,n,e,r),t=NS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&X4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(bb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=qU(n),e=Ta(n,e),o){case 0:t=RS(null,t,n,e,r);break e;case 1:t=o6(null,t,n,e,r);break e;case 11:t=r6(null,t,n,e,r);break e;case 14:t=n6(null,t,n,Ta(n.type,e),r);break e}throw Error(Le(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),RS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),o6(e,t,n,o,r);case 3:e:{if(uR(t),e===null)throw Error(Le(387));n=t.pendingProps,i=t.memoizedState,o=i.element,DM(e,t),v1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lp(Error(Le(423)),t),t=i6(e,t,n,r,o);break e}else if(n!==o){o=Lp(Error(Le(424)),t),t=i6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=IM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Np(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return FM(t),e===null&&TS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_S(n,o)?a=null:i!==null&&_S(n,i)&&(t.flags|=32),sR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&TS(t),null;case 13:return cR(e,t,r);case 4:return oP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ap(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),r6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(h1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),OS(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Le(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),OS(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),n6(e,t,n,o,r);case 15:return aR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),bb(e,t),t.tag=1,Qo(n)?(e=!0,d1(t)):e=!1,mp(t,r),nR(t,n,o),ES(t,n,o,r),NS(null,t,n,!0,e,r);case 19:return dR(e,t,r);case 22:return lR(e,t,r)}throw Error(Le(156,t.tag))};function OR(e,t){return eM(e,t)}function KU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new KU(e,t,r,n)}function bP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qU(e){if(typeof e=="function")return bP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j4)return 11;if(e===z4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")bP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vf:return Qc(r.children,o,i,t);case F4:a=8,o|=8;break;case Jx:return e=ta(12,r,t,o|2),e.elementType=Jx,e.lanes=i,e;case eS:return e=ta(13,r,t,o),e.elementType=eS,e.lanes=i,e;case tS:return e=ta(19,r,t,o),e.elementType=tS,e.lanes=i,e;case F9:return Hw(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L9:a=10;break e;case D9:a=9;break e;case j4:a=11;break e;case z4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function Hw(e,t,r,n){return e=ta(22,e,n,t),e.elementType=F9,e.lanes=r,e.stateNode={isHidden:!1},e}function j_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function z_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function YU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=b_(0),this.expirationTimes=b_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=b_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wP(e,t,r,n,o,i,a,l,s){return e=new YU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nP(i),e}function XU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(RR)}catch(e){console.error(e)}}RR(),R9.exports=Mi;var qw=R9.exports;const tH=nh(qw),rH=E4({__proto__:null,default:tH},[qw]);var NR,m6=qw;NR=m6.createRoot,m6.hydrateRoot;/** - * @remix-run/router v1.19.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function oH(){return Math.random().toString(36).substr(2,8)}function b6(e,t){return{usr:e.state,key:e.key,idx:t}}function tv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||oH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function iH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function w(){l=rn.Pop;let C=v(),g=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:g})}function S(C,g){l=rn.Push;let h=tv(y.location,C,g);d=v()+1;let c=b6(h,d),p=y.createHref(h);try{a.pushState(c,"",p)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(p)}i&&s&&s({action:l,location:y.location,delta:1})}function _(C,g){l=rn.Replace;let h=tv(y.location,C,g);d=v();let c=b6(h,d),p=y.createHref(h);a.replaceState(c,"",p),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let g=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof C=="string"?C:ad(C);return h=h.replace(/ $/,"%20"),Pt(g,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,g)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(y6,w),s=C,()=>{o.removeEventListener(y6,w),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let g=P(C);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:S,replace:_,go(C){return a.go(C)}};return y}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const aH=new Set(["lazy","caseSensitive","path","id","index","children"]);function lH(e){return e.index===!0}function rv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pt(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),lH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=rv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Sb(e,t,r,!1)}function Sb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=lh(o.pathname||"/",r);if(i==null)return null;let a=AR(e);uH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Pt(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),AR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:vH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of IR(i.path))o(i,a,s)}),t}function IR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=IR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function uH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:mH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const cH=/^:[\w-]+$/,dH=3,fH=2,pH=1,hH=10,gH=-2,w6=e=>e==="*";function vH(e,t){let r=e.split("/"),n=r.length;return r.some(w6)&&(n+=gH),t&&(n+=fH),r.filter(o=>!w6(o)).reduce((o,i)=>o+(cH.test(i)?dH:i===""?pH:hH),n)}function mH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function yH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:_}=v;if(S==="*"){let y=l[w]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[w];return _&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function bH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Fp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function wH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function _H(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:xH(r,t):t,search:CH(n),hash:PH(o)}}function xH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function V_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function LR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function CP(e,t){let r=LR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function PP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Pt(!o.pathname||!o.pathname.includes("?"),V_("?","pathname","search",o)),Pt(!o.pathname||!o.pathname.includes("#"),V_("#","pathname","hash",o)),Pt(!o.search||!o.search.includes("#"),V_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let w=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),w-=1;o.pathname=S.join("/")}l=w>=0?t[w]:"/"}let s=_H(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),SH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class P1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Bv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const DR=["post","put","patch","delete"],TH=new Set(DR),OH=["get",...DR],kH=new Set(OH),EH=new Set([301,302,303,307,308]),MH=new Set([307,308]),B_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},RH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},D0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},TP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,NH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),FR="remix-router-transitions";function AH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ae=e.detectErrorBoundary;o=pe=>({hasErrorBoundary:ae(pe)})}else o=NH;let i={},a=rv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||zH,v=e.unstable_patchRoutesOnNavigation,w=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,_=new Set,P=1e3,y=new Set,C=null,g=null,h=null,c=e.hydrationData!=null,p=Uc(a,e.history.location,s),m=null;if(p==null&&!v){let ae=ko(404,{pathname:e.history.location.pathname}),{matches:pe,route:xe}=M6(a);p=pe,m={[xe.id]:ae}}p&&!e.hydrationData&&bo(p,a,e.history.location.pathname).active&&(p=null);let b;if(p)if(p.some(ae=>ae.route.lazy))b=!1;else if(!p.some(ae=>ae.route.loader))b=!0;else if(w.v7_partialHydration){let ae=e.hydrationData?e.hydrationData.loaderData:null,pe=e.hydrationData?e.hydrationData.errors:null,xe=Oe=>Oe.route.loader?typeof Oe.route.loader=="function"&&Oe.route.loader.hydrate===!0?!1:ae&&ae[Oe.route.id]!==void 0||pe&&pe[Oe.route.id]!==void 0:!0;if(pe){let Oe=p.findIndex(Ue=>pe[Ue.route.id]!==void 0);b=p.slice(0,Oe+1).every(xe)}else b=p.every(xe)}else b=e.hydrationData!=null;else if(b=!1,p=[],w.v7_partialHydration){let ae=bo(null,a,e.history.location.pathname);ae.active&&ae.matches&&(p=ae.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:p,initialized:b,navigation:B_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,H=!1,Y=!1,re=[],Q=new Set,W=new Map,X=0,te=-1,ne=new Map,se=new Set,ve=new Map,we=new Map,ce=new Set,J=new Map,oe=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(ae=>{let{action:pe,location:xe,delta:Oe}=ae;if(Se){Se(),Se=void 0;return}Fp(oe.size===0||Oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=Li({currentLocation:k.location,nextLocation:xe,historyAction:pe});if(Ue&&Oe!=null){let Qe=new Promise(ut=>{Se=ut});e.history.go(Oe*-1),sn(Ue,{state:"blocked",location:xe,proceed(){sn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Qe.then(()=>e.history.go(Oe))},reset(){let ut=new Map(k.blockers);ut.set(Ue,D0),Re({blockers:ut})}});return}return Ye(pe,xe)}),r){eW(t,V);let ae=()=>tW(t,V);t.addEventListener("pagehide",ae),B=()=>t.removeEventListener("pagehide",ae)}return k.initialized||Ye(rn.Pop,k.location,{initialHydration:!0}),T}function Me(){S&&S(),B&&B(),_.clear(),A&&A.abort(),k.fetchers.forEach((ae,pe)=>Yt(pe)),k.blockers.forEach((ae,pe)=>Ka(pe))}function Ie(ae){return _.add(ae),()=>_.delete(ae)}function Re(ae,pe){pe===void 0&&(pe={}),k=Tr({},k,ae);let xe=[],Oe=[];w.v7_fetcherPersist&&k.fetchers.forEach((Ue,Qe)=>{Ue.state==="idle"&&(ce.has(Qe)?Oe.push(Qe):xe.push(Qe))}),[..._].forEach(Ue=>Ue(k,{deletedFetchers:Oe,unstable_viewTransitionOpts:pe.viewTransitionOpts,unstable_flushSync:pe.flushSync===!0})),w.v7_fetcherPersist&&(xe.forEach(Ue=>k.fetchers.delete(Ue)),Oe.forEach(Ue=>Yt(Ue)))}function ye(ae,pe,xe){var Oe,Ue;let{flushSync:Qe}=xe===void 0?{}:xe,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Oe=ae.state)==null?void 0:Oe._isRedirect)!==!0,Fe;pe.actionData?Object.keys(pe.actionData).length>0?Fe=pe.actionData:Fe=null:ut?Fe=k.actionData:Fe=null;let Ze=pe.loaderData?k6(k.loaderData,pe.loaderData,pe.matches||[],pe.errors):k.loaderData,$e=k.blockers;$e.size>0&&($e=new Map($e),$e.forEach((Nt,Ut)=>$e.set(Ut,D0)));let Ge=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Ue=ae.state)==null?void 0:Ue._isRedirect)!==!0;l&&(a=l,l=void 0),H||R===rn.Pop||(R===rn.Push?e.history.push(ae,ae.state):R===rn.Replace&&e.history.replace(ae,ae.state));let kt;if(R===rn.Pop){let Nt=V.get(k.location.pathname);Nt&&Nt.has(ae.pathname)?kt={currentLocation:k.location,nextLocation:ae}:V.has(ae.pathname)&&(kt={currentLocation:ae,nextLocation:k.location})}else if(F){let Nt=V.get(k.location.pathname);Nt?Nt.add(ae.pathname):(Nt=new Set([ae.pathname]),V.set(k.location.pathname,Nt)),kt={currentLocation:k.location,nextLocation:ae}}Re(Tr({},pe,{actionData:Fe,loaderData:Ze,historyAction:R,location:ae,initialized:!0,navigation:B_,revalidation:"idle",restoreScrollPosition:Fi(ae,pe.matches||k.matches),preventScrollReset:Ge,blockers:$e}),{viewTransitionOpts:kt,flushSync:Qe===!0}),R=rn.Pop,E=!1,F=!1,H=!1,Y=!1,re=[]}async function ke(ae,pe){if(typeof ae=="number"){e.history.go(ae);return}let xe=WS(k.location,k.matches,s,w.v7_prependBasename,ae,w.v7_relativeSplatPath,pe==null?void 0:pe.fromRouteId,pe==null?void 0:pe.relative),{path:Oe,submission:Ue,error:Qe}=x6(w.v7_normalizeFormMethod,!1,xe,pe),ut=k.location,Fe=tv(k.location,Oe,pe&&pe.state);Fe=Tr({},Fe,e.history.encodeLocation(Fe));let Ze=pe&&pe.replace!=null?pe.replace:void 0,$e=rn.Push;Ze===!0?$e=rn.Replace:Ze===!1||Ue!=null&&Ea(Ue.formMethod)&&Ue.formAction===k.location.pathname+k.location.search&&($e=rn.Replace);let Ge=pe&&"preventScrollReset"in pe?pe.preventScrollReset===!0:void 0,kt=(pe&&pe.unstable_flushSync)===!0,Nt=Li({currentLocation:ut,nextLocation:Fe,historyAction:$e});if(Nt){sn(Nt,{state:"blocked",location:Fe,proceed(){sn(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:Fe}),ke(ae,pe)},reset(){let Ut=new Map(k.blockers);Ut.set(Nt,D0),Re({blockers:Ut})}});return}return await Ye($e,Fe,{submission:Ue,pendingError:Qe,preventScrollReset:Ge,replace:pe&&pe.replace,enableViewTransition:pe&&pe.unstable_viewTransition,flushSync:kt})}function ze(){if(Qn(),Re({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Ye(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Ye(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function Ye(ae,pe,xe){A&&A.abort(),A=null,R=ae,H=(xe&&xe.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(xe&&xe.preventScrollReset)===!0,F=(xe&&xe.enableViewTransition)===!0;let Oe=l||a,Ue=xe&&xe.overrideNavigation,Qe=Uc(Oe,pe,s),ut=(xe&&xe.flushSync)===!0,Fe=bo(Qe,Oe,pe.pathname);if(Fe.active&&Fe.matches&&(Qe=Fe.matches),!Qe){let{error:bt,notFoundMatches:dr,route:or}=fa(pe.pathname);ye(pe,{matches:dr,loaderData:{},errors:{[or.id]:bt}},{flushSync:ut});return}if(k.initialized&&!Y&&$H(k.location,pe)&&!(xe&&xe.submission&&Ea(xe.submission.formMethod))){ye(pe,{matches:Qe},{flushSync:ut});return}A=new AbortController;let Ze=Rf(e.history,pe,A.signal,xe&&xe.submission),$e;if(xe&&xe.pendingError)$e=[Qf(Qe).route.id,{type:rr.error,error:xe.pendingError}];else if(xe&&xe.submission&&Ea(xe.submission.formMethod)){let bt=await Mt(Ze,pe,xe.submission,Qe,Fe.active,{replace:xe.replace,flushSync:ut});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[dr,or]=bt.pendingActionResult;if(wi(or)&&Bv(or.error)&&or.error.status===404){A=null,ye(pe,{matches:bt.matches,loaderData:{},errors:{[dr]:or.error}});return}}Qe=bt.matches||Qe,$e=bt.pendingActionResult,Ue=U_(pe,xe.submission),ut=!1,Fe.active=!1,Ze=Rf(e.history,Ze.url,Ze.signal)}let{shortCircuited:Ge,matches:kt,loaderData:Nt,errors:Ut}=await gt(Ze,pe,Qe,Fe.active,Ue,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,ut,$e);Ge||(A=null,ye(pe,Tr({matches:kt||Qe},E6($e),{loaderData:Nt,errors:Ut})))}async function Mt(ae,pe,xe,Oe,Ue,Qe){Qe===void 0&&(Qe={}),Qn();let ut=ZH(pe,xe);if(Re({navigation:ut},{flushSync:Qe.flushSync===!0}),Ue){let $e=await ni(Oe,pe.pathname,ae.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let{boundaryId:Ge,error:kt}=$r(pe.pathname,$e);return{matches:$e.partialMatches,pendingActionResult:[Ge,{type:rr.error,error:kt}]}}else if($e.matches)Oe=$e.matches;else{let{notFoundMatches:Ge,error:kt,route:Nt}=fa(pe.pathname);return{matches:Ge,pendingActionResult:[Nt.id,{type:rr.error,error:kt}]}}}let Fe,Ze=ig(Oe,pe);if(!Ze.route.action&&!Ze.route.lazy)Fe={type:rr.error,error:ko(405,{method:ae.method,pathname:pe.pathname,routeId:Ze.route.id})};else if(Fe=(await Dr("action",k,ae,[Ze],Oe,null))[Ze.route.id],ae.signal.aborted)return{shortCircuited:!0};if(Gc(Fe)){let $e;return Qe&&Qe.replace!=null?$e=Qe.replace:$e=P6(Fe.response.headers.get("Location"),new URL(ae.url),s)===k.location.pathname+k.location.search,await Jt(ae,Fe,!0,{submission:xe,replace:$e}),{shortCircuited:!0}}if(su(Fe))throw ko(400,{type:"defer-action"});if(wi(Fe)){let $e=Qf(Oe,Ze.route.id);return(Qe&&Qe.replace)!==!0&&(R=rn.Push),{matches:Oe,pendingActionResult:[$e.route.id,Fe]}}return{matches:Oe,pendingActionResult:[Ze.route.id,Fe]}}async function gt(ae,pe,xe,Oe,Ue,Qe,ut,Fe,Ze,$e,Ge){let kt=Ue||U_(pe,Qe),Nt=Qe||ut||N6(kt),Ut=!H&&(!w.v7_partialHydration||!Ze);if(Oe){if(Ut){let It=xt(Ge);Re(Tr({navigation:kt},It!==void 0?{actionData:It}:{}),{flushSync:$e})}let He=await ni(xe,pe.pathname,ae.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let{boundaryId:It,error:at}=$r(pe.pathname,He);return{matches:He.partialMatches,loaderData:{},errors:{[It]:at}}}else if(He.matches)xe=He.matches;else{let{error:It,notFoundMatches:at,route:rt}=fa(pe.pathname);return{matches:at,loaderData:{},errors:{[rt.id]:It}}}}let bt=l||a,[dr,or]=S6(e.history,k,xe,Nt,pe,w.v7_partialHydration&&Ze===!0,w.v7_skipActionErrorRevalidation,Y,re,Q,ce,ve,se,bt,s,Ge);if(Di(He=>!(xe&&xe.some(It=>It.route.id===He))||dr&&dr.some(It=>It.route.id===He)),te=++X,dr.length===0&&or.length===0){let He=da();return ye(pe,Tr({matches:xe,loaderData:{},errors:Ge&&wi(Ge[1])?{[Ge[0]]:Ge[1].error}:null},E6(Ge),He?{fetchers:new Map(k.fetchers)}:{}),{flushSync:$e}),{shortCircuited:!0}}if(Ut){let He={};if(!Oe){He.navigation=kt;let It=xt(Ge);It!==void 0&&(He.actionData=It)}or.length>0&&(He.fetchers=zt(or)),Re(He,{flushSync:$e})}or.forEach(He=>{W.has(He.key)&&Qr(He.key),He.controller&&W.set(He.key,He.controller)});let Fn=()=>or.forEach(He=>Qr(He.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,xe,dr,or,ae);if(ae.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),or.forEach(He=>W.delete(He.key));let Zn=Ey(Fr);if(Zn)return await Jt(ae,Zn.result,!0,{replace:Fe}),{shortCircuited:!0};if(Zn=Ey(jn),Zn)return se.add(Zn.key),await Jt(ae,Zn.result,!0,{replace:Fe}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=O6(k,xe,dr,Fr,Ge,or,jn,J);J.forEach((He,It)=>{He.subscribe(at=>{(at||He.done)&&J.delete(It)})}),w.v7_partialHydration&&Ze&&k.errors&&Object.entries(k.errors).filter(He=>{let[It]=He;return!dr.some(at=>at.route.id===It)}).forEach(He=>{let[It,at]=He;zn=Object.assign(zn||{},{[It]:at})});let un=da(),Zr=Sn(te),At=un||Zr||or.length>0;return Tr({matches:xe,loaderData:ji,errors:zn},At?{fetchers:new Map(k.fetchers)}:{})}function xt(ae){if(ae&&!wi(ae[1]))return{[ae[0]]:ae[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function zt(ae){return ae.forEach(pe=>{let xe=k.fetchers.get(pe.key),Oe=F0(void 0,xe?xe.data:void 0);k.fetchers.set(pe.key,Oe)}),new Map(k.fetchers)}function Ht(ae,pe,xe,Oe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(ae)&&Qr(ae);let Ue=(Oe&&Oe.unstable_flushSync)===!0,Qe=l||a,ut=WS(k.location,k.matches,s,w.v7_prependBasename,xe,w.v7_relativeSplatPath,pe,Oe==null?void 0:Oe.relative),Fe=Uc(Qe,ut,s),Ze=bo(Fe,Qe,ut);if(Ze.active&&Ze.matches&&(Fe=Ze.matches),!Fe){nr(ae,pe,ko(404,{pathname:ut}),{flushSync:Ue});return}let{path:$e,submission:Ge,error:kt}=x6(w.v7_normalizeFormMethod,!0,ut,Oe);if(kt){nr(ae,pe,kt,{flushSync:Ue});return}let Nt=ig(Fe,$e);if(E=(Oe&&Oe.preventScrollReset)===!0,Ge&&Ea(Ge.formMethod)){mt(ae,pe,$e,Nt,Fe,Ze.active,Ue,Ge);return}ve.set(ae,{routeId:pe,path:$e}),Ot(ae,pe,$e,Nt,Fe,Ze.active,Ue,Ge)}async function mt(ae,pe,xe,Oe,Ue,Qe,ut,Fe){Qn(),ve.delete(ae);function Ze(rt){if(!rt.route.action&&!rt.route.lazy){let St=ko(405,{method:Fe.formMethod,pathname:xe,routeId:pe});return nr(ae,pe,St,{flushSync:ut}),!0}return!1}if(!Qe&&Ze(Oe))return;let $e=k.fetchers.get(ae);Ln(ae,JH(Fe,$e),{flushSync:ut});let Ge=new AbortController,kt=Rf(e.history,xe,Ge.signal,Fe);if(Qe){let rt=await ni(Ue,xe,kt.signal);if(rt.type==="aborted")return;if(rt.type==="error"){let{error:St}=$r(xe,rt);nr(ae,pe,St,{flushSync:ut});return}else if(rt.matches){if(Ue=rt.matches,Oe=ig(Ue,xe),Ze(Oe))return}else{nr(ae,pe,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(ae,Ge);let Nt=X,bt=(await Dr("action",k,kt,[Oe],Ue,ae))[Oe.route.id];if(kt.signal.aborted){W.get(ae)===Ge&&W.delete(ae);return}if(w.v7_fetcherPersist&&ce.has(ae)){if(Gc(bt)||wi(bt)){Ln(ae,Ks(void 0));return}}else{if(Gc(bt))if(W.delete(ae),te>Nt){Ln(ae,Ks(void 0));return}else return se.add(ae),Ln(ae,F0(Fe)),Jt(kt,bt,!1,{fetcherSubmission:Fe});if(wi(bt)){nr(ae,pe,bt.error);return}}if(su(bt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,or=Rf(e.history,dr,Ge.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Pt(Fr,"Didn't find any matches after fetcher action");let jn=++X;ne.set(ae,jn);let Zn=F0(Fe,bt.data);k.fetchers.set(ae,Zn);let[ji,zn]=S6(e.history,k,Fr,Fe,dr,!1,w.v7_skipActionErrorRevalidation,Y,re,Q,ce,ve,se,Fn,s,[Oe.route.id,bt]);zn.filter(rt=>rt.key!==ae).forEach(rt=>{let St=rt.key,cn=k.fetchers.get(St),wr=F0(void 0,cn?cn.data:void 0);k.fetchers.set(St,wr),W.has(St)&&Qr(St),rt.controller&&W.set(St,rt.controller)}),Re({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(rt=>Qr(rt.key));Ge.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:At}=await ln(k,Fr,ji,zn,or);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",un),ne.delete(ae),W.delete(ae),zn.forEach(rt=>W.delete(rt.key));let He=Ey(Zr);if(He)return Jt(or,He.result,!1);if(He=Ey(At),He)return se.add(He.key),Jt(or,He.result,!1);let{loaderData:It,errors:at}=O6(k,Fr,ji,Zr,void 0,zn,At,J);if(k.fetchers.has(ae)){let rt=Ks(bt.data);k.fetchers.set(ae,rt)}Sn(jn),k.navigation.state==="loading"&&jn>te?(Pt(R,"Expected pending action"),A&&A.abort(),ye(k.navigation.location,{matches:Fr,loaderData:It,errors:at,fetchers:new Map(k.fetchers)})):(Re({errors:at,loaderData:k6(k.loaderData,It,Fr,at),fetchers:new Map(k.fetchers)}),Y=!1)}async function Ot(ae,pe,xe,Oe,Ue,Qe,ut,Fe){let Ze=k.fetchers.get(ae);Ln(ae,F0(Fe,Ze?Ze.data:void 0),{flushSync:ut});let $e=new AbortController,Ge=Rf(e.history,xe,$e.signal);if(Qe){let bt=await ni(Ue,xe,Ge.signal);if(bt.type==="aborted")return;if(bt.type==="error"){let{error:dr}=$r(xe,bt);nr(ae,pe,dr,{flushSync:ut});return}else if(bt.matches)Ue=bt.matches,Oe=ig(Ue,xe);else{nr(ae,pe,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(ae,$e);let kt=X,Ut=(await Dr("loader",k,Ge,[Oe],Ue,ae))[Oe.route.id];if(su(Ut)&&(Ut=await OP(Ut,Ge.signal,!0)||Ut),W.get(ae)===$e&&W.delete(ae),!Ge.signal.aborted){if(ce.has(ae)){Ln(ae,Ks(void 0));return}if(Gc(Ut))if(te>kt){Ln(ae,Ks(void 0));return}else{se.add(ae),await Jt(Ge,Ut,!1);return}if(wi(Ut)){nr(ae,pe,Ut.error);return}Pt(!su(Ut),"Unhandled fetcher deferred data"),Ln(ae,Ks(Ut.data))}}async function Jt(ae,pe,xe,Oe){let{submission:Ue,fetcherSubmission:Qe,replace:ut}=Oe===void 0?{}:Oe;pe.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let Fe=pe.response.headers.get("Location");Pt(Fe,"Expected a Location header on the redirect Response"),Fe=P6(Fe,new URL(ae.url),s);let Ze=tv(k.location,Fe,{_isRedirect:!0});if(r){let bt=!1;if(pe.response.headers.has("X-Remix-Reload-Document"))bt=!0;else if(TP.test(Fe)){const dr=e.history.createURL(Fe);bt=dr.origin!==t.location.origin||lh(dr.pathname,s)==null}if(bt){ut?t.location.replace(Fe):t.location.assign(Fe);return}}A=null;let $e=ut===!0||pe.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:Ge,formAction:kt,formEncType:Nt}=k.navigation;!Ue&&!Qe&&Ge&&kt&&Nt&&(Ue=N6(k.navigation));let Ut=Ue||Qe;if(MH.has(pe.response.status)&&Ut&&Ea(Ut.formMethod))await Ye($e,Ze,{submission:Tr({},Ut,{formAction:Fe}),preventScrollReset:E,enableViewTransition:xe?F:void 0});else{let bt=U_(Ze,Ue);await Ye($e,Ze,{overrideNavigation:bt,fetcherSubmission:Qe,preventScrollReset:E,enableViewTransition:xe?F:void 0})}}async function Dr(ae,pe,xe,Oe,Ue,Qe){let ut,Fe={};try{ut=await VH(d,ae,pe,xe,Oe,Ue,Qe,i,o)}catch(Ze){return Oe.forEach($e=>{Fe[$e.route.id]={type:rr.error,error:Ze}}),Fe}for(let[Ze,$e]of Object.entries(ut))if(KH($e)){let Ge=$e.result;Fe[Ze]={type:rr.redirect,response:HH(Ge,xe,Ze,Ue,s,w.v7_relativeSplatPath)}}else Fe[Ze]=await UH($e);return Fe}async function ln(ae,pe,xe,Oe,Ue){let Qe=ae.matches,ut=Dr("loader",ae,Ue,xe,pe,null),Fe=Promise.all(Oe.map(async Ge=>{if(Ge.matches&&Ge.match&&Ge.controller){let Nt=(await Dr("loader",ae,Rf(e.history,Ge.path,Ge.controller.signal),[Ge.match],Ge.matches,Ge.key))[Ge.match.route.id];return{[Ge.key]:Nt}}else return Promise.resolve({[Ge.key]:{type:rr.error,error:ko(404,{pathname:Ge.path})}})})),Ze=await ut,$e=(await Fe).reduce((Ge,kt)=>Object.assign(Ge,kt),{});return await Promise.all([XH(pe,Ze,Ue.signal,Qe,ae.loaderData),QH(pe,$e,Oe)]),{loaderResults:Ze,fetcherResults:$e}}function Qn(){Y=!0,re.push(...Di()),ve.forEach((ae,pe)=>{W.has(pe)&&(Q.add(pe),Qr(pe))})}function Ln(ae,pe,xe){xe===void 0&&(xe={}),k.fetchers.set(ae,pe),Re({fetchers:new Map(k.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function nr(ae,pe,xe,Oe){Oe===void 0&&(Oe={});let Ue=Qf(k.matches,pe);Yt(ae),Re({errors:{[Ue.route.id]:xe},fetchers:new Map(k.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function mo(ae){return w.v7_fetcherPersist&&(we.set(ae,(we.get(ae)||0)+1),ce.has(ae)&&ce.delete(ae)),k.fetchers.get(ae)||RH}function Yt(ae){let pe=k.fetchers.get(ae);W.has(ae)&&!(pe&&pe.state==="loading"&&ne.has(ae))&&Qr(ae),ve.delete(ae),ne.delete(ae),se.delete(ae),ce.delete(ae),Q.delete(ae),k.fetchers.delete(ae)}function yo(ae){if(w.v7_fetcherPersist){let pe=(we.get(ae)||0)-1;pe<=0?(we.delete(ae),ce.add(ae)):we.set(ae,pe)}else Yt(ae);Re({fetchers:new Map(k.fetchers)})}function Qr(ae){let pe=W.get(ae);Pt(pe,"Expected fetch controller: "+ae),pe.abort(),W.delete(ae)}function Cl(ae){for(let pe of ae){let xe=mo(pe),Oe=Ks(xe.data);k.fetchers.set(pe,Oe)}}function da(){let ae=[],pe=!1;for(let xe of se){let Oe=k.fetchers.get(xe);Pt(Oe,"Expected fetcher: "+xe),Oe.state==="loading"&&(se.delete(xe),ae.push(xe),pe=!0)}return Cl(ae),pe}function Sn(ae){let pe=[];for(let[xe,Oe]of ne)if(Oe0}function Pl(ae,pe){let xe=k.blockers.get(ae)||D0;return oe.get(ae)!==pe&&oe.set(ae,pe),xe}function Ka(ae){k.blockers.delete(ae),oe.delete(ae)}function sn(ae,pe){let xe=k.blockers.get(ae)||D0;Pt(xe.state==="unblocked"&&pe.state==="blocked"||xe.state==="blocked"&&pe.state==="blocked"||xe.state==="blocked"&&pe.state==="proceeding"||xe.state==="blocked"&&pe.state==="unblocked"||xe.state==="proceeding"&&pe.state==="unblocked","Invalid blocker state transition: "+xe.state+" -> "+pe.state);let Oe=new Map(k.blockers);Oe.set(ae,pe),Re({blockers:Oe})}function Li(ae){let{currentLocation:pe,nextLocation:xe,historyAction:Oe}=ae;if(oe.size===0)return;oe.size>1&&Fp(!1,"A router only supports one blocker at a time");let Ue=Array.from(oe.entries()),[Qe,ut]=Ue[Ue.length-1],Fe=k.blockers.get(Qe);if(!(Fe&&Fe.state==="proceeding")&&ut({currentLocation:pe,nextLocation:xe,historyAction:Oe}))return Qe}function fa(ae){let pe=ko(404,{pathname:ae}),xe=l||a,{matches:Oe,route:Ue}=M6(xe);return Di(),{notFoundMatches:Oe,route:Ue,error:pe}}function $r(ae,pe){return{boundaryId:Qf(pe.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:ae,message:pe.error!=null&&"message"in pe.error?pe.error:String(pe.error)})}}function Di(ae){let pe=[];return J.forEach((xe,Oe)=>{(!ae||ae(Oe))&&(xe.cancel(),pe.push(Oe),J.delete(Oe))}),pe}function Ts(ae,pe,xe){if(C=ae,h=pe,g=xe||null,!c&&k.navigation===B_){c=!0;let Oe=Fi(k.location,k.matches);Oe!=null&&Re({restoreScrollPosition:Oe})}return()=>{C=null,h=null,g=null}}function pa(ae,pe){return g&&g(ae,pe.map(Oe=>sH(Oe,k.loaderData)))||ae.key}function Dn(ae,pe){if(C&&h){let xe=pa(ae,pe);C[xe]=h()}}function Fi(ae,pe){if(C){let xe=pa(ae,pe),Oe=C[xe];if(typeof Oe=="number")return Oe}return null}function bo(ae,pe,xe){if(v){if(y.has(xe))return{active:!1,matches:ae};if(ae){if(Object.keys(ae[0].params).length>0)return{active:!0,matches:Sb(pe,xe,s,!0)}}else return{active:!0,matches:Sb(pe,xe,s,!0)||[]}}return{active:!1,matches:null}}async function ni(ae,pe,xe){let Oe=ae;for(;;){let Ue=l==null,Qe=l||a;try{await FH(v,pe,Oe,Qe,i,o,ue,xe)}catch(Ze){return{type:"error",error:Ze,partialMatches:Oe}}finally{Ue&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let ut=Uc(Qe,pe,s);if(ut)return ha(pe,y),{type:"success",matches:ut};let Fe=Sb(Qe,pe,s,!0);if(!Fe||Oe.length===Fe.length&&Oe.every((Ze,$e)=>Ze.route.id===Fe[$e].route.id))return ha(pe,y),{type:"success",matches:null};Oe=Fe}}function ha(ae,pe){if(pe.size>=P){let xe=pe.values().next().value;pe.delete(xe)}pe.add(ae)}function Os(ae){i={},l=rv(ae,o,void 0,i)}function ga(ae,pe){let xe=l==null;zR(ae,pe,l||a,i,o),xe&&(a=[...a],Re({}))}return T={get basename(){return s},get future(){return w},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:Ie,enableScrollRestoration:Ts,navigate:ke,fetch:Ht,revalidate:ze,createHref:ae=>e.history.createHref(ae),encodeLocation:ae=>e.history.encodeLocation(ae),getFetcher:mo,deleteFetcher:yo,dispose:Me,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Os},T}function IH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function WS(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let w of t)if(s.push(w),w.route.id===a){d=w;break}}else s=t,d=t[t.length-1];let v=PP(o||".",CP(s,i),lh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!kP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function x6(e,t,r,n){if(!n||!IH(n))return{path:r};if(n.formMethod&&!YH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=VR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((_,P)=>{let[y,C]=P;return""+_+y+"="+C+` -`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Pt(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=$S(n.formData),d=n.formData;else if(n.body instanceof FormData)s=$S(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=T6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=T6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let w=zu(r);return t&&w.search&&kP(w.search)&&s.append("index",""),w.search="?"+s,{path:ad(w),submission:v}}function LH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function S6(e,t,r,n,o,i,a,l,s,d,v,w,S,_,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,g=e.createURL(t.location),h=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,p=c?LH(r,c):r,m=y?y[1].statusCode:void 0,b=a&&m&&m>=400,T=p.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(DH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return C6(R,Tr({currentUrl:g,currentParams:F.params,nextUrl:h,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:b?!1:l||g.pathname+g.search===h.pathname+h.search||g.search!==h.search||jR(F,V)}))}),k=[];return w.forEach((R,E)=>{if(i||!r.some(H=>H.route.id===R.routeId)||v.has(E))return;let A=Uc(_,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ig(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=C6(V,Tr({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:b?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function DH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function jR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function C6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function FH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,w)=>{l.aborted||zR(v,w,n,o,i)}}),a.set(s,d)),d&&GH(d)&&await d}finally{a.delete(s)}}function zR(e,t,r,n,o){if(e){var i;let a=n[e];Pt(a,"No route found to patch children into: routeId = "+e);let l=rv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=rv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function jH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Pt(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Fp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!aH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function zH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function VH(e,t,r,n,o,i,a,l,s,d){let v=i.map(_=>_.route.lazy?jH(_.route,s,l):void 0),w=i.map((_,P)=>{let y=v[P],C=o.some(h=>h.route.id===_.route.id);return Tr({},_,{shouldLoad:C,resolve:async h=>(h&&n.method==="GET"&&(_.route.lazy||_.route.loader)&&(C=!0),C?BH(t,n,_,y,h,d):Promise.resolve({type:rr.data,result:void 0}))})}),S=await e({matches:w,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function BH(e,t,r,n,o,i){let a,l,s=d=>{let v,w=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),_=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([_,w])};try{let d=r.route[e];if(n)if(d){let v,[w]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=w}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),w=v.pathname+v.search;throw ko(405,{method:t.method,pathname:w,routeId:r.route.id})}else return{type:rr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),w=v.pathname+v.search;throw ko(404,{pathname:w})}Pt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:rr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function UH(e){let{result:t,type:r}=e;if(BR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:rr.error,error:v}}return r===rr.error?{type:rr.error,error:new P1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:rr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===rr.error){if(R6(t)){var n;if(t.data instanceof Error){var o;return{type:rr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new P1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:Bv(t)?t.status:void 0}}if(qH(t)){var i,a;return{type:rr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(R6(t)){var l,s;return{type:rr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function HH(e,t,r,n,o,i){let a=e.headers.get("Location");if(Pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!TP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=WS(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function P6(e,t,r){if(TP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=lh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(VR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=$S(n.formData):i.body=n.formData}return new Request(o,i)}function $S(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function T6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function WH(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(w=>{if(!(w.route.id in t))return;let S=w.route.id,_=t[S];if(Pt(!Gc(_),"Cannot handle redirect results in processLoaderData"),wi(_)){let P=_.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Qf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Bv(_.error)?_.error.status:500),_.headers&&(d[S]=_.headers)}else su(_)?(n.set(S,_.deferredData),i[S]=_.deferredData.data,_.statusCode!=null&&_.statusCode!==200&&!s&&(l=_.statusCode),_.headers&&(d[S]=_.headers)):(i[S]=_.data,_.statusCode&&_.statusCode!==200&&!s&&(l=_.statusCode),_.headers&&(d[S]=_.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function O6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=WH(t,n,o,l);return i.forEach(v=>{let{key:w,match:S,controller:_}=v,P=a[w];if(Pt(P,"Did not find corresponding fetcher result"),!(_&&_.signal.aborted))if(wi(P)){let y=Qf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(w)}else if(Gc(P))Pt(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Pt(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(w,y)}}),{loaderData:s,errors:d}}function k6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function E6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Qf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function M6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new P1(e||500,l,new Error(s),!0)}function Ey(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function VR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function $H(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function GH(e){return typeof e=="object"&&e!=null&&"then"in e}function KH(e){return BR(e.result)&&EH.has(e.result.status)}function su(e){return e.type===rr.deferred}function wi(e){return e.type===rr.error}function Gc(e){return(e&&e.type)===rr.redirect}function R6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function qH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function BR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function YH(e){return kH.has(e.toLowerCase())}function Ea(e){return TH.has(e.toLowerCase())}async function XH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),w=v!=null&&!jR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&w&&await OP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function QH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Pt(a,"Expected an AbortController for revalidating fetcher deferred result"),await OP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function OP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function kP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ig(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&kP(r||""))return e[e.length-1];let n=LR(e);return n[n.length-1]}function N6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function U_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ZH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function F0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function JH(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function eW(e,t){try{let r=e.sessionStorage.getItem(FR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function tW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(FR,JSON.stringify(r))}catch(n){Fp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function T1(){return T1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),q.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let w=PP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(w.pathname=w.pathname==="/"?t:ts([t,w.pathname])),(v.replace?n.replace:n.push)(w,v.state,v)},[t,n,a,i,e])}function $R(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=q.useContext(bd),{matches:o}=q.useContext(wd),{pathname:i}=Xw(),a=JSON.stringify(CP(o,n.v7_relativeSplatPath));return q.useMemo(()=>PP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function iW(e,t,r,n){Uv()||Pt(!1);let{navigator:o}=q.useContext(bd),{matches:i}=q.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Xw(),v;v=d;let w=v.pathname||"/",S=w;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(y.length).join("/")}let _=Uc(e,{pathname:S});return cW(_&&_.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function aW(){let e=YR(),t=Bv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return q.createElement(q.Fragment,null,q.createElement("h2",null,"Unexpected Application Error!"),q.createElement("h3",{style:{fontStyle:"italic"}},t),r?q.createElement("pre",{style:o},r):null,null)}const lW=q.createElement(aW,null);class sW extends q.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?q.createElement(wd.Provider,{value:this.props.routeContext},q.createElement(HR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uW(e){let{routeContext:t,match:r,children:n}=e,o=q.useContext(Yw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),q.createElement(wd.Provider,{value:t},n)}function cW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(w=>w.route.id&&(l==null?void 0:l[w.route.id])!==void 0);v>=0||Pt(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,w,S)=>{let _,P=!1,y=null,C=null;r&&(_=l&&w.route.id?l[w.route.id]:void 0,y=w.route.errorElement||lW,s&&(d<0&&S===0?(gW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=w.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,S+1)),h=()=>{let c;return _?c=y:P?c=C:w.route.Component?c=q.createElement(w.route.Component,null):w.route.element?c=w.route.element:c=v,q.createElement(uW,{match:w,routeContext:{outlet:v,matches:g,isDataRoute:r!=null},children:c})};return r&&(w.route.ErrorBoundary||w.route.errorElement||S===0)?q.createElement(sW,{location:r.location,revalidation:r.revalidation,component:y,error:_,children:h(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):h()},null)}var GR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(GR||{}),KR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(KR||{});function dW(e){let t=q.useContext(Yw);return t||Pt(!1),t}function fW(e){let t=q.useContext(UR);return t||Pt(!1),t}function pW(e){let t=q.useContext(wd);return t||Pt(!1),t}function qR(e){let t=pW(),r=t.matches[t.matches.length-1];return r.route.id||Pt(!1),r.route.id}function YR(){var e;let t=q.useContext(HR),r=fW(KR.UseRouteError),n=qR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function hW(){let{router:e}=dW(GR.UseNavigateStable),t=qR(),r=q.useRef(!1);return WR(()=>{r.current=!0}),q.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,T1({fromRouteId:t},i)))},[e,t])}const A6={};function gW(e,t,r){A6[e]||(A6[e]=!0)}function GS(e){Pt(!1)}function vW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Uv()&&Pt(!1);let s=t.replace(/^\/*/,"/"),d=q.useMemo(()=>({basename:s,navigator:i,static:a,future:T1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:w="",hash:S="",state:_=null,key:P="default"}=n,y=q.useMemo(()=>{let C=lh(v,s);return C==null?null:{location:{pathname:C,search:w,hash:S,state:_,key:P},navigationType:o}},[s,v,w,S,_,P,o]);return y==null?null:q.createElement(bd.Provider,{value:d},q.createElement(EP.Provider,{children:r,value:y}))}new Promise(()=>{});function KS(e,t){t===void 0&&(t=[]);let r=[];return q.Children.forEach(e,(n,o)=>{if(!q.isValidElement(n))return;let i=[...t,o];if(n.type===q.Fragment){r.push.apply(r,KS(n.props.children,i));return}n.type!==GS&&Pt(!1),!n.props.index||!n.props.children||Pt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=KS(n.props.children,i)),r.push(a)}),r}function mW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:q.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:q.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:q.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function bW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wW(e,t){return e.button===0&&(!t||t==="_self")&&!bW(e)}const _W=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],xW="6";try{window.__reactRouterVersion=xW}catch{}function SW(e,t){return AH({basename:t==null?void 0:t.basename,future:nv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:nH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||CW(),routes:e,mapRouteProperties:mW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function CW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=nv({},t,{errors:PW(t.errors)})),t}function PW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new P1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const TW=q.createContext({isTransitioning:!1}),OW=q.createContext(new Map),kW="startTransition",I6=Qx[kW],EW="flushSync",L6=rH[EW];function MW(e){I6?I6(e):e()}function j0(e){L6?L6(e):e()}class RW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function NW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=q.useState(r.state),[a,l]=q.useState(),[s,d]=q.useState({isTransitioning:!1}),[v,w]=q.useState(),[S,_]=q.useState(),[P,y]=q.useState(),C=q.useRef(new Map),{v7_startTransition:g}=n||{},h=q.useCallback(k=>{g?MW(k):k()},[g]),c=q.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,H)=>{B.data!==void 0&&C.current.set(H,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?j0(()=>i(k)):h(()=>i(k));return}if(A){j0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{j0(()=>i(k))});B.finished.finally(()=>{j0(()=>{w(void 0),_(void 0),l(void 0),d({isTransitioning:!1})})}),j0(()=>_(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,h]);q.useLayoutEffect(()=>r.subscribe(c),[r,c]),q.useEffect(()=>{s.isTransitioning&&!s.flushSync&&w(new RW)},[s]),q.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{h(()=>i(k)),await R});E.finished.finally(()=>{w(void 0),_(void 0),l(void 0),d({isTransitioning:!1})}),_(E)}},[h,a,v,r.window]),q.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),q.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),q.useEffect(()=>{},[]);let p=q.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",b=q.useMemo(()=>({router:r,navigator:p,static:!1,basename:m}),[r,p,m]),T=q.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return q.createElement(q.Fragment,null,q.createElement(Yw.Provider,{value:b},q.createElement(UR.Provider,{value:o},q.createElement(OW.Provider,{value:C.current},q.createElement(TW.Provider,{value:s},q.createElement(vW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:p,future:T},o.initialized||r.future.v7_partialHydration?q.createElement(AW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const AW=q.memo(IW);function IW(e){let{routes:t,future:r,state:n}=e;return iW(t,void 0,n,r)}const LW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",DW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O1=q.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:w}=t,S=yW(t,_W),{basename:_}=q.useContext(bd),P,y=!1;if(typeof d=="string"&&DW.test(d)&&(P=d,LW))try{let c=new URL(window.location.href),p=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=lh(p.pathname,_);p.origin===c.origin&&m!=null?d=m+p.search+p.hash:y=!0}catch{}let C=rW(d,{relative:o}),g=FW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:w});function h(c){n&&n(c),c.defaultPrevented||g(c)}return q.createElement("a",nv({},S,{href:P||C,onClick:y||i?n:h,ref:r,target:s}))});var D6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D6||(D6={}));var F6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(F6||(F6={}));function FW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=nW(),d=Xw(),v=$R(e,{relative:a});return q.useCallback(w=>{if(wW(w,r)){w.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var XR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j6=Or.createContext&&Or.createContext(XR),jW=["attr","size","title"];function zW(e,t){if(e==null)return{};var r=VW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,E1({key:r},t.attr),QR(t.child)))}function Qw(e){return t=>Or.createElement(WW,k1({attr:E1({},e.attr)},t),QR(e.child))}function WW(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=zW(e,jW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",k1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:E1(E1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return j6!==void 0?Or.createElement(j6.Consumer,null,r=>t(r)):t(XR)}function $W(e){return Qw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function GW(e){return Qw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function KW(e){return Qw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function V6(e){return je.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:je.jsxs(O1,{to:e.path,children:[je.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function qW(){return je.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[je.jsx(O1,{to:"/",children:je.jsx("div",{className:"sideMenu-header",children:je.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),je.jsx("br",{}),je.jsx("nav",{children:je.jsxs("ul",{children:[je.jsx(V6,{icon:$W,label:"Home",path:"/"},"Home"),je.jsx(V6,{icon:KW,label:"Map",path:"/map"},"Map")]})}),je.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:je.jsxs(O1,{to:"/tos",className:"inline-",children:[je.jsx(GW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function YW({children:e}){return je.jsxs("div",{className:"bg-black",children:[je.jsx(qW,{}),je.jsx("div",{className:"ml-40 pl-2",children:e})]})}var XW={},ZR={},JR={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function JW(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,w=new Array(d);vC.length)&&(g=C.length);for(var h=0,c=new Array(g);hc.length)&&(p=c.length);for(var m=0,b=new Array(p);mh.length)&&(c=h.length);for(var p=0,m=new Array(c);pT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rp.length)&&(m=p.length);for(var b=0,T=new Array(m);bg.length)&&(h=g.length);for(var c=0,p=new Array(h);cm.length)&&(b=m.length);for(var T=0,k=new Array(b);Tc.length)&&(p=c.length);for(var m=0,b=new Array(p);m_.length)&&(P=_.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var g=0,h=new Array(C);g"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(xA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return w},useTheme:function(){return S}});var r=d(q),n=l(ot),o=l(Xn),i=l(RP),a=l(xA);function l(_){return _&&_.__esModule?_:{default:_}}function s(_){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(_)}function d(_,P){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var y=s(P);if(y&&y.has(_))return y.get(_);var C={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in _)if(h!=="default"&&Object.prototype.hasOwnProperty.call(_,h)){var c=g?Object.getOwnPropertyDescriptor(_,h):null;c&&(c.get||c.set)?Object.defineProperty(C,h,c):C[h]=_[h]}return C.default=_,y&&y.set(_,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function w(_){var P=_.value,y=P===void 0?i.default:P,C=_.children,g=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:g},C)}var S=function(){return(0,r.useContext)(v)};w.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Xe);var Jw={},$v={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,_){for(var P in _)Object.defineProperty(S,P,{enumerable:!0,get:_[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return w}});var r=o(ot),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,w=r.default.node.isRequired})($v);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(q),n=$v;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(Jw);var SA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=w(q),n=w(pt),o=Je,i=w(et),a=Jw,l=Xe,s=$v;function d(C,g,h){return g in C?Object.defineProperty(C,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):C[g]=h,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.className,c=C.children,p=S(C,["className","children"]),m=(0,a.useAccordion)(),b=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;h=h??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),b)),h),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},p,{ref:g,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(b?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(SA);var CA={},An={},QS=function(e,t){return QS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},QS(e,t)};function PA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");QS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var R1=function(){return R1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function OA(e,t){return function(r,n){t(r,n,e)}}function M$(e,t,r,n,o,i){function a(g){if(g!==void 0&&typeof g!="function")throw new TypeError("Function expected");return g}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),w,S=!1,_=r.length-1;_>=0;_--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(g){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(g||null))};var C=(0,r[_])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(w=a(C.get))&&(v.get=w),(w=a(C.set))&&(v.set=w),(w=a(C.init))&&o.unshift(w)}else(w=a(C))&&(l==="field"?o.unshift(w):v[s]=w)}d&&Object.defineProperty(d,n.name,v),S=!0}function R$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function KP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function NA(){for(var e=[],t=0;t1||s(_,y)})},P&&(o[_]=P(o[_])))}function s(_,P){try{d(n[_](P))}catch(y){S(i[0][3],y)}}function d(_){_.value instanceof zp?Promise.resolve(_.value.v).then(v,w):S(i[0][2],_)}function v(_){s("next",_)}function w(_){s("throw",_)}function S(_,P){_(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function DA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:zp(e[o](a)),done:!1}:i?i(a):a}:i}}function FA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof N1=="function"?N1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function jA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function zA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&e2(t,e,r);return I$(t,e),t}function VA(e){return e&&e.__esModule?e:{default:e}}function BA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function UA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function HA(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function WA(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var L$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function $A(e){function t(i){e.error=e.hasError?new L$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const D$={__extends:PA,__assign:R1,__rest:uh,__decorate:TA,__param:OA,__metadata:kA,__awaiter:EA,__generator:MA,__createBinding:e2,__exportStar:RA,__values:N1,__read:KP,__spread:NA,__spreadArrays:AA,__spreadArray:IA,__await:zp,__asyncGenerator:LA,__asyncDelegator:DA,__asyncValues:FA,__makeTemplateObject:jA,__importStar:zA,__importDefault:VA,__classPrivateFieldGet:BA,__classPrivateFieldSet:UA,__classPrivateFieldIn:HA,__addDisposableResource:WA,__disposeResources:$A},F$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:WA,get __assign(){return R1},__asyncDelegator:DA,__asyncGenerator:LA,__asyncValues:FA,__await:zp,__awaiter:EA,__classPrivateFieldGet:BA,__classPrivateFieldIn:HA,__classPrivateFieldSet:UA,__createBinding:e2,__decorate:TA,__disposeResources:$A,__esDecorate:M$,__exportStar:RA,__extends:PA,__generator:MA,__importDefault:VA,__importStar:zA,__makeTemplateObject:jA,__metadata:kA,__param:OA,__propKey:N$,__read:KP,__rest:uh,__runInitializers:R$,__setFunctionName:A$,__spread:NA,__spreadArray:IA,__spreadArrays:AA,__values:N1,default:D$},Symbol.toStringTag,{value:"Module"})),GA=Lv(F$);var KA={exports:{}},Ft={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gv=Symbol.for("react.element"),j$=Symbol.for("react.portal"),z$=Symbol.for("react.fragment"),V$=Symbol.for("react.strict_mode"),B$=Symbol.for("react.profiler"),U$=Symbol.for("react.provider"),H$=Symbol.for("react.context"),W$=Symbol.for("react.forward_ref"),$$=Symbol.for("react.suspense"),G$=Symbol.for("react.memo"),K$=Symbol.for("react.lazy"),$6=Symbol.iterator;function q$(e){return e===null||typeof e!="object"?null:(e=$6&&e[$6]||e["@@iterator"],typeof e=="function"?e:null)}var qA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YA=Object.assign,XA={};function ch(e,t,r){this.props=e,this.context=t,this.refs=XA,this.updater=r||qA}ch.prototype.isReactComponent={};ch.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ch.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function QA(){}QA.prototype=ch.prototype;function qP(e,t,r){this.props=e,this.context=t,this.refs=XA,this.updater=r||qA}var YP=qP.prototype=new QA;YP.constructor=qP;YA(YP,ch.prototype);YP.isPureReactComponent=!0;var G6=Array.isArray,ZA=Object.prototype.hasOwnProperty,XP={current:null},JA={key:!0,ref:!0,__self:!0,__source:!0};function eI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)ZA.call(t,n)&&!JA.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Sg=e=>e%1?Number(e.toFixed(5)):e,iv=/(-)?([\d]*\.?[\d])+/g,ZS=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,rG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Kv(e){return typeof e=="string"}const qv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ZP=Object.assign(Object.assign({},qv),{transform:nI(0,1)}),nG=Object.assign(Object.assign({},qv),{default:1}),Yv=e=>({test:t=>Kv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oG=Yv("deg"),bp=Yv("%"),iG=Yv("px"),aG=Yv("vh"),lG=Yv("vw"),sG=Object.assign(Object.assign({},bp),{parse:e=>bp.parse(e)/100,transform:e=>bp.transform(e*100)}),JP=(e,t)=>r=>!!(Kv(r)&&rG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),oI=(e,t,r)=>n=>{if(!Kv(n))return n;const[o,i,a,l]=n.match(iv);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},ag={test:JP("hsl","hue"),parse:oI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bp.transform(Sg(t))+", "+bp.transform(Sg(r))+", "+Sg(ZP.transform(n))+")"},uG=nI(0,255),Ob=Object.assign(Object.assign({},qv),{transform:e=>Math.round(uG(e))}),Zf={test:JP("rgb","red"),parse:oI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ob.transform(e)+", "+Ob.transform(t)+", "+Ob.transform(r)+", "+Sg(ZP.transform(n))+")"};function cG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const JS={test:JP("#"),parse:cG,transform:Zf.transform},e3={test:e=>Zf.test(e)||JS.test(e)||ag.test(e),parse:e=>Zf.test(e)?Zf.parse(e):ag.test(e)?ag.parse(e):JS.parse(e),transform:e=>Kv(e)?e:e.hasOwnProperty("red")?Zf.transform(e):ag.transform(e)},iI="${c}",aI="${n}";function dG(e){var t,r,n,o;return isNaN(e)&&Kv(e)&&((r=(t=e.match(iv))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(ZS))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function lI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(ZS);n&&(r=n.length,e=e.replace(ZS,iI),t.push(...n.map(e3.parse)));const o=e.match(iv);return o&&(e=e.replace(iv,aI),t.push(...o.map(qv.parse))),{values:t,numColors:r,tokenised:e}}function sI(e){return lI(e).values}function uI(e){const{values:t,numColors:r,tokenised:n}=lI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function pG(e){const t=sI(e);return uI(e)(t.map(fG))}const cI={test:dG,parse:sI,createTransformer:uI,getAnimatableNone:pG},hG=new Set(["brightness","contrast","saturate","opacity"]);function gG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(iv)||[];if(!n)return e;const o=r.replace(n,"");let i=hG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const vG=/([a-z-]*)\(.*?\)/g,mG=Object.assign(Object.assign({},cI),{getAnimatableNone:e=>{const t=e.match(vG);return t?t.map(gG).join(" "):e}});bn.alpha=ZP;bn.color=e3;bn.complex=cI;bn.degrees=oG;bn.filter=mG;bn.hex=JS;bn.hsla=ag;bn.number=qv;bn.percent=bp;bn.progressPercentage=sG;bn.px=iG;bn.rgbUnit=Ob;bn.rgba=Zf;bn.scale=nG;bn.vh=aG;bn.vw=lG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const dI=1/60*1e3,yG=typeof performance<"u"?()=>performance.now():()=>Date.now(),fI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(yG()),dI);function bG(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const w=v&&o,S=w?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),w&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=bG(()=>av=!0),e),{}),_G=Xv.reduce((e,t)=>{const r=t2[t];return e[t]=(n,o=!1,i=!1)=>(av||PG(),r.schedule(n,o,i)),e},{}),xG=Xv.reduce((e,t)=>(e[t]=t2[t].cancel,e),{}),SG=Xv.reduce((e,t)=>(e[t]=()=>t2[t].process(wp),e),{}),CG=e=>t2[e].process(wp),pI=e=>{av=!1,wp.delta=eC?dI:Math.max(Math.min(e-wp.timestamp,wG),1),wp.timestamp=e,tC=!0,Xv.forEach(CG),tC=!1,av&&(eC=!1,fI(pI))},PG=()=>{av=!0,eC=!0,tC||fI(pI)},TG=()=>wp;Cd.cancelSync=xG;Cd.default=_G;Cd.flushSync=SG;Cd.getFrameData=TG;Object.defineProperty(lt,"__esModule",{value:!0});var hI=GA,Vp=rI,Aa=bn,r2=Cd;function OG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var kG=OG(r2);const lv=(e,t,r)=>Math.min(Math.max(r,e),t),W_=.001,EG=.01,q6=10,MG=.05,RG=1;function NG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Vp.warning(e<=q6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=lv(MG,RG,a),e=lv(EG,q6,e/1e3),a<1?(o=d=>{const v=d*a,w=v*e,S=v-r,_=rC(d,a),P=Math.exp(-w);return W_-S/_*P},i=d=>{const w=d*a*e,S=w*r+r,_=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-w),y=rC(Math.pow(d,2),a);return(-o(d)+W_>0?-1:1)*((S-_)*P)/y}):(o=d=>{const v=Math.exp(-d*e),w=(d-r)*e+1;return-W_+v*w},i=d=>{const v=Math.exp(-d*e),w=(r-d)*(e*e);return v*w});const l=5/e,s=IG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const AG=12;function IG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function FG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Y6(e,DG)&&Y6(e,LG)){const r=NG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function n2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=hI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:w,isResolvedFromDuration:S}=FG(i),_=X6,P=X6;function y(){const C=v?-(v/1e3):0,g=r-t,h=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),h<1){const p=rC(c,h);_=m=>{const b=Math.exp(-h*c*m);return r-b*((C+h*c*g)/p*Math.sin(p*m)+g*Math.cos(p*m))},P=m=>{const b=Math.exp(-h*c*m);return h*c*b*(Math.sin(p*m)*(C+h*c*g)/p+g*Math.cos(p*m))-b*(Math.cos(p*m)*(C+h*c*g)-p*g*Math.sin(p*m))}}else if(h===1)_=p=>r-Math.exp(-c*p)*(g+(C+c*g)*p);else{const p=c*Math.sqrt(h*h-1);_=m=>{const b=Math.exp(-h*c*m),T=Math.min(p*m,300);return r-b*((C+h*c*g)*Math.sinh(T)+p*g*Math.cosh(T))/p}}}return y(),{next:C=>{const g=_(C);if(S)a.done=C>=w;else{const h=P(C)*1e3,c=Math.abs(h)<=n,p=Math.abs(r-g)<=o;a.done=c&&p}return a.value=a.done?r:g,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}n2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const X6=e=>0,t3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},o2=(e,t,r)=>-r*e+r*t+e;function $_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Q6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=$_(s,l,e+1/3),i=$_(s,l,e),a=$_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const jG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},zG=[Aa.hex,Aa.rgba,Aa.hsla],Z6=e=>zG.find(t=>t.test(e)),J6=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,r3=(e,t)=>{let r=Z6(e),n=Z6(t);Vp.invariant(!!r,J6(e)),Vp.invariant(!!n,J6(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Q6(o),r=Aa.rgba),n===Aa.hsla&&(i=Q6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=jG(o[s],i[s],l));return a.alpha=o2(o.alpha,i.alpha,l),r.transform(a)}},VG={x:0,y:0,z:0},nC=e=>typeof e=="number",BG=(e,t)=>r=>t(e(r)),n3=(...e)=>e.reduce(BG);function gI(e,t){return nC(e)?r=>o2(e,t,r):Aa.color.test(e)?r3(e,t):o3(e,t)}const vI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>gI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=gI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function ek(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=ek(e),o=ek(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?n3(vI(n.parsed,o.parsed),r):(Vp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},HG=(e,t)=>r=>o2(e,t,r);function WG(e){if(typeof e=="number")return HG;if(typeof e=="string")return Aa.color.test(e)?r3:o3;if(Array.isArray(e))return vI;if(typeof e=="object")return UG}function $G(e,t,r){const n=[],o=r||WG(e[0]),i=e.length-1;for(let a=0;ar(t3(e,t,n))}function KG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=t3(e[i],e[i+1],o);return t[i](l)}}function i3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Vp.invariant(i===t.length,"Both input and output ranges must be the same length"),Vp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=$G(t,n,o),l=i===2?GG(e,a):KG(e,a);return r?s=>l(lv(e[0],e[i-1],s)):l}const Qv=e=>t=>1-e(1-t),i2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mI=e=>t=>Math.pow(t,e),a3=e=>t=>t*t*((e+1)*t-e),yI=e=>{const t=a3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},bI=1.525,qG=4/11,YG=8/11,XG=9/10,wI=e=>e,l3=mI(2),QG=Qv(l3),_I=i2(l3),xI=e=>1-Math.sin(Math.acos(e)),SI=Qv(xI),ZG=i2(SI),s3=a3(bI),JG=Qv(s3),eK=i2(s3),tK=yI(bI),rK=4356/361,nK=35442/1805,oK=16061/1805,A1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-A1(1-e*2)):.5*A1(e*2-1)+.5;function lK(e,t){return e.map(()=>t||_I).splice(0,e.length-1)}function sK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function uK(e,t){return e.map(r=>r*t)}function Cg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=uK(n&&n.length===a.length?n:sK(a),o);function s(){return i3(l,a,{ease:Array.isArray(r)?r:lK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function CI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const w=-l*Math.exp(-v/n);return a.done=!(w>o||w<-o),a.value=a.done?d:d+w,a},flipTarget:()=>{}}}const tk={keyframes:Cg,spring:n2,decay:CI};function cK(e){if(Array.isArray(e.to))return Cg;if(tk[e.type])return tk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Cg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?n2:Cg}function PI(e,t,r=0){return e-t-r}function dK(e,t,r=0,n=!0){return n?PI(t+-e,t,r):t-(e-t)+r}function fK(e,t,r,n){return n?e>=t+r:e<=-r}const pK=e=>{const t=({delta:r})=>e(r);return{start:()=>kG.default.update(t,!0),stop:()=>r2.cancelSync.update(t)}};function TI(e){var t,r,{from:n,autoplay:o=!0,driver:i=pK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:w,onComplete:S,onRepeat:_,onUpdate:P}=e,y=hI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,g,h=0,c=y.duration,p,m=!1,b=!0,T;const k=cK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=i3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){h++,s==="reverse"?(b=h%2===0,a=dK(a,c,d,b)):(a=PI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,_&&_()}function A(){g.stop(),S&&S()}function F(B){if(b||(B=-B),a+=B,!m){const H=R.next(Math.max(0,a));p=H.value,T&&(p=T(p)),m=b?H.done:a<=0}P==null||P(p),m&&(h===0&&(c??(c=a)),h{w==null||w(),g.stop()}}}function OI(e,t){return t?e*(1e3/t):0}function hK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:w,onComplete:S,onStop:_}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;w==null||w(p),(m=c.onUpdate)===null||m===void 0||m.call(c,p)},onComplete:S,onStop:_}))}function h(c){g(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))h({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const p=C(c),m=p===r?-1:1;let b,T;const k=R=>{b=T,T=R,t=OI(R-b,r2.getFrameData().delta),(m===1&&R>p||m===-1&&RP==null?void 0:P.stop()}}const kI=e=>e*180/Math.PI,gK=(e,t=VG)=>kI(Math.atan2(t.y-e.y,t.x-e.x)),vK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},mK=e=>e,u3=(e=mK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},yK=u3(),bK=u3(Math.sqrt),EI=e=>e*Math.PI/180,I1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),oC=e=>I1(e)&&e.hasOwnProperty("z"),Ry=(e,t)=>Math.abs(e-t);function wK(e,t){if(nC(e)&&nC(t))return Ry(e,t);if(I1(e)&&I1(t)){const r=Ry(e.x,t.x),n=Ry(e.y,t.y),o=oC(e)&&oC(t)?Ry(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const _K=(e,t,r)=>(t=EI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),MI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),RI=(e,t,r,n=0)=>MI(e+r*(t-e)/Math.max(n,r)),xK=(e=50)=>{let t=0,r=0;return n=>{const o=r2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?RI(t,n,i,e):t;return r=o,t=a,a}},SK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function CK(e,t){return e/(1e3/t)}const PK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},NI=(e,t)=>1-3*t+3*e,AI=(e,t)=>3*t-6*e,II=e=>3*e,L1=(e,t,r)=>((NI(t,r)*e+AI(t,r))*e+II(t))*e,LI=(e,t,r)=>3*NI(t,r)*e*e+2*AI(t,r)*e+II(t),TK=1e-7,OK=10;function kK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=L1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>TK&&++l=MK?RK(a,w,e,r):S===0?w:kK(a,l,l+Ny,e,r)}return a=>a===0||a===1?a:L1(i(a),t,n)}const AK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return lv(0,1,o/e)};lt.angle=gK;lt.animate=TI;lt.anticipate=tK;lt.applyOffset=vK;lt.attract=yK;lt.attractExpo=bK;lt.backIn=s3;lt.backInOut=eK;lt.backOut=JG;lt.bounceIn=iK;lt.bounceInOut=aK;lt.bounceOut=A1;lt.circIn=xI;lt.circInOut=ZG;lt.circOut=SI;lt.clamp=lv;lt.createAnticipate=yI;lt.createAttractor=u3;lt.createBackIn=a3;lt.createExpoIn=mI;lt.cubicBezier=NK;lt.decay=CI;lt.degreesToRadians=EI;lt.distance=wK;lt.easeIn=l3;lt.easeInOut=_I;lt.easeOut=QG;lt.inertia=hK;lt.interpolate=i3;lt.isPoint=I1;lt.isPoint3D=oC;lt.keyframes=Cg;lt.linear=wI;lt.mirrorEasing=i2;lt.mix=o2;lt.mixColor=r3;lt.mixComplex=o3;lt.pipe=n3;lt.pointFromVector=_K;lt.progress=t3;lt.radiansToDegrees=kI;lt.reverseEasing=Qv;lt.smooth=xK;lt.smoothFrame=RI;lt.snap=SK;lt.spring=n2;lt.steps=AK;lt.toDecimal=MI;lt.velocityPerFrame=CK;lt.velocityPerSecond=OI;lt.wrap=PK;class IK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const G_=new WeakMap;function c3(e){return G_.has(e)||G_.set(e,{transforms:[],values:new Map}),G_.get(e)}function LK(e,t){return e.has(t)||e.set(t,new IK),e.get(t)}function DI(e,t){e.indexOf(t)===-1&&e.push(t)}function FI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const jI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",sv=e=>Array.isArray(e)&&!ds(e[0]),DK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function zI(e,t){return sv(e)?e[DK(0,e.length,t)]:e}const d3=(e,t,r)=>-r*e+r*t+e,f3=()=>{},rs=e=>e,a2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function p3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=a2(0,t,n);e.push(d3(r,1,o))}}function h3(e){const t=[0];return p3(t,e-1),t}function VI(e,t=h3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&p3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),D1=e=>typeof e=="object"&&!!e.createAnimation,FK=e=>typeof e=="function",g3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function UI(e,t){return t?e*(1e3/t):0}const jK=["","X","Y","Z"],zK=["translate","scale","rotate","skew"],Bp={x:"translateX",y:"translateY",z:"translateZ"},rk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},VK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:rk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:rk},Up=new Map,l2=e=>`--motion-${e}`,F1=["x","y","z"];zK.forEach(e=>{jK.forEach(t=>{F1.push(e+t),Up.set(l2(e+t),VK[e])})});const BK=(e,t)=>F1.indexOf(e)-F1.indexOf(t),UK=new Set(F1),s2=e=>UK.has(e),HK=(e,t)=>{Bp[t]&&(t=Bp[t]);const{transforms:r}=c3(e);DI(r,t),e.style.transform=HI(r)},HI=e=>e.sort(BK).reduce(WK,"").trim(),WK=(e,t)=>`${e} ${t}(var(${l2(t)}))`,iC=e=>e.startsWith("--"),nk=new Set;function $K(e){if(!nk.has(e)){nk.add(e);try{const{syntax:t,initialValue:r}=Up.has(e)?Up.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const WI=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,GK=1e-7,KK=12;function qK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=WI(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>GK&&++lqK(i,0,1,e,r);return i=>i===0||i===1?i:WI(o(i),t,n)}const YK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return jI(0,1,o/e)},XK={ease:lg(.25,.1,.25,1),"ease-in":lg(.42,0,1,1),"ease-in-out":lg(.42,0,.58,1),"ease-out":lg(0,0,.58,1)},QK=/\((.*?)\)/;function aC(e){if(FK(e))return e;if(BI(e))return lg(...e);const t=XK[e];if(t)return t;if(e.startsWith("steps")){const r=QK.exec(e);if(r){const n=r[1].split(",");return YK(parseFloat(n[0]),n[1].trim())}}return rs}let ZK=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,_)=>{this.resolve=S,this.reject=_}),n=n||Go.easing,D1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=sv(n)?rs:aC(n),this.updateDuration(o);const w=VI(r,s,sv(n)?n.map(aC):rs);this.tick=S=>{var _;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),g=y%1;!g&&y>=1&&(g=1),g===1&&C--;const h=C%2;(d==="reverse"||d==="alternate"&&h||d==="alternate-reverse"&&!h)&&(g=1-g);const c=P>=this.totalDuration?1:Math.min(g,1),p=w(this.easing(c));t(p),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(_=this.resolve)===null||_===void 0||_.call(this,p)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ok=e=>BI(e)?JK(e):e,JK=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ik=e=>document.createElement("div").animate(e,{duration:.001}),ak={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ik({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ik({opacity:[0,1]}).finished},K_={},Eb={};for(const e in ak)Eb[e]=()=>(K_[e]===void 0&&(K_[e]=ak[e]()),K_[e]);function eq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function j1(e){return Bp[e]&&(e=Bp[e]),s2(e)?l2(e):e}const Jf={get:(e,t)=>{t=j1(t);let r=iC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Up.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=j1(t),iC(t)?e.style.setProperty(t,r):e.style[t]=r}};function GI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function tq(){return window.__MOTION_DEV_TOOLS_RECORD}function u2(e,t,r,n={}){const o=tq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:w=Go.easing,direction:S,offset:_,allowWebkitAcceleration:P=!1}=n;const y=c3(e);let C=Eb.waapi();const g=s2(t);g&&HK(e,t);const h=j1(t),c=LK(y.values,h),p=Up.get(h);return GI(c.animation,!(D1(w)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=Jf.get(e,h))!==null&&T!==void 0?T:p==null?void 0:p.initialValue)!==null&&k!==void 0?k:0};let b=eq($I(r),m);if(D1(w)){const T=w.createAnimation(b,m,g,h,c);w=T.easing,T.keyframes!==void 0&&(b=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(iC(h)&&(Eb.cssRegisterProperty()?$K(h):C=!1),C){p&&(b=b.map(R=>ds(R)?p.toDefaultUnit(R):R)),b.length===1&&(!Eb.partialKeyframes()||i)&&b.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:sv(w)?void 0:ok(w),direction:S,iterations:v+1,fill:"both"};a=e.animate({[h]:b,offset:_,easing:sv(w)?w.map(ok):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=b[b.length-1];a.finished.then(()=>{Jf.set(e,h,k),a.cancel()}).catch(f3),P||(a.playbackRate=1.000001)}else if(g){b=b.map(k=>typeof k=="string"?parseFloat(k):k),b.length===1&&b.unshift(parseFloat(m()));const T=k=>{p&&(k=p.toDefaultUnit(k)),Jf.set(e,h,k)};a=new ZK(T,b,Object.assign(Object.assign({},n),{duration:l,easing:w}))}else{const T=b[b.length-1];Jf.set(e,h,p&&ds(T)?p.toDefaultUnit(T):T)}return i&&o(e,t,b,{duration:l,delay:s,easing:w,repeat:v,offset:_},"motion-one"),c.setAnimation(a),a}}const v3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function c2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const rq=e=>e(),m3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(rq).filter(Boolean),duration:r,options:t},oq),nq=e=>e.animations[0],oq={get:(e,t)=>{const r=nq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(iq)).catch(f3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>GI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function aq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:lq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=aC(n)(s/d)*d}return t+s}}function lq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function KI(e,t,r){return typeof e=="function"?e(t,r):e}function sq(e,t,r={}){e=c2(e);const n=e.length,o=[];for(let i=0;it&&o.atu2(...i)).filter(Boolean);return m3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function pq(e,t={}){var{defaultOptions:r={}}=t,n=uh(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let w=0;w"0",re);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=KI(y.delay,c,h)||0,V=d+F,B=V+E;let{offset:H=h3(k.length)}=R;H.length===1&&H[0]===0&&(H[1]=1);const Y=length-k.length;Y>0&&p3(H,Y),k.length===1&&k.unshift(null),cq(T,k,A,H,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((w,S)=>{for(const _ in w){const P=w[_];P.sort(dq);const y=[],C=[],g=[];for(let h=0;ht/(2*Math.sqrt(e*r));function yq(e,t,r){return e=t||e>t&&r<=t}const qI=({stiffness:e=_p.stiffness,damping:t=_p.damping,mass:r=_p.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,w=mq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let _;if(w<1){const P=v*Math.sqrt(1-w*w);_=y=>o-Math.exp(-w*v*y)*((-i+w*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else _=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=_(P);const y=P===0?i:y3(_,P,s.current),C=Math.abs(y)<=a,g=Math.abs(o-s.current)<=l;return s.done=C&&g,s.hasReachedTarget=yq(n,o,s.current),s}},bq=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const w={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,_=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),h=T=>C+g(T),c=T=>{const k=g(T),R=h(T);w.done=Math.abs(k)<=d,w.current=w.done?C:R};let p,m;const b=T=>{S(w.current)&&(p=T,m=qI({from:w.current,to:_(w.current),velocity:y3(h,T,w.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return b(0),T=>{let k=!1;return!m&&p===void 0&&(k=!0,c(T),b(T)),p!==void 0&&T>p?(w.hasReachedTarget=!0,m(T-p)):(w.hasReachedTarget=!1,!k&&c(T),w)}},q_=10,wq=1e4;function _q(e,t=rs){let r,n=q_,o=e(0);const i=[t(o.current)];for(;!o.done&&n{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,_q(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var w,S;let _;const P=a.length;if(s&&P<=2&&a.every(xq)){const C=a[P-1],g=P===1?null:a[0];let h=0,c=0;const p=v==null?void 0:v.generator;if(p){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=p(E).current;c=(w=g)!==null&&w!==void 0?w:A,(P===1||P===2&&a[0]===null)&&(h=y3(F=>p(F).current,E,A))}else c=(S=g)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,h,d==null?void 0:d.includes("scale")),b=i(m);_=Object.assign(Object.assign({},b),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else _={easing:"ease",duration:i(o(0,100)).overshootDuration};return _}}}}const xq=e=>typeof e!="string",Sq=YI(qI),Cq=YI(bq),Pq={any:0,all:1};function XI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=c2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const w=a.get(v.target);if(v.isIntersecting!==!!w)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else w&&(w(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Pq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Mb=new WeakMap;let qs;function Tq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function Oq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Mb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return Tq(e,r)}})})}function kq(e){e.forEach(Oq)}function Eq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(kq))}function Mq(e,t){qs||Eq();const r=c2(e);return r.forEach(n=>{let o=Mb.get(n);o||(o=new Set,Mb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Mb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Rb=new Set;let Pg;function Rq(){Pg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Rb.forEach(r=>r(t))},window.addEventListener("resize",Pg)}function Nq(e){return Rb.add(e),Pg||Rq(),()=>{Rb.delete(e),!Rb.size&&Pg&&(Pg=void 0)}}function QI(e,t){return typeof e=="function"?Nq(e):Mq(e,t)}const Aq=50,sk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Iq=()=>({time:0,x:sk(),y:sk()}),Lq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function uk(e,t,r,n){const o=r[t],{length:i,position:a}=Lq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=a2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Aq?0:UI(o.current-l,d)}function Dq(e,t,r){uk(e,"x",t,r),uk(e,"y",t,r),t.time=r}function Fq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const ZI={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},lC={start:0,center:.5,end:1};function ck(e,t,r=0){let n=0;if(lC[e]!==void 0&&(e=lC[e]),g3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const jq=[0,0];function zq(e,t,r,n){let o=Array.isArray(e)?e:jq,i=0,a=0;return ds(e)?o=[e,e]:g3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,lC[e]?e:"0"]),i=ck(o[0],r,n),a=ck(o[1],t),i-a}const Vq={x:0,y:0};function Bq(e,t,r){let{offset:n=ZI.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?Fq(o,e):Vq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const w=n.length;for(let S=0;SUq(e,n.target,r),update:i=>{Dq(e,r,i),(n.offset||n.target)&&Bq(e,r,n)},notify:typeof t=="function"?()=>t(r):Wq(t,r[o])}}function Wq(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const z0=new WeakMap,dk=new WeakMap,Y_=new WeakMap,fk=e=>e===document.documentElement?window:e;function $q(e,t={}){var{container:r=document.documentElement}=t,n=uh(t,["container"]);let o=Y_.get(r);o||(o=new Set,Y_.set(r,o));const i=Iq(),a=Hq(r,e,i,n);if(o.add(a),!z0.has(r)){const d=()=>{const w=performance.now();for(const S of o)S.measure();for(const S of o)S.update(w);for(const S of o)S.notify()};z0.set(r,d);const v=fk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&dk.set(r,QI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=z0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=Y_.get(r);if(!v||(v.delete(a),v.size))return;const w=z0.get(r);z0.delete(r),w&&(fk(r).removeEventListener("scroll",w),(d=dk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",w))}}function Gq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!Kq(e,t):e!==t}function Kq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),Zq=e=>e.animateUpdates(),hk=e=>e.next(),gk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function sC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function vk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const Jq={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=uh(n,["once"]);return XI(e,a=>{if(t(),vk(e,"viewenter",a),!o)return l=>{r(),vk(e,"viewleave",l)}},i)}},mk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),sC(e,t,n))},eY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=mk(e,"hoverstart",t),o=mk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},tY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),sC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),sC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Nb={inView:Jq,hover:eY,press:tY},yk=["initial","animate",...Object.keys(Nb),"exit"],uC=new WeakMap;function rY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of yk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=pk(e[l]||a[l],e.variants)||{},d=uh(s,["transition"]);const v=Object.assign({},d);function*w(){var y,C;const g=d;d={};const h={};for(const T of yk){if(!o[T])continue;const k=pk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],h[R]=v3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(g)]),p=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),Gq(g[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=Jf.get(r,T)),p.push(u2(r,T,d[T],h[T])))}),yield;const m=p.map(T=>T()).filter(Boolean);if(!m.length)return;const b=d;r.dispatchEvent(gk("motionstart",b)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(gk("motioncomplete",b))}).catch(f3)}const S=(y,C)=>()=>{o[y]=C,X_(P)},_=()=>{for(const y in Nb){const C=Nb[y].isActive(e),g=i[y];C&&!g?i[y]=Nb[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&g&&(g(),delete i[y])}},P={update:y=>{r&&(e=y,_(),X_(P))},setActive:(y,C)=>{r&&(o[y]=C,X_(P))},animateUpdates:w,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,uC.set(r,P),_(),()=>{uC.delete(r),Xq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function JI(e){const t={},r=[];for(let n in e){const o=e[n];s2(n)&&(Bp[n]&&(n=Bp[n]),r.push(n),n=l2(n));let i=Array.isArray(o)?o[0]:o;const a=Up.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=HI(r)),t}const nY=e=>`-${e.toLowerCase()}`,oY=e=>e.replace(/[A-Z]/g,nY);function iY(e={}){const t=JI(e);let r="";for(const n in t)r+=n.startsWith("--")?n:oY(n),r+=`: ${t[n]}; `;return r}const aY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:ZI,animate:sq,animateStyle:u2,createMotionState:rY,createStyleString:iY,createStyles:JI,getAnimationData:c3,getStyleName:j1,glide:Cq,inView:XI,mountedStates:uC,resize:QI,scroll:$q,spring:Sq,stagger:aq,style:Jf,timeline:fq,withControls:m3},Symbol.toStringTag,{value:"Module"})),lY=Lv(aY);function sY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var uY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cY=sY(function(e){return uY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const dY=Object.freeze(Object.defineProperty({__proto__:null,default:cY},Symbol.toStringTag,{value:"Module"})),fY=Lv(dY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=GA,r=J$,n=rI,o=bn,i=lt,a=Cd,l=lY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),w=s(r),S=s(a),_=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:_(["layout","layoutId","drag"]),animation:_(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:_(["exit"]),drag:_(["drag","dragControls"]),focus:_(["whileFocus"]),hover:_(["whileHover","onHoverStart","onHoverEnd"]),tap:_(["whileTap","onTap","onTapStart","onTapCancel"]),pan:_(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:_(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),g=Object.keys(P),h=g.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var zt={};function Ht(x){Object.assign(zt,x)}var mt=["","X","Y","Z"],Ot=["translate","scale","rotate","skew"],Jt=["transformPerspective","x","y","z"];Ot.forEach(function(x){return mt.forEach(function(M){return Jt.push(x+M)})});function Dr(x,M){return Jt.indexOf(x)-Jt.indexOf(M)}var ln=new Set(Jt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function nr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||nr(x)||(I||D!==void 0)&&(!!zt[x]||x==="opacity")}var Yt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,U=G===void 0?!0:G,Z=M.allowTransformNone,ee=Z===void 0?!0:Z,ie="";$.sort(Dr);for(var de=!1,fe=$.length,ge=0;ge"u"?K5:Rh;ee(Z,U.current,M,G)}var G5={some:0,all:1};function Rh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,U=G===void 0?"some":G,Z=D.once;r.useEffect(function(){if(x){var ee={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof U=="number"?U:G5[U]},ie=function(de){var fe,ge=de.isIntersecting;if(M.isInView!==ge&&(M.isInView=ge,!(Z&&!ge&&M.hasEnteredView))){ge&&(M.hasEnteredView=!0),(fe=I.animationState)===null||fe===void 0||fe.setActive(e.AnimationType.InView,ge);var u=I.getProps(),f=ge?u.onViewportEnter:u.onViewportLeave;f==null||f(de)}};return Jr(I.getInstance(),ee,ie)}},[x,z,$,U])}function K5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var U=I.getProps().onViewportEnter;U==null||U(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Mh),tap:ii(H5),focus:ii(He),hover:ii(ym)},q5=0,Y5=function(){return q5++},jo=function(){return ue(Y5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Nh(r.useContext(T))}function Nh(x){return x===null?!0:x.isPresent}function Ah(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Rt,he=Array.isArray(Ae)?Ae:[Ae],Pe=he.reduce($,{});wt===!1&&(Pe={});var Be=Ve.prevResolvedValues,tt=Be===void 0?{}:Be,yt=t.__assign(t.__assign({},tt),Pe),ct=function(nt){_e=!0,O.delete(nt),Ve.needsAnimating[nt]=!0};for(var vt in yt){var ft=Pe[vt],Ne=tt[vt];N.hasOwnProperty(vt)||(ft!==Ne?bt(ft)&&bt(Ne)?!Ah(ft,Ne)||On?ct(vt):Ve.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):Ve.protectedKeys[vt]=!0)}Ve.prevProp=Ae,Ve.prevResolvedValues=Pe,Ve.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(_e=!1),_e&&!er&&f.push.apply(f,t.__spreadArray([],t.__read(he.map(function(nt){return{animation:nt,options:t.__assign({type:Ee},ie)}})),!1))},K=0;K=3;if(!(!ge&&!u)){var f=fe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},f),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;ge||(L&&L(z.lastMoveEvent,fe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,fe)}}},this.handlePointerMove=function(fe,ge){if(z.lastMoveEvent=fe,z.lastMoveEventInfo=Vo(ge,z.transformPagePoint),It(fe)&&fe.buttons===0){z.handlePointerUp(fe,ge);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(fe,ge){z.end();var u=z.handlers,f=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(ge,z.transformPagePoint),z.history);z.startEvent&&f&&f(fe,N),O&&O(fe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var U=wo(M),Z=Vo(U,this.transformPagePoint),ee=Z.point,ie=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},ee),{timestamp:ie})];var de=I.onSessionStart;de&&de(M,Ja(Z,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Tm(M)),velocity:fr(M,.1)}}function Tm(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Bh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Uh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Hh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function Om(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function km(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function Wh(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return Wh(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function $h(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Gh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var U,Z,ee=0;eeM?I="y":Math.abs(x.x)>M&&(I="x"),I}function J5(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new Q5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Am(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,U=r.useRef(null),Z=r.useContext(p).transformPagePoint,ee={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,fe){U.current=null,D&&D(de,fe)}};r.useEffect(function(){U.current!==null&&U.current.updateHandlers(ee)});function ie(de){U.current=new Nl(de,ee,{transformPagePoint:Z})}Ol($,"pointerdown",G&&ie),Ya(function(){return U.current&&U.current.end()})}var Yh={pan:ii(Am),drag:ii(J5)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,U=D[G];($=M[z])===null||$===void 0||$.call(M),U&&(M[z]=I[G](U))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,ee=zm(M,x,U);return $.length&&$.forEach(function(ie){var de=t.__read(ie,2),fe=de[0],ge=de[1];x.getValue(fe).set(ge)}),x.syncRender(),Z!==null&&window.scrollTo({top:Z}),{target:ee,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Bm(x,M,I,D){return Qh(M)?Vm(x,M,I,D):{target:M,transitionEnd:D}}var Um=function(x,M,I,D){var z=Xh(x,M,D);return M=z.target,D=z.transitionEnd,Bm(x,M,I,D)};function Hm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Hm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return qh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,U=t.__rest(M,["transition","transitionEnd"]),Z=Co(U,$||{},x);if(z&&(G&&(G=z(G)),U&&(U=z(U)),Z&&(Z=z(Z))),D){cc(x,U,Z);var ee=Um(x,U,Z,G);G=ee.transitionEnd,U=ee.target}return t.__assign({transition:$,transitionEnd:G},U)},scrapeMotionValuesFromProps:kt,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Ze},Wm=uf(ff),t0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=$e.has(M)?M:Fe(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Nt,build:function(x,M,I,D,z){pe(M,I,D,z.transformTemplate)},render:Ge})),pf=function(x,M){return xt(x)?t0(M,{enableHardwareAcceleration:!1}):Wm(M,{enableHardwareAcceleration:!0})};function r0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=r0(x,M.target.x),D=r0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",$m={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(f){return G.push(f),hf}));var U=o.complex.parse(x);if(U.length>5)return z;var Z=o.complex.createTransformer(x),ee=typeof U[0]!="number"?1:0,ie=D.x.scale*I.x,de=D.y.scale*I.y;U[0+ee]/=ie,U[1+ee]/=de;var fe=i.mix(ie,de,.5);typeof U[2+ee]=="number"&&(U[2+ee]/=fe),typeof U[3+ee]=="number"&&(U[3+ee]/=fe);var ge=Z(U);if($){var u=0;ge=ge.replace(hf,function(){var f=G[u];return u++,f})}return ge}},n0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,U=D.layoutId,Z=z.projection;Ht(r_),Z&&($!=null&&$.group&&$.group.add(Z),G!=null&&G.register&&U&&G.register(Z),Z.root.didUpdate(),Z.addEventListener("animationComplete",function(){I.safeToRemove()}),Z.setOptions(t.__assign(t.__assign({},Z.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,U=z.drag,Z=z.isPresent,ee=G.projection;return ee&&(ee.isPresent=Z,U||I.layoutDependency!==$||$===void 0?ee.willUpdate():this.safeToRemove(),I.isPresent!==Z&&(Z?ee.promote():ee.relegate()||S.default.postRender(function(){var ie;!((ie=ee.getStack())===null||ie===void 0)&&ie.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(w.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(Ie);return w.default.createElement(n0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Re),isPresent:I,safeToRemove:D}))}var r_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:$m},o0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=Yt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var i0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=i0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Gm=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,U,Z,ee;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((U=M.opacity)!==null&&U!==void 0?U:1,0,Sc(D))):$&&(x.opacity=i.mix((Z=M.opacity)!==null&&Z!==void 0?Z:1,(ee=I.opacity)!==null&&ee!==void 0?ee:1,D));for(var ie=0;ieM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var U=i.mix(G.min,G.max,M/100);M=U-G.min}if(typeof M=="number"){var Z=i.mix($.min,$.max,D);x===$&&(Z-=M),x.min=Vs(x.min,M,I,Z,z),x.max=Vs(x.max,M,I,Z,z)}}function Km(x,M,I,D,z){var $=t.__read(I,3),G=$[0],U=$[1],Z=$[2];Tn(x,M[G],M[U],M[Z],M.scale,D,z)}var n_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){Km(x.x,M,n_,I==null?void 0:I.x,D==null?void 0:D.x),Km(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function qm(x){return x.translate===0&&x.scale===1}function We(x){return qm(x.x)&&qm(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var l0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Ih(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Ym="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Xm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,U=I.rotateX,Z=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),U&&($+="rotateX(".concat(U,"deg) ")),Z&&($+="rotateY(".concat(Z,"deg) "))}var ee=x.x.scale*M.x,ie=x.y.scale*M.y;return $+="scale(".concat(ee,", ").concat(ie,")"),$===Ym?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Ih(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function s0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(U,Z,ee){var ie=this;Z===void 0&&(Z={}),ee===void 0&&(ee=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ie.isUpdating&&(ie.isUpdating=!1,ie.clearAllSnapshots())},this.updateProjection=function(){ie.nodes.forEach($i),ie.nodes.forEach(c0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=U,this.latestValues=Z,this.root=ee?ee.root||ee:this,this.path=ee?t.__spreadArray(t.__spreadArray([],t.__read(ee.path),!1),[ee],!1):[],this.parent=ee,this.depth=ee?ee.depth+1:0,U&&this.root.registerPotentialNode(U,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function f0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){f0(x.x),f0(x.y)}var _f=s0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=s0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Yh),o0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function p0(x){return ze(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var h0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,U=ue(i_),Z=jo(),ee=r.useMemo(function(){return{id:Z,initial:I,isPresent:D,custom:$,onExitComplete:function(ie){var de,fe;U.set(ie,!0);try{for(var ge=t.__values(U.values()),u=ge.next();!u.done;u=ge.next()){var f=u.value;if(!f)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(fe=ge.return)&&fe.call(ge)}finally{if(de)throw de.error}}z==null||z()},register:function(ie){return U.set(ie,!1),function(){return U.delete(ie)}}}},G?void 0:[D]);return r.useMemo(function(){U.forEach(function(ie,de){return U.set(de,!1)})},[D]),v.useEffect(function(){!D&&!U.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:ee},M)};function i_(){return new Map}var ba=function(x){return x.key||""};function g0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var Ct=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,U=x.presenceAffectsLayout,Z=U===void 0?!0:U,ee=t.__read(Mc(),1),ie=ee[0],de=r.useContext(Ie).forceRender;de&&(ie=de);var fe=xf(),ge=Pr(M),u=ge,f=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,g0(ge,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),f.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Ee){return v.createElement(Rc,{key:ba(Ee),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:Z},Ee)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=ge.map(ba),le=j.length,me=0;me0?1:-1,G=x[z+$];if(!G)return x;var U=x[z],Z=G.layout,ee=i.mix(Z.min,Z.max,.5);return $===1&&U.layout.max+I>ee||$===-1&&U.layout.min+I.001?1/x:d_},Ef=!1;function f_(x){var M=Ki(1),I=Ki(1),D=b();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=Ct,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=Ie,e.LazyMotion=v0,e.MotionConfig=Sf,e.MotionConfigContext=p,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Re,e.addPointerEvent=Tl,e.addScaleCorrector=Ht,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=p0,e.createMotionComponent=ze,e.domAnimation=b0,e.domMax=w0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Eh,e.isMotionValue=Yt,e.isValidMotionProp=Dn,e.m=h0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=l_,e.useAnimationControls=iy,e.useAnimationFrame=S0,e.useCycle=ay,e.useDeprecatedAnimatedState=cy,e.useDeprecatedInvertedScale=f_,e.useDomEvent=At,e.useDragControls=Ul,e.useElementScroll=x0,e.useForceUpdate=Mc,e.useInView=ly,e.useInstantLayoutTransition=P0,e.useInstantTransition=u_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=_0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=sy,e.useScroll=kf,e.useSpring=a_,e.useTime=C0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=b,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(q),n=An,o=S(pt),i=S(Xn),a=S(et),l=Je,s=Jw,d=Xe,v=$v;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.className,p=g.children,m=_(g,["className","children"]),b=(0,s.useAccordion)(),T=b.open,k=b.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,w({},m,{ref:h,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),p)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(CA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return g}});var r=_(q),n=_(pt),o=Je,i=_(et),a=Xe,l=Jw,s=$v,d=SA,v=CA;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.open,m=h.icon,b=h.animate,T=h.className,k=h.disabled,R=h.children,E=P(h,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,b=b??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),w({},(0,i.default)(V.disabled),k)),T),H=r.default.useMemo(function(){return{open:p,icon:m,animate:b,disabled:k}},[p,m,b,k]);return r.default.createElement(l.AccordionContextProvider,{value:H},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var g=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(ZR);var eL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var d2={},dh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(dh),i=S(pt),a=Je,l=S(Sr),s=S(et),d=Xe,v=_d;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.size,m=g.color,b=g.ripple,T=g.className,k=g.children;g.fullWidth;var R=_(g,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,H=V.variants,Y=V.sizes;c=c??F.variant,p=p??F.size,m=m??F.color,b=b??F.ripple,T=(0,a.twMerge)(F.className||"",T);var re=b!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(H[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),X=(0,s.default)(Y[(0,l.default)(A.sizes,p,"md")]),te=(0,a.twMerge)((0,i.default)(Q,X,W),T);return r.default.createElement("button",w({},R,{ref:h,className:te,type:R.type||"button",onMouseDown:function(ne){var se=R==null?void 0:R.onMouseDown;return b&&re.create(ne,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof se=="function"&&se(ne)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(d2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var m in p)Object.defineProperty(c,m,{enumerable:!0,get:p[m]})}t(e,{Alert:function(){return g},default:function(){return h}});var r=P(q),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,w=NP,S=P(d2);function _(){return _=Object.assign||function(c){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(c,b)&&(m[b]=c[b])}return m}function C(c,p){if(c==null)return{};var m={},b=Object.keys(c),T,k;for(k=0;k=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,p){var m=c.variant,b=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),H=(0,v.useTheme)().alert,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.variants;m=m??Y.variant,b=b??Y.color,A=A??Y.animate,k=k??Y.open,R=R??Y.action,E=E??Y.onClose,F=(0,l.twMerge)(Y.className||"",F);var te=(0,d.default)(W.alert),ne=(0,d.default)(W.action),se=(0,d.default)(X[(0,s.default)(re.variants,m,"filled")][(0,s.default)(re.colors,b,"gray")]),ve=(0,l.twMerge)((0,i.default)(te,se),F),we=(0,i.default)(ne),ce={unmount:{opacity:0},mount:{opacity:1}},J=(0,a.default)(ce,A),oe=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,_({},B,{ref:p,role:"alert",className:"".concat(ve," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:J}),T&&oe,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?b:"white",className:we},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),icon:w.propTypesIcon,open:w.propTypesOpen,action:w.propTypesAction,onClose:w.propTypesOnClose,animate:w.propTypesAnimate,className:w.propTypesClassName,children:w.propTypesChildren},g.displayName="MaterialTailwind.Alert";var h=g})(eL);var tL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=AP;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.size,m=g.className,b=g.color,T=g.withBorder,k=_(g,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,H=F.sizes,Y=F.borderColor;c=c??A.variant,p=p??A.size,T=T??A.withBorder,b=b??A.color,m=(0,i.twMerge)(A.className||"",m);var re=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(H[(0,a.default)(E.sizes,p,"md")]),W=(0,l.default)(Y[(0,a.default)(E.colors,b,"gray")]),X,te=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),re,Q,(X={},v(X,(0,l.default)(V.withBorder),T),v(X,W,T),X)),m);return r.default.createElement("img",w({},k,{ref:h,className:te}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(tL);var rL={},nL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(ot);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(nL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(q),n=v(pt),o=Je,i=v(et),a=Xe,l=nL;function s(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function d(){return d=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=(0,r.forwardRef)(function(g,h){var c=g.separator,p=g.fullWidth,m=g.className,b=g.children,T=_(g,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,p=p??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),p)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:h,className:F}),r.Children.map(b,function(H,Y){if((0,r.isValidElement)(H)){var re;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),H==null||(re=H.props)===null||re===void 0?void 0:re.disabled))},H,Y!==r.Children.count(b)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(rL);var oL={},b3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Spinner:function(){return C},default:function(){return g}});var r=w(ot),n=_(q),o=w(pt),i=Je,a=w(Sr),l=w(et),s=Xe,d=GP;function v(){return v=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=(0,n.forwardRef)(function(h,c){var p=h.color,m=h.className,b=P(h,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;p=p??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,p,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),H,Y;return n.default.createElement("svg",v({},b,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(H=b==null?void 0:b.width)!==null&&H!==void 0?H:24,height:(Y=b==null?void 0:b.height)!==null&&Y!==void 0?Y:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var g=C})(b3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var m in p)Object.defineProperty(c,m,{enumerable:!0,get:p[m]})}t(e,{Button:function(){return g},default:function(){return h}});var r=P(q),n=P(ot),o=P(dh),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=P(b3),w=_d;function S(c,p,m){return p in c?Object.defineProperty(c,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[p]=m,c}function _(){return _=Object.assign||function(c){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(c,b)&&(m[b]=c[b])}return m}function C(c,p){if(c==null)return{};var m={},b=Object.keys(c),T,k;for(k=0;k=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,p){var m=c.variant,b=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,H=B.valid,Y=B.defaultProps,re=B.styles,Q=re.base,W=re.variants,X=re.sizes;m=m??Y.variant,b=b??Y.size,T=T??Y.color,k=k??Y.fullWidth,R=R??Y.ripple,E=(0,a.twMerge)(Y.className||"",E);var te=R!==void 0&&new o.default,ne=(0,s.default)(Q.initial),se=(0,s.default)(W[(0,l.default)(H.variants,m,"filled")][(0,l.default)(H.colors,T,"gray")]),ve=(0,s.default)(X[(0,l.default)(H.sizes,b,"md")]),we=(0,a.twMerge)((0,i.default)(ne,ve,se,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":b==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":b==="lg"})),J;return r.default.createElement("button",_({},V,{disabled:(J=V.disabled)!==null&&J!==void 0?J:F,ref:p,className:we,type:V.type||"button",onMouseDown:function(oe){var ue=V==null?void 0:V.onMouseDown;return R&&te.create(oe,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(oe)}}),F&&r.default.createElement(v.default,{className:ce}),A)});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),size:n.default.oneOf(w.propTypesSize),color:n.default.oneOf(w.propTypesColor),fullWidth:w.propTypesFullWidth,ripple:w.propTypesRipple,className:w.propTypesClassName,children:w.propTypesChildren,loading:w.propTypesLoading},g.displayName="MaterialTailwind.Button";var h=g})(oL);var iL={},aL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=xd;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.color,m=g.shadow,b=g.floated,T=g.className,k=g.children,R=_(g,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,H=F.variants;c=c??A.variant,p=p??A.color,m=m??A.shadow,b=b??A.floated,T=(0,i.twMerge)(A.className||"",T);var Y=(0,l.default)(B.initial),re=(0,l.default)(H[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,p,"white")]),Q=(0,i.twMerge)((0,o.default)(Y,re,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),b)),T);return r.default.createElement("div",w({},R,{ref:h,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(aL);var lL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return _}});var r=d(q),n=d(pt),o=Je,i=d(et),a=Xe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,p=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(p.className||"",C);var b=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},h,{ref:y,className:b}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var _=S})(lL);var sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{CardFooter:function(){return _},default:function(){return P}});var r=v(q),n=v(pt),o=Je,i=v(et),a=Xe,l=xd;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.divider,h=y.className,c=y.children,p=w(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,b=m.defaultProps,T=m.styles.base;g=g??b.divider,h=(0,o.twMerge)(b.className||"",h);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),g)),h);return r.default.createElement("div",d({},p,{ref:C,className:k}),c)});_.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},_.displayName="MaterialTailwind.CardFooter";var P=_})(sL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{Card:function(){return h},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return w.CardFooter},default:function(){return c}});var r=y(q),n=y(ot),o=y(pt),i=Je,a=y(Sr),l=y(et),s=Xe,d=aL,v=lL,w=sL,S=xd;function _(p,m,b){return m in p?Object.defineProperty(p,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[m]=b,p}function P(){return P=Object.assign||function(p){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function g(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}var h=r.default.forwardRef(function(p,m){var b=p.variant,T=p.color,k=p.shadow,R=p.className,E=p.children,A=C(p,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,H=F.valid,Y=B.base,re=B.variants;b=b??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(Y.initial),W=(0,l.default)(re[(0,a.default)(H.variants,b,"filled")][(0,a.default)(H.colors,T,"white")]),X=(0,i.twMerge)((0,o.default)(Q,W,_({},(0,l.default)(Y.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:X}),E)});h.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},h.displayName="MaterialTailwind.Card";var c=Object.assign(h,{Header:d.CardHeader,Body:v.CardBody,Footer:w.CardFooter})})(iL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Checkbox:function(){return C},default:function(){return g}});var r=_(q),n=_(ot),o=_(dh),i=_(pt),a=Je,l=_(Sr),s=_(et),d=Xe,v=Sd;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.color,m=h.label,b=h.icon,T=h.ripple,k=h.className,R=h.disabled,E=h.containerProps,A=h.labelProps,F=h.iconProps,V=h.inputRef,B=P(h,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().checkbox,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.colors,te=r.default.useId();p=p??Y.color,m=m??Y.label,b=b??Y.icon,T=T??Y.ripple,R=R??Y.disabled,E=E??Y.containerProps,A=A??Y.labelProps,F=F??Y.iconProps,k=(0,a.twMerge)(Y.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(re.colors,p,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||te,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:we,id:B.id||te})),r.default.createElement("span",{className:J},b||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||te}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var g=C})(uL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var m in p)Object.defineProperty(c,m,{enumerable:!0,get:p[m]})}t(e,{Chip:function(){return g},default:function(){return h}});var r=P(q),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,w=VP,S=P(d2);function _(){return _=Object.assign||function(c){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(c,b)&&(m[b]=c[b])}return m}function C(c,p){if(c==null)return{};var m={},b=Object.keys(c),T,k;for(k=0;k=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,p){var m=c.variant,b=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,H=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),Y=(0,v.useTheme)().chip,re=Y.defaultProps,Q=Y.valid,W=Y.styles,X=W.base,te=W.variants,ne=W.sizes;m=m??re.variant,b=b??re.size,T=T??re.color,F=F??re.animate,R=R??re.open,A=A??re.action,E=E??re.onClose,V=(0,l.twMerge)(re.className||"",V);var se=(0,d.default)(X.chip),ve=(0,d.default)(X.action),we=(0,d.default)(X.icon),ce=(0,d.default)(te[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),J=(0,d.default)(ne[(0,s.default)(Q.sizes,b,"md")].chip),oe=(0,d.default)(ne[(0,s.default)(Q.sizes,b,"md")].action),ue=(0,d.default)(ne[(0,s.default)(Q.sizes,b,"md")].icon),Se=(0,l.twMerge)((0,i.default)(se,ce,J),V),Ce=(0,i.default)(ve,oe),Me=(0,i.default)(we,ue),Ie=(0,i.default)({"ml-4":k&&b==="sm","ml-[18px]":k&&b==="md","ml-5":k&&b==="lg","mr-5":E}),Re={unmount:{opacity:0},mount:{opacity:1}},ye=(0,a.default)(Re,F),ke=r.default.createElement("div",{className:Me},k),ze=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ze,null,R&&r.default.createElement(o.m.div,_({},H,{ref:p,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:ye}),k&&ke,r.default.createElement("span",{className:Ie},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":b==="sm","h-4 w-4":b==="md","h-5 w-5":b==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});g.propTypes={variant:n.default.oneOf(w.propTypesVariant),size:n.default.oneOf(w.propTypesSize),color:n.default.oneOf(w.propTypesColor),icon:w.propTypesIcon,open:w.propTypesOpen,onClose:w.propTypesOnClose,action:w.propTypesAction,animate:w.propTypesAnimate,className:w.propTypesClassName,value:w.propTypesValue},g.displayName="MaterialTailwind.Chip";var h=g})(cL);var dL={},fL={exports:{}},jt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Zv=Symbol.for("react.element"),pY=Symbol.for("react.portal"),hY=Symbol.for("react.fragment"),gY=Symbol.for("react.strict_mode"),vY=Symbol.for("react.profiler"),mY=Symbol.for("react.provider"),yY=Symbol.for("react.context"),bY=Symbol.for("react.forward_ref"),wY=Symbol.for("react.suspense"),_Y=Symbol.for("react.memo"),xY=Symbol.for("react.lazy"),bk=Symbol.iterator;function SY(e){return e===null||typeof e!="object"?null:(e=bk&&e[bk]||e["@@iterator"],typeof e=="function"?e:null)}var pL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hL=Object.assign,gL={};function fh(e,t,r){this.props=e,this.context=t,this.refs=gL,this.updater=r||pL}fh.prototype.isReactComponent={};fh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vL(){}vL.prototype=fh.prototype;function w3(e,t,r){this.props=e,this.context=t,this.refs=gL,this.updater=r||pL}var _3=w3.prototype=new vL;_3.constructor=w3;hL(_3,fh.prototype);_3.isPureReactComponent=!0;var wk=Array.isArray,mL=Object.prototype.hasOwnProperty,x3={current:null},yL={key:!0,ref:!0,__self:!0,__source:!0};function bL(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)mL.call(t,n)&&!yL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Iy=new WeakMap,Ly={},Z_=0,_L=function(e){return e&&(e.host||_L(e.parentNode))},MY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=_L(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},RY=function(e,t,r,n){var o=MY(t,Array.isArray(e)?e:[e]);Ly[r]||(Ly[r]=new WeakMap);var i=Ly[r],a=[],l=new Set,s=new Set(o),d=function(w){!w||l.has(w)||(l.add(w),d(w.parentNode))};o.forEach(d);var v=function(w){!w||s.has(w)||Array.prototype.forEach.call(w.children,function(S){if(l.has(S))v(S);else try{var _=S.getAttribute(n),P=_!==null&&_!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Iy.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",S,g)}})};return v(t),l.clear(),Z_++,function(){a.forEach(function(w){var S=Nf.get(w)-1,_=i.get(w)-1;Nf.set(w,S),i.set(w,_),S||(Iy.has(w)||w.removeAttribute(n),Iy.delete(w)),_||w.removeAttribute(r)}),Z_--,Z_||(Nf=new WeakMap,Nf=new WeakMap,Iy=new WeakMap,Ly={})}},NY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=EY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),RY(n,o,r,"aria-hidden")):function(){return null}};/*! -* tabbable 6.2.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var AY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],cC=AY.join(","),xL=typeof Element>"u",uv=xL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,z1=!xL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},V1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},IY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},LY=function(t,r,n){if(V1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(cC));return r&&uv.call(t,cC)&&o.unshift(t),o=o.filter(n),o},DY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!V1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=uv.call(a,cC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var w=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!V1(w,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(w&&S){var _=e(w===!0?a.children:w.children,!0,n);n.flatten?o.push.apply(o,_):o.push({scopeParent:a,candidates:_})}else i.unshift.apply(i,a.children)}}return o},SL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},CL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||IY(t))&&!SL(t)?0:t.tabIndex},FY=function(t,r){var n=CL(t);return n<0&&r&&!SL(t)?0:n},jY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},PL=function(t){return t.tagName==="INPUT"},zY=function(t){return PL(t)&&t.type==="hidden"},VY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},BY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(uv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=z1(t);if(s&&!s.shadowRoot&&o(s)===!0)return xk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if($Y(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return xk(t);return!1},KY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},XY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=FY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(jY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},B1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=DY([t],r.includeContainer,{filter:Sk.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:YY}):n=LY(t,r.includeContainer,Sk.bind(null,r)),XY(n)},TL={exports:{}},Ni={};/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var OL=be,ki=fp;function De(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dC=Object.prototype.hasOwnProperty,QY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ck={},Pk={};function ZY(e){return dC.call(Pk,e)?!0:dC.call(Ck,e)?!1:QY.test(e)?Pk[e]=!0:(Ck[e]=!0,!1)}function JY(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eX(e,t,r,n){if(t===null||typeof t>"u"||JY(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var C3=/[\-:]([a-z])/g;function P3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function T3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ex=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?sg(e):""}function tX(e){switch(e.tag){case 5:return sg(e.type);case 16:return sg("Lazy");case 13:return sg("Suspense");case 19:return sg("SuspenseList");case 0:case 2:case 15:return e=tx(e.type,!1),e;case 11:return e=tx(e.type.render,!1),e;case 1:return e=tx(e.type,!0),e;default:return""}}function gC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case tp:return"Fragment";case ep:return"Portal";case fC:return"Profiler";case O3:return"StrictMode";case pC:return"Suspense";case hC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ML:return(e.displayName||"Context")+".Consumer";case EL:return(e._context.displayName||"Context")+".Provider";case k3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case E3:return t=e.displayName||null,t!==null?t:gC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return gC(e(t))}catch{}}return null}function rX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gC(t);case 8:return t===O3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function NL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nX(e){var t=NL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fy(e){e._valueTracker||(e._valueTracker=nX(e))}function AL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=NL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function U1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ok(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function IL(e,t){t=t.checked,t!=null&&T3(e,"checked",t,!1)}function mC(e,t){IL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yC(e,t.type,r):t.hasOwnProperty("defaultValue")&&yC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kk(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function yC(e,t,r){(t!=="number"||U1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ug=Array.isArray;function xp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=jy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Tg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},oX=["Webkit","ms","Moz","O"];Object.keys(Tg).forEach(function(e){oX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tg[t]=Tg[e]})});function jL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Tg.hasOwnProperty(e)&&Tg[e]?(""+t).trim():t+"px"}function zL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=jL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var iX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _C(e,t){if(t){if(iX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(De(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(De(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(De(61))}if(t.style!=null&&typeof t.style!="object")throw Error(De(62))}}function xC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var SC=null;function M3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var CC=null,Sp=null,Cp=null;function Rk(e){if(e=tm(e)){if(typeof CC!="function")throw Error(De(280));var t=e.stateNode;t&&(t=v2(t),CC(e.stateNode,e.type,t))}}function VL(e){Sp?Cp?Cp.push(e):Cp=[e]:Sp=e}function BL(){if(Sp){var e=Sp,t=Cp;if(Cp=Sp=null,Rk(e),t)for(e=0;e>>=0,e===0?32:31-(vX(e)/mX|0)|0}var zy=64,Vy=4194304;function cg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function G1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=cg(l):(i&=a,i!==0&&(n=cg(i)))}else a=r&~o,a!==0?n=cg(a):i!==0&&(n=cg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function _X(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=kg),Vk=" ",Bk=!1;function lD(e,t){switch(e){case"keyup":return YX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rp=!1;function QX(e,t){switch(e){case"compositionend":return sD(t);case"keypress":return t.which!==32?null:(Bk=!0,Vk);case"textInput":return e=t.data,e===Vk&&Bk?null:e;default:return null}}function ZX(e,t){if(rp)return e==="compositionend"||!j3&&lD(e,t)?(e=iD(),Db=L3=uu=null,rp=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$k(r)}}function fD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pD(){for(var e=window,t=U1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=U1(e.document)}return t}function z3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lQ(e){var t=pD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fD(r.ownerDocument.documentElement,r)){if(n!==null&&z3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Gk(r,i);var a=Gk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,np=null,MC=null,Mg=null,RC=!1;function Kk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;RC||np==null||np!==U1(n)||(n=np,"selectionStart"in n&&z3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mg&&mv(Mg,n)||(Mg=n,n=Y1(MC,"onSelect"),0ap||(e.current=FC[ap],FC[ap]=null,ap--)}function cr(e,t){ap++,FC[ap]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function Wp(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Q1(){yr(Jo),yr(go)}function e8(e,t,r){if(go.current!==Ru)throw Error(De(168));cr(go,t),cr(Jo,r)}function xD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(De(108,rX(e)||"Unknown",o));return Ir({},r,n)}function Z1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function t8(e,t,r){var n=e.stateNode;if(!n)throw Error(De(169));r?(e=xD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,m2=!1,gx=!1;function SD(e){Yl===null?Yl=[e]:Yl.push(e)}function bQ(e){m2=!0,SD(e)}function Hu(){if(!gx&&Yl!==null){gx=!0;var e=0,t=Qt;try{var r=Yl;for(Qt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(g,T,c[k],p);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(g,T),h=i(E,h,k),b===null?m=E:b.sibling=E,b=E,T=R}if(k===c.length)return r(g,T),xr&&zc(g,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(g,T,E.value,p);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(g,T),h=i(A,h,k),b===null?m=A:b.sibling=A,b=A,T=R}if(E.done)return r(g,T),xr&&zc(g,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=w(g,E.value,p),E!==null&&(h=i(E,h,k),b===null?m=E:b.sibling=E,b=E);return xr&&zc(g,k),m}for(T=n(g,T);!E.done;k++,E=c.next())E=_(T,g,k,E.value,p),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),h=i(E,h,k),b===null?m=E:b.sibling=E,b=E);return e&&T.forEach(function(F){return t(g,F)}),xr&&zc(g,k),m}function C(g,h,c,p){if(typeof c=="object"&&c!==null&&c.type===tp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Dy:e:{for(var m=c.key,b=h;b!==null;){if(b.key===m){if(m=c.type,m===tp){if(b.tag===7){r(g,b.sibling),h=o(b,c.props.children),h.return=g,g=h;break e}}else if(b.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&s8(m)===b.type){r(g,b.sibling),h=o(b,c.props),h.ref=$0(g,b,c),h.return=g,g=h;break e}r(g,b);break}else t(g,b);b=b.sibling}c.type===tp?(h=ed(c.props.children,g.mode,p,c.key),h.return=g,g=h):(p=Wb(c.type,c.key,c.props,null,g.mode,p),p.ref=$0(g,h,c),p.return=g,g=p)}return a(g);case ep:e:{for(b=c.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===c.containerInfo&&h.stateNode.implementation===c.implementation){r(g,h.sibling),h=o(h,c.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=Sx(c,g.mode,p),h.return=g,g=h}return a(g);case eu:return b=c._init,C(g,h,b(c._payload),p)}if(ug(c))return P(g,h,c,p);if(V0(c))return y(g,h,c,p);Ky(g,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,c),h.return=g,g=h):(r(g,h),h=xx(c,g.mode,p),h.return=g,g=h),a(g)):r(g,h)}return C}var Gp=RD(!0),ND=RD(!1),rm={},yl=Uu(rm),_v=Uu(rm),xv=Uu(rm);function Yc(e){if(e===rm)throw Error(De(174));return e}function q3(e,t){switch(cr(xv,t),cr(_v,e),cr(yl,rm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wC(t,e)}yr(yl),cr(yl,t)}function Kp(){yr(yl),yr(_v),yr(xv)}function AD(e){Yc(xv.current);var t=Yc(yl.current),r=wC(t,e.type);t!==r&&(cr(_v,e),cr(yl,r))}function Y3(e){_v.current===e&&(yr(yl),yr(_v))}var Er=Uu(0);function ow(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vx=[];function X3(){for(var e=0;er?r:4,e(!0);var n=mx.transition;mx.transition={};try{e(!1),t()}finally{Qt=r,mx.transition=n}}function YD(){return ca().memoizedState}function SQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},XD(e))QD(t,r);else if(r=OD(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),ZD(r,t,n)}}function CQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(XD(e))QD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,G3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=OD(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),ZD(r,t,n))}}function XD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function QD(e,t){Rg=iw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ZD(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,N3(e,r)}}var aw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},PQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:c8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Vb(4194308,4,WD.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=SQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:u8,useDebugValue:tT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=u8(!1),t=e[0];return e=xQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(De(407));r=r()}else{if(r=t(),Nn===null)throw Error(De(349));(ud&30)!==0||DD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,c8(jD.bind(null,n,i,e),[e]),n.flags|=2048,Pv(9,FD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[wv]=n,lF(e,t,!1,!1),t.stateNode=e;e:{switch(a=xC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oYp&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304)}else{if(!n)if(e=ow(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),G0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Yp&&r!==1073741824&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return lT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function AQ(e,t){switch(B3(t),t.tag){case 1:return ei(t.type)&&Q1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kp(),yr(Jo),yr(go),X3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Y3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(De(340));$p()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return Kp(),null;case 10:return $3(t.type._context),null;case 22:case 23:return lT(),null;case 24:return null;default:return null}}var Yy=!1,fo=!1,IQ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function cp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function YC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var b8=!1;function LQ(e,t){if(NC=K1,e=pD(),z3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,w=e,S=null;t:for(;;){for(var _;w!==r||o!==0&&w.nodeType!==3||(l=a+o),w!==i||n!==0&&w.nodeType!==3||(s=a+n),w.nodeType===3&&(a+=w.nodeValue.length),(_=w.firstChild)!==null;)S=w,w=_;for(;;){if(w===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(_=w.nextSibling)!==null)break;w=S,S=w.parentNode}w=_}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(AC={focusedElem:e,selectionRange:r},K1=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(De(163))}}catch(p){Br(t,t.return,p)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return P=b8,b8=!1,P}function Ng(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&YC(t,r,i)}o=o.next}while(o!==n)}}function w2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function XC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function cF(e){var t=e.alternate;t!==null&&(e.alternate=null,cF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[wv],delete t[DC],delete t[mQ],delete t[yQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dF(e){return e.tag===5||e.tag===3||e.tag===4}function w8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function QC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=X1));else if(n!==4&&(e=e.child,e!==null))for(QC(e,t,r),e=e.sibling;e!==null;)QC(e,t,r),e=e.sibling}function ZC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ZC(e,t,r),e=e.sibling;e!==null;)ZC(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)fF(e,t,r),r=r.sibling}function fF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(f2,r)}catch{}switch(r.tag){case 5:fo||cp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?hx(e.parentNode,r):e.nodeType===1&&hx(e,r),gv(e)):hx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&YC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(cp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function _8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new IQ),t.forEach(function(n){var o=WQ.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*FQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,uw=0,($t&6)!==0)throw Error(De(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-iT?Jc(e,0):oT|=r),ti(e,t)}function wF(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vy,Vy<<=1,(Vy&130023424)===0&&(Vy=4194304)));var r=No();e=hs(e,t),e!==null&&(Jv(e,t,r),ti(e,r))}function HQ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),wF(e,r)}function WQ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(De(314))}n!==null&&n.delete(t),wF(e,r)}var _F;_F=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,RQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&CD(t,ew,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bb(e,t),e=t.pendingProps;var o=Wp(t,go.current);Tp(t,r),o=Z3(null,t,n,e,o,r);var i=J3();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,Z1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,K3(t),o.updater=y2,t.stateNode=o,o._reactInternals=t,UC(t,n,e,r),t=$C(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&V3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=GQ(n),e=Oa(n,e),o){case 0:t=WC(null,t,n,e,r);break e;case 1:t=v8(null,t,n,e,r);break e;case 11:t=h8(null,t,n,e,r);break e;case 14:t=g8(null,t,n,Oa(n.type,e),r);break e}throw Error(De(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),WC(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),v8(e,t,n,o,r);case 3:e:{if(oF(t),e===null)throw Error(De(387));n=t.pendingProps,i=t.memoizedState,o=i.element,kD(e,t),nw(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qp(Error(De(423)),t),t=m8(e,t,n,r,o);break e}else if(n!==o){o=qp(Error(De(424)),t),t=m8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=ND(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($p(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return AD(t),e===null&&zC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,IC(n,o)?a=null:i!==null&&IC(n,i)&&(t.flags|=32),nF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&zC(t),null;case 13:return iF(e,t,r);case 4:return q3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),h8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(tw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),VC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(De(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),VC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Tp(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),g8(e,t,n,o,r);case 15:return tF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Bb(e,t),t.tag=1,ei(n)?(e=!0,Z1(t)):e=!1,Tp(t,r),MD(t,n,o),UC(t,n,o,r),$C(null,t,n,!0,e,r);case 19:return aF(e,t,r);case 22:return rF(e,t,r)}throw Error(De(156,t.tag))};function xF(e,t){return qL(e,t)}function $Q(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new $Q(e,t,r,n)}function uT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GQ(e){if(typeof e=="function")return uT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k3)return 11;if(e===E3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Wb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")uT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case tp:return ed(r.children,o,i,t);case O3:a=8,o|=8;break;case fC:return e=ra(12,r,t,o|2),e.elementType=fC,e.lanes=i,e;case pC:return e=ra(13,r,t,o),e.elementType=pC,e.lanes=i,e;case hC:return e=ra(19,r,t,o),e.elementType=hC,e.lanes=i,e;case RL:return x2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case EL:a=10;break e;case ML:a=9;break e;case k3:a=11;break e;case E3:a=14;break e;case eu:a=16,n=null;break e}throw Error(De(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function x2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=RL,e.lanes=r,e.stateNode={isHidden:!1},e}function xx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Sx(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nx(0),this.expirationTimes=nx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nx(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cT(e,t,r,n,o,i,a,l,s){return e=new KQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},K3(i),e}function qQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TF)}catch(e){console.error(e)}}TF(),TL.exports=Ni;var Nu=TL.exports;const OF=["top","right","bottom","left"],E8=["start","end"],M8=OF.reduce((e,t)=>e.concat(t,t+"-"+E8[0],t+"-"+E8[1]),[]),Ua=Math.min,po=Math.max,fw=Math.round,Zy=Math.floor,Au=e=>({x:e,y:e}),JQ={left:"right",right:"left",bottom:"top",top:"bottom"},eZ={start:"end",end:"start"};function n4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function hT(e){return e==="x"?"y":"x"}function gT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function vT(e){return hT(vs(e))}function kF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=vT(e),i=gT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=hw(a)),[a,hw(a)]}function tZ(e){const t=hw(e);return[pw(e),t,pw(t)]}function pw(e){return e.replace(/start|end/g,t=>eZ[t])}function rZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function nZ(e,t,r,n){const o=ja(e);let i=rZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(pw)))),i}function hw(e){return e.replace(/left|right|bottom|top/g,t=>JQ[t])}function oZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function mT(e){return typeof e!="number"?oZ(e):{top:e,right:e,bottom:e,left:e}}function Xp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function R8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=vT(t),l=gT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,w=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let _;switch(s){case"top":_={x:v,y:n.y-o.height};break;case"bottom":_={x:v,y:n.y+n.height};break;case"right":_={x:n.x+n.width,y:w};break;case"left":_={x:n.x-o.width,y:w};break;default:_={x:n.x,y:n.y}}switch(ja(t)){case"start":_[a]-=S*(r&&d?-1:1);break;case"end":_[a]+=S*(r&&d?-1:1);break}return _}const iZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:w}=R8(d,n,s),S=n,_={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const w=mT(v),S={x:r,y:n},_=vT(o),P=gT(_),y=await a.getDimensions(d),C=_==="y",g=C?"top":"left",h=C?"bottom":"right",c=C?"clientHeight":"clientWidth",p=i.reference[P]+i.reference[_]-S[_]-i.floating[P],m=S[_]-i.reference[_],b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=b?b[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(b)))&&(T=l.floating[c]||i.floating[P]);const k=p/2-m/2,R=T/2-y[P]/2-1,E=Ua(w[g],R),A=Ua(w[h],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,H=n4(F,B,V),Y=!s.arrow&&ja(o)!=null&&B!==H&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?pw(o)!==o:!1):!0)}const sZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:w,allowedPlacements:S=M8,autoAlignment:_=!0,...P}=Ha(e,t),y=w!==void 0||S===M8?lZ(w||null,_,S):S,C=await fd(t,P),g=((r=a.autoPlacement)==null?void 0:r.index)||0,h=y[g];if(h==null)return{};const c=kF(h,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==h)return{reset:{placement:y[0]}};const p=[C[Ei(h)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:h,overflows:p}],b=y[g+1];if(b)return{data:{index:g+1,overflows:m},reset:{placement:b}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:g+1,overflows:m},reset:{placement:R}}:{}}}},uZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:w=!0,fallbackPlacements:S,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const g=Ei(o),h=vs(l),c=Ei(l)===l,p=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[hw(l)]:tZ(l)),b=P!=="none";!S&&b&&m.push(...nZ(l,y,P,p));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[g]),w){const B=kF(o,a,p);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,H=T[B];if(H)return{data:{index:B,overflows:E},reset:{placement:H}};let Y=(F=E.filter(re=>re.overflows[0]<=0).sort((re,Q)=>re.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!Y)switch(_){case"bestFit":{var V;const re=(V=E.filter(Q=>{if(b){const W=vs(Q.placement);return W===h||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,X)=>W+X,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];re&&(Y=re);break}case"initialPlacement":Y=l;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function N8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A8(e){return OF.some(t=>e[t]>=0)}const cZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=N8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:A8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=N8(i,r.floating);return{data:{escapedOffsets:a,escaped:A8(a)}}}default:return{}}}}};function EF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function dZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Xp(EF(o)))}const fZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),w=dZ(v),S=Xp(EF(v)),_=mT(l);function P(){if(w.length===2&&w[0].left>w[1].right&&s!=null&&d!=null)return w.find(C=>s>C.left-_.left&&sC.top-_.top&&d=2){if(vs(r)==="y"){const E=w[0],A=w[w.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,H=F?E.left:A.left,Y=F?E.right:A.right,re=Y-H,Q=B-V;return{top:V,bottom:B,left:H,right:Y,width:re,height:Q,x:H,y:V}}const C=Ei(r)==="left",g=po(...w.map(E=>E.right)),h=Ua(...w.map(E=>E.left)),c=w.filter(E=>C?E.left===h:E.right===g),p=c[0].top,m=c[c.length-1].bottom,b=h,T=g,k=T-b,R=m-p;return{top:p,bottom:m,left:b,right:T,width:k,height:R,x:b,y:p}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function pZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,w=Ha(t,e);let{mainAxis:S,crossAxis:_,alignmentAxis:P}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return l&&typeof P=="number"&&(_=l==="end"?P*-1:P),s?{x:_*v,y:S*d}:{x:S*d,y:_*v}}const hZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await pZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},gZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:g,y:h}=C;return{x:g,y:h}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),w=vs(Ei(o)),S=hT(w);let _=d[S],P=d[w];if(i){const C=S==="y"?"top":"left",g=S==="y"?"bottom":"right",h=_+v[C],c=_-v[g];_=n4(h,_,c)}if(a){const C=w==="y"?"top":"left",g=w==="y"?"bottom":"right",h=P+v[C],c=P-v[g];P=n4(h,P,c)}const y=l.fn({...t,[S]:_,[w]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[w]:a}}}}}},vZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},w=vs(o),S=hT(w);let _=v[S],P=v[w];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",p=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;_m&&(_=m)}if(d){var g,h;const c=S==="y"?"width":"height",p=["top","left"].includes(Ei(o)),m=i.reference[w]-i.floating[c]+(p&&((g=a.offset)==null?void 0:g[w])||0)+(p?0:C.crossAxis),b=i.reference[w]+i.reference[c]+(p?0:((h=a.offset)==null?void 0:h[w])||0)-(p?C.crossAxis:0);Pb&&(P=b)}return{[S]:_,[w]:P}}}},mZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),w=Ei(o),S=ja(o),_=vs(o)==="y",{width:P,height:y}=i.floating;let C,g;w==="top"||w==="bottom"?(C=w,g=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=w,C=S==="end"?"top":"bottom");const h=y-v.top-v.bottom,c=P-v.left-v.right,p=Ua(y-v[C],h),m=Ua(P-v[g],c),b=!t.middlewareData.shift;let T=p,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=h),b&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);_?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function O2(){return typeof window<"u"}function gh(e){return MF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(MF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function MF(e){return O2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return O2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return O2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function I8(e){return!O2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function nm(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function yZ(e){return["table","td","th"].includes(gh(e))}function k2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yT(e){const t=bT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function bZ(e){let t=Iu(e);for(;wl(t)&&!Qp(t);){if(yT(t))return t;if(k2(t))return null;t=Iu(t)}return null}function bT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qp(e){return["html","body","#document"].includes(gh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function E2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(gh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||I8(e)&&e.host||_l(e);return I8(t)?t.host:t}function RF(e){const t=Iu(e);return Qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&nm(t)?t:RF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=RF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=o4(a);return t.concat(a,a.visualViewport||[],nm(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function o4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=fw(r)!==i||fw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function wT(e){return Wa(e)?e:e.contextElement}function kp(e){const t=wT(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=NF(t);let a=(i?fw(r.width):r.width)/n,l=(i?fw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const wZ=Au(0);function AF(e){const t=Pi(e);return!bT()||!t.visualViewport?wZ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _Z(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=wT(e);let a=Au(1);t&&(n?Wa(n)&&(a=kp(n)):a=kp(e));const l=_Z(i,r,n)?AF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,w=o.height/a.y;if(i){const S=Pi(i),_=n&&Wa(n)?Pi(n):n;let P=S,y=o4(P);for(;y&&n&&_!==P;){const C=kp(y),g=y.getBoundingClientRect(),h=$a(y),c=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*C.x,p=g.top+(y.clientTop+parseFloat(h.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,w*=C.y,s+=c,d+=p,P=Pi(y),y=o4(P)}}return Xp({width:v,height:w,x:s,y:d})}function xZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?k2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),w=wl(n);if((w||!w&&!i)&&((gh(n)!=="body"||nm(a))&&(s=E2(n)),wl(n))){const S=pd(n);d=kp(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function SZ(e){return Array.from(e.getClientRects())}function i4(e,t){const r=E2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function CZ(e){const t=_l(e),r=E2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+i4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function PZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=bT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function TZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?kp(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function L8(e,t,r){let n;if(t==="viewport")n=PZ(e,r);else if(t==="document")n=CZ(_l(e));else if(Wa(t))n=TZ(t,r);else{const o=AF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Xp(n)}function IF(e,t){const r=Iu(e);return r===t||!Wa(r)||Qp(r)?!1:$a(r).position==="fixed"||IF(r,t)}function OZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&gh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Qp(a);){const l=$a(a),s=yT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nm(a)&&!s&&IF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function kZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?k2(t)?[]:OZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const w=L8(t,v,o);return d.top=po(w.top,d.top),d.right=Ua(w.right,d.right),d.bottom=Ua(w.bottom,d.bottom),d.left=po(w.left,d.left),d},L8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function EZ(e){const{width:t,height:r}=NF(e);return{width:t,height:r}}function MZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((gh(t)!=="body"||nm(o))&&(l=E2(t)),n){const _=pd(t,!0,i,t);s.x=_.x+t.clientLeft,s.y=_.y+t.clientTop}else o&&(s.x=i4(o));let d=0,v=0;if(o&&!n&&!i){const _=o.getBoundingClientRect();v=_.top+l.scrollTop,d=_.left+l.scrollLeft-i4(o,_)}const w=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:w,y:S,width:a.width,height:a.height}}function Cx(e){return $a(e).position==="static"}function D8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function LF(e,t){const r=Pi(e);if(k2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Qp(o);){if(Wa(o)&&!Cx(o))return o;o=Iu(o)}return r}let n=D8(e,t);for(;n&&yZ(n)&&Cx(n);)n=D8(n,t);return n&&Qp(n)&&Cx(n)&&!yT(n)?r:n||bZ(e)||r}const RZ=async function(e){const t=this.getOffsetParent||LF,r=this.getDimensions,n=await r(e.floating);return{reference:MZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function NZ(e){return $a(e).direction==="rtl"}const DF={convertOffsetParentRelativeRectToViewportRelativeRect:xZ,getDocumentElement:_l,getClippingRect:kZ,getOffsetParent:LF,getElementRects:RZ,getClientRects:SZ,getDimensions:EZ,getScale:kp,isElement:Wa,isRTL:NZ};function AZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:w,height:S}=e.getBoundingClientRect();if(l||t(),!w||!S)return;const _=Zy(v),P=Zy(o.clientWidth-(d+w)),y=Zy(o.clientHeight-(v+S)),C=Zy(d),h={rootMargin:-_+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function p(m){const b=m[0].intersectionRatio;if(b!==s){if(!c)return a();b?a(!1,b):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(p,{...h,root:o.ownerDocument})}catch{r=new IntersectionObserver(p,h)}r.observe(e)}return a(!0),i}function IZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=wT(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const w=d&&l?AZ(d,r):null;let S=-1,_=null;a&&(_=new ResizeObserver(g=>{let[h]=g;h&&h.target===d&&_&&(_.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=_)==null||c.observe(t)})),r()}),d&&!s&&_.observe(d),_.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const g=pd(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&r(),y=g,P=requestAnimationFrame(C)}return r(),()=>{var g;v.forEach(h=>{o&&h.removeEventListener("scroll",r),i&&h.removeEventListener("resize",r)}),w==null||w(),(g=_)==null||g.disconnect(),_=null,s&&cancelAnimationFrame(P)}}const $b=fd,FF=hZ,LZ=sZ,DZ=gZ,FZ=uZ,jZ=mZ,zZ=cZ,F8=aZ,VZ=fZ,BZ=vZ,jF=(e,t,r)=>{const n=new Map,o={platform:DF,...r},i={...o.platform,_c:n};return iZ(e,t,{...o,platform:i})},UZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?F8({element:t.current,padding:r}).fn(o):{}:t?F8({element:t,padding:r}).fn(o):{}}}};var Gb=typeof document<"u"?be.useLayoutEffect:be.useEffect;function gw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!gw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!gw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function j8(e){const t=be.useRef(e);return Gb(()=>{t.current=e}),t}function HZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=be.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=be.useState(n);gw(d,n)||v(n);const w=be.useRef(null),S=be.useRef(null),_=be.useRef(l),P=j8(i),y=j8(o),[C,g]=be.useState(null),[h,c]=be.useState(null),p=be.useCallback(E=>{w.current!==E&&(w.current=E,g(E))},[]),m=be.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),b=be.useCallback(()=>{if(!w.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),jF(w.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!gw(_.current,F)&&(_.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Gb(()=>{a===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=be.useRef(!1);Gb(()=>(T.current=!0,()=>{T.current=!1}),[]),Gb(()=>{if(C&&h){if(P.current)return P.current(C,h,b);b()}},[C,h,b,P]);const k=be.useMemo(()=>({reference:w,floating:S,setReference:p,setFloating:m}),[p,m]),R=be.useMemo(()=>({reference:C,floating:h}),[C,h]);return be.useMemo(()=>({...l,update:b,refs:k,elements:R,reference:p,floating:m}),[l,b,k,R,p,m])}var Mr=typeof document<"u"?be.useLayoutEffect:be.useEffect;let Px=!1,WZ=0;const z8=()=>"floating-ui-"+WZ++;function $Z(){const[e,t]=be.useState(()=>Px?z8():void 0);return Mr(()=>{e==null&&t(z8())},[]),be.useEffect(()=>{Px||(Px=!0)},[]),e}const GZ=wL.useId,Ov=GZ||$Z;function zF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const VF=be.createContext(null),BF=be.createContext(null),vh=()=>{var e;return((e=be.useContext(VF))==null?void 0:e.id)||null},Od=()=>be.useContext(BF),KZ=e=>{const t=Ov(),r=Od(),n=vh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},qZ=e=>{let{children:t,id:r}=e;const n=vh();return be.createElement(VF.Provider,{value:be.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},YZ=e=>{let{children:t}=e;const r=be.useRef([]),n=be.useCallback(a=>{r.current=[...r.current,a]},[]),o=be.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=be.useState(()=>zF())[0];return be.createElement(BF.Provider,{value:be.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function _T(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function UF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function xT(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof xT(e).Element:!1}function hd(e){return e?e instanceof xT(e).HTMLElement:!1}function XZ(e){if(typeof ShadowRoot>"u")return!1;const t=xT(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HF(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(_T())||t.test(UF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function WF(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function a4(){return/apple/i.test(navigator.vendor)}function $F(){return _T().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=be.useRef(e);return Mr(()=>{t.current=e}),t}const V8="data-floating-ui-safe-polygon";function Kb(e,t,r){return r&&!vw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const QZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:w,elements:{domReference:S,floating:_},refs:P}=e,y=Od(),C=vh(),g=oa(o),h=oa(n),c=be.useRef(),p=be.useRef(),m=be.useRef(),b=be.useRef(),T=be.useRef(!0),k=be.useRef(!1),R=be.useRef(()=>{}),E=be.useCallback(()=>{var B;const H=(B=v.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"},[v]);be.useEffect(()=>{if(!r)return;function B(){clearTimeout(p.current),clearTimeout(b.current),T.current=!0}return w.on("dismiss",B),()=>{w.off("dismiss",B)}},[r,w]),be.useEffect(()=>{if(!r||!g.current||!s)return;function B(){E()&&d(!1)}const H=Yo(_).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[_,s,d,r,g,v,E]);const A=be.useCallback(function(B){B===void 0&&(B=!0);const H=Kb(h.current,"close",c.current);H&&!m.current?(clearTimeout(p.current),p.current=setTimeout(()=>d(!1),H)):B&&(clearTimeout(p.current),d(!1))},[h,d]),F=be.useCallback(()=>{R.current(),m.current=void 0},[]),V=be.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(V8),k.current=!1}},[P]);return be.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function H(Q){if(clearTimeout(p.current),T.current=!1,i&&!vw(c.current)||a>0&&Kb(h.current,"open")===0)return;v.current.openEvent=Q;const W=Kb(h.current,"open",c.current);W?p.current=setTimeout(()=>{d(!0)},W):d(!0)}function Y(Q){if(B())return;R.current();const W=Yo(_);if(clearTimeout(b.current),g.current){clearTimeout(p.current),m.current=g.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const X=m.current;W.addEventListener("mousemove",X),R.current=()=>{W.removeEventListener("mousemove",X)};return}A()}function re(Q){B()||g.current==null||g.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",re),_==null||_.addEventListener("mouseleave",re),l&&Q.addEventListener("mousemove",H,{once:!0}),Q.addEventListener("mouseenter",H),Q.addEventListener("mouseleave",Y),()=>{s&&Q.removeEventListener("mouseleave",re),_==null||_.removeEventListener("mouseleave",re),l&&Q.removeEventListener("mousemove",H),Q.removeEventListener("mouseenter",H),Q.removeEventListener("mouseleave",Y)}}},[S,_,r,e,i,a,l,A,F,V,d,s,y,h,g,v]),Mr(()=>{var B;if(r&&s&&(B=g.current)!=null&&B.__options.blockPointerEvents&&E()){const re=Yo(_).body;if(re.setAttribute(V8,""),re.style.pointerEvents="none",k.current=!0,na(S)&&_){var H,Y;const Q=S,W=y==null||(H=y.nodesRef.current.find(X=>X.id===C))==null||(Y=H.context)==null?void 0:Y.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",_.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",_.style.pointerEvents=""}}}},[r,s,C,_,S,y,g,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),be.useEffect(()=>()=>{F(),clearTimeout(p.current),clearTimeout(b.current),V()},[r,F,V]),be.useMemo(()=>{if(!r)return{};function B(H){c.current=H.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(b.current),b.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(p.current)},onMouseLeave(){w.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[w,r,a,s,d,A])},GF=be.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),KF=()=>be.useContext(GF),ZZ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=be.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=be.useRef(null),l=be.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),be.createElement(GF.Provider,{value:be.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},JZ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=KF();be.useEffect(()=>{i&&(s({delay:{open:1,close:Kb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),be.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const w=window.setTimeout(v,d);return()=>{clearTimeout(w)}}else v()},[r,s,i,o,n,l,d]),be.useEffect(()=>{r&&a(o)},[r,a,o])};function kv(){return kv=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():B8=requestAnimationFrame(i)}function eJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Lg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function M2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const tJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function qF(e){return hd(e)&&e.matches(tJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const mw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function YF(e,t){const r=B1(e,mw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function XF(){return YF(document.body,"next")}function QF(){return YF(document.body,"prev")}function Dg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function rJ(e){B1(e,mw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function nJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const oJ=wL.useInsertionEffect,iJ=oJ||(e=>e());function mh(e){const t=be.useRef(()=>{});return iJ(()=>{t.current=e}),be.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(a4()&&i("button"),document.addEventListener("keydown",U8),()=>{document.removeEventListener("keydown",U8)}),[]),be.createElement("span",kv({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:ST,onFocus:a=>{a4()&&$F()&&!aJ(a)?(a.persist(),CT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),ZF=be.createContext(null),JF=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=be.useState(null),i=Ov(),a=ej();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},lJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=JF({id:r,enabled:!n}),[a,l]=be.useState(null),s=be.useRef(null),d=be.useRef(null),v=be.useRef(null),w=be.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return be.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function _(P){i&&Dg(P)&&(P.type==="focusin"?nJ:rJ)(i)}return i.addEventListener("focusin",_,!0),i.addEventListener("focusout",_,!0),()=>{i.removeEventListener("focusin",_,!0),i.removeEventListener("focusout",_,!0)}},[i,o,a==null?void 0:a.modal]),be.createElement(ZF.Provider,{value:be.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:w,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&be.createElement(yw,{"data-type":"outside",ref:s,onFocus:_=>{if(Dg(_,i)){var P;(P=v.current)==null||P.focus()}else{const y=QF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&be.createElement("span",{"aria-owns":i.id,style:ST}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&be.createElement(yw,{"data-type":"outside",ref:d,onFocus:_=>{if(Dg(_,i)){var P;(P=w.current)==null||P.focus()}else{const y=XF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},ej=()=>be.useContext(ZF),sJ=be.forwardRef(function(t,r){return be.createElement("button",kv({},t,{type:"button",ref:r,tabIndex:-1,style:ST}))});function uJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:w,onOpenChange:S,events:_,dataRef:P,elements:{domReference:y,floating:C}}=t,g=oa(n),h=Od(),c=ej(),[p,m]=be.useState(null),b=typeof i=="number"&&i<0,T=be.useRef(null),k=be.useRef(null),R=be.useRef(!1),E=be.useRef(null),A=be.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&qF(y),B=be.useCallback(function(Q){return Q===void 0&&(Q=C),Q?B1(Q,mw()):[]},[C]),H=be.useCallback(Q=>{const W=B(Q);return g.current.map(X=>y&&X==="reference"?y:C&&X==="floating"?C:W).filter(Boolean).flat()},[y,C,g,B]);be.useEffect(()=>{if(!l)return;function Q(X){if(X.key==="Tab"){B().length===0&&!V&&Xi(X);const te=H(),ne=M2(X);g.current[0]==="reference"&&ne===y&&(Xi(X),X.shiftKey?Ys(te[te.length-1]):Ys(te[1])),g.current[1]==="floating"&&ne===C&&X.shiftKey&&(Xi(X),Ys(te[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,g,v,V,B,H]),be.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(X){const te=X.relatedTarget,ne=!(Ho(y,te)||Ho(C,te)||Ho(te,C)||Ho(c==null?void 0:c.portalNode,te)||te!=null&&te.hasAttribute("data-floating-ui-focus-guard")||h&&(Lg(h.nodesRef.current,w).find(se=>{var ve,we;return Ho((ve=se.context)==null?void 0:ve.elements.floating,te)||Ho((we=se.context)==null?void 0:we.elements.domReference,te)})||eJ(h.nodesRef.current,w).find(se=>{var ve,we;return((ve=se.context)==null?void 0:ve.elements.floating)===te||((we=se.context)==null?void 0:we.elements.domReference)===te})));te&&ne&&!A.current&&te!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,w,h,c,S,d]),be.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function X(){return[T.current,k.current].filter(Boolean)}if(C&&l){const te=[C,...W,...X()],ne=NY(g.current.includes("reference")||V?te.concat(y||[]):te);return()=>{ne()}}},[y,C,l,g,c,V]),be.useEffect(()=>{if(l&&!o&&C){const Q=[],W=mw(),X=B1(Yo(C).body,W),te=H(),ne=X.filter(se=>!te.includes(se));return ne.forEach((se,ve)=>{Q[ve]=se.getAttribute("tabindex"),se.setAttribute("tabindex","-1")}),()=>{ne.forEach((se,ve)=>{const we=Q[ve];we==null?se.removeAttribute("tabindex"):se.setAttribute("tabindex",we)})}}},[C,l,o,H]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,X=!1;const te=gd(Q),ne=P.current;E.current=te;const se=H(C),ve=(typeof i=="number"?se[i]:i.current)||C;!b&&Ys(ve,{preventScroll:ve===C});function we(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const J=ce.data.returnFocus;typeof J=="object"?(W=!0,X=J.preventScroll):W=J}return _.on("dismiss",we),()=>{if(_.off("dismiss",we),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:X});else{var ce;ne.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:X}),setTimeout(()=>{delete ne.__syncReturnFocus})}}},[C,H,i,a,P,v,_,b]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(b||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,b,v]);const Y=o&&(F||l)&&!V;function re(Q){return s&&l?be.createElement(sJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return be.createElement(be.Fragment,null,Y&&be.createElement(yw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const X=H();Ys(n[0]==="reference"?X[0]:X[X.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Dg(Q,c.portalNode)){const X=XF()||y;X==null||X.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:re("start"),be.cloneElement(r,p===0||n.includes("floating")?{tabIndex:0}:{}),re("end"),Y&&be.createElement(yw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(H()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Dg(Q,c.portalNode)){const X=QF()||y;X==null||X.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const Jy="data-floating-ui-scroll-lock",cJ=be.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(Jy))return;document.body.setAttribute(Jy,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(_T()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(Jy),Object.assign(document.body.style,{overflow:"",[d]:""})};const w=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,_=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(_-Math.floor(w))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(Jy),window.scrollTo(_,P)}},[n]),be.createElement("div",kv({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function H8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function W8(e){return qF(e)}const dJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const w=be.useRef();return be.useMemo(()=>a?{reference:{onPointerDown(S){w.current=S.pointerType},onMouseDown(S){S.button===0&&(vw(w.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&w.current){w.current=void 0;return}vw(w.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){w.current=void 0,v&&(H8(S)||(S.key===" "&&!W8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(H8(S)||W8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function qb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const fJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},pJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},hJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},gJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:w=!0,outsidePress:S=!0,outsidePressEvent:_="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:g=!0}=t===void 0?{}:t;const h=Od(),c=vh()!=null,p=mh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?p:S,b=be.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=hJ(g);return be.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const H=h?Lg(h.nodesRef.current,i):[];if(H.length>0){let Y=!0;if(H.forEach(re=>{var Q;if((Q=re.context)!=null&&Q.open&&!re.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const H=b.current;if(b.current=!1,H||typeof m=="function"&&!m(B))return;const Y=M2(B);if(hd(Y)&&s){const W=s.ownerDocument.defaultView||window,X=Y.scrollWidth>Y.clientWidth,te=Y.scrollHeight>Y.clientHeight;let ne=te&&B.offsetX>Y.clientWidth;if(te&&W.getComputedStyle(Y).direction==="rtl"&&(ne=B.offsetX<=Y.offsetWidth-Y.clientWidth),ne||X&&B.offsetY>Y.clientHeight)return}const re=h&&Lg(h.nodesRef.current,i).some(W=>{var X;return qb(B,(X=W.context)==null?void 0:X.elements.floating)});if(qb(B,s)||qb(B,l)||re)return;const Q=h?Lg(h.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(X=>{var te;if((te=X.context)!=null&&te.open&&!X.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:HF(B)||WF(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);w&&F.addEventListener("keydown",R),m&&F.addEventListener(_,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var H;return B!==((H=F.defaultView)==null?void 0:H.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{w&&F.removeEventListener("keydown",R),m&&F.removeEventListener(_,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,w,m,_,o,h,i,r,n,C,v,T,k,c]),be.useEffect(()=>{b.current=!1},[m,_]),be.useMemo(()=>v?{reference:{[fJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[pJ[_]]:()=>{b.current=!0}}}:{},[v,o,P,_,y,n])},vJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const w=be.useRef(""),S=be.useRef(!1),_=be.useRef();return be.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),be.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),be.useEffect(()=>()=>{clearTimeout(_.current)},[]),be.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;w.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&qb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";_.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let $8=!1;const PT="ArrowUp",R2="ArrowDown",Zp="ArrowLeft",om="ArrowRight";function eb(e,t,r){return Math.floor(e/t)!==r}function q0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function N2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function G8(e,t){return N2(t,e===PT||e===R2,e===Zp||e===om)}function Tx(e,t,r){return N2(t,e===R2,r?e===Zp:e===om)||e==="Enter"||e==" "||e===""}function mJ(e,t,r){return N2(t,r?e===Zp:e===om,e===R2)}function yJ(e,t,r){return N2(t,r?e===om:e===Zp,e===PT)}function Ox(e,t){return uo(e,{disabledIndices:t})}function K8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const bJ=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:w=!1,loop:S=!1,nested:_=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:h=!0,disabledIndices:c=void 0,orientation:p="vertical",cols:m=1,scrollItemIntoView:b=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=vh(),k=Od(),R=mh(s),E=be.useRef(C),A=be.useRef(v??-1),F=be.useRef(null),V=be.useRef(!0),B=be.useRef(R),H=be.useRef(r),Y=be.useRef(!1),re=be.useRef(!1),Q=oa(c),W=oa(r),X=oa(b),[te,ne]=be.useState(),se=be.useCallback(function(ce,J,oe){oe===void 0&&(oe=!1);const ue=ce.current[J.current];y?ne(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:$F()&&a4()?$8||Y.current:!1}),requestAnimationFrame(()=>{const Se=X.current;Se&&ue&&(oe||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,X]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return $8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(re.current=!0,R(v)):H.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(Y.current=!1,v!=null)return;H.current&&(A.current=-1,se(a,A)),!H.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||Tx(F.current,p,P)||_?Ox(a,Q.current):K8(a,Q.current),R(A.current))}else q0(a,l)||(A.current=l,se(a,A,re.current),re.current=!1)},[d,r,l,v,_,a,p,P,R,se,Q]),Mr(()=>{if(d&&H.current&&!r){var ce,J;const oe=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(J=ce.context)==null?void 0:J.elements.floating;oe&&!Ho(oe,gd(Yo(oe)))&&oe.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,H.current=r});const ve=l!=null,we=be.useMemo(()=>{function ce(oe){if(!r)return;const ue=a.current.indexOf(oe);ue!==-1&&R(ue)}return{onFocus(oe){let{currentTarget:ue}=oe;ce(ue)},onClick:oe=>{let{currentTarget:ue}=oe;return ue.focus({preventScroll:!0})},...g&&{onMouseMove(oe){let{currentTarget:ue}=oe;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,se(a,A),Nu.flushSync(()=>R(null)),!y)){var oe;(oe=o.floating.current)==null||oe.focus({preventScroll:!0})}}}}},[r,o,se,g,a,R,y]);return be.useMemo(()=>{if(!d)return{};const ce=Q.current;function J(Ce){if(V.current=!1,Y.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(_&&yJ(Ce.key,p,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Me=A.current,Ie=Ox(a,ce),Re=K8(a,ce);if(Ce.key==="Home"&&(A.current=Ie,R(A.current)),Ce.key==="End"&&(A.current=Re,R(A.current)),m>1){const ye=A.current;if(Ce.key===PT){if(Xi(Ce),ye===-1)A.current=Re;else if(A.current=uo(a,{startingIndex:ye,amount:m,decrement:!0,disabledIndices:ce}),S&&(ye-mke?Ye:Ye-m}q0(a,A.current)&&(A.current=ye),R(A.current)}if(Ce.key===R2&&(Xi(Ce),ye===-1?A.current=Ie:(A.current=uo(a,{startingIndex:ye,amount:m,disabledIndices:ce}),S&&ye+m>Re&&(A.current=uo(a,{startingIndex:ye%m-m,amount:m,disabledIndices:ce}))),q0(a,A.current)&&(A.current=ye),R(A.current)),p==="both"){const ke=Math.floor(ye/m);Ce.key===om&&(Xi(Ce),ye%m!==m-1?(A.current=uo(a,{startingIndex:ye,disabledIndices:ce}),S&&eb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce})),eb(A.current,m,ke)&&(A.current=ye)),Ce.key===Zp&&(Xi(Ce),ye%m!==0?(A.current=uo(a,{startingIndex:ye,disabledIndices:ce,decrement:!0}),S&&eb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:ye+(m-ye%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:ye+(m-ye%m),decrement:!0,disabledIndices:ce})),eb(A.current,m,ke)&&(A.current=ye));const ze=Math.floor(Re/m)===ke;q0(a,A.current)&&(S&&ze?A.current=Ce.key===Zp?Re:uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce}):A.current=ye),R(A.current);return}}if(G8(Ce.key,p)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=Tx(Ce.key,p,P)?Ie:Re,R(A.current);return}Tx(Ce.key,p,P)?S?A.current=Me>=Re?w&&Me!==a.current.length?-1:Ie:uo(a,{startingIndex:Me,disabledIndices:ce}):A.current=Math.min(Re,uo(a,{startingIndex:Me,disabledIndices:ce})):S?A.current=Me<=Ie?w&&Me!==-1?a.current.length:Re:uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce}):A.current=Math.max(Ie,uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce})),q0(a,A.current)?R(null):R(A.current)}}function oe(Ce){C==="auto"&&HF(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&WF(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&ve&&{"aria-activedescendant":te};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Me=Ce.key.indexOf("Arrow")===0;if(y&&r)return J(Ce);if(!r&&!h&&Me)return;if((Me||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),_){mJ(Ce.key,p,P)&&(Xi(Ce),r?(A.current=Ox(a,ce),R(A.current)):n(!0));return}G8(Ce.key,p)&&(v!=null&&(A.current=v),Xi(Ce),!r&&h?n(!0):J(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:oe,onClick:oe},floating:{"aria-orientation":p==="both"?void 0:p,...Se,onKeyDown:J,onPointerMove(){V.current=!0}},item:we}},[i,o,te,Q,W,a,d,p,P,y,r,ve,_,v,h,w,m,S,C,R,n,we])};function wJ(e){return be.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const _J=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=Ov(),a=Ov();return be.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},q8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function xJ(e,t){const[r,n]=be.useState(e);return e&&!r&&n(!0),be.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function tj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=be.useState(!1),[d,v]=be.useState("unmounted"),w=xJ(r,a);return Mr(()=>{l&&!w&&v("unmounted")},[l,w]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:w,status:d}}function SJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=be.useState({}),{isMounted:w,status:S}=tj(e,{duration:a}),_=oa(r),P=oa(n),y=oa(o),C=oa(i),g=typeof a=="number",h=(g?a:a.open)||0,c=(g?a:a.close)||0;return Mr(()=>{const p={side:s,placement:l},m=_.current,b=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(p):m,E=typeof b=="function"?b(p):b,A=typeof k=="function"?k(p):k,F=(typeof T=="function"?T(p):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(q8).join(","),transitionDuration:h+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(q8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,_,P,C,h,S]),{isMounted:w,styles:d}}const CJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:w=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const _=be.useRef(),P=be.useRef(""),y=be.useRef((r=S??a)!=null?r:-1),C=be.useRef(null),g=mh(l),h=oa(d),c=oa(w);return Mr(()=>{n&&(clearTimeout(_.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var p;y.current=(p=S??a)!=null?p:-1}},[n,S,a]),be.useMemo(()=>{if(!s)return{};function p(m){const b=M2(m.nativeEvent);if(na(b)&&(gd(Yo(b))!==m.currentTarget&&b.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,H;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((H=V[1])==null?void 0:H.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(_.current),_.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=h.current?h.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(g(F),C.current=F)}return{reference:{onKeyDown:p},floating:{onKeyDown:p}}},[s,o,i,v,c,h,g])};function Y8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const PJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:w,elements:{floating:S}}=t,_=r.current[a];if(!_)return{};const P={...t,...await FF(-_.offsetTop-w.reference.height/2-_.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await $b(Y8(P,y.scrollHeight),v),g=await $b(P,{...v,elementContext:"reference"}),h=Math.max(0,C.top),c=P.y+h,p=Math.max(0,y.scrollHeight-h-Math.max(0,C.bottom));return y.style.maxHeight=p+"px",y.scrollTop=h,o&&(y.offsetHeight<_.offsetHeight*Math.min(l,r.current.length-1)-1||g.top>=-s||g.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await $b(Y8({...P,y:c},y.offsetHeight),v)),{y:c}}}),TJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=mh(l),d=be.useRef(!1),v=be.useRef(null),w=be.useRef(null);return be.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!_||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,g=i.current.bottom>=-.5,h=_.scrollHeight-_.clientHeight,c=y<0?-1:1,p=y<0?"max":"min";_.scrollHeight<=_.clientHeight||(!C&&y>0||!g&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[p](y,h*c))})):/firefox/i.test(UF())&&(_.scrollTop+=y))}const _=(a==null?void 0:a.current)||n.floating;if(r&&_)return _.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=_.scrollTop,i.current!=null&&(w.current={...i.current})}),()=>{v.current=null,w.current=null,_.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),be.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const _=S.scrollTop-v.current;(i.current.bottom<-.5&&_<-1||i.current.top<-.5&&_>1)&&Nu.flushSync(()=>s(P=>P+_))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function OJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=w>=n&&r<=(v-s)*(n-d)/(w-d)+s&&(o=!o)}return o}function kJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function EJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:w,elements:S,onClose:_,nodeId:P,tree:y}=s;return function(g){function h(){clearTimeout(o),_()}if(clearTimeout(o),!S.domReference||!S.floating||w==null||d==null||v==null)return;const{clientX:c,clientY:p}=g,m=[c,p],b=M2(g),T=g.type==="mouseleave",k=Ho(S.floating,b),R=Ho(S.domReference,b),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=w.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,H=kJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(g.relatedTarget)&&Ho(S.floating,g.relatedTarget)||y&&Lg(y.nodesRef.current,P).some(W=>{let{context:X}=W;return X==null?void 0:X.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return h();let Y=[];switch(F){case"top":Y=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&p>=A.top&&p<=E.top+1;break;case"bottom":Y=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&p>=E.bottom-1&&p<=A.bottom;break;case"left":Y=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&p>=A.top&&p<=A.bottom;break;case"right":Y=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&p>=A.top&&p<=A.bottom;break}function re(W){let[X,te]=W;const ne=A.width>E.width,se=A.height>E.height;switch(F){case"top":{const ve=[ne?X+r/2:V?X+r*4:X-r*4,te+r+1],we=[ne?X-r/2:V?X+r*4:X-r*4,te+r+1],ce=[[A.left,V||ne?A.bottom-r:A.top],[A.right,V?ne?A.bottom-r:A.top:A.bottom-r]];return[ve,we,...ce]}case"bottom":{const ve=[ne?X+r/2:V?X+r*4:X-r*4,te-r],we=[ne?X-r/2:V?X+r*4:X-r*4,te-r],ce=[[A.left,V||ne?A.top+r:A.bottom],[A.right,V?ne?A.top+r:A.bottom:A.top+r]];return[ve,we,...ce]}case"left":{const ve=[X+r+1,se?te+r/2:B?te+r*4:te-r*4],we=[X+r+1,se?te-r/2:B?te+r*4:te-r*4];return[...[[B||se?A.right-r:A.left,A.top],[B?se?A.right-r:A.left:A.right-r,A.bottom]],ve,we]}case"right":{const ve=[X-r,se?te+r/2:B?te+r*4:te-r*4],we=[X-r,se?te-r/2:B?te+r*4:te-r*4],ce=[[B||se?A.left+r:A.right,A.top],[B?se?A.left+r:A.right:A.left+r,A.bottom]];return[ve,we,...ce]}}}const Q=i?Y:re([d,v]);if(!i){if(a&&!H)return h();OJ([c,p],Q)?t&&!a&&(o=setTimeout(h,t)):h()}}};return l.__options={blockPointerEvents:n},l}function MJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=HZ(e),i=Od(),a=be.useRef(null),l=be.useRef({}),s=be.useState(()=>zF())[0],[d,v]=be.useState(null),w=be.useCallback(g=>{const h=na(g)?{getBoundingClientRect:()=>g.getBoundingClientRect(),contextElement:g}:g;o.refs.setReference(h)},[o.refs]),S=be.useCallback(g=>{(na(g)||g===null)&&(a.current=g,v(g)),(na(o.refs.reference.current)||o.refs.reference.current===null||g!==null&&!na(g))&&o.refs.setReference(g)},[o.refs]),_=be.useMemo(()=>({...o.refs,setReference:S,setPositionReference:w,domReference:a}),[o.refs,S,w]),P=be.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=mh(r),C=be.useMemo(()=>({...o,refs:_,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,_,P]);return Mr(()=>{const g=i==null?void 0:i.nodesRef.current.find(h=>h.id===n);g&&(g.context=C)}),be.useMemo(()=>({...o,context:C,refs:_,reference:S,positionReference:w}),[o,_,C,S,w])}function kx(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,w=arguments.length,S=new Array(w),_=0;_P(...S))}}}else o[l]=s}),o),{})}}const RJ=function(e){e===void 0&&(e=[]);const t=e,r=be.useCallback(i=>kx(i,e,"reference"),t),n=be.useCallback(i=>kx(i,e,"floating"),t),o=be.useCallback(i=>kx(i,e,"item"),e.map(i=>i==null?void 0:i.item));return be.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},NJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:ZZ,FloatingFocusManager:uJ,FloatingNode:qZ,FloatingOverlay:cJ,FloatingPortal:lJ,FloatingTree:YZ,arrow:UZ,autoPlacement:LZ,autoUpdate:IZ,computePosition:jF,detectOverflow:$b,flip:FZ,getOverflowAncestors:os,hide:zZ,inline:VZ,inner:PJ,limitShift:BZ,offset:FF,platform:DF,safePolygon:EJ,shift:DZ,size:jZ,useClick:dJ,useDelayGroup:JZ,useDelayGroupContext:KF,useDismiss:gJ,useFloating:MJ,useFloatingNodeId:KZ,useFloatingParentNodeId:vh,useFloatingPortalNode:JF,useFloatingTree:Od,useFocus:vJ,useHover:QZ,useId:Ov,useInnerOffset:TJ,useInteractions:RJ,useListNavigation:bJ,useMergeRefs:wJ,useRole:_J,useTransitionStatus:tj,useTransitionStyles:SJ,useTypeahead:CJ},Symbol.toStringTag,{value:"Module"})),wn=Lv(NJ);var rj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return _}});var r=d(q),n=d(pt),o=Je,i=d(et),a=Xe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,p=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(p.className||"",C);var b=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},h,{ref:y,className:b}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var _=S})(rj);var nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{DialogBody:function(){return _},default:function(){return P}});var r=v(q),n=v(pt),o=Je,i=v(et),a=Xe,l=sh;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.divider,h=y.className,c=y.children,p=w(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,b=m.defaultProps,T=m.styles.base;h=(0,o.twMerge)(b.className||"",h);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),g)),h);return r.default.createElement("div",d({},p,{ref:C,className:k}),c)});_.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},_.displayName="MaterialTailwind.DialogBody";var P=_})(nj);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return _}});var r=d(q),n=d(pt),o=Je,i=d(et),a=Xe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,p=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(p.className||"",C);var b=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},h,{ref:y,className:b}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var _=S})(oj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return _.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=h(q),n=h(ot),o=wn,i=An,a=h(pt),l=h(Xn),s=Je,d=h(Sr),v=h(et),w=Xe,S=sh,_=rj,P=nj,y=oj;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function g(){return g=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,H=E.dismiss,Y=E.animate,re=E.className,Q=E.children,W=b(E,["open","handler","size","dismiss","animate","className","children"]),X=(0,w.useTheme)().dialog,te=X.defaultProps,ne=X.valid,se=X.styles,ve=se.base,we=se.sizes;V=V??void 0,B=B??te.size,H=H??te.dismiss,Y=Y??te.animate,re=(0,s.twMerge)(te.className||"",re);var ce=(0,a.default)((0,v.default)(ve.backdrop)),J=(0,s.twMerge)((0,a.default)((0,v.default)(ve.container),(0,v.default)(we[(0,d.default)(ne.sizes,B,"md")])),re),oe={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(oe,Y),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Me=Ce.floating,Ie=Ce.context,Re=(0,o.useId)(),ye="".concat(Re,"-label"),ke="".concat(Re,"-description"),ze=(0,o.useInteractions)([(0,o.useClick)(Ie),(0,o.useRole)(Ie),(0,o.useDismiss)(Ie,H)]).getFloatingProps,Ye=(0,o.useMergeRefs)([A,Me]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Ie},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,g({},ze(m(c({},W),{ref:Ye,className:J,"aria-labelledby":ye,"aria-describedby":ke})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:_.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(dL);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Hv,d=Je;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.color,m=g.size,b=g.label,T=g.error,k=g.success,R=g.icon,E=g.containerProps,A=g.labelProps,F=g.className,V=g.shrink,B=g.inputRef,H=_(g,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),Y=(0,l.useTheme)().input,re=Y.defaultProps,Q=Y.valid,W=Y.styles,X=W.base,te=W.variants;c=c??re.variant,m=m??re.size,p=p??re.color,b=b??re.label,A=A??re.labelProps,E=E??re.containerProps,V=V??re.shrink,R=R??re.icon,F=(0,d.twMerge)(re.className||"",F);var ne=te[(0,i.default)(Q.variants,c,"outlined")],se=ne.sizes[(0,i.default)(Q.sizes,m,"md")],ve=(0,a.default)(ne.error.input),we=(0,a.default)(ne.success.input),ce=(0,a.default)(ne.shrink.input),J=(0,a.default)(ne.colors.input[(0,i.default)(Q.colors,p,"gray")]),oe=(0,a.default)(ne.error.label),ue=(0,a.default)(ne.success.label),Se=(0,a.default)(ne.shrink.label),Ce=(0,a.default)(ne.colors.label[(0,i.default)(Q.colors,p,"gray")]),Me=(0,o.default)((0,a.default)(X.container),(0,a.default)(se.container),E==null?void 0:E.className),Ie=(0,o.default)((0,a.default)(X.input),(0,a.default)(ne.base.input),(0,a.default)(se.input),v({},(0,a.default)(ne.base.inputWithIcon),R),v({},J,!T&&!k),v({},ve,T),v({},we,k),v({},ce,V),F),Re=(0,o.default)((0,a.default)(X.label),(0,a.default)(ne.base.label),(0,a.default)(se.label),v({},Ce,!T&&!k),v({},oe,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),ye=(0,o.default)((0,a.default)(X.icon),(0,a.default)(ne.base.icon),(0,a.default)(se.icon)),ke=(0,o.default)((0,a.default)(X.asterisk));return r.default.createElement("div",w({},E,{ref:h,className:Me}),R&&r.default.createElement("div",{className:ye},R),r.default.createElement("input",w({},H,{ref:B,className:Ie,placeholder:(H==null?void 0:H.placeholder)||" "})),r.default.createElement("label",w({},A,{className:Re}),b," ",H.required?r.default.createElement("span",{className:ke},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(ij);var aj={},im={},yh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return w},propTypesDisabled:function(){return S},propTypesClassName:function(){return _},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,w=r.default.bool,S=r.default.bool,_=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(yh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(q),n=yh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(im);var lj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{MenuCore:function(){return C},default:function(){return g}});var r=w(q),n=w(ot),o=wn,i=w(Xn),a=Xe,l=im,s=yh;function d(h,c){(c==null||c>h.length)&&(c=h.length);for(var p=0,m=new Array(c);p=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.children,h=w(y,["children"]),c=(0,o.useMenu)(),p=c.getReferenceProps,m=c.reference,b=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(g,s({},p(s(v(s({},h),{ref:T,onClick:function(R){R.stopPropagation()}}),b&&{role:"menuitem"}))))});_.propTypes={children:i.propTypesChildren},_.displayName="MaterialTailwind.MenuHandler";var P=_})(sj);var uj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(q),n=wn,o=An,i=S(pt),a=Je,l=S(et),s=Xe,d=im,v=yh;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.children,p=g.className,m=_(g,["children","className"]),b=(0,s.useTheme)().menu,T=b.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,H=k.listItemsRef,Y=k.getFloatingProps,re=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,X=k.context,te=k.activeIndex,ne=k.tree,se=k.allowHover,ve=k.internalAllowHover,we=k.setActiveIndex,ce=k.nested;p=p??"";var J=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),p),oe=(0,n.useMergeRefs)([h,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,w({},m,{ref:oe,style:{position:A,top:V??0,left:F??0},className:J},Y({onKeyDown:function(Me){Me.key==="Tab"&&(E(!1),Me.shiftKey&&Me.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Me){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,re({tabIndex:te===Me?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Re){H.current[Me]=Re},onClick:function(Re){if(Ce.props.onClick){var ye,ke;(ke=(ye=Ce.props).onClick)===null||ke===void 0||ke.call(ye,Re)}ne==null||ne.events.emit("click")},onMouseEnter:function(){(se&&R||ve&&R)&&we(Me)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(uj);var cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{MenuItem:function(){return _},default:function(){return P}});var r=v(q),n=v(pt),o=Je,i=v(et),a=Xe,l=yh;function s(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.className,h=g===void 0?"":g,c=y.disabled,p=c===void 0?!1:c,m=y.children,b=w(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),p)),h);return r.default.createElement("button",d({},b,{ref:C,role:"menuitem",className:R}),m)});_.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},_.displayName="MaterialTailwind.MenuItem";var P=_})(cj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return w},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(q),n=wn,o=im,i=lj,a=sj,l=uj,s=cj;function d(){return d=Object.assign||function(_){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.open,p=g.animate,m=g.className,b=g.children,T=_(g,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. - -More details: https://www.material-tailwind.com/docs/react/collapse - `);var R=r.default.useRef(null),E=(0,d.useTheme)().navbar,A=E.styles,F=A.base.mobileNav;p=p??{},m=m??"";var V=(0,l.twMerge)((0,a.default)((0,s.default)(F)),m),B={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=R.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},H=(0,i.default)(B,p),Y=n.AnimatePresence,re=(0,o.useMergeRefs)([h,R]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(Y,null,r.default.createElement(n.m.div,w({},T,{ref:re,className:V,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:H}),b)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(fj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Navbar:function(){return C},MobileNav:function(){return d.MobileNav},default:function(){return g}});var r=_(q),n=_(ot),o=_(pt),i=Je,a=_(Sr),l=_(et),s=Xe,d=fj,v=Zw;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.variant,m=h.color,b=h.shadow,T=h.blurred,k=h.fullWidth,R=h.className,E=h.children,A=P(h,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,H=F.styles,Y=H.base,re=H.variants;p=p??V.variant,m=m??V.color,b=b??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(Y.navbar.initial),(Q={},w(Q,(0,l.default)(Y.navbar.shadow),b),w(Q,(0,l.default)(Y.navbar.blurred),T&&m==="white"),w(Q,(0,l.default)(Y.navbar.fullWidth),k),Q)),X=(0,o.default)((0,l.default)(re[(0,a.default)(B.variants,p,"filled")][(0,a.default)(B.colors,m,"white")])),te=(0,i.twMerge)((0,o.default)(W,X),R);return r.default.createElement("nav",S({},A,{ref:c,className:te}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var g=Object.assign(C,{MobileNav:d.MobileNav})})(dj);var pj={},A2={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return w},propTypesInteractive:function(){return S},propTypesClassName:function(){return _},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,w=r.default.node,S=r.default.bool,_=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(q),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(A2);var hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var g in C)Object.defineProperty(y,g,{enumerable:!0,get:C[g]})}t(e,{PopoverHandler:function(){return _},default:function(){return P}});var r=l(q),n=wn,o=A2,i=bh;function a(y,C,g){return C in y?Object.defineProperty(y,C,{value:g,enumerable:!0,configurable:!0,writable:!0}):y[C]=g,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,h)&&(g[h]=y[h])}return g}function S(y,C){if(y==null)return{};var g={},h=Object.keys(y),c,p;for(p=0;p=0)&&(g[c]=y[c]);return g}var _=r.default.forwardRef(function(y,C){var g=y.children,h=w(y,["children"]),c=(0,o.usePopover)(),p=c.getReferenceProps,m=c.reference,b=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(g,s({},p(v(s({},h),{ref:b}))))});_.propTypes={children:i.propTypesChildren},_.displayName="MaterialTailwind.PopoverHandler";var P=_})(hj);var gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,b){for(var T in b)Object.defineProperty(m,T,{enumerable:!0,get:b[T]})}t(e,{PopoverContent:function(){return c},default:function(){return p}});var r=_(q),n=wn,o=An,i=_(pt),a=Je,l=_(et),s=Xe,d=A2,v=bh;function w(m,b,T){return b in m?Object.defineProperty(m,b,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[b]=T,m}function S(){return S=Object.assign||function(m){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function h(m,b){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,b){var T=m.children,k=m.className,R=g(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,H=V.strategy,Y=V.x,re=V.y,Q=V.context,W=V.floating,X=V.getFloatingProps,te=V.appliedAnimation,ne=V.labelId,se=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var ve=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),we=(0,n.useMergeRefs)([b,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},X(C(P({},R),{ref:we,className:ve,style:{position:H,top:re??"",left:Y??""},"aria-labelledby":ne,"aria-describedby":se})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:te}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var p=c})(gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{Popover:function(){return h},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=_(q),n=_(ot),o=wn,i=_(Xn),a=Xe,l=A2,s=bh,d=hj,v=gj;function w(p,m){(m==null||m>p.length)&&(m=p.length);for(var b=0,T=new Array(m);b=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.color,m=g.size,b=g.value,T=g.label,k=g.className,R=g.barProps,E=_(g,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,H=B.base,Y=B.variants,re=B.sizes;c=c??F.variant,p=p??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(Y[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,p,"gray")]),W=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].container.initial),X=(0,o.default)((0,l.default)(H.container.initial),W),te=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].container.withLabel),ne=(0,o.default)((0,l.default)(H.container.withLabel),te),se=(0,l.default)(re[(0,a.default)(V.sizes,m,"md")].bar),ve=(0,o.default)((0,l.default)(H.bar),se),we=(0,i.twMerge)((0,o.default)(X,v({},ne,T)),k),ce=(0,i.twMerge)((0,o.default)(ve,Q),R==null?void 0:R.className);return r.default.createElement("div",w({},E,{ref:h,className:we}),r.default.createElement("div",w({},R,{className:ce,style:{width:"".concat(b,"%")}}),T&&"".concat(b,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(vj);var mj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Radio:function(){return C},default:function(){return g}});var r=_(q),n=_(ot),o=_(dh),i=_(pt),a=Je,l=_(Sr),s=_(et),d=Xe,v=Sd;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.color,m=h.label,b=h.icon,T=h.ripple,k=h.className,R=h.disabled,E=h.containerProps,A=h.labelProps,F=h.iconProps,V=h.inputRef,B=P(h,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().radio,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.colors,te=r.default.useId();p=p??Y.color,m=m??Y.label,b=b??Y.icon,T=T??Y.ripple,R=R??Y.disabled,E=E??Y.containerProps,A=A??Y.labelProps,F=F??Y.iconProps,k=(0,a.twMerge)(Y.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(re.colors,p,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,i.default)((0,i.default)((0,s.default)(W.icon)),X[(0,l.default)(re.colors,p,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||te,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:we,id:B.id||te})),r.default.createElement("span",{className:J},b||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||te}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var g=C})(mj);var yj={},TT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,w){for(var S in w)Object.defineProperty(v,S,{enumerable:!0,get:w[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(q),n=An,o=Wv;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var w=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){w.current=v},[v]),w.current}var d=function(v){var w=v.value,S=v.children;return r.default.createElement(a.Provider,{value:w},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(TT);var bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=w(q),n=w(pt),o=Je,i=w(et),a=Xe,l=TT,s=Wv;function d(C,g,h){return g in C?Object.defineProperty(C,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):C[g]=h,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=function(C){var g=function(){Q(b),te(p),X(!1),se(null)},h=function(Me){(Me.key==="Enter"||Me.key===" "&&!we.current.typing)&&(Me.preventDefault(),g())},c=C.value,p=c===void 0?"":c,m=C.index,b=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,H=B.base,Y=(0,l.useSelect)(),re=Y.selectedIndex,Q=Y.setSelectedIndex,W=Y.listRef,X=Y.setOpen,te=Y.onChange,ne=Y.activeIndex,se=Y.setActiveIndex,ve=Y.getItemProps,we=Y.dataRef,ce=(0,i.default)(H.option.initial),J=(0,i.default)(H.option.active),oe=(0,i.default)(H.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,J,re===b),d(ue,oe,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[b]=Ce},className:Se,disabled:k,tabIndex:ne===b?0:1,"aria-selected":ne===b&&re===b,"data-selected":re===b},ve({onClick:function(Ce){var Me=F==null?void 0:F.onClick;typeof Me=="function"&&(Me(Ce),g()),g()},onKeyDown:function(Ce){var Me=F==null?void 0:F.onKeyDown;typeof Me=="function"&&(Me(Ce),h(Ce)),h(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(bj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,X){for(var te in X)Object.defineProperty(W,te,{enumerable:!0,get:X[te]})}t(e,{Select:function(){return re},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=p(q),n=p(ot),o=wn,i=An,a=p(pt),l=Je,s=p(Xn),d=p(Sr),v=p(et),w=Xe,S=TT,_=Wv,P=bj;function y(W,X){(X==null||X>W.length)&&(X=W.length);for(var te=0,ne=new Array(X);te=0)&&Object.prototype.propertyIsEnumerable.call(W,ne)&&(te[ne]=W[ne])}return te}function V(W,X){if(W==null)return{};var te={},ne=Object.keys(W),se,ve;for(ve=0;ve=0)&&(te[se]=W[se]);return te}function B(W,X){return C(W)||b(W,X)||Y(W,X)||T()}function H(W){return g(W)||m(W)||Y(W)||k()}function Y(W,X){if(W){if(typeof W=="string")return y(W,X);var te=Object.prototype.toString.call(W).slice(8,-1);if(te==="Object"&&W.constructor&&(te=W.constructor.name),te==="Map"||te==="Set")return Array.from(te);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return y(W,X)}}var re=r.default.forwardRef(function(W,X){var te=W.variant,ne=W.color,se=W.size,ve=W.label,we=W.error,ce=W.success,J=W.arrow,oe=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Me=W.dismiss,Ie=W.animate,Re=W.lockScroll,ye=W.labelProps,ke=W.menuProps,ze=W.className,Ye=W.disabled,Mt=W.name,gt=W.children,xt=W.containerProps,zt=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Ht,mt=(0,w.useTheme)().select,Ot=mt.defaultProps,Jt=mt.valid,Dr=mt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),nr=Ln[0],mo=Ln[1];te=te??Ot.variant,ne=ne??Ot.color,se=se??Ot.size,ve=ve??Ot.label,we=we??Ot.error,ce=ce??Ot.success,J=J??Ot.arrow,oe=oe??Ot.value,ue=ue??Ot.onChange,Se=Se??Ot.selected,Ce=Ce??Ot.offset,Me=Me??Ot.dismiss,Ie=Ie??Ot.animate,ye=ye??Ot.labelProps,ke=ke??Ot.menuProps;var Yt;xt=(Yt=(0,s.default)(xt,(Ot==null?void 0:Ot.containerProps)||{}))!==null&&Yt!==void 0?Yt:Ot.containerProps,ze=(0,l.twMerge)(Ot.className||"",ze),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(H((Qr=r.default.Children.map(gt,function(at){var rt=at.props;return rt==null?void 0:rt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(rt){var St=rt.rects,cn=rt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(St==null||(wo=St.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,ae=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(oe)+1))},[oe]);var pe=ga.floating,xe=(0,o.useInteractions)([(0,o.useClick)(ae),(0,o.useRole)(ae,{role:"listbox"}),(0,o.useDismiss)(ae,R({},Me)),(0,o.useListNavigation)(ae,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(ae,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Oe=xe.getReferenceProps,Ue=xe.getFloatingProps,Qe=xe.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=pe.current;if(Sn&&pa&&at){var rt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(rt&&Fi!=null){var St,cn,wr=(cn=(St=yo.current[Fi])===null||St===void 0?void 0:St.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=rt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Qe,dataRef:ae.dataRef}},[$r,ue,sn,Qe,ae.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&oe?"withValue":"close")},[Sn,oe,$r,Se]);var Fe=Qn[(0,d.default)(Jt.variants,te,"outlined")],Ze=Fe.sizes[(0,d.default)(Jt.sizes,se,"md")],$e=Fe.error.select,Ge=Fe.success.select,kt=Fe.colors.select[(0,d.default)(Jt.colors,ne,"gray")],Nt=Fe.error.label,Ut=Fe.success.label,bt=Fe.colors.label[(0,d.default)(Jt.colors,ne,"gray")],dr=Fe.states[nr],or=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Ze.container),xt==null?void 0:xt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(Fe.base.select),(0,v.default)(dr.select),(0,v.default)(Ze.select),h({},(0,v.default)(kt[nr]),!we&&!ce),h({},(0,v.default)($e.initial),we),h({},(0,v.default)($e.states[nr]),we),h({},(0,v.default)(Ge.initial),ce),h({},(0,v.default)(Ge.states[nr]),ce)),ze),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(Fe.base.label),(0,v.default)(dr.label),(0,v.default)(Ze.label.initial),(0,v.default)(Ze.label.states[nr]),h({},(0,v.default)(bt[nr]),!we&&!ce),h({},(0,v.default)(Nt.initial),we),h({},(0,v.default)(Nt.states[nr]),we),h({},(0,v.default)(Ut.initial),ce),h({},(0,v.default)(Ut.states[nr]),ce)),(Fr=ye.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),h({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=ke.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",te==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},At=(0,s.default)(Zr,Ie),He=i.AnimatePresence;r.default.useEffect(function(){oe&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[oe,ue]);var It=r.default.createElement(o.FloatingFocusManager,{context:ae,modal:!1},r.default.createElement(i.m.ul,c({},Ue(A(R({},ke),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(rt){var St=ke==null?void 0:ke.onPointerEnter;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onPointerMove:function(rt){var St=ke==null?void 0:ke.onPointerMove;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onKeyDown:function(rt){var St=ke==null?void 0:ke.onKeyDown;typeof St=="function"&&(St(rt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:At}),r.default.Children.map(gt,function(at,rt){var St;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((St=at.props)===null||St===void 0?void 0:St.index)||rt+1,id:"material-tailwind-select-".concat(rt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},xt,{ref:X,className:or}),r.default.createElement("button",c({type:"button"},Oe(A(R({},zt),{ref:ga.setReference,className:Fn,disabled:Ye,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):oe&&!ue?r.default.createElement("span",{className:un},oe):r.default.createElement("span",c({},(Ht=gt[$r-1])===null||Ht===void 0?void 0:Ht.props,{className:un})),r.default.createElement("div",{className:Zn},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},ye,{className:jn}),ve),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(He,null,Sn&&r.default.createElement(r.default.Fragment,null,Re?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},It):It)))))});re.propTypes={variant:n.default.oneOf(_.propTypesVariant),color:n.default.oneOf(_.propTypesColor),size:n.default.oneOf(_.propTypesSize),label:_.propTypesLabel,error:_.propTypesError,success:_.propTypesSuccess,arrow:_.propTypesArrow,value:_.propTypesValue,onChange:_.propTypesOnChange,selected:_.propTypesSelected,offset:_.propTypesOffset,dismiss:_.propTypesDismiss,animate:_.propTypesAnimate,lockScroll:_.propTypesLockScroll,labelProps:_.propTypesLabelProps,menuProps:_.propTypesMenuProps,className:_.propTypesClassName,disabled:_.propTypesDisabled,name:_.propTypesName,children:_.propTypesChildren,containerProps:_.propTypesContainerProps},re.displayName="MaterialTailwind.Select";var Q=Object.assign(re,{Option:P.SelectOption})})(yj);var wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Switch:function(){return C},default:function(){return g}});var r=_(q),n=_(ot),o=_(dh),i=_(pt),a=Je,l=_(Sr),s=_(et),d=Xe,v=Sd;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.color,m=h.label,b=h.ripple,T=h.className,k=h.disabled,R=h.containerProps,E=h.circleProps,A=h.labelProps,F=h.inputRef,V=P(h,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),H=B.switch,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.colors,te=r.default.useId();p=p??Y.color,b=b??Y.ripple,k=k??Y.disabled,R=R??Y.containerProps,A=A??Y.labelProps,E=E??Y.circleProps,T=(0,a.twMerge)(Y.className||"",T);var ne=b!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),w({},(0,s.default)(W.disabled),k)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(re.colors,p,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),X[(0,l.default)(re.colors,p,"gray")].circle,X[(0,l.default)(re.colors,p,"gray")].before),E==null?void 0:E.className),J=(0,i.default)((0,s.default)(W.ripple)),oe=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("div",S({},R,{className:ve}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||te,className:we})),r.default.createElement("label",S({},E,{htmlFor:V.id||te,className:ce}),b&&r.default.createElement("div",{className:J,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return b&&ne.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||te,className:oe}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var g=C})(wj);var _j={},wh={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return w},propTypesChildren:function(){return S}});var r=o(ot),n=br;function o(_){return _&&_.__esModule?_:{default:_}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),w=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return g},TabsContextProvider:function(){return h},setId:function(){return c},setActive:function(){return p},setAnimation:function(){return m},setIndicator:function(){return b},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(q),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.value,p=g.className,m=g.activeClassName,b=g.disabled,T=g.children,k=_(g,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,H=V.dispatch,Y=B.id,re=B.active,Q=B.indicatorProps;b=b??A.disabled,p=(0,i.twMerge)(A.className||"",p),m=(0,i.twMerge)(A.activeClassName||"",m);var W,X=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),b),v(W,m,re===c),W)),p),te,ne=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(te=Q==null?void 0:Q.className)!==null&&te!==void 0?te:"");return r.default.createElement("li",w({},k,{ref:h,role:"tab",className:X,onClick:function(se){var ve=k==null?void 0:k.onClick;typeof ve=="function"&&((0,s.setActive)(H,c),(0,s.setIsInitial)(H,!1),ve(se)),(0,s.setIsInitial)(H,!1),(0,s.setActive)(H,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),re===c&&r.default.createElement(n.motion.div,w({},Q,{transition:{duration:.5},className:ne,layoutId:Y})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(xj);var Sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(q),n=An,o=S(Xn),i=S(pt),a=Je,l=S(et),s=Xe,d=wh,v=kd;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.animate,p=g.className,m=g.children,b=_(g,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,p=(0,a.twMerge)(k.className||"",p);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),p),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",w({},b,{ref:h,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Sj);var Cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=w(q),n=w(pt),o=Je,i=w(et),a=Xe,l=wh,s=kd;function d(C,g,h){return g in C?Object.defineProperty(C,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):C[g]=h,C}function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.indicatorProps,c=C.className,p=C.children,m=S(C,["indicatorProps","className","children"]),b=(0,a.useTheme)().tabsHeader,T=b.defaultProps,k=b.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,h)},[A,h]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:g,role:"tablist",className:V}),p))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=w(q),n=An,o=w(pt),i=Je,a=w(et),l=Xe,s=wh,d=kd;function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.value,c=C.className,p=C.children,m=S(C,["value","className","children"]),b=(0,l.useTheme)().tabPanel,T=b.defaultProps,k=b.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:g,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===h?"mount":F?"initial":"unmount",variants:A,"data-value":h}),p)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Pj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{Tabs:function(){return h},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return w.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(q),n=y(pt),o=Je,i=y(et),a=Xe,l=wh,s=xj,d=Sj,v=Cj,w=Pj,S=kd;function _(p,m,b){return m in p?Object.defineProperty(p,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[m]=b,p}function P(){return P=Object.assign||function(p){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function g(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}var h=r.default.forwardRef(function(p,m){var b=p.value,T=p.className,k=p.orientation,R=p.children,E=C(p,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var H=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),_({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:b,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:H}),R))});h.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},h.displayName="MaterialTailwind.Tabs";var c=Object.assign(h,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:w.TabPanel})})(_j);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Hv,d=Je;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.color,m=g.size,b=g.label,T=g.error,k=g.success,R=g.resize,E=g.labelProps,A=g.containerProps,F=g.shrink,V=g.className,B=_(g,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),H=(0,l.useTheme)().textarea,Y=H.defaultProps,re=H.valid,Q=H.styles,W=Q.base,X=Q.variants;c=c??Y.variant,m=m??Y.size,p=p??Y.color,b=b??Y.label,E=E??Y.labelProps,A=A??Y.containerProps,F=F??Y.shrink,V=(0,d.twMerge)(Y.className||"",V);var te=X[(0,i.default)(re.variants,c,"outlined")],ne=(0,a.default)(te.error.textarea),se=(0,a.default)(te.success.textarea),ve=(0,a.default)(te.shrink.textarea),we=(0,a.default)(te.colors.textarea[(0,i.default)(re.colors,p,"gray")]),ce=(0,a.default)(te.error.label),J=(0,a.default)(te.success.label),oe=(0,a.default)(te.shrink.label),ue=(0,a.default)(te.colors.label[(0,i.default)(re.colors,p,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(te.base.textarea),(0,a.default)(te.sizes[(0,i.default)(re.sizes,m,"md")].textarea),v({},we,!T&&!k),v({},ne,T),v({},se,k),v({},ve,F),R?"":"!resize-none",V),Me=(0,o.default)((0,a.default)(W.label),(0,a.default)(te.base.label),(0,a.default)(te.sizes[(0,i.default)(re.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},J,k),v({},oe,F),E==null?void 0:E.className),Ie=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:h,className:Se},r.default.createElement("textarea",w({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Me},b," ",B.required?r.default.createElement("span",{className:Ie},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(Tj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(q),n=C(ot),o=wn,i=An,a=C(pt),l=Je,s=C(Xn),d=C(et),v=Xe,w=bh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,H=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,H)&&(B[H]=F[H])}return B}function T(F,V){if(F==null)return{};var B={},H=Object.keys(F),Y,re;for(re=0;re=0)&&(B[Y]=F[Y]);return B}function k(F,V){return _(F)||g(F,V)||R(F,V)||h()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,H=F.handler,Y=F.content,re=F.interactive,Q=F.placement,W=F.offset,X=F.dismiss,te=F.animate,ne=F.className,se=F.children,ve=b(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),we=(0,v.useTheme)().tooltip,ce=we.defaultProps,J=we.styles.base,oe=k(r.default.useState(!1),2),ue=oe[0],Se=oe[1];B=B??ue,H=H??Se,re=re??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,X=X??ce.dismiss,te=te??ce.animate,ne=(0,l.twMerge)(ce.className||"",ne);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(J)),ne),Me={unmount:{opacity:0},mount:{opacity:1}},Ie=(0,s.default)(Me,te),Re=(0,o.useFloating)({open:B,onOpenChange:H,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),ye=Re.x,ke=Re.y,ze=Re.reference,Ye=Re.floating,Mt=Re.strategy,gt=Re.refs,xt=Re.update,zt=Re.context,Ht=(0,o.useInteractions)([(0,o.useClick)(zt,{enabled:re}),(0,o.useFocus)(zt),(0,o.useHover)(zt),(0,o.useRole)(zt,{role:"tooltip"}),(0,o.useDismiss)(zt,X)]),mt=Ht.getReferenceProps,Ot=Ht.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,xt)},[B,xt,gt.reference,gt.floating]);var Jt=(0,o.useMergeRefs)([V,Ye]),Dr=(0,o.useMergeRefs)([V,ze]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof se=="string"?r.default.createElement("span",y({},mt({ref:Dr})),se):r.default.cloneElement(se,c({},mt(m(c({},se==null?void 0:se.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Ot(m(c({},ve),{ref:Jt,className:Ce,style:{position:Mt,top:ke??"",left:ye??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:Ie}),Y)))))});E.propTypes={open:w.propTypesOpen,handler:w.propTypesHandler,content:w.propTypesContent,interactive:w.propTypesInteractive,placement:n.default.oneOf(w.propTypesPlacement),offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,className:w.propTypesClassName,children:w.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(Oj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,p){for(var m in p)Object.defineProperty(c,m,{enumerable:!0,get:p[m]})}t(e,{Typography:function(){return g},default:function(){return h}});var r=w(q),n=w(ot),o=w(pt),i=Je,a=w(Sr),l=w(et),s=Xe,d=UP;function v(c,p,m){return p in c?Object.defineProperty(c,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[p]=m,c}function w(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(c,b)&&(m[b]=c[b])}return m}function C(c,p){if(c==null)return{};var m={},b=Object.keys(c),T,k;for(k=0;k=0)&&(m[T]=c[T]);return m}var g=r.default.forwardRef(function(c,p){var m=c.variant,b=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,H=F.styles,Y=H.variants,re=H.colors,Q=H.textGradient;m=m??V.variant,b=b??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(Y[(0,a.default)(B.variants,m,"paragraph")]),X=re[(0,a.default)(B.colors,b,"inherit")],te=(0,l.default)(Q),ne=(0,i.twMerge)((0,o.default)(W,v({},X.color,!T),v({},te,T),v({},X.gradient,T)),R),se;switch(m){case"h1":se=r.default.createElement(k||"h1",P(S({},A),{ref:p,className:ne}),E);break;case"h2":se=r.default.createElement(k||"h2",P(S({},A),{ref:p,className:ne}),E);break;case"h3":se=r.default.createElement(k||"h3",P(S({},A),{ref:p,className:ne}),E);break;case"h4":se=r.default.createElement(k||"h4",P(S({},A),{ref:p,className:ne}),E);break;case"h5":se=r.default.createElement(k||"h5",P(S({},A),{ref:p,className:ne}),E);break;case"h6":se=r.default.createElement(k||"h6",P(S({},A),{ref:p,className:ne}),E);break;case"lead":se=r.default.createElement(k||"p",P(S({},A),{ref:p,className:ne}),E);break;case"paragraph":se=r.default.createElement(k||"p",P(S({},A),{ref:p,className:ne}),E);break;case"small":se=r.default.createElement(k||"p",P(S({},A),{ref:p,className:ne}),E);break;default:se=r.default.createElement(k||"p",P(S({},A),{ref:p,className:ne}),E);break}return se});g.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},g.displayName="MaterialTailwind.Typography";var h=g})(kj);var Ej={},Mj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(ot),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Mj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(q),n=An,o=wn,i=S(Xn),a=S(pt),l=Je,s=S(et),d=Xe,v=Mj;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.open,p=g.animate,m=g.className,b=g.children,T=_(g,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;p=p??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,p),H=n.AnimatePresence,Y=(0,o.useMergeRefs)([h,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(H,null,r.default.createElement(n.m.div,w({},T,{ref:Y,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),b)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Ej);var Rj={},am={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(am);var Nj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return _}});var r=d(q),n=Xe,o=d(pt),i=Je,a=d(et),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,n.useTheme)().list,p=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(p.itemPrefix)),C);return r.default.createElement("div",s({},h,{ref:y,className:m}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var _=S})(OT);var kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return _}});var r=d(q),n=Xe,o=d(pt),i=Je,a=d(et),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,g)&&(C[g]=P[g])}return C}function w(P,y){if(P==null)return{};var C={},g=Object.keys(P),h,c;for(c=0;c=0)&&(C[h]=P[h]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,g=P.children,h=v(P,["className","children"]),c=(0,n.useTheme)().list,p=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(p.itemSuffix)),C);return r.default.createElement("div",s({},h,{ref:y,className:m}),g)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var _=S})(kT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return g}});var r=_(q),n=Xe,o=_(dh),i=_(pt),a=Je,l=_(et),s=am,d=OT,v=kT;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.className,m=h.disabled,b=h.selected,T=h.ripple,k=h.children,R=P(h,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,H=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},w(B,(0,l.default)(F.item.disabled),m),w(B,(0,l.default)(F.item.selected),b&&!m),B)),p);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:H,onMouseDown:function(Y){var re=R==null?void 0:R.onMouseDown;return T&&V.create(Y,"dark"),typeof re=="function"&&re(Y)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var g=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Nj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(q),n=Xe,o=S(pt),i=Je,a=S(et),l=am,s=Nj,d=OT,v=kT;function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.className,p=g.children,m=_(g,["className","children"]),b=(0,n.useTheme)().list,T=b.defaultProps,k=b.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",w({},m,{ref:h,className:R}),p)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Rj);var Aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,h){for(var c in h)Object.defineProperty(g,c,{enumerable:!0,get:h[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(q),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=_d;function v(g,h,c){return h in g?Object.defineProperty(g,h,{value:c,enumerable:!0,configurable:!0,writable:!0}):g[h]=c,g}function w(){return w=Object.assign||function(g){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(g,p)&&(c[p]=g[p])}return c}function P(g,h){if(g==null)return{};var c={},p=Object.keys(g),m,b;for(b=0;b=0)&&(c[m]=g[m]);return c}var y=r.default.forwardRef(function(g,h){var c=g.variant,p=g.size,m=g.color,b=g.fullWidth,T=g.ripple,k=g.className,R=g.children,E=_(g,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,H=V.base,Y=V.dividerColor;c=c??F.variant,p=p??F.size,m=m??F.color,T=T??F.ripple,b=b??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var re,Q=(0,i.twMerge)((0,o.default)((0,l.default)(H.initial),(re={},v(re,(0,l.default)(H.fullWidth),b),v(re,"divide-x",c!=="outlined"),v(re,(0,l.default)(Y[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),re)),k);return r.default.createElement("div",w({},E,{ref:h,className:Q}),r.default.Children.map(R,function(W,X){var te;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:p,color:m,ripple:T,fullWidth:b,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":X!==r.default.Children.count(R)-1,"border-r-0":X!==r.default.Children.count(R)-1,"rounded-l-none":X!==0}),(te=W.props)===null||te===void 0?void 0:te.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Aj);var Ij={},Lj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return w},propTypesChildren:function(){return S},propTypesSlideRef:function(){return _}});var r=n(ot);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,w=r.default.bool,S=r.default.node.isRequired,_=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Lj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,T){for(var k in T)Object.defineProperty(b,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return p},default:function(){return m}});var r=_(q),n=An,o=wn,i=_(pt),a=Je,l=_(et),s=Xe,d=Lj;function v(b,T){(T==null||T>b.length)&&(T=b.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(b,R)&&(k[R]=b[R])}return k}function g(b,T){if(b==null)return{};var k={},R=Object.keys(b),E,A;for(A=0;A=0)&&(k[E]=b[E]);return k}function h(b,T){return w(b)||P(b,T)||c(b,T)||y()}function c(b,T){if(b){if(typeof b=="string")return v(b,T);var k=Object.prototype.toString.call(b).slice(8,-1);if(k==="Object"&&b.constructor&&(k=b.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(b,T)}}var p=r.default.forwardRef(function(b,T){var k=b.children,R=b.prevArrow,E=b.nextArrow,A=b.navigation,F=b.autoplay,V=b.autoplayDelay,B=b.transition,H=b.loop,Y=b.className,re=b.slideRef,Q=C(b,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,X=W.defaultProps,te=W.styles.base,ne=(0,n.useMotionValue)(0),se=r.default.useRef(null),ve=h(r.default.useState(0),2),we=ve[0],ce=ve[1],J=r.default.Children.toArray(k);R=R??X.prevArrow,E=E??X.nextArrow,A=A??X.navigation,F=F??X.autoplay,V=V??X.autoplayDelay,B=B??X.transition,H=H??X.loop,Y=(0,a.twMerge)(X.className||"",Y);var oe=(0,a.twMerge)((0,i.default)((0,l.default)(te.carousel)),Y),ue=(0,a.twMerge)((0,i.default)((0,l.default)(te.slide))),Se=r.default.useCallback(function(){var Re;return-we*(((Re=se.current)===null||Re===void 0?void 0:Re.clientWidth)||0)},[we]),Ce=r.default.useCallback(function(){var Re=H?0:we;ce(we+1===J.length?Re:we+1)},[we,H,J.length]),Me=function(){var Re=H?J.length-1:0;ce(we-1<0?Re:we-1)};r.default.useEffect(function(){var Re=(0,n.animate)(ne,Se(),B);return Re.stop},[Se,we,ne,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(ne,Se(),B)})},[Se,B,ne]),r.default.useEffect(function(){if(F){var Re=setInterval(function(){return Ce()},V);return function(){return clearInterval(Re)}}},[F,Ce,V]);var Ie=(0,o.useMergeRefs)([se,T]);return r.default.createElement("div",S({},Q,{ref:Ie,className:oe}),J.map(function(Re,ye){return r.default.createElement(n.LazyMotion,{key:ye,features:n.domAnimation},r.default.createElement(n.m.div,{ref:re,className:ue,style:{x:ne,left:"".concat(ye*100,"%"),right:"".concat(ye*100,"%")}},Re))}),R&&R({loop:H,handlePrev:Me,activeIndex:we,firstIndex:we===0}),E&&E({loop:H,handleNext:Ce,activeIndex:we,lastIndex:we===J.length-1}),A&&A({setActiveIndex:ce,activeIndex:we,length:J.length}))});p.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},p.displayName="MaterialTailwind.Carousel";var m=p})(Ij);var Dj={},Fj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return w},propTypesOnClose:function(){return S},propTypesDismiss:function(){return _},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,w=r.default.string,S=r.default.func,_=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Fj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{Drawer:function(){return h},default:function(){return c}});var r=P(q),n=P(ot),o=An,i=wn,a=P(Xn),l=P(pt),s=Je,d=P(et),v=Xe,w=Fj;function S(p,m,b){return m in p?Object.defineProperty(p,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[m]=b,p}function _(){return _=Object.assign||function(p){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function g(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}var h=r.default.forwardRef(function(p,m){var b=p.open,T=p.size,k=p.overlay,R=p.children,E=p.placement,A=p.overlayProps,F=p.className,V=p.onClose,B=p.dismiss,H=p.transition,Y=p.overlayRef,re=C(p,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,X=Q.styles.base,te=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var ne;B=(ne=(0,a.default)(W.dismiss,B||{}))!==null&&ne!==void 0?ne:W.dismiss,H=H??W.transition,F=(0,s.twMerge)(W.className||"",F);var se=(0,s.twMerge)((0,l.default)((0,d.default)(X.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),ve=(0,s.twMerge)((0,l.default)((0,d.default)(X.overlay)),A==null?void 0:A.className),we=(0,i.useFloating)({open:b,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(we,B)]).getFloatingProps;r.default.useEffect(function(){te.start(b?"open":"close")},[b,te,E]);var J={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},oe={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&b&&r.default.createElement(o.m.div,{ref:Y,className:ve,initial:"unmount",exit:"unmount",animate:b?"mount":"unmount",variants:oe,transition:{duration:.3}})),r.default.createElement(o.m.div,_({},ce(y({ref:m},re)),{className:se,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:te,variants:J,transition:H}),R)))});h.propTypes={open:w.propTypesOpen,size:w.propTypesSize,overlay:w.propTypesOverlay,children:w.propTypesChildren,placement:n.default.oneOf(w.propTypesPlacement),overlayProps:w.propTypesOverlayProps,className:w.propTypesClassName,onClose:w.propTypesOnClose,dismiss:w.propTypesDismiss,transition:w.propTypesTransition,overlayRef:w.propTypesOverlayRef},h.displayName="MaterialTailwind.Drawer";var c=h})(Dj);var jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Badge:function(){return C},default:function(){return g}});var r=_(q),n=_(ot),o=_(Xn),i=_(pt),a=Je,l=_(Sr),s=_(et),d=Xe,v=HP;function w(h,c,p){return c in h?Object.defineProperty(h,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[c]=p,h}function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.color,m=h.invisible,b=h.withBorder,T=h.overlap,k=h.placement,R=h.className,E=h.content,A=h.children,F=h.containerProps,V=h.containerRef,B=P(h,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),H=(0,d.useTheme)().badge,Y=H.valid,re=H.defaultProps,Q=H.styles,W=Q.base,X=Q.placements,te=Q.colors;p=p??re.color,m=m??re.invisible,b=b??re.withBorder,T=T??re.overlap,k=k??re.placement,R=(0,a.twMerge)(re.className||"",R);var ne;F=(ne=(0,o.default)(F,re.containerProps||{}))!==null&&ne!==void 0?ne:re.containerProps;var se=(0,s.default)(W.badge.initial),ve=(0,s.default)(W.badge.withBorder),we=(0,s.default)(W.badge.withContent),ce=(0,s.default)(te[(0,l.default)(Y.colors,p,"red")]),J=(0,s.default)(X[(0,l.default)(Y.placements,k,"top-end")][(0,l.default)(Y.overlaps,T,"square")]),oe,ue=(0,a.twMerge)((0,i.default)(se,J,ce,(oe={},w(oe,ve,b),w(oe,we,E),oe)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var g=C})(jj);var zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(q),n=P(ot),o=P(pt),i=Je,a=P(Sr),l=P(et),s=Xe,d=WP;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function p(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}function m(E,A){return w(E)||C(E,A)||T(E,A)||g()}function b(E){return S(E)||y(E)||T(E)||h()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,H=E.unratedIcon,Y=E.ratedColor,re=E.unratedColor,Q=E.className,W=E.onChange,X=E.readonly,te=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),ne,se,ve=(0,s.useTheme)().rating,we=ve.valid,ce=ve.defaultProps,J=ve.styles,oe=J.base,ue=J.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,H=H??ce.unratedIcon,Y=Y??ce.ratedColor,re=re??ce.unratedColor,W=W??ce.onChange,X=X??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return b(Array(V).fill("rated")).concat(b(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Me=Se[1],Ie=m(r.default.useState(function(){return b(Array(F).fill("un_rated"))}),2),Re=Ie[0],ye=Ie[1],ke=m(r.default.useState(!1),2),ze=ke[0],Ye=ke[1],Mt=(0,l.default)(ue[(0,a.default)(we.colors,Y,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(we.colors,re,"blue-gray")]),xt=(0,i.twMerge)((0,o.default)((0,l.default)(oe.rating),Q)),zt=(0,l.default)(oe.icon),Ht=B,mt=H,Ot=r.default.isValidElement(B)&&r.default.cloneElement(Ht,{className:(0,i.twMerge)((0,o.default)(zt,Mt,Ht==null||(ne=Ht.props)===null||ne===void 0?void 0:ne.className))}),Jt=r.default.isValidElement(B)&&r.default.cloneElement(mt,{className:(0,i.twMerge)((0,o.default)(zt,gt,mt==null||(se=mt.props)===null||se===void 0?void 0:se.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(zt,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(H,{className:(0,i.twMerge)((0,o.default)(zt,gt))}),Qn=function(Ln){return Ln.map(function(nr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!X){var Yt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Me(Yt),W&&typeof W=="function"&&W(Yt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!X){var Yt=Re.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Ye(!0),ye(Yt)}},onMouseLeave:function(){return!X&&Ye(!1)}},r.default.isValidElement(nr==="rated"?B:H)?nr==="rated"?Ot:Jt:nr==="rated"?Dr:ln)})};return r.default.createElement("div",_({},te,{ref:A,className:xt}),Qn(ze?Re:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(zj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return b}});var r=P(q),n=P(ot),o=P(Xn),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=$P;function w(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function h(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||p(T,k)||C()}function p(T,k){if(T){if(typeof T=="string")return w(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,H=T.value,Y=T.defaultValue,re=T.onChange,Q=T.min,W=T.max,X=T.step,te=T.inputRef,ne=T.inputProps,se=g(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),ve=(0,d.useTheme)().slider,we=ve.valid,ce=ve.defaultProps,J=ve.styles,oe=J.base,ue=J.sizes,Se=J.colors,Ce=c(r.default.useState(Y||0),2),Me=Ce[0],Ie=Ce[1];r.default.useMemo(function(){Y&&Ie(Y)},[Y]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,X=X??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Re;V=(Re=(0,i.default)(ce.thumbClassName,V))!==null&&Re!==void 0?Re:ce.thumbClassName;var ye;F=(ye=(0,i.default)(ce.trackClassName,F))!==null&&ye!==void 0?ye:ce.trackClassName;var ke;B=(ke=(0,i.default)(ce.barClassName,B))!==null&&ke!==void 0?ke:ce.barClassName;var ze;ne=(ze=(0,o.default)(ne,(ce==null?void 0:ce.inputProps)||{}))!==null&&ze!==void 0?ze:ce.inputProps;var Ye=(0,a.twMerge)((0,i.default)((0,s.default)(oe.container),(0,s.default)(Se[(0,l.default)(we.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(oe.bar),B)),gt=(0,i.default)((0,s.default)(oe.track),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].track)),xt=(0,i.default)((0,s.default)(oe.thumb),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].thumb)),zt=(0,i.default)((0,s.default)(oe.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(xt,V));return r.default.createElement("div",_({},se,{ref:k,className:Ye}),r.default.createElement("label",{className:Mt,style:{width:"".concat(H||Me,"%")}}),r.default.createElement("input",_({ref:te,type:"range",max:W,min:Q,step:X,className:zt},H?{value:H}:null,{defaultValue:Y,onChange:function(Ht){return re?re(Ht):Ie(Number(Ht.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var b=m})(Vj);var Bj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,b){for(var T in b)Object.defineProperty(m,T,{enumerable:!0,get:b[T]})}t(e,{useTimelineItem:function(){return h},TimelineItem:function(){return c},default:function(){return p}});var r=v(q),n=Je,o=v(et),i=Xe,a=bs;function l(m,b){(b==null||b>m.length)&&(b=m.length);for(var T=0,k=new Array(b);T=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,b){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,b){return s(m)||w(m,b)||C(m,b)||S()}function C(m,b){if(m){if(typeof m=="string")return l(m,b);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,b)}}var g=r.default.createContext(0);g.displayName="MaterialTailwind.TimelineItemContext";function h(){var m=r.default.useContext(g);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,b){var T=m.className,k=m.children,R=_(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],H=V[1],Y=r.default.useMemo(function(){return[B,H]},[B,H]),re=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(g.Provider,{value:Y},r.default.createElement("li",d({ref:b},R,{className:re}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var p=c})(lm);var Uj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return b}});var r=P(q),n=P(ot),o=wn,i=Je,a=P(Sr),l=P(et),s=Xe,d=lm,v=bs;function w(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function h(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||p(T,k)||C()}function p(T,k){if(T){if(typeof T=="string")return w(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return w(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=g(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,H=B.styles,Y=B.valid,re=H.base,Q=H.variants,W=c((0,d.useTimelineItem)(),2),X=W[1],te=r.default.useRef(null),ne=(0,o.useMergeRefs)([k,te]);r.default.useEffect(function(){var we=te.current;if(we){var ce=we.getBoundingClientRect().width;return X(ce),function(){X(0)}}},[X,A,F]);var se=(0,l.default)(Q[(0,a.default)(Y.variants,E,"filled")][(0,a.default)(Y.colors,R,"gray")]),ve=(0,i.twMerge)((0,l.default)(re),se,A);return r.default.createElement("span",_({ref:ne},V,{className:ve}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var b=m})(Uj);var Hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{TimelineHeader:function(){return h},default:function(){return c}});var r=w(q),n=Je,o=w(et),i=Xe,a=lm,l=bs;function s(p,m){(m==null||m>p.length)&&(m=p.length);for(var b=0,T=new Array(m);b=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function y(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}function C(p,m){return d(p)||S(p,m)||g(p,m)||_()}function g(p,m){if(p){if(typeof p=="string")return s(p,m);var b=Object.prototype.toString.call(p).slice(8,-1);if(b==="Object"&&p.constructor&&(b=p.constructor.name),b==="Map"||b==="Set")return Array.from(b);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return s(p,m)}}var h=r.default.forwardRef(function(p,m){var b=p.className,T=p.children,k=P(p,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),b);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});h.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},h.displayName="MaterialTailwind.TimelineHeader";var c=h})(Hj);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return w},default:function(){return S}});var r=s(q),n=Je,o=s(et),i=Xe,a=bs;function l(){return l=Object.assign||function(_){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(_,C)&&(y[C]=_[C])}return y}function v(_,P){if(_==null)return{};var y={},C=Object.keys(_),g,h;for(h=0;h=0)&&(y[g]=_[g]);return y}var w=r.default.forwardRef(function(_,P){var y=_.className,C=_.children,g=d(_,["className","children"]),h=(0,i.useTheme)().timelineHeader,c=h.styles,p=c.base,m=(0,n.twMerge)((0,o.default)(p),y);return r.default.createElement("div",l({},g,{ref:P,className:m}),C)});w.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},w.displayName="MaterialTailwind.TimelineHeader";var S=w})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,m){for(var b in m)Object.defineProperty(p,b,{enumerable:!0,get:m[b]})}t(e,{TimelineConnector:function(){return h},default:function(){return c}});var r=w(q),n=Je,o=w(et),i=Xe,a=lm,l=bs;function s(p,m){(m==null||m>p.length)&&(m=p.length);for(var b=0,T=new Array(m);b=0)&&Object.prototype.propertyIsEnumerable.call(p,T)&&(b[T]=p[T])}return b}function y(p,m){if(p==null)return{};var b={},T=Object.keys(p),k,R;for(R=0;R=0)&&(b[k]=p[k]);return b}function C(p,m){return d(p)||S(p,m)||g(p,m)||_()}function g(p,m){if(p){if(typeof p=="string")return s(p,m);var b=Object.prototype.toString.call(p).slice(8,-1);if(b==="Object"&&p.constructor&&(b=p.constructor.name),b==="Map"||b==="Set")return Array.from(b);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return s(p,m)}}var h=r.default.forwardRef(function(p,m){var b=p.className,T=p.children,k=P(p,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],H=(0,o.default)(F.line),Y=(0,n.twMerge)((0,o.default)(F.container),b);return r.default.createElement("span",v({},k,{ref:m,className:Y,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(H,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:H}))});h.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},h.displayName="MaterialTailwind.TimelineConnector";var c=h})($j);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,c){for(var p in c)Object.defineProperty(h,p,{enumerable:!0,get:c[p]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return w.default},default:function(){return g}});var r=_(q),n=Je,o=_(et),i=Xe,a=bs,l=_(lm),s=_(Uj),d=_(Hj),v=_(Wj),w=_($j);function S(){return S=Object.assign||function(h){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(h,m)&&(p[m]=h[m])}return p}function y(h,c){if(h==null)return{};var p={},m=Object.keys(h),b,T;for(T=0;T=0)&&(p[b]=h[b]);return p}var C=r.default.forwardRef(function(h,c){var p=h.className,m=h.children,b=P(h,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),p);return r.default.createElement("ul",S({ref:c},b,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var g=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:w.default})})(Bj);var Gj={},Kj={},ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var w in v)Object.defineProperty(d,w,{enumerable:!0,get:v[w]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return w},default:function(){return S}});var r=s(q),n=Je,o=s(et),i=Xe,a=ET;function l(){return l=Object.assign||function(_){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(_,C)&&(y[C]=_[C])}return y}function v(_,P){if(_==null)return{};var y={},C=Object.keys(_),g,h;for(h=0;h=0)&&(y[g]=_[g]);return y}var w=r.default.forwardRef(function(_,P){var y=_.className;_.activeClassName,_.completedClassName;var C=_.children,g=d(_,["className","activeClassName","completedClassName","children"]),h=(0,i.useTheme)().step,c=h.styles.base,p=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},g,{ref:P,className:p}),C)});w.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},w.displayName="MaterialTailwind.Step";var S=w})(Kj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=_(q),n=wn,o=Je,i=_(et),a=Xe,l=_(Kj),s=ET;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function p(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||b(R,E)||y()}function b(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,H=R.lineClassName,Y=R.activeLineClassName,re=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),X=W.stepper,te=W.step,ne=X.styles.base,se=te.styles,ve=se.base,we=r.default.useRef(null),ce=m(r.default.useState(0),2),J=ce[0],oe=ce[1],ue=A===0,Se=Array.isArray(re)&&A===re.length-1,Ce=Array.isArray(re)&&A>re.length-1;r.default.useEffect(function(){if(we.current){var Ye=re,Mt=we.current.getBoundingClientRect().width,gt=Mt/(Ye.length-1);oe(gt)}},[re]);var Me=r.default.useMemo(function(){if(!Ce)return J*A},[A,Ce,J]);(0,n.useMergeRefs)([E,we]);var Ie=(0,o.twMerge)((0,i.default)(ne.stepper),B),Re=(0,o.twMerge)((0,i.default)(ne.line.initial),H),ye=(0,o.twMerge)(Re,(0,i.default)(ne.line.active),Y),ke=(0,i.default)(ve.active),ze=(0,i.default)(ve.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:we,className:Ie}),r.default.createElement("div",{className:Re}),r.default.createElement("div",{className:ye,style:{width:"".concat(Me,"px")}}),Array.isArray(re)?re.map(function(Ye,Mt){var gt,xt;return r.default.cloneElement(Ye,h(C({key:Mt},Ye.props),{className:(0,o.twMerge)(Ye.props.className,Mt===A?(0,o.twMerge)(ke,(gt=Ye.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.children,c=S(C,["children"]),p,m=(0,o.useSpeedDial)(),b=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([g,T.setReference]);return r.default.cloneElement(h,d({},b(w(d({},c),{ref:k,className:(0,i.twMerge)(h==null||(p=h.props)===null||p===void 0?void 0:p.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Mx)),Mx}var Rx={},Q8;function IJ(){return Q8||(Q8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,g){for(var h in g)Object.defineProperty(C,h,{enumerable:!0,get:g[h]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=w(q),n=An,o=wn,i=MT(),a=Xe,l=Je,s=w(et),d=sm;function v(){return v=Object.assign||function(C){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(h[c]=C[c])}return h}function _(C,g){if(C==null)return{};var h={},c=Object.keys(C),p,m;for(m=0;m=0)&&(h[p]=C[p]);return h}var P=r.default.forwardRef(function(C,g){var h=C.children,c=C.className,p=S(C,["children","className"]),m=(0,a.useTheme)(),b=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,H=(0,o.useMergeRefs)([g,E.setFloating]),Y=(0,l.twMerge)((0,s.default)(b),c),re=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(re,null,A&&r.default.createElement("div",v({},p,{ref:H,className:Y,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(h,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Rx)),Rx}var qj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,P){for(var y in P)Object.defineProperty(_,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return w},default:function(){return S}});var r=s(q),n=Xe,o=Je,i=s(et),a=sm;function l(){return l=Object.assign||function(_){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(_,C)&&(y[C]=_[C])}return y}function v(_,P){if(_==null)return{};var y={},C=Object.keys(_),g,h;for(h=0;h=0)&&(y[g]=_[g]);return y}var w=r.default.forwardRef(function(_,P){var y=_.className,C=_.children,g=d(_,["className","children"]),h=(0,n.useTheme)(),c=h.speedDialAction.styles,p=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},g,{ref:P,className:p}),C)});w.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},w.displayName="SpeedDialAction";var S=w})(qj);var Z8;function MT(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,b){for(var T in b)Object.defineProperty(m,T,{enumerable:!0,get:b[T]})}t(e,{SpeedDialContext:function(){return g},useSpeedDial:function(){return h},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return p}});var r=S(q),n=wn,o=Xe,i=S(Xn),a=sm,l=S(AJ()),s=S(IJ()),d=S(qj);function v(m,b){(b==null||b>m.length)&&(b=m.length);for(var T=0,k=new Array(b);T.");return m}function c(m){var b=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,H=y(r.default.useState(!1),2),Y=H[0],re=H[1];b=b??Y,T=T??re,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),X=(0,n.useFloatingNodeId)(),te=(0,n.useFloating)({open:b,nodeId:X,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),ne=te.x,se=te.y,ve=te.strategy,we=te.refs,ce=te.context,J=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),oe=J.getReferenceProps,ue=J.getFloatingProps,Se=r.default.useMemo(function(){return{x:ne,y:se,strategy:ve,refs:we,open:b,context:ce,getReferenceProps:oe,getFloatingProps:ue,animation:W}},[ce,ue,oe,we,ve,ne,se,b,W]);return r.default.createElement(g.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:X},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var p=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Ex)),Ex}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(ZR,e),t(eL,e),t(tL,e),t(rL,e),t(oL,e),t(iL,e),t(uL,e),t(cL,e),t(dL,e),t(d2,e),t(ij,e),t(aj,e),t(dj,e),t(pj,e),t(vj,e),t(mj,e),t(yj,e),t(wj,e),t(_j,e),t(Tj,e),t(Oj,e),t(kj,e),t(Ej,e),t(Rj,e),t(Aj,e),t(Ij,e),t(Dj,e),t(jj,e),t(zj,e),t(Vj,e),t(b3,e),t(Bj,e),t(Gj,e),t(MT(),e),t(Xe,e),t(RP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(XW);function LJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var RT={exports:{}},I2={},bw={},Tt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof sO<"u"?sO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Tt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Tt;class r{constructor(p=[1,0,0,1,0,0]){this.dirty=!1,this.m=p&&p.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(p){p.m[0]=this.m[0],p.m[1]=this.m[1],p.m[2]=this.m[2],p.m[3]=this.m[3],p.m[4]=this.m[4],p.m[5]=this.m[5]}point(p){const m=this.m;return{x:m[0]*p.x+m[2]*p.y+m[4],y:m[1]*p.x+m[3]*p.y+m[5]}}translate(p,m){return this.m[4]+=this.m[0]*p+this.m[2]*m,this.m[5]+=this.m[1]*p+this.m[3]*m,this}scale(p,m){return this.m[0]*=p,this.m[1]*=p,this.m[2]*=m,this.m[3]*=m,this}rotate(p){const m=Math.cos(p),b=Math.sin(p),T=this.m[0]*m+this.m[2]*b,k=this.m[1]*m+this.m[3]*b,R=this.m[0]*-b+this.m[2]*m,E=this.m[1]*-b+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(p,m){const b=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*p,R=this.m[3]+this.m[1]*p;return this.m[0]=b,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(p){const m=this.m[0]*p.m[0]+this.m[2]*p.m[1],b=this.m[1]*p.m[0]+this.m[3]*p.m[1],T=this.m[0]*p.m[2]+this.m[2]*p.m[3],k=this.m[1]*p.m[2]+this.m[3]*p.m[3],R=this.m[0]*p.m[4]+this.m[2]*p.m[5]+this.m[4],E=this.m[1]*p.m[4]+this.m[3]*p.m[5]+this.m[5];return this.m[0]=m,this.m[1]=b,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const p=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*p,b=-this.m[1]*p,T=-this.m[2]*p,k=this.m[0]*p,R=p*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=p*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=b,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const p=this.m[0],m=this.m[1],b=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=p*T-m*b,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(p!=0||m!=0){const F=Math.sqrt(p*p+m*m);A.rotation=m>0?Math.acos(p/F):-Math.acos(p/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(p*b+m*T)/E,A.skewY=0}else if(b!=0||T!=0){const F=Math.sqrt(b*b+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-b/F):-Math.acos(b/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(p*b+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",w="0",S="Konva warning: ",_="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let g=[];const h=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const p=c[0];return p==="#"||p==="."||p===p.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){g.push(c),g.length===1&&h(function(){const p=g;g=[],p.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,p){const m=e.Util.createImageElement();m.onload=function(){p(m)},m.src=c},_rgbToHex(c,p,m){return((1<<24)+(c<<16)+(p<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const p=parseInt(c,16);return{r:p>>16&255,g:p>>8&255,b:p&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=w+c;return d+c},getRGB(c){let p;return c in y?(p=y[c],{r:p[0],g:p[1],b:p[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(p=C.exec(c.replace(/ /g,"")),{r:parseInt(p[1],10),g:parseInt(p[2],10),b:parseInt(p[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const p=y[c.toLowerCase()];return p?{r:p[0],g:p[1],b:p[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const p=c.split(/ *, */).map(Number);return{r:p[0],g:p[1],b:p[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const p=c.split(/ *, */).map((m,b)=>m.slice(-1)==="%"?b===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:p[0],g:p[1],b:p[2],a:p[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[p,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),b=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=b+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,p){return!(p.x>c.x+c.width||p.x+p.widthc.y+c.height||p.y+p.height1?(R=m,E=b,A=(m-T)*(m-T)+(b-k)*(b-k)):(R=c+V*(m-c),E=p+V*(b-p),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,p,m){const b=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return p.forEach(function(k,R){if(!m&&R===p.length-1)return;const E=p[(R+1)%p.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bp.length){const R=p;p=c,c=R}for(let R=0;R{p.width=0,p.height=0})},drawRoundedRectPath(c,p,m,b){let T=0,k=0,R=0,E=0;typeof b=="number"?T=k=R=E=Math.min(b,p/2,m/2):(T=Math.min(b[0]||0,p/2,m/2),k=Math.min(b[1]||0,p/2,m/2),E=Math.min(b[2]||0,p/2,m/2),R=Math.min(b[3]||0,p/2,m/2)),c.moveTo(T,0),c.lineTo(p-k,0),c.arc(p-k,k,k,Math.PI*3/2,0,!1),c.lineTo(p,m-E),c.arc(p-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},Et={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=DJ;ht.alphaComponent=FJ;ht.getNumberValidator=jJ;ht.getNumberOrArrayOfNumbersValidator=zJ;ht.getNumberOrAutoValidator=VJ;ht.getStringValidator=BJ;ht.getStringOrGradientValidator=UJ;ht.getFunctionValidator=HJ;ht.getNumberArrayValidator=WJ;ht.getBooleanValidator=$J;ht.getComponentValidator=GJ;const _s=Tt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function DJ(e){return e>255?255:e<0?0:Math.round(e)}function FJ(e){return e>1?1:e<1e-4?1e-4:e}function jJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function zJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function VJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function BJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function GJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,w=t.Util._capitalize,S=n+w(a),_=o+w(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+w(g),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const w=this.attrs[a];return w===void 0?l:w},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),w=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[w]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(Et);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Yj=Lr,KJ=Tt;function qJ(e){const t=[],r=e.length,n=Yj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=YJ+d.join(J8)+XJ)):(i+=l.property,t||(i+=tee+l.val)),i+=JJ;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=nee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,w=this._context;v.length===3?w.drawImage(t,r,n):v.length===5?w.drawImage(t,r,n,o,i):v.length===9&&w.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=eE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=qJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(F2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,um=Et,Y0=za,Gs=Tt,qi=F2,Xr=ht,Yb="absoluteOpacity",rb="allEventListeners",$l="absoluteTransform",tE="absoluteScale",Dc="canvas",dee="Change",fee="children",pee="konva",s4="listening",rE="mouseenter",nE="mouseleave",oE="set",iE="Shape",Xb=" ",aE="stage",Xs="transform",hee="Stage",u4="visible",gee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Xb);let vee=1,_t=class c4{constructor(t){this._id=vee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Xb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,w=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,_=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+_,l-=d,s-=d;const P=new Y0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new Y0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new Y0.HitCanvas({pixelRatio:w,width:o,height:i}),g=P.getContext(),h=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),g.save(),h.save(),g.translate(-l,-s),h.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Yb),this._clearSelfAndDescendantCache(tE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,g.restore(),h.restore(),v&&(g.save(),g.beginPath(),g.rect(0,0,o,i),g.closePath(),g.setAttr("strokeStyle","red"),g.setAttr("lineWidth",5),g.stroke(),g.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==fee&&(n=oE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(s4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(u4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==hee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Yb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=c4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Nx.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Nx.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,w=n===this;if(v){a.save();const _=this.getAbsoluteTransform(n);let P=_.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),g=this.clipY();a.rect(C||0,g||0,l,s)}a.clip.apply(a,y),P=_.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!w&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(_){_[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(_){if(!_.visible())return;const P=_.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const w=this.find("Shape");let S=!1;for(let _=0;_ce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",ne=ce=>{const J=te(ce);if(J==="pointer")return o.Konva.pointerEventsEnabled&&X.pointer;if(J==="touch")return X.touch;if(J==="mouse")return X.mouse};function se(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const ve="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class we extends n.Container{constructor(J){super(se(J)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{se(this.attrs)}),this._checkVisibility()}_validateAdd(J){const oe=J.getType()==="Layer",ue=J.getType()==="FastLayer";oe||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const J=this.visible()?"":"none";this.content.style.display=J}setContainer(J){if(typeof J===v){if(J.charAt(0)==="."){const ue=J.slice(1);J=document.getElementsByClassName(ue)[0]}else{var oe;J.charAt(0)!=="#"?oe=J:oe=J.slice(1),J=document.getElementById(oe)}if(!J)throw"Can not find container in document with id "+oe}return this._setAttr("container",J),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),J.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const J=this.children,oe=J.length;for(let ue=0;ue-1&&e.stages.splice(oe,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const J=this._pointerPositions[0]||this._changedPointerPositions[0];return J?{x:J.x,y:J.y}:(t.Util.warn(ve),null)}_getPointerById(J){return this._pointerPositions.find(oe=>oe.id===J)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(J){J=J||{},J.x=J.x||0,J.y=J.y||0,J.width=J.width||this.width(),J.height=J.height||this.height();const oe=new i.SceneCanvas({width:J.width,height:J.height,pixelRatio:J.pixelRatio||1}),ue=oe.getContext()._context,Se=this.children;return(J.x||J.y)&&ue.translate(-1*J.x,-1*J.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Me=Ce._toKonvaCanvas(J);ue.drawImage(Me._canvas,J.x,J.y,Me.getWidth()/Me.getPixelRatio(),Me.getHeight()/Me.getPixelRatio())}),oe}getIntersection(J){if(!J)return null;const oe=this.children,ue=oe.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Me=oe[Ce].getIntersection(J);if(Me)return Me}return null}_resizeDOM(){const J=this.width(),oe=this.height();this.content&&(this.content.style.width=J+w,this.content.style.height=oe+w),this.bufferCanvas.setSize(J,oe),this.bufferHitCanvas.setSize(J,oe),this.children.forEach(ue=>{ue.setSize({width:J,height:oe}),ue.draw()})}add(J,...oe){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),J.setSize({width:this.width(),height:this.height()}),J.draw(),o.Konva.isBrowser&&this.content.appendChild(J.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(J){return s.hasPointerCapture(J,this)}setPointerCapture(J){s.setPointerCapture(J,this)}releaseCapture(J){s.releaseCapture(J,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([J,oe])=>{this.content.addEventListener(J,ue=>{this[oe](ue)},{passive:!1})})}_pointerenter(J){this.setPointersPositions(J);const oe=ne(J.type);oe&&this._fire(oe.pointerenter,{evt:J,target:this,currentTarget:this})}_pointerover(J){this.setPointersPositions(J);const oe=ne(J.type);oe&&this._fire(oe.pointerover,{evt:J,target:this,currentTarget:this})}_getTargetShape(J){let oe=this[J+"targetShape"];return oe&&!oe.getStage()&&(oe=null),oe}_pointerleave(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(oe.pointerout,{evt:J}),Se._fireAndBubble(oe.pointerleave,{evt:J}),this._fire(oe.pointerleave,{evt:J,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(oe.pointerleave,{evt:J,target:this,currentTarget:this}),this._fire(oe.pointerout,{evt:J,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Me=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Me||!Me.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Me.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Me,Me._fireAndBubble(oe.pointerdown,{evt:J,pointerId:Ce.id}),Se=!0;const Ie=J.type.indexOf("touch")>=0;Me.preventDefault()&&J.cancelable&&Ie&&J.preventDefault()}),Se||this._fire(oe.pointerdown,{evt:J,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(J){const oe=ne(J.type),ue=te(J.type);if(!oe||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&J.cancelable&&J.preventDefault(),this.setPointersPositions(J),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Me=!1;const Ie=this._getTargetShape(ue);this._changedPointerPositions.forEach(Re=>{const ye=s.getCapturedShape(Re.id)||this.getIntersection(Re),ke=Re.id,ze={evt:J,pointerId:ke},Ye=Ie!==ye;if(Ye&&Ie&&(Ie._fireAndBubble(oe.pointerout,{...ze},ye),Ie._fireAndBubble(oe.pointerleave,{...ze},ye)),ye){if(Ce[ye._id])return;Ce[ye._id]=!0}ye&&ye.isListening()?(Me=!0,Ye&&(ye._fireAndBubble(oe.pointerover,{...ze},Ie),ye._fireAndBubble(oe.pointerenter,{...ze},Ie),this[ue+"targetShape"]=ye),ye._fireAndBubble(oe.pointermove,{...ze})):Ie&&(this._fire(oe.pointerover,{evt:J,target:this,currentTarget:this,pointerId:ke}),this[ue+"targetShape"]=null)}),Me||this._fire(oe.pointermove,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(J){const oe=ne(J.type),ue=te(J.type);if(!oe)return;this.setPointersPositions(J);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Me={};let Ie=!1;this._changedPointerPositions.forEach(Re=>{const ye=s.getCapturedShape(Re.id)||this.getIntersection(Re);if(ye){if(ye.releaseCapture(Re.id),Me[ye._id])return;Me[ye._id]=!0}const ke=Re.id,ze={evt:J,pointerId:ke};let Ye=!1;o.Konva["_"+ue+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),ye&&ye.isListening()?(Ie=!0,this[ue+"ClickEndShape"]=ye,ye._fireAndBubble(oe.pointerup,{...ze}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===ye&&(ye._fireAndBubble(oe.pointerclick,{...ze}),Ye&&Ce&&Ce===ye&&ye._fireAndBubble(oe.pointerdblclick,{...ze}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(oe.pointerclick,{evt:J,target:this,currentTarget:this,pointerId:ke}),Ye&&this._fire(oe.pointerdblclick,{evt:J,target:this,currentTarget:this,pointerId:ke}))}),Ie||this._fire(oe.pointerup,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,J.cancelable&&ue!=="touch"&&ue!=="pointer"&&J.preventDefault()}_contextmenu(J){this.setPointersPositions(J);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(F,{evt:J}):this._fire(F,{evt:J,target:this,currentTarget:this})}_wheel(J){this.setPointersPositions(J);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(re,{evt:J}):this._fire(re,{evt:J,target:this,currentTarget:this})}_pointercancel(J){this.setPointersPositions(J);const oe=s.getCapturedShape(J.pointerId)||this.getIntersection(this.getPointerPosition());oe&&oe._fireAndBubble(m,s.createEvent(J)),s.releaseCapture(J.pointerId)}_lostpointercapture(J){s.releaseCapture(J.pointerId)}setPointersPositions(J){const oe=this._getContentPosition();let ue=null,Se=null;J=J||window.event,J.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(J.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})}),Array.prototype.forEach.call(J.changedTouches||J.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})})):(ue=(J.clientX-oe.left)/oe.scaleX,Se=(J.clientY-oe.top)/oe.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}])}_setPointerPosition(J){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(J)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const J=this.content.getBoundingClientRect();return{top:J.top,left:J.left,scaleX:J.width/this.content.clientWidth||1,scaleY:J.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const J=this.container();if(!J)throw"Stage has no container. A container is required.";J.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),J.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(J){J.batchDraw()}),this}}e.Stage=we,we.prototype.nodeType=d,(0,l._registerNode)(we),r.Factory.addGetterSetter(we,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(Zj);var cm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Tt,r=Lr,n=Et,o=Cr,i=ht,a=Tt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",w="linearGradient",S="radialGradient";let _;function P(){return _||(_=r.Util.createCanvasElement().getContext("2d"),_)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function g(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function h(R){R.stroke()}function c(){this._clearCache(s)}function p(){this._clearCache(d)}function m(){this._clearCache(v)}function b(){this._clearCache(w)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(w,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let H=0;Hthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),H=this.getAbsoluteOpacity()!==1;if(V&&B&&H)return!0;const Y=this.hasShadow(),re=this.shadowForStrokeEnabled();return!!(V&&B&&Y&&re)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,H=this.getSelfRect(),re=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=H.width+re,W=H.height+re,X=!E.skipShadow&&this.hasShadow(),te=X?this.shadowOffsetX():0,ne=X?this.shadowOffsetY():0,se=Q+Math.abs(te),ve=W+Math.abs(ne),we=X&&this.shadowBlur()||0,ce=se+we*2,J=ve+we*2,oe={width:ce,height:J,x:-(re/2+we)+Math.min(te,0)+H.x,y:-(re/2+we)+Math.min(ne,0)+H.y};return V?oe:this._transformedRect(oe,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),H=B.getContext(),Y=this._getCanvasCache(),re=this.getSceneFunc(),Q=this.hasShadow(),W,X;const te=B.isCache,ne=A===this;if(!this.isVisible()&&!ne)return this;if(Y){H.save();const ve=this.getAbsoluteTransform(A).getMatrix();return H.transform(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5]),this._drawCachedSceneCanvas(H),H.restore(),this}if(!re)return this;if(H.save(),this._useBufferCanvas()&&!te){W=this.getStage();const ve=F||W.bufferCanvas;X=ve.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var se=this.getAbsoluteTransform(A).getMatrix();X.transform(se[0],se[1],se[2],se[3],se[4],se[5]),re.call(this,X,this),X.restore();const we=ve.pixelRatio;Q&&H._applyShadow(this),H._applyOpacity(this),H._applyGlobalCompositeOperation(this),H.drawImage(ve._canvas,0,0,ve.width/we,ve.height/we)}else{if(H._applyLineJoin(this),!ne){var se=this.getAbsoluteTransform(A).getMatrix();H.transform(se[0],se[1],se[2],se[3],se[4],se[5]),H._applyOpacity(this),H._applyGlobalCompositeOperation(this)}Q&&H._applyShadow(this),re.call(this,H,this)}return H.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,H=B&&B.getContext(),Y=this.hitFunc()||this.sceneFunc(),re=this._getCanvasCache(),Q=re&&re.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){H.save();const X=this.getAbsoluteTransform(A).getMatrix();return H.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(H),H.restore(),this}if(!Y)return this;if(H.save(),H._applyLineJoin(this),!(this===A)){const X=this.getAbsoluteTransform(A).getMatrix();H.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return Y.call(this,H,this),H.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),H=V.getWidth(),Y=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,H,Y);try{const re=B.getImageData(0,0,H,Y),Q=re.data,W=Q.length,X=r.Util._hexToRgb(this.colorKey);for(let te=0;teE?(Q[te]=X.r,Q[te+1]=X.g,Q[te+2]=X.b,Q[te+3]=255):Q[te+3]=0;B.putImageData(re,0,0)}catch(re){r.Util.error("Unable to draw hit graph from cached scene canvas. "+re.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=g,k.prototype._strokeFuncHit=h,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",p),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",b),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(cm,"__esModule",{value:!0});cm.Layer=void 0;const Hl=Lr,Ax=Ed,If=Cr,AT=Et,lE=za,_ee=ht,xee=_n,See=Tt,Cee="#",Pee="beforeDraw",Tee="draw",tz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Oee=tz.length;let xh=class extends Ax.Container{constructor(t){super(t),this.canvas=new lE.SceneCanvas,this.hitCanvas=new lE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Pee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Ax.Container.prototype.drawScene.call(this,o,r),this._fire(Tee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Ax.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};cm.Layer=xh;xh.prototype.nodeType="Layer";(0,See._registerNode)(xh);AT.Factory.addGetterSetter(xh,"imageSmoothingEnabled",!0);AT.Factory.addGetterSetter(xh,"clearBeforeDraw",!0);AT.Factory.addGetterSetter(xh,"hitGraphEnabled",!0,(0,_ee.getBooleanValidator)());var z2={};Object.defineProperty(z2,"__esModule",{value:!0});z2.FastLayer=void 0;const kee=Lr,Eee=cm,Mee=Tt;class IT extends Eee.Layer{constructor(t){super(t),this.listening(!1),kee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}z2.FastLayer=IT;IT.prototype.nodeType="FastLayer";(0,Mee._registerNode)(IT);var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.Group=void 0;const Ree=Lr,Nee=Ed,Aee=Tt;let LT=class extends Nee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Ree.Util.throw("You may only add groups and shapes to groups.")}};Sh.Group=LT;LT.prototype.nodeType="Group";(0,Aee._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Animation=void 0;const Ix=Tt,sE=Lr,Lx=(function(){return Ix.glob.performance&&Ix.glob.performance.now?function(){return Ix.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Lx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,g=C._id,h=P.easing||e.Easings.Linear,c=!!P.yoyo;let p,m;typeof P.duration>"u"?p=.3:P.duration===0?p=.001:p=P.duration,this.node=C,this._id=v++;const b=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);b||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},b),this.tween=new w(m,function(T){y._tweenFunc(T)},h,0,1,p*1e3,c),this._addListeners(),S.attrs[g]||(S.attrs[g]={}),S.attrs[g][this._id]||(S.attrs[g][this._id]={}),S.tweens[g]||(S.tweens[g]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,g=C._id;let h,c,p,m,b;const T=S.tweens[g][P];T&&delete S.attrs[g][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(h=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(p=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const g in C)delete S.tweens[P][g];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(_){const P=_.onFinish;_.node=this,_.onFinish=function(){this.destroy(),P&&P()},new S(_).play()},e.Easings={BackEaseIn(_,P,y,C){return y*(_/=C)*_*((1.70158+1)*_-1.70158)+P},BackEaseOut(_,P,y,C){return y*((_=_/C-1)*_*((1.70158+1)*_+1.70158)+1)+P},BackEaseInOut(_,P,y,C){let g=1.70158;return(_/=C/2)<1?y/2*(_*_*(((g*=1.525)+1)*_-g))+P:y/2*((_-=2)*_*(((g*=1.525)+1)*_+g)+2)+P},ElasticEaseIn(_,P,y,C,g,h){let c=0;return _===0?P:(_/=C)===1?P+y:(h||(h=C*.3),!g||g0?t:r),v=a*r,w=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:w,width:v-d,height:S-w}}}V2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Lee._registerNode)(Ss);B2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"angle",0,(0,U2.getNumberValidator)());B2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,U2.getBooleanValidator)());var H2={},dm={};Object.defineProperty(dm,"__esModule",{value:!0});dm.Line=void 0;const W2=Et,Dee=Tt,Fee=_n,nz=ht;function d4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),w=r-d*(o-e),S=n-d*(i-t),_=r+v*(o-e),P=n+v*(i-t);return[w,S,_,P]}function cE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let _=0;_<20;_++)v=S*e.tValues[20][_]+S,d+=e.cValues[20][_]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],w=2*a[1]-2*a[0],S=2*l[1]-2*l[0],_=4*(d*d+v*v),P=4*(d*w+v*S),y=w*w+S*S;if(_===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*_),g=y/_,h=s+C,c=g-C*C,p=h*h+c>0?Math.sqrt(h*h+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,b=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((h+p)/(C+m))):0;return Math.sqrt(_)/2*(h*p-C*m+b)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),w=d*d+v*v;return Math.sqrt(w)}const o=(a,l,s)=>{const d=s.length-1;let v,w;if(d===0)return 0;if(a===0){w=0;for(let S=0;S<=d;S++)w+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return w}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,w=(a-s(v))/l,S=0;for(;d>.001;){const _=s(v+w),P=Math.abs(a-_)/l;if(P500)break}return v};e.t2length=i})(oz);Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Path=void 0;const jee=Et,zee=_n,Vee=Tt,Lf=oz;class hn extends zee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,_=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(_,P),t.arc(0,0,S,s,s+d,1-w),t.scale(1/_,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],w=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-w)w;_-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],_,0);t.push(P.x,P.y)}else for(let _=d+S;_r[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],w=l[3],S=l[4],_=l[5],P=l[6];return S+=_*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,w,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,_,P,y,C,g,h,c,p,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var b=E.shift(),T=E.shift();if(s+=b,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let H=a.length-2;H>=0;H--)if(a[H].command==="M"){s=a[H].points[0]+b,d=a[H].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":_=s,P=d,S=a[a.length-1],S.command==="C"&&(_=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(_,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":_=s,P=d,S=a[a.length-1],S.command==="C"&&(_=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(_,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":_=s,P=d,S=a[a.length-1],S.command==="Q"&&(_=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(_,P,s,d);break;case"t":_=s,P=d,S=a[a.length-1],S.command==="Q"&&(_=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(_,P,s,d);break;case"A":y=E.shift(),C=E.shift(),g=E.shift(),h=E.shift(),c=E.shift(),p=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(p,m,s,d,h,c,y,C,g);break;case"a":y=E.shift(),C=E.shift(),g=E.shift(),h=E.shift(),c=E.shift(),p=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(p,m,s,d,h,c,y,C,g);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],w=o[5],S=o[4]+w,_=Math.PI/180;if(Math.abs(v-S)<_&&(_=Math.abs(v-S)),a=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],v,0),w<0)for(s=v-_;s>S;s-=_)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+_;s1&&(l*=Math.sqrt(_),s*=Math.sqrt(_));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(w*w))/(l*l*(S*S)+s*s*(w*w)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*w/l,g=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,h=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},p=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[g,h,l,s,b,R,v,a]}}Ph.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Vee._registerNode)(hn);jee.Factory.addGetterSetter(hn,"data");Object.defineProperty(H2,"__esModule",{value:!0});H2.Arrow=void 0;const $2=Et,Bee=dm,iz=ht,Uee=Tt,dE=Ph;class Rd extends Bee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],_=dE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=dE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/_),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,w=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,w/2),t.lineTo(-a,-w/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,w/2),t.lineTo(-a,-w/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}H2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Uee._registerNode)(Rd);$2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,iz.getNumberValidator)());$2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,iz.getNumberValidator)());$2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);$2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var G2={};Object.defineProperty(G2,"__esModule",{value:!0});G2.Circle=void 0;const Hee=Et,Wee=_n,$ee=ht,Gee=Tt;let Th=class extends Wee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};G2.Circle=Th;Th.prototype._centroid=!0;Th.prototype.className="Circle";Th.prototype._attrsAffectingSize=["radius"];(0,Gee._registerNode)(Th);Hee.Factory.addGetterSetter(Th,"radius",0,(0,$ee.getNumberValidator)());var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.Ellipse=void 0;const DT=Et,Kee=_n,az=ht,qee=Tt;class Gu extends Kee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}K2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,qee._registerNode)(Gu);DT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);DT.Factory.addGetterSetter(Gu,"radiusX",0,(0,az.getNumberValidator)());DT.Factory.addGetterSetter(Gu,"radiusY",0,(0,az.getNumberValidator)());var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Image=void 0;const Dx=Lr,Nd=Et,Yee=_n,Xee=Tt,fm=ht;let xl=class lz extends Yee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?Dx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?Dx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=Dx.Util.createImageElement();o.onload=function(){const i=new lz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};q2.Image=xl;xl.prototype.className="Image";(0,Xee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,fm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,fm.getNumberValidator)());var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.Tag=Jp.Label=void 0;const Y2=Et,Qee=_n,Zee=Sh,FT=ht,sz=Tt,uz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],Jee="Change.konva",ete="none",f4="up",p4="right",h4="down",g4="left",tte=uz.length;class jT extends Zee.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Q2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,ste._registerNode)(Id);cz.Factory.addGetterSetter(Id,"radius",0,(0,dz.getNumberValidator)());cz.Factory.addGetterSetter(Id,"sides",0,(0,dz.getNumberValidator)());var Z2={};Object.defineProperty(Z2,"__esModule",{value:!0});Z2.Ring=void 0;const fz=Et,ute=_n,pz=ht,cte=Tt,fE=Math.PI*2;class Ld extends ute.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,fE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),fE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}Z2.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,cte._registerNode)(Ld);fz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,pz.getNumberValidator)());fz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,pz.getNumberValidator)());var J2={};Object.defineProperty(J2,"__esModule",{value:!0});J2.Sprite=void 0;const Dd=Et,dte=_n,fte=Ch,hz=ht,pte=Tt;class Sl extends dte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new fte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],w=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),w)if(a){const S=a[r],_=n*2;t.drawImage(w,l,s,d,v,S[_+0],S[_+1],d,v)}else t.drawImage(w,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",yte="center",gz="inherit",X0="justify",bte="Change.konva",wte="2d",pE="-",vz="left",_te="text",xte="Text",Ste="top",Cte="bottom",hE="middle",mz="normal",Pte="px ",nb=" ",Tte="right",gE="rtl",Ote="word",kte="char",vE="none",jx="…",yz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Ete=yz.length;function Mte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ob;function zx(){return ob||(ob=v4.Util.createCanvasElement().getContext(wte),ob)}function Rte(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Nte(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Ate(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends vte.Shape{constructor(t){super(Ate(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(h+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=v4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(_te,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return v4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,w,S;let _=zx(),P=this.fontSize(),y;_.save(),_.font=this._getContextFont(),y=_.measureText(t),_.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(w=y.hangingBaseline)!==null&&w!==void 0?w:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+nb+this.fontVariant()+nb+(this.fontSize()+Pte)+Mte(this.fontFamily())}_addTextLine(t){this.align()===X0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return zx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` -`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,w=a-d*2,S=0,_=this.wrap(),P=_!==vE,y=_!==kte&&P,C=this.ellipsis();this.textArr=[],zx().font=this._getContextFont();const g=C?this._getTextWidth(jx):0;for(let h=0,c=t.length;hv)for(;p.length>0;){let b=0,T=Bc(p).length,k="",R=0;for(;b>>1,A=Bc(p),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+g;V<=v?(b=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(p),V=Bc(k),B=F[V.length],H=B===nb||B===pE;let Y;if(H&&R<=v)Y=V.length;else{const re=V.lastIndexOf(nb),Q=V.lastIndexOf(pE);Y=Math.max(re,Q)+1}Y>0&&(b=Y,k=F.slice(0,b).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(p=Bc(p).slice(b).join("").trimLeft(),p.length>0&&(m=this._getTextWidth(p),m<=v)){this._addTextLine(p),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(p),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&hw)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==vE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+jx)r?null:Q0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Q0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Sz}`).join(" "),bE="nodesRect",Bte=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Ute={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Hte="ontouchstart"in Pa.Konva._global;function Wte(e,t,r){if(e==="rotater")return r;t+=tr.Util.degToRad(Ute[e]||0);const n=(tr.Util.radToDeg(t)%360+360)%360;return tr.Util._inRange(n,315+22.5,360)||tr.Util._inRange(n,0,22.5)?"ns-resize":tr.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":tr.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":tr.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":tr.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":tr.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":tr.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":tr.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(tr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const _w=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function $te(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Cz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function Gte(e,t){const r=$te(e);return Cz(e,t,r)}function Kte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(tr.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Bte.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(bE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(bE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Cz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),w=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();w.forEach(function(_){const P=S.point(_);r.push(P)})});const n=new tr.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),_w.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new jte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Hte?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=Wte(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new Fte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*tr.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},m4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let b=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(b-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+b,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=Kte(this.rotationSnaps(),k,R)-m.rotation,F=Gte(m,A);this._fitNodesInto(F,t);return}const w=this.shiftBehavior();let S;w==="inverted"?S=this.keepRatio()&&!t.shiftKey:w==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var g=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var _=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(_.x-i.x(),2)+Math.pow(_.y-i.y(),2));var P=this.findOne(".top-left").x()>_.x?-1:1,y=this.findOne(".top-left").y()>_.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(_.x-r),this.findOne(".top-left").y(_.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var _=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-_.x,2)+Math.pow(_.y-i.y(),2));var P=this.findOne(".top-right").x()<_.x?-1:1,y=this.findOne(".top-right").y()>_.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(_.x+r),this.findOne(".top-right").y(_.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var _=g?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(_.x-i.x(),2)+Math.pow(i.y()-_.y,2));var P=_.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(tr.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tr.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new tr.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:tr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new tr.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new tr.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const w=s.multiply(l.invert());this._nodes.forEach(S=>{var _;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new tr.Transform;C.multiply(P.copy().invert()).multiply(w).multiply(P).multiply(y);const g=C.decompose();S.setAttrs(g),(_=S.getLayer())===null||_===void 0||_.batchDraw()}),this.rotation(tr.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(tr.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(w=>{w.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*tr.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(w=>{v(w)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),yE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return mE.Node.prototype.toObject.call(this)}clone(t){return mE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}r5.Transformer=Bt;Bt.isTransforming=()=>m4>0;function qte(e){return e instanceof Array||tr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){_w.indexOf(t)===-1&&tr.Util.warn("Unknown anchor name: "+t+". Available names are: "+_w.join(", "))}),e||[]}Bt.prototype.className="Transformer";(0,zte._registerNode)(Bt);qt.Factory.addGetterSetter(Bt,"enabledAnchors",_w,qte);qt.Factory.addGetterSetter(Bt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());qt.Factory.addGetterSetter(Bt,"resizeEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorSize",10,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateEnabled",!0);qt.Factory.addGetterSetter(Bt,"rotateLineVisible",!0);qt.Factory.addGetterSetter(Bt,"rotationSnaps",[]);qt.Factory.addGetterSetter(Bt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateAnchorCursor","crosshair");qt.Factory.addGetterSetter(Bt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"anchorFill","white");qt.Factory.addGetterSetter(Bt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderDash");qt.Factory.addGetterSetter(Bt,"keepRatio",!0);qt.Factory.addGetterSetter(Bt,"shiftBehavior","default");qt.Factory.addGetterSetter(Bt,"centeredScaling",!1);qt.Factory.addGetterSetter(Bt,"ignoreStroke",!1);qt.Factory.addGetterSetter(Bt,"padding",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"nodes");qt.Factory.addGetterSetter(Bt,"node");qt.Factory.addGetterSetter(Bt,"boundBoxFunc");qt.Factory.addGetterSetter(Bt,"anchorDragBoundFunc");qt.Factory.addGetterSetter(Bt,"anchorStyleFunc");qt.Factory.addGetterSetter(Bt,"shouldOverdrawWholeArea",!1);qt.Factory.addGetterSetter(Bt,"useSingleNodeRotation",!0);qt.Factory.backCompat(Bt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var n5={};Object.defineProperty(n5,"__esModule",{value:!0});n5.Wedge=void 0;const o5=Et,Yte=_n,Xte=Tt,Pz=ht,Qte=Tt;class Cs extends Yte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Xte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}n5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Qte._registerNode)(Cs);o5.Factory.addGetterSetter(Cs,"radius",0,(0,Pz.getNumberValidator)());o5.Factory.addGetterSetter(Cs,"angle",0,(0,Pz.getNumberValidator)());o5.Factory.addGetterSetter(Cs,"clockwise",!1);o5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var i5={};Object.defineProperty(i5,"__esModule",{value:!0});i5.Blur=void 0;const wE=Et,Zte=Cr,Jte=ht;function _E(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const ere=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],tre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function rre(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,w,S,_,P,y,C,g,h,c,p,m,b,T,k,R,E,A,F;const V=t+t+1,B=n-1,H=o-1,Y=t+1,re=Y*(Y+1)/2,Q=new _E,W=ere[t],X=tre[t];let te=null,ne=Q,se=null,ve=null;for(l=1;l>X,A!==0?(A=255/A,r[v]=(S*W>>X)*A,r[v+1]=(_*W>>X)*A,r[v+2]=(P*W>>X)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,_-=g,P-=h,y-=c,C-=se.r,g-=se.g,h-=se.b,c-=se.a,s=w+((s=i+t+1)>X,A>0?(A=255/A,r[s]=(S*W>>X)*A,r[s+1]=(_*W>>X)*A,r[s+2]=(P*W>>X)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,_-=g,P-=h,y-=c,C-=se.r,g-=se.g,h-=se.b,c-=se.a,s=i+((s=a+Y)0&&rre(t,r)};i5.Blur=nre;wE.Factory.addGetterSetter(Zte.Node,"blurRadius",0,(0,Jte.getNumberValidator)(),wE.Factory.afterSetFilter);var a5={};Object.defineProperty(a5,"__esModule",{value:!0});a5.Brighten=void 0;const xE=Et,ore=Cr,ire=ht,are=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};l5.Contrast=ure;SE.Factory.addGetterSetter(lre.Node,"contrast",0,(0,sre.getNumberValidator)(),SE.Factory.afterSetFilter);var s5={};Object.defineProperty(s5,"__esModule",{value:!0});s5.Emboss=void 0;const Lu=Et,u5=Cr,cre=Lr,Tz=ht,dre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,w=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:cre.Util.error("Unknown emboss direction: "+n)}do{const S=(w-1)*s;let _=d;w+_<1&&(_=0),w+_>l&&(_=0);const P=(w-1+_)*a*4;let y=a;do{const C=S+(y-1)*4;let g=v;y+g<1&&(g=0),y+g>a&&(g=0);const h=P+(y-1+g)*4,c=i[C]-i[h],p=i[C+1]-i[h+1],m=i[C+2]-i[h+2];let b=c;const T=b>0?b:-b,k=p>0?p:-p,R=m>0?m:-m;if(k>T&&(b=p),R>T&&(b=m),b*=t,o){const E=i[C]+b,A=i[C+1]+b,F=i[C+2]+b;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-b;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--w)};s5.Emboss=dre;Lu.Factory.addGetterSetter(u5.Node,"embossStrength",.5,(0,Tz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossWhiteLevel",.5,(0,Tz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(u5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var c5={};Object.defineProperty(c5,"__esModule",{value:!0});c5.Enhance=void 0;const CE=Et,fre=Cr,pre=ht;function Ux(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const hre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,w;const S=this.enhance();if(S===0)return;for(let b=0;bo&&(o=i),s=t[b+1],sl&&(l=s),w=t[b+2],wv&&(v=w);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let _,P,y,C,g,h,c,p,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),g=l+S*(255-l),h=a-S*(a-0),p=v+S*(255-v),m=d-S*(d-0)):(_=(o+n)*.5,P=o+S*(o-_),y=n+S*(n-_),C=(l+a)*.5,g=l+S*(l-C),h=a+S*(a-C),c=(v+d)*.5,p=v+S*(v-c),m=d+S*(d-c));for(let b=0;bd?S:d;const _=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const _=a,P=i,y=0;let C,g;for(v=0;vt&&(p=c,m=0,b=-1),o=0;o=0&&_=0&&P=0&&_=0&&P=1020?255:0}return a}function Ere(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&_=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=p[a+0],s+=p[a+1],d+=p[a+2],v+=p[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=_;o=r))for(i=y;i=n||(a=(r*i+o)*4,p[a+0]=l,p[a+1]=s,p[a+2]=d,p[a+3]=v)}};y5.Pixelate=Fre;kE.Factory.addGetterSetter(Lre.Node,"pixelSize",8,(0,Dre.getNumberValidator)(),kE.Factory.afterSetFilter);var b5={};Object.defineProperty(b5,"__esModule",{value:!0});b5.Posterize=void 0;const EE=Et,jre=Cr,zre=ht,Vre=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Sw.Factory.addGetterSetter($T.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Sw.Factory.addGetterSetter($T.Node,"blue",0,Bre.RGBComponent,Sw.Factory.afterSetFilter);var _5={};Object.defineProperty(_5,"__esModule",{value:!0});_5.RGBA=void 0;const Mv=Et,x5=Cr,Hre=ht,Wre=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(x5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(x5.Node,"blue",0,Hre.RGBComponent,Mv.Factory.afterSetFilter);Mv.Factory.addGetterSetter(x5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var S5={};Object.defineProperty(S5,"__esModule",{value:!0});S5.Sepia=void 0;const $re=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),w>127&&(w=255-w),t[s]=d,t[s+1]=v,t[s+2]=w}while(--l)}while(--i)};C5.Solarize=Gre;var P5={};Object.defineProperty(P5,"__esModule",{value:!0});P5.Threshold=void 0;const ME=Et,Kre=Cr,qre=ht,Yre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;ole||L[K]!==j[le]){var me=` -`+L[K].replace(" at new "," at ");return u.displayName&&me.includes("")&&(me=me.replace("",u.displayName)),me}while(1<=K&&0<=le);break}}}finally{jn=!1,Error.prepareStackTrace=O}return(u=u?u.displayName||u.name:"")?Fr(u):""}var ji=Object.prototype.hasOwnProperty,zn=[],un=-1;function Zr(u){return{current:u}}function At(u){0>un||(u.current=zn[un],zn[un]=null,un--)}function He(u,f){un++,zn[un]=u.current,u.current=f}var It={},at=Zr(It),rt=Zr(!1),St=It;function cn(u,f){var O=u.type.contextTypes;if(!O)return It;var N=u.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===f)return N.__reactInternalMemoizedMaskedChildContext;var L={},j;for(j in O)L[j]=f[j];return N&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=f,u.__reactInternalMemoizedMaskedChildContext=L),L}function wr(u){return u=u.childContextTypes,u!=null}function wo(){At(rt),At(at)}function qa(u,f,O){if(at.current!==It)throw Error(a(168));He(at,f),He(rt,O)}function Qu(u,f,O){var N=u.stateNode;if(f=f.childContextTypes,typeof N.getChildContext!="function")return O;N=N.getChildContext();for(var L in N)if(!(L in f))throw Error(a(108,k(u)||"Unknown",L));return i({},O,N)}function jd(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||It,St=at.current,He(at,u),He(rt,rt.current),!0}function gm(u,f,O){var N=u.stateNode;if(!N)throw Error(a(169));O?(u=Qu(u,f,St),N.__reactInternalMemoizedMergedChildContext=u,At(rt),At(at),He(at,u)):At(rt),He(rt,O)}var oi=Math.clz32?Math.clz32:Tl,U5=Math.log,vm=Math.LN2;function Tl(u){return u>>>=0,u===0?32:31-(U5(u)/vm|0)|0}var Ol=64,Zu=4194304;function ks(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Ju(u,f){var O=u.pendingLanes;if(O===0)return 0;var N=0,L=u.suspendedLanes,j=u.pingedLanes,K=O&268435455;if(K!==0){var le=K&~L;le!==0?N=ks(le):(j&=K,j!==0&&(N=ks(j)))}else K=O&~L,K!==0?N=ks(K):j!==0&&(N=ks(j));if(N===0)return 0;if(f!==0&&f!==N&&(f&L)===0&&(L=N&-N,j=f&-f,L>=j||L===16&&(j&4194240)!==0))return f;if((N&4)!==0&&(N|=O&16),f=u.entangledLanes,f!==0)for(u=u.entanglements,f&=N;0O;O++)f.push(u);return f}function Ya(u,f,O){u.pendingLanes|=f,f!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,f=31-oi(f),u[f]=O}function H5(u,f){var O=u.pendingLanes&~f;u.pendingLanes=f,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=f,u.mutableReadLanes&=f,u.entangledLanes&=f,f=u.entanglements;var N=u.eventTimes;for(u=u.expirationTimes;0>=K,L-=K,Vi=1<<32-oi(f)+L|O<vt?(ft=ct,ct=null):ft=ct.sibling;var Ne=Ae(_e,ct,Pe[vt],Be);if(Ne===null){ct===null&&(ct=ft);break}u&&ct&&Ne.alternate===null&&f(_e,ct),he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne,ct=ft}if(vt===Pe.length)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;vtvt?(ft=ct,ct=null):ft=ct.sibling;var nt=Ae(_e,ct,Ne.value,Be);if(nt===null){ct===null&&(ct=ft);break}u&&ct&&nt.alternate===null&&f(_e,ct),he=j(nt,he,vt),yt===null?tt=nt:yt.sibling=nt,yt=nt,ct=ft}if(Ne.done)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;!Ne.done;vt++,Ne=Pe.next())Ne=Ve(_e,Ne.value,Be),Ne!==null&&(he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return ar&&Ml(_e,vt),tt}for(ct=N(_e,ct);!Ne.done;vt++,Ne=Pe.next())Ne=Rt(ct,_e,vt,Ne.value,Be),Ne!==null&&(u&&Ne.alternate!==null&&ct.delete(Ne.key===null?vt:Ne.key),he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return u&&ct.forEach(function(Un){return f(_e,Un)}),ar&&Ml(_e,vt),tt}function On(_e,he,Pe,Be){if(typeof Pe=="object"&&Pe!==null&&Pe.type===v&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case s:e:{for(var tt=Pe.key,yt=he;yt!==null;){if(yt.key===tt){if(tt=Pe.type,tt===v){if(yt.tag===7){O(_e,yt.sibling),he=L(yt,Pe.props.children),he.return=_e,_e=he;break e}}else if(yt.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===c&&So(tt)===yt.type){O(_e,yt.sibling),he=L(yt,Pe.props),he.ref=lc(_e,yt,Pe),he.return=_e,_e=he;break e}O(_e,yt);break}else f(_e,yt);yt=yt.sibling}Pe.type===v?(he=I(Pe.props.children,_e.mode,Be,Pe.key),he.return=_e,_e=he):(Be=M(Pe.type,Pe.key,Pe.props,null,_e.mode,Be),Be.ref=lc(_e,he,Pe),Be.return=_e,_e=Be)}return K(_e);case d:e:{for(yt=Pe.key;he!==null;){if(he.key===yt)if(he.tag===4&&he.stateNode.containerInfo===Pe.containerInfo&&he.stateNode.implementation===Pe.implementation){O(_e,he.sibling),he=L(he,Pe.children||[]),he.return=_e,_e=he;break e}else{O(_e,he);break}else f(_e,he);he=he.sibling}he=$(Pe,_e.mode,Be),he.return=_e,_e=he}return K(_e);case c:return yt=Pe._init,On(_e,he,yt(Pe._payload),Be)}if(H(Pe))return wt(_e,he,Pe,Be);if(b(Pe))return er(_e,he,Pe,Be);sc(_e,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,he!==null&&he.tag===6?(O(_e,he.sibling),he=L(he,Pe),he.return=_e,_e=he):(O(_e,he),he=z(Pe,_e.mode,Be),he.return=_e,_e=he),K(_e)):O(_e,he)}return On}var Ns=Lh(!0),Dh=Lh(!1),Xa=Zr(null),Xd=null,As=null,Fh=null;function uc(){Fh=As=Xd=null}function Qd(u,f,O){Se?(He(Xa,f._currentValue),f._currentValue=O):(He(Xa,f._currentValue2),f._currentValue2=O)}function jh(u){var f=Xa.current;At(Xa),Se?u._currentValue=f:u._currentValue2=f}function cc(u,f,O){for(;u!==null;){var N=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,N!==null&&(N.childLanes|=f)):N!==null&&(N.childLanes&f)!==f&&(N.childLanes|=f),u===O)break;u=u.return}}function Is(u,f){Xd=u,Fh=As=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&f)!==0&&(eo=!0),u.firstContext=null)}function Co(u){var f=Se?u._currentValue:u._currentValue2;if(Fh!==u)if(u={context:u,memoizedValue:f,next:null},As===null){if(Xd===null)throw Error(a(308));As=u,Xd.dependencies={lanes:0,firstContext:u}}else As=As.next=u;return f}var Bi=null;function dc(u){Bi===null?Bi=[u]:Bi.push(u)}function zh(u,f,O,N){var L=f.interleaved;return L===null?(O.next=O,dc(f)):(O.next=L.next,L.next=O),f.interleaved=O,Ui(u,N)}function Ui(u,f){u.lanes|=f;var O=u.alternate;for(O!==null&&(O.lanes|=f),O=u,u=u.return;u!==null;)u.childLanes|=f,O=u.alternate,O!==null&&(O.childLanes|=f),O=u,u=u.return;return O.tag===3?O.stateNode:null}var Qa=!1;function Vh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ci(u,f){return{eventTime:u,lane:f,tag:0,payload:null,callback:null,next:null}}function Za(u,f,O){var N=u.updateQueue;if(N===null)return null;if(N=N.shared,(Ct&2)!==0){var L=N.pending;return L===null?f.next=f:(f.next=L.next,L.next=f),N.pending=f,Ui(u,O)}return L=N.interleaved,L===null?(f.next=f,dc(N)):(f.next=L.next,L.next=f),N.interleaved=f,Ui(u,O)}function Zd(u,f,O){if(f=f.updateQueue,f!==null&&(f=f.shared,(O&4194240)!==0)){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}function Cm(u,f){var O=u.updateQueue,N=u.alternate;if(N!==null&&(N=N.updateQueue,O===N)){var L=null,j=null;if(O=O.firstBaseUpdate,O!==null){do{var K={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};j===null?L=j=K:j=j.next=K,O=O.next}while(O!==null);j===null?L=j=f:j=j.next=f}else L=j=f;O={baseState:N.baseState,firstBaseUpdate:L,lastBaseUpdate:j,shared:N.shared,effects:N.effects},u.updateQueue=O;return}u=O.lastBaseUpdate,u===null?O.firstBaseUpdate=f:u.next=f,O.lastBaseUpdate=f}function Jd(u,f,O,N){var L=u.updateQueue;Qa=!1;var j=L.firstBaseUpdate,K=L.lastBaseUpdate,le=L.shared.pending;if(le!==null){L.shared.pending=null;var me=le,Te=me.next;me.next=null,K===null?j=Te:K.next=Te,K=me;var Ee=u.alternate;Ee!==null&&(Ee=Ee.updateQueue,le=Ee.lastBaseUpdate,le!==K&&(le===null?Ee.firstBaseUpdate=Te:le.next=Te,Ee.lastBaseUpdate=me))}if(j!==null){var Ve=L.baseState;K=0,Ee=Te=me=null,le=j;do{var Ae=le.lane,Rt=le.eventTime;if((N&Ae)===Ae){Ee!==null&&(Ee=Ee.next={eventTime:Rt,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var wt=u,er=le;switch(Ae=f,Rt=O,er.tag){case 1:if(wt=er.payload,typeof wt=="function"){Ve=wt.call(Rt,Ve,Ae);break e}Ve=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=er.payload,Ae=typeof wt=="function"?wt.call(Rt,Ve,Ae):wt,Ae==null)break e;Ve=i({},Ve,Ae);break e;case 2:Qa=!0}}le.callback!==null&&le.lane!==0&&(u.flags|=64,Ae=L.effects,Ae===null?L.effects=[le]:Ae.push(le))}else Rt={eventTime:Rt,lane:Ae,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Ee===null?(Te=Ee=Rt,me=Ve):Ee=Ee.next=Rt,K|=Ae;if(le=le.next,le===null){if(le=L.shared.pending,le===null)break;Ae=le,le=Ae.next,Ae.next=null,L.lastBaseUpdate=Ae,L.shared.pending=null}}while(!0);if(Ee===null&&(me=Ve),L.baseState=me,L.firstBaseUpdate=Te,L.lastBaseUpdate=Ee,f=L.shared.interleaved,f!==null){L=f;do K|=L.lane,L=L.next;while(L!==f)}else j===null&&(L.shared.lanes=0);jl|=K,u.lanes=K,u.memoizedState=Ve}}function Pm(u,f,O){if(u=f.effects,f.effects=null,u!==null)for(f=0;fO?O:4,u(!0);var N=of.transition;of.transition={};try{u(!1),f()}finally{Vt=O,of.transition=N}}function mc(){return To().memoizedState}function Z5(u,f,O){var N=nl(u);if(O={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null},Am(u))Yh(f,O);else if(O=zh(u,f,O,N),O!==null){var L=pn();Uo(O,u,N,L),yc(O,f,N)}}function J5(u,f,O){var N=nl(u),L={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null};if(Am(u))Yh(f,L);else{var j=u.alternate;if(u.lanes===0&&(j===null||j.lanes===0)&&(j=f.lastRenderedReducer,j!==null))try{var K=f.lastRenderedState,le=j(K,O);if(L.hasEagerState=!0,L.eagerState=le,jo(le,K)){var me=f.interleaved;me===null?(L.next=L,dc(f)):(L.next=me.next,me.next=L),f.interleaved=L;return}}catch{}finally{}O=zh(u,f,L,N),O!==null&&(L=pn(),Uo(O,u,N,L),yc(O,f,N))}}function Am(u){var f=u.alternate;return u===lr||f!==null&&f===lr}function Yh(u,f){pc=fc=!0;var O=u.pending;O===null?f.next=f:(f.next=O.next,O.next=f),u.pending=f}function yc(u,f,O){if((O&4194240)!==0){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}var sf={readContext:Co,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},e_={readContext:Co,useCallback:function(u,f){return fi().memoizedState=[u,f===void 0?null:f],u},useContext:Co,useEffect:$h,useImperativeHandle:function(u,f,O){return O=O!=null?O.concat([u]):null,vc(4194308,4,Em.bind(null,f,u),O)},useLayoutEffect:function(u,f){return vc(4194308,4,u,f)},useInsertionEffect:function(u,f){return vc(4,2,u,f)},useMemo:function(u,f){var O=fi();return f=f===void 0?null:f,u=u(),O.memoizedState=[u,f],u},useReducer:function(u,f,O){var N=fi();return f=O!==void 0?O(f):f,N.memoizedState=N.baseState=f,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:f},N.queue=u,u=u.dispatch=Z5.bind(null,lr,u),[N.memoizedState,u]},useRef:function(u){var f=fi();return u={current:u},f.memoizedState=u},useState:ma,useDebugValue:tl,useDeferredValue:function(u){return fi().memoizedState=u},useTransition:function(){var u=ma(!1),f=u[0];return u=Q5.bind(null,u[1]),fi().memoizedState=u,[f,u]},useMutableSource:function(){},useSyncExternalStore:function(u,f,O){var N=lr,L=fi();if(ar){if(O===void 0)throw Error(a(407));O=O()}else{if(O=f(),Kr===null)throw Error(a(349));(Al&30)!==0||Hh(N,f,O)}L.memoizedState=O;var j={value:O,getSnapshot:f};return L.queue=j,$h(km.bind(null,N,j,u),[u]),N.flags|=2048,Fs(9,Om.bind(null,N,j,O,f),void 0,null),O},useId:function(){var u=fi(),f=Kr.identifierPrefix;if(ar){var O=va,N=Vi;O=(N&~(1<<32-oi(N)-1)).toString(32)+O,f=":"+f+"R"+O,O=Ls++,0y0&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304)}else{if(!N)if(u=Po(j),u!==null){if(f.flags|=128,N=!0,u=u.updateQueue,u!==null&&(f.updateQueue=u,f.flags|=4),Vs(L,!0),L.tail===null&&L.tailMode==="hidden"&&!j.alternate&&!ar)return Tn(f),null}else 2*Jr()-L.renderingStartTime>y0&&O!==1073741824&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304);L.isBackwards?(j.sibling=f.child,f.child=j):(u=L.last,u!==null?u.sibling=j:f.child=j,L.last=j)}return L.tail!==null?(f=L.tail,L.rendering=f,L.tail=f.sibling,L.renderingStartTime=Jr(),f.sibling=null,u=fr.current,He(fr,N?u&1|2:u&1),f):(Tn(f),null);case 22:case 23:return x0(),O=f.memoizedState!==null,u!==null&&u.memoizedState!==null!==O&&(f.flags|=8192),O&&(f.mode&1)!==0?(to&1073741824)!==0&&(Tn(f),Ce&&f.subtreeFlags&6&&(f.flags|=8192)):Tn(f),null;case 24:return null;case 25:return null}throw Error(a(156,f.tag))}function n_(u,f){switch(nc(f),f.tag){case 1:return wr(f.type)&&wo(),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return Ja(),At(rt),At(at),nf(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 5:return tf(f),null;case 13:if(At(fr),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(a(340));Rs()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return At(fr),null;case 4:return Ja(),null;case 10:return jh(f.type._context),null;case 22:case 23:return x0(),null;case 24:return null;default:return null}}var yf=!1,dn=!1,qm=typeof WeakSet=="function"?WeakSet:Set,We=null;function Dl(u,f){var O=u.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(N){sr(u,f,N)}else O.current=null}function l0(u,f,O){try{O()}catch(N){sr(u,f,N)}}var Ym=!1;function Xm(u,f){for(W(u.containerInfo),We=f;We!==null;)if(u=We,f=u.child,(u.subtreeFlags&1028)!==0&&f!==null)f.return=u,We=f;else for(;We!==null;){u=We;try{var O=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var N=O.memoizedProps,L=O.memoizedState,j=u.stateNode,K=j.getSnapshotBeforeUpdate(u.elementType===u.type?N:hi(u.type,N),L);j.__reactInternalSnapshotBeforeUpdate=K}break;case 3:Ce&&Li(u.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(le){sr(u,u.return,le)}if(f=u.sibling,f!==null){f.return=u.return,We=f;break}We=u.return}return O=Ym,Ym=!1,O}function Tc(u,f,O){var N=f.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var L=N=N.next;do{if((L.tag&u)===u){var j=L.destroy;L.destroy=void 0,j!==void 0&&l0(f,O,j)}L=L.next}while(L!==N)}}function Oc(u,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var O=f=f.next;do{if((O.tag&u)===u){var N=O.create;O.destroy=N()}O=O.next}while(O!==f)}}function bf(u){var f=u.ref;if(f!==null){var O=u.stateNode;switch(u.tag){case 5:u=Y(O);break;default:u=O}typeof f=="function"?f(u):f.current=u}}function s0(u){var f=u.alternate;f!==null&&(u.alternate=null,s0(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&ze(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function Qm(u){return u.tag===5||u.tag===3||u.tag===4}function Zm(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Qm(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function u0(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?yo(O,u,f):Qn(O,u);else if(N!==4&&(u=u.child,u!==null))for(u0(u,f,O),u=u.sibling;u!==null;)u0(u,f,O),u=u.sibling}function wf(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?Yt(O,u,f):ln(O,u);else if(N!==4&&(u=u.child,u!==null))for(wf(u,f,O),u=u.sibling;u!==null;)wf(u,f,O),u=u.sibling}var fn=null,gi=!1;function $i(u,f,O){for(O=O.child;O!==null;)c0(u,f,O),O=O.sibling}function c0(u,f,O){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(ii,O)}catch{}switch(O.tag){case 5:dn||Dl(O,f);case 6:if(Ce){var N=fn,L=gi;fn=null,$i(u,f,O),fn=N,gi=L,fn!==null&&(gi?Cl(fn,O.stateNode):Qr(fn,O.stateNode))}else $i(u,f,O);break;case 18:Ce&&fn!==null&&(gi?Ut(fn,O.stateNode):Nt(fn,O.stateNode));break;case 4:Ce?(N=fn,L=gi,fn=O.stateNode.containerInfo,gi=!0,$i(u,f,O),fn=N,gi=L):(Me&&(N=O.stateNode.containerInfo,L=$r(N),pa(N,L)),$i(u,f,O));break;case 0:case 11:case 14:case 15:if(!dn&&(N=O.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){L=N=N.next;do{var j=L,K=j.destroy;j=j.tag,K!==void 0&&((j&2)!==0||(j&4)!==0)&&l0(O,f,K),L=L.next}while(L!==N)}$i(u,f,O);break;case 1:if(!dn&&(Dl(O,f),N=O.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=O.memoizedProps,N.state=O.memoizedState,N.componentWillUnmount()}catch(le){sr(O,f,le)}$i(u,f,O);break;case 21:$i(u,f,O);break;case 22:O.mode&1?(dn=(N=dn)||O.memoizedState!==null,$i(u,f,O),dn=N):$i(u,f,O);break;default:$i(u,f,O)}}function Jm(u){var f=u.updateQueue;if(f!==null){u.updateQueue=null;var O=u.stateNode;O===null&&(O=u.stateNode=new qm),f.forEach(function(N){var L=c_.bind(null,u,N);O.has(N)||(O.add(N),N.then(L,L))})}}function vi(u,f){var O=f.deletions;if(O!==null)for(var N=0;N";case _f:return":has("+(xf(u)||"")+")";case Gi:return'[role="'+u.value+'"]';case Ec:return'"'+u.value+'"';case Bs:return'[data-testname="'+u.value+'"]';default:throw Error(a(365))}}function Mc(u,f){var O=[];u=[u,0];for(var N=0;NL&&(L=K),N&=~j}if(N=L,N=Jr()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*i_(N/1960))-N,10u?16:u,_a===null)var N=!1;else{if(u=_a,_a=null,Tf=0,(Ct&6)!==0)throw Error(a(331));var L=Ct;for(Ct|=4,We=u.current;We!==null;){var j=We,K=j.child;if((We.flags&16)!==0){var le=j.deletions;if(le!==null){for(var me=0;meJr()-m0?Bl(u,0):v0|=O),ro(u,f)}function sy(u,f){f===0&&((u.mode&1)===0?f=1:(f=Zu,Zu<<=1,(Zu&130023424)===0&&(Zu=4194304)));var O=pn();u=Ui(u,f),u!==null&&(Ya(u,f,O),ro(u,O))}function T0(u){var f=u.memoizedState,O=0;f!==null&&(O=f.retryLane),sy(u,O)}function c_(u,f){var O=0;switch(u.tag){case 13:var N=u.stateNode,L=u.memoizedState;L!==null&&(O=L.retryLane);break;case 19:N=u.stateNode;break;default:throw Error(a(314))}N!==null&&N.delete(f),sy(u,O)}var uy;uy=function(u,f,O){if(u!==null)if(u.memoizedProps!==f.pendingProps||rt.current)eo=!0;else{if((u.lanes&O)===0&&(f.flags&128)===0)return eo=!1,Gm(u,f,O);eo=(u.flags&131072)!==0}else eo=!1,ar&&(f.flags&1048576)!==0&&$d(f,zi,f.index);switch(f.lanes=0,f.tag){case 2:var N=f.type;mf(u,f),u=f.pendingProps;var L=cn(f,at.current);Is(f,O),L=hc(null,f,N,u,L,O);var j=Uh();return f.flags|=1,typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,wr(N)?(j=!0,jd(f)):j=!1,f.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,Vh(f),L.updater=wc,f.stateNode=L,L._reactInternals=f,Xh(f,N,u,O),f=t0(null,f,N,!0,j,O)):(f.tag=0,ar&&j&&rc(f),Pn(null,f,L,O),f=f.child),f;case 16:N=f.elementType;e:{switch(mf(u,f),u=f.pendingProps,L=N._init,N=L(N._payload),f.type=N,L=f.tag=f_(N),u=hi(N,u),L){case 0:f=ff(null,f,N,u,O);break e;case 1:f=Wm(null,f,N,u,O);break e;case 11:f=zm(null,f,N,u,O);break e;case 14:f=Vm(null,f,N,hi(N.type,u),O);break e}throw Error(a(306,N,""))}return f;case 0:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),ff(u,f,N,L,O);case 1:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),Wm(u,f,N,L,O);case 3:e:{if(pf(f),u===null)throw Error(a(387));N=f.pendingProps,j=f.memoizedState,L=j.element,Sm(u,f),Jd(f,N,null,O);var K=f.memoizedState;if(N=K.element,Ie&&j.isDehydrated)if(j={element:N,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},f.updateQueue.baseState=j,f.memoizedState=j,f.flags&256){L=zs(Error(a(423)),f),f=r0(u,f,N,O,L);break e}else if(N!==L){L=zs(Error(a(424)),f),f=r0(u,f,N,O,L);break e}else for(Ie&&(xo=Ue(f.stateNode.containerInfo),_o=f,ar=!0,ui=null,oc=!1),O=Dh(f,null,N,O),f.child=O;O;)O.flags=O.flags&-3|4096,O=O.sibling;else{if(Rs(),N===L){f=Hi(u,f,O);break e}Pn(u,f,N,O)}f=f.child}return f;case 5:return Tm(f),u===null&&Kd(f),N=f.type,L=f.pendingProps,j=u!==null?u.memoizedProps:null,K=L.children,we(N,L)?K=null:j!==null&&we(N,j)&&(f.flags|=32),Hm(u,f),Pn(u,f,K,O),f.child;case 6:return u===null&&Kd(f),null;case 13:return $m(u,f,O);case 4:return ef(f,f.stateNode.containerInfo),N=f.pendingProps,u===null?f.child=Ns(f,null,N,O):Pn(u,f,N,O),f.child;case 11:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),zm(u,f,N,L,O);case 7:return Pn(u,f,f.pendingProps,O),f.child;case 8:return Pn(u,f,f.pendingProps.children,O),f.child;case 12:return Pn(u,f,f.pendingProps.children,O),f.child;case 10:e:{if(N=f.type._context,L=f.pendingProps,j=f.memoizedProps,K=L.value,Qd(f,N,K),j!==null)if(jo(j.value,K)){if(j.children===L.children&&!rt.current){f=Hi(u,f,O);break e}}else for(j=f.child,j!==null&&(j.return=f);j!==null;){var le=j.dependencies;if(le!==null){K=j.child;for(var me=le.firstContext;me!==null;){if(me.context===N){if(j.tag===1){me=ci(-1,O&-O),me.tag=2;var Te=j.updateQueue;if(Te!==null){Te=Te.shared;var Ee=Te.pending;Ee===null?me.next=me:(me.next=Ee.next,Ee.next=me),Te.pending=me}}j.lanes|=O,me=j.alternate,me!==null&&(me.lanes|=O),cc(j.return,O,f),le.lanes|=O;break}me=me.next}}else if(j.tag===10)K=j.type===f.type?null:j.child;else if(j.tag===18){if(K=j.return,K===null)throw Error(a(341));K.lanes|=O,le=K.alternate,le!==null&&(le.lanes|=O),cc(K,O,f),K=j.sibling}else K=j.child;if(K!==null)K.return=j;else for(K=j;K!==null;){if(K===f){K=null;break}if(j=K.sibling,j!==null){j.return=K.return,K=j;break}K=K.return}j=K}Pn(u,f,L.children,O),f=f.child}return f;case 9:return L=f.type,N=f.pendingProps.children,Is(f,O),L=Co(L),N=N(L),f.flags|=1,Pn(u,f,N,O),f.child;case 14:return N=f.type,L=hi(N,f.pendingProps),L=hi(N.type,L),Vm(u,f,N,L,O);case 15:return Bm(u,f,f.type,f.pendingProps,O);case 17:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),mf(u,f),f.tag=1,wr(N)?(u=!0,jd(f)):u=!1,Is(f,O),Dm(f,N,L),Xh(f,N,L,O),t0(null,f,N,!0,u,O);case 19:return i0(u,f,O);case 22:return Um(u,f,O)}throw Error(a(156,f.tag))};function cy(u,f){return ec(u,f)}function d_(u,f,O,N){this.tag=u,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(u,f,O,N){return new d_(u,f,O,N)}function Ef(u){return u=u.prototype,!(!u||!u.isReactComponent)}function f_(u){if(typeof u=="function")return Ef(u)?1:0;if(u!=null){if(u=u.$$typeof,u===y)return 11;if(u===h)return 14}return 2}function x(u,f){var O=u.alternate;return O===null?(O=Oo(u.tag,f,u.key,u.mode),O.elementType=u.elementType,O.type=u.type,O.stateNode=u.stateNode,O.alternate=u,u.alternate=O):(O.pendingProps=f,O.type=u.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=u.flags&14680064,O.childLanes=u.childLanes,O.lanes=u.lanes,O.child=u.child,O.memoizedProps=u.memoizedProps,O.memoizedState=u.memoizedState,O.updateQueue=u.updateQueue,f=u.dependencies,O.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},O.sibling=u.sibling,O.index=u.index,O.ref=u.ref,O}function M(u,f,O,N,L,j){var K=2;if(N=u,typeof u=="function")Ef(u)&&(K=1);else if(typeof u=="string")K=5;else e:switch(u){case v:return I(O.children,L,j,f);case w:K=8,L|=8;break;case S:return u=Oo(12,O,f,L|2),u.elementType=S,u.lanes=j,u;case C:return u=Oo(13,O,f,L),u.elementType=C,u.lanes=j,u;case g:return u=Oo(19,O,f,L),u.elementType=g,u.lanes=j,u;case p:return D(O,L,j,f);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case _:K=10;break e;case P:K=9;break e;case y:K=11;break e;case h:K=14;break e;case c:K=16,N=null;break e}throw Error(a(130,u==null?u:typeof u,""))}return f=Oo(K,O,f,L),f.elementType=u,f.type=N,f.lanes=j,f}function I(u,f,O,N){return u=Oo(7,u,N,f),u.lanes=O,u}function D(u,f,O,N){return u=Oo(22,u,N,f),u.elementType=p,u.lanes=O,u.stateNode={isHidden:!1},u}function z(u,f,O){return u=Oo(6,u,null,f),u.lanes=O,u}function $(u,f,O){return f=Oo(4,u.children!==null?u.children:[],u.key,f),f.lanes=O,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}function G(u,f,O,N,L){this.tag=f,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=N,this.onRecoverableError=L,Ie&&(this.mutableSourceEagerHydrationData=null)}function U(u,f,O,N,L,j,K,le,me){return u=new G(u,f,O,le,me),f===1?(f=1,j===!0&&(f|=8)):f=0,j=Oo(3,null,null,f),u.current=j,j.stateNode=u,j.memoizedState={element:N,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vh(j),u}function Z(u){if(!u)return It;u=u._reactInternals;e:{if(R(u)!==u||u.tag!==1)throw Error(a(170));var f=u;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(wr(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(a(171))}if(u.tag===1){var O=u.type;if(wr(O))return Qu(u,O,f)}return f}function ee(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(a(188)):(u=Object.keys(u).join(","),Error(a(268,u)));return u=F(f),u===null?null:u.stateNode}function ie(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var O=u.retryLane;u.retryLane=O!==0&&O=Te&&j>=Ve&&L<=Ee&&K<=Ae){u.splice(f,1);break}else if(N!==Te||O.width!==me.width||AeK){if(!(j!==Ve||O.height!==me.height||EeL)){Te>N&&(me.width+=Te-N,me.x=N),Eej&&(me.height+=Ve-j,me.y=j),AeO&&(O=K)),K ")+` - -No matching component was found for: - `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return Y(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:fe,findFiberByHostInstance:u.findFiberByHostInstance||ge,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)u=!0;else{try{ii=f.inject(u),ai=f}catch{}u=!!f.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,f,O,N){if(!gt)throw Error(a(363));u=Rc(u,f);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,f){var O=f._getVersion;O=O(f._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[f,O]:u.mutableSourceEagerHydrationData.push(f,O)},r.runWithPriority=function(u,f){var O=Vt;try{return Vt=u,f()}finally{Vt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,f,O,N){var L=f.current,j=pn(),K=nl(L);return O=Z(O),f.context===null?f.context=O:f.pendingContext=O,f=ci(j,K),f.payload={element:u},N=N===void 0?null:N,N!==null&&(f.callback=N),u=Za(L,f,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Ez.exports=Lne;var Dne=Ez.exports;const Fne=nh(Dne);var Mz={exports:{}},Fd={};/** - * @license React - * react-reconciler-constants.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Mz.exports=Fd;var Rz=Mz.exports;const AE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let IE=!1,LE=!1;const GT=".react-konva-event",jne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. -Position of a node will be changed during drag&drop, so you should update state of the react app as well. -Consider to add onDragMove or onDragEnd events. -For more info see: https://github.com/konvajs/react-konva/issues/256 -`,zne=`ReactKonva: You are using "zIndex" attribute for a Konva node. -react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. -For more info see: https://github.com/konvajs/react-konva/issues/194 -`,Vne={};function T5(e,t,r=Vne){if(!IE&&"zIndex"in t&&(console.warn(zne),IE=!0),!LE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(jne),LE=!0)}for(var i in r)if(!AE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,w={},S=!1;const _={};for(var i in t)if(!AE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(_[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,w[i]=t[i])}S&&(e.setAttrs(w),Xu(e));for(var s in _)e.on(s+GT,_[s])}function Xu(e){if(!Tt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Nz={},Bne={};Rv.Node.prototype._applyProps=T5;function Une(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function Hne(e,t,r){let n=Rv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Rv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return T5(s,i),s}function Wne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function $ne(e,t,r){return!1}function Gne(e){return e}function Kne(){return null}function qne(){return null}function Yne(e,t,r,n){return Bne}function Xne(){}function Qne(e){}function Zne(e,t){return!1}function Jne(){return Nz}function eoe(){return Nz}const toe=setTimeout,roe=clearTimeout,noe=-1;function ooe(e,t){return!1}const ioe=!1,aoe=!0,loe=!0;function soe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function uoe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Az(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function coe(e,t,r){Az(e,t,r)}function doe(e,t){t.destroy(),t.off(GT),Xu(e)}function foe(e,t){t.destroy(),t.off(GT),Xu(e)}function poe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function hoe(e,t,r){}function goe(e,t,r,n,o){T5(e,o,n)}function voe(e){e.hide(),Xu(e)}function moe(e){}function yoe(e,t){(t.visible==null||t.visible)&&e.show()}function boe(e,t){}function woe(e){}function _oe(){}const xoe=()=>Rz.DefaultEventPriority,Soe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:soe,appendChildToContainer:uoe,appendInitialChild:Une,cancelTimeout:roe,clearContainer:woe,commitMount:hoe,commitTextUpdate:poe,commitUpdate:goe,createInstance:Hne,createTextInstance:Wne,detachDeletedInstance:_oe,finalizeInitialChildren:$ne,getChildHostContext:eoe,getCurrentEventPriority:xoe,getPublicInstance:Gne,getRootHostContext:Jne,hideInstance:voe,hideTextInstance:moe,idlePriority:fp.unstable_IdlePriority,insertBefore:Az,insertInContainerBefore:coe,isPrimaryRenderer:ioe,noTimeout:noe,now:fp.unstable_now,prepareForCommit:Kne,preparePortalMount:qne,prepareUpdate:Yne,removeChild:doe,removeChildFromContainer:foe,resetAfterCommit:Xne,resetTextContent:Qne,run:fp.unstable_runWithPriority,scheduleTimeout:toe,shouldDeprioritizeSubtree:Zne,shouldSetTextContent:ooe,supportsMutation:loe,unhideInstance:yoe,unhideTextInstance:boe,warnsIfNotActing:aoe},Symbol.toStringTag,{value:"Module"}));var Coe=Object.defineProperty,Poe=Object.defineProperties,Toe=Object.getOwnPropertyDescriptors,DE=Object.getOwnPropertySymbols,Ooe=Object.prototype.hasOwnProperty,koe=Object.prototype.propertyIsEnumerable,FE=(e,t,r)=>t in e?Coe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jE=(e,t)=>{for(var r in t||(t={}))Ooe.call(t,r)&&FE(e,r,t[r]);if(DE)for(var r of DE(t))koe.call(t,r)&&FE(e,r,t[r]);return e},Eoe=(e,t)=>Poe(e,Toe(t)),zE,VE;typeof window<"u"&&((zE=window.document)!=null&&zE.createElement||((VE=window.navigator)==null?void 0:VE.product)==="ReactNative")?q.useLayoutEffect:q.useEffect;function Iz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Iz(n,t,r);if(o)return o;n=n.sibling}}function Lz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const BE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=BE;return}return BE.apply(this,arguments)};const KT=Lz(q.createContext(null));class Dz extends q.Component{render(){return q.createElement(KT.Provider,{value:this._reactInternals},this.props.children)}}function Moe(){const e=q.useContext(KT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=q.useId();return q.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Iz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Roe(){const e=Moe(),[t]=q.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==KT&&!t.has(o)&&t.set(o,q.useContext(Lz(o)))}r=r.return}return t}function Noe(){const e=Roe();return q.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>q.createElement(t,null,q.createElement(r.Provider,Eoe(jE({},n),{value:e.get(r)}))),t=>q.createElement(Dz,jE({},t))),[e])}function Aoe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Ioe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Aoe(e),i=Noe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Rv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=fg.createContainer(r.current,Rz.LegacyRoot,!1,null),fg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Rv.isBrowser&&(a(null),fg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),T5(r.current,e,o),fg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},Hx="Layer",UE="Group",Loe="Rect",Doe="Circle",Foe="Line",joe="Image",HE="Text",fg=Fne(Soe);fg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const zoe=Or.forwardRef((e,t)=>Or.createElement(Dz,{},Or.createElement(Ioe,{...e,forwardedRef:t})));function Voe(e){window.open(e,"_blank","noreferrer")}function w4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Boe(e,t){return t.includes(e)}const Fg="https://roguewar.org",Uoe=2.5,Hoe=1,Woe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{const v=e.isCapital?Uoe:Hoe,w=(s?v*3:v)/t,S=(c,p)=>[...c].sort((m,b)=>b.control-m.control).map(m=>{const b=w4(m.Name,p);return{name:(b==null?void 0:b.prettyName)||m.Name,control:m.control,players:m.ActivePlayers}}),_=c=>`${c.name} ${c.control}% · P${c.players}`,P=e.factions.some(c=>c.ActivePlayers>0),y=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",C=c=>{if(!c)return"None";const m=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([b])=>c[b]).map(([,b])=>b);return m.length?m.join(", "):"None"},g=(c=!1)=>{var E;const p=((E=w4(e.owner,r))==null?void 0:E.prettyName)||"Unknown",m=S(e.factions,r),b=m.slice(0,3),T=Math.max(0,m.length-b.length),k=C(e.state),R=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${p}`,"Control:",...b.map(_),...T>0?[`+${T} more`]:[],`Damage: ${y}`];return k!=="None"&&R.push(`State: ${k}`),c&&R.push("[Tap to open]"),{text:R.join(` -`),controlItems:m}},h=q.useRef(null);return q.useEffect(()=>{if(!n.flashActivePlayes||!P||!h.current)return;const c=h.current,p=d,m=new y4.Animation(b=>{if(!b)return;const T=Math.sin(b.time*.005),k=T*.1+1,R=T*.15+.7;c.scale({x:k,y:k}),c.opacity(p*R)},c.getLayer());return m.start(),()=>{m.stop(),c.opacity(p)}},[P,n,d]),je.jsx(Doe,{ref:h,x:Number(e.posX),y:-Number(e.posY),fill:e.factionColour,radius:w,hitStrokeWidth:3,opacity:d,onClick:c=>{c.cancelBubble=!0,e.sysUrl&&Voe(`${Fg}${e.sysUrl}`)},onMouseEnter:c=>{const p=c.target.getStage();if(!p)return;const m=p.getPointerPosition();if(!m)return;const b=g();o(b.text,m.x,m.y,p.x(),p.y(),void 0,b.controlItems)},onMouseLeave:i,onTouchStart:c=>{if(c.evt.touches.length===1){c.evt.preventDefault();const p=c.target.getStage();if(!p)return;const m=p.getRelativePointerPosition();if(!m)return;if(a.current&&l.current===e.name){window.location.href=`${Fg}${e.sysUrl}`;return}const b=g(!0);o(b.text,m.x,m.y,void 0,void 0,()=>{window.location.href=`${Fg}${e.sysUrl}`},b.controlItems),l.current=e.name}}})},$oe=q.memo(Woe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Goe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fz(e){var t=Goe(e,"string");return vd(t)=="symbol"?t:t+""}function pg(e,t,r){return(t=Fz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(kh,--ri):0,rh--,nn===10&&(rh=1,k5--),nn}function Ti(){return nn=ri2||Av(nn)>3?"":" "}function _ie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return hm(e,Qb()+(t<6&&bl()==32&&Ti()==32))}function C4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&C4(nn);break;case 40:e===41&&C4(e);break;case 92:Ti();break}return ri}function xie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+hm(t,ri-1)+"*"+O5(e===47?e:Ti())}function Sie(e){for(;!Av(bl());)Ti();return hm(e,ri)}function Cie(e){return $z(Jb("",null,null,null,[""],e=Wz(e),0,[0],e))}function Jb(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,w=a,S=0,_=0,P=0,y=1,C=1,g=1,h=0,c="",p=o,m=i,b=n,T=c;C;)switch(P=h,h=Ti()){case 40:if(P!=108&&$n(T,w-1)==58){S4(T+=Kt(Zb(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:T+=Zb(h);break;case 9:case 10:case 13:case 32:T+=wie(P);break;case 92:T+=_ie(Qb()-1,7);continue;case 47:switch(bl()){case 42:case 47:ab(Pie(xie(Ti(),Qb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*g;case 125*y:case 59:case 0:switch(h){case 0:case 125:C=0;case 59+v:g==-1&&(T=Kt(T,/\f/g,"")),_>0&&cl(T)-w&&ab(_>32?KE(T+";",n,r,w-1):KE(Kt(T," ","")+";",n,r,w-2),s);break;case 59:T+=";";default:if(ab(b=GE(T,t,r,d,v,o,l,c,p=[],m=[],w),i),h===123)if(v===0)Jb(T,t,b,b,p,i,w,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:Jb(e,b,b,n&&ab(GE(e,b,b,0,0,o,l,c,o,p=[],w),m),o,m,w,l,n?p:m);break;default:Jb(T,b,b,b,[""],m,0,l,m)}}d=v=_=0,y=g=1,c=T="",w=a;break;case 58:w=1+cl(T),_=P;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&bie()==125)continue}switch(T+=O5(h),h*y){case 38:g=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*g,g=1;break;case 64:bl()===45&&(T+=Zb(Ti())),S=bl(),v=w=cl(c=T+=Sie(Qb())),h++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function GE(e,t,r,n,o,i,a,l,s,d,v){for(var w=o-1,S=o===0?i:[""],_=QT(S),P=0,y=0,C=0;P0?S[g]+" "+h:Kt(h,/&\f/g,S[g])))&&(s[C++]=c);return E5(e,t,r,o===0?YT:l,s,d,v)}function Pie(e,t,r){return E5(e,t,r,Vz,O5(yie()),Nv(e,2,-2),0)}function KE(e,t,r,n){return E5(e,t,r,XT,Nv(e,0,n),Nv(e,n+1,-1),n)}function Ep(e,t){for(var r="",n=QT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Kt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+Pw+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~S4(e,"stretch")?Gz(Kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~S4(e,"!important")&&10))){case 107:return Kt(e,":",":"+Gt)+e;case 101:return Kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+($n(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+so+e+e}return e}var Lie=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case XT:t.return=Gz(t.value,t.length);break;case Bz:return Ep([J0(t,{value:Kt(t.value,"@","@"+Gt)})],o);case YT:if(t.length)return mie(t.props,function(i){switch(vie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ep([J0(t,{props:[Kt(i,/:(read-\w+)/,":"+Pw+"$1")]})],o);case"::placeholder":return Ep([J0(t,{props:[Kt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),J0(t,{props:[Kt(i,/:(plac\w+)/,":"+Pw+"$1")]}),J0(t,{props:[Kt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Die=[Lie],Fie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Die,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),g=1;g=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Xie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qie=/[A-Z]|^ms/g,Zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zz=function(t){return t.charCodeAt(1)===45},YE=function(t){return t!=null&&typeof t!="boolean"},Wx=Eie(function(e){return Zz(e)?e:e.replace(Qie,"-$&").toLowerCase()}),XE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Xie[t]!==1&&!Zz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Iv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return Jie(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Iv(e,t,d)}break}}var v=r;return v}function Jie(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function pae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function V5(){return typeof window<"u"}function tV(e){return nV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rV(e){var t;return(t=(nV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nV(e){return V5()?e instanceof Node||e instanceof ms(e).Node:!1}function hae(e){return V5()?e instanceof Element||e instanceof ms(e).Element:!1}function nO(e){return V5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function ZE(e){return!V5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const gae=new Set(["inline","contents"]);function oV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=oO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!gae.has(o)}function vae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mae=new Set(["html","body","#document"]);function yae(e){return mae.has(tV(e))}function oO(e){return ms(e).getComputedStyle(e)}function bae(e){if(tV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ZE(e)&&e.host||rV(e);return ZE(t)?t.host:t}function iV(e){const t=bae(e);return yae(t)?e.ownerDocument?e.ownerDocument.body:e.body:nO(t)&&oV(t)?t:iV(t)}function kw(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=iV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=T4(a);return t.concat(a,a.visualViewport||[],oV(o)?o:[],l&&r?kw(l):[])}return t.concat(o,kw(o,[],r))}function T4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wae(e){const t=oO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=nO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=Tw(r)!==i||Tw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function iO(e){return hae(e)?e:e.contextElement}function JE(e){const t=iO(e);if(!nO(t))return Ow(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=wae(t);let a=(i?Tw(r.width):r.width)/n,l=(i?Tw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _ae=Ow(0);function xae(e){const t=ms(e);return!vae()||!t.visualViewport?_ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sae(e,t,r){return!1}function e9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=iO(e);let a=Ow(1);t&&(a=JE(e));const l=Sae()?xae(i):Ow(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,w=o.height/a.y;if(i){const S=ms(i),_=n;let P=S,y=T4(P);for(;y&&n&&_!==P;){const C=JE(y),g=y.getBoundingClientRect(),h=oO(y),c=g.left+(y.clientLeft+parseFloat(h.paddingLeft))*C.x,p=g.top+(y.clientTop+parseFloat(h.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,w*=C.y,s+=c,d+=p,P=ms(y),y=T4(P)}}return pae({width:v,height:w,x:s,y:d})}function aV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cae(e,t){let r=null,n;const o=rV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:w,width:S,height:_}=d;if(l||t(),!S||!_)return;const P=lb(w),y=lb(o.clientWidth-(v+S)),C=lb(o.clientHeight-(w+_)),g=lb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-g+"px",threshold:fae(0,dae(1,s))||1};let p=!0;function m(b){const T=b[0].intersectionRatio;if(T!==s){if(!p)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!aV(d,e.getBoundingClientRect())&&a(),p=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Pae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=iO(e),v=o||i?[...d?kw(d):[],...kw(t)]:[];v.forEach(g=>{o&&g.addEventListener("scroll",r,{passive:!0}),i&&g.addEventListener("resize",r)});const w=d&&l?Cae(d,r):null;let S=-1,_=null;a&&(_=new ResizeObserver(g=>{let[h]=g;h&&h.target===d&&_&&(_.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=_)==null||c.observe(t)})),r()}),d&&!s&&_.observe(d),_.observe(t));let P,y=s?e9(e):null;s&&C();function C(){const g=e9(e);y&&!aV(y,g)&&r(),y=g,P=requestAnimationFrame(C)}return r(),()=>{var g;v.forEach(h=>{o&&h.removeEventListener("scroll",r),i&&h.removeEventListener("resize",r)}),w==null||w(),(g=_)==null||g.disconnect(),_=null,s&&cancelAnimationFrame(P)}}var O4=q.useLayoutEffect,Tae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ew=function(){};function Oae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function kae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Eae(e){return B5(e)?window.innerHeight:e.clientHeight}function sV(e){return B5(e)?window.pageYOffset:e.scrollTop}function Mw(e,t){if(B5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Mae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Rae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function sb(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ew,o=sV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Rae(l,o,i,r);Mw(e,d),lr.bottom?Mw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&sb(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&sb(s,E,F);var V=a?T-p:R-p;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,H=a?b:k;return H>=n&&(B=Math.min(H-p-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Mw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(b>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&sb(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&b>=n){var Y=t;return(!a&&k>=n||a&&b>=n)&&(Y=a?b-m:k-m),i&&sb(s,A,F),{placement:"top",maxHeight:Y}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Uae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var cV=function(t){return t==="auto"?"bottom":t},Hae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},pg(n,Uae(o),"100%"),pg(n,"position","absolute"),pg(n,"width","100%"),pg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},dV=q.createContext(null),Wae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=q.useContext(dV)||{},v=d.setPortalPlacement,w=q.useRef(null),S=q.useState(o),_=as(S,2),P=_[0],y=_[1],C=q.useState(null),g=as(C,2),h=g[0],c=g[1],p=s.spacing.controlHeight;return O4(function(){var m=w.current;if(m){var b=a==="fixed",T=l&&!b,k=Bae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:b,controlHeight:p});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,p]),r({ref:w,placerProps:st(st({},t),{},{placement:h||cV(i),maxHeight:P})})},$ae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return it("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Gae=$ae,Kae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},qae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return it("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},fV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Yae=fV,Xae=fV,Qae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,zae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Zae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Vae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},Jae=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},ele=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=q.useRef(null),d=q.useRef(null),v=q.useState(cV(a)),w=as(v,2),S=w[0],_=w[1],P=q.useMemo(function(){return{setPortalPlacement:_}},[]),y=q.useState(null),C=as(y,2),g=C[0],h=C[1],c=q.useCallback(function(){if(o){var T=Nae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(g==null?void 0:g.offset)||T.left!==(g==null?void 0:g.rect.left)||T.width!==(g==null?void 0:g.rect.width))&&h({offset:R,rect:T})}},[o,l,S,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);O4(function(){c()},[c]);var p=q.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Pae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);O4(function(){p()},[p]);var m=q.useCallback(function(T){s.current=T,p()},[p]);if(!r&&l!=="fixed"||!g)return null;var b=it("div",dt({ref:m},Hr(st(st({},t),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(dV.Provider,{value:P},r?qw.createPortal(b,r):b)},tle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},rle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return it("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},nle=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ole=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return it("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ile=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ale=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},o9,lle=["size"],sle=["innerProps","isRtl","size"],ule={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},pV=function(t){var r=t.size,n=Ps(t,lle);return it("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ule},n))},aO=function(t){return it(pV,dt({size:20},t),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},hV=function(t){return it(pV,dt({size:20},t),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},cle=gV,dle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||it(hV,null))},fle=gV,ple=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||it(aO,null))},hle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},gle=function(t){var r=t.innerProps;return it("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},vle=uae(o9||(o9=cae([` - 0%, 80%, 100% { opacity: 0; } - 40% { opacity: 1; } -`]))),mle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},$x=function(t){var r=t.delay,n=t.offset;return it("span",{css:rO({animation:"".concat(vle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yle=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,sle);return it("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),it($x,{delay:0,offset:n}),it($x,{delay:160,offset:!0}),it($x,{delay:320,offset:!n}))},ble=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return it("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},_le=wle,xle=["data"],Sle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Cle=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,w=t.selectProps;return it("div",dt({},Hr(t,"group",{group:!0}),s),it(a,dt({},l,{selectProps:w,theme:v,getStyles:o,getClassNames:i,cx:n}),d),it("div",null,r))},Ple=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Tle=function(t){var r=lV(t);r.data;var n=Ps(r,xle);return it("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},Ole=Cle,kle=["innerRef","isDisabled","isHidden","inputClassName"],Ele=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Mle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},vV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vV)},Rle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},vV)},Nle=function(t){var r=t.cx,n=t.value,o=lV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,kle);return it("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),it("input",dt({className:r({input:!0},s),ref:i,style:Rle(l),disabled:a},d)))},Ale=Nle,Ile=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Lle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Dle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},mV=function(t){var r=t.children,n=t.innerProps;return it("div",n,r)},Fle=mV,jle=mV;function zle(e){var t=e.children,r=e.innerProps;return it("div",dt({role:"button"},r),t||it(aO,{size:14}))}var Vle=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,w=n.Remove;return it(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},it(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),it(w,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ble=Vle,Ule=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Hle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return it("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},Wle=Hle,$le=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Gle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},Kle=Gle,qle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Yle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return it("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Xle=Yle,Qle={ClearIndicator:ple,Control:_le,DropdownIndicator:dle,DownChevron:hV,CrossIcon:aO,Group:Ole,GroupHeading:Tle,IndicatorsContainer:ale,IndicatorSeparator:gle,Input:Ale,LoadingIndicator:yle,Menu:Gae,MenuList:qae,MenuPortal:ele,LoadingMessage:Zae,NoOptionsMessage:Qae,MultiValue:Ble,MultiValueContainer:Fle,MultiValueLabel:jle,MultiValueRemove:zle,Option:Wle,Placeholder:Kle,SelectContainer:rle,SingleValue:Xle,ValueContainer:ole},Zle=function(t){return st(st({},Qle),t.components)},i9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Jle(e,t){return!!(e===t||i9(e)&&i9(t))}function ese(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,w=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(w(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",_="".concat(d?" selected":"").concat(S);return"".concat(a).concat(_,", ").concat(w(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ise=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,w=s.ariaLiveMessages,S=s.getOptionLabel,_=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,g=s.menuIsOpen,h=s.options,c=s.screenReaderStatus,p=s.tabSelectsValue,m=s.isLoading,b=s["aria-label"],T=s["aria-live"],k=q.useMemo(function(){return st(st({},ose),w||{})},[w]),R=q.useMemo(function(){var H="";if(r&&k.onChange){var Y=r.option,re=r.options,Q=r.removedValue,W=r.removedValues,X=r.value,te=function(oe){return Array.isArray(oe)?null:oe},ne=Q||Y||te(X),se=ne?S(ne):"",ve=re||W||void 0,we=ve?ve.map(S):[],ce=st({isDisabled:ne&&y(ne,l),label:se,labels:we},r);H=k.onChange(ce)}return H},[r,k,y,l,S]),E=q.useMemo(function(){var H="",Y=n||o,re=!!(n&&l&&l.includes(n));if(Y&&k.onFocus){var Q={focused:Y,label:S(Y),isDisabled:y(Y,l),isSelected:re,options:i,context:Y===n?"menu":"value",selectValue:l,isAppleDevice:v};H=k.onFocus(Q)}return H},[n,o,S,y,k,i,l,v]),A=q.useMemo(function(){var H="";if(g&&h.length&&!m&&k.onFilter){var Y=c({count:i.length});H=k.onFilter({inputValue:_,resultsMessage:Y})}return H},[i,_,g,k,h,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=q.useMemo(function(){var H="";if(k.guidance){var Y=o?"value":g?"menu":"input";H=k.guidance({"aria-label":b,context:Y,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:p,isInitialFocus:F})}return H},[b,n,o,P,y,C,g,k,l,p,F]),B=it(q.Fragment,null,it("span",{id:"aria-selection"},R),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},A),it("span",{id:"aria-guidance"},V));return it(q.Fragment,null,it(a9,{id:d},F&&B),it(a9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},ase=ise,k4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],lse=new RegExp("["+k4.map(function(e){return e.letters}).join("")+"]","g"),yV={};for(var Gx=0;Gx-1}},dse=["innerRef"];function fse(e){var t=e.innerRef,r=Ps(e,dse),n=jae(r,"onExited","in","enter","exit","appear");return it("input",dt({ref:t},n,{css:rO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var pse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function hse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=q.useRef(!1),l=q.useRef(!1),s=q.useRef(0),d=q.useRef(null),v=q.useCallback(function(C,g){if(d.current!==null){var h=d.current,c=h.scrollTop,p=h.scrollHeight,m=h.clientHeight,b=d.current,T=g>0,k=p-m-c,R=!1;k>g&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&g>k?(r&&!a.current&&r(C),b.scrollTop=p,R=!0,a.current=!0):!T&&-g>c&&(o&&!l.current&&o(C),b.scrollTop=0,R=!0,l.current=!0),R&&pse(C)}},[r,n,o,i]),w=q.useCallback(function(C){v(C,C.deltaY)},[v]),S=q.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),_=q.useCallback(function(C){var g=s.current-C.changedTouches[0].clientY;v(C,g)},[v]),P=q.useCallback(function(C){if(C){var g=Lae?{passive:!1}:!1;C.addEventListener("wheel",w,g),C.addEventListener("touchstart",S,g),C.addEventListener("touchmove",_,g)}},[_,S,w]),y=q.useCallback(function(C){C&&(C.removeEventListener("wheel",w,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",_,!1))},[_,S,w]);return q.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var s9=["boxSizing","height","overflow","paddingRight","position"],u9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function c9(e){e.cancelable&&e.preventDefault()}function d9(e){e.stopPropagation()}function f9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function p9(){return"ontouchstart"in window||navigator.maxTouchPoints}var h9=!!(typeof window<"u"&&window.document&&window.document.createElement),eg=0,Ff={capture:!1,passive:!1};function gse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=q.useRef({}),i=q.useRef(null),a=q.useCallback(function(s){if(h9){var d=document.body,v=d&&d.style;if(n&&s9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&eg<1){var w=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,_=window.innerWidth-S+w||0;Object.keys(u9).forEach(function(P){var y=u9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(_,"px"))}d&&p9()&&(d.addEventListener("touchmove",c9,Ff),s&&(s.addEventListener("touchstart",f9,Ff),s.addEventListener("touchmove",d9,Ff))),eg+=1}},[n]),l=q.useCallback(function(s){if(h9){var d=document.body,v=d&&d.style;eg=Math.max(eg-1,0),n&&eg<1&&s9.forEach(function(w){var S=o.current[w];v&&(v[w]=S)}),d&&p9()&&(d.removeEventListener("touchmove",c9,Ff),s&&(s.removeEventListener("touchstart",f9,Ff),s.removeEventListener("touchmove",d9,Ff)))}},[n]);return q.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var vse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},mse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=hse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=gse({isEnabled:r}),w=function(_){d(_),v(_)};return it(q.Fragment,null,r&&it("div",{onClick:vse,css:mse}),t(w))}var bse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},wse=function(t){var r=t.name,n=t.onFocus;return it("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:bse,value:"",onChange:function(){}})},_se=wse;function lO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xse(){return lO(/^iPhone/i)}function wV(){return lO(/^Mac/i)}function Sse(){return lO(/^iPad/i)||wV()&&navigator.maxTouchPoints>1}function Cse(){return xse()||Sse()}function Pse(){return wV()||Cse()}var Tse=function(t){return t.label},Ose=function(t){return t.label},kse=function(t){return t.value},Ese=function(t){return!!t.isDisabled},Mse={clearIndicator:fle,container:tle,control:ble,dropdownIndicator:cle,group:Sle,groupHeading:Ple,indicatorsContainer:ile,indicatorSeparator:hle,input:Ele,loadingIndicator:mle,loadingMessage:Xae,menu:Hae,menuList:Kae,menuPortal:Jae,multiValue:Ile,multiValueLabel:Lle,multiValueRemove:Dle,noOptionsMessage:Yae,option:Ule,placeholder:$le,singleValue:qle,valueContainer:nle},Rse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Nse=4,_V=4,Ase=38,Ise=_V*2,Lse={baseUnit:_V,controlHeight:Ase,menuGutter:Ise},Yx={borderRadius:Nse,colors:Rse,spacing:Lse},Dse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:n9(),captureMenuScroll:!n9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cse(),formatGroupLabel:Tse,getOptionLabel:Ose,getOptionValue:kse,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ese,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Aae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function g9(e,t,r,n){var o=CV(e,t,r),i=PV(e,t,r),a=SV(e,t),l=Rw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function e1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return g9(e,a,t,l)}).filter(function(a){return m9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=g9(e,r,t,n);return m9(e,i)?i:void 0}).filter(Dae)}function xV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,qT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function v9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,qT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function Fse(e,t){return xV(e1(e,t))}function m9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!OV(e)||!i)&&TV(e,{label:a,value:l,data:o},n)}function jse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Xx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},SV=function(t,r){return t.getOptionLabel(r)},Rw=function(t,r){return t.getOptionValue(r)};function CV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function PV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Rw(e,t);return r.some(function(o){return Rw(e,o)===n})}function TV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var OV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Vse=1,kV=(function(e){tie(r,e);var t=oie(r);function r(n){var o;if(Joe(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,w=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),w(s,d)},o.setValue=function(s,d,v){var w=o.props,S=w.closeMenuOnSelect,_=w.isMulti,P=w.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!_}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,w=d.isMulti,S=d.name,_=o.state.selectValue,P=w&&o.isOptionSelected(s,_),y=o.isOptionDisabled(s,_);if(P){var C=o.getOptionValue(s);o.setValue(_.filter(function(g){return o.getOptionValue(g)!==C}),"deselect-option",s)}else if(!y)w?o.setValue([].concat(qT(_),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,w=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==w}),_=cb(d,S,S[0]||null);o.onChange(_,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(cb(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],w=d.slice(0,d.length-1),S=cb(s,w,w[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Xx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return v9(e1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;v_||S>_}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return OV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,w=d.backspaceRemovesValue,S=d.escapeClearsValue,_=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,g=d.onKeyDown,h=d.tabSelectsValue,c=d.openMenuOnFocus,p=o.state,m=p.focusedOption,b=p.focusedValue,T=p.selectValue;if(!y&&!(typeof g=="function"&&(g(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||_)return;o.focusValue("previous");break;case"ArrowRight":if(!v||_)return;o.focusValue("next");break;case"Delete":case"Backspace":if(_)return;if(b)o.removeValue(b);else{if(!w)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!h||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:_}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(_)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Vse),o.state.selectValue=t9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Xx(i,a[l])}return o}return eie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&r9(this.menuListRef,this.focusedOptionRef),Pse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(r9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var w=d.indexOf(l[0]);w>-1&&(v=w)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Yx):st(st({},Yx),this.props.theme):Yx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,w=this.props,S=w.isMulti,_=w.isRtl,P=w.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:_,options:P,selectOption:d,selectProps:w,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return CV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return PV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return TV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,w=o.menuIsOpen,S=o.required,_=this.getComponents(),P=_.Input,y=this.state,C=y.inputIsHidden,g=y.ariaSelection,h=this.commonProps,c=l||this.getElementId("input"),p=st(st(st({"aria-autocomplete":"list","aria-expanded":w,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},w&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?q.createElement(P,dt({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},p)):q.createElement(fse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ew,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},p))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,w=i.Placeholder,S=this.commonProps,_=this.props,P=_.controlShouldRenderValue,y=_.isDisabled,C=_.isMulti,g=_.inputValue,h=_.placeholder,c=this.state,p=c.selectValue,m=c.focusedValue,b=c.isFocused;if(!this.hasValue()||!P)return g?null:q.createElement(w,dt({},S,{key:"placeholder",isDisabled:y,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),h);if(C)return p.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return q.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(g)return null;var T=p[0];return q.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var w={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return q.createElement(i,dt({},a,{innerProps:w,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var w={"aria-hidden":"true"};return q.createElement(i,dt({},a,{innerProps:w,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return q.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return q.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,w=i.LoadingMessage,S=i.NoOptionsMessage,_=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,g=C.captureMenuScroll,h=C.inputValue,c=C.isLoading,p=C.loadingMessage,m=C.minMenuHeight,b=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,H=C.onMenuScrollToBottom;if(!T)return null;var Y=function(se,ve){var we=se.type,ce=se.data,J=se.isDisabled,oe=se.isSelected,ue=se.label,Se=se.value,Ce=y===ce,Me=J?void 0:function(){return o.onOptionHover(ce)},Ie=J?void 0:function(){return o.selectOption(ce)},Re="".concat(o.getElementId("option"),"-").concat(ve),ye={id:Re,onClick:Ie,onMouseMove:Me,onMouseOver:Me,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:oe};return q.createElement(_,dt({},P,{innerProps:ye,data:ce,isDisabled:J,isSelected:oe,key:Re,label:ue,type:we,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(se.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var se=ne.data,ve=ne.options,we=ne.index,ce="".concat(o.getElementId("group"),"-").concat(we),J="".concat(ce,"-heading");return q.createElement(a,dt({},P,{key:ce,data:se,options:ve,Heading:l,headingProps:{id:J,data:ne.data},label:o.formatGroupLabel(ne.data)}),ne.options.map(function(oe){return Y(oe,"".concat(we,"-").concat(oe.index))}))}else if(ne.type==="option")return Y(ne,"".concat(ne.index))});else if(c){var Q=p({inputValue:h});if(Q===null)return null;re=q.createElement(w,P,Q)}else{var W=V({inputValue:h});if(W===null)return null;re=q.createElement(S,P,W)}var X={minMenuHeight:m,maxMenuHeight:b,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},te=q.createElement(Wae,dt({},P,X),function(ne){var se=ne.ref,ve=ne.placerProps,we=ve.placement,ce=ve.maxHeight;return q.createElement(s,dt({},P,X,{innerRef:se,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:we}),q.createElement(yse,{captureEnabled:g,onTopArrive:B,onBottomArrive:H,lockEnabled:A},function(J){return q.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),J(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),re)}))});return E||R==="fixed"?q.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),te):te}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,w=this.state.selectValue;if(v&&!this.hasValue()&&!l)return q.createElement(_se,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=w.map(function(y){return o.getOptionValue(y)}).join(a);return q.createElement("input",{name:d,type:"hidden",value:S})}else{var _=w.length>0?w.map(function(y,C){return q.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):q.createElement("input",{name:d,type:"hidden",value:""});return q.createElement("div",null,_)}else{var P=w[0]?this.getOptionValue(w[0]):"";return q.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,w=this.getFocusableOptions();return q.createElement(ase,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:w,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,w=d.id,S=d.isDisabled,_=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return q.createElement(l,dt({},y,{className:v,innerProps:{id:w,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),q.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:_}),q.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),q.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,w=i.prevWasFocused,S=i.instancePrefix,_=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,g=o.isMulti,h=t9(P),c={};if(a&&(P!==a.value||_!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var p=y?Fse(o,h):[],m=y?v9(e1(o,h),"".concat(S,"-option")):[],b=l?jse(i,h):null,T=zse(i,p),k=Xx(m,T);c={selectValue:h,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:b,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&w;return v&&!A&&(E={value:cb(g,h,h[0]||null),options:h,action:"initial-input-focus"},A=!w),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(q.Component);kV.defaultProps=Dse;var Bse=q.forwardRef(function(e,t){var r=Zoe(e);return q.createElement(kV,dt({ref:t},r))}),Use=Bse;/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Hse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wse=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),y9=e=>{const t=Wse(e);return t.charAt(0).toUpperCase()+t.slice(1)},EV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),$se=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var Gse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Kse=q.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>q.createElement("svg",{ref:s,...Gse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:EV("lucide",o),...!i&&!$se(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>q.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const MV=(e,t)=>{const r=q.forwardRef(({className:n,...o},i)=>q.createElement(Kse,{ref:i,iconNode:t,className:EV(`lucide-${Hse(y9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=y9(e),r};/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const qse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Yse=MV("chevrons-down",qse);/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Xse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Qse=MV("chevrons-up",Xse),Zse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=q.useState(!1),[l,s]=q.useState(typeof window<"u"&&window.innerWidth>=768);q.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),w=c=>o(c.map(p=>p.value)),S=c=>o(n.filter(p=>p!==c)),_=q.useRef(null),[P,y]=q.useState("32px"),[C,g]=q.useState(!1);q.useEffect(()=>{const c=_.current;if(!c)return;const p=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${p}px`,requestAnimationFrame(()=>{const b=Math.max(m,125);y(`${i?b:32}px`)})})},[i,n]);const h={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return je.jsxs("div",{ref:_,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[je.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?je.jsx(Yse,{size:24}):je.jsx(Qse,{size:24})}),i&&je.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[je.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:je.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),je.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:je.jsxs("div",{style:{width:l?"50%":"100%"},children:[je.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[je.jsx("div",{style:{flexGrow:1},children:je.jsx(Use,{isMulti:!0,options:d,value:v,onChange:w,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,p)=>({...c,color:"black",backgroundColor:p.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),je.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&g(!0),onMouseLeave:()=>l&&g(!1),onClick:()=>!l&&g(c=>!c),children:["i",C&&je.jsx("div",{style:h,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&je.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>je.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,je.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},Jse=e=>{const[t,r]=q.useState({visible:!1,text:"",x:0,y:0}),n=q.useCallback((i,a,l,s,d,v,w)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:w})},[e]),o=q.useCallback(()=>{r(i=>({...i,visible:!1}))},[]);return{tooltip:t,showTooltip:n,hideTooltip:o}},eue=()=>{const[e,t]=q.useState([]),[r,n]=q.useState({}),[o,i]=q.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${Fg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${Fg}/api/v1/starmap/warmap`).then(d=>d.json());t(s)}catch(s){console.error("Failed to fetch data:",s)}}}},tue={flashActivePlayes:!0},rue=()=>{const[e,t]=q.useState(tue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},nue=()=>{const[e,t]=q.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=eue(),{settings:l,setFlashActive:s}=rue(),d=q.useCallback(v=>v.map(w=>{const S=w4(w.owner,n),_=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...w,isCapital:Boe(w.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:_}}),[o,n]);return q.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function oue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=q.useRef(null),o=q.useRef(1),i=q.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=q.useState(1),s=q.useRef(!1),d=q.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=q.useRef(0),w=q.useCallback(P=>{const y=performance.now();if(y-v.current0?c/h:c*h;p=Math.max(e,Math.min(t,p));const m={x:(g.x-C.x())/c,y:(g.y-C.y())/c};o.current=p,i.current={x:g.x-m.x*p,y:g.y-m.y*p},C.scale({x:p,y:p}),C.position(i.current),d(C),l(p)},[t,e,d,r]),S=q.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),_=q.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:_,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:w,onDragMove:S}}}function iue(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function aue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=q.useState(!1),v=q.useRef(0),w=q.useRef(null),S=q.useRef(!1),_=q.useRef(null),P=q.useCallback(g=>{if(g.evt.touches.length===1){const h=g.target.className==="Circle",c=g.target.findAncestor("Label",!0);!h&&!c&&(i==null||i())}g.evt.touches.length===2&&(d(!0),v.current=iue(g.evt.touches[0],g.evt.touches[1]))},[i]),y=q.useCallback(g=>{if(g.evt.touches.length!==2||!s)return;g.evt.preventDefault();const[h,c]=g.evt.touches;_.current={touch1:{clientX:h.clientX,clientY:h.clientY},touch2:{clientX:c.clientX,clientY:c.clientY}},!S.current&&(S.current=!0,w.current=requestAnimationFrame(()=>{S.current=!1;const p=_.current;if(!p)return;const m=Math.hypot(p.touch2.clientX-p.touch1.clientX,p.touch2.clientY-p.touch1.clientY);if(!v.current){v.current=m;return}const b=e.current;if(!b)return;let T=m/v.current;if(Math.abs(1-T)<.02)return;T=Math.max(.9,Math.min(1.1,T));const k=t.current??1,R=Math.max(a,Math.min(l,k*T)),E=b.getPosition(),A=b.scaleX(),F={x:(p.touch1.clientX+p.touch2.clientX)/2,y:(p.touch1.clientY+p.touch2.clientY)/2},V={x:(F.x-E.x)/A,y:(F.y-E.y)/A},B={x:F.x-V.x*R,y:F.y-V.y*R};t.current=R,r.current=B,b.scale({x:R,y:R}),b.position(B),n(b),v.current=m}))},[s,l,a,r,n,t,o,e]),C=q.useCallback(g=>{g.evt.touches.length<2&&(d(!1),o(t.current),_.current=null,w.current!==null&&(cancelAnimationFrame(w.current),w.current=null),S.current=!1)},[]);return{isPinching:s,handlers:{onTouchStart:P,onTouchMove:y,onTouchEnd:C}}}const lue=.2,sue=25,uue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=nue(),[a,l]=q.useState(!1);return q.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?je.jsx(cue,{systems:e,factions:t,settings:i}):null},cue=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:w}}=oue(),[S,_]=q.useState(""),[P,y]=q.useState(!1),C=S.trim().toLowerCase(),g=C.length>=2,[h,c]=q.useState([]),{tooltip:p,showTooltip:m,hideTooltip:b}=Jse(o),T=q.useRef(!1),k=q.useRef(null),{isPinching:R,handlers:{onTouchStart:E,onTouchMove:A,onTouchEnd:F}}=aue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:b,minScale:lue,maxScale:sue}),[V,B]=q.useState({width:window.innerWidth,height:window.innerHeight});q.useEffect(()=>{const ye=Ye=>{Ye.touches.length>1&&Ye.preventDefault()},ke=Ye=>{Ye.preventDefault()},ze={passive:!1};return document.addEventListener("touchmove",ye,ze),document.addEventListener("gesturestart",ke,ze),document.addEventListener("gesturechange",ke,ze),document.addEventListener("gestureend",ke,ze),()=>{document.removeEventListener("touchmove",ye,ze),document.removeEventListener("gesturestart",ke,ze),document.removeEventListener("gesturechange",ke,ze),document.removeEventListener("gestureend",ke,ze)}},[]),q.useEffect(()=>{const ye=ke=>ke.preventDefault();return window.addEventListener("gesturestart",ye,{passive:!1}),window.addEventListener("gesturechange",ye,{passive:!1}),window.addEventListener("gestureend",ye,{passive:!1}),()=>{window.removeEventListener("gesturestart",ye),window.removeEventListener("gesturechange",ye),window.removeEventListener("gestureend",ye)}},[]),q.useEffect(()=>{const ye=()=>{B({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",ye),()=>window.removeEventListener("resize",ye)},[]);const[H,Y]=q.useState(null),[re,Q]=q.useState(!1);q.useEffect(()=>{const ye=new window.Image,ze=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";ye.src="/"+ze,ye.onload=()=>{Y(ye),Q(!0)}},[]),q.useEffect(()=>{const ye=n.current;if(!ye)return;const ke=ye.container(),ze=Ye=>{Ye.cancelable&&Ye.preventDefault()};return ke.addEventListener("gesturestart",ze,{passive:!1}),ke.addEventListener("gesturechange",ze,{passive:!1}),ke.addEventListener("gestureend",ze,{passive:!1}),ke.addEventListener("touchmove",ze,{passive:!1}),()=>{ke.removeEventListener("gesturestart",ze),ke.removeEventListener("gesturechange",ze),ke.removeEventListener("gestureend",ze),ke.removeEventListener("touchmove",ze)}},[]);const W=window.innerWidth<768,X=W?1.5/a.scale:2/a.scale,te=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,ne=6,se=10,ve=12,we=te*1.12,ce=te*.92,J=we*1.2,oe=(ye,ke)=>{if(ke===0)return[{text:ye,fontStyle:"bold",fontSize:we}];const ze=ye.match(/^(Owner:|Damage:)\s*(.*)$/);if(ze){const[,Ye,Mt]=ze;return[{text:`${Ye} `,fontStyle:"bold",fontSize:ce},{text:Mt,fontStyle:"normal",fontSize:ce}]}return[{text:ye,fontStyle:/^(Control|State):/.test(ye)?"bold":"normal",fontSize:ce}]},ue=q.useMemo(()=>(p.text||"").split(` -`).map(ye=>ye.trimEnd()),[p.text]),Se=q.useMemo(()=>{const ye=ue.length?ue:[""],ke=ye.map((gt,xt)=>oe(gt,xt).reduce((zt,Ht)=>{const mt=new y4.Text({text:Ht.text,fontFamily:"Roboto Mono, monospace",fontSize:Ht.fontSize,fontStyle:Ht.fontStyle}),Ot=mt.width();return mt.destroy(),zt+Ot},0)),Ye=(ke.length?Math.max(...ke):0)+ne*2,Mt=ye.length*J+ne*2;return{lines:ye,boxWidth:Ye,boxHeight:Mt}},[ue,te,J]);q.useEffect(()=>{p.visible&&y(!1)},[p.visible,p.text]),q.useEffect(()=>{T.current=p.visible,p.visible||(k.current=null)},[p.visible]);const Ce=q.useMemo(()=>{var zt,Ht;const ye=(zt=p.text)==null?void 0:zt.trim();if(!ye)return{title:"",subtitle:"",details:[]};const ke=ye.split(` -`).map(mt=>mt.trim()).filter(mt=>mt&&mt!=="[Tap to open]"),ze=ke[0]??"",Ye=(Ht=ke[1])!=null&&Ht.startsWith("(")?ke[1]:"",Mt=ke.slice(Ye?2:1),gt=[];let xt=!1;for(const mt of Mt){if(mt==="Control:"){xt=!0;continue}if(xt){if(!/^[A-Za-z ]+:\s/.test(mt))continue;xt=!1}gt.push(mt)}return{title:ze,subtitle:Ye,details:gt}},[p.text]),Me=q.useMemo(()=>[...p.controlItems||[]].sort((ye,ke)=>ke.control-ye.control),[p.controlItems]),Ie=P?Me:Me.slice(0,3),Re=Math.max(0,Me.length-3);return je.jsxs(je.Fragment,{children:[je.jsxs(zoe,{width:V.width,height:V.height,draggable:!R,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:w,onTouchStart:E,onTouchMove:A,onTouchEnd:F,children:[je.jsx(Hx,{cache:!0,children:re&&H?je.jsx(joe,{image:H,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):je.jsx(HE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),je.jsx(Hx,{children:e.map((ye,ke)=>{var xt;const ze=((xt=t[ye.owner])==null?void 0:xt.prettyName)??ye.owner;if(!(!h.length||h.includes(ze)))return null;const Mt=ye.name.toLowerCase().includes(C),gt=g?Mt?1:.2:1;return je.jsx($oe,{zoomScaleFactor:l<1?l:1,system:ye,factions:t,settings:r,showTooltip:m,hideTooltip:b,tooltipVisibleRef:T,touchedSystemNameRef:k,highlighted:g&&Mt,opacity:gt},ye.name||ke)})}),je.jsx(Hx,{children:p.visible&&!W&&je.jsxs(UE,{x:p.x,y:p.y,opacity:.75,scaleX:X,scaleY:X,children:[je.jsx(Loe,{x:-Se.boxWidth/2,y:-(Se.boxHeight+se),width:Se.boxWidth,height:Se.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),je.jsx(Foe,{points:[-ve/2,-se,0,0,ve/2,-se],fill:"white",closed:!0}),Se.lines.map((ye,ke)=>(()=>{const ze=oe(ye,ke);return je.jsx(UE,{x:-Se.boxWidth/2+ne,y:-(Se.boxHeight+se-ne-ke*J),listening:!1,children:ze.map((Ye,Mt)=>{const gt=ze.slice(0,Mt).reduce((xt,zt)=>{const Ht=new y4.Text({text:zt.text,fontFamily:"Roboto Mono, monospace",fontSize:zt.fontSize,fontStyle:zt.fontStyle}),mt=Ht.width();return Ht.destroy(),xt+mt},0);return je.jsx(HE,{x:gt,y:0,text:Ye.text,fontFamily:"Roboto Mono, monospace",fontSize:Ye.fontSize,fontStyle:Ye.fontStyle,fill:"black",listening:!1},`${Ye.text}-${Mt}`)})},`${ye}-${ke}`)})())]})})]}),W&&p.visible&&je.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[je.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:Ce.title}),Ce.subtitle&&je.jsx("div",{style:{marginTop:"2px",opacity:.8},children:Ce.subtitle}),je.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:Ce.details.map((ye,ke)=>je.jsx("div",{children:ye},`${ye}-${ke}`))}),Me.length>0&&je.jsxs("div",{style:{marginTop:"10px"},children:[je.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),je.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Ie.map(ye=>je.jsx("div",{children:`${ye.name} ${ye.control}% · P${ye.players}`},`${ye.name}-${ye.control}-${ye.players}`))}),Re>0&&je.jsx("button",{type:"button",onClick:()=>y(ye=>!ye),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),je.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[p.onTouch&&je.jsx("button",{type:"button",onClick:()=>{var ye;return(ye=p.onTouch)==null?void 0:ye.call(p)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),je.jsx("button",{type:"button",onClick:b,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),je.jsx(Zse,{searchTerm:S,setSearchTerm:_,factions:q.useMemo(()=>LJ(e,t),[e,t]),selectedFactions:h,setSelectedFactions:c})]})},b9=uue;function due(e){return Qw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function fue(){return je.jsx(YW,{children:je.jsx(pue,{})})}function pue(){const e=YR();return Bv(e)?je.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",je.jsx(O1,{to:"/",children:je.jsxs("div",{className:"flex",children:[je.jsx(due,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?je.jsxs("div",{id:"error-page",children:[je.jsx("h1",{children:"Oops! Unexpected Error"}),je.jsx("p",{children:"Something went wrong."}),je.jsx("p",{children:je.jsx("i",{children:e.message})})]}):je.jsx(je.Fragment,{children:"Unknown error"})}const hue="/",gue=SW(KS(je.jsxs(je.Fragment,{children:[je.jsx(GS,{path:"/",element:je.jsx(b9,{}),errorElement:je.jsx(fue,{})}),je.jsx(GS,{index:!0,element:je.jsx(b9,{})})]})),{basename:hue});function vue(){return je.jsx(NW,{router:gue})}NR(document.getElementById("react-root")).render(je.jsx(q.StrictMode,{children:je.jsx(vue,{})})); diff --git a/map/index.html b/map/index.html index 9260b2a..30eb068 100644 --- a/map/index.html +++ b/map/index.html @@ -5,7 +5,7 @@ RogueTech - + diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index 6574fdb..3074713 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -83,7 +83,7 @@ const StarSystem: React.FC = ({ const circleOpacity = showActivePlayerIndicator ? Math.min(1, opacity + 0.25) : opacity; - const haloRadius = radius * 1.9; + const haloRadius = radius * 2.5; const haloOpacity = Math.min(0.34, circleOpacity * 0.4); const rimOpacity = Math.min(0.4, circleOpacity * 0.4); const shineRadius = radius * 0.45; From 0dc000023c1ddaddb038db549b745d5ffe6ade30 Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Mon, 23 Feb 2026 19:38:42 -0800 Subject: [PATCH 15/28] implement test states --- .env | 3 +- .env.production | 3 +- map/assets/index-BxHkQtoi.js | 189 --------------------- map/assets/index-CgcEaKjL.js | 189 +++++++++++++++++++++ map/index.html | 2 +- src/components/helpers/devStateInjector.ts | 165 ++++++++++++++++++ src/components/hooks/useWarmapAPI.ts | 3 +- src/components/ui/StarSystem.tsx | 102 ++++++++++- tsconfig.app.tsbuildinfo | 2 +- 9 files changed, 463 insertions(+), 195 deletions(-) delete mode 100644 map/assets/index-BxHkQtoi.js create mode 100644 map/assets/index-CgcEaKjL.js create mode 100644 src/components/helpers/devStateInjector.ts diff --git a/.env b/.env index e65f2cd..90d6284 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ VITE_APP_OUTPUT_DEBUG=true -VITE_APP_APP_TITLE=RogueTech (Dev) \ No newline at end of file +VITE_APP_APP_TITLE=RogueTech (Dev) +VITE_ENABLE_STATE_TEST=true diff --git a/.env.production b/.env.production index 9c00b8f..ef78291 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,4 @@ # .env.production VITE_APP_OUTPUT_DEBUG=false -VITE_APP_APP_TITLE=RogueTech \ No newline at end of file +VITE_APP_APP_TITLE=RogueTech +VITE_ENABLE_STATE_TEST=true diff --git a/map/assets/index-BxHkQtoi.js b/map/assets/index-BxHkQtoi.js deleted file mode 100644 index ffe07ad..0000000 --- a/map/assets/index-BxHkQtoi.js +++ /dev/null @@ -1,189 +0,0 @@ -function E4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var sO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _9={exports:{}},Aw={},x9={exports:{}},Lt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Dv=Symbol.for("react.element"),NV=Symbol.for("react.portal"),AV=Symbol.for("react.fragment"),IV=Symbol.for("react.strict_mode"),LV=Symbol.for("react.profiler"),DV=Symbol.for("react.provider"),FV=Symbol.for("react.context"),jV=Symbol.for("react.forward_ref"),zV=Symbol.for("react.suspense"),VV=Symbol.for("react.memo"),BV=Symbol.for("react.lazy"),uO=Symbol.iterator;function UV(e){return e===null||typeof e!="object"?null:(e=uO&&e[uO]||e["@@iterator"],typeof e=="function"?e:null)}var S9={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C9=Object.assign,P9={};function oh(e,t,r){this.props=e,this.context=t,this.refs=P9,this.updater=r||S9}oh.prototype.isReactComponent={};oh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function T9(){}T9.prototype=oh.prototype;function M4(e,t,r){this.props=e,this.context=t,this.refs=P9,this.updater=r||S9}var R4=M4.prototype=new T9;R4.constructor=M4;C9(R4,oh.prototype);R4.isPureReactComponent=!0;var cO=Array.isArray,O9=Object.prototype.hasOwnProperty,N4={current:null},k9={key:!0,ref:!0,__self:!0,__source:!0};function E9(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)O9.call(t,n)&&!k9.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1>>1,ne=Q[re];if(0>>1;reo(we,Y))ceo(ee,we)?(Q[re]=ee,Q[ce]=Y,re=ce):(Q[re]=we,Q[ve]=Y,re=ve);else if(ceo(ee,Y))Q[re]=ee,Q[ce]=Y,re=ce;else break e}}return W}function o(Q,W){var Y=Q.sortIndex-W.sortIndex;return Y!==0?Y:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,b=null,S=3,w=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function g(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,q(m);else{var W=r(d);W!==null&&J(g,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,h(k),k=-1),w=!0;var Y=S;try{for(c(W),b=r(s);b!==null&&(!(b.expirationTime>W)||Q&&!A());){var re=b.callback;if(typeof re=="function"){b.callback=null,S=b.priorityLevel;var ne=re(b.expirationTime<=W);W=e.unstable_now(),typeof ne=="function"?b.callback=ne:b===r(s)&&n(s),c(W)}else n(s);b=r(s)}if(b!==null)var se=!0;else{var ve=r(d);ve!==null&&J(g,ve.startTime-W),se=!1}return se}finally{b=null,S=Y,w=!1}}var _=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125re?(Q.sortIndex=Y,t(d,Q),r(s)===null&&Q===r(d)&&(y?(h(k),k=-1):y=!0,J(g,Y-re))):(Q.sortIndex=ne,t(s,Q),P||w||(P=!0,q(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var Y=S;S=W;try{return Q.apply(this,arguments)}finally{S=Y}}}})(I9);A9.exports=I9;var fp=A9.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var JV=X,Oi=fp;function De(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jx=Object.prototype.hasOwnProperty,eB=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fO={},pO={};function tB(e){return Jx.call(pO,e)?!0:Jx.call(fO,e)?!1:eB.test(e)?pO[e]=!0:(fO[e]=!0,!1)}function rB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nB(e,t,r,n){if(t===null||typeof t>"u"||rB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var I4=/[\-:]([a-z])/g;function L4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I4,L4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function D4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{m_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?tg(e):""}function oB(e){switch(e.tag){case 5:return tg(e.type);case 16:return tg("Lazy");case 13:return tg("Suspense");case 19:return tg("SuspenseList");case 0:case 2:case 15:return e=y_(e.type,!1),e;case 11:return e=y_(e.type.render,!1),e;case 1:return e=y_(e.type,!0),e;default:return""}}function nS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vf:return"Fragment";case zf:return"Portal";case eS:return"Profiler";case F4:return"StrictMode";case tS:return"Suspense";case rS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F9:return(e.displayName||"Context")+".Consumer";case D9:return(e._context.displayName||"Context")+".Provider";case j4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z4:return t=e.displayName||null,t!==null?t:nS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return nS(e(t))}catch{}}return null}function iB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nS(t);case 8:return t===F4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function z9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aB(e){var t=z9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hy(e){e._valueTracker||(e._valueTracker=aB(e))}function V9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=z9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function r1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function oS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function gO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function B9(e,t){t=t.checked,t!=null&&D4(e,"checked",t,!1)}function iS(e,t){B9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?aS(e,t.type,r):t.hasOwnProperty("defaultValue")&&aS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function aS(e,t,r){(t!=="number"||r1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var rg=Array.isArray;function pp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lB=["Webkit","ms","Moz","O"];Object.keys(hg).forEach(function(e){lB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hg[t]=hg[e]})});function $9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hg.hasOwnProperty(e)&&hg[e]?(""+t).trim():t+"px"}function G9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=$9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var sB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uS(e,t){if(t){if(sB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(De(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(De(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(De(61))}if(t.style!=null&&typeof t.style!="object")throw Error(De(62))}}function cS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dS=null;function V4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fS=null,hp=null,gp=null;function bO(e){if(e=zv(e)){if(typeof fS!="function")throw Error(De(280));var t=e.stateNode;t&&(t=jw(t),fS(e.stateNode,e.type,t))}}function K9(e){hp?gp?gp.push(e):gp=[e]:hp=e}function q9(){if(hp){var e=hp,t=gp;if(gp=hp=null,bO(e),t)for(e=0;e>>=0,e===0?32:31-(bB(e)/wB|0)|0}var vy=64,my=4194304;function ng(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function a1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=ng(l):(i&=a,i!==0&&(n=ng(i)))}else a=r&~o,a!==0?n=ng(a):i!==0&&(n=ng(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Fv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function CB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=vg),kO=" ",EO=!1;function hM(e,t){switch(e){case"keyup":return ZB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bf=!1;function eU(e,t){switch(e){case"compositionend":return gM(t);case"keypress":return t.which!==32?null:(EO=!0,kO);case"textInput":return e=t.data,e===kO&&EO?null:e;default:return null}}function tU(e,t){if(Bf)return e==="compositionend"||!q4&&hM(e,t)?(e=fM(),gb=$4=au=null,Bf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=AO(r)}}function bM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wM(){for(var e=window,t=r1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=r1(e.document)}return t}function Y4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cU(e){var t=wM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bM(r.ownerDocument.documentElement,r)){if(n!==null&&Y4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=IO(r,i);var a=IO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Uf=null,yS=null,yg=null,bS=!1;function LO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;bS||Uf==null||Uf!==r1(n)||(n=Uf,"selectionStart"in n&&Y4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),yg&&$g(yg,n)||(yg=n,n=u1(yS,"onSelect"),0$f||(e.current=PS[$f],PS[$f]=null,$f--)}function ur(e,t){$f++,PS[$f]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Rp(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function d1(){mr(Xo),mr(ho)}function UO(e,t,r){if(ho.current!==Eu)throw Error(De(168));ur(ho,t),ur(Xo,r)}function EM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(De(108,iB(e)||"Unknown",o));return Ar({},r,n)}function f1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function HO(e,t,r){var n=e.stateNode;if(!n)throw Error(De(169));r?(e=EM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,zw=!1,N_=!1;function MM(e){ql===null?ql=[e]:ql.push(e)}function xU(e){zw=!0,MM(e)}function ju(){if(!N_&&ql!==null){N_=!0;var e=0,t=Xt;try{var r=ql;for(Xt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return _r&&Fc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),_r&&Fc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===Vf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case py:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===Vf){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&GO(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=A0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===Vf?(p=Qc(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=Sb(c.type,c.key,c.props,null,h.mode,g),g.ref=A0(h,p,c),g.return=h,h=g)}return a(h);case zf:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=V_(c,h.mode,g),p.return=h,h=p}return a(h);case Qs:return _=c._init,C(h,p,_(c._payload),g)}if(rg(c))return P(h,p,c,g);if(k0(c))return y(h,p,c,g);Cy(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=z_(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Ap=IM(!0),LM=IM(!1),g1=Fu(null),v1=null,qf=null,J4=null;function eP(){J4=qf=v1=null}function tP(e){var t=g1.current;mr(g1),e._currentValue=t}function kS(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function mp(e,t){v1=e,J4=qf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(J4!==e)if(e={context:e,memoizedValue:t,next:null},qf===null){if(v1===null)throw Error(De(308));qf=e,v1.dependencies={lanes:0,firstContext:e}}else qf=qf.next=e;return t}var Wc=null;function rP(e){Wc===null?Wc=[e]:Wc.push(e)}function DM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,rP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function nP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Wt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,rP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function mb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}function KO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function m1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var b=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,w=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,w=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){b=P.call(w,b,S);break e}b=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(w,b,S):P,S==null)break e;b=Ar({},b,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else w={eventTime:w,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=w,s=b):v=v.next=w,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=b),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=b}}function qO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=I_.transition;I_.transition={};try{e(!1),t()}finally{Xt=r,I_.transition=n}}function eR(){return sa().memoizedState}function TU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},tR(e))rR(t,r);else if(r=DM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),nR(r,t,n)}}function OU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(tR(e))rR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,rP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=DM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),nR(r,t,n))}}function tR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function rR(e,t){bg=b1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function nR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,U4(e,r)}}var w1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},kU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:XO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bb(4194308,4,YM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return bb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:YO,useDebugValue:dP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=YO(!1),t=e[0];return e=PU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(De(407));r=r()}else{if(r=t(),Rn===null)throw Error(De(349));(nd&30)!==0||BM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,XO(HM.bind(null,n,i,e),[e]),n.flags|=2048,Jg(9,UM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Qg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[qg]=n,pR(e,t,!1,!1),t.stateNode=e;e:{switch(a=cS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oDp&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304)}else{if(!n)if(e=y1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),I0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Dp&&r!==1073741824&&(t.flags|=128,n=!0,I0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return mP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function DU(e,t){switch(Q4(t),t.tag){case 1:return Qo(t.type)&&d1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ip(),mr(Xo),mr(ho),aP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return iP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(De(340));Np()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Ip(),null;case 10:return tP(t.type._context),null;case 22:case 23:return mP(),null;case 24:return null;default:return null}}var Ty=!1,co=!1,FU=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Yf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function FS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var l6=!1;function jU(e,t){if(wS=l1,e=wM(),Y4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(_S={focusedElem:e,selectionRange:r},l1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(De(163))}}catch(g){Vr(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=l6,l6=!1,P}function wg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&FS(t,r,i)}o=o.next}while(o!==n)}}function Uw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function jS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function vR(e){var t=e.alternate;t!==null&&(e.alternate=null,vR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[qg],delete t[CS],delete t[wU],delete t[_U])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mR(e){return e.tag===5||e.tag===3||e.tag===4}function s6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=c1));else if(n!==4&&(e=e.child,e!==null))for(zS(e,t,r),e=e.sibling;e!==null;)zS(e,t,r),e=e.sibling}function VS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(VS(e,t,r),e=e.sibling;e!==null;)VS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)yR(e,t,r),r=r.sibling}function yR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Iw,r)}catch{}switch(r.tag){case 5:co||Yf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?R_(e.parentNode,r):e.nodeType===1&&R_(e,r),Hg(e)):R_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&FS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Yf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function u6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FU),t.forEach(function(n){var o=KU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,S1=0,(Wt&6)!==0)throw Error(De(331));var o=Wt;for(Wt|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-gP?Xc(e,0):hP|=r),Zo(e,t)}function TR(e,t){t===0&&((e.mode&1)===0?t=1:(t=my,my<<=1,(my&130023424)===0&&(my=4194304)));var r=Ro();e=us(e,t),e!==null&&(Fv(e,t,r),Zo(e,r))}function GU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TR(e,r)}function KU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(De(314))}n!==null&&n.delete(t),TR(e,r)}var OR;OR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,IU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&RM(t,h1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;wb(e,t),e=t.pendingProps;var o=Rp(t,ho.current);mp(t,r),o=sP(null,t,n,e,o,r);var i=uP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,f1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nP(t),o.updater=Bw,t.stateNode=o,o._reactInternals=t,MS(t,n,e,r),t=AS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&X4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(wb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=YU(n),e=Ta(n,e),o){case 0:t=NS(null,t,n,e,r);break e;case 1:t=o6(null,t,n,e,r);break e;case 11:t=r6(null,t,n,e,r);break e;case 14:t=n6(null,t,n,Ta(n.type,e),r);break e}throw Error(De(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),NS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),o6(e,t,n,o,r);case 3:e:{if(cR(t),e===null)throw Error(De(387));n=t.pendingProps,i=t.memoizedState,o=i.element,FM(e,t),m1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lp(Error(De(423)),t),t=i6(e,t,n,r,o);break e}else if(n!==o){o=Lp(Error(De(424)),t),t=i6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=LM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Np(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return jM(t),e===null&&OS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,xS(n,o)?a=null:i!==null&&xS(n,i)&&(t.flags|=32),uR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&OS(t),null;case 13:return dR(e,t,r);case 4:return oP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ap(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),r6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(g1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),kS(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(De(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),kS(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),n6(e,t,n,o,r);case 15:return lR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),wb(e,t),t.tag=1,Qo(n)?(e=!0,f1(t)):e=!1,mp(t,r),oR(t,n,o),MS(t,n,o,r),AS(null,t,n,!0,e,r);case 19:return fR(e,t,r);case 22:return sR(e,t,r)}throw Error(De(156,t.tag))};function kR(e,t){return tM(e,t)}function qU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new qU(e,t,r,n)}function bP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YU(e){if(typeof e=="function")return bP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j4)return 11;if(e===z4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Sb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")bP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vf:return Qc(r.children,o,i,t);case F4:a=8,o|=8;break;case eS:return e=ta(12,r,t,o|2),e.elementType=eS,e.lanes=i,e;case tS:return e=ta(13,r,t,o),e.elementType=tS,e.lanes=i,e;case rS:return e=ta(19,r,t,o),e.elementType=rS,e.lanes=i,e;case j9:return Ww(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D9:a=10;break e;case F9:a=9;break e;case j4:a=11;break e;case z4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(De(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function Ww(e,t,r,n){return e=ta(22,e,n,t),e.elementType=j9,e.lanes=r,e.stateNode={isHidden:!1},e}function z_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function V_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=w_(0),this.expirationTimes=w_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=w_(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wP(e,t,r,n,o,i,a,l,s){return e=new XU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nP(i),e}function QU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),N9.exports=Mi;var Yw=N9.exports;const rH=nh(Yw),nH=E4({__proto__:null,default:rH},[Yw]);var AR,m6=Yw;AR=m6.createRoot,m6.hydrateRoot;/** - * @remix-run/router v1.19.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iH(){return Math.random().toString(36).substr(2,8)}function b6(e,t){return{usr:e.state,key:e.key,idx:t}}function tv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||iH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function b(){l=rn.Pop;let C=v(),h=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:h})}function S(C,h){l=rn.Push;let p=tv(y.location,C,h);d=v()+1;let c=b6(p,d),g=y.createHref(p);try{a.pushState(c,"",g)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(g)}i&&s&&s({action:l,location:y.location,delta:1})}function w(C,h){l=rn.Replace;let p=tv(y.location,C,h);d=v();let c=b6(p,d),g=y.createHref(p);a.replaceState(c,"",g),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof C=="string"?C:ad(C);return p=p.replace(/ $/,"%20"),Pt(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(y6,b),s=C,()=>{o.removeEventListener(y6,b),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let h=P(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:S,replace:w,go(C){return a.go(C)}};return y}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const lH=new Set(["lazy","caseSensitive","path","id","index","children"]);function sH(e){return e.index===!0}function rv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pt(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),sH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=rv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Cb(e,t,r,!1)}function Cb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=lh(o.pathname||"/",r);if(i==null)return null;let a=IR(e);cH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Pt(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),IR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:mH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of LR(i.path))o(i,a,s)}),t}function LR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=LR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function cH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:yH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dH=/^:[\w-]+$/,fH=3,pH=2,hH=1,gH=10,vH=-2,w6=e=>e==="*";function mH(e,t){let r=e.split("/"),n=r.length;return r.some(w6)&&(n+=vH),t&&(n+=pH),r.filter(o=>!w6(o)).reduce((o,i)=>o+(dH.test(i)?fH:i===""?hH:gH),n)}function yH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function bH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:w}=v;if(S==="*"){let y=l[b]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[b];return w&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function wH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Fp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function _H(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function lh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function xH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:SH(r,t):t,search:PH(n),hash:TH(o)}}function SH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function B_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function DR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function CP(e,t){let r=DR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function PP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Pt(!o.pathname||!o.pathname.includes("?"),B_("?","pathname","search",o)),Pt(!o.pathname||!o.pathname.includes("#"),B_("#","pathname","hash",o)),Pt(!o.search||!o.search.includes("#"),B_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let b=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),b-=1;o.pathname=S.join("/")}l=b>=0?t[b]:"/"}let s=xH(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),CH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class T1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Bv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FR=["post","put","patch","delete"],OH=new Set(FR),kH=["get",...FR],EH=new Set(kH),MH=new Set([301,302,303,307,308]),RH=new Set([307,308]),U_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},D0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},TP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jR="remix-router-transitions";function IH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ae=e.detectErrorBoundary;o=pe=>({hasErrorBoundary:ae(pe)})}else o=AH;let i={},a=rv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||VH,v=e.unstable_patchRoutesOnNavigation,b=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,w=new Set,P=1e3,y=new Set,C=null,h=null,p=null,c=e.hydrationData!=null,g=Uc(a,e.history.location,s),m=null;if(g==null&&!v){let ae=ko(404,{pathname:e.history.location.pathname}),{matches:pe,route:xe}=M6(a);g=pe,m={[xe.id]:ae}}g&&!e.hydrationData&&bo(g,a,e.history.location.pathname).active&&(g=null);let _;if(g)if(g.some(ae=>ae.route.lazy))_=!1;else if(!g.some(ae=>ae.route.loader))_=!0;else if(b.v7_partialHydration){let ae=e.hydrationData?e.hydrationData.loaderData:null,pe=e.hydrationData?e.hydrationData.errors:null,xe=Oe=>Oe.route.loader?typeof Oe.route.loader=="function"&&Oe.route.loader.hydrate===!0?!1:ae&&ae[Oe.route.id]!==void 0||pe&&pe[Oe.route.id]!==void 0:!0;if(pe){let Oe=g.findIndex(Ue=>pe[Ue.route.id]!==void 0);_=g.slice(0,Oe+1).every(xe)}else _=g.every(xe)}else _=e.hydrationData!=null;else if(_=!1,g=[],b.v7_partialHydration){let ae=bo(null,a,e.history.location.pathname);ae.active&&ae.matches&&(g=ae.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:g,initialized:_,navigation:U_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,U=!1,q=!1,J=[],Q=new Set,W=new Map,Y=0,re=-1,ne=new Map,se=new Set,ve=new Map,we=new Map,ce=new Set,ee=new Map,oe=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(ae=>{let{action:pe,location:xe,delta:Oe}=ae;if(Se){Se(),Se=void 0;return}Fp(oe.size===0||Oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=Li({currentLocation:k.location,nextLocation:xe,historyAction:pe});if(Ue&&Oe!=null){let Qe=new Promise(ut=>{Se=ut});e.history.go(Oe*-1),sn(Ue,{state:"blocked",location:xe,proceed(){sn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Qe.then(()=>e.history.go(Oe))},reset(){let ut=new Map(k.blockers);ut.set(Ue,D0),Re({blockers:ut})}});return}return Ye(pe,xe)}),r){tW(t,V);let ae=()=>rW(t,V);t.addEventListener("pagehide",ae),B=()=>t.removeEventListener("pagehide",ae)}return k.initialized||Ye(rn.Pop,k.location,{initialHydration:!0}),T}function Me(){S&&S(),B&&B(),w.clear(),A&&A.abort(),k.fetchers.forEach((ae,pe)=>Yt(pe)),k.blockers.forEach((ae,pe)=>Ka(pe))}function Ie(ae){return w.add(ae),()=>w.delete(ae)}function Re(ae,pe){pe===void 0&&(pe={}),k=Tr({},k,ae);let xe=[],Oe=[];b.v7_fetcherPersist&&k.fetchers.forEach((Ue,Qe)=>{Ue.state==="idle"&&(ce.has(Qe)?Oe.push(Qe):xe.push(Qe))}),[...w].forEach(Ue=>Ue(k,{deletedFetchers:Oe,unstable_viewTransitionOpts:pe.viewTransitionOpts,unstable_flushSync:pe.flushSync===!0})),b.v7_fetcherPersist&&(xe.forEach(Ue=>k.fetchers.delete(Ue)),Oe.forEach(Ue=>Yt(Ue)))}function ye(ae,pe,xe){var Oe,Ue;let{flushSync:Qe}=xe===void 0?{}:xe,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Oe=ae.state)==null?void 0:Oe._isRedirect)!==!0,je;pe.actionData?Object.keys(pe.actionData).length>0?je=pe.actionData:je=null:ut?je=k.actionData:je=null;let Ze=pe.loaderData?k6(k.loaderData,pe.loaderData,pe.matches||[],pe.errors):k.loaderData,$e=k.blockers;$e.size>0&&($e=new Map($e),$e.forEach((Nt,Ut)=>$e.set(Ut,D0)));let Ge=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Ue=ae.state)==null?void 0:Ue._isRedirect)!==!0;l&&(a=l,l=void 0),U||R===rn.Pop||(R===rn.Push?e.history.push(ae,ae.state):R===rn.Replace&&e.history.replace(ae,ae.state));let kt;if(R===rn.Pop){let Nt=V.get(k.location.pathname);Nt&&Nt.has(ae.pathname)?kt={currentLocation:k.location,nextLocation:ae}:V.has(ae.pathname)&&(kt={currentLocation:ae,nextLocation:k.location})}else if(F){let Nt=V.get(k.location.pathname);Nt?Nt.add(ae.pathname):(Nt=new Set([ae.pathname]),V.set(k.location.pathname,Nt)),kt={currentLocation:k.location,nextLocation:ae}}Re(Tr({},pe,{actionData:je,loaderData:Ze,historyAction:R,location:ae,initialized:!0,navigation:U_,revalidation:"idle",restoreScrollPosition:Fi(ae,pe.matches||k.matches),preventScrollReset:Ge,blockers:$e}),{viewTransitionOpts:kt,flushSync:Qe===!0}),R=rn.Pop,E=!1,F=!1,U=!1,q=!1,J=[]}async function ke(ae,pe){if(typeof ae=="number"){e.history.go(ae);return}let xe=$S(k.location,k.matches,s,b.v7_prependBasename,ae,b.v7_relativeSplatPath,pe==null?void 0:pe.fromRouteId,pe==null?void 0:pe.relative),{path:Oe,submission:Ue,error:Qe}=x6(b.v7_normalizeFormMethod,!1,xe,pe),ut=k.location,je=tv(k.location,Oe,pe&&pe.state);je=Tr({},je,e.history.encodeLocation(je));let Ze=pe&&pe.replace!=null?pe.replace:void 0,$e=rn.Push;Ze===!0?$e=rn.Replace:Ze===!1||Ue!=null&&Ea(Ue.formMethod)&&Ue.formAction===k.location.pathname+k.location.search&&($e=rn.Replace);let Ge=pe&&"preventScrollReset"in pe?pe.preventScrollReset===!0:void 0,kt=(pe&&pe.unstable_flushSync)===!0,Nt=Li({currentLocation:ut,nextLocation:je,historyAction:$e});if(Nt){sn(Nt,{state:"blocked",location:je,proceed(){sn(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),ke(ae,pe)},reset(){let Ut=new Map(k.blockers);Ut.set(Nt,D0),Re({blockers:Ut})}});return}return await Ye($e,je,{submission:Ue,pendingError:Qe,preventScrollReset:Ge,replace:pe&&pe.replace,enableViewTransition:pe&&pe.unstable_viewTransition,flushSync:kt})}function ze(){if(Qn(),Re({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Ye(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Ye(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function Ye(ae,pe,xe){A&&A.abort(),A=null,R=ae,U=(xe&&xe.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(xe&&xe.preventScrollReset)===!0,F=(xe&&xe.enableViewTransition)===!0;let Oe=l||a,Ue=xe&&xe.overrideNavigation,Qe=Uc(Oe,pe,s),ut=(xe&&xe.flushSync)===!0,je=bo(Qe,Oe,pe.pathname);if(je.active&&je.matches&&(Qe=je.matches),!Qe){let{error:bt,notFoundMatches:dr,route:or}=fa(pe.pathname);ye(pe,{matches:dr,loaderData:{},errors:{[or.id]:bt}},{flushSync:ut});return}if(k.initialized&&!q&&GH(k.location,pe)&&!(xe&&xe.submission&&Ea(xe.submission.formMethod))){ye(pe,{matches:Qe},{flushSync:ut});return}A=new AbortController;let Ze=Rf(e.history,pe,A.signal,xe&&xe.submission),$e;if(xe&&xe.pendingError)$e=[Qf(Qe).route.id,{type:rr.error,error:xe.pendingError}];else if(xe&&xe.submission&&Ea(xe.submission.formMethod)){let bt=await Mt(Ze,pe,xe.submission,Qe,je.active,{replace:xe.replace,flushSync:ut});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[dr,or]=bt.pendingActionResult;if(wi(or)&&Bv(or.error)&&or.error.status===404){A=null,ye(pe,{matches:bt.matches,loaderData:{},errors:{[dr]:or.error}});return}}Qe=bt.matches||Qe,$e=bt.pendingActionResult,Ue=H_(pe,xe.submission),ut=!1,je.active=!1,Ze=Rf(e.history,Ze.url,Ze.signal)}let{shortCircuited:Ge,matches:kt,loaderData:Nt,errors:Ut}=await gt(Ze,pe,Qe,je.active,Ue,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,ut,$e);Ge||(A=null,ye(pe,Tr({matches:kt||Qe},E6($e),{loaderData:Nt,errors:Ut})))}async function Mt(ae,pe,xe,Oe,Ue,Qe){Qe===void 0&&(Qe={}),Qn();let ut=JH(pe,xe);if(Re({navigation:ut},{flushSync:Qe.flushSync===!0}),Ue){let $e=await ni(Oe,pe.pathname,ae.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let{boundaryId:Ge,error:kt}=$r(pe.pathname,$e);return{matches:$e.partialMatches,pendingActionResult:[Ge,{type:rr.error,error:kt}]}}else if($e.matches)Oe=$e.matches;else{let{notFoundMatches:Ge,error:kt,route:Nt}=fa(pe.pathname);return{matches:Ge,pendingActionResult:[Nt.id,{type:rr.error,error:kt}]}}}let je,Ze=ig(Oe,pe);if(!Ze.route.action&&!Ze.route.lazy)je={type:rr.error,error:ko(405,{method:ae.method,pathname:pe.pathname,routeId:Ze.route.id})};else if(je=(await Dr("action",k,ae,[Ze],Oe,null))[Ze.route.id],ae.signal.aborted)return{shortCircuited:!0};if(Gc(je)){let $e;return Qe&&Qe.replace!=null?$e=Qe.replace:$e=P6(je.response.headers.get("Location"),new URL(ae.url),s)===k.location.pathname+k.location.search,await Jt(ae,je,!0,{submission:xe,replace:$e}),{shortCircuited:!0}}if(su(je))throw ko(400,{type:"defer-action"});if(wi(je)){let $e=Qf(Oe,Ze.route.id);return(Qe&&Qe.replace)!==!0&&(R=rn.Push),{matches:Oe,pendingActionResult:[$e.route.id,je]}}return{matches:Oe,pendingActionResult:[Ze.route.id,je]}}async function gt(ae,pe,xe,Oe,Ue,Qe,ut,je,Ze,$e,Ge){let kt=Ue||H_(pe,Qe),Nt=Qe||ut||N6(kt),Ut=!U&&(!b.v7_partialHydration||!Ze);if(Oe){if(Ut){let It=xt(Ge);Re(Tr({navigation:kt},It!==void 0?{actionData:It}:{}),{flushSync:$e})}let He=await ni(xe,pe.pathname,ae.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let{boundaryId:It,error:at}=$r(pe.pathname,He);return{matches:He.partialMatches,loaderData:{},errors:{[It]:at}}}else if(He.matches)xe=He.matches;else{let{error:It,notFoundMatches:at,route:rt}=fa(pe.pathname);return{matches:at,loaderData:{},errors:{[rt.id]:It}}}}let bt=l||a,[dr,or]=S6(e.history,k,xe,Nt,pe,b.v7_partialHydration&&Ze===!0,b.v7_skipActionErrorRevalidation,q,J,Q,ce,ve,se,bt,s,Ge);if(Di(He=>!(xe&&xe.some(It=>It.route.id===He))||dr&&dr.some(It=>It.route.id===He)),re=++Y,dr.length===0&&or.length===0){let He=da();return ye(pe,Tr({matches:xe,loaderData:{},errors:Ge&&wi(Ge[1])?{[Ge[0]]:Ge[1].error}:null},E6(Ge),He?{fetchers:new Map(k.fetchers)}:{}),{flushSync:$e}),{shortCircuited:!0}}if(Ut){let He={};if(!Oe){He.navigation=kt;let It=xt(Ge);It!==void 0&&(He.actionData=It)}or.length>0&&(He.fetchers=zt(or)),Re(He,{flushSync:$e})}or.forEach(He=>{W.has(He.key)&&Qr(He.key),He.controller&&W.set(He.key,He.controller)});let Fn=()=>or.forEach(He=>Qr(He.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,xe,dr,or,ae);if(ae.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),or.forEach(He=>W.delete(He.key));let Zn=Ey(Fr);if(Zn)return await Jt(ae,Zn.result,!0,{replace:je}),{shortCircuited:!0};if(Zn=Ey(jn),Zn)return se.add(Zn.key),await Jt(ae,Zn.result,!0,{replace:je}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=O6(k,xe,dr,Fr,Ge,or,jn,ee);ee.forEach((He,It)=>{He.subscribe(at=>{(at||He.done)&&ee.delete(It)})}),b.v7_partialHydration&&Ze&&k.errors&&Object.entries(k.errors).filter(He=>{let[It]=He;return!dr.some(at=>at.route.id===It)}).forEach(He=>{let[It,at]=He;zn=Object.assign(zn||{},{[It]:at})});let un=da(),Zr=Sn(re),At=un||Zr||or.length>0;return Tr({matches:xe,loaderData:ji,errors:zn},At?{fetchers:new Map(k.fetchers)}:{})}function xt(ae){if(ae&&!wi(ae[1]))return{[ae[0]]:ae[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function zt(ae){return ae.forEach(pe=>{let xe=k.fetchers.get(pe.key),Oe=F0(void 0,xe?xe.data:void 0);k.fetchers.set(pe.key,Oe)}),new Map(k.fetchers)}function Ht(ae,pe,xe,Oe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(ae)&&Qr(ae);let Ue=(Oe&&Oe.unstable_flushSync)===!0,Qe=l||a,ut=$S(k.location,k.matches,s,b.v7_prependBasename,xe,b.v7_relativeSplatPath,pe,Oe==null?void 0:Oe.relative),je=Uc(Qe,ut,s),Ze=bo(je,Qe,ut);if(Ze.active&&Ze.matches&&(je=Ze.matches),!je){nr(ae,pe,ko(404,{pathname:ut}),{flushSync:Ue});return}let{path:$e,submission:Ge,error:kt}=x6(b.v7_normalizeFormMethod,!0,ut,Oe);if(kt){nr(ae,pe,kt,{flushSync:Ue});return}let Nt=ig(je,$e);if(E=(Oe&&Oe.preventScrollReset)===!0,Ge&&Ea(Ge.formMethod)){mt(ae,pe,$e,Nt,je,Ze.active,Ue,Ge);return}ve.set(ae,{routeId:pe,path:$e}),Ot(ae,pe,$e,Nt,je,Ze.active,Ue,Ge)}async function mt(ae,pe,xe,Oe,Ue,Qe,ut,je){Qn(),ve.delete(ae);function Ze(rt){if(!rt.route.action&&!rt.route.lazy){let St=ko(405,{method:je.formMethod,pathname:xe,routeId:pe});return nr(ae,pe,St,{flushSync:ut}),!0}return!1}if(!Qe&&Ze(Oe))return;let $e=k.fetchers.get(ae);Ln(ae,eW(je,$e),{flushSync:ut});let Ge=new AbortController,kt=Rf(e.history,xe,Ge.signal,je);if(Qe){let rt=await ni(Ue,xe,kt.signal);if(rt.type==="aborted")return;if(rt.type==="error"){let{error:St}=$r(xe,rt);nr(ae,pe,St,{flushSync:ut});return}else if(rt.matches){if(Ue=rt.matches,Oe=ig(Ue,xe),Ze(Oe))return}else{nr(ae,pe,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(ae,Ge);let Nt=Y,bt=(await Dr("action",k,kt,[Oe],Ue,ae))[Oe.route.id];if(kt.signal.aborted){W.get(ae)===Ge&&W.delete(ae);return}if(b.v7_fetcherPersist&&ce.has(ae)){if(Gc(bt)||wi(bt)){Ln(ae,Ks(void 0));return}}else{if(Gc(bt))if(W.delete(ae),re>Nt){Ln(ae,Ks(void 0));return}else return se.add(ae),Ln(ae,F0(je)),Jt(kt,bt,!1,{fetcherSubmission:je});if(wi(bt)){nr(ae,pe,bt.error);return}}if(su(bt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,or=Rf(e.history,dr,Ge.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Pt(Fr,"Didn't find any matches after fetcher action");let jn=++Y;ne.set(ae,jn);let Zn=F0(je,bt.data);k.fetchers.set(ae,Zn);let[ji,zn]=S6(e.history,k,Fr,je,dr,!1,b.v7_skipActionErrorRevalidation,q,J,Q,ce,ve,se,Fn,s,[Oe.route.id,bt]);zn.filter(rt=>rt.key!==ae).forEach(rt=>{let St=rt.key,cn=k.fetchers.get(St),wr=F0(void 0,cn?cn.data:void 0);k.fetchers.set(St,wr),W.has(St)&&Qr(St),rt.controller&&W.set(St,rt.controller)}),Re({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(rt=>Qr(rt.key));Ge.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:At}=await ln(k,Fr,ji,zn,or);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",un),ne.delete(ae),W.delete(ae),zn.forEach(rt=>W.delete(rt.key));let He=Ey(Zr);if(He)return Jt(or,He.result,!1);if(He=Ey(At),He)return se.add(He.key),Jt(or,He.result,!1);let{loaderData:It,errors:at}=O6(k,Fr,ji,Zr,void 0,zn,At,ee);if(k.fetchers.has(ae)){let rt=Ks(bt.data);k.fetchers.set(ae,rt)}Sn(jn),k.navigation.state==="loading"&&jn>re?(Pt(R,"Expected pending action"),A&&A.abort(),ye(k.navigation.location,{matches:Fr,loaderData:It,errors:at,fetchers:new Map(k.fetchers)})):(Re({errors:at,loaderData:k6(k.loaderData,It,Fr,at),fetchers:new Map(k.fetchers)}),q=!1)}async function Ot(ae,pe,xe,Oe,Ue,Qe,ut,je){let Ze=k.fetchers.get(ae);Ln(ae,F0(je,Ze?Ze.data:void 0),{flushSync:ut});let $e=new AbortController,Ge=Rf(e.history,xe,$e.signal);if(Qe){let bt=await ni(Ue,xe,Ge.signal);if(bt.type==="aborted")return;if(bt.type==="error"){let{error:dr}=$r(xe,bt);nr(ae,pe,dr,{flushSync:ut});return}else if(bt.matches)Ue=bt.matches,Oe=ig(Ue,xe);else{nr(ae,pe,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(ae,$e);let kt=Y,Ut=(await Dr("loader",k,Ge,[Oe],Ue,ae))[Oe.route.id];if(su(Ut)&&(Ut=await OP(Ut,Ge.signal,!0)||Ut),W.get(ae)===$e&&W.delete(ae),!Ge.signal.aborted){if(ce.has(ae)){Ln(ae,Ks(void 0));return}if(Gc(Ut))if(re>kt){Ln(ae,Ks(void 0));return}else{se.add(ae),await Jt(Ge,Ut,!1);return}if(wi(Ut)){nr(ae,pe,Ut.error);return}Pt(!su(Ut),"Unhandled fetcher deferred data"),Ln(ae,Ks(Ut.data))}}async function Jt(ae,pe,xe,Oe){let{submission:Ue,fetcherSubmission:Qe,replace:ut}=Oe===void 0?{}:Oe;pe.response.headers.has("X-Remix-Revalidate")&&(q=!0);let je=pe.response.headers.get("Location");Pt(je,"Expected a Location header on the redirect Response"),je=P6(je,new URL(ae.url),s);let Ze=tv(k.location,je,{_isRedirect:!0});if(r){let bt=!1;if(pe.response.headers.has("X-Remix-Reload-Document"))bt=!0;else if(TP.test(je)){const dr=e.history.createURL(je);bt=dr.origin!==t.location.origin||lh(dr.pathname,s)==null}if(bt){ut?t.location.replace(je):t.location.assign(je);return}}A=null;let $e=ut===!0||pe.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:Ge,formAction:kt,formEncType:Nt}=k.navigation;!Ue&&!Qe&&Ge&&kt&&Nt&&(Ue=N6(k.navigation));let Ut=Ue||Qe;if(RH.has(pe.response.status)&&Ut&&Ea(Ut.formMethod))await Ye($e,Ze,{submission:Tr({},Ut,{formAction:je}),preventScrollReset:E,enableViewTransition:xe?F:void 0});else{let bt=H_(Ze,Ue);await Ye($e,Ze,{overrideNavigation:bt,fetcherSubmission:Qe,preventScrollReset:E,enableViewTransition:xe?F:void 0})}}async function Dr(ae,pe,xe,Oe,Ue,Qe){let ut,je={};try{ut=await BH(d,ae,pe,xe,Oe,Ue,Qe,i,o)}catch(Ze){return Oe.forEach($e=>{je[$e.route.id]={type:rr.error,error:Ze}}),je}for(let[Ze,$e]of Object.entries(ut))if(qH($e)){let Ge=$e.result;je[Ze]={type:rr.redirect,response:WH(Ge,xe,Ze,Ue,s,b.v7_relativeSplatPath)}}else je[Ze]=await HH($e);return je}async function ln(ae,pe,xe,Oe,Ue){let Qe=ae.matches,ut=Dr("loader",ae,Ue,xe,pe,null),je=Promise.all(Oe.map(async Ge=>{if(Ge.matches&&Ge.match&&Ge.controller){let Nt=(await Dr("loader",ae,Rf(e.history,Ge.path,Ge.controller.signal),[Ge.match],Ge.matches,Ge.key))[Ge.match.route.id];return{[Ge.key]:Nt}}else return Promise.resolve({[Ge.key]:{type:rr.error,error:ko(404,{pathname:Ge.path})}})})),Ze=await ut,$e=(await je).reduce((Ge,kt)=>Object.assign(Ge,kt),{});return await Promise.all([QH(pe,Ze,Ue.signal,Qe,ae.loaderData),ZH(pe,$e,Oe)]),{loaderResults:Ze,fetcherResults:$e}}function Qn(){q=!0,J.push(...Di()),ve.forEach((ae,pe)=>{W.has(pe)&&(Q.add(pe),Qr(pe))})}function Ln(ae,pe,xe){xe===void 0&&(xe={}),k.fetchers.set(ae,pe),Re({fetchers:new Map(k.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function nr(ae,pe,xe,Oe){Oe===void 0&&(Oe={});let Ue=Qf(k.matches,pe);Yt(ae),Re({errors:{[Ue.route.id]:xe},fetchers:new Map(k.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function mo(ae){return b.v7_fetcherPersist&&(we.set(ae,(we.get(ae)||0)+1),ce.has(ae)&&ce.delete(ae)),k.fetchers.get(ae)||NH}function Yt(ae){let pe=k.fetchers.get(ae);W.has(ae)&&!(pe&&pe.state==="loading"&&ne.has(ae))&&Qr(ae),ve.delete(ae),ne.delete(ae),se.delete(ae),ce.delete(ae),Q.delete(ae),k.fetchers.delete(ae)}function yo(ae){if(b.v7_fetcherPersist){let pe=(we.get(ae)||0)-1;pe<=0?(we.delete(ae),ce.add(ae)):we.set(ae,pe)}else Yt(ae);Re({fetchers:new Map(k.fetchers)})}function Qr(ae){let pe=W.get(ae);Pt(pe,"Expected fetch controller: "+ae),pe.abort(),W.delete(ae)}function Cl(ae){for(let pe of ae){let xe=mo(pe),Oe=Ks(xe.data);k.fetchers.set(pe,Oe)}}function da(){let ae=[],pe=!1;for(let xe of se){let Oe=k.fetchers.get(xe);Pt(Oe,"Expected fetcher: "+xe),Oe.state==="loading"&&(se.delete(xe),ae.push(xe),pe=!0)}return Cl(ae),pe}function Sn(ae){let pe=[];for(let[xe,Oe]of ne)if(Oe0}function Pl(ae,pe){let xe=k.blockers.get(ae)||D0;return oe.get(ae)!==pe&&oe.set(ae,pe),xe}function Ka(ae){k.blockers.delete(ae),oe.delete(ae)}function sn(ae,pe){let xe=k.blockers.get(ae)||D0;Pt(xe.state==="unblocked"&&pe.state==="blocked"||xe.state==="blocked"&&pe.state==="blocked"||xe.state==="blocked"&&pe.state==="proceeding"||xe.state==="blocked"&&pe.state==="unblocked"||xe.state==="proceeding"&&pe.state==="unblocked","Invalid blocker state transition: "+xe.state+" -> "+pe.state);let Oe=new Map(k.blockers);Oe.set(ae,pe),Re({blockers:Oe})}function Li(ae){let{currentLocation:pe,nextLocation:xe,historyAction:Oe}=ae;if(oe.size===0)return;oe.size>1&&Fp(!1,"A router only supports one blocker at a time");let Ue=Array.from(oe.entries()),[Qe,ut]=Ue[Ue.length-1],je=k.blockers.get(Qe);if(!(je&&je.state==="proceeding")&&ut({currentLocation:pe,nextLocation:xe,historyAction:Oe}))return Qe}function fa(ae){let pe=ko(404,{pathname:ae}),xe=l||a,{matches:Oe,route:Ue}=M6(xe);return Di(),{notFoundMatches:Oe,route:Ue,error:pe}}function $r(ae,pe){return{boundaryId:Qf(pe.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:ae,message:pe.error!=null&&"message"in pe.error?pe.error:String(pe.error)})}}function Di(ae){let pe=[];return ee.forEach((xe,Oe)=>{(!ae||ae(Oe))&&(xe.cancel(),pe.push(Oe),ee.delete(Oe))}),pe}function Ts(ae,pe,xe){if(C=ae,p=pe,h=xe||null,!c&&k.navigation===U_){c=!0;let Oe=Fi(k.location,k.matches);Oe!=null&&Re({restoreScrollPosition:Oe})}return()=>{C=null,p=null,h=null}}function pa(ae,pe){return h&&h(ae,pe.map(Oe=>uH(Oe,k.loaderData)))||ae.key}function Dn(ae,pe){if(C&&p){let xe=pa(ae,pe);C[xe]=p()}}function Fi(ae,pe){if(C){let xe=pa(ae,pe),Oe=C[xe];if(typeof Oe=="number")return Oe}return null}function bo(ae,pe,xe){if(v){if(y.has(xe))return{active:!1,matches:ae};if(ae){if(Object.keys(ae[0].params).length>0)return{active:!0,matches:Cb(pe,xe,s,!0)}}else return{active:!0,matches:Cb(pe,xe,s,!0)||[]}}return{active:!1,matches:null}}async function ni(ae,pe,xe){let Oe=ae;for(;;){let Ue=l==null,Qe=l||a;try{await jH(v,pe,Oe,Qe,i,o,ue,xe)}catch(Ze){return{type:"error",error:Ze,partialMatches:Oe}}finally{Ue&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let ut=Uc(Qe,pe,s);if(ut)return ha(pe,y),{type:"success",matches:ut};let je=Cb(Qe,pe,s,!0);if(!je||Oe.length===je.length&&Oe.every((Ze,$e)=>Ze.route.id===je[$e].route.id))return ha(pe,y),{type:"success",matches:null};Oe=je}}function ha(ae,pe){if(pe.size>=P){let xe=pe.values().next().value;pe.delete(xe)}pe.add(ae)}function Os(ae){i={},l=rv(ae,o,void 0,i)}function ga(ae,pe){let xe=l==null;VR(ae,pe,l||a,i,o),xe&&(a=[...a],Re({}))}return T={get basename(){return s},get future(){return b},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:Ie,enableScrollRestoration:Ts,navigate:ke,fetch:Ht,revalidate:ze,createHref:ae=>e.history.createHref(ae),encodeLocation:ae=>e.history.encodeLocation(ae),getFetcher:mo,deleteFetcher:yo,dispose:Me,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:ee,_internalSetRoutes:Os},T}function LH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $S(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let b of t)if(s.push(b),b.route.id===a){d=b;break}}else s=t,d=t[t.length-1];let v=PP(o||".",CP(s,i),lh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!kP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function x6(e,t,r,n){if(!n||!LH(n))return{path:r};if(n.formMethod&&!XH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=BR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,P)=>{let[y,C]=P;return""+w+y+"="+C+` -`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Pt(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=GS(n.formData),d=n.formData;else if(n.body instanceof FormData)s=GS(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=T6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=T6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let b=zu(r);return t&&b.search&&kP(b.search)&&s.append("index",""),b.search="?"+s,{path:ad(b),submission:v}}function DH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function S6(e,t,r,n,o,i,a,l,s,d,v,b,S,w,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,h=e.createURL(t.location),p=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,g=c?DH(r,c):r,m=y?y[1].statusCode:void 0,_=a&&m&&m>=400,T=g.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(FH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return C6(R,Tr({currentUrl:h,currentParams:F.params,nextUrl:p,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||zR(F,V)}))}),k=[];return b.forEach((R,E)=>{if(i||!r.some(U=>U.route.id===R.routeId)||v.has(E))return;let A=Uc(w,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ig(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=C6(V,Tr({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function FH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function zR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function C6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function jH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,b)=>{l.aborted||VR(v,b,n,o,i)}}),a.set(s,d)),d&&KH(d)&&await d}finally{a.delete(s)}}function VR(e,t,r,n,o){if(e){var i;let a=n[e];Pt(a,"No route found to patch children into: routeId = "+e);let l=rv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=rv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function zH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Pt(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";Fp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!lH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function VH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function BH(e,t,r,n,o,i,a,l,s,d){let v=i.map(w=>w.route.lazy?zH(w.route,s,l):void 0),b=i.map((w,P)=>{let y=v[P],C=o.some(p=>p.route.id===w.route.id);return Tr({},w,{shouldLoad:C,resolve:async p=>(p&&n.method==="GET"&&(w.route.lazy||w.route.loader)&&(C=!0),C?UH(t,n,w,y,p,d):Promise.resolve({type:rr.data,result:void 0}))})}),S=await e({matches:b,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function UH(e,t,r,n,o,i){let a,l,s=d=>{let v,b=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),w=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([w,b])};try{let d=r.route[e];if(n)if(d){let v,[b]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=b}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),b=v.pathname+v.search;throw ko(405,{method:t.method,pathname:b,routeId:r.route.id})}else return{type:rr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),b=v.pathname+v.search;throw ko(404,{pathname:b})}Pt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:rr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function HH(e){let{result:t,type:r}=e;if(UR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:rr.error,error:v}}return r===rr.error?{type:rr.error,error:new T1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:rr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===rr.error){if(R6(t)){var n;if(t.data instanceof Error){var o;return{type:rr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new T1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:Bv(t)?t.status:void 0}}if(YH(t)){var i,a;return{type:rr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(R6(t)){var l,s;return{type:rr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function WH(e,t,r,n,o,i){let a=e.headers.get("Location");if(Pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!TP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=$S(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function P6(e,t,r){if(TP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=lh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(BR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=GS(n.formData):i.body=n.formData}return new Request(o,i)}function GS(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function T6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function $H(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let S=b.route.id,w=t[S];if(Pt(!Gc(w),"Cannot handle redirect results in processLoaderData"),wi(w)){let P=w.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Qf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Bv(w.error)?w.error.status:500),w.headers&&(d[S]=w.headers)}else su(w)?(n.set(S,w.deferredData),i[S]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers)):(i[S]=w.data,w.statusCode&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function O6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=$H(t,n,o,l);return i.forEach(v=>{let{key:b,match:S,controller:w}=v,P=a[b];if(Pt(P,"Did not find corresponding fetcher result"),!(w&&w.signal.aborted))if(wi(P)){let y=Qf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(b)}else if(Gc(P))Pt(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Pt(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(b,y)}}),{loaderData:s,errors:d}}function k6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function E6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Qf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function M6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new T1(e||500,l,new Error(s),!0)}function Ey(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function BR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function GH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function KH(e){return typeof e=="object"&&e!=null&&"then"in e}function qH(e){return UR(e.result)&&MH.has(e.result.status)}function su(e){return e.type===rr.deferred}function wi(e){return e.type===rr.error}function Gc(e){return(e&&e.type)===rr.redirect}function R6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function YH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function UR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XH(e){return EH.has(e.toLowerCase())}function Ea(e){return OH.has(e.toLowerCase())}async function QH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),b=v!=null&&!zR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&b&&await OP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function ZH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Pt(a,"Expected an AbortController for revalidating fetcher deferred result"),await OP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function OP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function kP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ig(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&kP(r||""))return e[e.length-1];let n=DR(e);return n[n.length-1]}function N6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function H_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function JH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function F0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eW(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tW(e,t){try{let r=e.sessionStorage.getItem(jR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function rW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(jR,JSON.stringify(r))}catch(n){Fp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** - * React Router v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),X.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let b=PP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(b.pathname=b.pathname==="/"?t:ts([t,b.pathname])),(v.replace?n.replace:n.push)(b,v.state,v)},[t,n,a,i,e])}function GR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=X.useContext(bd),{matches:o}=X.useContext(wd),{pathname:i}=Qw(),a=JSON.stringify(CP(o,n.v7_relativeSplatPath));return X.useMemo(()=>PP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function aW(e,t,r,n){Uv()||Pt(!1);let{navigator:o}=X.useContext(bd),{matches:i}=X.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Qw(),v;v=d;let b=v.pathname||"/",S=b;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(y.length).join("/")}let w=Uc(e,{pathname:S});return dW(w&&w.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function lW(){let e=XR(),t=Bv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},t),r?X.createElement("pre",{style:o},r):null,null)}const sW=X.createElement(lW,null);class uW extends X.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?X.createElement(wd.Provider,{value:this.props.routeContext},X.createElement(WR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cW(e){let{routeContext:t,match:r,children:n}=e,o=X.useContext(Xw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),X.createElement(wd.Provider,{value:t},n)}function dW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(b=>b.route.id&&(l==null?void 0:l[b.route.id])!==void 0);v>=0||Pt(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,b,S)=>{let w,P=!1,y=null,C=null;r&&(w=l&&b.route.id?l[b.route.id]:void 0,y=b.route.errorElement||sW,s&&(d<0&&S===0?(vW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=b.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,S+1)),p=()=>{let c;return w?c=y:P?c=C:b.route.Component?c=X.createElement(b.route.Component,null):b.route.element?c=b.route.element:c=v,X.createElement(cW,{match:b,routeContext:{outlet:v,matches:h,isDataRoute:r!=null},children:c})};return r&&(b.route.ErrorBoundary||b.route.errorElement||S===0)?X.createElement(uW,{location:r.location,revalidation:r.revalidation,component:y,error:w,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var KR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(KR||{}),qR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(qR||{});function fW(e){let t=X.useContext(Xw);return t||Pt(!1),t}function pW(e){let t=X.useContext(HR);return t||Pt(!1),t}function hW(e){let t=X.useContext(wd);return t||Pt(!1),t}function YR(e){let t=hW(),r=t.matches[t.matches.length-1];return r.route.id||Pt(!1),r.route.id}function XR(){var e;let t=X.useContext(WR),r=pW(qR.UseRouteError),n=YR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function gW(){let{router:e}=fW(KR.UseNavigateStable),t=YR(),r=X.useRef(!1);return $R(()=>{r.current=!0}),X.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,O1({fromRouteId:t},i)))},[e,t])}const A6={};function vW(e,t,r){A6[e]||(A6[e]=!0)}function KS(e){Pt(!1)}function mW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Uv()&&Pt(!1);let s=t.replace(/^\/*/,"/"),d=X.useMemo(()=>({basename:s,navigator:i,static:a,future:O1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:b="",hash:S="",state:w=null,key:P="default"}=n,y=X.useMemo(()=>{let C=lh(v,s);return C==null?null:{location:{pathname:C,search:b,hash:S,state:w,key:P},navigationType:o}},[s,v,b,S,w,P,o]);return y==null?null:X.createElement(bd.Provider,{value:d},X.createElement(EP.Provider,{children:r,value:y}))}new Promise(()=>{});function qS(e,t){t===void 0&&(t=[]);let r=[];return X.Children.forEach(e,(n,o)=>{if(!X.isValidElement(n))return;let i=[...t,o];if(n.type===X.Fragment){r.push.apply(r,qS(n.props.children,i));return}n.type!==KS&&Pt(!1),!n.props.index||!n.props.children||Pt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=qS(n.props.children,i)),r.push(a)}),r}function yW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:X.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:X.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:X.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function wW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _W(e,t){return e.button===0&&(!t||t==="_self")&&!wW(e)}const xW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],SW="6";try{window.__reactRouterVersion=SW}catch{}function CW(e,t){return IH({basename:t==null?void 0:t.basename,future:nv({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:oH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||PW(),routes:e,mapRouteProperties:yW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function PW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=nv({},t,{errors:TW(t.errors)})),t}function TW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new T1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const OW=X.createContext({isTransitioning:!1}),kW=X.createContext(new Map),EW="startTransition",I6=Zx[EW],MW="flushSync",L6=nH[MW];function RW(e){I6?I6(e):e()}function j0(e){L6?L6(e):e()}class NW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function AW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=X.useState(r.state),[a,l]=X.useState(),[s,d]=X.useState({isTransitioning:!1}),[v,b]=X.useState(),[S,w]=X.useState(),[P,y]=X.useState(),C=X.useRef(new Map),{v7_startTransition:h}=n||{},p=X.useCallback(k=>{h?RW(k):k()},[h]),c=X.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,U)=>{B.data!==void 0&&C.current.set(U,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?j0(()=>i(k)):p(()=>i(k));return}if(A){j0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{j0(()=>i(k))});B.finished.finally(()=>{j0(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})})}),j0(()=>w(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,p]);X.useLayoutEffect(()=>r.subscribe(c),[r,c]),X.useEffect(()=>{s.isTransitioning&&!s.flushSync&&b(new NW)},[s]),X.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{p(()=>i(k)),await R});E.finished.finally(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})}),w(E)}},[p,a,v,r.window]),X.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),X.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),X.useEffect(()=>{},[]);let g=X.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",_=X.useMemo(()=>({router:r,navigator:g,static:!1,basename:m}),[r,g,m]),T=X.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return X.createElement(X.Fragment,null,X.createElement(Xw.Provider,{value:_},X.createElement(HR.Provider,{value:o},X.createElement(kW.Provider,{value:C.current},X.createElement(OW.Provider,{value:s},X.createElement(mW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:g,future:T},o.initialized||r.future.v7_partialHydration?X.createElement(IW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const IW=X.memo(LW);function LW(e){let{routes:t,future:r,state:n}=e;return aW(t,void 0,n,r)}const DW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k1=X.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:b}=t,S=bW(t,xW),{basename:w}=X.useContext(bd),P,y=!1;if(typeof d=="string"&&FW.test(d)&&(P=d,DW))try{let c=new URL(window.location.href),g=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=lh(g.pathname,w);g.origin===c.origin&&m!=null?d=m+g.search+g.hash:y=!0}catch{}let C=nW(d,{relative:o}),h=jW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:b});function p(c){n&&n(c),c.defaultPrevented||h(c)}return X.createElement("a",nv({},S,{href:P||C,onClick:y||i?n:p,ref:r,target:s}))});var D6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(D6||(D6={}));var F6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(F6||(F6={}));function jW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=oW(),d=Qw(),v=GR(e,{relative:a});return X.useCallback(b=>{if(_W(b,r)){b.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var QR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},j6=Or.createContext&&Or.createContext(QR),zW=["attr","size","title"];function VW(e,t){if(e==null)return{};var r=BW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,M1({key:r},t.attr),ZR(t.child)))}function Zw(e){return t=>Or.createElement($W,E1({attr:M1({},e.attr)},t),ZR(e.child))}function $W(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=VW(e,zW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",E1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:M1(M1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return j6!==void 0?Or.createElement(j6.Consumer,null,r=>t(r)):t(QR)}function GW(e){return Zw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function KW(e){return Zw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function qW(e){return Zw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function V6(e){return Le.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:Le.jsxs(k1,{to:e.path,children:[Le.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function YW(){return Le.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[Le.jsx(k1,{to:"/",children:Le.jsx("div",{className:"sideMenu-header",children:Le.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),Le.jsx("br",{}),Le.jsx("nav",{children:Le.jsxs("ul",{children:[Le.jsx(V6,{icon:GW,label:"Home",path:"/"},"Home"),Le.jsx(V6,{icon:qW,label:"Map",path:"/map"},"Map")]})}),Le.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:Le.jsxs(k1,{to:"/tos",className:"inline-",children:[Le.jsx(KW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function XW({children:e}){return Le.jsxs("div",{className:"bg-black",children:[Le.jsx(YW,{}),Le.jsx("div",{className:"ml-40 pl-2",children:e})]})}var QW={},JR={},e7={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function e$(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,b=new Array(d);vC.length)&&(h=C.length);for(var p=0,c=new Array(h);pc.length)&&(g=c.length);for(var m=0,_=new Array(g);mp.length)&&(c=p.length);for(var g=0,m=new Array(c);gT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rg.length)&&(m=g.length);for(var _=0,T=new Array(m);_h.length)&&(p=h.length);for(var c=0,g=new Array(p);cm.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function i(m){if(Array.isArray(m))return o(m)}function a(m){return m&&m.__esModule?m:{default:m}}function l(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(m){return i(m)||l(m)||v(m)||s()}function v(m,_){if(m){if(typeof m=="string")return o(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(m,_)}}var b=["white"].concat(d(n.propTypesColors)),S=r.default.bool,w=r.default.bool,P=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],C=r.default.string,h=r.default.node,p=r.default.node.isRequired,c=r.default.instanceOf(Object),g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(HP);var ZN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(ZN);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,s){for(var d in s)Object.defineProperty(l,d,{enumerable:!0,get:s[d]})}t(e,{badge:function(){return i},default:function(){return a}});var r=HP,n=o(ZN);function o(l){return l&&l.__esModule?l:{default:l}}var i={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},a=i})(QN);var JN={},WP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{propTypesCount:function(){return b},propTypesValue:function(){return S},propTypesRatedIcon:function(){return w},propTypesUnratedIcon:function(){return P},propTypesColor:function(){return y},propTypesOnChange:function(){return C},propTypesClassName:function(){return h},propTypesReadonly:function(){return p}});var r=a(ot),n=br;function o(c,g){(g==null||g>c.length)&&(g=c.length);for(var m=0,_=new Array(g);mw.length)&&(P=w.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var h=0,p=new Array(C);h"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(SA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return b},useTheme:function(){return S}});var r=d(X),n=l(ot),o=l(Xn),i=l(RP),a=l(SA);function l(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(w)}function d(w,P){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=s(P);if(y&&y.has(w))return y.get(w);var C={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in w)if(p!=="default"&&Object.prototype.hasOwnProperty.call(w,p)){var c=h?Object.getOwnPropertyDescriptor(w,p):null;c&&(c.get||c.set)?Object.defineProperty(C,p,c):C[p]=w[p]}return C.default=w,y&&y.set(w,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function b(w){var P=w.value,y=P===void 0?i.default:P,C=w.children,h=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:h},C)}var S=function(){return(0,r.useContext)(v)};b.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Xe);var e2={},$v={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,w){for(var P in w)Object.defineProperty(S,P,{enumerable:!0,get:w[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return b}});var r=o(ot),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,b=r.default.node.isRequired})($v);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(X),n=$v;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(e2);var CA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=b(X),n=b(pt),o=Je,i=b(et),a=e2,l=Xe,s=$v;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.className,c=C.children,g=S(C,["className","children"]),m=(0,a.useAccordion)(),_=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;p=p??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),_)),p),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},g,{ref:h,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(CA);var PA={},An={},ZS=function(e,t){return ZS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ZS(e,t)};function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ZS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var N1=function(){return N1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function kA(e,t){return function(r,n){t(r,n,e)}}function R$(e,t,r,n,o,i){function a(h){if(h!==void 0&&typeof h!="function")throw new TypeError("Function expected");return h}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),b,S=!1,w=r.length-1;w>=0;w--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(h){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(h||null))};var C=(0,r[w])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(b=a(C.get))&&(v.get=b),(b=a(C.set))&&(v.set=b),(b=a(C.init))&&o.unshift(b)}else(b=a(C))&&(l==="field"?o.unshift(b):v[s]=b)}d&&Object.defineProperty(d,n.name,v),S=!0}function N$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function KP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function AA(){for(var e=[],t=0;t1||s(w,y)})},P&&(o[w]=P(o[w])))}function s(w,P){try{d(n[w](P))}catch(y){S(i[0][3],y)}}function d(w){w.value instanceof zp?Promise.resolve(w.value.v).then(v,b):S(i[0][2],w)}function v(w){s("next",w)}function b(w){s("throw",w)}function S(w,P){w(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function FA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:zp(e[o](a)),done:!1}:i?i(a):a}:i}}function jA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof A1=="function"?A1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function zA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var L$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function VA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&t2(t,e,r);return L$(t,e),t}function BA(e){return e&&e.__esModule?e:{default:e}}function UA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function HA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function WA(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function $A(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var D$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function GA(e){function t(i){e.error=e.hasError?new D$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const F$={__extends:TA,__assign:N1,__rest:uh,__decorate:OA,__param:kA,__metadata:EA,__awaiter:MA,__generator:RA,__createBinding:t2,__exportStar:NA,__values:A1,__read:KP,__spread:AA,__spreadArrays:IA,__spreadArray:LA,__await:zp,__asyncGenerator:DA,__asyncDelegator:FA,__asyncValues:jA,__makeTemplateObject:zA,__importStar:VA,__importDefault:BA,__classPrivateFieldGet:UA,__classPrivateFieldSet:HA,__classPrivateFieldIn:WA,__addDisposableResource:$A,__disposeResources:GA},j$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:$A,get __assign(){return N1},__asyncDelegator:FA,__asyncGenerator:DA,__asyncValues:jA,__await:zp,__awaiter:MA,__classPrivateFieldGet:UA,__classPrivateFieldIn:WA,__classPrivateFieldSet:HA,__createBinding:t2,__decorate:OA,__disposeResources:GA,__esDecorate:R$,__exportStar:NA,__extends:TA,__generator:RA,__importDefault:BA,__importStar:VA,__makeTemplateObject:zA,__metadata:EA,__param:kA,__propKey:A$,__read:KP,__rest:uh,__runInitializers:N$,__setFunctionName:I$,__spread:AA,__spreadArray:LA,__spreadArrays:IA,__values:A1,default:F$},Symbol.toStringTag,{value:"Module"})),KA=Lv(j$);var qA={exports:{}},Ft={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gv=Symbol.for("react.element"),z$=Symbol.for("react.portal"),V$=Symbol.for("react.fragment"),B$=Symbol.for("react.strict_mode"),U$=Symbol.for("react.profiler"),H$=Symbol.for("react.provider"),W$=Symbol.for("react.context"),$$=Symbol.for("react.forward_ref"),G$=Symbol.for("react.suspense"),K$=Symbol.for("react.memo"),q$=Symbol.for("react.lazy"),$6=Symbol.iterator;function Y$(e){return e===null||typeof e!="object"?null:(e=$6&&e[$6]||e["@@iterator"],typeof e=="function"?e:null)}var YA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XA=Object.assign,QA={};function ch(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}ch.prototype.isReactComponent={};ch.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ch.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=ch.prototype;function qP(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}var YP=qP.prototype=new ZA;YP.constructor=qP;XA(YP,ch.prototype);YP.isPureReactComponent=!0;var G6=Array.isArray,JA=Object.prototype.hasOwnProperty,XP={current:null},eI={key:!0,ref:!0,__self:!0,__source:!0};function tI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)JA.call(t,n)&&!eI.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Sg=e=>e%1?Number(e.toFixed(5)):e,iv=/(-)?([\d]*\.?[\d])+/g,JS=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,nG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Kv(e){return typeof e=="string"}const qv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ZP=Object.assign(Object.assign({},qv),{transform:oI(0,1)}),oG=Object.assign(Object.assign({},qv),{default:1}),Yv=e=>({test:t=>Kv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),iG=Yv("deg"),bp=Yv("%"),aG=Yv("px"),lG=Yv("vh"),sG=Yv("vw"),uG=Object.assign(Object.assign({},bp),{parse:e=>bp.parse(e)/100,transform:e=>bp.transform(e*100)}),JP=(e,t)=>r=>!!(Kv(r)&&nG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iI=(e,t,r)=>n=>{if(!Kv(n))return n;const[o,i,a,l]=n.match(iv);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},ag={test:JP("hsl","hue"),parse:iI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+bp.transform(Sg(t))+", "+bp.transform(Sg(r))+", "+Sg(ZP.transform(n))+")"},cG=oI(0,255),kb=Object.assign(Object.assign({},qv),{transform:e=>Math.round(cG(e))}),Zf={test:JP("rgb","red"),parse:iI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+kb.transform(e)+", "+kb.transform(t)+", "+kb.transform(r)+", "+Sg(ZP.transform(n))+")"};function dG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const eC={test:JP("#"),parse:dG,transform:Zf.transform},e3={test:e=>Zf.test(e)||eC.test(e)||ag.test(e),parse:e=>Zf.test(e)?Zf.parse(e):ag.test(e)?ag.parse(e):eC.parse(e),transform:e=>Kv(e)?e:e.hasOwnProperty("red")?Zf.transform(e):ag.transform(e)},aI="${c}",lI="${n}";function fG(e){var t,r,n,o;return isNaN(e)&&Kv(e)&&((r=(t=e.match(iv))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(JS))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function sI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(JS);n&&(r=n.length,e=e.replace(JS,aI),t.push(...n.map(e3.parse)));const o=e.match(iv);return o&&(e=e.replace(iv,lI),t.push(...o.map(qv.parse))),{values:t,numColors:r,tokenised:e}}function uI(e){return sI(e).values}function cI(e){const{values:t,numColors:r,tokenised:n}=sI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function hG(e){const t=uI(e);return cI(e)(t.map(pG))}const dI={test:fG,parse:uI,createTransformer:cI,getAnimatableNone:hG},gG=new Set(["brightness","contrast","saturate","opacity"]);function vG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(iv)||[];if(!n)return e;const o=r.replace(n,"");let i=gG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const mG=/([a-z-]*)\(.*?\)/g,yG=Object.assign(Object.assign({},dI),{getAnimatableNone:e=>{const t=e.match(mG);return t?t.map(vG).join(" "):e}});bn.alpha=ZP;bn.color=e3;bn.complex=dI;bn.degrees=iG;bn.filter=yG;bn.hex=eC;bn.hsla=ag;bn.number=qv;bn.percent=bp;bn.progressPercentage=uG;bn.px=aG;bn.rgbUnit=kb;bn.rgba=Zf;bn.scale=oG;bn.vh=lG;bn.vw=sG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const fI=1/60*1e3,bG=typeof performance<"u"?()=>performance.now():()=>Date.now(),pI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bG()),fI);function wG(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const b=v&&o,S=b?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),b&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=wG(()=>av=!0),e),{}),xG=Xv.reduce((e,t)=>{const r=r2[t];return e[t]=(n,o=!1,i=!1)=>(av||TG(),r.schedule(n,o,i)),e},{}),SG=Xv.reduce((e,t)=>(e[t]=r2[t].cancel,e),{}),CG=Xv.reduce((e,t)=>(e[t]=()=>r2[t].process(wp),e),{}),PG=e=>r2[e].process(wp),hI=e=>{av=!1,wp.delta=tC?fI:Math.max(Math.min(e-wp.timestamp,_G),1),wp.timestamp=e,rC=!0,Xv.forEach(PG),rC=!1,av&&(tC=!1,pI(hI))},TG=()=>{av=!0,tC=!0,rC||pI(hI)},OG=()=>wp;Cd.cancelSync=SG;Cd.default=xG;Cd.flushSync=CG;Cd.getFrameData=OG;Object.defineProperty(lt,"__esModule",{value:!0});var gI=KA,Vp=nI,Aa=bn,n2=Cd;function kG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var EG=kG(n2);const lv=(e,t,r)=>Math.min(Math.max(r,e),t),$_=.001,MG=.01,q6=10,RG=.05,NG=1;function AG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Vp.warning(e<=q6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=lv(RG,NG,a),e=lv(MG,q6,e/1e3),a<1?(o=d=>{const v=d*a,b=v*e,S=v-r,w=nC(d,a),P=Math.exp(-b);return $_-S/w*P},i=d=>{const b=d*a*e,S=b*r+r,w=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-b),y=nC(Math.pow(d,2),a);return(-o(d)+$_>0?-1:1)*((S-w)*P)/y}):(o=d=>{const v=Math.exp(-d*e),b=(d-r)*e+1;return-$_+v*b},i=d=>{const v=Math.exp(-d*e),b=(r-d)*(e*e);return v*b});const l=5/e,s=LG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const IG=12;function LG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function jG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Y6(e,FG)&&Y6(e,DG)){const r=AG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function o2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=gI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:b,isResolvedFromDuration:S}=jG(i),w=X6,P=X6;function y(){const C=v?-(v/1e3):0,h=r-t,p=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),p<1){const g=nC(c,p);w=m=>{const _=Math.exp(-p*c*m);return r-_*((C+p*c*h)/g*Math.sin(g*m)+h*Math.cos(g*m))},P=m=>{const _=Math.exp(-p*c*m);return p*c*_*(Math.sin(g*m)*(C+p*c*h)/g+h*Math.cos(g*m))-_*(Math.cos(g*m)*(C+p*c*h)-g*h*Math.sin(g*m))}}else if(p===1)w=g=>r-Math.exp(-c*g)*(h+(C+c*h)*g);else{const g=c*Math.sqrt(p*p-1);w=m=>{const _=Math.exp(-p*c*m),T=Math.min(g*m,300);return r-_*((C+p*c*h)*Math.sinh(T)+g*h*Math.cosh(T))/g}}}return y(),{next:C=>{const h=w(C);if(S)a.done=C>=b;else{const p=P(C)*1e3,c=Math.abs(p)<=n,g=Math.abs(r-h)<=o;a.done=c&&g}return a.value=a.done?r:h,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}o2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const X6=e=>0,t3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},i2=(e,t,r)=>-r*e+r*t+e;function G_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Q6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=G_(s,l,e+1/3),i=G_(s,l,e),a=G_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const zG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},VG=[Aa.hex,Aa.rgba,Aa.hsla],Z6=e=>VG.find(t=>t.test(e)),J6=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,r3=(e,t)=>{let r=Z6(e),n=Z6(t);Vp.invariant(!!r,J6(e)),Vp.invariant(!!n,J6(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Q6(o),r=Aa.rgba),n===Aa.hsla&&(i=Q6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=zG(o[s],i[s],l));return a.alpha=i2(o.alpha,i.alpha,l),r.transform(a)}},BG={x:0,y:0,z:0},oC=e=>typeof e=="number",UG=(e,t)=>r=>t(e(r)),n3=(...e)=>e.reduce(UG);function vI(e,t){return oC(e)?r=>i2(e,t,r):Aa.color.test(e)?r3(e,t):o3(e,t)}const mI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>vI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=vI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function ek(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=ek(e),o=ek(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?n3(mI(n.parsed,o.parsed),r):(Vp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},WG=(e,t)=>r=>i2(e,t,r);function $G(e){if(typeof e=="number")return WG;if(typeof e=="string")return Aa.color.test(e)?r3:o3;if(Array.isArray(e))return mI;if(typeof e=="object")return HG}function GG(e,t,r){const n=[],o=r||$G(e[0]),i=e.length-1;for(let a=0;ar(t3(e,t,n))}function qG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=t3(e[i],e[i+1],o);return t[i](l)}}function i3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Vp.invariant(i===t.length,"Both input and output ranges must be the same length"),Vp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=GG(t,n,o),l=i===2?KG(e,a):qG(e,a);return r?s=>l(lv(e[0],e[i-1],s)):l}const Qv=e=>t=>1-e(1-t),a2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yI=e=>t=>Math.pow(t,e),a3=e=>t=>t*t*((e+1)*t-e),bI=e=>{const t=a3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},wI=1.525,YG=4/11,XG=8/11,QG=9/10,_I=e=>e,l3=yI(2),ZG=Qv(l3),xI=a2(l3),SI=e=>1-Math.sin(Math.acos(e)),CI=Qv(SI),JG=a2(CI),s3=a3(wI),eK=Qv(s3),tK=a2(s3),rK=bI(wI),nK=4356/361,oK=35442/1805,iK=16061/1805,I1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-I1(1-e*2)):.5*I1(e*2-1)+.5;function sK(e,t){return e.map(()=>t||xI).splice(0,e.length-1)}function uK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function cK(e,t){return e.map(r=>r*t)}function Cg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=cK(n&&n.length===a.length?n:uK(a),o);function s(){return i3(l,a,{ease:Array.isArray(r)?r:sK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function PI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const b=-l*Math.exp(-v/n);return a.done=!(b>o||b<-o),a.value=a.done?d:d+b,a},flipTarget:()=>{}}}const tk={keyframes:Cg,spring:o2,decay:PI};function dK(e){if(Array.isArray(e.to))return Cg;if(tk[e.type])return tk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Cg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?o2:Cg}function TI(e,t,r=0){return e-t-r}function fK(e,t,r=0,n=!0){return n?TI(t+-e,t,r):t-(e-t)+r}function pK(e,t,r,n){return n?e>=t+r:e<=-r}const hK=e=>{const t=({delta:r})=>e(r);return{start:()=>EG.default.update(t,!0),stop:()=>n2.cancelSync.update(t)}};function OI(e){var t,r,{from:n,autoplay:o=!0,driver:i=hK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:b,onComplete:S,onRepeat:w,onUpdate:P}=e,y=gI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,h,p=0,c=y.duration,g,m=!1,_=!0,T;const k=dK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=i3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){p++,s==="reverse"?(_=p%2===0,a=fK(a,c,d,_)):(a=TI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,w&&w()}function A(){h.stop(),S&&S()}function F(B){if(_||(B=-B),a+=B,!m){const U=R.next(Math.max(0,a));g=U.value,T&&(g=T(g)),m=_?U.done:a<=0}P==null||P(g),m&&(p===0&&(c??(c=a)),p{b==null||b(),h.stop()}}}function kI(e,t){return t?e*(1e3/t):0}function gK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:b,onComplete:S,onStop:w}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;b==null||b(g),(m=c.onUpdate)===null||m===void 0||m.call(c,g)},onComplete:S,onStop:w}))}function p(c){h(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))p({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const g=C(c),m=g===r?-1:1;let _,T;const k=R=>{_=T,T=R,t=kI(R-_,n2.getFrameData().delta),(m===1&&R>g||m===-1&&RP==null?void 0:P.stop()}}const EI=e=>e*180/Math.PI,vK=(e,t=BG)=>EI(Math.atan2(t.y-e.y,t.x-e.x)),mK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},yK=e=>e,u3=(e=yK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},bK=u3(),wK=u3(Math.sqrt),MI=e=>e*Math.PI/180,L1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),iC=e=>L1(e)&&e.hasOwnProperty("z"),Ry=(e,t)=>Math.abs(e-t);function _K(e,t){if(oC(e)&&oC(t))return Ry(e,t);if(L1(e)&&L1(t)){const r=Ry(e.x,t.x),n=Ry(e.y,t.y),o=iC(e)&&iC(t)?Ry(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const xK=(e,t,r)=>(t=MI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),RI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),NI=(e,t,r,n=0)=>RI(e+r*(t-e)/Math.max(n,r)),SK=(e=50)=>{let t=0,r=0;return n=>{const o=n2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?NI(t,n,i,e):t;return r=o,t=a,a}},CK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function PK(e,t){return e/(1e3/t)}const TK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},AI=(e,t)=>1-3*t+3*e,II=(e,t)=>3*t-6*e,LI=e=>3*e,D1=(e,t,r)=>((AI(t,r)*e+II(t,r))*e+LI(t))*e,DI=(e,t,r)=>3*AI(t,r)*e*e+2*II(t,r)*e+LI(t),OK=1e-7,kK=10;function EK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=D1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>OK&&++l=RK?NK(a,b,e,r):S===0?b:EK(a,l,l+Ny,e,r)}return a=>a===0||a===1?a:D1(i(a),t,n)}const IK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return lv(0,1,o/e)};lt.angle=vK;lt.animate=OI;lt.anticipate=rK;lt.applyOffset=mK;lt.attract=bK;lt.attractExpo=wK;lt.backIn=s3;lt.backInOut=tK;lt.backOut=eK;lt.bounceIn=aK;lt.bounceInOut=lK;lt.bounceOut=I1;lt.circIn=SI;lt.circInOut=JG;lt.circOut=CI;lt.clamp=lv;lt.createAnticipate=bI;lt.createAttractor=u3;lt.createBackIn=a3;lt.createExpoIn=yI;lt.cubicBezier=AK;lt.decay=PI;lt.degreesToRadians=MI;lt.distance=_K;lt.easeIn=l3;lt.easeInOut=xI;lt.easeOut=ZG;lt.inertia=gK;lt.interpolate=i3;lt.isPoint=L1;lt.isPoint3D=iC;lt.keyframes=Cg;lt.linear=_I;lt.mirrorEasing=a2;lt.mix=i2;lt.mixColor=r3;lt.mixComplex=o3;lt.pipe=n3;lt.pointFromVector=xK;lt.progress=t3;lt.radiansToDegrees=EI;lt.reverseEasing=Qv;lt.smooth=SK;lt.smoothFrame=NI;lt.snap=CK;lt.spring=o2;lt.steps=IK;lt.toDecimal=RI;lt.velocityPerFrame=PK;lt.velocityPerSecond=kI;lt.wrap=TK;class LK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const K_=new WeakMap;function c3(e){return K_.has(e)||K_.set(e,{transforms:[],values:new Map}),K_.get(e)}function DK(e,t){return e.has(t)||e.set(t,new LK),e.get(t)}function FI(e,t){e.indexOf(t)===-1&&e.push(t)}function jI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const zI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",sv=e=>Array.isArray(e)&&!ds(e[0]),FK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function VI(e,t){return sv(e)?e[FK(0,e.length,t)]:e}const d3=(e,t,r)=>-r*e+r*t+e,f3=()=>{},rs=e=>e,l2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function p3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=l2(0,t,n);e.push(d3(r,1,o))}}function h3(e){const t=[0];return p3(t,e-1),t}function BI(e,t=h3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&p3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),F1=e=>typeof e=="object"&&!!e.createAnimation,jK=e=>typeof e=="function",g3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function HI(e,t){return t?e*(1e3/t):0}const zK=["","X","Y","Z"],VK=["translate","scale","rotate","skew"],Bp={x:"translateX",y:"translateY",z:"translateZ"},rk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},BK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:rk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:rk},Up=new Map,s2=e=>`--motion-${e}`,j1=["x","y","z"];VK.forEach(e=>{zK.forEach(t=>{j1.push(e+t),Up.set(s2(e+t),BK[e])})});const UK=(e,t)=>j1.indexOf(e)-j1.indexOf(t),HK=new Set(j1),u2=e=>HK.has(e),WK=(e,t)=>{Bp[t]&&(t=Bp[t]);const{transforms:r}=c3(e);FI(r,t),e.style.transform=WI(r)},WI=e=>e.sort(UK).reduce($K,"").trim(),$K=(e,t)=>`${e} ${t}(var(${s2(t)}))`,aC=e=>e.startsWith("--"),nk=new Set;function GK(e){if(!nk.has(e)){nk.add(e);try{const{syntax:t,initialValue:r}=Up.has(e)?Up.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const $I=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,KK=1e-7,qK=12;function YK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=$I(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>KK&&++lYK(i,0,1,e,r);return i=>i===0||i===1?i:$I(o(i),t,n)}const XK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return zI(0,1,o/e)},QK={ease:lg(.25,.1,.25,1),"ease-in":lg(.42,0,1,1),"ease-in-out":lg(.42,0,.58,1),"ease-out":lg(0,0,.58,1)},ZK=/\((.*?)\)/;function lC(e){if(jK(e))return e;if(UI(e))return lg(...e);const t=QK[e];if(t)return t;if(e.startsWith("steps")){const r=ZK.exec(e);if(r){const n=r[1].split(",");return XK(parseFloat(n[0]),n[1].trim())}}return rs}let JK=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,w)=>{this.resolve=S,this.reject=w}),n=n||Go.easing,F1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=sv(n)?rs:lC(n),this.updateDuration(o);const b=BI(r,s,sv(n)?n.map(lC):rs);this.tick=S=>{var w;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),h=y%1;!h&&y>=1&&(h=1),h===1&&C--;const p=C%2;(d==="reverse"||d==="alternate"&&p||d==="alternate-reverse"&&!p)&&(h=1-h);const c=P>=this.totalDuration?1:Math.min(h,1),g=b(this.easing(c));t(g),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(w=this.resolve)===null||w===void 0||w.call(this,g)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ok=e=>UI(e)?eq(e):e,eq=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ik=e=>document.createElement("div").animate(e,{duration:.001}),ak={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ik({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ik({opacity:[0,1]}).finished},q_={},Mb={};for(const e in ak)Mb[e]=()=>(q_[e]===void 0&&(q_[e]=ak[e]()),q_[e]);function tq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function z1(e){return Bp[e]&&(e=Bp[e]),u2(e)?s2(e):e}const Jf={get:(e,t)=>{t=z1(t);let r=aC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Up.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=z1(t),aC(t)?e.style.setProperty(t,r):e.style[t]=r}};function KI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function rq(){return window.__MOTION_DEV_TOOLS_RECORD}function c2(e,t,r,n={}){const o=rq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:b=Go.easing,direction:S,offset:w,allowWebkitAcceleration:P=!1}=n;const y=c3(e);let C=Mb.waapi();const h=u2(t);h&&WK(e,t);const p=z1(t),c=DK(y.values,p),g=Up.get(p);return KI(c.animation,!(F1(b)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=Jf.get(e,p))!==null&&T!==void 0?T:g==null?void 0:g.initialValue)!==null&&k!==void 0?k:0};let _=tq(GI(r),m);if(F1(b)){const T=b.createAnimation(_,m,h,p,c);b=T.easing,T.keyframes!==void 0&&(_=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(aC(p)&&(Mb.cssRegisterProperty()?GK(p):C=!1),C){g&&(_=_.map(R=>ds(R)?g.toDefaultUnit(R):R)),_.length===1&&(!Mb.partialKeyframes()||i)&&_.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:sv(b)?void 0:ok(b),direction:S,iterations:v+1,fill:"both"};a=e.animate({[p]:_,offset:w,easing:sv(b)?b.map(ok):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=_[_.length-1];a.finished.then(()=>{Jf.set(e,p,k),a.cancel()}).catch(f3),P||(a.playbackRate=1.000001)}else if(h){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(m()));const T=k=>{g&&(k=g.toDefaultUnit(k)),Jf.set(e,p,k)};a=new JK(T,_,Object.assign(Object.assign({},n),{duration:l,easing:b}))}else{const T=_[_.length-1];Jf.set(e,p,g&&ds(T)?g.toDefaultUnit(T):T)}return i&&o(e,t,_,{duration:l,delay:s,easing:b,repeat:v,offset:w},"motion-one"),c.setAnimation(a),a}}const v3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function d2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const nq=e=>e(),m3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(nq).filter(Boolean),duration:r,options:t},iq),oq=e=>e.animations[0],iq={get:(e,t)=>{const r=oq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(aq)).catch(f3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>KI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function lq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:sq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=lC(n)(s/d)*d}return t+s}}function sq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function qI(e,t,r){return typeof e=="function"?e(t,r):e}function uq(e,t,r={}){e=d2(e);const n=e.length,o=[];for(let i=0;it&&o.atc2(...i)).filter(Boolean);return m3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function hq(e,t={}){var{defaultOptions:r={}}=t,n=uh(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let b=0;b"0",J);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=qI(y.delay,c,p)||0,V=d+F,B=V+E;let{offset:U=h3(k.length)}=R;U.length===1&&U[0]===0&&(U[1]=1);const q=length-k.length;q>0&&p3(U,q),k.length===1&&k.unshift(null),dq(T,k,A,U,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((b,S)=>{for(const w in b){const P=b[w];P.sort(fq);const y=[],C=[],h=[];for(let p=0;pt/(2*Math.sqrt(e*r));function bq(e,t,r){return e=t||e>t&&r<=t}const YI=({stiffness:e=_p.stiffness,damping:t=_p.damping,mass:r=_p.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,b=yq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let w;if(b<1){const P=v*Math.sqrt(1-b*b);w=y=>o-Math.exp(-b*v*y)*((-i+b*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else w=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=w(P);const y=P===0?i:y3(w,P,s.current),C=Math.abs(y)<=a,h=Math.abs(o-s.current)<=l;return s.done=C&&h,s.hasReachedTarget=bq(n,o,s.current),s}},wq=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const b={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,w=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),p=T=>C+h(T),c=T=>{const k=h(T),R=p(T);b.done=Math.abs(k)<=d,b.current=b.done?C:R};let g,m;const _=T=>{S(b.current)&&(g=T,m=YI({from:b.current,to:w(b.current),velocity:y3(p,T,b.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return _(0),T=>{let k=!1;return!m&&g===void 0&&(k=!0,c(T),_(T)),g!==void 0&&T>g?(b.hasReachedTarget=!0,m(T-g)):(b.hasReachedTarget=!1,!k&&c(T),b)}},Y_=10,_q=1e4;function xq(e,t=rs){let r,n=Y_,o=e(0);const i=[t(o.current)];for(;!o.done&&n<_q;)o=e(n),i.push(t(o.done?o.target:o.current)),r===void 0&&o.hasReachedTarget&&(r=n),n+=Y_;const a=n-Y_;return i.length===1&&i.push(o.current),{keyframes:i,duration:a/1e3,overshootDuration:(r??a)/1e3}}function XI(e){const t=new WeakMap;return(r={})=>{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,xq(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var b,S;let w;const P=a.length;if(s&&P<=2&&a.every(Sq)){const C=a[P-1],h=P===1?null:a[0];let p=0,c=0;const g=v==null?void 0:v.generator;if(g){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=g(E).current;c=(b=h)!==null&&b!==void 0?b:A,(P===1||P===2&&a[0]===null)&&(p=y3(F=>g(F).current,E,A))}else c=(S=h)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,p,d==null?void 0:d.includes("scale")),_=i(m);w=Object.assign(Object.assign({},_),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else w={easing:"ease",duration:i(o(0,100)).overshootDuration};return w}}}}const Sq=e=>typeof e!="string",Cq=XI(YI),Pq=XI(wq),Tq={any:0,all:1};function QI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=d2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const b=a.get(v.target);if(v.isIntersecting!==!!b)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else b&&(b(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Tq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Rb=new WeakMap;let qs;function Oq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function kq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Rb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return Oq(e,r)}})})}function Eq(e){e.forEach(kq)}function Mq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(Eq))}function Rq(e,t){qs||Mq();const r=d2(e);return r.forEach(n=>{let o=Rb.get(n);o||(o=new Set,Rb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Rb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Nb=new Set;let Pg;function Nq(){Pg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Nb.forEach(r=>r(t))},window.addEventListener("resize",Pg)}function Aq(e){return Nb.add(e),Pg||Nq(),()=>{Nb.delete(e),!Nb.size&&Pg&&(Pg=void 0)}}function ZI(e,t){return typeof e=="function"?Aq(e):Rq(e,t)}const Iq=50,sk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Lq=()=>({time:0,x:sk(),y:sk()}),Dq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function uk(e,t,r,n){const o=r[t],{length:i,position:a}=Dq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=l2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Iq?0:HI(o.current-l,d)}function Fq(e,t,r){uk(e,"x",t,r),uk(e,"y",t,r),t.time=r}function jq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const JI={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},sC={start:0,center:.5,end:1};function ck(e,t,r=0){let n=0;if(sC[e]!==void 0&&(e=sC[e]),g3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const zq=[0,0];function Vq(e,t,r,n){let o=Array.isArray(e)?e:zq,i=0,a=0;return ds(e)?o=[e,e]:g3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,sC[e]?e:"0"]),i=ck(o[0],r,n),a=ck(o[1],t),i-a}const Bq={x:0,y:0};function Uq(e,t,r){let{offset:n=JI.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?jq(o,e):Bq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const b=n.length;for(let S=0;SHq(e,n.target,r),update:i=>{Fq(e,r,i),(n.offset||n.target)&&Uq(e,r,n)},notify:typeof t=="function"?()=>t(r):$q(t,r[o])}}function $q(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const z0=new WeakMap,dk=new WeakMap,X_=new WeakMap,fk=e=>e===document.documentElement?window:e;function Gq(e,t={}){var{container:r=document.documentElement}=t,n=uh(t,["container"]);let o=X_.get(r);o||(o=new Set,X_.set(r,o));const i=Lq(),a=Wq(r,e,i,n);if(o.add(a),!z0.has(r)){const d=()=>{const b=performance.now();for(const S of o)S.measure();for(const S of o)S.update(b);for(const S of o)S.notify()};z0.set(r,d);const v=fk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&dk.set(r,ZI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=z0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=X_.get(r);if(!v||(v.delete(a),v.size))return;const b=z0.get(r);z0.delete(r),b&&(fk(r).removeEventListener("scroll",b),(d=dk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",b))}}function Kq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!qq(e,t):e!==t}function qq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),Jq=e=>e.animateUpdates(),hk=e=>e.next(),gk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function uC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function vk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const eY={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=uh(n,["once"]);return QI(e,a=>{if(t(),vk(e,"viewenter",a),!o)return l=>{r(),vk(e,"viewleave",l)}},i)}},mk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),uC(e,t,n))},tY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=mk(e,"hoverstart",t),o=mk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},rY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),uC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),uC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Ab={inView:eY,hover:tY,press:rY},yk=["initial","animate",...Object.keys(Ab),"exit"],cC=new WeakMap;function nY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of yk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=pk(e[l]||a[l],e.variants)||{},d=uh(s,["transition"]);const v=Object.assign({},d);function*b(){var y,C;const h=d;d={};const p={};for(const T of yk){if(!o[T])continue;const k=pk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],p[R]=v3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(h)]),g=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),Kq(h[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=Jf.get(r,T)),g.push(c2(r,T,d[T],p[T])))}),yield;const m=g.map(T=>T()).filter(Boolean);if(!m.length)return;const _=d;r.dispatchEvent(gk("motionstart",_)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(gk("motioncomplete",_))}).catch(f3)}const S=(y,C)=>()=>{o[y]=C,Q_(P)},w=()=>{for(const y in Ab){const C=Ab[y].isActive(e),h=i[y];C&&!h?i[y]=Ab[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&h&&(h(),delete i[y])}},P={update:y=>{r&&(e=y,w(),Q_(P))},setActive:(y,C)=>{r&&(o[y]=C,Q_(P))},animateUpdates:b,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,cC.set(r,P),w(),()=>{cC.delete(r),Qq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function eL(e){const t={},r=[];for(let n in e){const o=e[n];u2(n)&&(Bp[n]&&(n=Bp[n]),r.push(n),n=s2(n));let i=Array.isArray(o)?o[0]:o;const a=Up.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=WI(r)),t}const oY=e=>`-${e.toLowerCase()}`,iY=e=>e.replace(/[A-Z]/g,oY);function aY(e={}){const t=eL(e);let r="";for(const n in t)r+=n.startsWith("--")?n:iY(n),r+=`: ${t[n]}; `;return r}const lY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:JI,animate:uq,animateStyle:c2,createMotionState:nY,createStyleString:aY,createStyles:eL,getAnimationData:c3,getStyleName:z1,glide:Pq,inView:QI,mountedStates:cC,resize:ZI,scroll:Gq,spring:Cq,stagger:lq,style:Jf,timeline:pq,withControls:m3},Symbol.toStringTag,{value:"Module"})),sY=Lv(lY);function uY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dY=uY(function(e){return cY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const fY=Object.freeze(Object.defineProperty({__proto__:null,default:dY},Symbol.toStringTag,{value:"Module"})),pY=Lv(fY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=KA,r=eG,n=nI,o=bn,i=lt,a=Cd,l=sY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),b=s(r),S=s(a),w=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:w(["layout","layoutId","drag"]),animation:w(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:w(["exit"]),drag:w(["drag","dragControls"]),focus:w(["whileFocus"]),hover:w(["whileHover","onHoverStart","onHoverEnd"]),tap:w(["whileTap","onTap","onTapStart","onTapCancel"]),pan:w(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:w(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),h=Object.keys(P),p=h.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var zt={};function Ht(x){Object.assign(zt,x)}var mt=["","X","Y","Z"],Ot=["translate","scale","rotate","skew"],Jt=["transformPerspective","x","y","z"];Ot.forEach(function(x){return mt.forEach(function(M){return Jt.push(x+M)})});function Dr(x,M){return Jt.indexOf(x)-Jt.indexOf(M)}var ln=new Set(Jt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function nr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||nr(x)||(I||D!==void 0)&&(!!zt[x]||x==="opacity")}var Yt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,H=G===void 0?!0:G,Z=M.allowTransformNone,te=Z===void 0?!0:Z,ie="";$.sort(Dr);for(var de=!1,fe=$.length,ge=0;ge"u"?q5:Rh;te(Z,H.current,M,G)}var K5={some:0,all:1};function Rh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,H=G===void 0?"some":G,Z=D.once;r.useEffect(function(){if(x){var te={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof H=="number"?H:K5[H]},ie=function(de){var fe,ge=de.isIntersecting;if(M.isInView!==ge&&(M.isInView=ge,!(Z&&!ge&&M.hasEnteredView))){ge&&(M.hasEnteredView=!0),(fe=I.animationState)===null||fe===void 0||fe.setActive(e.AnimationType.InView,ge);var u=I.getProps(),f=ge?u.onViewportEnter:u.onViewportLeave;f==null||f(de)}};return Jr(I.getInstance(),te,ie)}},[x,z,$,H])}function q5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var H=I.getProps().onViewportEnter;H==null||H(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Mh),tap:ii(W5),focus:ii(He),hover:ii(ym)},Y5=0,X5=function(){return Y5++},jo=function(){return ue(X5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Nh(r.useContext(T))}function Nh(x){return x===null?!0:x.isPresent}function Ah(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Rt,he=Array.isArray(Ae)?Ae:[Ae],Pe=he.reduce($,{});wt===!1&&(Pe={});var Be=Ve.prevResolvedValues,tt=Be===void 0?{}:Be,yt=t.__assign(t.__assign({},tt),Pe),ct=function(nt){_e=!0,O.delete(nt),Ve.needsAnimating[nt]=!0};for(var vt in yt){var ft=Pe[vt],Ne=tt[vt];N.hasOwnProperty(vt)||(ft!==Ne?bt(ft)&&bt(Ne)?!Ah(ft,Ne)||On?ct(vt):Ve.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):Ve.protectedKeys[vt]=!0)}Ve.prevProp=Ae,Ve.prevResolvedValues=Pe,Ve.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(_e=!1),_e&&!er&&f.push.apply(f,t.__spreadArray([],t.__read(he.map(function(nt){return{animation:nt,options:t.__assign({type:Ee},ie)}})),!1))},K=0;K=3;if(!(!ge&&!u)){var f=fe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},f),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;ge||(L&&L(z.lastMoveEvent,fe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,fe)}}},this.handlePointerMove=function(fe,ge){if(z.lastMoveEvent=fe,z.lastMoveEventInfo=Vo(ge,z.transformPagePoint),It(fe)&&fe.buttons===0){z.handlePointerUp(fe,ge);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(fe,ge){z.end();var u=z.handlers,f=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(ge,z.transformPagePoint),z.history);z.startEvent&&f&&f(fe,N),O&&O(fe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var H=wo(M),Z=Vo(H,this.transformPagePoint),te=Z.point,ie=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},te),{timestamp:ie})];var de=I.onSessionStart;de&&de(M,Ja(Z,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Tm(M)),velocity:fr(M,.1)}}function Tm(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Bh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Uh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Hh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function Om(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function km(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function Wh(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return Wh(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function $h(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Gh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var H,Z,te=0;teM?I="y":Math.abs(x.x)>M&&(I="x"),I}function e_(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new Z5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Am(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,H=r.useRef(null),Z=r.useContext(g).transformPagePoint,te={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,fe){H.current=null,D&&D(de,fe)}};r.useEffect(function(){H.current!==null&&H.current.updateHandlers(te)});function ie(de){H.current=new Nl(de,te,{transformPagePoint:Z})}Ol($,"pointerdown",G&&ie),Ya(function(){return H.current&&H.current.end()})}var Yh={pan:ii(Am),drag:ii(e_)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,H=D[G];($=M[z])===null||$===void 0||$.call(M),H&&(M[z]=I[G](H))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,te=zm(M,x,H);return $.length&&$.forEach(function(ie){var de=t.__read(ie,2),fe=de[0],ge=de[1];x.getValue(fe).set(ge)}),x.syncRender(),Z!==null&&window.scrollTo({top:Z}),{target:te,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Bm(x,M,I,D){return Qh(M)?Vm(x,M,I,D):{target:M,transitionEnd:D}}var Um=function(x,M,I,D){var z=Xh(x,M,D);return M=z.target,D=z.transitionEnd,Bm(x,M,I,D)};function Hm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Hm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return qh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,H=t.__rest(M,["transition","transitionEnd"]),Z=Co(H,$||{},x);if(z&&(G&&(G=z(G)),H&&(H=z(H)),Z&&(Z=z(Z))),D){cc(x,H,Z);var te=Um(x,H,Z,G);G=te.transitionEnd,H=te.target}return t.__assign({transition:$,transitionEnd:G},H)},scrapeMotionValuesFromProps:kt,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Ze},Wm=uf(ff),t0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=$e.has(M)?M:je(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Nt,build:function(x,M,I,D,z){pe(M,I,D,z.transformTemplate)},render:Ge})),pf=function(x,M){return xt(x)?t0(M,{enableHardwareAcceleration:!1}):Wm(M,{enableHardwareAcceleration:!0})};function r0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=r0(x,M.target.x),D=r0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",$m={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(f){return G.push(f),hf}));var H=o.complex.parse(x);if(H.length>5)return z;var Z=o.complex.createTransformer(x),te=typeof H[0]!="number"?1:0,ie=D.x.scale*I.x,de=D.y.scale*I.y;H[0+te]/=ie,H[1+te]/=de;var fe=i.mix(ie,de,.5);typeof H[2+te]=="number"&&(H[2+te]/=fe),typeof H[3+te]=="number"&&(H[3+te]/=fe);var ge=Z(H);if($){var u=0;ge=ge.replace(hf,function(){var f=G[u];return u++,f})}return ge}},n0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,H=D.layoutId,Z=z.projection;Ht(n_),Z&&($!=null&&$.group&&$.group.add(Z),G!=null&&G.register&&H&&G.register(Z),Z.root.didUpdate(),Z.addEventListener("animationComplete",function(){I.safeToRemove()}),Z.setOptions(t.__assign(t.__assign({},Z.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,H=z.drag,Z=z.isPresent,te=G.projection;return te&&(te.isPresent=Z,H||I.layoutDependency!==$||$===void 0?te.willUpdate():this.safeToRemove(),I.isPresent!==Z&&(Z?te.promote():te.relegate()||S.default.postRender(function(){var ie;!((ie=te.getStack())===null||ie===void 0)&&ie.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(b.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(Ie);return b.default.createElement(n0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Re),isPresent:I,safeToRemove:D}))}var n_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:$m},o0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=Yt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var i0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=i0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Gm=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,H,Z,te;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((H=M.opacity)!==null&&H!==void 0?H:1,0,Sc(D))):$&&(x.opacity=i.mix((Z=M.opacity)!==null&&Z!==void 0?Z:1,(te=I.opacity)!==null&&te!==void 0?te:1,D));for(var ie=0;ieM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var H=i.mix(G.min,G.max,M/100);M=H-G.min}if(typeof M=="number"){var Z=i.mix($.min,$.max,D);x===$&&(Z-=M),x.min=Vs(x.min,M,I,Z,z),x.max=Vs(x.max,M,I,Z,z)}}function Km(x,M,I,D,z){var $=t.__read(I,3),G=$[0],H=$[1],Z=$[2];Tn(x,M[G],M[H],M[Z],M.scale,D,z)}var o_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){Km(x.x,M,o_,I==null?void 0:I.x,D==null?void 0:D.x),Km(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function qm(x){return x.translate===0&&x.scale===1}function We(x){return qm(x.x)&&qm(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var l0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Ih(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Ym="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Xm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,H=I.rotateX,Z=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),H&&($+="rotateX(".concat(H,"deg) ")),Z&&($+="rotateY(".concat(Z,"deg) "))}var te=x.x.scale*M.x,ie=x.y.scale*M.y;return $+="scale(".concat(te,", ").concat(ie,")"),$===Ym?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Ih(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function s0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(H,Z,te){var ie=this;Z===void 0&&(Z={}),te===void 0&&(te=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ie.isUpdating&&(ie.isUpdating=!1,ie.clearAllSnapshots())},this.updateProjection=function(){ie.nodes.forEach($i),ie.nodes.forEach(c0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=H,this.latestValues=Z,this.root=te?te.root||te:this,this.path=te?t.__spreadArray(t.__spreadArray([],t.__read(te.path),!1),[te],!1):[],this.parent=te,this.depth=te?te.depth+1:0,H&&this.root.registerPotentialNode(H,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function f0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){f0(x.x),f0(x.y)}var _f=s0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=s0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Yh),o0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function p0(x){return ze(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var h0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,H=ue(a_),Z=jo(),te=r.useMemo(function(){return{id:Z,initial:I,isPresent:D,custom:$,onExitComplete:function(ie){var de,fe;H.set(ie,!0);try{for(var ge=t.__values(H.values()),u=ge.next();!u.done;u=ge.next()){var f=u.value;if(!f)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(fe=ge.return)&&fe.call(ge)}finally{if(de)throw de.error}}z==null||z()},register:function(ie){return H.set(ie,!1),function(){return H.delete(ie)}}}},G?void 0:[D]);return r.useMemo(function(){H.forEach(function(ie,de){return H.set(de,!1)})},[D]),v.useEffect(function(){!D&&!H.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:te},M)};function a_(){return new Map}var ba=function(x){return x.key||""};function g0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var Ct=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,H=x.presenceAffectsLayout,Z=H===void 0?!0:H,te=t.__read(Mc(),1),ie=te[0],de=r.useContext(Ie).forceRender;de&&(ie=de);var fe=xf(),ge=Pr(M),u=ge,f=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,g0(ge,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),f.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Ee){return v.createElement(Rc,{key:ba(Ee),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:Z},Ee)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=ge.map(ba),le=j.length,me=0;me0?1:-1,G=x[z+$];if(!G)return x;var H=x[z],Z=G.layout,te=i.mix(Z.min,Z.max,.5);return $===1&&H.layout.max+I>te||$===-1&&H.layout.min+I.001?1/x:f_},Ef=!1;function p_(x){var M=Ki(1),I=Ki(1),D=_();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=Ct,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=Ie,e.LazyMotion=v0,e.MotionConfig=Sf,e.MotionConfigContext=g,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Re,e.addPointerEvent=Tl,e.addScaleCorrector=Ht,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=p0,e.createMotionComponent=ze,e.domAnimation=b0,e.domMax=w0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Eh,e.isMotionValue=Yt,e.isValidMotionProp=Dn,e.m=h0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=s_,e.useAnimationControls=iy,e.useAnimationFrame=S0,e.useCycle=ay,e.useDeprecatedAnimatedState=cy,e.useDeprecatedInvertedScale=p_,e.useDomEvent=At,e.useDragControls=Ul,e.useElementScroll=x0,e.useForceUpdate=Mc,e.useInView=ly,e.useInstantLayoutTransition=P0,e.useInstantTransition=c_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=_0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=sy,e.useScroll=kf,e.useSpring=l_,e.useTime=C0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=_,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(X),n=An,o=S(pt),i=S(Xn),a=S(et),l=Je,s=e2,d=Xe,v=$v;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,s.useAccordion)(),T=_.open,k=_.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,b({},m,{ref:p,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),g)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(PA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return h}});var r=w(X),n=w(pt),o=Je,i=w(et),a=Xe,l=e2,s=$v,d=CA,v=PA;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.open,m=p.icon,_=p.animate,T=p.className,k=p.disabled,R=p.children,E=P(p,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,_=_??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),b({},(0,i.default)(V.disabled),k)),T),U=r.default.useMemo(function(){return{open:g,icon:m,animate:_,disabled:k}},[g,m,_,k]);return r.default.createElement(l.AccordionContextProvider,{value:U},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var h=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(JR);var tL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var f2={},dh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(dh),i=S(pt),a=Je,l=S(Sr),s=S(et),d=Xe,v=_d;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.ripple,T=h.className,k=h.children;h.fullWidth;var R=w(h,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,U=V.variants,q=V.sizes;c=c??F.variant,g=g??F.size,m=m??F.color,_=_??F.ripple,T=(0,a.twMerge)(F.className||"",T);var J=_!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(U[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),Y=(0,s.default)(q[(0,l.default)(A.sizes,g,"md")]),re=(0,a.twMerge)((0,i.default)(Q,Y,W),T);return r.default.createElement("button",b({},R,{ref:p,className:re,type:R.type||"button",onMouseDown:function(ne){var se=R==null?void 0:R.onMouseDown;return _&&J.create(ne,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof se=="function"&&se(ne)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(f2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Alert:function(){return h},default:function(){return p}});var r=P(X),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=NP,S=P(f2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),U=(0,v.useTheme)().alert,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.variants;m=m??q.variant,_=_??q.color,A=A??q.animate,k=k??q.open,R=R??q.action,E=E??q.onClose,F=(0,l.twMerge)(q.className||"",F);var re=(0,d.default)(W.alert),ne=(0,d.default)(W.action),se=(0,d.default)(Y[(0,s.default)(J.variants,m,"filled")][(0,s.default)(J.colors,_,"gray")]),ve=(0,l.twMerge)((0,i.default)(re,se),F),we=(0,i.default)(ne),ce={unmount:{opacity:0},mount:{opacity:1}},ee=(0,a.default)(ce,A),oe=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,w({},B,{ref:g,role:"alert",className:"".concat(ve," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:ee}),T&&oe,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:we},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,action:b.propTypesAction,onClose:b.propTypesOnClose,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},h.displayName="MaterialTailwind.Alert";var p=h})(tL);var rL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=AP;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.className,_=h.color,T=h.withBorder,k=w(h,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,U=F.sizes,q=F.borderColor;c=c??A.variant,g=g??A.size,T=T??A.withBorder,_=_??A.color,m=(0,i.twMerge)(A.className||"",m);var J=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(U[(0,a.default)(E.sizes,g,"md")]),W=(0,l.default)(q[(0,a.default)(E.colors,_,"gray")]),Y,re=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),J,Q,(Y={},v(Y,(0,l.default)(V.withBorder),T),v(Y,W,T),Y)),m);return r.default.createElement("img",b({},k,{ref:p,className:re}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(rL);var nL={},oL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(ot);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(oL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(X),n=v(pt),o=Je,i=v(et),a=Xe,l=oL;function s(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function d(){return d=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=(0,r.forwardRef)(function(h,p){var c=h.separator,g=h.fullWidth,m=h.className,_=h.children,T=w(h,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,g=g??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),g)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:p,className:F}),r.Children.map(_,function(U,q){if((0,r.isValidElement)(U)){var J;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),U==null||(J=U.props)===null||J===void 0?void 0:J.disabled))},U,q!==r.Children.count(_)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(nL);var iL={},b3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Spinner:function(){return C},default:function(){return h}});var r=b(ot),n=w(X),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=GP;function v(){return v=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=(0,n.forwardRef)(function(p,c){var g=p.color,m=p.className,_=P(p,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;g=g??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,g,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),U,q;return n.default.createElement("svg",v({},_,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(U=_==null?void 0:_.width)!==null&&U!==void 0?U:24,height:(q=_==null?void 0:_.height)!==null&&q!==void 0?q:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var h=C})(b3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Button:function(){return h},default:function(){return p}});var r=P(X),n=P(ot),o=P(dh),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=P(b3),b=_d;function S(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,U=B.valid,q=B.defaultProps,J=B.styles,Q=J.base,W=J.variants,Y=J.sizes;m=m??q.variant,_=_??q.size,T=T??q.color,k=k??q.fullWidth,R=R??q.ripple,E=(0,a.twMerge)(q.className||"",E);var re=R!==void 0&&new o.default,ne=(0,s.default)(Q.initial),se=(0,s.default)(W[(0,l.default)(U.variants,m,"filled")][(0,l.default)(U.colors,T,"gray")]),ve=(0,s.default)(Y[(0,l.default)(U.sizes,_,"md")]),we=(0,a.twMerge)((0,i.default)(ne,ve,se,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":_==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":_==="lg"})),ee;return r.default.createElement("button",w({},V,{disabled:(ee=V.disabled)!==null&&ee!==void 0?ee:F,ref:g,className:we,type:V.type||"button",onMouseDown:function(oe){var ue=V==null?void 0:V.onMouseDown;return R&&re.create(oe,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(oe)}}),F&&r.default.createElement(v.default,{className:ce}),A)});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),fullWidth:b.propTypesFullWidth,ripple:b.propTypesRipple,className:b.propTypesClassName,children:b.propTypesChildren,loading:b.propTypesLoading},h.displayName="MaterialTailwind.Button";var p=h})(iL);var aL={},lL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=xd;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.shadow,_=h.floated,T=h.className,k=h.children,R=w(h,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,U=F.variants;c=c??A.variant,g=g??A.color,m=m??A.shadow,_=_??A.floated,T=(0,i.twMerge)(A.className||"",T);var q=(0,l.default)(B.initial),J=(0,l.default)(U[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"white")]),Q=(0,i.twMerge)((0,o.default)(q,J,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),_)),T);return r.default.createElement("div",b({},R,{ref:p,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(lL);var sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return w}});var r=d(X),n=d(pt),o=Je,i=d(et),a=Xe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var w=S})(sL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{CardFooter:function(){return w},default:function(){return P}});var r=v(X),n=v(pt),o=Je,i=v(et),a=Xe,l=xd;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,_=m.defaultProps,T=m.styles.base;h=h??_.divider,p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.CardFooter";var P=w})(uL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return p},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return b.CardFooter},default:function(){return c}});var r=y(X),n=y(ot),o=y(pt),i=Je,a=y(Sr),l=y(et),s=Xe,d=lL,v=sL,b=uL,S=xd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.variant,T=g.color,k=g.shadow,R=g.className,E=g.children,A=C(g,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,U=F.valid,q=B.base,J=B.variants;_=_??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(q.initial),W=(0,l.default)(J[(0,a.default)(U.variants,_,"filled")][(0,a.default)(U.colors,T,"white")]),Y=(0,i.twMerge)((0,o.default)(Q,W,w({},(0,l.default)(q.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:Y}),E)});p.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},p.displayName="MaterialTailwind.Card";var c=Object.assign(p,{Header:d.CardHeader,Body:v.CardBody,Footer:b.CardFooter})})(aL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Checkbox:function(){return C},default:function(){return h}});var r=w(X),n=w(ot),o=w(dh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),U=(0,d.useTheme)().checkbox,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(J.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),ee=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||re,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:we,id:B.id||re})),r.default.createElement("span",{className:ee},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var h=C})(cL);var dL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Chip:function(){return h},default:function(){return p}});var r=P(X),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=VP,S=P(f2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,U=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),q=(0,v.useTheme)().chip,J=q.defaultProps,Q=q.valid,W=q.styles,Y=W.base,re=W.variants,ne=W.sizes;m=m??J.variant,_=_??J.size,T=T??J.color,F=F??J.animate,R=R??J.open,A=A??J.action,E=E??J.onClose,V=(0,l.twMerge)(J.className||"",V);var se=(0,d.default)(Y.chip),ve=(0,d.default)(Y.action),we=(0,d.default)(Y.icon),ce=(0,d.default)(re[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),ee=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].chip),oe=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].action),ue=(0,d.default)(ne[(0,s.default)(Q.sizes,_,"md")].icon),Se=(0,l.twMerge)((0,i.default)(se,ce,ee),V),Ce=(0,i.default)(ve,oe),Me=(0,i.default)(we,ue),Ie=(0,i.default)({"ml-4":k&&_==="sm","ml-[18px]":k&&_==="md","ml-5":k&&_==="lg","mr-5":E}),Re={unmount:{opacity:0},mount:{opacity:1}},ye=(0,a.default)(Re,F),ke=r.default.createElement("div",{className:Me},k),ze=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ze,null,R&&r.default.createElement(o.m.div,w({},U,{ref:g,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:ye}),k&&ke,r.default.createElement("span",{className:Ie},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,onClose:b.propTypesOnClose,action:b.propTypesAction,animate:b.propTypesAnimate,className:b.propTypesClassName,value:b.propTypesValue},h.displayName="MaterialTailwind.Chip";var p=h})(dL);var fL={},pL={exports:{}},jt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Zv=Symbol.for("react.element"),hY=Symbol.for("react.portal"),gY=Symbol.for("react.fragment"),vY=Symbol.for("react.strict_mode"),mY=Symbol.for("react.profiler"),yY=Symbol.for("react.provider"),bY=Symbol.for("react.context"),wY=Symbol.for("react.forward_ref"),_Y=Symbol.for("react.suspense"),xY=Symbol.for("react.memo"),SY=Symbol.for("react.lazy"),bk=Symbol.iterator;function CY(e){return e===null||typeof e!="object"?null:(e=bk&&e[bk]||e["@@iterator"],typeof e=="function"?e:null)}var hL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gL=Object.assign,vL={};function fh(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}fh.prototype.isReactComponent={};fh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mL(){}mL.prototype=fh.prototype;function w3(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}var _3=w3.prototype=new mL;_3.constructor=w3;gL(_3,fh.prototype);_3.isPureReactComponent=!0;var wk=Array.isArray,yL=Object.prototype.hasOwnProperty,x3={current:null},bL={key:!0,ref:!0,__self:!0,__source:!0};function wL(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)yL.call(t,n)&&!bL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Iy=new WeakMap,Ly={},J_=0,xL=function(e){return e&&(e.host||xL(e.parentNode))},RY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},NY=function(e,t,r,n){var o=RY(t,Array.isArray(e)?e:[e]);Ly[r]||(Ly[r]=new WeakMap);var i=Ly[r],a=[],l=new Set,s=new Set(o),d=function(b){!b||l.has(b)||(l.add(b),d(b.parentNode))};o.forEach(d);var v=function(b){!b||s.has(b)||Array.prototype.forEach.call(b.children,function(S){if(l.has(S))v(S);else try{var w=S.getAttribute(n),P=w!==null&&w!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Iy.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(h){console.error("aria-hidden: cannot operate on ",S,h)}})};return v(t),l.clear(),J_++,function(){a.forEach(function(b){var S=Nf.get(b)-1,w=i.get(b)-1;Nf.set(b,S),i.set(b,w),S||(Iy.has(b)||b.removeAttribute(n),Iy.delete(b)),w||b.removeAttribute(r)}),J_--,J_||(Nf=new WeakMap,Nf=new WeakMap,Iy=new WeakMap,Ly={})}},AY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=MY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),NY(n,o,r,"aria-hidden")):function(){return null}};/*! -* tabbable 6.2.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var IY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],dC=IY.join(","),SL=typeof Element>"u",uv=SL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,V1=!SL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},B1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},LY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},DY=function(t,r,n){if(B1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(dC));return r&&uv.call(t,dC)&&o.unshift(t),o=o.filter(n),o},FY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!B1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=uv.call(a,dC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var b=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!B1(b,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(b&&S){var w=e(b===!0?a.children:b.children,!0,n);n.flatten?o.push.apply(o,w):o.push({scopeParent:a,candidates:w})}else i.unshift.apply(i,a.children)}}return o},CL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},PL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||LY(t))&&!CL(t)?0:t.tabIndex},jY=function(t,r){var n=PL(t);return n<0&&r&&!CL(t)?0:n},zY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},TL=function(t){return t.tagName==="INPUT"},VY=function(t){return TL(t)&&t.type==="hidden"},BY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},UY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(uv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=V1(t);if(s&&!s.shadowRoot&&o(s)===!0)return xk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if(GY(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return xk(t);return!1},qY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},QY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=jY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(zY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},U1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=FY([t],r.includeContainer,{filter:Sk.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:XY}):n=DY(t,r.includeContainer,Sk.bind(null,r)),QY(n)},OL={exports:{}},Ni={};/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var kL=be,ki=fp;function Fe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fC=Object.prototype.hasOwnProperty,ZY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ck={},Pk={};function JY(e){return fC.call(Pk,e)?!0:fC.call(Ck,e)?!1:ZY.test(e)?Pk[e]=!0:(Ck[e]=!0,!1)}function eX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tX(e,t,r,n){if(t===null||typeof t>"u"||eX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var C3=/[\-:]([a-z])/g;function P3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C3,P3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function T3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{tx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?sg(e):""}function rX(e){switch(e.tag){case 5:return sg(e.type);case 16:return sg("Lazy");case 13:return sg("Suspense");case 19:return sg("SuspenseList");case 0:case 2:case 15:return e=rx(e.type,!1),e;case 11:return e=rx(e.type.render,!1),e;case 1:return e=rx(e.type,!0),e;default:return""}}function vC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case tp:return"Fragment";case ep:return"Portal";case pC:return"Profiler";case O3:return"StrictMode";case hC:return"Suspense";case gC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RL:return(e.displayName||"Context")+".Consumer";case ML:return(e._context.displayName||"Context")+".Provider";case k3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case E3:return t=e.displayName||null,t!==null?t:vC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return vC(e(t))}catch{}}return null}function nX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vC(t);case 8:return t===O3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oX(e){var t=AL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fy(e){e._valueTracker||(e._valueTracker=oX(e))}function IL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function H1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ok(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LL(e,t){t=t.checked,t!=null&&T3(e,"checked",t,!1)}function yC(e,t){LL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bC(e,t.type,r):t.hasOwnProperty("defaultValue")&&bC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kk(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bC(e,t,r){(t!=="number"||H1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ug=Array.isArray;function xp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=jy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Tg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iX=["Webkit","ms","Moz","O"];Object.keys(Tg).forEach(function(e){iX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tg[t]=Tg[e]})});function zL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Tg.hasOwnProperty(e)&&Tg[e]?(""+t).trim():t+"px"}function VL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=zL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var aX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xC(e,t){if(t){if(aX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Fe(62))}}function SC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var CC=null;function M3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var PC=null,Sp=null,Cp=null;function Rk(e){if(e=tm(e)){if(typeof PC!="function")throw Error(Fe(280));var t=e.stateNode;t&&(t=m2(t),PC(e.stateNode,e.type,t))}}function BL(e){Sp?Cp?Cp.push(e):Cp=[e]:Sp=e}function UL(){if(Sp){var e=Sp,t=Cp;if(Cp=Sp=null,Rk(e),t)for(e=0;e>>=0,e===0?32:31-(mX(e)/yX|0)|0}var zy=64,Vy=4194304;function cg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function K1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=cg(l):(i&=a,i!==0&&(n=cg(i)))}else a=r&~o,a!==0?n=cg(a):i!==0&&(n=cg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function xX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=kg),Vk=" ",Bk=!1;function sD(e,t){switch(e){case"keyup":return XX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rp=!1;function ZX(e,t){switch(e){case"compositionend":return uD(t);case"keypress":return t.which!==32?null:(Bk=!0,Vk);case"textInput":return e=t.data,e===Vk&&Bk?null:e;default:return null}}function JX(e,t){if(rp)return e==="compositionend"||!j3&&sD(e,t)?(e=aD(),Fb=L3=uu=null,rp=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$k(r)}}function pD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hD(){for(var e=window,t=H1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=H1(e.document)}return t}function z3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sQ(e){var t=hD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pD(r.ownerDocument.documentElement,r)){if(n!==null&&z3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Gk(r,i);var a=Gk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,np=null,RC=null,Mg=null,NC=!1;function Kk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;NC||np==null||np!==H1(n)||(n=np,"selectionStart"in n&&z3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Mg&&mv(Mg,n)||(Mg=n,n=X1(RC,"onSelect"),0ap||(e.current=jC[ap],jC[ap]=null,ap--)}function cr(e,t){ap++,jC[ap]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function Wp(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Z1(){yr(Jo),yr(go)}function e8(e,t,r){if(go.current!==Ru)throw Error(Fe(168));cr(go,t),cr(Jo,r)}function SD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Fe(108,nX(e)||"Unknown",o));return Ir({},r,n)}function J1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function t8(e,t,r){var n=e.stateNode;if(!n)throw Error(Fe(169));r?(e=SD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,y2=!1,vx=!1;function CD(e){Yl===null?Yl=[e]:Yl.push(e)}function wQ(e){y2=!0,CD(e)}function Hu(){if(!vx&&Yl!==null){vx=!0;var e=0,t=Qt;try{var r=Yl;for(Qt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return xr&&zc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),xr&&zc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===tp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Dy:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===tp){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&s8(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=$0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===tp?(p=ed(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=$b(c.type,c.key,c.props,null,h.mode,g),g.ref=$0(h,p,c),g.return=h,h=g)}return a(h);case ep:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=Cx(c,h.mode,g),p.return=h,h=p}return a(h);case eu:return _=c._init,C(h,p,_(c._payload),g)}if(ug(c))return P(h,p,c,g);if(V0(c))return y(h,p,c,g);Ky(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=Sx(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Gp=ND(!0),AD=ND(!1),rm={},yl=Uu(rm),_v=Uu(rm),xv=Uu(rm);function Yc(e){if(e===rm)throw Error(Fe(174));return e}function q3(e,t){switch(cr(xv,t),cr(_v,e),cr(yl,rm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_C(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_C(t,e)}yr(yl),cr(yl,t)}function Kp(){yr(yl),yr(_v),yr(xv)}function ID(e){Yc(xv.current);var t=Yc(yl.current),r=_C(t,e.type);t!==r&&(cr(_v,e),cr(yl,r))}function Y3(e){_v.current===e&&(yr(yl),yr(_v))}var Er=Uu(0);function iw(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mx=[];function X3(){for(var e=0;er?r:4,e(!0);var n=yx.transition;yx.transition={};try{e(!1),t()}finally{Qt=r,yx.transition=n}}function XD(){return ca().memoizedState}function CQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},QD(e))ZD(t,r);else if(r=kD(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),JD(r,t,n)}}function PQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(QD(e))ZD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,G3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=kD(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),JD(r,t,n))}}function QD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function ZD(e,t){Rg=aw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function JD(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,N3(e,r)}}var lw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},TQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:c8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bb(4194308,4,$D.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:u8,useDebugValue:tT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=u8(!1),t=e[0];return e=SQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=t(),Nn===null)throw Error(Fe(349));(ud&30)!==0||FD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,c8(zD.bind(null,n,i,e),[e]),n.flags|=2048,Pv(9,jD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[wv]=n,sF(e,t,!1,!1),t.stateNode=e;e:{switch(a=SC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oYp&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304)}else{if(!n)if(e=iw(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),G0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Yp&&r!==1073741824&&(t.flags|=128,n=!0,G0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return lT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Fe(156,t.tag))}function IQ(e,t){switch(B3(t),t.tag){case 1:return ei(t.type)&&Z1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kp(),yr(Jo),yr(go),X3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Y3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Fe(340));$p()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return Kp(),null;case 10:return $3(t.type._context),null;case 22:case 23:return lT(),null;case 24:return null;default:return null}}var Yy=!1,fo=!1,LQ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function cp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function XC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var b8=!1;function DQ(e,t){if(AC=q1,e=hD(),z3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(IC={focusedElem:e,selectionRange:r},q1=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(g){Br(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return P=b8,b8=!1,P}function Ng(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&XC(t,r,i)}o=o.next}while(o!==n)}}function _2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function QC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function dF(e){var t=e.alternate;t!==null&&(e.alternate=null,dF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[wv],delete t[FC],delete t[yQ],delete t[bQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fF(e){return e.tag===5||e.tag===3||e.tag===4}function w8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ZC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Q1));else if(n!==4&&(e=e.child,e!==null))for(ZC(e,t,r),e=e.sibling;e!==null;)ZC(e,t,r),e=e.sibling}function JC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(JC(e,t,r),e=e.sibling;e!==null;)JC(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)pF(e,t,r),r=r.sibling}function pF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(p2,r)}catch{}switch(r.tag){case 5:fo||cp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?gx(e.parentNode,r):e.nodeType===1&&gx(e,r),gv(e)):gx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&XC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(cp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function _8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new LQ),t.forEach(function(n){var o=$Q.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*jQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,cw=0,($t&6)!==0)throw Error(Fe(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-iT?Jc(e,0):oT|=r),ti(e,t)}function _F(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vy,Vy<<=1,(Vy&130023424)===0&&(Vy=4194304)));var r=No();e=hs(e,t),e!==null&&(Jv(e,t,r),ti(e,r))}function WQ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),_F(e,r)}function $Q(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(t),_F(e,r)}var xF;xF=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,NQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&PD(t,tw,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ub(e,t),e=t.pendingProps;var o=Wp(t,go.current);Tp(t,r),o=Z3(null,t,n,e,o,r);var i=J3();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,J1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,K3(t),o.updater=b2,t.stateNode=o,o._reactInternals=t,HC(t,n,e,r),t=GC(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&V3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ub(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=KQ(n),e=Oa(n,e),o){case 0:t=$C(null,t,n,e,r);break e;case 1:t=v8(null,t,n,e,r);break e;case 11:t=h8(null,t,n,e,r);break e;case 14:t=g8(null,t,n,Oa(n.type,e),r);break e}throw Error(Fe(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),$C(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),v8(e,t,n,o,r);case 3:e:{if(iF(t),e===null)throw Error(Fe(387));n=t.pendingProps,i=t.memoizedState,o=i.element,ED(e,t),ow(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qp(Error(Fe(423)),t),t=m8(e,t,n,r,o);break e}else if(n!==o){o=qp(Error(Fe(424)),t),t=m8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=AD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($p(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return ID(t),e===null&&VC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,LC(n,o)?a=null:i!==null&&LC(n,i)&&(t.flags|=32),oF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&VC(t),null;case 13:return aF(e,t,r);case 4:return q3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Gp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),h8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(rw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),BC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Fe(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),BC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Tp(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),g8(e,t,n,o,r);case 15:return rF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Ub(e,t),t.tag=1,ei(n)?(e=!0,J1(t)):e=!1,Tp(t,r),RD(t,n,o),HC(t,n,o,r),GC(null,t,n,!0,e,r);case 19:return lF(e,t,r);case 22:return nF(e,t,r)}throw Error(Fe(156,t.tag))};function SF(e,t){return YL(e,t)}function GQ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new GQ(e,t,r,n)}function uT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KQ(e){if(typeof e=="function")return uT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k3)return 11;if(e===E3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $b(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")uT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case tp:return ed(r.children,o,i,t);case O3:a=8,o|=8;break;case pC:return e=ra(12,r,t,o|2),e.elementType=pC,e.lanes=i,e;case hC:return e=ra(13,r,t,o),e.elementType=hC,e.lanes=i,e;case gC:return e=ra(19,r,t,o),e.elementType=gC,e.lanes=i,e;case NL:return S2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ML:a=10;break e;case RL:a=9;break e;case k3:a=11;break e;case E3:a=14;break e;case eu:a=16,n=null;break e}throw Error(Fe(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function S2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=NL,e.lanes=r,e.stateNode={isHidden:!1},e}function Sx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Cx(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ox(0),this.expirationTimes=ox(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ox(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function cT(e,t,r,n,o,i,a,l,s){return e=new qQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},K3(i),e}function YQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OF)}catch(e){console.error(e)}}OF(),OL.exports=Ni;var Nu=OL.exports;const kF=["top","right","bottom","left"],E8=["start","end"],M8=kF.reduce((e,t)=>e.concat(t,t+"-"+E8[0],t+"-"+E8[1]),[]),Ua=Math.min,po=Math.max,pw=Math.round,Zy=Math.floor,Au=e=>({x:e,y:e}),eZ={left:"right",right:"left",bottom:"top",top:"bottom"},tZ={start:"end",end:"start"};function o4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function hT(e){return e==="x"?"y":"x"}function gT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function vT(e){return hT(vs(e))}function EF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=vT(e),i=gT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gw(a)),[a,gw(a)]}function rZ(e){const t=gw(e);return[hw(e),t,hw(t)]}function hw(e){return e.replace(/start|end/g,t=>tZ[t])}function nZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function oZ(e,t,r,n){const o=ja(e);let i=nZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(hw)))),i}function gw(e){return e.replace(/left|right|bottom|top/g,t=>eZ[t])}function iZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function mT(e){return typeof e!="number"?iZ(e):{top:e,right:e,bottom:e,left:e}}function Xp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function R8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=vT(t),l=gT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,b=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let w;switch(s){case"top":w={x:v,y:n.y-o.height};break;case"bottom":w={x:v,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:b};break;case"left":w={x:n.x-o.width,y:b};break;default:w={x:n.x,y:n.y}}switch(ja(t)){case"start":w[a]-=S*(r&&d?-1:1);break;case"end":w[a]+=S*(r&&d?-1:1);break}return w}const aZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:b}=R8(d,n,s),S=n,w={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const b=mT(v),S={x:r,y:n},w=vT(o),P=gT(w),y=await a.getDimensions(d),C=w==="y",h=C?"top":"left",p=C?"bottom":"right",c=C?"clientHeight":"clientWidth",g=i.reference[P]+i.reference[w]-S[w]-i.floating[P],m=S[w]-i.reference[w],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=_?_[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(_)))&&(T=l.floating[c]||i.floating[P]);const k=g/2-m/2,R=T/2-y[P]/2-1,E=Ua(b[h],R),A=Ua(b[p],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,U=o4(F,B,V),q=!s.arrow&&ja(o)!=null&&B!==U&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?hw(o)!==o:!1):!0)}const uZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:b,allowedPlacements:S=M8,autoAlignment:w=!0,...P}=Ha(e,t),y=b!==void 0||S===M8?sZ(b||null,w,S):S,C=await fd(t,P),h=((r=a.autoPlacement)==null?void 0:r.index)||0,p=y[h];if(p==null)return{};const c=EF(p,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==p)return{reset:{placement:y[0]}};const g=[C[Ei(p)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:p,overflows:g}],_=y[h+1];if(_)return{data:{index:h+1,overflows:m},reset:{placement:_}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:h+1,overflows:m},reset:{placement:R}}:{}}}},cZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const h=Ei(o),p=vs(l),c=Ei(l)===l,g=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[gw(l)]:rZ(l)),_=P!=="none";!S&&_&&m.push(...oZ(l,y,P,g));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[h]),b){const B=EF(o,a,g);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,U=T[B];if(U)return{data:{index:B,overflows:E},reset:{placement:U}};let q=(F=E.filter(J=>J.overflows[0]<=0).sort((J,Q)=>J.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!q)switch(w){case"bestFit":{var V;const J=(V=E.filter(Q=>{if(_){const W=vs(Q.placement);return W===p||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,Y)=>W+Y,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];J&&(q=J);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function N8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A8(e){return kF.some(t=>e[t]>=0)}const dZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=N8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:A8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=N8(i,r.floating);return{data:{escapedOffsets:a,escaped:A8(a)}}}default:return{}}}}};function MF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function fZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Xp(MF(o)))}const pZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),b=fZ(v),S=Xp(MF(v)),w=mT(l);function P(){if(b.length===2&&b[0].left>b[1].right&&s!=null&&d!=null)return b.find(C=>s>C.left-w.left&&sC.top-w.top&&d=2){if(vs(r)==="y"){const E=b[0],A=b[b.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,U=F?E.left:A.left,q=F?E.right:A.right,J=q-U,Q=B-V;return{top:V,bottom:B,left:U,right:q,width:J,height:Q,x:U,y:V}}const C=Ei(r)==="left",h=po(...b.map(E=>E.right)),p=Ua(...b.map(E=>E.left)),c=b.filter(E=>C?E.left===p:E.right===h),g=c[0].top,m=c[c.length-1].bottom,_=p,T=h,k=T-_,R=m-g;return{top:g,bottom:m,left:_,right:T,width:k,height:R,x:_,y:g}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function hZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,b=Ha(t,e);let{mainAxis:S,crossAxis:w,alignmentAxis:P}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof P=="number"&&(w=l==="end"?P*-1:P),s?{x:w*v,y:S*d}:{x:S*d,y:w*v}}const gZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await hZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},vZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:h,y:p}=C;return{x:h,y:p}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),b=vs(Ei(o)),S=hT(b);let w=d[S],P=d[b];if(i){const C=S==="y"?"top":"left",h=S==="y"?"bottom":"right",p=w+v[C],c=w-v[h];w=o4(p,w,c)}if(a){const C=b==="y"?"top":"left",h=b==="y"?"bottom":"right",p=P+v[C],c=P-v[h];P=o4(p,P,c)}const y=l.fn({...t,[S]:w,[b]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[b]:a}}}}}},mZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},b=vs(o),S=hT(b);let w=v[S],P=v[b];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",g=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;wm&&(w=m)}if(d){var h,p;const c=S==="y"?"width":"height",g=["top","left"].includes(Ei(o)),m=i.reference[b]-i.floating[c]+(g&&((h=a.offset)==null?void 0:h[b])||0)+(g?0:C.crossAxis),_=i.reference[b]+i.reference[c]+(g?0:((p=a.offset)==null?void 0:p[b])||0)-(g?C.crossAxis:0);P_&&(P=_)}return{[S]:w,[b]:P}}}},yZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),b=Ei(o),S=ja(o),w=vs(o)==="y",{width:P,height:y}=i.floating;let C,h;b==="top"||b==="bottom"?(C=b,h=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=b,C=S==="end"?"top":"bottom");const p=y-v.top-v.bottom,c=P-v.left-v.right,g=Ua(y-v[C],p),m=Ua(P-v[h],c),_=!t.middlewareData.shift;let T=g,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=p),_&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);w?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function k2(){return typeof window<"u"}function gh(e){return RF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(RF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RF(e){return k2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return k2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return k2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function I8(e){return!k2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function nm(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function bZ(e){return["table","td","th"].includes(gh(e))}function E2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function yT(e){const t=bT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function wZ(e){let t=Iu(e);for(;wl(t)&&!Qp(t);){if(yT(t))return t;if(E2(t))return null;t=Iu(t)}return null}function bT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qp(e){return["html","body","#document"].includes(gh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function M2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(gh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||I8(e)&&e.host||_l(e);return I8(t)?t.host:t}function NF(e){const t=Iu(e);return Qp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&nm(t)?t:NF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=NF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=i4(a);return t.concat(a,a.visualViewport||[],nm(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function i4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=pw(r)!==i||pw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function wT(e){return Wa(e)?e:e.contextElement}function kp(e){const t=wT(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=AF(t);let a=(i?pw(r.width):r.width)/n,l=(i?pw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _Z=Au(0);function IF(e){const t=Pi(e);return!bT()||!t.visualViewport?_Z:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=wT(e);let a=Au(1);t&&(n?Wa(n)&&(a=kp(n)):a=kp(e));const l=xZ(i,r,n)?IF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=Pi(i),w=n&&Wa(n)?Pi(n):n;let P=S,y=i4(P);for(;y&&n&&w!==P;){const C=kp(y),h=y.getBoundingClientRect(),p=$a(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=Pi(y),y=i4(P)}}return Xp({width:v,height:b,x:s,y:d})}function SZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?E2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),b=wl(n);if((b||!b&&!i)&&((gh(n)!=="body"||nm(a))&&(s=M2(n)),wl(n))){const S=pd(n);d=kp(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function CZ(e){return Array.from(e.getClientRects())}function a4(e,t){const r=M2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function PZ(e){const t=_l(e),r=M2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+a4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function TZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=bT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function OZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?kp(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function L8(e,t,r){let n;if(t==="viewport")n=TZ(e,r);else if(t==="document")n=PZ(_l(e));else if(Wa(t))n=OZ(t,r);else{const o=IF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Xp(n)}function LF(e,t){const r=Iu(e);return r===t||!Wa(r)||Qp(r)?!1:$a(r).position==="fixed"||LF(r,t)}function kZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&gh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Qp(a);){const l=$a(a),s=yT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nm(a)&&!s&&LF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function EZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?E2(t)?[]:kZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const b=L8(t,v,o);return d.top=po(b.top,d.top),d.right=Ua(b.right,d.right),d.bottom=Ua(b.bottom,d.bottom),d.left=po(b.left,d.left),d},L8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function MZ(e){const{width:t,height:r}=AF(e);return{width:t,height:r}}function RZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((gh(t)!=="body"||nm(o))&&(l=M2(t)),n){const w=pd(t,!0,i,t);s.x=w.x+t.clientLeft,s.y=w.y+t.clientTop}else o&&(s.x=a4(o));let d=0,v=0;if(o&&!n&&!i){const w=o.getBoundingClientRect();v=w.top+l.scrollTop,d=w.left+l.scrollLeft-a4(o,w)}const b=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:b,y:S,width:a.width,height:a.height}}function Px(e){return $a(e).position==="static"}function D8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function DF(e,t){const r=Pi(e);if(E2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Qp(o);){if(Wa(o)&&!Px(o))return o;o=Iu(o)}return r}let n=D8(e,t);for(;n&&bZ(n)&&Px(n);)n=D8(n,t);return n&&Qp(n)&&Px(n)&&!yT(n)?r:n||wZ(e)||r}const NZ=async function(e){const t=this.getOffsetParent||DF,r=this.getDimensions,n=await r(e.floating);return{reference:RZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function AZ(e){return $a(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:SZ,getDocumentElement:_l,getClippingRect:EZ,getOffsetParent:DF,getElementRects:NZ,getClientRects:CZ,getDimensions:MZ,getScale:kp,isElement:Wa,isRTL:AZ};function IZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:b,height:S}=e.getBoundingClientRect();if(l||t(),!b||!S)return;const w=Zy(v),P=Zy(o.clientWidth-(d+b)),y=Zy(o.clientHeight-(v+S)),C=Zy(d),p={rootMargin:-w+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function g(m){const _=m[0].intersectionRatio;if(_!==s){if(!c)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(g,p)}r.observe(e)}return a(!0),i}function LZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=wT(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?IZ(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const h=pd(e);y&&(h.x!==y.x||h.y!==y.y||h.width!==y.width||h.height!==y.height)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}const Gb=fd,jF=gZ,DZ=uZ,FZ=vZ,jZ=cZ,zZ=yZ,VZ=dZ,F8=lZ,BZ=pZ,UZ=mZ,zF=(e,t,r)=>{const n=new Map,o={platform:FF,...r},i={...o.platform,_c:n};return aZ(e,t,{...o,platform:i})},HZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?F8({element:t.current,padding:r}).fn(o):{}:t?F8({element:t,padding:r}).fn(o):{}}}};var Kb=typeof document<"u"?be.useLayoutEffect:be.useEffect;function vw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!vw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!vw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function j8(e){const t=be.useRef(e);return Kb(()=>{t.current=e}),t}function WZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=be.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=be.useState(n);vw(d,n)||v(n);const b=be.useRef(null),S=be.useRef(null),w=be.useRef(l),P=j8(i),y=j8(o),[C,h]=be.useState(null),[p,c]=be.useState(null),g=be.useCallback(E=>{b.current!==E&&(b.current=E,h(E))},[]),m=be.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),_=be.useCallback(()=>{if(!b.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),zF(b.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!vw(w.current,F)&&(w.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Kb(()=>{a===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=be.useRef(!1);Kb(()=>(T.current=!0,()=>{T.current=!1}),[]),Kb(()=>{if(C&&p){if(P.current)return P.current(C,p,_);_()}},[C,p,_,P]);const k=be.useMemo(()=>({reference:b,floating:S,setReference:g,setFloating:m}),[g,m]),R=be.useMemo(()=>({reference:C,floating:p}),[C,p]);return be.useMemo(()=>({...l,update:_,refs:k,elements:R,reference:g,floating:m}),[l,_,k,R,g,m])}var Mr=typeof document<"u"?be.useLayoutEffect:be.useEffect;let Tx=!1,$Z=0;const z8=()=>"floating-ui-"+$Z++;function GZ(){const[e,t]=be.useState(()=>Tx?z8():void 0);return Mr(()=>{e==null&&t(z8())},[]),be.useEffect(()=>{Tx||(Tx=!0)},[]),e}const KZ=_L.useId,Ov=KZ||GZ;function VF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const BF=be.createContext(null),UF=be.createContext(null),vh=()=>{var e;return((e=be.useContext(BF))==null?void 0:e.id)||null},Od=()=>be.useContext(UF),qZ=e=>{const t=Ov(),r=Od(),n=vh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},YZ=e=>{let{children:t,id:r}=e;const n=vh();return be.createElement(BF.Provider,{value:be.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},XZ=e=>{let{children:t}=e;const r=be.useRef([]),n=be.useCallback(a=>{r.current=[...r.current,a]},[]),o=be.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=be.useState(()=>VF())[0];return be.createElement(UF.Provider,{value:be.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function _T(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function HF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function xT(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof xT(e).Element:!1}function hd(e){return e?e instanceof xT(e).HTMLElement:!1}function QZ(e){if(typeof ShadowRoot>"u")return!1;const t=xT(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WF(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(_T())||t.test(HF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $F(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function l4(){return/apple/i.test(navigator.vendor)}function GF(){return _T().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function mw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=be.useRef(e);return Mr(()=>{t.current=e}),t}const V8="data-floating-ui-safe-polygon";function qb(e,t,r){return r&&!mw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const ZZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:b,elements:{domReference:S,floating:w},refs:P}=e,y=Od(),C=vh(),h=oa(o),p=oa(n),c=be.useRef(),g=be.useRef(),m=be.useRef(),_=be.useRef(),T=be.useRef(!0),k=be.useRef(!1),R=be.useRef(()=>{}),E=be.useCallback(()=>{var B;const U=(B=v.current.openEvent)==null?void 0:B.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[v]);be.useEffect(()=>{if(!r)return;function B(){clearTimeout(g.current),clearTimeout(_.current),T.current=!0}return b.on("dismiss",B),()=>{b.off("dismiss",B)}},[r,b]),be.useEffect(()=>{if(!r||!h.current||!s)return;function B(){E()&&d(!1)}const U=Yo(w).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[w,s,d,r,h,v,E]);const A=be.useCallback(function(B){B===void 0&&(B=!0);const U=qb(p.current,"close",c.current);U&&!m.current?(clearTimeout(g.current),g.current=setTimeout(()=>d(!1),U)):B&&(clearTimeout(g.current),d(!1))},[p,d]),F=be.useCallback(()=>{R.current(),m.current=void 0},[]),V=be.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(V8),k.current=!1}},[P]);return be.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function U(Q){if(clearTimeout(g.current),T.current=!1,i&&!mw(c.current)||a>0&&qb(p.current,"open")===0)return;v.current.openEvent=Q;const W=qb(p.current,"open",c.current);W?g.current=setTimeout(()=>{d(!0)},W):d(!0)}function q(Q){if(B())return;R.current();const W=Yo(w);if(clearTimeout(_.current),h.current){clearTimeout(g.current),m.current=h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const Y=m.current;W.addEventListener("mousemove",Y),R.current=()=>{W.removeEventListener("mousemove",Y)};return}A()}function J(Q){B()||h.current==null||h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",J),w==null||w.addEventListener("mouseleave",J),l&&Q.addEventListener("mousemove",U,{once:!0}),Q.addEventListener("mouseenter",U),Q.addEventListener("mouseleave",q),()=>{s&&Q.removeEventListener("mouseleave",J),w==null||w.removeEventListener("mouseleave",J),l&&Q.removeEventListener("mousemove",U),Q.removeEventListener("mouseenter",U),Q.removeEventListener("mouseleave",q)}}},[S,w,r,e,i,a,l,A,F,V,d,s,y,p,h,v]),Mr(()=>{var B;if(r&&s&&(B=h.current)!=null&&B.__options.blockPointerEvents&&E()){const J=Yo(w).body;if(J.setAttribute(V8,""),J.style.pointerEvents="none",k.current=!0,na(S)&&w){var U,q;const Q=S,W=y==null||(U=y.nodesRef.current.find(Y=>Y.id===C))==null||(q=U.context)==null?void 0:q.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",w.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",w.style.pointerEvents=""}}}},[r,s,C,w,S,y,h,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),be.useEffect(()=>()=>{F(),clearTimeout(g.current),clearTimeout(_.current),V()},[r,F,V]),be.useMemo(()=>{if(!r)return{};function B(U){c.current=U.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(g.current)},onMouseLeave(){b.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[b,r,a,s,d,A])},KF=be.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),qF=()=>be.useContext(KF),JZ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=be.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=be.useRef(null),l=be.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),be.createElement(KF.Provider,{value:be.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},eJ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=qF();be.useEffect(()=>{i&&(s({delay:{open:1,close:qb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),be.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const b=window.setTimeout(v,d);return()=>{clearTimeout(b)}}else v()},[r,s,i,o,n,l,d]),be.useEffect(()=>{r&&a(o)},[r,a,o])};function kv(){return kv=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():B8=requestAnimationFrame(i)}function tJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Lg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function R2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const rJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function YF(e){return hd(e)&&e.matches(rJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const yw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function XF(e,t){const r=U1(e,yw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function QF(){return XF(document.body,"next")}function ZF(){return XF(document.body,"prev")}function Dg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function nJ(e){U1(e,yw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function oJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const iJ=_L.useInsertionEffect,aJ=iJ||(e=>e());function mh(e){const t=be.useRef(()=>{});return aJ(()=>{t.current=e}),be.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(l4()&&i("button"),document.addEventListener("keydown",U8),()=>{document.removeEventListener("keydown",U8)}),[]),be.createElement("span",kv({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:ST,onFocus:a=>{l4()&&GF()&&!lJ(a)?(a.persist(),CT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),JF=be.createContext(null),ej=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=be.useState(null),i=Ov(),a=tj();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},sJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=ej({id:r,enabled:!n}),[a,l]=be.useState(null),s=be.useRef(null),d=be.useRef(null),v=be.useRef(null),b=be.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return be.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function w(P){i&&Dg(P)&&(P.type==="focusin"?oJ:nJ)(i)}return i.addEventListener("focusin",w,!0),i.addEventListener("focusout",w,!0),()=>{i.removeEventListener("focusin",w,!0),i.removeEventListener("focusout",w,!0)}},[i,o,a==null?void 0:a.modal]),be.createElement(JF.Provider,{value:be.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:b,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&be.createElement(bw,{"data-type":"outside",ref:s,onFocus:w=>{if(Dg(w,i)){var P;(P=v.current)==null||P.focus()}else{const y=ZF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&be.createElement("span",{"aria-owns":i.id,style:ST}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&be.createElement(bw,{"data-type":"outside",ref:d,onFocus:w=>{if(Dg(w,i)){var P;(P=b.current)==null||P.focus()}else{const y=QF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},tj=()=>be.useContext(JF),uJ=be.forwardRef(function(t,r){return be.createElement("button",kv({},t,{type:"button",ref:r,tabIndex:-1,style:ST}))});function cJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:b,onOpenChange:S,events:w,dataRef:P,elements:{domReference:y,floating:C}}=t,h=oa(n),p=Od(),c=tj(),[g,m]=be.useState(null),_=typeof i=="number"&&i<0,T=be.useRef(null),k=be.useRef(null),R=be.useRef(!1),E=be.useRef(null),A=be.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&YF(y),B=be.useCallback(function(Q){return Q===void 0&&(Q=C),Q?U1(Q,yw()):[]},[C]),U=be.useCallback(Q=>{const W=B(Q);return h.current.map(Y=>y&&Y==="reference"?y:C&&Y==="floating"?C:W).filter(Boolean).flat()},[y,C,h,B]);be.useEffect(()=>{if(!l)return;function Q(Y){if(Y.key==="Tab"){B().length===0&&!V&&Xi(Y);const re=U(),ne=R2(Y);h.current[0]==="reference"&&ne===y&&(Xi(Y),Y.shiftKey?Ys(re[re.length-1]):Ys(re[1])),h.current[1]==="floating"&&ne===C&&Y.shiftKey&&(Xi(Y),Ys(re[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,h,v,V,B,U]),be.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(Y){const re=Y.relatedTarget,ne=!(Ho(y,re)||Ho(C,re)||Ho(re,C)||Ho(c==null?void 0:c.portalNode,re)||re!=null&&re.hasAttribute("data-floating-ui-focus-guard")||p&&(Lg(p.nodesRef.current,b).find(se=>{var ve,we;return Ho((ve=se.context)==null?void 0:ve.elements.floating,re)||Ho((we=se.context)==null?void 0:we.elements.domReference,re)})||tJ(p.nodesRef.current,b).find(se=>{var ve,we;return((ve=se.context)==null?void 0:ve.elements.floating)===re||((we=se.context)==null?void 0:we.elements.domReference)===re})));re&&ne&&!A.current&&re!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,b,p,c,S,d]),be.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function Y(){return[T.current,k.current].filter(Boolean)}if(C&&l){const re=[C,...W,...Y()],ne=AY(h.current.includes("reference")||V?re.concat(y||[]):re);return()=>{ne()}}},[y,C,l,h,c,V]),be.useEffect(()=>{if(l&&!o&&C){const Q=[],W=yw(),Y=U1(Yo(C).body,W),re=U(),ne=Y.filter(se=>!re.includes(se));return ne.forEach((se,ve)=>{Q[ve]=se.getAttribute("tabindex"),se.setAttribute("tabindex","-1")}),()=>{ne.forEach((se,ve)=>{const we=Q[ve];we==null?se.removeAttribute("tabindex"):se.setAttribute("tabindex",we)})}}},[C,l,o,U]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,Y=!1;const re=gd(Q),ne=P.current;E.current=re;const se=U(C),ve=(typeof i=="number"?se[i]:i.current)||C;!_&&Ys(ve,{preventScroll:ve===C});function we(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const ee=ce.data.returnFocus;typeof ee=="object"?(W=!0,Y=ee.preventScroll):W=ee}return w.on("dismiss",we),()=>{if(w.off("dismiss",we),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:Y});else{var ce;ne.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:Y}),setTimeout(()=>{delete ne.__syncReturnFocus})}}},[C,U,i,a,P,v,w,_]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(_||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,_,v]);const q=o&&(F||l)&&!V;function J(Q){return s&&l?be.createElement(uJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return be.createElement(be.Fragment,null,q&&be.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const Y=U();Ys(n[0]==="reference"?Y[0]:Y[Y.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Dg(Q,c.portalNode)){const Y=QF()||y;Y==null||Y.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:J("start"),be.cloneElement(r,g===0||n.includes("floating")?{tabIndex:0}:{}),J("end"),q&&be.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(U()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Dg(Q,c.portalNode)){const Y=ZF()||y;Y==null||Y.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const Jy="data-floating-ui-scroll-lock",dJ=be.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(Jy))return;document.body.setAttribute(Jy,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(_T()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(Jy),Object.assign(document.body.style,{overflow:"",[d]:""})};const b=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,w=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(w-Math.floor(b))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(Jy),window.scrollTo(w,P)}},[n]),be.createElement("div",kv({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function H8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function W8(e){return YF(e)}const fJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const b=be.useRef();return be.useMemo(()=>a?{reference:{onPointerDown(S){b.current=S.pointerType},onMouseDown(S){S.button===0&&(mw(b.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&b.current){b.current=void 0;return}mw(b.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){b.current=void 0,v&&(H8(S)||(S.key===" "&&!W8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(H8(S)||W8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function Yb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const pJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},hJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},gJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},vJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:b=!0,outsidePress:S=!0,outsidePressEvent:w="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:h=!0}=t===void 0?{}:t;const p=Od(),c=vh()!=null,g=mh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?g:S,_=be.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=gJ(h);return be.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const U=p?Lg(p.nodesRef.current,i):[];if(U.length>0){let q=!0;if(U.forEach(J=>{var Q;if((Q=J.context)!=null&&Q.open&&!J.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const U=_.current;if(_.current=!1,U||typeof m=="function"&&!m(B))return;const q=R2(B);if(hd(q)&&s){const W=s.ownerDocument.defaultView||window,Y=q.scrollWidth>q.clientWidth,re=q.scrollHeight>q.clientHeight;let ne=re&&B.offsetX>q.clientWidth;if(re&&W.getComputedStyle(q).direction==="rtl"&&(ne=B.offsetX<=q.offsetWidth-q.clientWidth),ne||Y&&B.offsetY>q.clientHeight)return}const J=p&&Lg(p.nodesRef.current,i).some(W=>{var Y;return Yb(B,(Y=W.context)==null?void 0:Y.elements.floating)});if(Yb(B,s)||Yb(B,l)||J)return;const Q=p?Lg(p.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(Y=>{var re;if((re=Y.context)!=null&&re.open&&!Y.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:WF(B)||$F(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);b&&F.addEventListener("keydown",R),m&&F.addEventListener(w,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var U;return B!==((U=F.defaultView)==null?void 0:U.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{b&&F.removeEventListener("keydown",R),m&&F.removeEventListener(w,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,b,m,w,o,p,i,r,n,C,v,T,k,c]),be.useEffect(()=>{_.current=!1},[m,w]),be.useMemo(()=>v?{reference:{[pJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[hJ[w]]:()=>{_.current=!0}}}:{},[v,o,P,w,y,n])},mJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const b=be.useRef(""),S=be.useRef(!1),w=be.useRef();return be.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),be.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),be.useEffect(()=>()=>{clearTimeout(w.current)},[]),be.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;b.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&Yb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";w.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let $8=!1;const PT="ArrowUp",N2="ArrowDown",Zp="ArrowLeft",om="ArrowRight";function eb(e,t,r){return Math.floor(e/t)!==r}function q0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function A2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function G8(e,t){return A2(t,e===PT||e===N2,e===Zp||e===om)}function Ox(e,t,r){return A2(t,e===N2,r?e===Zp:e===om)||e==="Enter"||e==" "||e===""}function yJ(e,t,r){return A2(t,r?e===Zp:e===om,e===N2)}function bJ(e,t,r){return A2(t,r?e===om:e===Zp,e===PT)}function kx(e,t){return uo(e,{disabledIndices:t})}function K8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const wJ=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:b=!1,loop:S=!1,nested:w=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:h=!0,openOnArrowKeyDown:p=!0,disabledIndices:c=void 0,orientation:g="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=vh(),k=Od(),R=mh(s),E=be.useRef(C),A=be.useRef(v??-1),F=be.useRef(null),V=be.useRef(!0),B=be.useRef(R),U=be.useRef(r),q=be.useRef(!1),J=be.useRef(!1),Q=oa(c),W=oa(r),Y=oa(_),[re,ne]=be.useState(),se=be.useCallback(function(ce,ee,oe){oe===void 0&&(oe=!1);const ue=ce.current[ee.current];y?ne(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:GF()&&l4()?$8||q.current:!1}),requestAnimationFrame(()=>{const Se=Y.current;Se&&ue&&(oe||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,Y]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return $8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(J.current=!0,R(v)):U.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(q.current=!1,v!=null)return;U.current&&(A.current=-1,se(a,A)),!U.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||Ox(F.current,g,P)||w?kx(a,Q.current):K8(a,Q.current),R(A.current))}else q0(a,l)||(A.current=l,se(a,A,J.current),J.current=!1)},[d,r,l,v,w,a,g,P,R,se,Q]),Mr(()=>{if(d&&U.current&&!r){var ce,ee;const oe=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(ee=ce.context)==null?void 0:ee.elements.floating;oe&&!Ho(oe,gd(Yo(oe)))&&oe.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,U.current=r});const ve=l!=null,we=be.useMemo(()=>{function ce(oe){if(!r)return;const ue=a.current.indexOf(oe);ue!==-1&&R(ue)}return{onFocus(oe){let{currentTarget:ue}=oe;ce(ue)},onClick:oe=>{let{currentTarget:ue}=oe;return ue.focus({preventScroll:!0})},...h&&{onMouseMove(oe){let{currentTarget:ue}=oe;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,se(a,A),Nu.flushSync(()=>R(null)),!y)){var oe;(oe=o.floating.current)==null||oe.focus({preventScroll:!0})}}}}},[r,o,se,h,a,R,y]);return be.useMemo(()=>{if(!d)return{};const ce=Q.current;function ee(Ce){if(V.current=!1,q.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(w&&bJ(Ce.key,g,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Me=A.current,Ie=kx(a,ce),Re=K8(a,ce);if(Ce.key==="Home"&&(A.current=Ie,R(A.current)),Ce.key==="End"&&(A.current=Re,R(A.current)),m>1){const ye=A.current;if(Ce.key===PT){if(Xi(Ce),ye===-1)A.current=Re;else if(A.current=uo(a,{startingIndex:ye,amount:m,decrement:!0,disabledIndices:ce}),S&&(ye-mke?Ye:Ye-m}q0(a,A.current)&&(A.current=ye),R(A.current)}if(Ce.key===N2&&(Xi(Ce),ye===-1?A.current=Ie:(A.current=uo(a,{startingIndex:ye,amount:m,disabledIndices:ce}),S&&ye+m>Re&&(A.current=uo(a,{startingIndex:ye%m-m,amount:m,disabledIndices:ce}))),q0(a,A.current)&&(A.current=ye),R(A.current)),g==="both"){const ke=Math.floor(ye/m);Ce.key===om&&(Xi(Ce),ye%m!==m-1?(A.current=uo(a,{startingIndex:ye,disabledIndices:ce}),S&&eb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce})),eb(A.current,m,ke)&&(A.current=ye)),Ce.key===Zp&&(Xi(Ce),ye%m!==0?(A.current=uo(a,{startingIndex:ye,disabledIndices:ce,decrement:!0}),S&&eb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:ye+(m-ye%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:ye+(m-ye%m),decrement:!0,disabledIndices:ce})),eb(A.current,m,ke)&&(A.current=ye));const ze=Math.floor(Re/m)===ke;q0(a,A.current)&&(S&&ze?A.current=Ce.key===Zp?Re:uo(a,{startingIndex:ye-ye%m-1,disabledIndices:ce}):A.current=ye),R(A.current);return}}if(G8(Ce.key,g)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=Ox(Ce.key,g,P)?Ie:Re,R(A.current);return}Ox(Ce.key,g,P)?S?A.current=Me>=Re?b&&Me!==a.current.length?-1:Ie:uo(a,{startingIndex:Me,disabledIndices:ce}):A.current=Math.min(Re,uo(a,{startingIndex:Me,disabledIndices:ce})):S?A.current=Me<=Ie?b&&Me!==-1?a.current.length:Re:uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce}):A.current=Math.max(Ie,uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce})),q0(a,A.current)?R(null):R(A.current)}}function oe(Ce){C==="auto"&&WF(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&$F(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&ve&&{"aria-activedescendant":re};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Me=Ce.key.indexOf("Arrow")===0;if(y&&r)return ee(Ce);if(!r&&!p&&Me)return;if((Me||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),w){yJ(Ce.key,g,P)&&(Xi(Ce),r?(A.current=kx(a,ce),R(A.current)):n(!0));return}G8(Ce.key,g)&&(v!=null&&(A.current=v),Xi(Ce),!r&&p?n(!0):ee(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:oe,onClick:oe},floating:{"aria-orientation":g==="both"?void 0:g,...Se,onKeyDown:ee,onPointerMove(){V.current=!0}},item:we}},[i,o,re,Q,W,a,d,g,P,y,r,ve,w,v,p,b,m,S,C,R,n,we])};function _J(e){return be.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const xJ=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=Ov(),a=Ov();return be.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},q8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function SJ(e,t){const[r,n]=be.useState(e);return e&&!r&&n(!0),be.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function rj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=be.useState(!1),[d,v]=be.useState("unmounted"),b=SJ(r,a);return Mr(()=>{l&&!b&&v("unmounted")},[l,b]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:b,status:d}}function CJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=be.useState({}),{isMounted:b,status:S}=rj(e,{duration:a}),w=oa(r),P=oa(n),y=oa(o),C=oa(i),h=typeof a=="number",p=(h?a:a.open)||0,c=(h?a:a.close)||0;return Mr(()=>{const g={side:s,placement:l},m=w.current,_=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(g):m,E=typeof _=="function"?_(g):_,A=typeof k=="function"?k(g):k,F=(typeof T=="function"?T(g):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(q8).join(","),transitionDuration:p+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(q8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,w,P,C,p,S]),{isMounted:b,styles:d}}const PJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:b=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const w=be.useRef(),P=be.useRef(""),y=be.useRef((r=S??a)!=null?r:-1),C=be.useRef(null),h=mh(l),p=oa(d),c=oa(b);return Mr(()=>{n&&(clearTimeout(w.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var g;y.current=(g=S??a)!=null?g:-1}},[n,S,a]),be.useMemo(()=>{if(!s)return{};function g(m){const _=R2(m.nativeEvent);if(na(_)&&(gd(Yo(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,U;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((U=V[1])==null?void 0:U.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(w.current),w.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=p.current?p.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(h(F),C.current=F)}return{reference:{onKeyDown:g},floating:{onKeyDown:g}}},[s,o,i,v,c,p,h])};function Y8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const TJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:b,elements:{floating:S}}=t,w=r.current[a];if(!w)return{};const P={...t,...await jF(-w.offsetTop-b.reference.height/2-w.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await Gb(Y8(P,y.scrollHeight),v),h=await Gb(P,{...v,elementContext:"reference"}),p=Math.max(0,C.top),c=P.y+p,g=Math.max(0,y.scrollHeight-p-Math.max(0,C.bottom));return y.style.maxHeight=g+"px",y.scrollTop=p,o&&(y.offsetHeight=-s||h.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await Gb(Y8({...P,y:c},y.offsetHeight),v)),{y:c}}}),OJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=mh(l),d=be.useRef(!1),v=be.useRef(null),b=be.useRef(null);return be.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!w||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,h=i.current.bottom>=-.5,p=w.scrollHeight-w.clientHeight,c=y<0?-1:1,g=y<0?"max":"min";w.scrollHeight<=w.clientHeight||(!C&&y>0||!h&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[g](y,p*c))})):/firefox/i.test(HF())&&(w.scrollTop+=y))}const w=(a==null?void 0:a.current)||n.floating;if(r&&w)return w.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=w.scrollTop,i.current!=null&&(b.current={...i.current})}),()=>{v.current=null,b.current=null,w.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),be.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const w=S.scrollTop-v.current;(i.current.bottom<-.5&&w<-1||i.current.top<-.5&&w>1)&&Nu.flushSync(()=>s(P=>P+w))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function kJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=b>=n&&r<=(v-s)*(n-d)/(b-d)+s&&(o=!o)}return o}function EJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function MJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:b,elements:S,onClose:w,nodeId:P,tree:y}=s;return function(h){function p(){clearTimeout(o),w()}if(clearTimeout(o),!S.domReference||!S.floating||b==null||d==null||v==null)return;const{clientX:c,clientY:g}=h,m=[c,g],_=R2(h),T=h.type==="mouseleave",k=Ho(S.floating,_),R=Ho(S.domReference,_),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=b.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,U=EJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(h.relatedTarget)&&Ho(S.floating,h.relatedTarget)||y&&Lg(y.nodesRef.current,P).some(W=>{let{context:Y}=W;return Y==null?void 0:Y.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return p();let q=[];switch(F){case"top":q=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&g>=A.top&&g<=E.top+1;break;case"bottom":q=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&g>=E.bottom-1&&g<=A.bottom;break;case"left":q=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&g>=A.top&&g<=A.bottom;break;case"right":q=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&g>=A.top&&g<=A.bottom;break}function J(W){let[Y,re]=W;const ne=A.width>E.width,se=A.height>E.height;switch(F){case"top":{const ve=[ne?Y+r/2:V?Y+r*4:Y-r*4,re+r+1],we=[ne?Y-r/2:V?Y+r*4:Y-r*4,re+r+1],ce=[[A.left,V||ne?A.bottom-r:A.top],[A.right,V?ne?A.bottom-r:A.top:A.bottom-r]];return[ve,we,...ce]}case"bottom":{const ve=[ne?Y+r/2:V?Y+r*4:Y-r*4,re-r],we=[ne?Y-r/2:V?Y+r*4:Y-r*4,re-r],ce=[[A.left,V||ne?A.top+r:A.bottom],[A.right,V?ne?A.top+r:A.bottom:A.top+r]];return[ve,we,...ce]}case"left":{const ve=[Y+r+1,se?re+r/2:B?re+r*4:re-r*4],we=[Y+r+1,se?re-r/2:B?re+r*4:re-r*4];return[...[[B||se?A.right-r:A.left,A.top],[B?se?A.right-r:A.left:A.right-r,A.bottom]],ve,we]}case"right":{const ve=[Y-r,se?re+r/2:B?re+r*4:re-r*4],we=[Y-r,se?re-r/2:B?re+r*4:re-r*4],ce=[[B||se?A.left+r:A.right,A.top],[B?se?A.left+r:A.right:A.left+r,A.bottom]];return[ve,we,...ce]}}}const Q=i?q:J([d,v]);if(!i){if(a&&!U)return p();kJ([c,g],Q)?t&&!a&&(o=setTimeout(p,t)):p()}}};return l.__options={blockPointerEvents:n},l}function RJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=WZ(e),i=Od(),a=be.useRef(null),l=be.useRef({}),s=be.useState(()=>VF())[0],[d,v]=be.useState(null),b=be.useCallback(h=>{const p=na(h)?{getBoundingClientRect:()=>h.getBoundingClientRect(),contextElement:h}:h;o.refs.setReference(p)},[o.refs]),S=be.useCallback(h=>{(na(h)||h===null)&&(a.current=h,v(h)),(na(o.refs.reference.current)||o.refs.reference.current===null||h!==null&&!na(h))&&o.refs.setReference(h)},[o.refs]),w=be.useMemo(()=>({...o.refs,setReference:S,setPositionReference:b,domReference:a}),[o.refs,S,b]),P=be.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=mh(r),C=be.useMemo(()=>({...o,refs:w,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,w,P]);return Mr(()=>{const h=i==null?void 0:i.nodesRef.current.find(p=>p.id===n);h&&(h.context=C)}),be.useMemo(()=>({...o,context:C,refs:w,reference:S,positionReference:b}),[o,w,C,S,b])}function Ex(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,b=arguments.length,S=new Array(b),w=0;wP(...S))}}}else o[l]=s}),o),{})}}const NJ=function(e){e===void 0&&(e=[]);const t=e,r=be.useCallback(i=>Ex(i,e,"reference"),t),n=be.useCallback(i=>Ex(i,e,"floating"),t),o=be.useCallback(i=>Ex(i,e,"item"),e.map(i=>i==null?void 0:i.item));return be.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},AJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:JZ,FloatingFocusManager:cJ,FloatingNode:YZ,FloatingOverlay:dJ,FloatingPortal:sJ,FloatingTree:XZ,arrow:HZ,autoPlacement:DZ,autoUpdate:LZ,computePosition:zF,detectOverflow:Gb,flip:jZ,getOverflowAncestors:os,hide:VZ,inline:BZ,inner:TJ,limitShift:UZ,offset:jF,platform:FF,safePolygon:MJ,shift:FZ,size:zZ,useClick:fJ,useDelayGroup:eJ,useDelayGroupContext:qF,useDismiss:vJ,useFloating:RJ,useFloatingNodeId:qZ,useFloatingParentNodeId:vh,useFloatingPortalNode:ej,useFloatingTree:Od,useFocus:mJ,useHover:ZZ,useId:Ov,useInnerOffset:OJ,useInteractions:NJ,useListNavigation:wJ,useMergeRefs:_J,useRole:xJ,useTransitionStatus:rj,useTransitionStyles:CJ,useTypeahead:PJ},Symbol.toStringTag,{value:"Module"})),wn=Lv(AJ);var nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return w}});var r=d(X),n=d(pt),o=Je,i=d(et),a=Xe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var w=S})(nj);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{DialogBody:function(){return w},default:function(){return P}});var r=v(X),n=v(pt),o=Je,i=v(et),a=Xe,l=sh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,_=m.defaultProps,T=m.styles.base;p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.DialogBody";var P=w})(oj);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return w}});var r=d(X),n=d(pt),o=Je,i=d(et),a=Xe,l=sh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var w=S})(ij);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return w.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=p(X),n=p(ot),o=wn,i=An,a=p(pt),l=p(Xn),s=Je,d=p(Sr),v=p(et),b=Xe,S=sh,w=nj,P=oj,y=ij;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function h(){return h=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,U;for(U=0;U=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,U=E.dismiss,q=E.animate,J=E.className,Q=E.children,W=_(E,["open","handler","size","dismiss","animate","className","children"]),Y=(0,b.useTheme)().dialog,re=Y.defaultProps,ne=Y.valid,se=Y.styles,ve=se.base,we=se.sizes;V=V??void 0,B=B??re.size,U=U??re.dismiss,q=q??re.animate,J=(0,s.twMerge)(re.className||"",J);var ce=(0,a.default)((0,v.default)(ve.backdrop)),ee=(0,s.twMerge)((0,a.default)((0,v.default)(ve.container),(0,v.default)(we[(0,d.default)(ne.sizes,B,"md")])),J),oe={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(oe,q),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Me=Ce.floating,Ie=Ce.context,Re=(0,o.useId)(),ye="".concat(Re,"-label"),ke="".concat(Re,"-description"),ze=(0,o.useInteractions)([(0,o.useClick)(Ie),(0,o.useRole)(Ie),(0,o.useDismiss)(Ie,U)]).getFloatingProps,Ye=(0,o.useMergeRefs)([A,Me]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Ie},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,h({},ze(m(c({},W),{ref:Ye,className:ee,"aria-labelledby":ye,"aria-describedby":ke})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:w.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(fL);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Hv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.icon,E=h.containerProps,A=h.labelProps,F=h.className,V=h.shrink,B=h.inputRef,U=w(h,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),q=(0,l.useTheme)().input,J=q.defaultProps,Q=q.valid,W=q.styles,Y=W.base,re=W.variants;c=c??J.variant,m=m??J.size,g=g??J.color,_=_??J.label,A=A??J.labelProps,E=E??J.containerProps,V=V??J.shrink,R=R??J.icon,F=(0,d.twMerge)(J.className||"",F);var ne=re[(0,i.default)(Q.variants,c,"outlined")],se=ne.sizes[(0,i.default)(Q.sizes,m,"md")],ve=(0,a.default)(ne.error.input),we=(0,a.default)(ne.success.input),ce=(0,a.default)(ne.shrink.input),ee=(0,a.default)(ne.colors.input[(0,i.default)(Q.colors,g,"gray")]),oe=(0,a.default)(ne.error.label),ue=(0,a.default)(ne.success.label),Se=(0,a.default)(ne.shrink.label),Ce=(0,a.default)(ne.colors.label[(0,i.default)(Q.colors,g,"gray")]),Me=(0,o.default)((0,a.default)(Y.container),(0,a.default)(se.container),E==null?void 0:E.className),Ie=(0,o.default)((0,a.default)(Y.input),(0,a.default)(ne.base.input),(0,a.default)(se.input),v({},(0,a.default)(ne.base.inputWithIcon),R),v({},ee,!T&&!k),v({},ve,T),v({},we,k),v({},ce,V),F),Re=(0,o.default)((0,a.default)(Y.label),(0,a.default)(ne.base.label),(0,a.default)(se.label),v({},Ce,!T&&!k),v({},oe,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),ye=(0,o.default)((0,a.default)(Y.icon),(0,a.default)(ne.base.icon),(0,a.default)(se.icon)),ke=(0,o.default)((0,a.default)(Y.asterisk));return r.default.createElement("div",b({},E,{ref:p,className:Me}),R&&r.default.createElement("div",{className:ye},R),r.default.createElement("input",b({},U,{ref:B,className:Ie,placeholder:(U==null?void 0:U.placeholder)||" "})),r.default.createElement("label",b({},A,{className:Re}),_," ",U.required?r.default.createElement("span",{className:ke},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(aj);var lj={},im={},yh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,b=r.default.bool,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(yh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(X),n=yh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(im);var sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{MenuCore:function(){return C},default:function(){return h}});var r=b(X),n=b(ot),o=wn,i=b(Xn),a=Xe,l=im,s=yh;function d(p,c){(c==null||c>p.length)&&(c=p.length);for(var g=0,m=new Array(c);g=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.useMenu)(),g=c.getReferenceProps,m=c.reference,_=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(s(v(s({},p),{ref:T,onClick:function(R){R.stopPropagation()}}),_&&{role:"menuitem"}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.MenuHandler";var P=w})(uj);var cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(X),n=wn,o=An,i=S(pt),a=Je,l=S(et),s=Xe,d=im,v=yh;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.children,g=h.className,m=w(h,["children","className"]),_=(0,s.useTheme)().menu,T=_.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,U=k.listItemsRef,q=k.getFloatingProps,J=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,Y=k.context,re=k.activeIndex,ne=k.tree,se=k.allowHover,ve=k.internalAllowHover,we=k.setActiveIndex,ce=k.nested;g=g??"";var ee=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),g),oe=(0,n.useMergeRefs)([p,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,b({},m,{ref:oe,style:{position:A,top:V??0,left:F??0},className:ee},q({onKeyDown:function(Me){Me.key==="Tab"&&(E(!1),Me.shiftKey&&Me.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Me){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,J({tabIndex:re===Me?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Re){U.current[Me]=Re},onClick:function(Re){if(Ce.props.onClick){var ye,ke;(ke=(ye=Ce.props).onClick)===null||ke===void 0||ke.call(ye,Re)}ne==null||ne.events.emit("click")},onMouseEnter:function(){(se&&R||ve&&R)&&we(Me)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:Y,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:Y,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(cj);var dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{MenuItem:function(){return w},default:function(){return P}});var r=v(X),n=v(pt),o=Je,i=v(et),a=Xe,l=yh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.className,p=h===void 0?"":h,c=y.disabled,g=c===void 0?!1:c,m=y.children,_=b(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),g)),p);return r.default.createElement("button",d({},_,{ref:C,role:"menuitem",className:R}),m)});w.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},w.displayName="MaterialTailwind.MenuItem";var P=w})(dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return b},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(X),n=wn,o=im,i=sj,a=uj,l=cj,s=dj;function d(){return d=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. - -More details: https://www.material-tailwind.com/docs/react/collapse - `);var R=r.default.useRef(null),E=(0,d.useTheme)().navbar,A=E.styles,F=A.base.mobileNav;g=g??{},m=m??"";var V=(0,l.twMerge)((0,a.default)((0,s.default)(F)),m),B={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=R.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},U=(0,i.default)(B,g),q=n.AnimatePresence,J=(0,o.useMergeRefs)([p,R]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(q,null,r.default.createElement(n.m.div,b({},T,{ref:J,className:V,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:U}),_)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(pj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Navbar:function(){return C},MobileNav:function(){return d.MobileNav},default:function(){return h}});var r=w(X),n=w(ot),o=w(pt),i=Je,a=w(Sr),l=w(et),s=Xe,d=pj,v=Jw;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.variant,m=p.color,_=p.shadow,T=p.blurred,k=p.fullWidth,R=p.className,E=p.children,A=P(p,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,U=F.styles,q=U.base,J=U.variants;g=g??V.variant,m=m??V.color,_=_??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(q.navbar.initial),(Q={},b(Q,(0,l.default)(q.navbar.shadow),_),b(Q,(0,l.default)(q.navbar.blurred),T&&m==="white"),b(Q,(0,l.default)(q.navbar.fullWidth),k),Q)),Y=(0,o.default)((0,l.default)(J[(0,a.default)(B.variants,g,"filled")][(0,a.default)(B.colors,m,"white")])),re=(0,i.twMerge)((0,o.default)(W,Y),R);return r.default.createElement("nav",S({},A,{ref:c,className:re}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var h=Object.assign(C,{MobileNav:d.MobileNav})})(fj);var hj={},I2={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return b},propTypesInteractive:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,b=r.default.node,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(X),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(I2);var gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{PopoverHandler:function(){return w},default:function(){return P}});var r=l(X),n=wn,o=I2,i=bh;function a(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.usePopover)(),g=c.getReferenceProps,m=c.reference,_=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(v(s({},p),{ref:_}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.PopoverHandler";var P=w})(gj);var vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{PopoverContent:function(){return c},default:function(){return g}});var r=w(X),n=wn,o=An,i=w(pt),a=Je,l=w(et),s=Xe,d=I2,v=bh;function b(m,_,T){return _ in m?Object.defineProperty(m,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[_]=T,m}function S(){return S=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function p(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,_){var T=m.children,k=m.className,R=h(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,U=V.strategy,q=V.x,J=V.y,Q=V.context,W=V.floating,Y=V.getFloatingProps,re=V.appliedAnimation,ne=V.labelId,se=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var ve=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),we=(0,n.useMergeRefs)([_,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},Y(C(P({},R),{ref:we,className:ve,style:{position:U,top:J??"",left:q??""},"aria-labelledby":ne,"aria-describedby":se})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:re}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var g=c})(vj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return p},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=w(X),n=w(ot),o=wn,i=w(Xn),a=Xe,l=I2,s=bh,d=gj,v=vj;function b(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.value,T=h.label,k=h.className,R=h.barProps,E=w(h,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,U=B.base,q=B.variants,J=B.sizes;c=c??F.variant,g=g??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(q[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"gray")]),W=(0,l.default)(J[(0,a.default)(V.sizes,m,"md")].container.initial),Y=(0,o.default)((0,l.default)(U.container.initial),W),re=(0,l.default)(J[(0,a.default)(V.sizes,m,"md")].container.withLabel),ne=(0,o.default)((0,l.default)(U.container.withLabel),re),se=(0,l.default)(J[(0,a.default)(V.sizes,m,"md")].bar),ve=(0,o.default)((0,l.default)(U.bar),se),we=(0,i.twMerge)((0,o.default)(Y,v({},ne,T)),k),ce=(0,i.twMerge)((0,o.default)(ve,Q),R==null?void 0:R.className);return r.default.createElement("div",b({},E,{ref:p,className:we}),r.default.createElement("div",b({},R,{className:ce,style:{width:"".concat(_,"%")}}),T&&"".concat(_,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(mj);var yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Radio:function(){return C},default:function(){return h}});var r=w(X),n=w(ot),o=w(dh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),U=(0,d.useTheme)().radio,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var ne=T!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(J.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),ee=(0,i.default)((0,i.default)((0,s.default)(W.icon)),Y[(0,l.default)(J.colors,g,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("label",S({},E,{className:ve,htmlFor:B.id||re,onMouseDown:function(oe){var ue=E==null?void 0:E.onMouseDown;return T&&ne.create(oe,"dark"),typeof ue=="function"&&ue(oe)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:we,id:B.id||re})),r.default.createElement("span",{className:ee},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var h=C})(yj);var bj={},TT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,b){for(var S in b)Object.defineProperty(v,S,{enumerable:!0,get:b[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(X),n=An,o=Wv;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var b=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){b.current=v},[v]),b.current}var d=function(v){var b=v.value,S=v.children;return r.default.createElement(a.Provider,{value:b},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(TT);var wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=b(X),n=b(pt),o=Je,i=b(et),a=Xe,l=TT,s=Wv;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=function(C){var h=function(){Q(_),re(g),Y(!1),se(null)},p=function(Me){(Me.key==="Enter"||Me.key===" "&&!we.current.typing)&&(Me.preventDefault(),h())},c=C.value,g=c===void 0?"":c,m=C.index,_=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,U=B.base,q=(0,l.useSelect)(),J=q.selectedIndex,Q=q.setSelectedIndex,W=q.listRef,Y=q.setOpen,re=q.onChange,ne=q.activeIndex,se=q.setActiveIndex,ve=q.getItemProps,we=q.dataRef,ce=(0,i.default)(U.option.initial),ee=(0,i.default)(U.option.active),oe=(0,i.default)(U.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,ee,J===_),d(ue,oe,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[_]=Ce},className:Se,disabled:k,tabIndex:ne===_?0:1,"aria-selected":ne===_&&J===_,"data-selected":J===_},ve({onClick:function(Ce){var Me=F==null?void 0:F.onClick;typeof Me=="function"&&(Me(Ce),h()),h()},onKeyDown:function(Ce){var Me=F==null?void 0:F.onKeyDown;typeof Me=="function"&&(Me(Ce),p(Ce)),p(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(wj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,Y){for(var re in Y)Object.defineProperty(W,re,{enumerable:!0,get:Y[re]})}t(e,{Select:function(){return J},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=g(X),n=g(ot),o=wn,i=An,a=g(pt),l=Je,s=g(Xn),d=g(Sr),v=g(et),b=Xe,S=TT,w=Wv,P=wj;function y(W,Y){(Y==null||Y>W.length)&&(Y=W.length);for(var re=0,ne=new Array(Y);re=0)&&Object.prototype.propertyIsEnumerable.call(W,ne)&&(re[ne]=W[ne])}return re}function V(W,Y){if(W==null)return{};var re={},ne=Object.keys(W),se,ve;for(ve=0;ve=0)&&(re[se]=W[se]);return re}function B(W,Y){return C(W)||_(W,Y)||q(W,Y)||T()}function U(W){return h(W)||m(W)||q(W)||k()}function q(W,Y){if(W){if(typeof W=="string")return y(W,Y);var re=Object.prototype.toString.call(W).slice(8,-1);if(re==="Object"&&W.constructor&&(re=W.constructor.name),re==="Map"||re==="Set")return Array.from(re);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return y(W,Y)}}var J=r.default.forwardRef(function(W,Y){var re=W.variant,ne=W.color,se=W.size,ve=W.label,we=W.error,ce=W.success,ee=W.arrow,oe=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Me=W.dismiss,Ie=W.animate,Re=W.lockScroll,ye=W.labelProps,ke=W.menuProps,ze=W.className,Ye=W.disabled,Mt=W.name,gt=W.children,xt=W.containerProps,zt=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Ht,mt=(0,b.useTheme)().select,Ot=mt.defaultProps,Jt=mt.valid,Dr=mt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),nr=Ln[0],mo=Ln[1];re=re??Ot.variant,ne=ne??Ot.color,se=se??Ot.size,ve=ve??Ot.label,we=we??Ot.error,ce=ce??Ot.success,ee=ee??Ot.arrow,oe=oe??Ot.value,ue=ue??Ot.onChange,Se=Se??Ot.selected,Ce=Ce??Ot.offset,Me=Me??Ot.dismiss,Ie=Ie??Ot.animate,ye=ye??Ot.labelProps,ke=ke??Ot.menuProps;var Yt;xt=(Yt=(0,s.default)(xt,(Ot==null?void 0:Ot.containerProps)||{}))!==null&&Yt!==void 0?Yt:Ot.containerProps,ze=(0,l.twMerge)(Ot.className||"",ze),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(U((Qr=r.default.Children.map(gt,function(at){var rt=at.props;return rt==null?void 0:rt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(rt){var St=rt.rects,cn=rt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(St==null||(wo=St.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,ae=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(oe)+1))},[oe]);var pe=ga.floating,xe=(0,o.useInteractions)([(0,o.useClick)(ae),(0,o.useRole)(ae,{role:"listbox"}),(0,o.useDismiss)(ae,R({},Me)),(0,o.useListNavigation)(ae,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(ae,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Oe=xe.getReferenceProps,Ue=xe.getFloatingProps,Qe=xe.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=pe.current;if(Sn&&pa&&at){var rt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(rt&&Fi!=null){var St,cn,wr=(cn=(St=yo.current[Fi])===null||St===void 0?void 0:St.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=rt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Qe,dataRef:ae.dataRef}},[$r,ue,sn,Qe,ae.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&oe?"withValue":"close")},[Sn,oe,$r,Se]);var je=Qn[(0,d.default)(Jt.variants,re,"outlined")],Ze=je.sizes[(0,d.default)(Jt.sizes,se,"md")],$e=je.error.select,Ge=je.success.select,kt=je.colors.select[(0,d.default)(Jt.colors,ne,"gray")],Nt=je.error.label,Ut=je.success.label,bt=je.colors.label[(0,d.default)(Jt.colors,ne,"gray")],dr=je.states[nr],or=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Ze.container),xt==null?void 0:xt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(je.base.select),(0,v.default)(dr.select),(0,v.default)(Ze.select),p({},(0,v.default)(kt[nr]),!we&&!ce),p({},(0,v.default)($e.initial),we),p({},(0,v.default)($e.states[nr]),we),p({},(0,v.default)(Ge.initial),ce),p({},(0,v.default)(Ge.states[nr]),ce)),ze),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(je.base.label),(0,v.default)(dr.label),(0,v.default)(Ze.label.initial),(0,v.default)(Ze.label.states[nr]),p({},(0,v.default)(bt[nr]),!we&&!ce),p({},(0,v.default)(Nt.initial),we),p({},(0,v.default)(Nt.states[nr]),we),p({},(0,v.default)(Ut.initial),ce),p({},(0,v.default)(Ut.states[nr]),ce)),(Fr=ye.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),p({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=ke.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",re==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},At=(0,s.default)(Zr,Ie),He=i.AnimatePresence;r.default.useEffect(function(){oe&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[oe,ue]);var It=r.default.createElement(o.FloatingFocusManager,{context:ae,modal:!1},r.default.createElement(i.m.ul,c({},Ue(A(R({},ke),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(rt){var St=ke==null?void 0:ke.onPointerEnter;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onPointerMove:function(rt){var St=ke==null?void 0:ke.onPointerMove;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onKeyDown:function(rt){var St=ke==null?void 0:ke.onKeyDown;typeof St=="function"&&(St(rt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:At}),r.default.Children.map(gt,function(at,rt){var St;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((St=at.props)===null||St===void 0?void 0:St.index)||rt+1,id:"material-tailwind-select-".concat(rt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},xt,{ref:Y,className:or}),r.default.createElement("button",c({type:"button"},Oe(A(R({},zt),{ref:ga.setReference,className:Fn,disabled:Ye,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):oe&&!ue?r.default.createElement("span",{className:un},oe):r.default.createElement("span",c({},(Ht=gt[$r-1])===null||Ht===void 0?void 0:Ht.props,{className:un})),r.default.createElement("div",{className:Zn},ee??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},ye,{className:jn}),ve),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(He,null,Sn&&r.default.createElement(r.default.Fragment,null,Re?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},It):It)))))});J.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),size:n.default.oneOf(w.propTypesSize),label:w.propTypesLabel,error:w.propTypesError,success:w.propTypesSuccess,arrow:w.propTypesArrow,value:w.propTypesValue,onChange:w.propTypesOnChange,selected:w.propTypesSelected,offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,lockScroll:w.propTypesLockScroll,labelProps:w.propTypesLabelProps,menuProps:w.propTypesMenuProps,className:w.propTypesClassName,disabled:w.propTypesDisabled,name:w.propTypesName,children:w.propTypesChildren,containerProps:w.propTypesContainerProps},J.displayName="MaterialTailwind.Select";var Q=Object.assign(J,{Option:P.SelectOption})})(bj);var _j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Switch:function(){return C},default:function(){return h}});var r=w(X),n=w(ot),o=w(dh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.ripple,T=p.className,k=p.disabled,R=p.containerProps,E=p.circleProps,A=p.labelProps,F=p.inputRef,V=P(p,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),U=B.switch,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.colors,re=r.default.useId();g=g??q.color,_=_??q.ripple,k=k??q.disabled,R=R??q.containerProps,A=A??q.labelProps,E=E??q.circleProps,T=(0,a.twMerge)(q.className||"",T);var ne=_!==void 0&&new o.default,se=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),k)),ve=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),we=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(Y[(0,l.default)(J.colors,g,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),Y[(0,l.default)(J.colors,g,"gray")].circle,Y[(0,l.default)(J.colors,g,"gray")].before),E==null?void 0:E.className),ee=(0,i.default)((0,s.default)(W.ripple)),oe=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:se},r.default.createElement("div",S({},R,{className:ve}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||re,className:we})),r.default.createElement("label",S({},E,{htmlFor:V.id||re,className:ce}),_&&r.default.createElement("div",{className:ee,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return _&&ne.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||re,className:oe}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var h=C})(_j);var xj={},wh={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return b},propTypesChildren:function(){return S}});var r=o(ot),n=br;function o(w){return w&&w.__esModule?w:{default:w}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),b=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return h},TabsContextProvider:function(){return p},setId:function(){return c},setActive:function(){return g},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(X),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.value,g=h.className,m=h.activeClassName,_=h.disabled,T=h.children,k=w(h,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,U=V.dispatch,q=B.id,J=B.active,Q=B.indicatorProps;_=_??A.disabled,g=(0,i.twMerge)(A.className||"",g),m=(0,i.twMerge)(A.activeClassName||"",m);var W,Y=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),_),v(W,m,J===c),W)),g),re,ne=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(re=Q==null?void 0:Q.className)!==null&&re!==void 0?re:"");return r.default.createElement("li",b({},k,{ref:p,role:"tab",className:Y,onClick:function(se){var ve=k==null?void 0:k.onClick;typeof ve=="function"&&((0,s.setActive)(U,c),(0,s.setIsInitial)(U,!1),ve(se)),(0,s.setIsInitial)(U,!1),(0,s.setActive)(U,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),J===c&&r.default.createElement(n.motion.div,b({},Q,{transition:{duration:.5},className:ne,layoutId:q})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(Sj);var Cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(X),n=An,o=S(Xn),i=S(pt),a=Je,l=S(et),s=Xe,d=wh,v=kd;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.animate,g=h.className,m=h.children,_=w(h,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,g=(0,a.twMerge)(k.className||"",g);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),g),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",b({},_,{ref:p,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=b(X),n=b(pt),o=Je,i=b(et),a=Xe,l=wh,s=kd;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.indicatorProps,c=C.className,g=C.children,m=S(C,["indicatorProps","className","children"]),_=(0,a.useTheme)().tabsHeader,T=_.defaultProps,k=_.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,p)},[A,p]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:h,role:"tablist",className:V}),g))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Pj);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=b(X),n=An,o=b(pt),i=Je,a=b(et),l=Xe,s=wh,d=kd;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.value,c=C.className,g=C.children,m=S(C,["value","className","children"]),_=(0,l.useTheme)().tabPanel,T=_.defaultProps,k=_.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:h,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===p?"mount":F?"initial":"unmount",variants:A,"data-value":p}),g)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Tj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return p},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return b.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(X),n=y(pt),o=Je,i=y(et),a=Xe,l=wh,s=Sj,d=Cj,v=Pj,b=Tj,S=kd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.value,T=g.className,k=g.orientation,R=g.children,E=C(g,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var U=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),w({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:_,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:U}),R))});p.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},p.displayName="MaterialTailwind.Tabs";var c=Object.assign(p,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:b.TabPanel})})(xj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Hv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.resize,E=h.labelProps,A=h.containerProps,F=h.shrink,V=h.className,B=w(h,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),U=(0,l.useTheme)().textarea,q=U.defaultProps,J=U.valid,Q=U.styles,W=Q.base,Y=Q.variants;c=c??q.variant,m=m??q.size,g=g??q.color,_=_??q.label,E=E??q.labelProps,A=A??q.containerProps,F=F??q.shrink,V=(0,d.twMerge)(q.className||"",V);var re=Y[(0,i.default)(J.variants,c,"outlined")],ne=(0,a.default)(re.error.textarea),se=(0,a.default)(re.success.textarea),ve=(0,a.default)(re.shrink.textarea),we=(0,a.default)(re.colors.textarea[(0,i.default)(J.colors,g,"gray")]),ce=(0,a.default)(re.error.label),ee=(0,a.default)(re.success.label),oe=(0,a.default)(re.shrink.label),ue=(0,a.default)(re.colors.label[(0,i.default)(J.colors,g,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(re.base.textarea),(0,a.default)(re.sizes[(0,i.default)(J.sizes,m,"md")].textarea),v({},we,!T&&!k),v({},ne,T),v({},se,k),v({},ve,F),R?"":"!resize-none",V),Me=(0,o.default)((0,a.default)(W.label),(0,a.default)(re.base.label),(0,a.default)(re.sizes[(0,i.default)(J.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},ee,k),v({},oe,F),E==null?void 0:E.className),Ie=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:p,className:Se},r.default.createElement("textarea",b({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Me},_," ",B.required?r.default.createElement("span",{className:Ie},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(Oj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(X),n=C(ot),o=wn,i=An,a=C(pt),l=Je,s=C(Xn),d=C(et),v=Xe,b=bh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,U=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,U)&&(B[U]=F[U])}return B}function T(F,V){if(F==null)return{};var B={},U=Object.keys(F),q,J;for(J=0;J=0)&&(B[q]=F[q]);return B}function k(F,V){return w(F)||h(F,V)||R(F,V)||p()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,U=F.handler,q=F.content,J=F.interactive,Q=F.placement,W=F.offset,Y=F.dismiss,re=F.animate,ne=F.className,se=F.children,ve=_(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),we=(0,v.useTheme)().tooltip,ce=we.defaultProps,ee=we.styles.base,oe=k(r.default.useState(!1),2),ue=oe[0],Se=oe[1];B=B??ue,U=U??Se,J=J??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,Y=Y??ce.dismiss,re=re??ce.animate,ne=(0,l.twMerge)(ce.className||"",ne);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(ee)),ne),Me={unmount:{opacity:0},mount:{opacity:1}},Ie=(0,s.default)(Me,re),Re=(0,o.useFloating)({open:B,onOpenChange:U,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),ye=Re.x,ke=Re.y,ze=Re.reference,Ye=Re.floating,Mt=Re.strategy,gt=Re.refs,xt=Re.update,zt=Re.context,Ht=(0,o.useInteractions)([(0,o.useClick)(zt,{enabled:J}),(0,o.useFocus)(zt),(0,o.useHover)(zt),(0,o.useRole)(zt,{role:"tooltip"}),(0,o.useDismiss)(zt,Y)]),mt=Ht.getReferenceProps,Ot=Ht.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,xt)},[B,xt,gt.reference,gt.floating]);var Jt=(0,o.useMergeRefs)([V,Ye]),Dr=(0,o.useMergeRefs)([V,ze]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof se=="string"?r.default.createElement("span",y({},mt({ref:Dr})),se):r.default.cloneElement(se,c({},mt(m(c({},se==null?void 0:se.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Ot(m(c({},ve),{ref:Jt,className:Ce,style:{position:Mt,top:ke??"",left:ye??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:Ie}),q)))))});E.propTypes={open:b.propTypesOpen,handler:b.propTypesHandler,content:b.propTypesContent,interactive:b.propTypesInteractive,placement:n.default.oneOf(b.propTypesPlacement),offset:b.propTypesOffset,dismiss:b.propTypesDismiss,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(kj);var Ej={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Typography:function(){return h},default:function(){return p}});var r=b(X),n=b(ot),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=UP;function v(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function b(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,U=F.styles,q=U.variants,J=U.colors,Q=U.textGradient;m=m??V.variant,_=_??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(q[(0,a.default)(B.variants,m,"paragraph")]),Y=J[(0,a.default)(B.colors,_,"inherit")],re=(0,l.default)(Q),ne=(0,i.twMerge)((0,o.default)(W,v({},Y.color,!T),v({},re,T),v({},Y.gradient,T)),R),se;switch(m){case"h1":se=r.default.createElement(k||"h1",P(S({},A),{ref:g,className:ne}),E);break;case"h2":se=r.default.createElement(k||"h2",P(S({},A),{ref:g,className:ne}),E);break;case"h3":se=r.default.createElement(k||"h3",P(S({},A),{ref:g,className:ne}),E);break;case"h4":se=r.default.createElement(k||"h4",P(S({},A),{ref:g,className:ne}),E);break;case"h5":se=r.default.createElement(k||"h5",P(S({},A),{ref:g,className:ne}),E);break;case"h6":se=r.default.createElement(k||"h6",P(S({},A),{ref:g,className:ne}),E);break;case"lead":se=r.default.createElement(k||"p",P(S({},A),{ref:g,className:ne}),E);break;case"paragraph":se=r.default.createElement(k||"p",P(S({},A),{ref:g,className:ne}),E);break;case"small":se=r.default.createElement(k||"p",P(S({},A),{ref:g,className:ne}),E);break;default:se=r.default.createElement(k||"p",P(S({},A),{ref:g,className:ne}),E);break}return se});h.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},h.displayName="MaterialTailwind.Typography";var p=h})(Ej);var Mj={},Rj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(ot),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Rj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(X),n=An,o=wn,i=S(Xn),a=S(pt),l=Je,s=S(et),d=Xe,v=Rj;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;g=g??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,g),U=n.AnimatePresence,q=(0,o.useMergeRefs)([p,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(U,null,r.default.createElement(n.m.div,b({},T,{ref:q,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Mj);var Nj={},am={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(am);var Aj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return w}});var r=d(X),n=Xe,o=d(pt),i=Je,a=d(et),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemPrefix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var w=S})(OT);var kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return w}});var r=d(X),n=Xe,o=d(pt),i=Je,a=d(et),l=am;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemSuffix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var w=S})(kT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return h}});var r=w(X),n=Xe,o=w(dh),i=w(pt),a=Je,l=w(et),s=am,d=OT,v=kT;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.disabled,_=p.selected,T=p.ripple,k=p.children,R=P(p,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,U=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},b(B,(0,l.default)(F.item.disabled),m),b(B,(0,l.default)(F.item.selected),_&&!m),B)),g);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:U,onMouseDown:function(q){var J=R==null?void 0:R.onMouseDown;return T&&V.create(q,"dark"),typeof J=="function"&&J(q)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var h=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Aj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(X),n=Xe,o=S(pt),i=Je,a=S(et),l=am,s=Aj,d=OT,v=kT;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,n.useTheme)().list,T=_.defaultProps,k=_.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",b({},m,{ref:p,className:R}),g)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Nj);var Ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(X),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=_d;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.fullWidth,T=h.ripple,k=h.className,R=h.children,E=w(h,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,U=V.base,q=V.dividerColor;c=c??F.variant,g=g??F.size,m=m??F.color,T=T??F.ripple,_=_??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var J,Q=(0,i.twMerge)((0,o.default)((0,l.default)(U.initial),(J={},v(J,(0,l.default)(U.fullWidth),_),v(J,"divide-x",c!=="outlined"),v(J,(0,l.default)(q[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),J)),k);return r.default.createElement("div",b({},E,{ref:p,className:Q}),r.default.Children.map(R,function(W,Y){var re;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:g,color:m,ripple:T,fullWidth:_,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":Y!==r.default.Children.count(R)-1,"border-r-0":Y!==r.default.Children.count(R)-1,"rounded-l-none":Y!==0}),(re=W.props)===null||re===void 0?void 0:re.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Ij);var Lj={},Dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return b},propTypesChildren:function(){return S},propTypesSlideRef:function(){return w}});var r=n(ot);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,b=r.default.bool,S=r.default.node.isRequired,w=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,T){for(var k in T)Object.defineProperty(_,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return g},default:function(){return m}});var r=w(X),n=An,o=wn,i=w(pt),a=Je,l=w(et),s=Xe,d=Dj;function v(_,T){(T==null||T>_.length)&&(T=_.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(k[R]=_[R])}return k}function h(_,T){if(_==null)return{};var k={},R=Object.keys(_),E,A;for(A=0;A=0)&&(k[E]=_[E]);return k}function p(_,T){return b(_)||P(_,T)||c(_,T)||y()}function c(_,T){if(_){if(typeof _=="string")return v(_,T);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(_,T)}}var g=r.default.forwardRef(function(_,T){var k=_.children,R=_.prevArrow,E=_.nextArrow,A=_.navigation,F=_.autoplay,V=_.autoplayDelay,B=_.transition,U=_.loop,q=_.className,J=_.slideRef,Q=C(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,Y=W.defaultProps,re=W.styles.base,ne=(0,n.useMotionValue)(0),se=r.default.useRef(null),ve=p(r.default.useState(0),2),we=ve[0],ce=ve[1],ee=r.default.Children.toArray(k);R=R??Y.prevArrow,E=E??Y.nextArrow,A=A??Y.navigation,F=F??Y.autoplay,V=V??Y.autoplayDelay,B=B??Y.transition,U=U??Y.loop,q=(0,a.twMerge)(Y.className||"",q);var oe=(0,a.twMerge)((0,i.default)((0,l.default)(re.carousel)),q),ue=(0,a.twMerge)((0,i.default)((0,l.default)(re.slide))),Se=r.default.useCallback(function(){var Re;return-we*(((Re=se.current)===null||Re===void 0?void 0:Re.clientWidth)||0)},[we]),Ce=r.default.useCallback(function(){var Re=U?0:we;ce(we+1===ee.length?Re:we+1)},[we,U,ee.length]),Me=function(){var Re=U?ee.length-1:0;ce(we-1<0?Re:we-1)};r.default.useEffect(function(){var Re=(0,n.animate)(ne,Se(),B);return Re.stop},[Se,we,ne,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(ne,Se(),B)})},[Se,B,ne]),r.default.useEffect(function(){if(F){var Re=setInterval(function(){return Ce()},V);return function(){return clearInterval(Re)}}},[F,Ce,V]);var Ie=(0,o.useMergeRefs)([se,T]);return r.default.createElement("div",S({},Q,{ref:Ie,className:oe}),ee.map(function(Re,ye){return r.default.createElement(n.LazyMotion,{key:ye,features:n.domAnimation},r.default.createElement(n.m.div,{ref:J,className:ue,style:{x:ne,left:"".concat(ye*100,"%"),right:"".concat(ye*100,"%")}},Re))}),R&&R({loop:U,handlePrev:Me,activeIndex:we,firstIndex:we===0}),E&&E({loop:U,handleNext:Ce,activeIndex:we,lastIndex:we===ee.length-1}),A&&A({setActiveIndex:ce,activeIndex:we,length:ee.length}))});g.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},g.displayName="MaterialTailwind.Carousel";var m=g})(Lj);var Fj={},jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return b},propTypesOnClose:function(){return S},propTypesDismiss:function(){return w},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,b=r.default.string,S=r.default.func,w=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(jj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return p},default:function(){return c}});var r=P(X),n=P(ot),o=An,i=wn,a=P(Xn),l=P(pt),s=Je,d=P(et),v=Xe,b=jj;function S(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function w(){return w=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.open,T=g.size,k=g.overlay,R=g.children,E=g.placement,A=g.overlayProps,F=g.className,V=g.onClose,B=g.dismiss,U=g.transition,q=g.overlayRef,J=C(g,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,Y=Q.styles.base,re=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var ne;B=(ne=(0,a.default)(W.dismiss,B||{}))!==null&&ne!==void 0?ne:W.dismiss,U=U??W.transition,F=(0,s.twMerge)(W.className||"",F);var se=(0,s.twMerge)((0,l.default)((0,d.default)(Y.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),ve=(0,s.twMerge)((0,l.default)((0,d.default)(Y.overlay)),A==null?void 0:A.className),we=(0,i.useFloating)({open:_,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(we,B)]).getFloatingProps;r.default.useEffect(function(){re.start(_?"open":"close")},[_,re,E]);var ee={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},oe={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:q,className:ve,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:oe,transition:{duration:.3}})),r.default.createElement(o.m.div,w({},ce(y({ref:m},J)),{className:se,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:re,variants:ee,transition:U}),R)))});p.propTypes={open:b.propTypesOpen,size:b.propTypesSize,overlay:b.propTypesOverlay,children:b.propTypesChildren,placement:n.default.oneOf(b.propTypesPlacement),overlayProps:b.propTypesOverlayProps,className:b.propTypesClassName,onClose:b.propTypesOnClose,dismiss:b.propTypesDismiss,transition:b.propTypesTransition,overlayRef:b.propTypesOverlayRef},p.displayName="MaterialTailwind.Drawer";var c=p})(Fj);var zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Badge:function(){return C},default:function(){return h}});var r=w(X),n=w(ot),o=w(Xn),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=HP;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.invisible,_=p.withBorder,T=p.overlap,k=p.placement,R=p.className,E=p.content,A=p.children,F=p.containerProps,V=p.containerRef,B=P(p,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),U=(0,d.useTheme)().badge,q=U.valid,J=U.defaultProps,Q=U.styles,W=Q.base,Y=Q.placements,re=Q.colors;g=g??J.color,m=m??J.invisible,_=_??J.withBorder,T=T??J.overlap,k=k??J.placement,R=(0,a.twMerge)(J.className||"",R);var ne;F=(ne=(0,o.default)(F,J.containerProps||{}))!==null&&ne!==void 0?ne:J.containerProps;var se=(0,s.default)(W.badge.initial),ve=(0,s.default)(W.badge.withBorder),we=(0,s.default)(W.badge.withContent),ce=(0,s.default)(re[(0,l.default)(q.colors,g,"red")]),ee=(0,s.default)(Y[(0,l.default)(q.placements,k,"top-end")][(0,l.default)(q.overlaps,T,"square")]),oe,ue=(0,a.twMerge)((0,i.default)(se,ee,ce,(oe={},b(oe,ve,_),b(oe,we,E),oe)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var h=C})(zj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(X),n=P(ot),o=P(pt),i=Je,a=P(Sr),l=P(et),s=Xe,d=WP;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function g(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,U;for(U=0;U=0)&&(F[B]=E[B]);return F}function m(E,A){return b(E)||C(E,A)||T(E,A)||h()}function _(E){return S(E)||y(E)||T(E)||p()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,U=E.unratedIcon,q=E.ratedColor,J=E.unratedColor,Q=E.className,W=E.onChange,Y=E.readonly,re=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),ne,se,ve=(0,s.useTheme)().rating,we=ve.valid,ce=ve.defaultProps,ee=ve.styles,oe=ee.base,ue=ee.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,U=U??ce.unratedIcon,q=q??ce.ratedColor,J=J??ce.unratedColor,W=W??ce.onChange,Y=Y??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return _(Array(V).fill("rated")).concat(_(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Me=Se[1],Ie=m(r.default.useState(function(){return _(Array(F).fill("un_rated"))}),2),Re=Ie[0],ye=Ie[1],ke=m(r.default.useState(!1),2),ze=ke[0],Ye=ke[1],Mt=(0,l.default)(ue[(0,a.default)(we.colors,q,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(we.colors,J,"blue-gray")]),xt=(0,i.twMerge)((0,o.default)((0,l.default)(oe.rating),Q)),zt=(0,l.default)(oe.icon),Ht=B,mt=U,Ot=r.default.isValidElement(B)&&r.default.cloneElement(Ht,{className:(0,i.twMerge)((0,o.default)(zt,Mt,Ht==null||(ne=Ht.props)===null||ne===void 0?void 0:ne.className))}),Jt=r.default.isValidElement(B)&&r.default.cloneElement(mt,{className:(0,i.twMerge)((0,o.default)(zt,gt,mt==null||(se=mt.props)===null||se===void 0?void 0:se.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(zt,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(U,{className:(0,i.twMerge)((0,o.default)(zt,gt))}),Qn=function(Ln){return Ln.map(function(nr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!Y){var Yt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Me(Yt),W&&typeof W=="function"&&W(Yt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!Y){var Yt=Re.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Ye(!0),ye(Yt)}},onMouseLeave:function(){return!Y&&Ye(!1)}},r.default.isValidElement(nr==="rated"?B:U)?nr==="rated"?Ot:Jt:nr==="rated"?Dr:ln)})};return r.default.createElement("div",w({},re,{ref:A,className:xt}),Qn(ze?Re:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(Vj);var Bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=P(X),n=P(ot),o=P(Xn),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=$P;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,U=T.value,q=T.defaultValue,J=T.onChange,Q=T.min,W=T.max,Y=T.step,re=T.inputRef,ne=T.inputProps,se=h(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),ve=(0,d.useTheme)().slider,we=ve.valid,ce=ve.defaultProps,ee=ve.styles,oe=ee.base,ue=ee.sizes,Se=ee.colors,Ce=c(r.default.useState(q||0),2),Me=Ce[0],Ie=Ce[1];r.default.useMemo(function(){q&&Ie(q)},[q]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,Y=Y??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Re;V=(Re=(0,i.default)(ce.thumbClassName,V))!==null&&Re!==void 0?Re:ce.thumbClassName;var ye;F=(ye=(0,i.default)(ce.trackClassName,F))!==null&&ye!==void 0?ye:ce.trackClassName;var ke;B=(ke=(0,i.default)(ce.barClassName,B))!==null&&ke!==void 0?ke:ce.barClassName;var ze;ne=(ze=(0,o.default)(ne,(ce==null?void 0:ce.inputProps)||{}))!==null&&ze!==void 0?ze:ce.inputProps;var Ye=(0,a.twMerge)((0,i.default)((0,s.default)(oe.container),(0,s.default)(Se[(0,l.default)(we.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(oe.bar),B)),gt=(0,i.default)((0,s.default)(oe.track),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].track)),xt=(0,i.default)((0,s.default)(oe.thumb),(0,s.default)(ue[(0,l.default)(we.sizes,E,"md")].thumb)),zt=(0,i.default)((0,s.default)(oe.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(xt,V));return r.default.createElement("div",w({},se,{ref:k,className:Ye}),r.default.createElement("label",{className:Mt,style:{width:"".concat(U||Me,"%")}}),r.default.createElement("input",w({ref:re,type:"range",max:W,min:Q,step:Y,className:zt},U?{value:U}:null,{defaultValue:q,onChange:function(Ht){return J?J(Ht):Ie(Number(Ht.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(Bj);var Uj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{useTimelineItem:function(){return p},TimelineItem:function(){return c},default:function(){return g}});var r=v(X),n=Je,o=v(et),i=Xe,a=bs;function l(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function s(m){if(Array.isArray(m))return m}function d(){return d=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,_){return s(m)||b(m,_)||C(m,_)||S()}function C(m,_){if(m){if(typeof m=="string")return l(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,_)}}var h=r.default.createContext(0);h.displayName="MaterialTailwind.TimelineItemContext";function p(){var m=r.default.useContext(h);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,_){var T=m.className,k=m.children,R=w(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],U=V[1],q=r.default.useMemo(function(){return[B,U]},[B,U]),J=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(h.Provider,{value:q},r.default.createElement("li",d({ref:_},R,{className:J}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var g=c})(lm);var Hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=P(X),n=P(ot),o=wn,i=Je,a=P(Sr),l=P(et),s=Xe,d=lm,v=bs;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=h(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,U=B.styles,q=B.valid,J=U.base,Q=U.variants,W=c((0,d.useTimelineItem)(),2),Y=W[1],re=r.default.useRef(null),ne=(0,o.useMergeRefs)([k,re]);r.default.useEffect(function(){var we=re.current;if(we){var ce=we.getBoundingClientRect().width;return Y(ce),function(){Y(0)}}},[Y,A,F]);var se=(0,l.default)(Q[(0,a.default)(q.variants,E,"filled")][(0,a.default)(q.colors,R,"gray")]),ve=(0,i.twMerge)((0,l.default)(J),se,A);return r.default.createElement("span",w({ref:ne},V,{className:ve}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(Hj);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return p},default:function(){return c}});var r=b(X),n=Je,o=b(et),i=Xe,a=lm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),_);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var c=p})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return b},default:function(){return S}});var r=s(X),n=Je,o=s(et),i=Xe,a=bs;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,i.useTheme)().timelineHeader,c=p.styles,g=c.base,m=(0,n.twMerge)((0,o.default)(g),y);return r.default.createElement("div",l({},h,{ref:P,className:m}),C)});b.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},b.displayName="MaterialTailwind.TimelineHeader";var S=b})($j);var Gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return p},default:function(){return c}});var r=b(X),n=Je,o=b(et),i=Xe,a=lm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],U=(0,o.default)(F.line),q=(0,n.twMerge)((0,o.default)(F.container),_);return r.default.createElement("span",v({},k,{ref:m,className:q,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(U,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:U}))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineConnector";var c=p})(Gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return b.default},default:function(){return h}});var r=w(X),n=Je,o=w(et),i=Xe,a=bs,l=w(lm),s=w(Hj),d=w(Wj),v=w($j),b=w(Gj);function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.children,_=P(p,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),g);return r.default.createElement("ul",S({ref:c},_,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var h=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:b.default})})(Uj);var Kj={},qj={},ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return b},default:function(){return S}});var r=s(X),n=Je,o=s(et),i=Xe,a=ET;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className;w.activeClassName,w.completedClassName;var C=w.children,h=d(w,["className","activeClassName","completedClassName","children"]),p=(0,i.useTheme)().step,c=p.styles.base,g=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},h,{ref:P,className:g}),C)});b.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},b.displayName="MaterialTailwind.Step";var S=b})(qj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=w(X),n=wn,o=Je,i=w(et),a=Xe,l=w(qj),s=ET;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function g(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||_(R,E)||y()}function _(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,U=R.lineClassName,q=R.activeLineClassName,J=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),Y=W.stepper,re=W.step,ne=Y.styles.base,se=re.styles,ve=se.base,we=r.default.useRef(null),ce=m(r.default.useState(0),2),ee=ce[0],oe=ce[1],ue=A===0,Se=Array.isArray(J)&&A===J.length-1,Ce=Array.isArray(J)&&A>J.length-1;r.default.useEffect(function(){if(we.current){var Ye=J,Mt=we.current.getBoundingClientRect().width,gt=Mt/(Ye.length-1);oe(gt)}},[J]);var Me=r.default.useMemo(function(){if(!Ce)return ee*A},[A,Ce,ee]);(0,n.useMergeRefs)([E,we]);var Ie=(0,o.twMerge)((0,i.default)(ne.stepper),B),Re=(0,o.twMerge)((0,i.default)(ne.line.initial),U),ye=(0,o.twMerge)(Re,(0,i.default)(ne.line.active),q),ke=(0,i.default)(ve.active),ze=(0,i.default)(ve.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:we,className:Ie}),r.default.createElement("div",{className:Re}),r.default.createElement("div",{className:ye,style:{width:"".concat(Me,"px")}}),Array.isArray(J)?J.map(function(Ye,Mt){var gt,xt;return r.default.cloneElement(Ye,p(C({key:Mt},Ye.props),{className:(0,o.twMerge)(Ye.props.className,Mt===A?(0,o.twMerge)(ke,(gt=Ye.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=S(C,["children"]),g,m=(0,o.useSpeedDial)(),_=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([h,T.setReference]);return r.default.cloneElement(p,d({},_(b(d({},c),{ref:k,className:(0,i.twMerge)(p==null||(g=p.props)===null||g===void 0?void 0:g.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Rx)),Rx}var Nx={},Q8;function LJ(){return Q8||(Q8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=b(X),n=An,o=wn,i=MT(),a=Xe,l=Je,s=b(et),d=sm;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=C.className,g=S(C,["children","className"]),m=(0,a.useTheme)(),_=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,U=(0,o.useMergeRefs)([h,E.setFloating]),q=(0,l.twMerge)((0,s.default)(_),c),J=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(J,null,A&&r.default.createElement("div",v({},g,{ref:U,className:q,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(p,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Nx)),Nx}var Yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return b},default:function(){return S}});var r=s(X),n=Xe,o=Je,i=s(et),a=sm;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,n.useTheme)(),c=p.speedDialAction.styles,g=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},h,{ref:P,className:g}),C)});b.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},b.displayName="SpeedDialAction";var S=b})(Yj);var Z8;function MT(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{SpeedDialContext:function(){return h},useSpeedDial:function(){return p},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return g}});var r=S(X),n=wn,o=Xe,i=S(Xn),a=sm,l=S(IJ()),s=S(LJ()),d=S(Yj);function v(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function b(m){if(Array.isArray(m))return m}function S(m){return m&&m.__esModule?m:{default:m}}function w(m,_){var T=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(T!=null){var k=[],R=!0,E=!1,A,F;try{for(T=T.call(m);!(R=(A=T.next()).done)&&(k.push(A.value),!(_&&k.length===_));R=!0);}catch(V){E=!0,F=V}finally{try{!R&&T.return!=null&&T.return()}finally{if(E)throw F}}return k}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(m,_){return b(m)||w(m,_)||C(m,_)||P()}function C(m,_){if(m){if(typeof m=="string")return v(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return v(m,_)}}var h=r.default.createContext(null);function p(){var m=r.default.useContext(h);if(!m)throw new Error("useSpeedDial must be used within a .");return m}function c(m){var _=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,U=y(r.default.useState(!1),2),q=U[0],J=U[1];_=_??q,T=T??J,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),Y=(0,n.useFloatingNodeId)(),re=(0,n.useFloating)({open:_,nodeId:Y,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),ne=re.x,se=re.y,ve=re.strategy,we=re.refs,ce=re.context,ee=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),oe=ee.getReferenceProps,ue=ee.getFloatingProps,Se=r.default.useMemo(function(){return{x:ne,y:se,strategy:ve,refs:we,open:_,context:ce,getReferenceProps:oe,getFloatingProps:ue,animation:W}},[ce,ue,oe,we,ve,ne,se,_,W]);return r.default.createElement(h.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:Y},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var g=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Mx)),Mx}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(JR,e),t(tL,e),t(rL,e),t(nL,e),t(iL,e),t(aL,e),t(cL,e),t(dL,e),t(fL,e),t(f2,e),t(aj,e),t(lj,e),t(fj,e),t(hj,e),t(mj,e),t(yj,e),t(bj,e),t(_j,e),t(xj,e),t(Oj,e),t(kj,e),t(Ej,e),t(Mj,e),t(Nj,e),t(Ij,e),t(Lj,e),t(Fj,e),t(zj,e),t(Vj,e),t(Bj,e),t(b3,e),t(Uj,e),t(Kj,e),t(MT(),e),t(Xe,e),t(RP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(QW);function DJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var RT={exports:{}},L2={},ww={},Tt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof sO<"u"?sO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Tt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Tt;class r{constructor(g=[1,0,0,1,0,0]){this.dirty=!1,this.m=g&&g.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(g){g.m[0]=this.m[0],g.m[1]=this.m[1],g.m[2]=this.m[2],g.m[3]=this.m[3],g.m[4]=this.m[4],g.m[5]=this.m[5]}point(g){const m=this.m;return{x:m[0]*g.x+m[2]*g.y+m[4],y:m[1]*g.x+m[3]*g.y+m[5]}}translate(g,m){return this.m[4]+=this.m[0]*g+this.m[2]*m,this.m[5]+=this.m[1]*g+this.m[3]*m,this}scale(g,m){return this.m[0]*=g,this.m[1]*=g,this.m[2]*=m,this.m[3]*=m,this}rotate(g){const m=Math.cos(g),_=Math.sin(g),T=this.m[0]*m+this.m[2]*_,k=this.m[1]*m+this.m[3]*_,R=this.m[0]*-_+this.m[2]*m,E=this.m[1]*-_+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(g,m){const _=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*g,R=this.m[3]+this.m[1]*g;return this.m[0]=_,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(g){const m=this.m[0]*g.m[0]+this.m[2]*g.m[1],_=this.m[1]*g.m[0]+this.m[3]*g.m[1],T=this.m[0]*g.m[2]+this.m[2]*g.m[3],k=this.m[1]*g.m[2]+this.m[3]*g.m[3],R=this.m[0]*g.m[4]+this.m[2]*g.m[5]+this.m[4],E=this.m[1]*g.m[4]+this.m[3]*g.m[5]+this.m[5];return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const g=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*g,_=-this.m[1]*g,T=-this.m[2]*g,k=this.m[0]*g,R=g*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=g*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const g=this.m[0],m=this.m[1],_=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=g*T-m*_,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(g!=0||m!=0){const F=Math.sqrt(g*g+m*m);A.rotation=m>0?Math.acos(g/F):-Math.acos(g/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(g*_+m*T)/E,A.skewY=0}else if(_!=0||T!=0){const F=Math.sqrt(_*_+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-_/F):-Math.acos(_/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(g*_+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",b="0",S="Konva warning: ",w="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let h=[];const p=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const g=c[0];return g==="#"||g==="."||g===g.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){h.push(c),h.length===1&&p(function(){const g=h;h=[],g.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,g){const m=e.Util.createImageElement();m.onload=function(){g(m)},m.src=c},_rgbToHex(c,g,m){return((1<<24)+(c<<16)+(g<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const g=parseInt(c,16);return{r:g>>16&255,g:g>>8&255,b:g&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=b+c;return d+c},getRGB(c){let g;return c in y?(g=y[c],{r:g[0],g:g[1],b:g[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(g=C.exec(c.replace(/ /g,"")),{r:parseInt(g[1],10),g:parseInt(g[2],10),b:parseInt(g[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const g=y[c.toLowerCase()];return g?{r:g[0],g:g[1],b:g[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const g=c.split(/ *, */).map(Number);return{r:g[0],g:g[1],b:g[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const g=c.split(/ *, */).map((m,_)=>m.slice(-1)==="%"?_===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:g[0],g:g[1],b:g[2],a:g[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[g,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),_=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=_+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,g){return!(g.x>c.x+c.width||g.x+g.widthc.y+c.height||g.y+g.height1?(R=m,E=_,A=(m-T)*(m-T)+(_-k)*(_-k)):(R=c+V*(m-c),E=g+V*(_-g),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,g,m){const _=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return g.forEach(function(k,R){if(!m&&R===g.length-1)return;const E=g[(R+1)%g.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bg.length){const R=g;g=c,c=R}for(let R=0;R{g.width=0,g.height=0})},drawRoundedRectPath(c,g,m,_){let T=0,k=0,R=0,E=0;typeof _=="number"?T=k=R=E=Math.min(_,g/2,m/2):(T=Math.min(_[0]||0,g/2,m/2),k=Math.min(_[1]||0,g/2,m/2),E=Math.min(_[2]||0,g/2,m/2),R=Math.min(_[3]||0,g/2,m/2)),c.moveTo(T,0),c.lineTo(g-k,0),c.arc(g-k,k,k,Math.PI*3/2,0,!1),c.lineTo(g,m-E),c.arc(g-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},Et={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=FJ;ht.alphaComponent=jJ;ht.getNumberValidator=zJ;ht.getNumberOrArrayOfNumbersValidator=VJ;ht.getNumberOrAutoValidator=BJ;ht.getStringValidator=UJ;ht.getStringOrGradientValidator=HJ;ht.getFunctionValidator=WJ;ht.getNumberArrayValidator=$J;ht.getBooleanValidator=GJ;ht.getComponentValidator=KJ;const _s=Tt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function FJ(e){return e>255?255:e<0?0:Math.round(e)}function jJ(e){return e>1?1:e<1e-4?1e-4:e}function zJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function VJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function BJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function GJ(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function KJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,b=t.Util._capitalize,S=n+b(a),w=o+b(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+b(h),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const b=this.attrs[a];return b===void 0?l:b},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),b=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[b]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(Et);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Xj=Lr,qJ=Tt;function YJ(e){const t=[],r=e.length,n=Xj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=XJ+d.join(J8)+QJ)):(i+=l.property,t||(i+=ree+l.val)),i+=eee;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=oee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,b=this._context;v.length===3?b.drawImage(t,r,n):v.length===5?b.drawImage(t,r,n,o,i):v.length===9&&b.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=eE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=YJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(j2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,um=Et,Y0=za,Gs=Tt,qi=j2,Xr=ht,Xb="absoluteOpacity",rb="allEventListeners",$l="absoluteTransform",tE="absoluteScale",Dc="canvas",fee="Change",pee="children",hee="konva",u4="listening",rE="mouseenter",nE="mouseleave",oE="set",iE="Shape",Qb=" ",aE="stage",Xs="transform",gee="Stage",c4="visible",vee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Qb);let mee=1,_t=class d4{constructor(t){this._id=mee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Qb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,b=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,w=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+w,l-=d,s-=d;const P=new Y0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new Y0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new Y0.HitCanvas({pixelRatio:b,width:o,height:i}),h=P.getContext(),p=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),h.save(),p.save(),h.translate(-l,-s),p.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Xb),this._clearSelfAndDescendantCache(tE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,h.restore(),p.restore(),v&&(h.save(),h.beginPath(),h.rect(0,0,o,i),h.closePath(),h.setAttr("strokeStyle","red"),h.setAttr("lineWidth",5),h.stroke(),h.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==pee&&(n=oE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(u4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(c4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==gee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Xb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=d4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Ax.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Ax.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,b=n===this;if(v){a.save();const w=this.getAbsoluteTransform(n);let P=w.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),h=this.clipY();a.rect(C||0,h||0,l,s)}a.clip.apply(a,y),P=w.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!b&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(w){w[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(w){if(!w.visible())return;const P=w.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const b=this.find("Shape");let S=!1;for(let w=0;wce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",ne=ce=>{const ee=re(ce);if(ee==="pointer")return o.Konva.pointerEventsEnabled&&Y.pointer;if(ee==="touch")return Y.touch;if(ee==="mouse")return Y.mouse};function se(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const ve="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class we extends n.Container{constructor(ee){super(se(ee)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{se(this.attrs)}),this._checkVisibility()}_validateAdd(ee){const oe=ee.getType()==="Layer",ue=ee.getType()==="FastLayer";oe||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const ee=this.visible()?"":"none";this.content.style.display=ee}setContainer(ee){if(typeof ee===v){if(ee.charAt(0)==="."){const ue=ee.slice(1);ee=document.getElementsByClassName(ue)[0]}else{var oe;ee.charAt(0)!=="#"?oe=ee:oe=ee.slice(1),ee=document.getElementById(oe)}if(!ee)throw"Can not find container in document with id "+oe}return this._setAttr("container",ee),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),ee.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const ee=this.children,oe=ee.length;for(let ue=0;ue-1&&e.stages.splice(oe,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const ee=this._pointerPositions[0]||this._changedPointerPositions[0];return ee?{x:ee.x,y:ee.y}:(t.Util.warn(ve),null)}_getPointerById(ee){return this._pointerPositions.find(oe=>oe.id===ee)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(ee){ee=ee||{},ee.x=ee.x||0,ee.y=ee.y||0,ee.width=ee.width||this.width(),ee.height=ee.height||this.height();const oe=new i.SceneCanvas({width:ee.width,height:ee.height,pixelRatio:ee.pixelRatio||1}),ue=oe.getContext()._context,Se=this.children;return(ee.x||ee.y)&&ue.translate(-1*ee.x,-1*ee.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Me=Ce._toKonvaCanvas(ee);ue.drawImage(Me._canvas,ee.x,ee.y,Me.getWidth()/Me.getPixelRatio(),Me.getHeight()/Me.getPixelRatio())}),oe}getIntersection(ee){if(!ee)return null;const oe=this.children,ue=oe.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Me=oe[Ce].getIntersection(ee);if(Me)return Me}return null}_resizeDOM(){const ee=this.width(),oe=this.height();this.content&&(this.content.style.width=ee+b,this.content.style.height=oe+b),this.bufferCanvas.setSize(ee,oe),this.bufferHitCanvas.setSize(ee,oe),this.children.forEach(ue=>{ue.setSize({width:ee,height:oe}),ue.draw()})}add(ee,...oe){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),ee.setSize({width:this.width(),height:this.height()}),ee.draw(),o.Konva.isBrowser&&this.content.appendChild(ee.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(ee){return s.hasPointerCapture(ee,this)}setPointerCapture(ee){s.setPointerCapture(ee,this)}releaseCapture(ee){s.releaseCapture(ee,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([ee,oe])=>{this.content.addEventListener(ee,ue=>{this[oe](ue)},{passive:!1})})}_pointerenter(ee){this.setPointersPositions(ee);const oe=ne(ee.type);oe&&this._fire(oe.pointerenter,{evt:ee,target:this,currentTarget:this})}_pointerover(ee){this.setPointersPositions(ee);const oe=ne(ee.type);oe&&this._fire(oe.pointerover,{evt:ee,target:this,currentTarget:this})}_getTargetShape(ee){let oe=this[ee+"targetShape"];return oe&&!oe.getStage()&&(oe=null),oe}_pointerleave(ee){const oe=ne(ee.type),ue=re(ee.type);if(!oe)return;this.setPointersPositions(ee);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(oe.pointerout,{evt:ee}),Se._fireAndBubble(oe.pointerleave,{evt:ee}),this._fire(oe.pointerleave,{evt:ee,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(oe.pointerleave,{evt:ee,target:this,currentTarget:this}),this._fire(oe.pointerout,{evt:ee,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(ee){const oe=ne(ee.type),ue=re(ee.type);if(!oe)return;this.setPointersPositions(ee);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Me=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Me||!Me.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Me.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Me,Me._fireAndBubble(oe.pointerdown,{evt:ee,pointerId:Ce.id}),Se=!0;const Ie=ee.type.indexOf("touch")>=0;Me.preventDefault()&&ee.cancelable&&Ie&&ee.preventDefault()}),Se||this._fire(oe.pointerdown,{evt:ee,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(ee){const oe=ne(ee.type),ue=re(ee.type);if(!oe||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&ee.cancelable&&ee.preventDefault(),this.setPointersPositions(ee),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Me=!1;const Ie=this._getTargetShape(ue);this._changedPointerPositions.forEach(Re=>{const ye=s.getCapturedShape(Re.id)||this.getIntersection(Re),ke=Re.id,ze={evt:ee,pointerId:ke},Ye=Ie!==ye;if(Ye&&Ie&&(Ie._fireAndBubble(oe.pointerout,{...ze},ye),Ie._fireAndBubble(oe.pointerleave,{...ze},ye)),ye){if(Ce[ye._id])return;Ce[ye._id]=!0}ye&&ye.isListening()?(Me=!0,Ye&&(ye._fireAndBubble(oe.pointerover,{...ze},Ie),ye._fireAndBubble(oe.pointerenter,{...ze},Ie),this[ue+"targetShape"]=ye),ye._fireAndBubble(oe.pointermove,{...ze})):Ie&&(this._fire(oe.pointerover,{evt:ee,target:this,currentTarget:this,pointerId:ke}),this[ue+"targetShape"]=null)}),Me||this._fire(oe.pointermove,{evt:ee,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(ee){const oe=ne(ee.type),ue=re(ee.type);if(!oe)return;this.setPointersPositions(ee);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Me={};let Ie=!1;this._changedPointerPositions.forEach(Re=>{const ye=s.getCapturedShape(Re.id)||this.getIntersection(Re);if(ye){if(ye.releaseCapture(Re.id),Me[ye._id])return;Me[ye._id]=!0}const ke=Re.id,ze={evt:ee,pointerId:ke};let Ye=!1;o.Konva["_"+ue+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),ye&&ye.isListening()?(Ie=!0,this[ue+"ClickEndShape"]=ye,ye._fireAndBubble(oe.pointerup,{...ze}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===ye&&(ye._fireAndBubble(oe.pointerclick,{...ze}),Ye&&Ce&&Ce===ye&&ye._fireAndBubble(oe.pointerdblclick,{...ze}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(oe.pointerclick,{evt:ee,target:this,currentTarget:this,pointerId:ke}),Ye&&this._fire(oe.pointerdblclick,{evt:ee,target:this,currentTarget:this,pointerId:ke}))}),Ie||this._fire(oe.pointerup,{evt:ee,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,ee.cancelable&&ue!=="touch"&&ue!=="pointer"&&ee.preventDefault()}_contextmenu(ee){this.setPointersPositions(ee);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(F,{evt:ee}):this._fire(F,{evt:ee,target:this,currentTarget:this})}_wheel(ee){this.setPointersPositions(ee);const oe=this.getIntersection(this.getPointerPosition());oe&&oe.isListening()?oe._fireAndBubble(J,{evt:ee}):this._fire(J,{evt:ee,target:this,currentTarget:this})}_pointercancel(ee){this.setPointersPositions(ee);const oe=s.getCapturedShape(ee.pointerId)||this.getIntersection(this.getPointerPosition());oe&&oe._fireAndBubble(m,s.createEvent(ee)),s.releaseCapture(ee.pointerId)}_lostpointercapture(ee){s.releaseCapture(ee.pointerId)}setPointersPositions(ee){const oe=this._getContentPosition();let ue=null,Se=null;ee=ee||window.event,ee.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(ee.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})}),Array.prototype.forEach.call(ee.changedTouches||ee.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-oe.left)/oe.scaleX,y:(Ce.clientY-oe.top)/oe.scaleY})})):(ue=(ee.clientX-oe.left)/oe.scaleX,Se=(ee.clientY-oe.top)/oe.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(ee)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(ee)}])}_setPointerPosition(ee){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(ee)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const ee=this.content.getBoundingClientRect();return{top:ee.top,left:ee.left,scaleX:ee.width/this.content.clientWidth||1,scaleY:ee.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const ee=this.container();if(!ee)throw"Stage has no container. A container is required.";ee.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),ee.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(ee){ee.batchDraw()}),this}}e.Stage=we,we.prototype.nodeType=d,(0,l._registerNode)(we),r.Factory.addGetterSetter(we,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(Jj);var cm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Tt,r=Lr,n=Et,o=Cr,i=ht,a=Tt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",b="linearGradient",S="radialGradient";let w;function P(){return w||(w=r.Util.createCanvasElement().getContext("2d"),w)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function h(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function p(R){R.stroke()}function c(){this._clearCache(s)}function g(){this._clearCache(d)}function m(){this._clearCache(v)}function _(){this._clearCache(b)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(b,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let U=0;Uthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),U=this.getAbsoluteOpacity()!==1;if(V&&B&&U)return!0;const q=this.hasShadow(),J=this.shadowForStrokeEnabled();return!!(V&&B&&q&&J)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,U=this.getSelfRect(),J=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=U.width+J,W=U.height+J,Y=!E.skipShadow&&this.hasShadow(),re=Y?this.shadowOffsetX():0,ne=Y?this.shadowOffsetY():0,se=Q+Math.abs(re),ve=W+Math.abs(ne),we=Y&&this.shadowBlur()||0,ce=se+we*2,ee=ve+we*2,oe={width:ce,height:ee,x:-(J/2+we)+Math.min(re,0)+U.x,y:-(J/2+we)+Math.min(ne,0)+U.y};return V?oe:this._transformedRect(oe,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),U=B.getContext(),q=this._getCanvasCache(),J=this.getSceneFunc(),Q=this.hasShadow(),W,Y;const re=B.isCache,ne=A===this;if(!this.isVisible()&&!ne)return this;if(q){U.save();const ve=this.getAbsoluteTransform(A).getMatrix();return U.transform(ve[0],ve[1],ve[2],ve[3],ve[4],ve[5]),this._drawCachedSceneCanvas(U),U.restore(),this}if(!J)return this;if(U.save(),this._useBufferCanvas()&&!re){W=this.getStage();const ve=F||W.bufferCanvas;Y=ve.getContext(),Y.clear(),Y.save(),Y._applyLineJoin(this);var se=this.getAbsoluteTransform(A).getMatrix();Y.transform(se[0],se[1],se[2],se[3],se[4],se[5]),J.call(this,Y,this),Y.restore();const we=ve.pixelRatio;Q&&U._applyShadow(this),U._applyOpacity(this),U._applyGlobalCompositeOperation(this),U.drawImage(ve._canvas,0,0,ve.width/we,ve.height/we)}else{if(U._applyLineJoin(this),!ne){var se=this.getAbsoluteTransform(A).getMatrix();U.transform(se[0],se[1],se[2],se[3],se[4],se[5]),U._applyOpacity(this),U._applyGlobalCompositeOperation(this)}Q&&U._applyShadow(this),J.call(this,U,this)}return U.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,U=B&&B.getContext(),q=this.hitFunc()||this.sceneFunc(),J=this._getCanvasCache(),Q=J&&J.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){U.save();const Y=this.getAbsoluteTransform(A).getMatrix();return U.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5]),this._drawCachedHitCanvas(U),U.restore(),this}if(!q)return this;if(U.save(),U._applyLineJoin(this),!(this===A)){const Y=this.getAbsoluteTransform(A).getMatrix();U.transform(Y[0],Y[1],Y[2],Y[3],Y[4],Y[5])}return q.call(this,U,this),U.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),U=V.getWidth(),q=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,U,q);try{const J=B.getImageData(0,0,U,q),Q=J.data,W=Q.length,Y=r.Util._hexToRgb(this.colorKey);for(let re=0;reE?(Q[re]=Y.r,Q[re+1]=Y.g,Q[re+2]=Y.b,Q[re+3]=255):Q[re+3]=0;B.putImageData(J,0,0)}catch(J){r.Util.error("Unable to draw hit graph from cached scene canvas. "+J.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=h,k.prototype._strokeFuncHit=p,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",g),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",_),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(cm,"__esModule",{value:!0});cm.Layer=void 0;const Hl=Lr,Ix=Ed,If=Cr,AT=Et,lE=za,xee=ht,See=_n,Cee=Tt,Pee="#",Tee="beforeDraw",Oee="draw",rz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],kee=rz.length;let xh=class extends Ix.Container{constructor(t){super(t),this.canvas=new lE.SceneCanvas,this.hitCanvas=new lE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Tee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Ix.Container.prototype.drawScene.call(this,o,r),this._fire(Oee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Ix.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};cm.Layer=xh;xh.prototype.nodeType="Layer";(0,Cee._registerNode)(xh);AT.Factory.addGetterSetter(xh,"imageSmoothingEnabled",!0);AT.Factory.addGetterSetter(xh,"clearBeforeDraw",!0);AT.Factory.addGetterSetter(xh,"hitGraphEnabled",!0,(0,xee.getBooleanValidator)());var V2={};Object.defineProperty(V2,"__esModule",{value:!0});V2.FastLayer=void 0;const Eee=Lr,Mee=cm,Ree=Tt;class IT extends Mee.Layer{constructor(t){super(t),this.listening(!1),Eee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}V2.FastLayer=IT;IT.prototype.nodeType="FastLayer";(0,Ree._registerNode)(IT);var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});Sh.Group=void 0;const Nee=Lr,Aee=Ed,Iee=Tt;let LT=class extends Aee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Nee.Util.throw("You may only add groups and shapes to groups.")}};Sh.Group=LT;LT.prototype.nodeType="Group";(0,Iee._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Animation=void 0;const Lx=Tt,sE=Lr,Dx=(function(){return Lx.glob.performance&&Lx.glob.performance.now?function(){return Lx.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Dx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,h=C._id,p=P.easing||e.Easings.Linear,c=!!P.yoyo;let g,m;typeof P.duration>"u"?g=.3:P.duration===0?g=.001:g=P.duration,this.node=C,this._id=v++;const _=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);_||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},_),this.tween=new b(m,function(T){y._tweenFunc(T)},p,0,1,g*1e3,c),this._addListeners(),S.attrs[h]||(S.attrs[h]={}),S.attrs[h][this._id]||(S.attrs[h][this._id]={}),S.tweens[h]||(S.tweens[h]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,h=C._id;let p,c,g,m,_;const T=S.tweens[h][P];T&&delete S.attrs[h][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(p=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(g=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const h in C)delete S.tweens[P][h];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(w){const P=w.onFinish;w.node=this,w.onFinish=function(){this.destroy(),P&&P()},new S(w).play()},e.Easings={BackEaseIn(w,P,y,C){return y*(w/=C)*w*((1.70158+1)*w-1.70158)+P},BackEaseOut(w,P,y,C){return y*((w=w/C-1)*w*((1.70158+1)*w+1.70158)+1)+P},BackEaseInOut(w,P,y,C){let h=1.70158;return(w/=C/2)<1?y/2*(w*w*(((h*=1.525)+1)*w-h))+P:y/2*((w-=2)*w*(((h*=1.525)+1)*w+h)+2)+P},ElasticEaseIn(w,P,y,C,h,p){let c=0;return w===0?P:(w/=C)===1?P+y:(p||(p=C*.3),!h||h0?t:r),v=a*r,b=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:b,width:v-d,height:S-b}}}B2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Dee._registerNode)(Ss);U2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,H2.getNumberValidator)());U2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,H2.getNumberValidator)());U2.Factory.addGetterSetter(Ss,"angle",0,(0,H2.getNumberValidator)());U2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,H2.getBooleanValidator)());var W2={},dm={};Object.defineProperty(dm,"__esModule",{value:!0});dm.Line=void 0;const $2=Et,Fee=Tt,jee=_n,oz=ht;function f4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),b=r-d*(o-e),S=n-d*(i-t),w=r+v*(o-e),P=n+v*(i-t);return[b,S,w,P]}function cE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let w=0;w<20;w++)v=S*e.tValues[20][w]+S,d+=e.cValues[20][w]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],b=2*a[1]-2*a[0],S=2*l[1]-2*l[0],w=4*(d*d+v*v),P=4*(d*b+v*S),y=b*b+S*S;if(w===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*w),h=y/w,p=s+C,c=h-C*C,g=p*p+c>0?Math.sqrt(p*p+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,_=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((p+g)/(C+m))):0;return Math.sqrt(w)/2*(p*g-C*m+_)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),b=d*d+v*v;return Math.sqrt(b)}const o=(a,l,s)=>{const d=s.length-1;let v,b;if(d===0)return 0;if(a===0){b=0;for(let S=0;S<=d;S++)b+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return b}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,b=(a-s(v))/l,S=0;for(;d>.001;){const w=s(v+b),P=Math.abs(a-w)/l;if(P500)break}return v};e.t2length=i})(iz);Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Path=void 0;const zee=Et,Vee=_n,Bee=Tt,Lf=iz;class hn extends Vee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,w=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(w,P),t.arc(0,0,S,s,s+d,1-b),t.scale(1/w,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],b=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-b)b;w-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],w,0);t.push(P.x,P.y)}else for(let w=d+S;wr[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],b=l[3],S=l[4],w=l[5],P=l[6];return S+=w*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,b,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,w,P,y,C,h,p,c,g,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var _=E.shift(),T=E.shift();if(s+=_,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let U=a.length-2;U>=0;U--)if(a[U].command==="M"){s=a[U].points[0]+_,d=a[U].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(w,P,s,d);break;case"t":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(w,P,s,d);break;case"A":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break;case"a":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],b=o[5],S=o[4]+b,w=Math.PI/180;if(Math.abs(v-S)S;s-=w)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+w;s1&&(l*=Math.sqrt(w),s*=Math.sqrt(w));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(b*b))/(l*l*(S*S)+s*s*(b*b)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*b/l,h=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,p=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},g=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[h,p,l,s,_,R,v,a]}}Ph.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Bee._registerNode)(hn);zee.Factory.addGetterSetter(hn,"data");Object.defineProperty(W2,"__esModule",{value:!0});W2.Arrow=void 0;const G2=Et,Uee=dm,az=ht,Hee=Tt,dE=Ph;class Rd extends Uee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],w=dE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=dE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/w),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,b=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}W2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Hee._registerNode)(Rd);G2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,az.getNumberValidator)());G2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,az.getNumberValidator)());G2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);G2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.Circle=void 0;const Wee=Et,$ee=_n,Gee=ht,Kee=Tt;let Th=class extends $ee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};K2.Circle=Th;Th.prototype._centroid=!0;Th.prototype.className="Circle";Th.prototype._attrsAffectingSize=["radius"];(0,Kee._registerNode)(Th);Wee.Factory.addGetterSetter(Th,"radius",0,(0,Gee.getNumberValidator)());var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Ellipse=void 0;const DT=Et,qee=_n,lz=ht,Yee=Tt;class Gu extends qee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}q2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Yee._registerNode)(Gu);DT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);DT.Factory.addGetterSetter(Gu,"radiusX",0,(0,lz.getNumberValidator)());DT.Factory.addGetterSetter(Gu,"radiusY",0,(0,lz.getNumberValidator)());var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.Image=void 0;const Fx=Lr,Nd=Et,Xee=_n,Qee=Tt,fm=ht;let xl=class sz extends Xee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?Fx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?Fx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=Fx.Util.createImageElement();o.onload=function(){const i=new sz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};Y2.Image=xl;xl.prototype.className="Image";(0,Qee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,fm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,fm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,fm.getNumberValidator)());var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.Tag=Jp.Label=void 0;const X2=Et,Zee=_n,Jee=Sh,FT=ht,uz=Tt,cz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],ete="Change.konva",tte="none",p4="up",h4="right",g4="down",v4="left",rte=cz.length;class jT extends Jee.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Z2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,ute._registerNode)(Id);dz.Factory.addGetterSetter(Id,"radius",0,(0,fz.getNumberValidator)());dz.Factory.addGetterSetter(Id,"sides",0,(0,fz.getNumberValidator)());var J2={};Object.defineProperty(J2,"__esModule",{value:!0});J2.Ring=void 0;const pz=Et,cte=_n,hz=ht,dte=Tt,fE=Math.PI*2;class Ld extends cte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,fE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),fE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}J2.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,dte._registerNode)(Ld);pz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,hz.getNumberValidator)());pz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,hz.getNumberValidator)());var e5={};Object.defineProperty(e5,"__esModule",{value:!0});e5.Sprite=void 0;const Dd=Et,fte=_n,pte=Ch,gz=ht,hte=Tt;class Sl extends fte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new pte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],b=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),b)if(a){const S=a[r],w=n*2;t.drawImage(b,l,s,d,v,S[w+0],S[w+1],d,v)}else t.drawImage(b,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",bte="center",vz="inherit",X0="justify",wte="Change.konva",_te="2d",pE="-",mz="left",xte="text",Ste="Text",Cte="top",Pte="bottom",hE="middle",yz="normal",Tte="px ",nb=" ",Ote="right",gE="rtl",kte="word",Ete="char",vE="none",zx="…",bz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Mte=bz.length;function Rte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ob;function Vx(){return ob||(ob=m4.Util.createCanvasElement().getContext(_te),ob)}function Nte(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Ate(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Ite(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends mte.Shape{constructor(t){super(Ite(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(p+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=m4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(xte,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return m4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,b,S;let w=Vx(),P=this.fontSize(),y;w.save(),w.font=this._getContextFont(),y=w.measureText(t),w.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(b=y.hangingBaseline)!==null&&b!==void 0?b:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+nb+this.fontVariant()+nb+(this.fontSize()+Tte)+Rte(this.fontFamily())}_addTextLine(t){this.align()===X0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return Vx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` -`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,b=a-d*2,S=0,w=this.wrap(),P=w!==vE,y=w!==Ete&&P,C=this.ellipsis();this.textArr=[],Vx().font=this._getContextFont();const h=C?this._getTextWidth(zx):0;for(let p=0,c=t.length;pv)for(;g.length>0;){let _=0,T=Bc(g).length,k="",R=0;for(;_>>1,A=Bc(g),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+h;V<=v?(_=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(g),V=Bc(k),B=F[V.length],U=B===nb||B===pE;let q;if(U&&R<=v)q=V.length;else{const J=V.lastIndexOf(nb),Q=V.lastIndexOf(pE);q=Math.max(J,Q)+1}q>0&&(_=q,k=F.slice(0,_).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(g=Bc(g).slice(_).join("").trimLeft(),g.length>0&&(m=this._getTextWidth(g),m<=v)){this._addTextLine(g),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(g),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&pb)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==vE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+zx)r?null:Q0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Q0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Cz}`).join(" "),bE="nodesRect",Ute=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Hte={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Wte="ontouchstart"in Pa.Konva._global;function $te(e,t,r){if(e==="rotater")return r;t+=tr.Util.degToRad(Hte[e]||0);const n=(tr.Util.radToDeg(t)%360+360)%360;return tr.Util._inRange(n,315+22.5,360)||tr.Util._inRange(n,0,22.5)?"ns-resize":tr.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":tr.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":tr.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":tr.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":tr.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":tr.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":tr.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(tr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const xw=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Gte(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Pz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function Kte(e,t){const r=Gte(e);return Pz(e,t,r)}function qte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(tr.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Ute.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(bE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(bE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Pz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),b=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();b.forEach(function(w){const P=S.point(w);r.push(P)})});const n=new tr.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),xw.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new zte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Wte?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=$te(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new jte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*tr.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},y4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let _=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(_-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+_,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=qte(this.rotationSnaps(),k,R)-m.rotation,F=Kte(m,A);this._fitNodesInto(F,t);return}const b=this.shiftBehavior();let S;b==="inverted"?S=this.keepRatio()&&!t.shiftKey:b==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var h=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-left").x()>w.x?-1:1,y=this.findOne(".top-left").y()>w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(w.x-r),this.findOne(".top-left").y(w.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-w.x,2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-right").x()w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(w.x+r),this.findOne(".top-right").y(w.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(i.y()-w.y,2));var P=w.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(tr.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tr.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new tr.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:tr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new tr.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new tr.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const b=s.multiply(l.invert());this._nodes.forEach(S=>{var w;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new tr.Transform;C.multiply(P.copy().invert()).multiply(b).multiply(P).multiply(y);const h=C.decompose();S.setAttrs(h),(w=S.getLayer())===null||w===void 0||w.batchDraw()}),this.rotation(tr.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(tr.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(b=>{b.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*tr.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(b=>{v(b)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),yE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return mE.Node.prototype.toObject.call(this)}clone(t){return mE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}n5.Transformer=Bt;Bt.isTransforming=()=>y4>0;function Yte(e){return e instanceof Array||tr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){xw.indexOf(t)===-1&&tr.Util.warn("Unknown anchor name: "+t+". Available names are: "+xw.join(", "))}),e||[]}Bt.prototype.className="Transformer";(0,Vte._registerNode)(Bt);qt.Factory.addGetterSetter(Bt,"enabledAnchors",xw,Yte);qt.Factory.addGetterSetter(Bt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());qt.Factory.addGetterSetter(Bt,"resizeEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorSize",10,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateEnabled",!0);qt.Factory.addGetterSetter(Bt,"rotateLineVisible",!0);qt.Factory.addGetterSetter(Bt,"rotationSnaps",[]);qt.Factory.addGetterSetter(Bt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateAnchorCursor","crosshair");qt.Factory.addGetterSetter(Bt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"anchorFill","white");qt.Factory.addGetterSetter(Bt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderDash");qt.Factory.addGetterSetter(Bt,"keepRatio",!0);qt.Factory.addGetterSetter(Bt,"shiftBehavior","default");qt.Factory.addGetterSetter(Bt,"centeredScaling",!1);qt.Factory.addGetterSetter(Bt,"ignoreStroke",!1);qt.Factory.addGetterSetter(Bt,"padding",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"nodes");qt.Factory.addGetterSetter(Bt,"node");qt.Factory.addGetterSetter(Bt,"boundBoxFunc");qt.Factory.addGetterSetter(Bt,"anchorDragBoundFunc");qt.Factory.addGetterSetter(Bt,"anchorStyleFunc");qt.Factory.addGetterSetter(Bt,"shouldOverdrawWholeArea",!1);qt.Factory.addGetterSetter(Bt,"useSingleNodeRotation",!0);qt.Factory.backCompat(Bt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var o5={};Object.defineProperty(o5,"__esModule",{value:!0});o5.Wedge=void 0;const i5=Et,Xte=_n,Qte=Tt,Tz=ht,Zte=Tt;class Cs extends Xte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Qte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}o5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Zte._registerNode)(Cs);i5.Factory.addGetterSetter(Cs,"radius",0,(0,Tz.getNumberValidator)());i5.Factory.addGetterSetter(Cs,"angle",0,(0,Tz.getNumberValidator)());i5.Factory.addGetterSetter(Cs,"clockwise",!1);i5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var a5={};Object.defineProperty(a5,"__esModule",{value:!0});a5.Blur=void 0;const wE=Et,Jte=Cr,ere=ht;function _E(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const tre=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],rre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function nre(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,b,S,w,P,y,C,h,p,c,g,m,_,T,k,R,E,A,F;const V=t+t+1,B=n-1,U=o-1,q=t+1,J=q*(q+1)/2,Q=new _E,W=tre[t],Y=rre[t];let re=null,ne=Q,se=null,ve=null;for(l=1;l>Y,A!==0?(A=255/A,r[v]=(S*W>>Y)*A,r[v+1]=(w*W>>Y)*A,r[v+2]=(P*W>>Y)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,w-=h,P-=p,y-=c,C-=se.r,h-=se.g,p-=se.b,c-=se.a,s=b+((s=i+t+1)>Y,A>0?(A=255/A,r[s]=(S*W>>Y)*A,r[s+1]=(w*W>>Y)*A,r[s+2]=(P*W>>Y)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,w-=h,P-=p,y-=c,C-=se.r,h-=se.g,p-=se.b,c-=se.a,s=i+((s=a+q)0&&nre(t,r)};a5.Blur=ore;wE.Factory.addGetterSetter(Jte.Node,"blurRadius",0,(0,ere.getNumberValidator)(),wE.Factory.afterSetFilter);var l5={};Object.defineProperty(l5,"__esModule",{value:!0});l5.Brighten=void 0;const xE=Et,ire=Cr,are=ht,lre=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};s5.Contrast=cre;SE.Factory.addGetterSetter(sre.Node,"contrast",0,(0,ure.getNumberValidator)(),SE.Factory.afterSetFilter);var u5={};Object.defineProperty(u5,"__esModule",{value:!0});u5.Emboss=void 0;const Lu=Et,c5=Cr,dre=Lr,Oz=ht,fre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,b=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:dre.Util.error("Unknown emboss direction: "+n)}do{const S=(b-1)*s;let w=d;b+w<1&&(w=0),b+w>l&&(w=0);const P=(b-1+w)*a*4;let y=a;do{const C=S+(y-1)*4;let h=v;y+h<1&&(h=0),y+h>a&&(h=0);const p=P+(y-1+h)*4,c=i[C]-i[p],g=i[C+1]-i[p+1],m=i[C+2]-i[p+2];let _=c;const T=_>0?_:-_,k=g>0?g:-g,R=m>0?m:-m;if(k>T&&(_=g),R>T&&(_=m),_*=t,o){const E=i[C]+_,A=i[C+1]+_,F=i[C+2]+_;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-_;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--b)};u5.Emboss=fre;Lu.Factory.addGetterSetter(c5.Node,"embossStrength",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(c5.Node,"embossWhiteLevel",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(c5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(c5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var d5={};Object.defineProperty(d5,"__esModule",{value:!0});d5.Enhance=void 0;const CE=Et,pre=Cr,hre=ht;function Hx(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const gre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,b;const S=this.enhance();if(S===0)return;for(let _=0;_o&&(o=i),s=t[_+1],sl&&(l=s),b=t[_+2],bv&&(v=b);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let w,P,y,C,h,p,c,g,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),h=l+S*(255-l),p=a-S*(a-0),g=v+S*(255-v),m=d-S*(d-0)):(w=(o+n)*.5,P=o+S*(o-w),y=n+S*(n-w),C=(l+a)*.5,h=l+S*(l-C),p=a+S*(a-C),c=(v+d)*.5,g=v+S*(v-c),m=d+S*(d-c));for(let _=0;_d?S:d;const w=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const w=a,P=i,y=0;let C,h;for(v=0;vt&&(g=c,m=0,_=-1),o=0;o=0&&w=0&&P=0&&w=0&&P=1020?255:0}return a}function Mre(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&w=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=g[a+0],s+=g[a+1],d+=g[a+2],v+=g[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=w;o=r))for(i=y;i=n||(a=(r*i+o)*4,g[a+0]=l,g[a+1]=s,g[a+2]=d,g[a+3]=v)}};b5.Pixelate=jre;kE.Factory.addGetterSetter(Dre.Node,"pixelSize",8,(0,Fre.getNumberValidator)(),kE.Factory.afterSetFilter);var w5={};Object.defineProperty(w5,"__esModule",{value:!0});w5.Posterize=void 0;const EE=Et,zre=Cr,Vre=ht,Bre=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter($T.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter($T.Node,"blue",0,Ure.RGBComponent,Cw.Factory.afterSetFilter);var x5={};Object.defineProperty(x5,"__esModule",{value:!0});x5.RGBA=void 0;const Mv=Et,S5=Cr,Wre=ht,$re=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(S5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Mv.Factory.addGetterSetter(S5.Node,"blue",0,Wre.RGBComponent,Mv.Factory.afterSetFilter);Mv.Factory.addGetterSetter(S5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var C5={};Object.defineProperty(C5,"__esModule",{value:!0});C5.Sepia=void 0;const Gre=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),b>127&&(b=255-b),t[s]=d,t[s+1]=v,t[s+2]=b}while(--l)}while(--i)};P5.Solarize=Kre;var T5={};Object.defineProperty(T5,"__esModule",{value:!0});T5.Threshold=void 0;const ME=Et,qre=Cr,Yre=ht,Xre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;ole||L[K]!==j[le]){var me=` -`+L[K].replace(" at new "," at ");return u.displayName&&me.includes("")&&(me=me.replace("",u.displayName)),me}while(1<=K&&0<=le);break}}}finally{jn=!1,Error.prepareStackTrace=O}return(u=u?u.displayName||u.name:"")?Fr(u):""}var ji=Object.prototype.hasOwnProperty,zn=[],un=-1;function Zr(u){return{current:u}}function At(u){0>un||(u.current=zn[un],zn[un]=null,un--)}function He(u,f){un++,zn[un]=u.current,u.current=f}var It={},at=Zr(It),rt=Zr(!1),St=It;function cn(u,f){var O=u.type.contextTypes;if(!O)return It;var N=u.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===f)return N.__reactInternalMemoizedMaskedChildContext;var L={},j;for(j in O)L[j]=f[j];return N&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=f,u.__reactInternalMemoizedMaskedChildContext=L),L}function wr(u){return u=u.childContextTypes,u!=null}function wo(){At(rt),At(at)}function qa(u,f,O){if(at.current!==It)throw Error(a(168));He(at,f),He(rt,O)}function Qu(u,f,O){var N=u.stateNode;if(f=f.childContextTypes,typeof N.getChildContext!="function")return O;N=N.getChildContext();for(var L in N)if(!(L in f))throw Error(a(108,k(u)||"Unknown",L));return i({},O,N)}function jd(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||It,St=at.current,He(at,u),He(rt,rt.current),!0}function gm(u,f,O){var N=u.stateNode;if(!N)throw Error(a(169));O?(u=Qu(u,f,St),N.__reactInternalMemoizedMergedChildContext=u,At(rt),At(at),He(at,u)):At(rt),He(rt,O)}var oi=Math.clz32?Math.clz32:Tl,H5=Math.log,vm=Math.LN2;function Tl(u){return u>>>=0,u===0?32:31-(H5(u)/vm|0)|0}var Ol=64,Zu=4194304;function ks(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Ju(u,f){var O=u.pendingLanes;if(O===0)return 0;var N=0,L=u.suspendedLanes,j=u.pingedLanes,K=O&268435455;if(K!==0){var le=K&~L;le!==0?N=ks(le):(j&=K,j!==0&&(N=ks(j)))}else K=O&~L,K!==0?N=ks(K):j!==0&&(N=ks(j));if(N===0)return 0;if(f!==0&&f!==N&&(f&L)===0&&(L=N&-N,j=f&-f,L>=j||L===16&&(j&4194240)!==0))return f;if((N&4)!==0&&(N|=O&16),f=u.entangledLanes,f!==0)for(u=u.entanglements,f&=N;0O;O++)f.push(u);return f}function Ya(u,f,O){u.pendingLanes|=f,f!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,f=31-oi(f),u[f]=O}function W5(u,f){var O=u.pendingLanes&~f;u.pendingLanes=f,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=f,u.mutableReadLanes&=f,u.entangledLanes&=f,f=u.entanglements;var N=u.eventTimes;for(u=u.expirationTimes;0>=K,L-=K,Vi=1<<32-oi(f)+L|O<vt?(ft=ct,ct=null):ft=ct.sibling;var Ne=Ae(_e,ct,Pe[vt],Be);if(Ne===null){ct===null&&(ct=ft);break}u&&ct&&Ne.alternate===null&&f(_e,ct),he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne,ct=ft}if(vt===Pe.length)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;vtvt?(ft=ct,ct=null):ft=ct.sibling;var nt=Ae(_e,ct,Ne.value,Be);if(nt===null){ct===null&&(ct=ft);break}u&&ct&&nt.alternate===null&&f(_e,ct),he=j(nt,he,vt),yt===null?tt=nt:yt.sibling=nt,yt=nt,ct=ft}if(Ne.done)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;!Ne.done;vt++,Ne=Pe.next())Ne=Ve(_e,Ne.value,Be),Ne!==null&&(he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return ar&&Ml(_e,vt),tt}for(ct=N(_e,ct);!Ne.done;vt++,Ne=Pe.next())Ne=Rt(ct,_e,vt,Ne.value,Be),Ne!==null&&(u&&Ne.alternate!==null&&ct.delete(Ne.key===null?vt:Ne.key),he=j(Ne,he,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return u&&ct.forEach(function(Un){return f(_e,Un)}),ar&&Ml(_e,vt),tt}function On(_e,he,Pe,Be){if(typeof Pe=="object"&&Pe!==null&&Pe.type===v&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case s:e:{for(var tt=Pe.key,yt=he;yt!==null;){if(yt.key===tt){if(tt=Pe.type,tt===v){if(yt.tag===7){O(_e,yt.sibling),he=L(yt,Pe.props.children),he.return=_e,_e=he;break e}}else if(yt.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===c&&So(tt)===yt.type){O(_e,yt.sibling),he=L(yt,Pe.props),he.ref=lc(_e,yt,Pe),he.return=_e,_e=he;break e}O(_e,yt);break}else f(_e,yt);yt=yt.sibling}Pe.type===v?(he=I(Pe.props.children,_e.mode,Be,Pe.key),he.return=_e,_e=he):(Be=M(Pe.type,Pe.key,Pe.props,null,_e.mode,Be),Be.ref=lc(_e,he,Pe),Be.return=_e,_e=Be)}return K(_e);case d:e:{for(yt=Pe.key;he!==null;){if(he.key===yt)if(he.tag===4&&he.stateNode.containerInfo===Pe.containerInfo&&he.stateNode.implementation===Pe.implementation){O(_e,he.sibling),he=L(he,Pe.children||[]),he.return=_e,_e=he;break e}else{O(_e,he);break}else f(_e,he);he=he.sibling}he=$(Pe,_e.mode,Be),he.return=_e,_e=he}return K(_e);case c:return yt=Pe._init,On(_e,he,yt(Pe._payload),Be)}if(U(Pe))return wt(_e,he,Pe,Be);if(_(Pe))return er(_e,he,Pe,Be);sc(_e,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,he!==null&&he.tag===6?(O(_e,he.sibling),he=L(he,Pe),he.return=_e,_e=he):(O(_e,he),he=z(Pe,_e.mode,Be),he.return=_e,_e=he),K(_e)):O(_e,he)}return On}var Ns=Lh(!0),Dh=Lh(!1),Xa=Zr(null),Xd=null,As=null,Fh=null;function uc(){Fh=As=Xd=null}function Qd(u,f,O){Se?(He(Xa,f._currentValue),f._currentValue=O):(He(Xa,f._currentValue2),f._currentValue2=O)}function jh(u){var f=Xa.current;At(Xa),Se?u._currentValue=f:u._currentValue2=f}function cc(u,f,O){for(;u!==null;){var N=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,N!==null&&(N.childLanes|=f)):N!==null&&(N.childLanes&f)!==f&&(N.childLanes|=f),u===O)break;u=u.return}}function Is(u,f){Xd=u,Fh=As=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&f)!==0&&(eo=!0),u.firstContext=null)}function Co(u){var f=Se?u._currentValue:u._currentValue2;if(Fh!==u)if(u={context:u,memoizedValue:f,next:null},As===null){if(Xd===null)throw Error(a(308));As=u,Xd.dependencies={lanes:0,firstContext:u}}else As=As.next=u;return f}var Bi=null;function dc(u){Bi===null?Bi=[u]:Bi.push(u)}function zh(u,f,O,N){var L=f.interleaved;return L===null?(O.next=O,dc(f)):(O.next=L.next,L.next=O),f.interleaved=O,Ui(u,N)}function Ui(u,f){u.lanes|=f;var O=u.alternate;for(O!==null&&(O.lanes|=f),O=u,u=u.return;u!==null;)u.childLanes|=f,O=u.alternate,O!==null&&(O.childLanes|=f),O=u,u=u.return;return O.tag===3?O.stateNode:null}var Qa=!1;function Vh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Sm(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ci(u,f){return{eventTime:u,lane:f,tag:0,payload:null,callback:null,next:null}}function Za(u,f,O){var N=u.updateQueue;if(N===null)return null;if(N=N.shared,(Ct&2)!==0){var L=N.pending;return L===null?f.next=f:(f.next=L.next,L.next=f),N.pending=f,Ui(u,O)}return L=N.interleaved,L===null?(f.next=f,dc(N)):(f.next=L.next,L.next=f),N.interleaved=f,Ui(u,O)}function Zd(u,f,O){if(f=f.updateQueue,f!==null&&(f=f.shared,(O&4194240)!==0)){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}function Cm(u,f){var O=u.updateQueue,N=u.alternate;if(N!==null&&(N=N.updateQueue,O===N)){var L=null,j=null;if(O=O.firstBaseUpdate,O!==null){do{var K={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};j===null?L=j=K:j=j.next=K,O=O.next}while(O!==null);j===null?L=j=f:j=j.next=f}else L=j=f;O={baseState:N.baseState,firstBaseUpdate:L,lastBaseUpdate:j,shared:N.shared,effects:N.effects},u.updateQueue=O;return}u=O.lastBaseUpdate,u===null?O.firstBaseUpdate=f:u.next=f,O.lastBaseUpdate=f}function Jd(u,f,O,N){var L=u.updateQueue;Qa=!1;var j=L.firstBaseUpdate,K=L.lastBaseUpdate,le=L.shared.pending;if(le!==null){L.shared.pending=null;var me=le,Te=me.next;me.next=null,K===null?j=Te:K.next=Te,K=me;var Ee=u.alternate;Ee!==null&&(Ee=Ee.updateQueue,le=Ee.lastBaseUpdate,le!==K&&(le===null?Ee.firstBaseUpdate=Te:le.next=Te,Ee.lastBaseUpdate=me))}if(j!==null){var Ve=L.baseState;K=0,Ee=Te=me=null,le=j;do{var Ae=le.lane,Rt=le.eventTime;if((N&Ae)===Ae){Ee!==null&&(Ee=Ee.next={eventTime:Rt,lane:0,tag:le.tag,payload:le.payload,callback:le.callback,next:null});e:{var wt=u,er=le;switch(Ae=f,Rt=O,er.tag){case 1:if(wt=er.payload,typeof wt=="function"){Ve=wt.call(Rt,Ve,Ae);break e}Ve=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=er.payload,Ae=typeof wt=="function"?wt.call(Rt,Ve,Ae):wt,Ae==null)break e;Ve=i({},Ve,Ae);break e;case 2:Qa=!0}}le.callback!==null&&le.lane!==0&&(u.flags|=64,Ae=L.effects,Ae===null?L.effects=[le]:Ae.push(le))}else Rt={eventTime:Rt,lane:Ae,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Ee===null?(Te=Ee=Rt,me=Ve):Ee=Ee.next=Rt,K|=Ae;if(le=le.next,le===null){if(le=L.shared.pending,le===null)break;Ae=le,le=Ae.next,Ae.next=null,L.lastBaseUpdate=Ae,L.shared.pending=null}}while(!0);if(Ee===null&&(me=Ve),L.baseState=me,L.firstBaseUpdate=Te,L.lastBaseUpdate=Ee,f=L.shared.interleaved,f!==null){L=f;do K|=L.lane,L=L.next;while(L!==f)}else j===null&&(L.shared.lanes=0);jl|=K,u.lanes=K,u.memoizedState=Ve}}function Pm(u,f,O){if(u=f.effects,f.effects=null,u!==null)for(f=0;fO?O:4,u(!0);var N=of.transition;of.transition={};try{u(!1),f()}finally{Vt=O,of.transition=N}}function mc(){return To().memoizedState}function J5(u,f,O){var N=nl(u);if(O={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null},Am(u))Yh(f,O);else if(O=zh(u,f,O,N),O!==null){var L=pn();Uo(O,u,N,L),yc(O,f,N)}}function e_(u,f,O){var N=nl(u),L={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null};if(Am(u))Yh(f,L);else{var j=u.alternate;if(u.lanes===0&&(j===null||j.lanes===0)&&(j=f.lastRenderedReducer,j!==null))try{var K=f.lastRenderedState,le=j(K,O);if(L.hasEagerState=!0,L.eagerState=le,jo(le,K)){var me=f.interleaved;me===null?(L.next=L,dc(f)):(L.next=me.next,me.next=L),f.interleaved=L;return}}catch{}finally{}O=zh(u,f,L,N),O!==null&&(L=pn(),Uo(O,u,N,L),yc(O,f,N))}}function Am(u){var f=u.alternate;return u===lr||f!==null&&f===lr}function Yh(u,f){pc=fc=!0;var O=u.pending;O===null?f.next=f:(f.next=O.next,O.next=f),u.pending=f}function yc(u,f,O){if((O&4194240)!==0){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}var sf={readContext:Co,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},t_={readContext:Co,useCallback:function(u,f){return fi().memoizedState=[u,f===void 0?null:f],u},useContext:Co,useEffect:$h,useImperativeHandle:function(u,f,O){return O=O!=null?O.concat([u]):null,vc(4194308,4,Em.bind(null,f,u),O)},useLayoutEffect:function(u,f){return vc(4194308,4,u,f)},useInsertionEffect:function(u,f){return vc(4,2,u,f)},useMemo:function(u,f){var O=fi();return f=f===void 0?null:f,u=u(),O.memoizedState=[u,f],u},useReducer:function(u,f,O){var N=fi();return f=O!==void 0?O(f):f,N.memoizedState=N.baseState=f,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:f},N.queue=u,u=u.dispatch=J5.bind(null,lr,u),[N.memoizedState,u]},useRef:function(u){var f=fi();return u={current:u},f.memoizedState=u},useState:ma,useDebugValue:tl,useDeferredValue:function(u){return fi().memoizedState=u},useTransition:function(){var u=ma(!1),f=u[0];return u=Z5.bind(null,u[1]),fi().memoizedState=u,[f,u]},useMutableSource:function(){},useSyncExternalStore:function(u,f,O){var N=lr,L=fi();if(ar){if(O===void 0)throw Error(a(407));O=O()}else{if(O=f(),Kr===null)throw Error(a(349));(Al&30)!==0||Hh(N,f,O)}L.memoizedState=O;var j={value:O,getSnapshot:f};return L.queue=j,$h(km.bind(null,N,j,u),[u]),N.flags|=2048,Fs(9,Om.bind(null,N,j,O,f),void 0,null),O},useId:function(){var u=fi(),f=Kr.identifierPrefix;if(ar){var O=va,N=Vi;O=(N&~(1<<32-oi(N)-1)).toString(32)+O,f=":"+f+"R"+O,O=Ls++,0y0&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304)}else{if(!N)if(u=Po(j),u!==null){if(f.flags|=128,N=!0,u=u.updateQueue,u!==null&&(f.updateQueue=u,f.flags|=4),Vs(L,!0),L.tail===null&&L.tailMode==="hidden"&&!j.alternate&&!ar)return Tn(f),null}else 2*Jr()-L.renderingStartTime>y0&&O!==1073741824&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304);L.isBackwards?(j.sibling=f.child,f.child=j):(u=L.last,u!==null?u.sibling=j:f.child=j,L.last=j)}return L.tail!==null?(f=L.tail,L.rendering=f,L.tail=f.sibling,L.renderingStartTime=Jr(),f.sibling=null,u=fr.current,He(fr,N?u&1|2:u&1),f):(Tn(f),null);case 22:case 23:return x0(),O=f.memoizedState!==null,u!==null&&u.memoizedState!==null!==O&&(f.flags|=8192),O&&(f.mode&1)!==0?(to&1073741824)!==0&&(Tn(f),Ce&&f.subtreeFlags&6&&(f.flags|=8192)):Tn(f),null;case 24:return null;case 25:return null}throw Error(a(156,f.tag))}function o_(u,f){switch(nc(f),f.tag){case 1:return wr(f.type)&&wo(),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return Ja(),At(rt),At(at),nf(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 5:return tf(f),null;case 13:if(At(fr),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(a(340));Rs()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return At(fr),null;case 4:return Ja(),null;case 10:return jh(f.type._context),null;case 22:case 23:return x0(),null;case 24:return null;default:return null}}var yf=!1,dn=!1,qm=typeof WeakSet=="function"?WeakSet:Set,We=null;function Dl(u,f){var O=u.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(N){sr(u,f,N)}else O.current=null}function l0(u,f,O){try{O()}catch(N){sr(u,f,N)}}var Ym=!1;function Xm(u,f){for(W(u.containerInfo),We=f;We!==null;)if(u=We,f=u.child,(u.subtreeFlags&1028)!==0&&f!==null)f.return=u,We=f;else for(;We!==null;){u=We;try{var O=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var N=O.memoizedProps,L=O.memoizedState,j=u.stateNode,K=j.getSnapshotBeforeUpdate(u.elementType===u.type?N:hi(u.type,N),L);j.__reactInternalSnapshotBeforeUpdate=K}break;case 3:Ce&&Li(u.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(le){sr(u,u.return,le)}if(f=u.sibling,f!==null){f.return=u.return,We=f;break}We=u.return}return O=Ym,Ym=!1,O}function Tc(u,f,O){var N=f.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var L=N=N.next;do{if((L.tag&u)===u){var j=L.destroy;L.destroy=void 0,j!==void 0&&l0(f,O,j)}L=L.next}while(L!==N)}}function Oc(u,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var O=f=f.next;do{if((O.tag&u)===u){var N=O.create;O.destroy=N()}O=O.next}while(O!==f)}}function bf(u){var f=u.ref;if(f!==null){var O=u.stateNode;switch(u.tag){case 5:u=q(O);break;default:u=O}typeof f=="function"?f(u):f.current=u}}function s0(u){var f=u.alternate;f!==null&&(u.alternate=null,s0(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&ze(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function Qm(u){return u.tag===5||u.tag===3||u.tag===4}function Zm(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Qm(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function u0(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?yo(O,u,f):Qn(O,u);else if(N!==4&&(u=u.child,u!==null))for(u0(u,f,O),u=u.sibling;u!==null;)u0(u,f,O),u=u.sibling}function wf(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?Yt(O,u,f):ln(O,u);else if(N!==4&&(u=u.child,u!==null))for(wf(u,f,O),u=u.sibling;u!==null;)wf(u,f,O),u=u.sibling}var fn=null,gi=!1;function $i(u,f,O){for(O=O.child;O!==null;)c0(u,f,O),O=O.sibling}function c0(u,f,O){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(ii,O)}catch{}switch(O.tag){case 5:dn||Dl(O,f);case 6:if(Ce){var N=fn,L=gi;fn=null,$i(u,f,O),fn=N,gi=L,fn!==null&&(gi?Cl(fn,O.stateNode):Qr(fn,O.stateNode))}else $i(u,f,O);break;case 18:Ce&&fn!==null&&(gi?Ut(fn,O.stateNode):Nt(fn,O.stateNode));break;case 4:Ce?(N=fn,L=gi,fn=O.stateNode.containerInfo,gi=!0,$i(u,f,O),fn=N,gi=L):(Me&&(N=O.stateNode.containerInfo,L=$r(N),pa(N,L)),$i(u,f,O));break;case 0:case 11:case 14:case 15:if(!dn&&(N=O.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){L=N=N.next;do{var j=L,K=j.destroy;j=j.tag,K!==void 0&&((j&2)!==0||(j&4)!==0)&&l0(O,f,K),L=L.next}while(L!==N)}$i(u,f,O);break;case 1:if(!dn&&(Dl(O,f),N=O.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=O.memoizedProps,N.state=O.memoizedState,N.componentWillUnmount()}catch(le){sr(O,f,le)}$i(u,f,O);break;case 21:$i(u,f,O);break;case 22:O.mode&1?(dn=(N=dn)||O.memoizedState!==null,$i(u,f,O),dn=N):$i(u,f,O);break;default:$i(u,f,O)}}function Jm(u){var f=u.updateQueue;if(f!==null){u.updateQueue=null;var O=u.stateNode;O===null&&(O=u.stateNode=new qm),f.forEach(function(N){var L=d_.bind(null,u,N);O.has(N)||(O.add(N),N.then(L,L))})}}function vi(u,f){var O=f.deletions;if(O!==null)for(var N=0;N";case _f:return":has("+(xf(u)||"")+")";case Gi:return'[role="'+u.value+'"]';case Ec:return'"'+u.value+'"';case Bs:return'[data-testname="'+u.value+'"]';default:throw Error(a(365))}}function Mc(u,f){var O=[];u=[u,0];for(var N=0;NL&&(L=K),N&=~j}if(N=L,N=Jr()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*a_(N/1960))-N,10u?16:u,_a===null)var N=!1;else{if(u=_a,_a=null,Tf=0,(Ct&6)!==0)throw Error(a(331));var L=Ct;for(Ct|=4,We=u.current;We!==null;){var j=We,K=j.child;if((We.flags&16)!==0){var le=j.deletions;if(le!==null){for(var me=0;meJr()-m0?Bl(u,0):v0|=O),ro(u,f)}function sy(u,f){f===0&&((u.mode&1)===0?f=1:(f=Zu,Zu<<=1,(Zu&130023424)===0&&(Zu=4194304)));var O=pn();u=Ui(u,f),u!==null&&(Ya(u,f,O),ro(u,O))}function T0(u){var f=u.memoizedState,O=0;f!==null&&(O=f.retryLane),sy(u,O)}function d_(u,f){var O=0;switch(u.tag){case 13:var N=u.stateNode,L=u.memoizedState;L!==null&&(O=L.retryLane);break;case 19:N=u.stateNode;break;default:throw Error(a(314))}N!==null&&N.delete(f),sy(u,O)}var uy;uy=function(u,f,O){if(u!==null)if(u.memoizedProps!==f.pendingProps||rt.current)eo=!0;else{if((u.lanes&O)===0&&(f.flags&128)===0)return eo=!1,Gm(u,f,O);eo=(u.flags&131072)!==0}else eo=!1,ar&&(f.flags&1048576)!==0&&$d(f,zi,f.index);switch(f.lanes=0,f.tag){case 2:var N=f.type;mf(u,f),u=f.pendingProps;var L=cn(f,at.current);Is(f,O),L=hc(null,f,N,u,L,O);var j=Uh();return f.flags|=1,typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,wr(N)?(j=!0,jd(f)):j=!1,f.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,Vh(f),L.updater=wc,f.stateNode=L,L._reactInternals=f,Xh(f,N,u,O),f=t0(null,f,N,!0,j,O)):(f.tag=0,ar&&j&&rc(f),Pn(null,f,L,O),f=f.child),f;case 16:N=f.elementType;e:{switch(mf(u,f),u=f.pendingProps,L=N._init,N=L(N._payload),f.type=N,L=f.tag=p_(N),u=hi(N,u),L){case 0:f=ff(null,f,N,u,O);break e;case 1:f=Wm(null,f,N,u,O);break e;case 11:f=zm(null,f,N,u,O);break e;case 14:f=Vm(null,f,N,hi(N.type,u),O);break e}throw Error(a(306,N,""))}return f;case 0:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),ff(u,f,N,L,O);case 1:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),Wm(u,f,N,L,O);case 3:e:{if(pf(f),u===null)throw Error(a(387));N=f.pendingProps,j=f.memoizedState,L=j.element,Sm(u,f),Jd(f,N,null,O);var K=f.memoizedState;if(N=K.element,Ie&&j.isDehydrated)if(j={element:N,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},f.updateQueue.baseState=j,f.memoizedState=j,f.flags&256){L=zs(Error(a(423)),f),f=r0(u,f,N,O,L);break e}else if(N!==L){L=zs(Error(a(424)),f),f=r0(u,f,N,O,L);break e}else for(Ie&&(xo=Ue(f.stateNode.containerInfo),_o=f,ar=!0,ui=null,oc=!1),O=Dh(f,null,N,O),f.child=O;O;)O.flags=O.flags&-3|4096,O=O.sibling;else{if(Rs(),N===L){f=Hi(u,f,O);break e}Pn(u,f,N,O)}f=f.child}return f;case 5:return Tm(f),u===null&&Kd(f),N=f.type,L=f.pendingProps,j=u!==null?u.memoizedProps:null,K=L.children,we(N,L)?K=null:j!==null&&we(N,j)&&(f.flags|=32),Hm(u,f),Pn(u,f,K,O),f.child;case 6:return u===null&&Kd(f),null;case 13:return $m(u,f,O);case 4:return ef(f,f.stateNode.containerInfo),N=f.pendingProps,u===null?f.child=Ns(f,null,N,O):Pn(u,f,N,O),f.child;case 11:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),zm(u,f,N,L,O);case 7:return Pn(u,f,f.pendingProps,O),f.child;case 8:return Pn(u,f,f.pendingProps.children,O),f.child;case 12:return Pn(u,f,f.pendingProps.children,O),f.child;case 10:e:{if(N=f.type._context,L=f.pendingProps,j=f.memoizedProps,K=L.value,Qd(f,N,K),j!==null)if(jo(j.value,K)){if(j.children===L.children&&!rt.current){f=Hi(u,f,O);break e}}else for(j=f.child,j!==null&&(j.return=f);j!==null;){var le=j.dependencies;if(le!==null){K=j.child;for(var me=le.firstContext;me!==null;){if(me.context===N){if(j.tag===1){me=ci(-1,O&-O),me.tag=2;var Te=j.updateQueue;if(Te!==null){Te=Te.shared;var Ee=Te.pending;Ee===null?me.next=me:(me.next=Ee.next,Ee.next=me),Te.pending=me}}j.lanes|=O,me=j.alternate,me!==null&&(me.lanes|=O),cc(j.return,O,f),le.lanes|=O;break}me=me.next}}else if(j.tag===10)K=j.type===f.type?null:j.child;else if(j.tag===18){if(K=j.return,K===null)throw Error(a(341));K.lanes|=O,le=K.alternate,le!==null&&(le.lanes|=O),cc(K,O,f),K=j.sibling}else K=j.child;if(K!==null)K.return=j;else for(K=j;K!==null;){if(K===f){K=null;break}if(j=K.sibling,j!==null){j.return=K.return,K=j;break}K=K.return}j=K}Pn(u,f,L.children,O),f=f.child}return f;case 9:return L=f.type,N=f.pendingProps.children,Is(f,O),L=Co(L),N=N(L),f.flags|=1,Pn(u,f,N,O),f.child;case 14:return N=f.type,L=hi(N,f.pendingProps),L=hi(N.type,L),Vm(u,f,N,L,O);case 15:return Bm(u,f,f.type,f.pendingProps,O);case 17:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),mf(u,f),f.tag=1,wr(N)?(u=!0,jd(f)):u=!1,Is(f,O),Dm(f,N,L),Xh(f,N,L,O),t0(null,f,N,!0,u,O);case 19:return i0(u,f,O);case 22:return Um(u,f,O)}throw Error(a(156,f.tag))};function cy(u,f){return ec(u,f)}function f_(u,f,O,N){this.tag=u,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(u,f,O,N){return new f_(u,f,O,N)}function Ef(u){return u=u.prototype,!(!u||!u.isReactComponent)}function p_(u){if(typeof u=="function")return Ef(u)?1:0;if(u!=null){if(u=u.$$typeof,u===y)return 11;if(u===p)return 14}return 2}function x(u,f){var O=u.alternate;return O===null?(O=Oo(u.tag,f,u.key,u.mode),O.elementType=u.elementType,O.type=u.type,O.stateNode=u.stateNode,O.alternate=u,u.alternate=O):(O.pendingProps=f,O.type=u.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=u.flags&14680064,O.childLanes=u.childLanes,O.lanes=u.lanes,O.child=u.child,O.memoizedProps=u.memoizedProps,O.memoizedState=u.memoizedState,O.updateQueue=u.updateQueue,f=u.dependencies,O.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},O.sibling=u.sibling,O.index=u.index,O.ref=u.ref,O}function M(u,f,O,N,L,j){var K=2;if(N=u,typeof u=="function")Ef(u)&&(K=1);else if(typeof u=="string")K=5;else e:switch(u){case v:return I(O.children,L,j,f);case b:K=8,L|=8;break;case S:return u=Oo(12,O,f,L|2),u.elementType=S,u.lanes=j,u;case C:return u=Oo(13,O,f,L),u.elementType=C,u.lanes=j,u;case h:return u=Oo(19,O,f,L),u.elementType=h,u.lanes=j,u;case g:return D(O,L,j,f);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case w:K=10;break e;case P:K=9;break e;case y:K=11;break e;case p:K=14;break e;case c:K=16,N=null;break e}throw Error(a(130,u==null?u:typeof u,""))}return f=Oo(K,O,f,L),f.elementType=u,f.type=N,f.lanes=j,f}function I(u,f,O,N){return u=Oo(7,u,N,f),u.lanes=O,u}function D(u,f,O,N){return u=Oo(22,u,N,f),u.elementType=g,u.lanes=O,u.stateNode={isHidden:!1},u}function z(u,f,O){return u=Oo(6,u,null,f),u.lanes=O,u}function $(u,f,O){return f=Oo(4,u.children!==null?u.children:[],u.key,f),f.lanes=O,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}function G(u,f,O,N,L){this.tag=f,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=N,this.onRecoverableError=L,Ie&&(this.mutableSourceEagerHydrationData=null)}function H(u,f,O,N,L,j,K,le,me){return u=new G(u,f,O,le,me),f===1?(f=1,j===!0&&(f|=8)):f=0,j=Oo(3,null,null,f),u.current=j,j.stateNode=u,j.memoizedState={element:N,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vh(j),u}function Z(u){if(!u)return It;u=u._reactInternals;e:{if(R(u)!==u||u.tag!==1)throw Error(a(170));var f=u;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(wr(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(a(171))}if(u.tag===1){var O=u.type;if(wr(O))return Qu(u,O,f)}return f}function te(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(a(188)):(u=Object.keys(u).join(","),Error(a(268,u)));return u=F(f),u===null?null:u.stateNode}function ie(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var O=u.retryLane;u.retryLane=O!==0&&O=Te&&j>=Ve&&L<=Ee&&K<=Ae){u.splice(f,1);break}else if(N!==Te||O.width!==me.width||AeK){if(!(j!==Ve||O.height!==me.height||EeL)){Te>N&&(me.width+=Te-N,me.x=N),Eej&&(me.height+=Ve-j,me.y=j),AeO&&(O=K)),K ")+` - -No matching component was found for: - `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return q(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:fe,findFiberByHostInstance:u.findFiberByHostInstance||ge,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)u=!0;else{try{ii=f.inject(u),ai=f}catch{}u=!!f.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,f,O,N){if(!gt)throw Error(a(363));u=Rc(u,f);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,f){var O=f._getVersion;O=O(f._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[f,O]:u.mutableSourceEagerHydrationData.push(f,O)},r.runWithPriority=function(u,f){var O=Vt;try{return Vt=u,f()}finally{Vt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,f,O,N){var L=f.current,j=pn(),K=nl(L);return O=Z(O),f.context===null?f.context=O:f.pendingContext=O,f=ci(j,K),f.payload={element:u},N=N===void 0?null:N,N!==null&&(f.callback=N),u=Za(L,f,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Mz.exports=Dne;var Fne=Mz.exports;const jne=nh(Fne);var Rz={exports:{}},Fd={};/** - * @license React - * react-reconciler-constants.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Rz.exports=Fd;var Nz=Rz.exports;const IE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let LE=!1,DE=!1;const GT=".react-konva-event",zne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. -Position of a node will be changed during drag&drop, so you should update state of the react app as well. -Consider to add onDragMove or onDragEnd events. -For more info see: https://github.com/konvajs/react-konva/issues/256 -`,Vne=`ReactKonva: You are using "zIndex" attribute for a Konva node. -react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. -For more info see: https://github.com/konvajs/react-konva/issues/194 -`,Bne={};function O5(e,t,r=Bne){if(!LE&&"zIndex"in t&&(console.warn(Vne),LE=!0),!DE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(zne),DE=!0)}for(var i in r)if(!IE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,b={},S=!1;const w={};for(var i in t)if(!IE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(w[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,b[i]=t[i])}S&&(e.setAttrs(b),Xu(e));for(var s in w)e.on(s+GT,w[s])}function Xu(e){if(!Tt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Az={},Une={};Rv.Node.prototype._applyProps=O5;function Hne(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function Wne(e,t,r){let n=Rv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Rv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return O5(s,i),s}function $ne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Gne(e,t,r){return!1}function Kne(e){return e}function qne(){return null}function Yne(){return null}function Xne(e,t,r,n){return Une}function Qne(){}function Zne(e){}function Jne(e,t){return!1}function eoe(){return Az}function toe(){return Az}const roe=setTimeout,noe=clearTimeout,ooe=-1;function ioe(e,t){return!1}const aoe=!1,loe=!0,soe=!0;function uoe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function coe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Iz(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function doe(e,t,r){Iz(e,t,r)}function foe(e,t){t.destroy(),t.off(GT),Xu(e)}function poe(e,t){t.destroy(),t.off(GT),Xu(e)}function hoe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function goe(e,t,r){}function voe(e,t,r,n,o){O5(e,o,n)}function moe(e){e.hide(),Xu(e)}function yoe(e){}function boe(e,t){(t.visible==null||t.visible)&&e.show()}function woe(e,t){}function _oe(e){}function xoe(){}const Soe=()=>Nz.DefaultEventPriority,Coe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:uoe,appendChildToContainer:coe,appendInitialChild:Hne,cancelTimeout:noe,clearContainer:_oe,commitMount:goe,commitTextUpdate:hoe,commitUpdate:voe,createInstance:Wne,createTextInstance:$ne,detachDeletedInstance:xoe,finalizeInitialChildren:Gne,getChildHostContext:toe,getCurrentEventPriority:Soe,getPublicInstance:Kne,getRootHostContext:eoe,hideInstance:moe,hideTextInstance:yoe,idlePriority:fp.unstable_IdlePriority,insertBefore:Iz,insertInContainerBefore:doe,isPrimaryRenderer:aoe,noTimeout:ooe,now:fp.unstable_now,prepareForCommit:qne,preparePortalMount:Yne,prepareUpdate:Xne,removeChild:foe,removeChildFromContainer:poe,resetAfterCommit:Qne,resetTextContent:Zne,run:fp.unstable_runWithPriority,scheduleTimeout:roe,shouldDeprioritizeSubtree:Jne,shouldSetTextContent:ioe,supportsMutation:soe,unhideInstance:boe,unhideTextInstance:woe,warnsIfNotActing:loe},Symbol.toStringTag,{value:"Module"}));var Poe=Object.defineProperty,Toe=Object.defineProperties,Ooe=Object.getOwnPropertyDescriptors,FE=Object.getOwnPropertySymbols,koe=Object.prototype.hasOwnProperty,Eoe=Object.prototype.propertyIsEnumerable,jE=(e,t,r)=>t in e?Poe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))koe.call(t,r)&&jE(e,r,t[r]);if(FE)for(var r of FE(t))Eoe.call(t,r)&&jE(e,r,t[r]);return e},Moe=(e,t)=>Toe(e,Ooe(t)),VE,BE;typeof window<"u"&&((VE=window.document)!=null&&VE.createElement||((BE=window.navigator)==null?void 0:BE.product)==="ReactNative")?X.useLayoutEffect:X.useEffect;function Lz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Lz(n,t,r);if(o)return o;n=n.sibling}}function Dz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const UE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=UE;return}return UE.apply(this,arguments)};const KT=Dz(X.createContext(null));class Fz extends X.Component{render(){return X.createElement(KT.Provider,{value:this._reactInternals},this.props.children)}}function Roe(){const e=X.useContext(KT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=X.useId();return X.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Lz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Noe(){const e=Roe(),[t]=X.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==KT&&!t.has(o)&&t.set(o,X.useContext(Dz(o)))}r=r.return}return t}function Aoe(){const e=Noe();return X.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>X.createElement(t,null,X.createElement(r.Provider,Moe(zE({},n),{value:e.get(r)}))),t=>X.createElement(Fz,zE({},t))),[e])}function Ioe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Loe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Ioe(e),i=Aoe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Rv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=fg.createContainer(r.current,Nz.LegacyRoot,!1,null),fg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Rv.isBrowser&&(a(null),fg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),O5(r.current,e,o),fg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},Wx="Layer",HE="Group",Doe="Rect",ab="Circle",Foe="Line",joe="Image",WE="Text",fg=jne(Coe);fg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const zoe=Or.forwardRef((e,t)=>Or.createElement(Fz,{},Or.createElement(Loe,{...e,forwardedRef:t})));function Voe(e){window.open(e,"_blank","noreferrer")}function w4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Boe(e,t){return t.includes(e)}const Fg="https://roguewar.org",Uoe=2.5,Hoe=1,Woe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{const v=e.isCapital?Uoe:Hoe,b=(U,q)=>[...U].sort((J,Q)=>Q.control-J.control).map(J=>{const Q=w4(J.Name,q);return{name:(Q==null?void 0:Q.prettyName)||J.Name,control:J.control,players:J.ActivePlayers}}),S=U=>`${U.name} ${U.control}% · P${U.players}`,w=e.factions.some(U=>U.ActivePlayers>0),P=n.flashActivePlayes&&w,y=P?1.25:1,C=(s?v*3:v)*y/t,h=Number(e.posX),p=-Number(e.posY),c=P?Math.min(1,d+.25):d,g=C*2.5,m=Math.min(.34,c*.4),_=Math.min(.4,c*.4),T=C*.45,k=Math.min(.42,c*.45),R=C*.35,E=`rgba(255,255,255,${k})`,A="rgba(255,255,255,0)",F=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",V=U=>{if(!U)return"None";const J=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([Q])=>U[Q]).map(([,Q])=>Q);return J.length?J.join(", "):"None"},B=(U=!1)=>{var ne;const q=((ne=w4(e.owner,r))==null?void 0:ne.prettyName)||"Unknown",J=b(e.factions,r),Q=J.slice(0,3),W=Math.max(0,J.length-Q.length),Y=V(e.state),re=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${q}`,"Control:",...Q.map(S),...W>0?[`+${W} more`]:[],`Damage: ${F}`];return Y!=="None"&&re.push(`State: ${Y}`),U&&re.push("[Tap to open]"),{text:re.join(` -`),controlItems:J}};return Le.jsxs(Le.Fragment,{children:[P&&Le.jsx(ab,{x:h,y:p,fill:e.factionColour,radius:g,opacity:m,listening:!1}),P&&Le.jsx(ab,{x:h,y:p,radius:C,stroke:"#ffffff",strokeWidth:Math.max(.2,C*.14),opacity:_,listening:!1}),Le.jsx(ab,{x:h,y:p,fill:e.factionColour,radius:C,hitStrokeWidth:3,opacity:c,onClick:U=>{U.cancelBubble=!0,e.sysUrl&&Voe(`${Fg}${e.sysUrl}`)},onMouseEnter:U=>{const q=U.target.getStage();if(!q)return;const J=q.getPointerPosition();if(!J)return;const Q=B();o(Q.text,J.x,J.y,q.x(),q.y(),void 0,Q.controlItems)},onMouseLeave:i,onTouchStart:U=>{if(U.evt.touches.length===1){U.evt.preventDefault();const q=U.target.getStage();if(!q)return;const J=q.getRelativePointerPosition();if(!J)return;if(a.current&&l.current===e.name){window.location.href=`${Fg}${e.sysUrl}`;return}const Q=B(!0);o(Q.text,J.x,J.y,void 0,void 0,()=>{window.location.href=`${Fg}${e.sysUrl}`},Q.controlItems),l.current=e.name}}}),P&&Le.jsx(ab,{x:h-R,y:p-R,radius:T,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:T,fillRadialGradientColorStops:[0,E,1,A],listening:!1})]})},$oe=X.memo(Woe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Goe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jz(e){var t=Goe(e,"string");return vd(t)=="symbol"?t:t+""}function pg(e,t,r){return(t=jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(kh,--ri):0,rh--,nn===10&&(rh=1,E5--),nn}function Ti(){return nn=ri2||Av(nn)>3?"":" "}function _ie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return hm(e,Zb()+(t<6&&bl()==32&&Ti()==32))}function C4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&C4(nn);break;case 40:e===41&&C4(e);break;case 92:Ti();break}return ri}function xie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+hm(t,ri-1)+"*"+k5(e===47?e:Ti())}function Sie(e){for(;!Av(bl());)Ti();return hm(e,ri)}function Cie(e){return Gz(e1("",null,null,null,[""],e=$z(e),0,[0],e))}function e1(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,b=a,S=0,w=0,P=0,y=1,C=1,h=1,p=0,c="",g=o,m=i,_=n,T=c;C;)switch(P=p,p=Ti()){case 40:if(P!=108&&$n(T,b-1)==58){S4(T+=Kt(Jb(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:T+=Jb(p);break;case 9:case 10:case 13:case 32:T+=wie(P);break;case 92:T+=_ie(Zb()-1,7);continue;case 47:switch(bl()){case 42:case 47:lb(Pie(xie(Ti(),Zb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*h;case 125*y:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+v:h==-1&&(T=Kt(T,/\f/g,"")),w>0&&cl(T)-b&&lb(w>32?qE(T+";",n,r,b-1):qE(Kt(T," ","")+";",n,r,b-2),s);break;case 59:T+=";";default:if(lb(_=KE(T,t,r,d,v,o,l,c,g=[],m=[],b),i),p===123)if(v===0)e1(T,t,_,_,g,i,b,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:e1(e,_,_,n&&lb(KE(e,_,_,0,0,o,l,c,o,g=[],b),m),o,m,b,l,n?g:m);break;default:e1(T,_,_,_,[""],m,0,l,m)}}d=v=w=0,y=h=1,c=T="",b=a;break;case 58:b=1+cl(T),w=P;default:if(y<1){if(p==123)--y;else if(p==125&&y++==0&&bie()==125)continue}switch(T+=k5(p),p*y){case 38:h=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*h,h=1;break;case 64:bl()===45&&(T+=Jb(Ti())),S=bl(),v=b=cl(c=T+=Sie(Zb())),p++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function KE(e,t,r,n,o,i,a,l,s,d,v){for(var b=o-1,S=o===0?i:[""],w=QT(S),P=0,y=0,C=0;P0?S[h]+" "+p:Kt(p,/&\f/g,S[h])))&&(s[C++]=c);return M5(e,t,r,o===0?YT:l,s,d,v)}function Pie(e,t,r){return M5(e,t,r,Bz,k5(yie()),Nv(e,2,-2),0)}function qE(e,t,r,n){return M5(e,t,r,XT,Nv(e,0,n),Nv(e,n+1,-1),n)}function Ep(e,t){for(var r="",n=QT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Kt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+Tw+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~S4(e,"stretch")?Kz(Kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~S4(e,"!important")&&10))){case 107:return Kt(e,":",":"+Gt)+e;case 101:return Kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+($n(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+so+e+e}return e}var Lie=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case XT:t.return=Kz(t.value,t.length);break;case Uz:return Ep([J0(t,{value:Kt(t.value,"@","@"+Gt)})],o);case YT:if(t.length)return mie(t.props,function(i){switch(vie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ep([J0(t,{props:[Kt(i,/:(read-\w+)/,":"+Tw+"$1")]})],o);case"::placeholder":return Ep([J0(t,{props:[Kt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),J0(t,{props:[Kt(i,/:(plac\w+)/,":"+Tw+"$1")]}),J0(t,{props:[Kt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Die=[Lie],Fie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Die,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),h=1;h=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Xie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qie=/[A-Z]|^ms/g,Zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jz=function(t){return t.charCodeAt(1)===45},XE=function(t){return t!=null&&typeof t!="boolean"},$x=Eie(function(e){return Jz(e)?e:e.replace(Qie,"-$&").toLowerCase()}),QE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Xie[t]!==1&&!Jz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Iv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return Jie(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Iv(e,t,d)}break}}var v=r;return v}function Jie(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function pae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function B5(){return typeof window<"u"}function rV(e){return oV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nV(e){var t;return(t=(oV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oV(e){return B5()?e instanceof Node||e instanceof ms(e).Node:!1}function hae(e){return B5()?e instanceof Element||e instanceof ms(e).Element:!1}function nO(e){return B5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function JE(e){return!B5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const gae=new Set(["inline","contents"]);function iV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=oO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!gae.has(o)}function vae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mae=new Set(["html","body","#document"]);function yae(e){return mae.has(rV(e))}function oO(e){return ms(e).getComputedStyle(e)}function bae(e){if(rV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JE(e)&&e.host||nV(e);return JE(t)?t.host:t}function aV(e){const t=bae(e);return yae(t)?e.ownerDocument?e.ownerDocument.body:e.body:nO(t)&&iV(t)?t:aV(t)}function Ew(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=aV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=T4(a);return t.concat(a,a.visualViewport||[],iV(o)?o:[],l&&r?Ew(l):[])}return t.concat(o,Ew(o,[],r))}function T4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wae(e){const t=oO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=nO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=Ow(r)!==i||Ow(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function iO(e){return hae(e)?e:e.contextElement}function e9(e){const t=iO(e);if(!nO(t))return kw(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=wae(t);let a=(i?Ow(r.width):r.width)/n,l=(i?Ow(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _ae=kw(0);function xae(e){const t=ms(e);return!vae()||!t.visualViewport?_ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sae(e,t,r){return!1}function t9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=iO(e);let a=kw(1);t&&(a=e9(e));const l=Sae()?xae(i):kw(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=ms(i),w=n;let P=S,y=T4(P);for(;y&&n&&w!==P;){const C=e9(y),h=y.getBoundingClientRect(),p=oO(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=ms(y),y=T4(P)}}return pae({width:v,height:b,x:s,y:d})}function lV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cae(e,t){let r=null,n;const o=nV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:b,width:S,height:w}=d;if(l||t(),!S||!w)return;const P=sb(b),y=sb(o.clientWidth-(v+S)),C=sb(o.clientHeight-(b+w)),h=sb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-h+"px",threshold:fae(0,dae(1,s))||1};let g=!0;function m(_){const T=_[0].intersectionRatio;if(T!==s){if(!g)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!lV(d,e.getBoundingClientRect())&&a(),g=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Pae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=iO(e),v=o||i?[...d?Ew(d):[],...Ew(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?Cae(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?t9(e):null;s&&C();function C(){const h=t9(e);y&&!lV(y,h)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}var O4=X.useLayoutEffect,Tae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mw=function(){};function Oae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function kae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Eae(e){return U5(e)?window.innerHeight:e.clientHeight}function uV(e){return U5(e)?window.pageYOffset:e.scrollTop}function Rw(e,t){if(U5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Mae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Rae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function ub(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Mw,o=uV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Rae(l,o,i,r);Rw(e,d),lr.bottom?Rw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&ub(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&ub(s,E,F);var V=a?T-g:R-g;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,U=a?_:k;return U>=n&&(B=Math.min(U-g-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Rw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&ub(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&_>=n){var q=t;return(!a&&k>=n||a&&_>=n)&&(q=a?_-m:k-m),i&&ub(s,A,F),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Uae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dV=function(t){return t==="auto"?"bottom":t},Hae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},pg(n,Uae(o),"100%"),pg(n,"position","absolute"),pg(n,"width","100%"),pg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},fV=X.createContext(null),Wae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=X.useContext(fV)||{},v=d.setPortalPlacement,b=X.useRef(null),S=X.useState(o),w=as(S,2),P=w[0],y=w[1],C=X.useState(null),h=as(C,2),p=h[0],c=h[1],g=s.spacing.controlHeight;return O4(function(){var m=b.current;if(m){var _=a==="fixed",T=l&&!_,k=Bae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:_,controlHeight:g});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,g]),r({ref:b,placerProps:st(st({},t),{},{placement:p||dV(i),maxHeight:P})})},$ae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return it("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Gae=$ae,Kae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},qae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return it("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},pV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Yae=pV,Xae=pV,Qae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,zae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Zae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Vae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},Jae=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},ele=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=X.useRef(null),d=X.useRef(null),v=X.useState(dV(a)),b=as(v,2),S=b[0],w=b[1],P=X.useMemo(function(){return{setPortalPlacement:w}},[]),y=X.useState(null),C=as(y,2),h=C[0],p=C[1],c=X.useCallback(function(){if(o){var T=Nae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(h==null?void 0:h.offset)||T.left!==(h==null?void 0:h.rect.left)||T.width!==(h==null?void 0:h.rect.width))&&p({offset:R,rect:T})}},[o,l,S,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);O4(function(){c()},[c]);var g=X.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Pae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);O4(function(){g()},[g]);var m=X.useCallback(function(T){s.current=T,g()},[g]);if(!r&&l!=="fixed"||!h)return null;var _=it("div",dt({ref:m},Hr(st(st({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(fV.Provider,{value:P},r?Yw.createPortal(_,r):_)},tle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},rle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return it("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},nle=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ole=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return it("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ile=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ale=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},i9,lle=["size"],sle=["innerProps","isRtl","size"],ule={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hV=function(t){var r=t.size,n=Ps(t,lle);return it("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ule},n))},aO=function(t){return it(hV,dt({size:20},t),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gV=function(t){return it(hV,dt({size:20},t),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},cle=vV,dle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||it(gV,null))},fle=vV,ple=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||it(aO,null))},hle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},gle=function(t){var r=t.innerProps;return it("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},vle=uae(i9||(i9=cae([` - 0%, 80%, 100% { opacity: 0; } - 40% { opacity: 1; } -`]))),mle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},Gx=function(t){var r=t.delay,n=t.offset;return it("span",{css:rO({animation:"".concat(vle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yle=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,sle);return it("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),it(Gx,{delay:0,offset:n}),it(Gx,{delay:160,offset:!0}),it(Gx,{delay:320,offset:!n}))},ble=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return it("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},_le=wle,xle=["data"],Sle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Cle=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,b=t.selectProps;return it("div",dt({},Hr(t,"group",{group:!0}),s),it(a,dt({},l,{selectProps:b,theme:v,getStyles:o,getClassNames:i,cx:n}),d),it("div",null,r))},Ple=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Tle=function(t){var r=sV(t);r.data;var n=Ps(r,xle);return it("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},Ole=Cle,kle=["innerRef","isDisabled","isHidden","inputClassName"],Ele=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Mle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},mV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mV)},Rle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},mV)},Nle=function(t){var r=t.cx,n=t.value,o=sV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,kle);return it("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),it("input",dt({className:r({input:!0},s),ref:i,style:Rle(l),disabled:a},d)))},Ale=Nle,Ile=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Lle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Dle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},yV=function(t){var r=t.children,n=t.innerProps;return it("div",n,r)},Fle=yV,jle=yV;function zle(e){var t=e.children,r=e.innerProps;return it("div",dt({role:"button"},r),t||it(aO,{size:14}))}var Vle=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,b=n.Remove;return it(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},it(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),it(b,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ble=Vle,Ule=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Hle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return it("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},Wle=Hle,$le=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Gle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},Kle=Gle,qle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Yle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return it("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Xle=Yle,Qle={ClearIndicator:ple,Control:_le,DropdownIndicator:dle,DownChevron:gV,CrossIcon:aO,Group:Ole,GroupHeading:Tle,IndicatorsContainer:ale,IndicatorSeparator:gle,Input:Ale,LoadingIndicator:yle,Menu:Gae,MenuList:qae,MenuPortal:ele,LoadingMessage:Zae,NoOptionsMessage:Qae,MultiValue:Ble,MultiValueContainer:Fle,MultiValueLabel:jle,MultiValueRemove:zle,Option:Wle,Placeholder:Kle,SelectContainer:rle,SingleValue:Xle,ValueContainer:ole},Zle=function(t){return st(st({},Qle),t.components)},a9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Jle(e,t){return!!(e===t||a9(e)&&a9(t))}function ese(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,b=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(b(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",w="".concat(d?" selected":"").concat(S);return"".concat(a).concat(w,", ").concat(b(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ise=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,b=s.ariaLiveMessages,S=s.getOptionLabel,w=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,h=s.menuIsOpen,p=s.options,c=s.screenReaderStatus,g=s.tabSelectsValue,m=s.isLoading,_=s["aria-label"],T=s["aria-live"],k=X.useMemo(function(){return st(st({},ose),b||{})},[b]),R=X.useMemo(function(){var U="";if(r&&k.onChange){var q=r.option,J=r.options,Q=r.removedValue,W=r.removedValues,Y=r.value,re=function(oe){return Array.isArray(oe)?null:oe},ne=Q||q||re(Y),se=ne?S(ne):"",ve=J||W||void 0,we=ve?ve.map(S):[],ce=st({isDisabled:ne&&y(ne,l),label:se,labels:we},r);U=k.onChange(ce)}return U},[r,k,y,l,S]),E=X.useMemo(function(){var U="",q=n||o,J=!!(n&&l&&l.includes(n));if(q&&k.onFocus){var Q={focused:q,label:S(q),isDisabled:y(q,l),isSelected:J,options:i,context:q===n?"menu":"value",selectValue:l,isAppleDevice:v};U=k.onFocus(Q)}return U},[n,o,S,y,k,i,l,v]),A=X.useMemo(function(){var U="";if(h&&p.length&&!m&&k.onFilter){var q=c({count:i.length});U=k.onFilter({inputValue:w,resultsMessage:q})}return U},[i,w,h,k,p,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=X.useMemo(function(){var U="";if(k.guidance){var q=o?"value":h?"menu":"input";U=k.guidance({"aria-label":_,context:q,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:g,isInitialFocus:F})}return U},[_,n,o,P,y,C,h,k,l,g,F]),B=it(X.Fragment,null,it("span",{id:"aria-selection"},R),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},A),it("span",{id:"aria-guidance"},V));return it(X.Fragment,null,it(l9,{id:d},F&&B),it(l9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},ase=ise,k4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],lse=new RegExp("["+k4.map(function(e){return e.letters}).join("")+"]","g"),bV={};for(var Kx=0;Kx-1}},dse=["innerRef"];function fse(e){var t=e.innerRef,r=Ps(e,dse),n=jae(r,"onExited","in","enter","exit","appear");return it("input",dt({ref:t},n,{css:rO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var pse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function hse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=X.useRef(!1),l=X.useRef(!1),s=X.useRef(0),d=X.useRef(null),v=X.useCallback(function(C,h){if(d.current!==null){var p=d.current,c=p.scrollTop,g=p.scrollHeight,m=p.clientHeight,_=d.current,T=h>0,k=g-m-c,R=!1;k>h&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&h>k?(r&&!a.current&&r(C),_.scrollTop=g,R=!0,a.current=!0):!T&&-h>c&&(o&&!l.current&&o(C),_.scrollTop=0,R=!0,l.current=!0),R&&pse(C)}},[r,n,o,i]),b=X.useCallback(function(C){v(C,C.deltaY)},[v]),S=X.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),w=X.useCallback(function(C){var h=s.current-C.changedTouches[0].clientY;v(C,h)},[v]),P=X.useCallback(function(C){if(C){var h=Lae?{passive:!1}:!1;C.addEventListener("wheel",b,h),C.addEventListener("touchstart",S,h),C.addEventListener("touchmove",w,h)}},[w,S,b]),y=X.useCallback(function(C){C&&(C.removeEventListener("wheel",b,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",w,!1))},[w,S,b]);return X.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var u9=["boxSizing","height","overflow","paddingRight","position"],c9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function d9(e){e.cancelable&&e.preventDefault()}function f9(e){e.stopPropagation()}function p9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function h9(){return"ontouchstart"in window||navigator.maxTouchPoints}var g9=!!(typeof window<"u"&&window.document&&window.document.createElement),eg=0,Ff={capture:!1,passive:!1};function gse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=X.useRef({}),i=X.useRef(null),a=X.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;if(n&&u9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&eg<1){var b=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,w=window.innerWidth-S+b||0;Object.keys(c9).forEach(function(P){var y=c9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(w,"px"))}d&&h9()&&(d.addEventListener("touchmove",d9,Ff),s&&(s.addEventListener("touchstart",p9,Ff),s.addEventListener("touchmove",f9,Ff))),eg+=1}},[n]),l=X.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;eg=Math.max(eg-1,0),n&&eg<1&&u9.forEach(function(b){var S=o.current[b];v&&(v[b]=S)}),d&&h9()&&(d.removeEventListener("touchmove",d9,Ff),s&&(s.removeEventListener("touchstart",p9,Ff),s.removeEventListener("touchmove",f9,Ff)))}},[n]);return X.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var vse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},mse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=hse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=gse({isEnabled:r}),b=function(w){d(w),v(w)};return it(X.Fragment,null,r&&it("div",{onClick:vse,css:mse}),t(b))}var bse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},wse=function(t){var r=t.name,n=t.onFocus;return it("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:bse,value:"",onChange:function(){}})},_se=wse;function lO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xse(){return lO(/^iPhone/i)}function _V(){return lO(/^Mac/i)}function Sse(){return lO(/^iPad/i)||_V()&&navigator.maxTouchPoints>1}function Cse(){return xse()||Sse()}function Pse(){return _V()||Cse()}var Tse=function(t){return t.label},Ose=function(t){return t.label},kse=function(t){return t.value},Ese=function(t){return!!t.isDisabled},Mse={clearIndicator:fle,container:tle,control:ble,dropdownIndicator:cle,group:Sle,groupHeading:Ple,indicatorsContainer:ile,indicatorSeparator:hle,input:Ele,loadingIndicator:mle,loadingMessage:Xae,menu:Hae,menuList:Kae,menuPortal:Jae,multiValue:Ile,multiValueLabel:Lle,multiValueRemove:Dle,noOptionsMessage:Yae,option:Ule,placeholder:$le,singleValue:qle,valueContainer:nle},Rse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Nse=4,xV=4,Ase=38,Ise=xV*2,Lse={baseUnit:xV,controlHeight:Ase,menuGutter:Ise},Xx={borderRadius:Nse,colors:Rse,spacing:Lse},Dse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:o9(),captureMenuScroll:!o9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cse(),formatGroupLabel:Tse,getOptionLabel:Ose,getOptionValue:kse,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ese,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Aae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function v9(e,t,r,n){var o=PV(e,t,r),i=TV(e,t,r),a=CV(e,t),l=Nw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function t1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return v9(e,a,t,l)}).filter(function(a){return y9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=v9(e,r,t,n);return y9(e,i)?i:void 0}).filter(Dae)}function SV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,qT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function m9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,qT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function Fse(e,t){return SV(t1(e,t))}function y9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!kV(e)||!i)&&OV(e,{label:a,value:l,data:o},n)}function jse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Qx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},CV=function(t,r){return t.getOptionLabel(r)},Nw=function(t,r){return t.getOptionValue(r)};function PV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function TV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Nw(e,t);return r.some(function(o){return Nw(e,o)===n})}function OV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var kV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Vse=1,EV=(function(e){tie(r,e);var t=oie(r);function r(n){var o;if(Joe(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,b=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),b(s,d)},o.setValue=function(s,d,v){var b=o.props,S=b.closeMenuOnSelect,w=b.isMulti,P=b.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!w}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,b=d.isMulti,S=d.name,w=o.state.selectValue,P=b&&o.isOptionSelected(s,w),y=o.isOptionDisabled(s,w);if(P){var C=o.getOptionValue(s);o.setValue(w.filter(function(h){return o.getOptionValue(h)!==C}),"deselect-option",s)}else if(!y)b?o.setValue([].concat(qT(w),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,b=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==b}),w=db(d,S,S[0]||null);o.onChange(w,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(db(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],b=d.slice(0,d.length-1),S=db(s,b,b[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Qx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return m9(t1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;vw||S>w}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return kV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,b=d.backspaceRemovesValue,S=d.escapeClearsValue,w=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,h=d.onKeyDown,p=d.tabSelectsValue,c=d.openMenuOnFocus,g=o.state,m=g.focusedOption,_=g.focusedValue,T=g.selectValue;if(!y&&!(typeof h=="function"&&(h(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||w)return;o.focusValue("previous");break;case"ArrowRight":if(!v||w)return;o.focusValue("next");break;case"Delete":case"Backspace":if(w)return;if(_)o.removeValue(_);else{if(!b)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!p||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:w}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(w)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Vse),o.state.selectValue=r9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Qx(i,a[l])}return o}return eie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&n9(this.menuListRef,this.focusedOptionRef),Pse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(n9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var b=d.indexOf(l[0]);b>-1&&(v=b)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Xx):st(st({},Xx),this.props.theme):Xx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,b=this.props,S=b.isMulti,w=b.isRtl,P=b.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:w,options:P,selectOption:d,selectProps:b,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return PV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return TV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return OV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,b=o.menuIsOpen,S=o.required,w=this.getComponents(),P=w.Input,y=this.state,C=y.inputIsHidden,h=y.ariaSelection,p=this.commonProps,c=l||this.getElementId("input"),g=st(st(st({"aria-autocomplete":"list","aria-expanded":b,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},b&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?X.createElement(P,dt({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},g)):X.createElement(fse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mw,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},g))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,b=i.Placeholder,S=this.commonProps,w=this.props,P=w.controlShouldRenderValue,y=w.isDisabled,C=w.isMulti,h=w.inputValue,p=w.placeholder,c=this.state,g=c.selectValue,m=c.focusedValue,_=c.isFocused;if(!this.hasValue()||!P)return h?null:X.createElement(b,dt({},S,{key:"placeholder",isDisabled:y,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),p);if(C)return g.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return X.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(h)return null;var T=g[0];return X.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var b={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:b,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var b={"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:b,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return X.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return X.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,b=i.LoadingMessage,S=i.NoOptionsMessage,w=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,h=C.captureMenuScroll,p=C.inputValue,c=C.isLoading,g=C.loadingMessage,m=C.minMenuHeight,_=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,U=C.onMenuScrollToBottom;if(!T)return null;var q=function(se,ve){var we=se.type,ce=se.data,ee=se.isDisabled,oe=se.isSelected,ue=se.label,Se=se.value,Ce=y===ce,Me=ee?void 0:function(){return o.onOptionHover(ce)},Ie=ee?void 0:function(){return o.selectOption(ce)},Re="".concat(o.getElementId("option"),"-").concat(ve),ye={id:Re,onClick:Ie,onMouseMove:Me,onMouseOver:Me,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:oe};return X.createElement(w,dt({},P,{innerProps:ye,data:ce,isDisabled:ee,isSelected:oe,key:Re,label:ue,type:we,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(se.data,"menu"))},J;if(this.hasOptions())J=this.getCategorizedOptions().map(function(ne){if(ne.type==="group"){var se=ne.data,ve=ne.options,we=ne.index,ce="".concat(o.getElementId("group"),"-").concat(we),ee="".concat(ce,"-heading");return X.createElement(a,dt({},P,{key:ce,data:se,options:ve,Heading:l,headingProps:{id:ee,data:ne.data},label:o.formatGroupLabel(ne.data)}),ne.options.map(function(oe){return q(oe,"".concat(we,"-").concat(oe.index))}))}else if(ne.type==="option")return q(ne,"".concat(ne.index))});else if(c){var Q=g({inputValue:p});if(Q===null)return null;J=X.createElement(b,P,Q)}else{var W=V({inputValue:p});if(W===null)return null;J=X.createElement(S,P,W)}var Y={minMenuHeight:m,maxMenuHeight:_,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},re=X.createElement(Wae,dt({},P,Y),function(ne){var se=ne.ref,ve=ne.placerProps,we=ve.placement,ce=ve.maxHeight;return X.createElement(s,dt({},P,Y,{innerRef:se,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:we}),X.createElement(yse,{captureEnabled:h,onTopArrive:B,onBottomArrive:U,lockEnabled:A},function(ee){return X.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),ee(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),J)}))});return E||R==="fixed"?X.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),re):re}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,b=this.state.selectValue;if(v&&!this.hasValue()&&!l)return X.createElement(_se,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=b.map(function(y){return o.getOptionValue(y)}).join(a);return X.createElement("input",{name:d,type:"hidden",value:S})}else{var w=b.length>0?b.map(function(y,C){return X.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):X.createElement("input",{name:d,type:"hidden",value:""});return X.createElement("div",null,w)}else{var P=b[0]?this.getOptionValue(b[0]):"";return X.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,b=this.getFocusableOptions();return X.createElement(ase,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:b,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,b=d.id,S=d.isDisabled,w=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return X.createElement(l,dt({},y,{className:v,innerProps:{id:b,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),X.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:w}),X.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),X.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,b=i.prevWasFocused,S=i.instancePrefix,w=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,h=o.isMulti,p=r9(P),c={};if(a&&(P!==a.value||w!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var g=y?Fse(o,p):[],m=y?m9(t1(o,p),"".concat(S,"-option")):[],_=l?jse(i,p):null,T=zse(i,g),k=Qx(m,T);c={selectValue:p,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:_,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&b;return v&&!A&&(E={value:db(h,p,p[0]||null),options:p,action:"initial-input-focus"},A=!b),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(X.Component);EV.defaultProps=Dse;var Bse=X.forwardRef(function(e,t){var r=Zoe(e);return X.createElement(EV,dt({ref:t},r))}),Use=Bse;/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Hse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wse=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),b9=e=>{const t=Wse(e);return t.charAt(0).toUpperCase()+t.slice(1)},MV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),$se=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var Gse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Kse=X.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>X.createElement("svg",{ref:s,...Gse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:MV("lucide",o),...!i&&!$se(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>X.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const RV=(e,t)=>{const r=X.forwardRef(({className:n,...o},i)=>X.createElement(Kse,{ref:i,iconNode:t,className:MV(`lucide-${Hse(b9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=b9(e),r};/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const qse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Yse=RV("chevrons-down",qse);/** - * @license lucide-react v0.515.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Xse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Qse=RV("chevrons-up",Xse),Zse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=X.useState(!1),[l,s]=X.useState(typeof window<"u"&&window.innerWidth>=768);X.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),b=c=>o(c.map(g=>g.value)),S=c=>o(n.filter(g=>g!==c)),w=X.useRef(null),[P,y]=X.useState("32px"),[C,h]=X.useState(!1);X.useEffect(()=>{const c=w.current;if(!c)return;const g=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${g}px`,requestAnimationFrame(()=>{const _=Math.max(m,125);y(`${i?_:32}px`)})})},[i,n]);const p={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return Le.jsxs("div",{ref:w,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[Le.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?Le.jsx(Yse,{size:24}):Le.jsx(Qse,{size:24})}),i&&Le.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[Le.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:Le.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),Le.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:Le.jsxs("div",{style:{width:l?"50%":"100%"},children:[Le.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Le.jsx("div",{style:{flexGrow:1},children:Le.jsx(Use,{isMulti:!0,options:d,value:v,onChange:b,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,g)=>({...c,color:"black",backgroundColor:g.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),Le.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&h(!0),onMouseLeave:()=>l&&h(!1),onClick:()=>!l&&h(c=>!c),children:["i",C&&Le.jsx("div",{style:p,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&Le.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>Le.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,Le.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},Jse=e=>{const[t,r]=X.useState({visible:!1,text:"",x:0,y:0}),n=X.useCallback((i,a,l,s,d,v,b)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:b})},[e]),o=X.useCallback(()=>{r(i=>({...i,visible:!1}))},[]);return{tooltip:t,showTooltip:n,hideTooltip:o}},eue=()=>{const[e,t]=X.useState([]),[r,n]=X.useState({}),[o,i]=X.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${Fg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${Fg}/api/v1/starmap/warmap`).then(d=>d.json());t(s)}catch(s){console.error("Failed to fetch data:",s)}}}},tue={flashActivePlayes:!0},rue=()=>{const[e,t]=X.useState(tue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},nue=()=>{const[e,t]=X.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=eue(),{settings:l,setFlashActive:s}=rue(),d=X.useCallback(v=>v.map(b=>{const S=w4(b.owner,n),w=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...b,isCapital:Boe(b.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:w}}),[o,n]);return X.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function oue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=X.useRef(null),o=X.useRef(1),i=X.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=X.useState(1),s=X.useRef(!1),d=X.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=X.useRef(0),b=X.useCallback(P=>{const y=performance.now();if(y-v.current0?c/p:c*p;g=Math.max(e,Math.min(t,g));const m={x:(h.x-C.x())/c,y:(h.y-C.y())/c};o.current=g,i.current={x:h.x-m.x*g,y:h.y-m.y*g},C.scale({x:g,y:g}),C.position(i.current),d(C),l(g)},[t,e,d,r]),S=X.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),w=X.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:w,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:b,onDragMove:S}}}function iue(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function aue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=X.useState(!1),v=X.useRef(0),b=X.useRef(null),S=X.useRef(!1),w=X.useRef(null),P=X.useCallback(h=>{if(h.evt.touches.length===1){const p=h.target.className==="Circle",c=h.target.findAncestor("Label",!0);!p&&!c&&(i==null||i())}h.evt.touches.length===2&&(d(!0),v.current=iue(h.evt.touches[0],h.evt.touches[1]))},[i]),y=X.useCallback(h=>{if(h.evt.touches.length!==2||!s)return;h.evt.preventDefault();const[p,c]=h.evt.touches;w.current={touch1:{clientX:p.clientX,clientY:p.clientY},touch2:{clientX:c.clientX,clientY:c.clientY}},!S.current&&(S.current=!0,b.current=requestAnimationFrame(()=>{S.current=!1;const g=w.current;if(!g)return;const m=Math.hypot(g.touch2.clientX-g.touch1.clientX,g.touch2.clientY-g.touch1.clientY);if(!v.current){v.current=m;return}const _=e.current;if(!_)return;let T=m/v.current;if(Math.abs(1-T)<.02)return;T=Math.max(.9,Math.min(1.1,T));const k=t.current??1,R=Math.max(a,Math.min(l,k*T)),E=_.getPosition(),A=_.scaleX(),F={x:(g.touch1.clientX+g.touch2.clientX)/2,y:(g.touch1.clientY+g.touch2.clientY)/2},V={x:(F.x-E.x)/A,y:(F.y-E.y)/A},B={x:F.x-V.x*R,y:F.y-V.y*R};t.current=R,r.current=B,_.scale({x:R,y:R}),_.position(B),n(_),v.current=m}))},[s,l,a,r,n,t,o,e]),C=X.useCallback(h=>{h.evt.touches.length<2&&(d(!1),o(t.current),w.current=null,b.current!==null&&(cancelAnimationFrame(b.current),b.current=null),S.current=!1)},[]);return{isPinching:s,handlers:{onTouchStart:P,onTouchMove:y,onTouchEnd:C}}}const lue=.2,sue=25,uue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=nue(),[a,l]=X.useState(!1);return X.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?Le.jsx(cue,{systems:e,factions:t,settings:i}):null},cue=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:b}}=oue(),[S,w]=X.useState(""),[P,y]=X.useState(!1),C=S.trim().toLowerCase(),h=C.length>=2,[p,c]=X.useState([]),{tooltip:g,showTooltip:m,hideTooltip:_}=Jse(o),T=X.useRef(!1),k=X.useRef(null),{isPinching:R,handlers:{onTouchStart:E,onTouchMove:A,onTouchEnd:F}}=aue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:_,minScale:lue,maxScale:sue}),[V,B]=X.useState({width:window.innerWidth,height:window.innerHeight});X.useEffect(()=>{const ye=Ye=>{Ye.touches.length>1&&Ye.preventDefault()},ke=Ye=>{Ye.preventDefault()},ze={passive:!1};return document.addEventListener("touchmove",ye,ze),document.addEventListener("gesturestart",ke,ze),document.addEventListener("gesturechange",ke,ze),document.addEventListener("gestureend",ke,ze),()=>{document.removeEventListener("touchmove",ye,ze),document.removeEventListener("gesturestart",ke,ze),document.removeEventListener("gesturechange",ke,ze),document.removeEventListener("gestureend",ke,ze)}},[]),X.useEffect(()=>{const ye=ke=>ke.preventDefault();return window.addEventListener("gesturestart",ye,{passive:!1}),window.addEventListener("gesturechange",ye,{passive:!1}),window.addEventListener("gestureend",ye,{passive:!1}),()=>{window.removeEventListener("gesturestart",ye),window.removeEventListener("gesturechange",ye),window.removeEventListener("gestureend",ye)}},[]),X.useEffect(()=>{const ye=()=>{B({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",ye),()=>window.removeEventListener("resize",ye)},[]);const[U,q]=X.useState(null),[J,Q]=X.useState(!1);X.useEffect(()=>{const ye=new window.Image,ze=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";ye.src="/"+ze,ye.onload=()=>{q(ye),Q(!0)}},[]),X.useEffect(()=>{const ye=n.current;if(!ye)return;const ke=ye.container(),ze=Ye=>{Ye.cancelable&&Ye.preventDefault()};return ke.addEventListener("gesturestart",ze,{passive:!1}),ke.addEventListener("gesturechange",ze,{passive:!1}),ke.addEventListener("gestureend",ze,{passive:!1}),ke.addEventListener("touchmove",ze,{passive:!1}),()=>{ke.removeEventListener("gesturestart",ze),ke.removeEventListener("gesturechange",ze),ke.removeEventListener("gestureend",ze),ke.removeEventListener("touchmove",ze)}},[]);const W=window.innerWidth<768,Y=W?1.5/a.scale:2/a.scale,re=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,ne=6,se=10,ve=12,we=re*1.12,ce=re*.92,ee=we*1.2,oe=(ye,ke)=>{if(ke===0)return[{text:ye,fontStyle:"bold",fontSize:we}];const ze=ye.match(/^(Owner:|Damage:)\s*(.*)$/);if(ze){const[,Ye,Mt]=ze;return[{text:`${Ye} `,fontStyle:"bold",fontSize:ce},{text:Mt,fontStyle:"normal",fontSize:ce}]}return[{text:ye,fontStyle:/^(Control|State):/.test(ye)?"bold":"normal",fontSize:ce}]},ue=X.useMemo(()=>(g.text||"").split(` -`).map(ye=>ye.trimEnd()),[g.text]),Se=X.useMemo(()=>{const ye=ue.length?ue:[""],ke=ye.map((gt,xt)=>oe(gt,xt).reduce((zt,Ht)=>{const mt=new AE.Text({text:Ht.text,fontFamily:"Roboto Mono, monospace",fontSize:Ht.fontSize,fontStyle:Ht.fontStyle}),Ot=mt.width();return mt.destroy(),zt+Ot},0)),Ye=(ke.length?Math.max(...ke):0)+ne*2,Mt=ye.length*ee+ne*2;return{lines:ye,boxWidth:Ye,boxHeight:Mt}},[ue,re,ee]);X.useEffect(()=>{g.visible&&y(!1)},[g.visible,g.text]),X.useEffect(()=>{T.current=g.visible,g.visible||(k.current=null)},[g.visible]);const Ce=X.useMemo(()=>{var zt,Ht;const ye=(zt=g.text)==null?void 0:zt.trim();if(!ye)return{title:"",subtitle:"",details:[]};const ke=ye.split(` -`).map(mt=>mt.trim()).filter(mt=>mt&&mt!=="[Tap to open]"),ze=ke[0]??"",Ye=(Ht=ke[1])!=null&&Ht.startsWith("(")?ke[1]:"",Mt=ke.slice(Ye?2:1),gt=[];let xt=!1;for(const mt of Mt){if(mt==="Control:"){xt=!0;continue}if(xt){if(!/^[A-Za-z ]+:\s/.test(mt))continue;xt=!1}gt.push(mt)}return{title:ze,subtitle:Ye,details:gt}},[g.text]),Me=X.useMemo(()=>[...g.controlItems||[]].sort((ye,ke)=>ke.control-ye.control),[g.controlItems]),Ie=P?Me:Me.slice(0,3),Re=Math.max(0,Me.length-3);return Le.jsxs(Le.Fragment,{children:[Le.jsxs(zoe,{width:V.width,height:V.height,draggable:!R,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:b,onTouchStart:E,onTouchMove:A,onTouchEnd:F,children:[Le.jsx(Wx,{cache:!0,children:J&&U?Le.jsx(joe,{image:U,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):Le.jsx(WE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),Le.jsx(Wx,{children:e.map((ye,ke)=>{var xt;const ze=((xt=t[ye.owner])==null?void 0:xt.prettyName)??ye.owner;if(!(!p.length||p.includes(ze)))return null;const Mt=ye.name.toLowerCase().includes(C),gt=h?Mt?1:.2:1;return Le.jsx($oe,{zoomScaleFactor:l<1?l:1,system:ye,factions:t,settings:r,showTooltip:m,hideTooltip:_,tooltipVisibleRef:T,touchedSystemNameRef:k,highlighted:h&&Mt,opacity:gt},ye.name||ke)})}),Le.jsx(Wx,{children:g.visible&&!W&&Le.jsxs(HE,{x:g.x,y:g.y,opacity:.75,scaleX:Y,scaleY:Y,children:[Le.jsx(Doe,{x:-Se.boxWidth/2,y:-(Se.boxHeight+se),width:Se.boxWidth,height:Se.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),Le.jsx(Foe,{points:[-ve/2,-se,0,0,ve/2,-se],fill:"white",closed:!0}),Se.lines.map((ye,ke)=>(()=>{const ze=oe(ye,ke);return Le.jsx(HE,{x:-Se.boxWidth/2+ne,y:-(Se.boxHeight+se-ne-ke*ee),listening:!1,children:ze.map((Ye,Mt)=>{const gt=ze.slice(0,Mt).reduce((xt,zt)=>{const Ht=new AE.Text({text:zt.text,fontFamily:"Roboto Mono, monospace",fontSize:zt.fontSize,fontStyle:zt.fontStyle}),mt=Ht.width();return Ht.destroy(),xt+mt},0);return Le.jsx(WE,{x:gt,y:0,text:Ye.text,fontFamily:"Roboto Mono, monospace",fontSize:Ye.fontSize,fontStyle:Ye.fontStyle,fill:"black",listening:!1},`${Ye.text}-${Mt}`)})},`${ye}-${ke}`)})())]})})]}),W&&g.visible&&Le.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[Le.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:Ce.title}),Ce.subtitle&&Le.jsx("div",{style:{marginTop:"2px",opacity:.8},children:Ce.subtitle}),Le.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:Ce.details.map((ye,ke)=>Le.jsx("div",{children:ye},`${ye}-${ke}`))}),Me.length>0&&Le.jsxs("div",{style:{marginTop:"10px"},children:[Le.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),Le.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Ie.map(ye=>Le.jsx("div",{children:`${ye.name} ${ye.control}% · P${ye.players}`},`${ye.name}-${ye.control}-${ye.players}`))}),Re>0&&Le.jsx("button",{type:"button",onClick:()=>y(ye=>!ye),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),Le.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[g.onTouch&&Le.jsx("button",{type:"button",onClick:()=>{var ye;return(ye=g.onTouch)==null?void 0:ye.call(g)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),Le.jsx("button",{type:"button",onClick:_,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),Le.jsx(Zse,{searchTerm:S,setSearchTerm:w,factions:X.useMemo(()=>DJ(e,t),[e,t]),selectedFactions:p,setSelectedFactions:c})]})},w9=uue;function due(e){return Zw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function fue(){return Le.jsx(XW,{children:Le.jsx(pue,{})})}function pue(){const e=XR();return Bv(e)?Le.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",Le.jsx(k1,{to:"/",children:Le.jsxs("div",{className:"flex",children:[Le.jsx(due,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?Le.jsxs("div",{id:"error-page",children:[Le.jsx("h1",{children:"Oops! Unexpected Error"}),Le.jsx("p",{children:"Something went wrong."}),Le.jsx("p",{children:Le.jsx("i",{children:e.message})})]}):Le.jsx(Le.Fragment,{children:"Unknown error"})}const hue="/",gue=CW(qS(Le.jsxs(Le.Fragment,{children:[Le.jsx(KS,{path:"/",element:Le.jsx(w9,{}),errorElement:Le.jsx(fue,{})}),Le.jsx(KS,{index:!0,element:Le.jsx(w9,{})})]})),{basename:hue});function vue(){return Le.jsx(AW,{router:gue})}AR(document.getElementById("react-root")).render(Le.jsx(X.StrictMode,{children:Le.jsx(vue,{})})); diff --git a/map/assets/index-CgcEaKjL.js b/map/assets/index-CgcEaKjL.js new file mode 100644 index 0000000..83d59ab --- /dev/null +++ b/map/assets/index-CgcEaKjL.js @@ -0,0 +1,189 @@ +function M4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var uO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _9={exports:{}},Iw={},x9={exports:{}},Lt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Fv=Symbol.for("react.element"),NV=Symbol.for("react.portal"),AV=Symbol.for("react.fragment"),IV=Symbol.for("react.strict_mode"),LV=Symbol.for("react.profiler"),DV=Symbol.for("react.provider"),FV=Symbol.for("react.context"),jV=Symbol.for("react.forward_ref"),zV=Symbol.for("react.suspense"),VV=Symbol.for("react.memo"),BV=Symbol.for("react.lazy"),cO=Symbol.iterator;function UV(e){return e===null||typeof e!="object"?null:(e=cO&&e[cO]||e["@@iterator"],typeof e=="function"?e:null)}var S9={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C9=Object.assign,P9={};function ih(e,t,r){this.props=e,this.context=t,this.refs=P9,this.updater=r||S9}ih.prototype.isReactComponent={};ih.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ih.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function T9(){}T9.prototype=ih.prototype;function R4(e,t,r){this.props=e,this.context=t,this.refs=P9,this.updater=r||S9}var N4=R4.prototype=new T9;N4.constructor=R4;C9(N4,ih.prototype);N4.isPureReactComponent=!0;var dO=Array.isArray,O9=Object.prototype.hasOwnProperty,A4={current:null},k9={key:!0,ref:!0,__self:!0,__source:!0};function E9(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)O9.call(t,n)&&!k9.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1>>1,Z=Q[re];if(0>>1;reo(ge,X))ceo(J,ge)?(Q[re]=J,Q[ce]=X,re=ce):(Q[re]=ge,Q[fe]=X,re=fe);else if(ceo(J,X))Q[re]=J,Q[ce]=X,re=ce;else break e}}return W}function o(Q,W){var X=Q.sortIndex-W.sortIndex;return X!==0?X:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,b=null,S=3,w=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function g(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,q(m);else{var W=r(d);W!==null&&ne(g,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,h(k),k=-1),w=!0;var X=S;try{for(c(W),b=r(s);b!==null&&(!(b.expirationTime>W)||Q&&!A());){var re=b.callback;if(typeof re=="function"){b.callback=null,S=b.priorityLevel;var Z=re(b.expirationTime<=W);W=e.unstable_now(),typeof Z=="function"?b.callback=Z:b===r(s)&&n(s),c(W)}else n(s);b=r(s)}if(b!==null)var oe=!0;else{var fe=r(d);fe!==null&&ne(g,fe.startTime-W),oe=!1}return oe}finally{b=null,S=X,w=!1}}var _=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125re?(Q.sortIndex=X,t(d,Q),r(s)===null&&Q===r(d)&&(y?(h(k),k=-1):y=!0,ne(g,X-re))):(Q.sortIndex=Z,t(s,Q),P||w||(P=!0,q(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var X=S;S=W;try{return Q.apply(this,arguments)}finally{S=X}}}})(I9);A9.exports=I9;var pp=A9.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var JV=Y,Oi=pp;function De(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eS=Object.prototype.hasOwnProperty,eB=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pO={},hO={};function tB(e){return eS.call(hO,e)?!0:eS.call(pO,e)?!1:eB.test(e)?hO[e]=!0:(pO[e]=!0,!1)}function rB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nB(e,t,r,n){if(t===null||typeof t>"u"||rB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var L4=/[\-:]([a-z])/g;function D4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function F4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{y_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?rg(e):""}function oB(e){switch(e.tag){case 5:return rg(e.type);case 16:return rg("Lazy");case 13:return rg("Suspense");case 19:return rg("SuspenseList");case 0:case 2:case 15:return e=b_(e.type,!1),e;case 11:return e=b_(e.type.render,!1),e;case 1:return e=b_(e.type,!0),e;default:return""}}function oS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bf:return"Fragment";case Vf:return"Portal";case tS:return"Profiler";case j4:return"StrictMode";case rS:return"Suspense";case nS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F9:return(e.displayName||"Context")+".Consumer";case D9:return(e._context.displayName||"Context")+".Provider";case z4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V4:return t=e.displayName||null,t!==null?t:oS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return oS(e(t))}catch{}}return null}function iB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oS(t);case 8:return t===j4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function z9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aB(e){var t=z9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gy(e){e._valueTracker||(e._valueTracker=aB(e))}function V9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=z9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function r1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function iS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function vO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function B9(e,t){t=t.checked,t!=null&&F4(e,"checked",t,!1)}function aS(e,t){B9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lS(e,t.type,r):t.hasOwnProperty("defaultValue")&&lS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function lS(e,t,r){(t!=="number"||r1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ng=Array.isArray;function hp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=vy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var gg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lB=["Webkit","ms","Moz","O"];Object.keys(gg).forEach(function(e){lB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gg[t]=gg[e]})});function $9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||gg.hasOwnProperty(e)&&gg[e]?(""+t).trim():t+"px"}function G9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=$9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var sB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cS(e,t){if(t){if(sB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(De(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(De(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(De(61))}if(t.style!=null&&typeof t.style!="object")throw Error(De(62))}}function dS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fS=null;function B4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pS=null,gp=null,vp=null;function wO(e){if(e=Vv(e)){if(typeof pS!="function")throw Error(De(280));var t=e.stateNode;t&&(t=zw(t),pS(e.stateNode,e.type,t))}}function K9(e){gp?vp?vp.push(e):vp=[e]:gp=e}function q9(){if(gp){var e=gp,t=vp;if(vp=gp=null,wO(e),t)for(e=0;e>>=0,e===0?32:31-(bB(e)/wB|0)|0}var my=64,yy=4194304;function og(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function a1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=og(l):(i&=a,i!==0&&(n=og(i)))}else a=r&~o,a!==0?n=og(a):i!==0&&(n=og(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function CB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=mg),EO=" ",MO=!1;function hM(e,t){switch(e){case"keyup":return ZB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Uf=!1;function eU(e,t){switch(e){case"compositionend":return gM(t);case"keypress":return t.which!==32?null:(MO=!0,EO);case"textInput":return e=t.data,e===EO&&MO?null:e;default:return null}}function tU(e,t){if(Uf)return e==="compositionend"||!Y4&&hM(e,t)?(e=fM(),gb=G4=au=null,Uf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=IO(r)}}function bM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wM(){for(var e=window,t=r1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=r1(e.document)}return t}function X4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cU(e){var t=wM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bM(r.ownerDocument.documentElement,r)){if(n!==null&&X4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=LO(r,i);var a=LO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Hf=null,bS=null,bg=null,wS=!1;function DO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wS||Hf==null||Hf!==r1(n)||(n=Hf,"selectionStart"in n&&X4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bg&&Gg(bg,n)||(bg=n,n=u1(bS,"onSelect"),0Gf||(e.current=TS[Gf],TS[Gf]=null,Gf--)}function ur(e,t){Gf++,TS[Gf]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Np(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function d1(){mr(Xo),mr(ho)}function HO(e,t,r){if(ho.current!==Eu)throw Error(De(168));ur(ho,t),ur(Xo,r)}function EM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(De(108,iB(e)||"Unknown",o));return Ar({},r,n)}function f1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function WO(e,t,r){var n=e.stateNode;if(!n)throw Error(De(169));r?(e=EM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,Vw=!1,A_=!1;function MM(e){ql===null?ql=[e]:ql.push(e)}function xU(e){Vw=!0,MM(e)}function ju(){if(!A_&&ql!==null){A_=!0;var e=0,t=Xt;try{var r=ql;for(Xt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return _r&&Fc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),_r&&Fc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===Bf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case hy:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===Bf){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&KO(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=I0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===Bf?(p=Qc(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=Sb(c.type,c.key,c.props,null,h.mode,g),g.ref=I0(h,p,c),g.return=h,h=g)}return a(h);case Vf:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=B_(c,h.mode,g),p.return=h,h=p}return a(h);case Qs:return _=c._init,C(h,p,_(c._payload),g)}if(ng(c))return P(h,p,c,g);if(E0(c))return y(h,p,c,g);Py(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=V_(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Ip=IM(!0),LM=IM(!1),g1=Fu(null),v1=null,Yf=null,eP=null;function tP(){eP=Yf=v1=null}function rP(e){var t=g1.current;mr(g1),e._currentValue=t}function ES(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function yp(e,t){v1=e,eP=Yf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(eP!==e)if(e={context:e,memoizedValue:t,next:null},Yf===null){if(v1===null)throw Error(De(308));Yf=e,v1.dependencies={lanes:0,firstContext:e}}else Yf=Yf.next=e;return t}var Wc=null;function nP(e){Wc===null?Wc=[e]:Wc.push(e)}function DM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,nP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function oP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Wt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,nP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function mb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,H4(e,r)}}function qO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function m1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var b=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,w=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,w=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){b=P.call(w,b,S);break e}b=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(w,b,S):P,S==null)break e;b=Ar({},b,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else w={eventTime:w,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=w,s=b):v=v.next=w,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=b),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=b}}function YO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=L_.transition;L_.transition={};try{e(!1),t()}finally{Xt=r,L_.transition=n}}function eR(){return sa().memoizedState}function TU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},tR(e))rR(t,r);else if(r=DM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),nR(r,t,n)}}function OU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(tR(e))rR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,nP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=DM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),nR(r,t,n))}}function tR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function rR(e,t){wg=b1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function nR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,H4(e,r)}}var w1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},kU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:QO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bb(4194308,4,YM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return bb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:XO,useDebugValue:fP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=XO(!1),t=e[0];return e=PU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(De(407));r=r()}else{if(r=t(),Rn===null)throw Error(De(349));(nd&30)!==0||BM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,QO(HM.bind(null,n,i,e),[e]),n.flags|=2048,ev(9,UM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Zg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[Yg]=n,pR(e,t,!1,!1),t.stateNode=e;e:{switch(a=dS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oFp&&(t.flags|=128,n=!0,L0(i,!1),t.lanes=4194304)}else{if(!n)if(e=y1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),L0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Fp&&r!==1073741824&&(t.flags|=128,n=!0,L0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return yP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function DU(e,t){switch(Z4(t),t.tag){case 1:return Qo(t.type)&&d1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lp(),mr(Xo),mr(ho),lP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return aP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(De(340));Ap()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Lp(),null;case 10:return rP(t.type._context),null;case 22:case 23:return yP(),null;case 24:return null;default:return null}}var Oy=!1,co=!1,FU=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Xf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function jS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var s6=!1;function jU(e,t){if(_S=l1,e=wM(),X4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(xS={focusedElem:e,selectionRange:r},l1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(De(163))}}catch(g){Vr(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=s6,s6=!1,P}function _g(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&jS(t,r,i)}o=o.next}while(o!==n)}}function Hw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function zS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function vR(e){var t=e.alternate;t!==null&&(e.alternate=null,vR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[Yg],delete t[PS],delete t[wU],delete t[_U])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mR(e){return e.tag===5||e.tag===3||e.tag===4}function u6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function VS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=c1));else if(n!==4&&(e=e.child,e!==null))for(VS(e,t,r),e=e.sibling;e!==null;)VS(e,t,r),e=e.sibling}function BS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(BS(e,t,r),e=e.sibling;e!==null;)BS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)yR(e,t,r),r=r.sibling}function yR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Lw,r)}catch{}switch(r.tag){case 5:co||Xf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?N_(e.parentNode,r):e.nodeType===1&&N_(e,r),Wg(e)):N_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&jS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Xf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function c6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FU),t.forEach(function(n){var o=KU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,S1=0,(Wt&6)!==0)throw Error(De(331));var o=Wt;for(Wt|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-vP?Xc(e,0):gP|=r),Zo(e,t)}function TR(e,t){t===0&&((e.mode&1)===0?t=1:(t=yy,yy<<=1,(yy&130023424)===0&&(yy=4194304)));var r=Ro();e=us(e,t),e!==null&&(jv(e,t,r),Zo(e,r))}function GU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TR(e,r)}function KU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(De(314))}n!==null&&n.delete(t),TR(e,r)}var OR;OR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,IU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&RM(t,h1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;wb(e,t),e=t.pendingProps;var o=Np(t,ho.current);yp(t,r),o=uP(null,t,n,e,o,r);var i=cP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,f1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,oP(t),o.updater=Uw,t.stateNode=o,o._reactInternals=t,RS(t,n,e,r),t=IS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&Q4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(wb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=YU(n),e=Ta(n,e),o){case 0:t=AS(null,t,n,e,r);break e;case 1:t=i6(null,t,n,e,r);break e;case 11:t=n6(null,t,n,e,r);break e;case 14:t=o6(null,t,n,Ta(n.type,e),r);break e}throw Error(De(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),AS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),i6(e,t,n,o,r);case 3:e:{if(cR(t),e===null)throw Error(De(387));n=t.pendingProps,i=t.memoizedState,o=i.element,FM(e,t),m1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Dp(Error(De(423)),t),t=a6(e,t,n,r,o);break e}else if(n!==o){o=Dp(Error(De(424)),t),t=a6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=LM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ap(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return jM(t),e===null&&kS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,SS(n,o)?a=null:i!==null&&SS(n,i)&&(t.flags|=32),uR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&kS(t),null;case 13:return dR(e,t,r);case 4:return iP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ip(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),n6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(g1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),ES(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(De(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),ES(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,yp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),o6(e,t,n,o,r);case 15:return lR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),wb(e,t),t.tag=1,Qo(n)?(e=!0,f1(t)):e=!1,yp(t,r),oR(t,n,o),RS(t,n,o,r),IS(null,t,n,!0,e,r);case 19:return fR(e,t,r);case 22:return sR(e,t,r)}throw Error(De(156,t.tag))};function kR(e,t){return tM(e,t)}function qU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new qU(e,t,r,n)}function wP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YU(e){if(typeof e=="function")return wP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===z4)return 11;if(e===V4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Sb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")wP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Bf:return Qc(r.children,o,i,t);case j4:a=8,o|=8;break;case tS:return e=ta(12,r,t,o|2),e.elementType=tS,e.lanes=i,e;case rS:return e=ta(13,r,t,o),e.elementType=rS,e.lanes=i,e;case nS:return e=ta(19,r,t,o),e.elementType=nS,e.lanes=i,e;case j9:return $w(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D9:a=10;break e;case F9:a=9;break e;case z4:a=11;break e;case V4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(De(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function $w(e,t,r,n){return e=ta(22,e,n,t),e.elementType=j9,e.lanes=r,e.stateNode={isHidden:!1},e}function V_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function B_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=__(0),this.expirationTimes=__(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=__(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function _P(e,t,r,n,o,i,a,l,s){return e=new XU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},oP(i),e}function QU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),N9.exports=Mi;var Xw=N9.exports;const rH=oh(Xw),nH=M4({__proto__:null,default:rH},[Xw]);var AR,y6=Xw;AR=y6.createRoot,y6.hydrateRoot;/** + * @remix-run/router v1.19.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iH(){return Math.random().toString(36).substr(2,8)}function w6(e,t){return{usr:e.state,key:e.key,idx:t}}function rv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||iH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function b(){l=rn.Pop;let C=v(),h=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:h})}function S(C,h){l=rn.Push;let p=rv(y.location,C,h);d=v()+1;let c=w6(p,d),g=y.createHref(p);try{a.pushState(c,"",g)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(g)}i&&s&&s({action:l,location:y.location,delta:1})}function w(C,h){l=rn.Replace;let p=rv(y.location,C,h);d=v();let c=w6(p,d),g=y.createHref(p);a.replaceState(c,"",g),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof C=="string"?C:ad(C);return p=p.replace(/ $/,"%20"),Pt(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(b6,b),s=C,()=>{o.removeEventListener(b6,b),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let h=P(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:S,replace:w,go(C){return a.go(C)}};return y}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const lH=new Set(["lazy","caseSensitive","path","id","index","children"]);function sH(e){return e.index===!0}function nv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pt(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),sH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=nv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Cb(e,t,r,!1)}function Cb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=sh(o.pathname||"/",r);if(i==null)return null;let a=IR(e);cH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Pt(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),IR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:mH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of LR(i.path))o(i,a,s)}),t}function LR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=LR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function cH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:yH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dH=/^:[\w-]+$/,fH=3,pH=2,hH=1,gH=10,vH=-2,_6=e=>e==="*";function mH(e,t){let r=e.split("/"),n=r.length;return r.some(_6)&&(n+=vH),t&&(n+=pH),r.filter(o=>!_6(o)).reduce((o,i)=>o+(dH.test(i)?fH:i===""?hH:gH),n)}function yH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function bH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:w}=v;if(S==="*"){let y=l[b]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[b];return w&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function wH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),jp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function _H(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function sh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function xH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:SH(r,t):t,search:PH(n),hash:TH(o)}}function SH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function U_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function DR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function PP(e,t){let r=DR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function TP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Pt(!o.pathname||!o.pathname.includes("?"),U_("?","pathname","search",o)),Pt(!o.pathname||!o.pathname.includes("#"),U_("#","pathname","hash",o)),Pt(!o.search||!o.search.includes("#"),U_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let b=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),b-=1;o.pathname=S.join("/")}l=b>=0?t[b]:"/"}let s=xH(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),CH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class T1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Uv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FR=["post","put","patch","delete"],OH=new Set(FR),kH=["get",...FR],EH=new Set(kH),MH=new Set([301,302,303,307,308]),RH=new Set([307,308]),H_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},F0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},OP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jR="remix-router-transitions";function IH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;o=he=>({hasErrorBoundary:le(he)})}else o=AH;let i={},a=nv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||VH,v=e.unstable_patchRoutesOnNavigation,b=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,w=new Set,P=1e3,y=new Set,C=null,h=null,p=null,c=e.hydrationData!=null,g=Uc(a,e.history.location,s),m=null;if(g==null&&!v){let le=ko(404,{pathname:e.history.location.pathname}),{matches:he,route:xe}=R6(a);g=he,m={[xe.id]:le}}g&&!e.hydrationData&&bo(g,a,e.history.location.pathname).active&&(g=null);let _;if(g)if(g.some(le=>le.route.lazy))_=!1;else if(!g.some(le=>le.route.loader))_=!0;else if(b.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,he=e.hydrationData?e.hydrationData.errors:null,xe=Oe=>Oe.route.loader?typeof Oe.route.loader=="function"&&Oe.route.loader.hydrate===!0?!1:le&&le[Oe.route.id]!==void 0||he&&he[Oe.route.id]!==void 0:!0;if(he){let Oe=g.findIndex(Ue=>he[Ue.route.id]!==void 0);_=g.slice(0,Oe+1).every(xe)}else _=g.every(xe)}else _=e.hydrationData!=null;else if(_=!1,g=[],b.v7_partialHydration){let le=bo(null,a,e.history.location.pathname);le.active&&le.matches&&(g=le.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:g,initialized:_,navigation:H_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,H=!1,q=!1,ne=[],Q=new Set,W=new Map,X=0,re=-1,Z=new Map,oe=new Set,fe=new Map,ge=new Map,ce=new Set,J=new Map,ie=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(le=>{let{action:he,location:xe,delta:Oe}=le;if(Se){Se(),Se=void 0;return}jp(ie.size===0||Oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=Li({currentLocation:k.location,nextLocation:xe,historyAction:he});if(Ue&&Oe!=null){let Qe=new Promise(ut=>{Se=ut});e.history.go(Oe*-1),sn(Ue,{state:"blocked",location:xe,proceed(){sn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Qe.then(()=>e.history.go(Oe))},reset(){let ut=new Map(k.blockers);ut.set(Ue,F0),Re({blockers:ut})}});return}return Ye(he,xe)}),r){tW(t,V);let le=()=>rW(t,V);t.addEventListener("pagehide",le),B=()=>t.removeEventListener("pagehide",le)}return k.initialized||Ye(rn.Pop,k.location,{initialHydration:!0}),T}function Me(){S&&S(),B&&B(),w.clear(),A&&A.abort(),k.fetchers.forEach((le,he)=>Yt(he)),k.blockers.forEach((le,he)=>Ka(he))}function Le(le){return w.add(le),()=>w.delete(le)}function Re(le,he){he===void 0&&(he={}),k=Tr({},k,le);let xe=[],Oe=[];b.v7_fetcherPersist&&k.fetchers.forEach((Ue,Qe)=>{Ue.state==="idle"&&(ce.has(Qe)?Oe.push(Qe):xe.push(Qe))}),[...w].forEach(Ue=>Ue(k,{deletedFetchers:Oe,unstable_viewTransitionOpts:he.viewTransitionOpts,unstable_flushSync:he.flushSync===!0})),b.v7_fetcherPersist&&(xe.forEach(Ue=>k.fetchers.delete(Ue)),Oe.forEach(Ue=>Yt(Ue)))}function be(le,he,xe){var Oe,Ue;let{flushSync:Qe}=xe===void 0?{}:xe,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Oe=le.state)==null?void 0:Oe._isRedirect)!==!0,je;he.actionData?Object.keys(he.actionData).length>0?je=he.actionData:je=null:ut?je=k.actionData:je=null;let Ze=he.loaderData?E6(k.loaderData,he.loaderData,he.matches||[],he.errors):k.loaderData,$e=k.blockers;$e.size>0&&($e=new Map($e),$e.forEach((Nt,Ut)=>$e.set(Ut,F0)));let Ge=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Ue=le.state)==null?void 0:Ue._isRedirect)!==!0;l&&(a=l,l=void 0),H||R===rn.Pop||(R===rn.Push?e.history.push(le,le.state):R===rn.Replace&&e.history.replace(le,le.state));let kt;if(R===rn.Pop){let Nt=V.get(k.location.pathname);Nt&&Nt.has(le.pathname)?kt={currentLocation:k.location,nextLocation:le}:V.has(le.pathname)&&(kt={currentLocation:le,nextLocation:k.location})}else if(F){let Nt=V.get(k.location.pathname);Nt?Nt.add(le.pathname):(Nt=new Set([le.pathname]),V.set(k.location.pathname,Nt)),kt={currentLocation:k.location,nextLocation:le}}Re(Tr({},he,{actionData:je,loaderData:Ze,historyAction:R,location:le,initialized:!0,navigation:H_,revalidation:"idle",restoreScrollPosition:Fi(le,he.matches||k.matches),preventScrollReset:Ge,blockers:$e}),{viewTransitionOpts:kt,flushSync:Qe===!0}),R=rn.Pop,E=!1,F=!1,H=!1,q=!1,ne=[]}async function ke(le,he){if(typeof le=="number"){e.history.go(le);return}let xe=GS(k.location,k.matches,s,b.v7_prependBasename,le,b.v7_relativeSplatPath,he==null?void 0:he.fromRouteId,he==null?void 0:he.relative),{path:Oe,submission:Ue,error:Qe}=S6(b.v7_normalizeFormMethod,!1,xe,he),ut=k.location,je=rv(k.location,Oe,he&&he.state);je=Tr({},je,e.history.encodeLocation(je));let Ze=he&&he.replace!=null?he.replace:void 0,$e=rn.Push;Ze===!0?$e=rn.Replace:Ze===!1||Ue!=null&&Ea(Ue.formMethod)&&Ue.formAction===k.location.pathname+k.location.search&&($e=rn.Replace);let Ge=he&&"preventScrollReset"in he?he.preventScrollReset===!0:void 0,kt=(he&&he.unstable_flushSync)===!0,Nt=Li({currentLocation:ut,nextLocation:je,historyAction:$e});if(Nt){sn(Nt,{state:"blocked",location:je,proceed(){sn(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),ke(le,he)},reset(){let Ut=new Map(k.blockers);Ut.set(Nt,F0),Re({blockers:Ut})}});return}return await Ye($e,je,{submission:Ue,pendingError:Qe,preventScrollReset:Ge,replace:he&&he.replace,enableViewTransition:he&&he.unstable_viewTransition,flushSync:kt})}function ze(){if(Qn(),Re({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Ye(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Ye(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function Ye(le,he,xe){A&&A.abort(),A=null,R=le,H=(xe&&xe.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(xe&&xe.preventScrollReset)===!0,F=(xe&&xe.enableViewTransition)===!0;let Oe=l||a,Ue=xe&&xe.overrideNavigation,Qe=Uc(Oe,he,s),ut=(xe&&xe.flushSync)===!0,je=bo(Qe,Oe,he.pathname);if(je.active&&je.matches&&(Qe=je.matches),!Qe){let{error:bt,notFoundMatches:dr,route:or}=fa(he.pathname);be(he,{matches:dr,loaderData:{},errors:{[or.id]:bt}},{flushSync:ut});return}if(k.initialized&&!q&&GH(k.location,he)&&!(xe&&xe.submission&&Ea(xe.submission.formMethod))){be(he,{matches:Qe},{flushSync:ut});return}A=new AbortController;let Ze=Rf(e.history,he,A.signal,xe&&xe.submission),$e;if(xe&&xe.pendingError)$e=[Zf(Qe).route.id,{type:rr.error,error:xe.pendingError}];else if(xe&&xe.submission&&Ea(xe.submission.formMethod)){let bt=await Mt(Ze,he,xe.submission,Qe,je.active,{replace:xe.replace,flushSync:ut});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[dr,or]=bt.pendingActionResult;if(wi(or)&&Uv(or.error)&&or.error.status===404){A=null,be(he,{matches:bt.matches,loaderData:{},errors:{[dr]:or.error}});return}}Qe=bt.matches||Qe,$e=bt.pendingActionResult,Ue=W_(he,xe.submission),ut=!1,je.active=!1,Ze=Rf(e.history,Ze.url,Ze.signal)}let{shortCircuited:Ge,matches:kt,loaderData:Nt,errors:Ut}=await gt(Ze,he,Qe,je.active,Ue,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,ut,$e);Ge||(A=null,be(he,Tr({matches:kt||Qe},M6($e),{loaderData:Nt,errors:Ut})))}async function Mt(le,he,xe,Oe,Ue,Qe){Qe===void 0&&(Qe={}),Qn();let ut=JH(he,xe);if(Re({navigation:ut},{flushSync:Qe.flushSync===!0}),Ue){let $e=await ni(Oe,he.pathname,le.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let{boundaryId:Ge,error:kt}=$r(he.pathname,$e);return{matches:$e.partialMatches,pendingActionResult:[Ge,{type:rr.error,error:kt}]}}else if($e.matches)Oe=$e.matches;else{let{notFoundMatches:Ge,error:kt,route:Nt}=fa(he.pathname);return{matches:Ge,pendingActionResult:[Nt.id,{type:rr.error,error:kt}]}}}let je,Ze=ag(Oe,he);if(!Ze.route.action&&!Ze.route.lazy)je={type:rr.error,error:ko(405,{method:le.method,pathname:he.pathname,routeId:Ze.route.id})};else if(je=(await Dr("action",k,le,[Ze],Oe,null))[Ze.route.id],le.signal.aborted)return{shortCircuited:!0};if(Gc(je)){let $e;return Qe&&Qe.replace!=null?$e=Qe.replace:$e=T6(je.response.headers.get("Location"),new URL(le.url),s)===k.location.pathname+k.location.search,await Jt(le,je,!0,{submission:xe,replace:$e}),{shortCircuited:!0}}if(su(je))throw ko(400,{type:"defer-action"});if(wi(je)){let $e=Zf(Oe,Ze.route.id);return(Qe&&Qe.replace)!==!0&&(R=rn.Push),{matches:Oe,pendingActionResult:[$e.route.id,je]}}return{matches:Oe,pendingActionResult:[Ze.route.id,je]}}async function gt(le,he,xe,Oe,Ue,Qe,ut,je,Ze,$e,Ge){let kt=Ue||W_(he,Qe),Nt=Qe||ut||A6(kt),Ut=!H&&(!b.v7_partialHydration||!Ze);if(Oe){if(Ut){let It=xt(Ge);Re(Tr({navigation:kt},It!==void 0?{actionData:It}:{}),{flushSync:$e})}let He=await ni(xe,he.pathname,le.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let{boundaryId:It,error:at}=$r(he.pathname,He);return{matches:He.partialMatches,loaderData:{},errors:{[It]:at}}}else if(He.matches)xe=He.matches;else{let{error:It,notFoundMatches:at,route:rt}=fa(he.pathname);return{matches:at,loaderData:{},errors:{[rt.id]:It}}}}let bt=l||a,[dr,or]=C6(e.history,k,xe,Nt,he,b.v7_partialHydration&&Ze===!0,b.v7_skipActionErrorRevalidation,q,ne,Q,ce,fe,oe,bt,s,Ge);if(Di(He=>!(xe&&xe.some(It=>It.route.id===He))||dr&&dr.some(It=>It.route.id===He)),re=++X,dr.length===0&&or.length===0){let He=da();return be(he,Tr({matches:xe,loaderData:{},errors:Ge&&wi(Ge[1])?{[Ge[0]]:Ge[1].error}:null},M6(Ge),He?{fetchers:new Map(k.fetchers)}:{}),{flushSync:$e}),{shortCircuited:!0}}if(Ut){let He={};if(!Oe){He.navigation=kt;let It=xt(Ge);It!==void 0&&(He.actionData=It)}or.length>0&&(He.fetchers=zt(or)),Re(He,{flushSync:$e})}or.forEach(He=>{W.has(He.key)&&Qr(He.key),He.controller&&W.set(He.key,He.controller)});let Fn=()=>or.forEach(He=>Qr(He.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,xe,dr,or,le);if(le.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),or.forEach(He=>W.delete(He.key));let Zn=My(Fr);if(Zn)return await Jt(le,Zn.result,!0,{replace:je}),{shortCircuited:!0};if(Zn=My(jn),Zn)return oe.add(Zn.key),await Jt(le,Zn.result,!0,{replace:je}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=k6(k,xe,dr,Fr,Ge,or,jn,J);J.forEach((He,It)=>{He.subscribe(at=>{(at||He.done)&&J.delete(It)})}),b.v7_partialHydration&&Ze&&k.errors&&Object.entries(k.errors).filter(He=>{let[It]=He;return!dr.some(at=>at.route.id===It)}).forEach(He=>{let[It,at]=He;zn=Object.assign(zn||{},{[It]:at})});let un=da(),Zr=Sn(re),At=un||Zr||or.length>0;return Tr({matches:xe,loaderData:ji,errors:zn},At?{fetchers:new Map(k.fetchers)}:{})}function xt(le){if(le&&!wi(le[1]))return{[le[0]]:le[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function zt(le){return le.forEach(he=>{let xe=k.fetchers.get(he.key),Oe=j0(void 0,xe?xe.data:void 0);k.fetchers.set(he.key,Oe)}),new Map(k.fetchers)}function Ht(le,he,xe,Oe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(le)&&Qr(le);let Ue=(Oe&&Oe.unstable_flushSync)===!0,Qe=l||a,ut=GS(k.location,k.matches,s,b.v7_prependBasename,xe,b.v7_relativeSplatPath,he,Oe==null?void 0:Oe.relative),je=Uc(Qe,ut,s),Ze=bo(je,Qe,ut);if(Ze.active&&Ze.matches&&(je=Ze.matches),!je){nr(le,he,ko(404,{pathname:ut}),{flushSync:Ue});return}let{path:$e,submission:Ge,error:kt}=S6(b.v7_normalizeFormMethod,!0,ut,Oe);if(kt){nr(le,he,kt,{flushSync:Ue});return}let Nt=ag(je,$e);if(E=(Oe&&Oe.preventScrollReset)===!0,Ge&&Ea(Ge.formMethod)){mt(le,he,$e,Nt,je,Ze.active,Ue,Ge);return}fe.set(le,{routeId:he,path:$e}),Ot(le,he,$e,Nt,je,Ze.active,Ue,Ge)}async function mt(le,he,xe,Oe,Ue,Qe,ut,je){Qn(),fe.delete(le);function Ze(rt){if(!rt.route.action&&!rt.route.lazy){let St=ko(405,{method:je.formMethod,pathname:xe,routeId:he});return nr(le,he,St,{flushSync:ut}),!0}return!1}if(!Qe&&Ze(Oe))return;let $e=k.fetchers.get(le);Ln(le,eW(je,$e),{flushSync:ut});let Ge=new AbortController,kt=Rf(e.history,xe,Ge.signal,je);if(Qe){let rt=await ni(Ue,xe,kt.signal);if(rt.type==="aborted")return;if(rt.type==="error"){let{error:St}=$r(xe,rt);nr(le,he,St,{flushSync:ut});return}else if(rt.matches){if(Ue=rt.matches,Oe=ag(Ue,xe),Ze(Oe))return}else{nr(le,he,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(le,Ge);let Nt=X,bt=(await Dr("action",k,kt,[Oe],Ue,le))[Oe.route.id];if(kt.signal.aborted){W.get(le)===Ge&&W.delete(le);return}if(b.v7_fetcherPersist&&ce.has(le)){if(Gc(bt)||wi(bt)){Ln(le,Ks(void 0));return}}else{if(Gc(bt))if(W.delete(le),re>Nt){Ln(le,Ks(void 0));return}else return oe.add(le),Ln(le,j0(je)),Jt(kt,bt,!1,{fetcherSubmission:je});if(wi(bt)){nr(le,he,bt.error);return}}if(su(bt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,or=Rf(e.history,dr,Ge.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Pt(Fr,"Didn't find any matches after fetcher action");let jn=++X;Z.set(le,jn);let Zn=j0(je,bt.data);k.fetchers.set(le,Zn);let[ji,zn]=C6(e.history,k,Fr,je,dr,!1,b.v7_skipActionErrorRevalidation,q,ne,Q,ce,fe,oe,Fn,s,[Oe.route.id,bt]);zn.filter(rt=>rt.key!==le).forEach(rt=>{let St=rt.key,cn=k.fetchers.get(St),wr=j0(void 0,cn?cn.data:void 0);k.fetchers.set(St,wr),W.has(St)&&Qr(St),rt.controller&&W.set(St,rt.controller)}),Re({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(rt=>Qr(rt.key));Ge.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:At}=await ln(k,Fr,ji,zn,or);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",un),Z.delete(le),W.delete(le),zn.forEach(rt=>W.delete(rt.key));let He=My(Zr);if(He)return Jt(or,He.result,!1);if(He=My(At),He)return oe.add(He.key),Jt(or,He.result,!1);let{loaderData:It,errors:at}=k6(k,Fr,ji,Zr,void 0,zn,At,J);if(k.fetchers.has(le)){let rt=Ks(bt.data);k.fetchers.set(le,rt)}Sn(jn),k.navigation.state==="loading"&&jn>re?(Pt(R,"Expected pending action"),A&&A.abort(),be(k.navigation.location,{matches:Fr,loaderData:It,errors:at,fetchers:new Map(k.fetchers)})):(Re({errors:at,loaderData:E6(k.loaderData,It,Fr,at),fetchers:new Map(k.fetchers)}),q=!1)}async function Ot(le,he,xe,Oe,Ue,Qe,ut,je){let Ze=k.fetchers.get(le);Ln(le,j0(je,Ze?Ze.data:void 0),{flushSync:ut});let $e=new AbortController,Ge=Rf(e.history,xe,$e.signal);if(Qe){let bt=await ni(Ue,xe,Ge.signal);if(bt.type==="aborted")return;if(bt.type==="error"){let{error:dr}=$r(xe,bt);nr(le,he,dr,{flushSync:ut});return}else if(bt.matches)Ue=bt.matches,Oe=ag(Ue,xe);else{nr(le,he,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(le,$e);let kt=X,Ut=(await Dr("loader",k,Ge,[Oe],Ue,le))[Oe.route.id];if(su(Ut)&&(Ut=await kP(Ut,Ge.signal,!0)||Ut),W.get(le)===$e&&W.delete(le),!Ge.signal.aborted){if(ce.has(le)){Ln(le,Ks(void 0));return}if(Gc(Ut))if(re>kt){Ln(le,Ks(void 0));return}else{oe.add(le),await Jt(Ge,Ut,!1);return}if(wi(Ut)){nr(le,he,Ut.error);return}Pt(!su(Ut),"Unhandled fetcher deferred data"),Ln(le,Ks(Ut.data))}}async function Jt(le,he,xe,Oe){let{submission:Ue,fetcherSubmission:Qe,replace:ut}=Oe===void 0?{}:Oe;he.response.headers.has("X-Remix-Revalidate")&&(q=!0);let je=he.response.headers.get("Location");Pt(je,"Expected a Location header on the redirect Response"),je=T6(je,new URL(le.url),s);let Ze=rv(k.location,je,{_isRedirect:!0});if(r){let bt=!1;if(he.response.headers.has("X-Remix-Reload-Document"))bt=!0;else if(OP.test(je)){const dr=e.history.createURL(je);bt=dr.origin!==t.location.origin||sh(dr.pathname,s)==null}if(bt){ut?t.location.replace(je):t.location.assign(je);return}}A=null;let $e=ut===!0||he.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:Ge,formAction:kt,formEncType:Nt}=k.navigation;!Ue&&!Qe&&Ge&&kt&&Nt&&(Ue=A6(k.navigation));let Ut=Ue||Qe;if(RH.has(he.response.status)&&Ut&&Ea(Ut.formMethod))await Ye($e,Ze,{submission:Tr({},Ut,{formAction:je}),preventScrollReset:E,enableViewTransition:xe?F:void 0});else{let bt=W_(Ze,Ue);await Ye($e,Ze,{overrideNavigation:bt,fetcherSubmission:Qe,preventScrollReset:E,enableViewTransition:xe?F:void 0})}}async function Dr(le,he,xe,Oe,Ue,Qe){let ut,je={};try{ut=await BH(d,le,he,xe,Oe,Ue,Qe,i,o)}catch(Ze){return Oe.forEach($e=>{je[$e.route.id]={type:rr.error,error:Ze}}),je}for(let[Ze,$e]of Object.entries(ut))if(qH($e)){let Ge=$e.result;je[Ze]={type:rr.redirect,response:WH(Ge,xe,Ze,Ue,s,b.v7_relativeSplatPath)}}else je[Ze]=await HH($e);return je}async function ln(le,he,xe,Oe,Ue){let Qe=le.matches,ut=Dr("loader",le,Ue,xe,he,null),je=Promise.all(Oe.map(async Ge=>{if(Ge.matches&&Ge.match&&Ge.controller){let Nt=(await Dr("loader",le,Rf(e.history,Ge.path,Ge.controller.signal),[Ge.match],Ge.matches,Ge.key))[Ge.match.route.id];return{[Ge.key]:Nt}}else return Promise.resolve({[Ge.key]:{type:rr.error,error:ko(404,{pathname:Ge.path})}})})),Ze=await ut,$e=(await je).reduce((Ge,kt)=>Object.assign(Ge,kt),{});return await Promise.all([QH(he,Ze,Ue.signal,Qe,le.loaderData),ZH(he,$e,Oe)]),{loaderResults:Ze,fetcherResults:$e}}function Qn(){q=!0,ne.push(...Di()),fe.forEach((le,he)=>{W.has(he)&&(Q.add(he),Qr(he))})}function Ln(le,he,xe){xe===void 0&&(xe={}),k.fetchers.set(le,he),Re({fetchers:new Map(k.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function nr(le,he,xe,Oe){Oe===void 0&&(Oe={});let Ue=Zf(k.matches,he);Yt(le),Re({errors:{[Ue.route.id]:xe},fetchers:new Map(k.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function mo(le){return b.v7_fetcherPersist&&(ge.set(le,(ge.get(le)||0)+1),ce.has(le)&&ce.delete(le)),k.fetchers.get(le)||NH}function Yt(le){let he=k.fetchers.get(le);W.has(le)&&!(he&&he.state==="loading"&&Z.has(le))&&Qr(le),fe.delete(le),Z.delete(le),oe.delete(le),ce.delete(le),Q.delete(le),k.fetchers.delete(le)}function yo(le){if(b.v7_fetcherPersist){let he=(ge.get(le)||0)-1;he<=0?(ge.delete(le),ce.add(le)):ge.set(le,he)}else Yt(le);Re({fetchers:new Map(k.fetchers)})}function Qr(le){let he=W.get(le);Pt(he,"Expected fetch controller: "+le),he.abort(),W.delete(le)}function Cl(le){for(let he of le){let xe=mo(he),Oe=Ks(xe.data);k.fetchers.set(he,Oe)}}function da(){let le=[],he=!1;for(let xe of oe){let Oe=k.fetchers.get(xe);Pt(Oe,"Expected fetcher: "+xe),Oe.state==="loading"&&(oe.delete(xe),le.push(xe),he=!0)}return Cl(le),he}function Sn(le){let he=[];for(let[xe,Oe]of Z)if(Oe0}function Pl(le,he){let xe=k.blockers.get(le)||F0;return ie.get(le)!==he&&ie.set(le,he),xe}function Ka(le){k.blockers.delete(le),ie.delete(le)}function sn(le,he){let xe=k.blockers.get(le)||F0;Pt(xe.state==="unblocked"&&he.state==="blocked"||xe.state==="blocked"&&he.state==="blocked"||xe.state==="blocked"&&he.state==="proceeding"||xe.state==="blocked"&&he.state==="unblocked"||xe.state==="proceeding"&&he.state==="unblocked","Invalid blocker state transition: "+xe.state+" -> "+he.state);let Oe=new Map(k.blockers);Oe.set(le,he),Re({blockers:Oe})}function Li(le){let{currentLocation:he,nextLocation:xe,historyAction:Oe}=le;if(ie.size===0)return;ie.size>1&&jp(!1,"A router only supports one blocker at a time");let Ue=Array.from(ie.entries()),[Qe,ut]=Ue[Ue.length-1],je=k.blockers.get(Qe);if(!(je&&je.state==="proceeding")&&ut({currentLocation:he,nextLocation:xe,historyAction:Oe}))return Qe}function fa(le){let he=ko(404,{pathname:le}),xe=l||a,{matches:Oe,route:Ue}=R6(xe);return Di(),{notFoundMatches:Oe,route:Ue,error:he}}function $r(le,he){return{boundaryId:Zf(he.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:le,message:he.error!=null&&"message"in he.error?he.error:String(he.error)})}}function Di(le){let he=[];return J.forEach((xe,Oe)=>{(!le||le(Oe))&&(xe.cancel(),he.push(Oe),J.delete(Oe))}),he}function Ts(le,he,xe){if(C=le,p=he,h=xe||null,!c&&k.navigation===H_){c=!0;let Oe=Fi(k.location,k.matches);Oe!=null&&Re({restoreScrollPosition:Oe})}return()=>{C=null,p=null,h=null}}function pa(le,he){return h&&h(le,he.map(Oe=>uH(Oe,k.loaderData)))||le.key}function Dn(le,he){if(C&&p){let xe=pa(le,he);C[xe]=p()}}function Fi(le,he){if(C){let xe=pa(le,he),Oe=C[xe];if(typeof Oe=="number")return Oe}return null}function bo(le,he,xe){if(v){if(y.has(xe))return{active:!1,matches:le};if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:Cb(he,xe,s,!0)}}else return{active:!0,matches:Cb(he,xe,s,!0)||[]}}return{active:!1,matches:null}}async function ni(le,he,xe){let Oe=le;for(;;){let Ue=l==null,Qe=l||a;try{await jH(v,he,Oe,Qe,i,o,ue,xe)}catch(Ze){return{type:"error",error:Ze,partialMatches:Oe}}finally{Ue&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let ut=Uc(Qe,he,s);if(ut)return ha(he,y),{type:"success",matches:ut};let je=Cb(Qe,he,s,!0);if(!je||Oe.length===je.length&&Oe.every((Ze,$e)=>Ze.route.id===je[$e].route.id))return ha(he,y),{type:"success",matches:null};Oe=je}}function ha(le,he){if(he.size>=P){let xe=he.values().next().value;he.delete(xe)}he.add(le)}function Os(le){i={},l=nv(le,o,void 0,i)}function ga(le,he){let xe=l==null;VR(le,he,l||a,i,o),xe&&(a=[...a],Re({}))}return T={get basename(){return s},get future(){return b},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:Le,enableScrollRestoration:Ts,navigate:ke,fetch:Ht,revalidate:ze,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:mo,deleteFetcher:yo,dispose:Me,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Os},T}function LH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function GS(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let b of t)if(s.push(b),b.route.id===a){d=b;break}}else s=t,d=t[t.length-1];let v=TP(o||".",PP(s,i),sh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!EP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function S6(e,t,r,n){if(!n||!LH(n))return{path:r};if(n.formMethod&&!XH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=BR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,P)=>{let[y,C]=P;return""+w+y+"="+C+` +`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Pt(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=KS(n.formData),d=n.formData;else if(n.body instanceof FormData)s=KS(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=O6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=O6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let b=zu(r);return t&&b.search&&EP(b.search)&&s.append("index",""),b.search="?"+s,{path:ad(b),submission:v}}function DH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function C6(e,t,r,n,o,i,a,l,s,d,v,b,S,w,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,h=e.createURL(t.location),p=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,g=c?DH(r,c):r,m=y?y[1].statusCode:void 0,_=a&&m&&m>=400,T=g.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(FH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return P6(R,Tr({currentUrl:h,currentParams:F.params,nextUrl:p,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||zR(F,V)}))}),k=[];return b.forEach((R,E)=>{if(i||!r.some(H=>H.route.id===R.routeId)||v.has(E))return;let A=Uc(w,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ag(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=P6(V,Tr({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function FH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function zR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function P6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function jH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,b)=>{l.aborted||VR(v,b,n,o,i)}}),a.set(s,d)),d&&KH(d)&&await d}finally{a.delete(s)}}function VR(e,t,r,n,o){if(e){var i;let a=n[e];Pt(a,"No route found to patch children into: routeId = "+e);let l=nv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=nv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function zH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Pt(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";jp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!lH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function VH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function BH(e,t,r,n,o,i,a,l,s,d){let v=i.map(w=>w.route.lazy?zH(w.route,s,l):void 0),b=i.map((w,P)=>{let y=v[P],C=o.some(p=>p.route.id===w.route.id);return Tr({},w,{shouldLoad:C,resolve:async p=>(p&&n.method==="GET"&&(w.route.lazy||w.route.loader)&&(C=!0),C?UH(t,n,w,y,p,d):Promise.resolve({type:rr.data,result:void 0}))})}),S=await e({matches:b,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function UH(e,t,r,n,o,i){let a,l,s=d=>{let v,b=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),w=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([w,b])};try{let d=r.route[e];if(n)if(d){let v,[b]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=b}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),b=v.pathname+v.search;throw ko(405,{method:t.method,pathname:b,routeId:r.route.id})}else return{type:rr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),b=v.pathname+v.search;throw ko(404,{pathname:b})}Pt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:rr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function HH(e){let{result:t,type:r}=e;if(UR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:rr.error,error:v}}return r===rr.error?{type:rr.error,error:new T1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:rr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===rr.error){if(N6(t)){var n;if(t.data instanceof Error){var o;return{type:rr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new T1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:Uv(t)?t.status:void 0}}if(YH(t)){var i,a;return{type:rr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(N6(t)){var l,s;return{type:rr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function WH(e,t,r,n,o,i){let a=e.headers.get("Location");if(Pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!OP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=GS(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function T6(e,t,r){if(OP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=sh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(BR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=KS(n.formData):i.body=n.formData}return new Request(o,i)}function KS(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function O6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function $H(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let S=b.route.id,w=t[S];if(Pt(!Gc(w),"Cannot handle redirect results in processLoaderData"),wi(w)){let P=w.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Zf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Uv(w.error)?w.error.status:500),w.headers&&(d[S]=w.headers)}else su(w)?(n.set(S,w.deferredData),i[S]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers)):(i[S]=w.data,w.statusCode&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function k6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=$H(t,n,o,l);return i.forEach(v=>{let{key:b,match:S,controller:w}=v,P=a[b];if(Pt(P,"Did not find corresponding fetcher result"),!(w&&w.signal.aborted))if(wi(P)){let y=Zf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(b)}else if(Gc(P))Pt(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Pt(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(b,y)}}),{loaderData:s,errors:d}}function E6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function M6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Zf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function R6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new T1(e||500,l,new Error(s),!0)}function My(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function BR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function GH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function KH(e){return typeof e=="object"&&e!=null&&"then"in e}function qH(e){return UR(e.result)&&MH.has(e.result.status)}function su(e){return e.type===rr.deferred}function wi(e){return e.type===rr.error}function Gc(e){return(e&&e.type)===rr.redirect}function N6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function YH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function UR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XH(e){return EH.has(e.toLowerCase())}function Ea(e){return OH.has(e.toLowerCase())}async function QH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),b=v!=null&&!zR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&b&&await kP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function ZH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Pt(a,"Expected an AbortController for revalidating fetcher deferred result"),await kP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function kP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function EP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ag(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&EP(r||""))return e[e.length-1];let n=DR(e);return n[n.length-1]}function A6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function W_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function JH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function j0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eW(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tW(e,t){try{let r=e.sessionStorage.getItem(jR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function rW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(jR,JSON.stringify(r))}catch(n){jp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + * React Router v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),Y.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let b=TP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(b.pathname=b.pathname==="/"?t:ts([t,b.pathname])),(v.replace?n.replace:n.push)(b,v.state,v)},[t,n,a,i,e])}function GR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=Y.useContext(bd),{matches:o}=Y.useContext(wd),{pathname:i}=Zw(),a=JSON.stringify(PP(o,n.v7_relativeSplatPath));return Y.useMemo(()=>TP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function aW(e,t,r,n){Hv()||Pt(!1);let{navigator:o}=Y.useContext(bd),{matches:i}=Y.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Zw(),v;v=d;let b=v.pathname||"/",S=b;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(y.length).join("/")}let w=Uc(e,{pathname:S});return dW(w&&w.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function lW(){let e=XR(),t=Uv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Y.createElement(Y.Fragment,null,Y.createElement("h2",null,"Unexpected Application Error!"),Y.createElement("h3",{style:{fontStyle:"italic"}},t),r?Y.createElement("pre",{style:o},r):null,null)}const sW=Y.createElement(lW,null);class uW extends Y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?Y.createElement(wd.Provider,{value:this.props.routeContext},Y.createElement(WR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cW(e){let{routeContext:t,match:r,children:n}=e,o=Y.useContext(Qw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),Y.createElement(wd.Provider,{value:t},n)}function dW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(b=>b.route.id&&(l==null?void 0:l[b.route.id])!==void 0);v>=0||Pt(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,b,S)=>{let w,P=!1,y=null,C=null;r&&(w=l&&b.route.id?l[b.route.id]:void 0,y=b.route.errorElement||sW,s&&(d<0&&S===0?(vW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=b.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,S+1)),p=()=>{let c;return w?c=y:P?c=C:b.route.Component?c=Y.createElement(b.route.Component,null):b.route.element?c=b.route.element:c=v,Y.createElement(cW,{match:b,routeContext:{outlet:v,matches:h,isDataRoute:r!=null},children:c})};return r&&(b.route.ErrorBoundary||b.route.errorElement||S===0)?Y.createElement(uW,{location:r.location,revalidation:r.revalidation,component:y,error:w,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var KR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(KR||{}),qR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(qR||{});function fW(e){let t=Y.useContext(Qw);return t||Pt(!1),t}function pW(e){let t=Y.useContext(HR);return t||Pt(!1),t}function hW(e){let t=Y.useContext(wd);return t||Pt(!1),t}function YR(e){let t=hW(),r=t.matches[t.matches.length-1];return r.route.id||Pt(!1),r.route.id}function XR(){var e;let t=Y.useContext(WR),r=pW(qR.UseRouteError),n=YR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function gW(){let{router:e}=fW(KR.UseNavigateStable),t=YR(),r=Y.useRef(!1);return $R(()=>{r.current=!0}),Y.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,O1({fromRouteId:t},i)))},[e,t])}const I6={};function vW(e,t,r){I6[e]||(I6[e]=!0)}function qS(e){Pt(!1)}function mW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Hv()&&Pt(!1);let s=t.replace(/^\/*/,"/"),d=Y.useMemo(()=>({basename:s,navigator:i,static:a,future:O1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:b="",hash:S="",state:w=null,key:P="default"}=n,y=Y.useMemo(()=>{let C=sh(v,s);return C==null?null:{location:{pathname:C,search:b,hash:S,state:w,key:P},navigationType:o}},[s,v,b,S,w,P,o]);return y==null?null:Y.createElement(bd.Provider,{value:d},Y.createElement(MP.Provider,{children:r,value:y}))}new Promise(()=>{});function YS(e,t){t===void 0&&(t=[]);let r=[];return Y.Children.forEach(e,(n,o)=>{if(!Y.isValidElement(n))return;let i=[...t,o];if(n.type===Y.Fragment){r.push.apply(r,YS(n.props.children,i));return}n.type!==qS&&Pt(!1),!n.props.index||!n.props.children||Pt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=YS(n.props.children,i)),r.push(a)}),r}function yW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:Y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:Y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:Y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function wW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _W(e,t){return e.button===0&&(!t||t==="_self")&&!wW(e)}const xW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],SW="6";try{window.__reactRouterVersion=SW}catch{}function CW(e,t){return IH({basename:t==null?void 0:t.basename,future:ov({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:oH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||PW(),routes:e,mapRouteProperties:yW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function PW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ov({},t,{errors:TW(t.errors)})),t}function TW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new T1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const OW=Y.createContext({isTransitioning:!1}),kW=Y.createContext(new Map),EW="startTransition",L6=Jx[EW],MW="flushSync",D6=nH[MW];function RW(e){L6?L6(e):e()}function z0(e){D6?D6(e):e()}class NW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function AW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=Y.useState(r.state),[a,l]=Y.useState(),[s,d]=Y.useState({isTransitioning:!1}),[v,b]=Y.useState(),[S,w]=Y.useState(),[P,y]=Y.useState(),C=Y.useRef(new Map),{v7_startTransition:h}=n||{},p=Y.useCallback(k=>{h?RW(k):k()},[h]),c=Y.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,H)=>{B.data!==void 0&&C.current.set(H,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?z0(()=>i(k)):p(()=>i(k));return}if(A){z0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{z0(()=>i(k))});B.finished.finally(()=>{z0(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})})}),z0(()=>w(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,p]);Y.useLayoutEffect(()=>r.subscribe(c),[r,c]),Y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&b(new NW)},[s]),Y.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{p(()=>i(k)),await R});E.finished.finally(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})}),w(E)}},[p,a,v,r.window]),Y.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),Y.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),Y.useEffect(()=>{},[]);let g=Y.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",_=Y.useMemo(()=>({router:r,navigator:g,static:!1,basename:m}),[r,g,m]),T=Y.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return Y.createElement(Y.Fragment,null,Y.createElement(Qw.Provider,{value:_},Y.createElement(HR.Provider,{value:o},Y.createElement(kW.Provider,{value:C.current},Y.createElement(OW.Provider,{value:s},Y.createElement(mW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:g,future:T},o.initialized||r.future.v7_partialHydration?Y.createElement(IW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const IW=Y.memo(LW);function LW(e){let{routes:t,future:r,state:n}=e;return aW(t,void 0,n,r)}const DW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k1=Y.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:b}=t,S=bW(t,xW),{basename:w}=Y.useContext(bd),P,y=!1;if(typeof d=="string"&&FW.test(d)&&(P=d,DW))try{let c=new URL(window.location.href),g=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=sh(g.pathname,w);g.origin===c.origin&&m!=null?d=m+g.search+g.hash:y=!0}catch{}let C=nW(d,{relative:o}),h=jW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:b});function p(c){n&&n(c),c.defaultPrevented||h(c)}return Y.createElement("a",ov({},S,{href:P||C,onClick:y||i?n:p,ref:r,target:s}))});var F6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(F6||(F6={}));var j6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(j6||(j6={}));function jW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=oW(),d=Zw(),v=GR(e,{relative:a});return Y.useCallback(b=>{if(_W(b,r)){b.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var QR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},z6=Or.createContext&&Or.createContext(QR),zW=["attr","size","title"];function VW(e,t){if(e==null)return{};var r=BW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,M1({key:r},t.attr),ZR(t.child)))}function Jw(e){return t=>Or.createElement($W,E1({attr:M1({},e.attr)},t),ZR(e.child))}function $W(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=VW(e,zW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",E1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:M1(M1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return z6!==void 0?Or.createElement(z6.Consumer,null,r=>t(r)):t(QR)}function GW(e){return Jw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function KW(e){return Jw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function qW(e){return Jw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function B6(e){return Ie.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:Ie.jsxs(k1,{to:e.path,children:[Ie.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function YW(){return Ie.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[Ie.jsx(k1,{to:"/",children:Ie.jsx("div",{className:"sideMenu-header",children:Ie.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),Ie.jsx("br",{}),Ie.jsx("nav",{children:Ie.jsxs("ul",{children:[Ie.jsx(B6,{icon:GW,label:"Home",path:"/"},"Home"),Ie.jsx(B6,{icon:qW,label:"Map",path:"/map"},"Map")]})}),Ie.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:Ie.jsxs(k1,{to:"/tos",className:"inline-",children:[Ie.jsx(KW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function XW({children:e}){return Ie.jsxs("div",{className:"bg-black",children:[Ie.jsx(YW,{}),Ie.jsx("div",{className:"ml-40 pl-2",children:e})]})}var QW={},JR={},e7={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function e$(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,b=new Array(d);vC.length)&&(h=C.length);for(var p=0,c=new Array(h);pc.length)&&(g=c.length);for(var m=0,_=new Array(g);mp.length)&&(c=p.length);for(var g=0,m=new Array(c);gT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rg.length)&&(m=g.length);for(var _=0,T=new Array(m);_h.length)&&(p=h.length);for(var c=0,g=new Array(p);cm.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function i(m){if(Array.isArray(m))return o(m)}function a(m){return m&&m.__esModule?m:{default:m}}function l(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(m){return i(m)||l(m)||v(m)||s()}function v(m,_){if(m){if(typeof m=="string")return o(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(m,_)}}var b=["white"].concat(d(n.propTypesColors)),S=r.default.bool,w=r.default.bool,P=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],C=r.default.string,h=r.default.node,p=r.default.node.isRequired,c=r.default.instanceOf(Object),g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(WP);var ZN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(ZN);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,s){for(var d in s)Object.defineProperty(l,d,{enumerable:!0,get:s[d]})}t(e,{badge:function(){return i},default:function(){return a}});var r=WP,n=o(ZN);function o(l){return l&&l.__esModule?l:{default:l}}var i={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},a=i})(QN);var JN={},$P={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{propTypesCount:function(){return b},propTypesValue:function(){return S},propTypesRatedIcon:function(){return w},propTypesUnratedIcon:function(){return P},propTypesColor:function(){return y},propTypesOnChange:function(){return C},propTypesClassName:function(){return h},propTypesReadonly:function(){return p}});var r=a(ot),n=br;function o(c,g){(g==null||g>c.length)&&(g=c.length);for(var m=0,_=new Array(g);mw.length)&&(P=w.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var h=0,p=new Array(C);h"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(SA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return b},useTheme:function(){return S}});var r=d(Y),n=l(ot),o=l(Xn),i=l(NP),a=l(SA);function l(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(w)}function d(w,P){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=s(P);if(y&&y.has(w))return y.get(w);var C={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in w)if(p!=="default"&&Object.prototype.hasOwnProperty.call(w,p)){var c=h?Object.getOwnPropertyDescriptor(w,p):null;c&&(c.get||c.set)?Object.defineProperty(C,p,c):C[p]=w[p]}return C.default=w,y&&y.set(w,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function b(w){var P=w.value,y=P===void 0?i.default:P,C=w.children,h=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:h},C)}var S=function(){return(0,r.useContext)(v)};b.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Xe);var t2={},Gv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,w){for(var P in w)Object.defineProperty(S,P,{enumerable:!0,get:w[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return b}});var r=o(ot),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,b=r.default.node.isRequired})(Gv);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(Y),n=Gv;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(t2);var CA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=t2,l=Xe,s=Gv;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.className,c=C.children,g=S(C,["className","children"]),m=(0,a.useAccordion)(),_=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;p=p??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),_)),p),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},g,{ref:h,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(CA);var PA={},An={},JS=function(e,t){return JS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},JS(e,t)};function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");JS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var N1=function(){return N1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function kA(e,t){return function(r,n){t(r,n,e)}}function R$(e,t,r,n,o,i){function a(h){if(h!==void 0&&typeof h!="function")throw new TypeError("Function expected");return h}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),b,S=!1,w=r.length-1;w>=0;w--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(h){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(h||null))};var C=(0,r[w])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(b=a(C.get))&&(v.get=b),(b=a(C.set))&&(v.set=b),(b=a(C.init))&&o.unshift(b)}else(b=a(C))&&(l==="field"?o.unshift(b):v[s]=b)}d&&Object.defineProperty(d,n.name,v),S=!0}function N$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function AA(){for(var e=[],t=0;t1||s(w,y)})},P&&(o[w]=P(o[w])))}function s(w,P){try{d(n[w](P))}catch(y){S(i[0][3],y)}}function d(w){w.value instanceof Vp?Promise.resolve(w.value.v).then(v,b):S(i[0][2],w)}function v(w){s("next",w)}function b(w){s("throw",w)}function S(w,P){w(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function FA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:Vp(e[o](a)),done:!1}:i?i(a):a}:i}}function jA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof A1=="function"?A1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function zA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var L$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function VA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&r2(t,e,r);return L$(t,e),t}function BA(e){return e&&e.__esModule?e:{default:e}}function UA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function HA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function WA(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function $A(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var D$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function GA(e){function t(i){e.error=e.hasError?new D$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const F$={__extends:TA,__assign:N1,__rest:ch,__decorate:OA,__param:kA,__metadata:EA,__awaiter:MA,__generator:RA,__createBinding:r2,__exportStar:NA,__values:A1,__read:qP,__spread:AA,__spreadArrays:IA,__spreadArray:LA,__await:Vp,__asyncGenerator:DA,__asyncDelegator:FA,__asyncValues:jA,__makeTemplateObject:zA,__importStar:VA,__importDefault:BA,__classPrivateFieldGet:UA,__classPrivateFieldSet:HA,__classPrivateFieldIn:WA,__addDisposableResource:$A,__disposeResources:GA},j$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:$A,get __assign(){return N1},__asyncDelegator:FA,__asyncGenerator:DA,__asyncValues:jA,__await:Vp,__awaiter:MA,__classPrivateFieldGet:UA,__classPrivateFieldIn:WA,__classPrivateFieldSet:HA,__createBinding:r2,__decorate:OA,__disposeResources:GA,__esDecorate:R$,__exportStar:NA,__extends:TA,__generator:RA,__importDefault:BA,__importStar:VA,__makeTemplateObject:zA,__metadata:EA,__param:kA,__propKey:A$,__read:qP,__rest:ch,__runInitializers:N$,__setFunctionName:I$,__spread:AA,__spreadArray:LA,__spreadArrays:IA,__values:A1,default:F$},Symbol.toStringTag,{value:"Module"})),KA=Dv(j$);var qA={exports:{}},Ft={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Kv=Symbol.for("react.element"),z$=Symbol.for("react.portal"),V$=Symbol.for("react.fragment"),B$=Symbol.for("react.strict_mode"),U$=Symbol.for("react.profiler"),H$=Symbol.for("react.provider"),W$=Symbol.for("react.context"),$$=Symbol.for("react.forward_ref"),G$=Symbol.for("react.suspense"),K$=Symbol.for("react.memo"),q$=Symbol.for("react.lazy"),G6=Symbol.iterator;function Y$(e){return e===null||typeof e!="object"?null:(e=G6&&e[G6]||e["@@iterator"],typeof e=="function"?e:null)}var YA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XA=Object.assign,QA={};function dh(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}dh.prototype.isReactComponent={};dh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};dh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=dh.prototype;function YP(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}var XP=YP.prototype=new ZA;XP.constructor=YP;XA(XP,dh.prototype);XP.isPureReactComponent=!0;var K6=Array.isArray,JA=Object.prototype.hasOwnProperty,QP={current:null},eI={key:!0,ref:!0,__self:!0,__source:!0};function tI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)JA.call(t,n)&&!eI.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Cg=e=>e%1?Number(e.toFixed(5)):e,av=/(-)?([\d]*\.?[\d])+/g,eC=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,nG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function qv(e){return typeof e=="string"}const Yv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},JP=Object.assign(Object.assign({},Yv),{transform:oI(0,1)}),oG=Object.assign(Object.assign({},Yv),{default:1}),Xv=e=>({test:t=>qv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),iG=Xv("deg"),wp=Xv("%"),aG=Xv("px"),lG=Xv("vh"),sG=Xv("vw"),uG=Object.assign(Object.assign({},wp),{parse:e=>wp.parse(e)/100,transform:e=>wp.transform(e*100)}),e3=(e,t)=>r=>!!(qv(r)&&nG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iI=(e,t,r)=>n=>{if(!qv(n))return n;const[o,i,a,l]=n.match(av);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},lg={test:e3("hsl","hue"),parse:iI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+wp.transform(Cg(t))+", "+wp.transform(Cg(r))+", "+Cg(JP.transform(n))+")"},cG=oI(0,255),kb=Object.assign(Object.assign({},Yv),{transform:e=>Math.round(cG(e))}),Jf={test:e3("rgb","red"),parse:iI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+kb.transform(e)+", "+kb.transform(t)+", "+kb.transform(r)+", "+Cg(JP.transform(n))+")"};function dG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const tC={test:e3("#"),parse:dG,transform:Jf.transform},t3={test:e=>Jf.test(e)||tC.test(e)||lg.test(e),parse:e=>Jf.test(e)?Jf.parse(e):lg.test(e)?lg.parse(e):tC.parse(e),transform:e=>qv(e)?e:e.hasOwnProperty("red")?Jf.transform(e):lg.transform(e)},aI="${c}",lI="${n}";function fG(e){var t,r,n,o;return isNaN(e)&&qv(e)&&((r=(t=e.match(av))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(eC))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function sI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(eC);n&&(r=n.length,e=e.replace(eC,aI),t.push(...n.map(t3.parse)));const o=e.match(av);return o&&(e=e.replace(av,lI),t.push(...o.map(Yv.parse))),{values:t,numColors:r,tokenised:e}}function uI(e){return sI(e).values}function cI(e){const{values:t,numColors:r,tokenised:n}=sI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function hG(e){const t=uI(e);return cI(e)(t.map(pG))}const dI={test:fG,parse:uI,createTransformer:cI,getAnimatableNone:hG},gG=new Set(["brightness","contrast","saturate","opacity"]);function vG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(av)||[];if(!n)return e;const o=r.replace(n,"");let i=gG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const mG=/([a-z-]*)\(.*?\)/g,yG=Object.assign(Object.assign({},dI),{getAnimatableNone:e=>{const t=e.match(mG);return t?t.map(vG).join(" "):e}});bn.alpha=JP;bn.color=t3;bn.complex=dI;bn.degrees=iG;bn.filter=yG;bn.hex=tC;bn.hsla=lg;bn.number=Yv;bn.percent=wp;bn.progressPercentage=uG;bn.px=aG;bn.rgbUnit=kb;bn.rgba=Jf;bn.scale=oG;bn.vh=lG;bn.vw=sG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const fI=1/60*1e3,bG=typeof performance<"u"?()=>performance.now():()=>Date.now(),pI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bG()),fI);function wG(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const b=v&&o,S=b?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),b&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=wG(()=>lv=!0),e),{}),xG=Qv.reduce((e,t)=>{const r=n2[t];return e[t]=(n,o=!1,i=!1)=>(lv||TG(),r.schedule(n,o,i)),e},{}),SG=Qv.reduce((e,t)=>(e[t]=n2[t].cancel,e),{}),CG=Qv.reduce((e,t)=>(e[t]=()=>n2[t].process(_p),e),{}),PG=e=>n2[e].process(_p),hI=e=>{lv=!1,_p.delta=rC?fI:Math.max(Math.min(e-_p.timestamp,_G),1),_p.timestamp=e,nC=!0,Qv.forEach(PG),nC=!1,lv&&(rC=!1,pI(hI))},TG=()=>{lv=!0,rC=!0,nC||pI(hI)},OG=()=>_p;Cd.cancelSync=SG;Cd.default=xG;Cd.flushSync=CG;Cd.getFrameData=OG;Object.defineProperty(lt,"__esModule",{value:!0});var gI=KA,Bp=nI,Aa=bn,o2=Cd;function kG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var EG=kG(o2);const sv=(e,t,r)=>Math.min(Math.max(r,e),t),G_=.001,MG=.01,Y6=10,RG=.05,NG=1;function AG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Bp.warning(e<=Y6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=sv(RG,NG,a),e=sv(MG,Y6,e/1e3),a<1?(o=d=>{const v=d*a,b=v*e,S=v-r,w=oC(d,a),P=Math.exp(-b);return G_-S/w*P},i=d=>{const b=d*a*e,S=b*r+r,w=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-b),y=oC(Math.pow(d,2),a);return(-o(d)+G_>0?-1:1)*((S-w)*P)/y}):(o=d=>{const v=Math.exp(-d*e),b=(d-r)*e+1;return-G_+v*b},i=d=>{const v=Math.exp(-d*e),b=(r-d)*(e*e);return v*b});const l=5/e,s=LG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const IG=12;function LG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function jG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!X6(e,FG)&&X6(e,DG)){const r=AG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function i2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=gI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:b,isResolvedFromDuration:S}=jG(i),w=Q6,P=Q6;function y(){const C=v?-(v/1e3):0,h=r-t,p=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),p<1){const g=oC(c,p);w=m=>{const _=Math.exp(-p*c*m);return r-_*((C+p*c*h)/g*Math.sin(g*m)+h*Math.cos(g*m))},P=m=>{const _=Math.exp(-p*c*m);return p*c*_*(Math.sin(g*m)*(C+p*c*h)/g+h*Math.cos(g*m))-_*(Math.cos(g*m)*(C+p*c*h)-g*h*Math.sin(g*m))}}else if(p===1)w=g=>r-Math.exp(-c*g)*(h+(C+c*h)*g);else{const g=c*Math.sqrt(p*p-1);w=m=>{const _=Math.exp(-p*c*m),T=Math.min(g*m,300);return r-_*((C+p*c*h)*Math.sinh(T)+g*h*Math.cosh(T))/g}}}return y(),{next:C=>{const h=w(C);if(S)a.done=C>=b;else{const p=P(C)*1e3,c=Math.abs(p)<=n,g=Math.abs(r-h)<=o;a.done=c&&g}return a.value=a.done?r:h,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}i2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Q6=e=>0,r3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},a2=(e,t,r)=>-r*e+r*t+e;function K_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Z6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=K_(s,l,e+1/3),i=K_(s,l,e),a=K_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const zG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},VG=[Aa.hex,Aa.rgba,Aa.hsla],J6=e=>VG.find(t=>t.test(e)),ek=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,n3=(e,t)=>{let r=J6(e),n=J6(t);Bp.invariant(!!r,ek(e)),Bp.invariant(!!n,ek(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Z6(o),r=Aa.rgba),n===Aa.hsla&&(i=Z6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=zG(o[s],i[s],l));return a.alpha=a2(o.alpha,i.alpha,l),r.transform(a)}},BG={x:0,y:0,z:0},iC=e=>typeof e=="number",UG=(e,t)=>r=>t(e(r)),o3=(...e)=>e.reduce(UG);function vI(e,t){return iC(e)?r=>a2(e,t,r):Aa.color.test(e)?n3(e,t):i3(e,t)}const mI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>vI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=vI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function tk(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=tk(e),o=tk(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?o3(mI(n.parsed,o.parsed),r):(Bp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},WG=(e,t)=>r=>a2(e,t,r);function $G(e){if(typeof e=="number")return WG;if(typeof e=="string")return Aa.color.test(e)?n3:i3;if(Array.isArray(e))return mI;if(typeof e=="object")return HG}function GG(e,t,r){const n=[],o=r||$G(e[0]),i=e.length-1;for(let a=0;ar(r3(e,t,n))}function qG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=r3(e[i],e[i+1],o);return t[i](l)}}function a3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Bp.invariant(i===t.length,"Both input and output ranges must be the same length"),Bp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=GG(t,n,o),l=i===2?KG(e,a):qG(e,a);return r?s=>l(sv(e[0],e[i-1],s)):l}const Zv=e=>t=>1-e(1-t),l2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yI=e=>t=>Math.pow(t,e),l3=e=>t=>t*t*((e+1)*t-e),bI=e=>{const t=l3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},wI=1.525,YG=4/11,XG=8/11,QG=9/10,_I=e=>e,s3=yI(2),ZG=Zv(s3),xI=l2(s3),SI=e=>1-Math.sin(Math.acos(e)),CI=Zv(SI),JG=l2(CI),u3=l3(wI),eK=Zv(u3),tK=l2(u3),rK=bI(wI),nK=4356/361,oK=35442/1805,iK=16061/1805,I1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-I1(1-e*2)):.5*I1(e*2-1)+.5;function sK(e,t){return e.map(()=>t||xI).splice(0,e.length-1)}function uK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function cK(e,t){return e.map(r=>r*t)}function Pg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=cK(n&&n.length===a.length?n:uK(a),o);function s(){return a3(l,a,{ease:Array.isArray(r)?r:sK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function PI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const b=-l*Math.exp(-v/n);return a.done=!(b>o||b<-o),a.value=a.done?d:d+b,a},flipTarget:()=>{}}}const rk={keyframes:Pg,spring:i2,decay:PI};function dK(e){if(Array.isArray(e.to))return Pg;if(rk[e.type])return rk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Pg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?i2:Pg}function TI(e,t,r=0){return e-t-r}function fK(e,t,r=0,n=!0){return n?TI(t+-e,t,r):t-(e-t)+r}function pK(e,t,r,n){return n?e>=t+r:e<=-r}const hK=e=>{const t=({delta:r})=>e(r);return{start:()=>EG.default.update(t,!0),stop:()=>o2.cancelSync.update(t)}};function OI(e){var t,r,{from:n,autoplay:o=!0,driver:i=hK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:b,onComplete:S,onRepeat:w,onUpdate:P}=e,y=gI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,h,p=0,c=y.duration,g,m=!1,_=!0,T;const k=dK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=a3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){p++,s==="reverse"?(_=p%2===0,a=fK(a,c,d,_)):(a=TI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,w&&w()}function A(){h.stop(),S&&S()}function F(B){if(_||(B=-B),a+=B,!m){const H=R.next(Math.max(0,a));g=H.value,T&&(g=T(g)),m=_?H.done:a<=0}P==null||P(g),m&&(p===0&&(c??(c=a)),p{b==null||b(),h.stop()}}}function kI(e,t){return t?e*(1e3/t):0}function gK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:b,onComplete:S,onStop:w}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;b==null||b(g),(m=c.onUpdate)===null||m===void 0||m.call(c,g)},onComplete:S,onStop:w}))}function p(c){h(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))p({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const g=C(c),m=g===r?-1:1;let _,T;const k=R=>{_=T,T=R,t=kI(R-_,o2.getFrameData().delta),(m===1&&R>g||m===-1&&RP==null?void 0:P.stop()}}const EI=e=>e*180/Math.PI,vK=(e,t=BG)=>EI(Math.atan2(t.y-e.y,t.x-e.x)),mK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},yK=e=>e,c3=(e=yK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},bK=c3(),wK=c3(Math.sqrt),MI=e=>e*Math.PI/180,L1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),aC=e=>L1(e)&&e.hasOwnProperty("z"),Ny=(e,t)=>Math.abs(e-t);function _K(e,t){if(iC(e)&&iC(t))return Ny(e,t);if(L1(e)&&L1(t)){const r=Ny(e.x,t.x),n=Ny(e.y,t.y),o=aC(e)&&aC(t)?Ny(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const xK=(e,t,r)=>(t=MI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),RI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),NI=(e,t,r,n=0)=>RI(e+r*(t-e)/Math.max(n,r)),SK=(e=50)=>{let t=0,r=0;return n=>{const o=o2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?NI(t,n,i,e):t;return r=o,t=a,a}},CK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function PK(e,t){return e/(1e3/t)}const TK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},AI=(e,t)=>1-3*t+3*e,II=(e,t)=>3*t-6*e,LI=e=>3*e,D1=(e,t,r)=>((AI(t,r)*e+II(t,r))*e+LI(t))*e,DI=(e,t,r)=>3*AI(t,r)*e*e+2*II(t,r)*e+LI(t),OK=1e-7,kK=10;function EK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=D1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>OK&&++l=RK?NK(a,b,e,r):S===0?b:EK(a,l,l+Ay,e,r)}return a=>a===0||a===1?a:D1(i(a),t,n)}const IK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return sv(0,1,o/e)};lt.angle=vK;lt.animate=OI;lt.anticipate=rK;lt.applyOffset=mK;lt.attract=bK;lt.attractExpo=wK;lt.backIn=u3;lt.backInOut=tK;lt.backOut=eK;lt.bounceIn=aK;lt.bounceInOut=lK;lt.bounceOut=I1;lt.circIn=SI;lt.circInOut=JG;lt.circOut=CI;lt.clamp=sv;lt.createAnticipate=bI;lt.createAttractor=c3;lt.createBackIn=l3;lt.createExpoIn=yI;lt.cubicBezier=AK;lt.decay=PI;lt.degreesToRadians=MI;lt.distance=_K;lt.easeIn=s3;lt.easeInOut=xI;lt.easeOut=ZG;lt.inertia=gK;lt.interpolate=a3;lt.isPoint=L1;lt.isPoint3D=aC;lt.keyframes=Pg;lt.linear=_I;lt.mirrorEasing=l2;lt.mix=a2;lt.mixColor=n3;lt.mixComplex=i3;lt.pipe=o3;lt.pointFromVector=xK;lt.progress=r3;lt.radiansToDegrees=EI;lt.reverseEasing=Zv;lt.smooth=SK;lt.smoothFrame=NI;lt.snap=CK;lt.spring=i2;lt.steps=IK;lt.toDecimal=RI;lt.velocityPerFrame=PK;lt.velocityPerSecond=kI;lt.wrap=TK;class LK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const q_=new WeakMap;function d3(e){return q_.has(e)||q_.set(e,{transforms:[],values:new Map}),q_.get(e)}function DK(e,t){return e.has(t)||e.set(t,new LK),e.get(t)}function FI(e,t){e.indexOf(t)===-1&&e.push(t)}function jI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const zI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",uv=e=>Array.isArray(e)&&!ds(e[0]),FK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function VI(e,t){return uv(e)?e[FK(0,e.length,t)]:e}const f3=(e,t,r)=>-r*e+r*t+e,p3=()=>{},rs=e=>e,s2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function h3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=s2(0,t,n);e.push(f3(r,1,o))}}function g3(e){const t=[0];return h3(t,e-1),t}function BI(e,t=g3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&h3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),F1=e=>typeof e=="object"&&!!e.createAnimation,jK=e=>typeof e=="function",v3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function HI(e,t){return t?e*(1e3/t):0}const zK=["","X","Y","Z"],VK=["translate","scale","rotate","skew"],Up={x:"translateX",y:"translateY",z:"translateZ"},nk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},BK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:nk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:nk},Hp=new Map,u2=e=>`--motion-${e}`,j1=["x","y","z"];VK.forEach(e=>{zK.forEach(t=>{j1.push(e+t),Hp.set(u2(e+t),BK[e])})});const UK=(e,t)=>j1.indexOf(e)-j1.indexOf(t),HK=new Set(j1),c2=e=>HK.has(e),WK=(e,t)=>{Up[t]&&(t=Up[t]);const{transforms:r}=d3(e);FI(r,t),e.style.transform=WI(r)},WI=e=>e.sort(UK).reduce($K,"").trim(),$K=(e,t)=>`${e} ${t}(var(${u2(t)}))`,lC=e=>e.startsWith("--"),ok=new Set;function GK(e){if(!ok.has(e)){ok.add(e);try{const{syntax:t,initialValue:r}=Hp.has(e)?Hp.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const $I=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,KK=1e-7,qK=12;function YK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=$I(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>KK&&++lYK(i,0,1,e,r);return i=>i===0||i===1?i:$I(o(i),t,n)}const XK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return zI(0,1,o/e)},QK={ease:sg(.25,.1,.25,1),"ease-in":sg(.42,0,1,1),"ease-in-out":sg(.42,0,.58,1),"ease-out":sg(0,0,.58,1)},ZK=/\((.*?)\)/;function sC(e){if(jK(e))return e;if(UI(e))return sg(...e);const t=QK[e];if(t)return t;if(e.startsWith("steps")){const r=ZK.exec(e);if(r){const n=r[1].split(",");return XK(parseFloat(n[0]),n[1].trim())}}return rs}let JK=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,w)=>{this.resolve=S,this.reject=w}),n=n||Go.easing,F1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=uv(n)?rs:sC(n),this.updateDuration(o);const b=BI(r,s,uv(n)?n.map(sC):rs);this.tick=S=>{var w;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),h=y%1;!h&&y>=1&&(h=1),h===1&&C--;const p=C%2;(d==="reverse"||d==="alternate"&&p||d==="alternate-reverse"&&!p)&&(h=1-h);const c=P>=this.totalDuration?1:Math.min(h,1),g=b(this.easing(c));t(g),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(w=this.resolve)===null||w===void 0||w.call(this,g)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ik=e=>UI(e)?eq(e):e,eq=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ak=e=>document.createElement("div").animate(e,{duration:.001}),lk={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ak({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ak({opacity:[0,1]}).finished},Y_={},Mb={};for(const e in lk)Mb[e]=()=>(Y_[e]===void 0&&(Y_[e]=lk[e]()),Y_[e]);function tq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function z1(e){return Up[e]&&(e=Up[e]),c2(e)?u2(e):e}const ep={get:(e,t)=>{t=z1(t);let r=lC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Hp.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=z1(t),lC(t)?e.style.setProperty(t,r):e.style[t]=r}};function KI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function rq(){return window.__MOTION_DEV_TOOLS_RECORD}function d2(e,t,r,n={}){const o=rq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:b=Go.easing,direction:S,offset:w,allowWebkitAcceleration:P=!1}=n;const y=d3(e);let C=Mb.waapi();const h=c2(t);h&&WK(e,t);const p=z1(t),c=DK(y.values,p),g=Hp.get(p);return KI(c.animation,!(F1(b)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=ep.get(e,p))!==null&&T!==void 0?T:g==null?void 0:g.initialValue)!==null&&k!==void 0?k:0};let _=tq(GI(r),m);if(F1(b)){const T=b.createAnimation(_,m,h,p,c);b=T.easing,T.keyframes!==void 0&&(_=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(lC(p)&&(Mb.cssRegisterProperty()?GK(p):C=!1),C){g&&(_=_.map(R=>ds(R)?g.toDefaultUnit(R):R)),_.length===1&&(!Mb.partialKeyframes()||i)&&_.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:uv(b)?void 0:ik(b),direction:S,iterations:v+1,fill:"both"};a=e.animate({[p]:_,offset:w,easing:uv(b)?b.map(ik):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=_[_.length-1];a.finished.then(()=>{ep.set(e,p,k),a.cancel()}).catch(p3),P||(a.playbackRate=1.000001)}else if(h){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(m()));const T=k=>{g&&(k=g.toDefaultUnit(k)),ep.set(e,p,k)};a=new JK(T,_,Object.assign(Object.assign({},n),{duration:l,easing:b}))}else{const T=_[_.length-1];ep.set(e,p,g&&ds(T)?g.toDefaultUnit(T):T)}return i&&o(e,t,_,{duration:l,delay:s,easing:b,repeat:v,offset:w},"motion-one"),c.setAnimation(a),a}}const m3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function f2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const nq=e=>e(),y3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(nq).filter(Boolean),duration:r,options:t},iq),oq=e=>e.animations[0],iq={get:(e,t)=>{const r=oq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(aq)).catch(p3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>KI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function lq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:sq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=sC(n)(s/d)*d}return t+s}}function sq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function qI(e,t,r){return typeof e=="function"?e(t,r):e}function uq(e,t,r={}){e=f2(e);const n=e.length,o=[];for(let i=0;it&&o.atd2(...i)).filter(Boolean);return y3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function hq(e,t={}){var{defaultOptions:r={}}=t,n=ch(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let b=0;b"0",ne);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=qI(y.delay,c,p)||0,V=d+F,B=V+E;let{offset:H=g3(k.length)}=R;H.length===1&&H[0]===0&&(H[1]=1);const q=length-k.length;q>0&&h3(H,q),k.length===1&&k.unshift(null),dq(T,k,A,H,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((b,S)=>{for(const w in b){const P=b[w];P.sort(fq);const y=[],C=[],h=[];for(let p=0;pt/(2*Math.sqrt(e*r));function bq(e,t,r){return e=t||e>t&&r<=t}const YI=({stiffness:e=xp.stiffness,damping:t=xp.damping,mass:r=xp.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,b=yq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let w;if(b<1){const P=v*Math.sqrt(1-b*b);w=y=>o-Math.exp(-b*v*y)*((-i+b*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else w=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=w(P);const y=P===0?i:b3(w,P,s.current),C=Math.abs(y)<=a,h=Math.abs(o-s.current)<=l;return s.done=C&&h,s.hasReachedTarget=bq(n,o,s.current),s}},wq=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const b={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,w=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),p=T=>C+h(T),c=T=>{const k=h(T),R=p(T);b.done=Math.abs(k)<=d,b.current=b.done?C:R};let g,m;const _=T=>{S(b.current)&&(g=T,m=YI({from:b.current,to:w(b.current),velocity:b3(p,T,b.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return _(0),T=>{let k=!1;return!m&&g===void 0&&(k=!0,c(T),_(T)),g!==void 0&&T>g?(b.hasReachedTarget=!0,m(T-g)):(b.hasReachedTarget=!1,!k&&c(T),b)}},X_=10,_q=1e4;function xq(e,t=rs){let r,n=X_,o=e(0);const i=[t(o.current)];for(;!o.done&&n<_q;)o=e(n),i.push(t(o.done?o.target:o.current)),r===void 0&&o.hasReachedTarget&&(r=n),n+=X_;const a=n-X_;return i.length===1&&i.push(o.current),{keyframes:i,duration:a/1e3,overshootDuration:(r??a)/1e3}}function XI(e){const t=new WeakMap;return(r={})=>{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,xq(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var b,S;let w;const P=a.length;if(s&&P<=2&&a.every(Sq)){const C=a[P-1],h=P===1?null:a[0];let p=0,c=0;const g=v==null?void 0:v.generator;if(g){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=g(E).current;c=(b=h)!==null&&b!==void 0?b:A,(P===1||P===2&&a[0]===null)&&(p=b3(F=>g(F).current,E,A))}else c=(S=h)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,p,d==null?void 0:d.includes("scale")),_=i(m);w=Object.assign(Object.assign({},_),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else w={easing:"ease",duration:i(o(0,100)).overshootDuration};return w}}}}const Sq=e=>typeof e!="string",Cq=XI(YI),Pq=XI(wq),Tq={any:0,all:1};function QI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=f2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const b=a.get(v.target);if(v.isIntersecting!==!!b)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else b&&(b(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Tq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Rb=new WeakMap;let qs;function Oq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function kq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Rb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return Oq(e,r)}})})}function Eq(e){e.forEach(kq)}function Mq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(Eq))}function Rq(e,t){qs||Mq();const r=f2(e);return r.forEach(n=>{let o=Rb.get(n);o||(o=new Set,Rb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Rb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Nb=new Set;let Tg;function Nq(){Tg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Nb.forEach(r=>r(t))},window.addEventListener("resize",Tg)}function Aq(e){return Nb.add(e),Tg||Nq(),()=>{Nb.delete(e),!Nb.size&&Tg&&(Tg=void 0)}}function ZI(e,t){return typeof e=="function"?Aq(e):Rq(e,t)}const Iq=50,uk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Lq=()=>({time:0,x:uk(),y:uk()}),Dq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ck(e,t,r,n){const o=r[t],{length:i,position:a}=Dq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=s2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Iq?0:HI(o.current-l,d)}function Fq(e,t,r){ck(e,"x",t,r),ck(e,"y",t,r),t.time=r}function jq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const JI={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},uC={start:0,center:.5,end:1};function dk(e,t,r=0){let n=0;if(uC[e]!==void 0&&(e=uC[e]),v3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const zq=[0,0];function Vq(e,t,r,n){let o=Array.isArray(e)?e:zq,i=0,a=0;return ds(e)?o=[e,e]:v3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,uC[e]?e:"0"]),i=dk(o[0],r,n),a=dk(o[1],t),i-a}const Bq={x:0,y:0};function Uq(e,t,r){let{offset:n=JI.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?jq(o,e):Bq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const b=n.length;for(let S=0;SHq(e,n.target,r),update:i=>{Fq(e,r,i),(n.offset||n.target)&&Uq(e,r,n)},notify:typeof t=="function"?()=>t(r):$q(t,r[o])}}function $q(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const V0=new WeakMap,fk=new WeakMap,Q_=new WeakMap,pk=e=>e===document.documentElement?window:e;function Gq(e,t={}){var{container:r=document.documentElement}=t,n=ch(t,["container"]);let o=Q_.get(r);o||(o=new Set,Q_.set(r,o));const i=Lq(),a=Wq(r,e,i,n);if(o.add(a),!V0.has(r)){const d=()=>{const b=performance.now();for(const S of o)S.measure();for(const S of o)S.update(b);for(const S of o)S.notify()};V0.set(r,d);const v=pk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&fk.set(r,ZI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=V0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=Q_.get(r);if(!v||(v.delete(a),v.size))return;const b=V0.get(r);V0.delete(r),b&&(pk(r).removeEventListener("scroll",b),(d=fk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",b))}}function Kq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!qq(e,t):e!==t}function qq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),Jq=e=>e.animateUpdates(),gk=e=>e.next(),vk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function cC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function mk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const eY={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=ch(n,["once"]);return QI(e,a=>{if(t(),mk(e,"viewenter",a),!o)return l=>{r(),mk(e,"viewleave",l)}},i)}},yk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),cC(e,t,n))},tY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=yk(e,"hoverstart",t),o=yk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},rY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),cC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),cC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Ab={inView:eY,hover:tY,press:rY},bk=["initial","animate",...Object.keys(Ab),"exit"],dC=new WeakMap;function nY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of bk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=hk(e[l]||a[l],e.variants)||{},d=ch(s,["transition"]);const v=Object.assign({},d);function*b(){var y,C;const h=d;d={};const p={};for(const T of bk){if(!o[T])continue;const k=hk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],p[R]=m3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(h)]),g=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),Kq(h[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=ep.get(r,T)),g.push(d2(r,T,d[T],p[T])))}),yield;const m=g.map(T=>T()).filter(Boolean);if(!m.length)return;const _=d;r.dispatchEvent(vk("motionstart",_)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(vk("motioncomplete",_))}).catch(p3)}const S=(y,C)=>()=>{o[y]=C,Z_(P)},w=()=>{for(const y in Ab){const C=Ab[y].isActive(e),h=i[y];C&&!h?i[y]=Ab[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&h&&(h(),delete i[y])}},P={update:y=>{r&&(e=y,w(),Z_(P))},setActive:(y,C)=>{r&&(o[y]=C,Z_(P))},animateUpdates:b,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,dC.set(r,P),w(),()=>{dC.delete(r),Qq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function eL(e){const t={},r=[];for(let n in e){const o=e[n];c2(n)&&(Up[n]&&(n=Up[n]),r.push(n),n=u2(n));let i=Array.isArray(o)?o[0]:o;const a=Hp.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=WI(r)),t}const oY=e=>`-${e.toLowerCase()}`,iY=e=>e.replace(/[A-Z]/g,oY);function aY(e={}){const t=eL(e);let r="";for(const n in t)r+=n.startsWith("--")?n:iY(n),r+=`: ${t[n]}; `;return r}const lY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:JI,animate:uq,animateStyle:d2,createMotionState:nY,createStyleString:aY,createStyles:eL,getAnimationData:d3,getStyleName:z1,glide:Pq,inView:QI,mountedStates:dC,resize:ZI,scroll:Gq,spring:Cq,stagger:lq,style:ep,timeline:pq,withControls:y3},Symbol.toStringTag,{value:"Module"})),sY=Dv(lY);function uY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dY=uY(function(e){return cY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const fY=Object.freeze(Object.defineProperty({__proto__:null,default:dY},Symbol.toStringTag,{value:"Module"})),pY=Dv(fY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=KA,r=eG,n=nI,o=bn,i=lt,a=Cd,l=sY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),b=s(r),S=s(a),w=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:w(["layout","layoutId","drag"]),animation:w(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:w(["exit"]),drag:w(["drag","dragControls"]),focus:w(["whileFocus"]),hover:w(["whileHover","onHoverStart","onHoverEnd"]),tap:w(["whileTap","onTap","onTapStart","onTapCancel"]),pan:w(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:w(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),h=Object.keys(P),p=h.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var zt={};function Ht(x){Object.assign(zt,x)}var mt=["","X","Y","Z"],Ot=["translate","scale","rotate","skew"],Jt=["transformPerspective","x","y","z"];Ot.forEach(function(x){return mt.forEach(function(M){return Jt.push(x+M)})});function Dr(x,M){return Jt.indexOf(x)-Jt.indexOf(M)}var ln=new Set(Jt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function nr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||nr(x)||(I||D!==void 0)&&(!!zt[x]||x==="opacity")}var Yt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,U=G===void 0?!0:G,ee=M.allowTransformNone,te=ee===void 0?!0:ee,ae="";$.sort(Dr);for(var de=!1,pe=$.length,me=0;me"u"?Y5:Nh;te(ee,U.current,M,G)}var q5={some:0,all:1};function Nh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,U=G===void 0?"some":G,ee=D.once;r.useEffect(function(){if(x){var te={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof U=="number"?U:q5[U]},ae=function(de){var pe,me=de.isIntersecting;if(M.isInView!==me&&(M.isInView=me,!(ee&&!me&&M.hasEnteredView))){me&&(M.hasEnteredView=!0),(pe=I.animationState)===null||pe===void 0||pe.setActive(e.AnimationType.InView,me);var u=I.getProps(),f=me?u.onViewportEnter:u.onViewportLeave;f==null||f(de)}};return Jr(I.getInstance(),te,ae)}},[x,z,$,U])}function Y5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var U=I.getProps().onViewportEnter;U==null||U(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Rh),tap:ii($5),focus:ii(He),hover:ii(bm)},X5=0,Q5=function(){return X5++},jo=function(){return ue(Q5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Ah(r.useContext(T))}function Ah(x){return x===null?!0:x.isPresent}function Ih(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Rt,ve=Array.isArray(Ae)?Ae:[Ae],Pe=ve.reduce($,{});wt===!1&&(Pe={});var Be=Ve.prevResolvedValues,tt=Be===void 0?{}:Be,yt=t.__assign(t.__assign({},tt),Pe),ct=function(nt){_e=!0,O.delete(nt),Ve.needsAnimating[nt]=!0};for(var vt in yt){var ft=Pe[vt],Ne=tt[vt];N.hasOwnProperty(vt)||(ft!==Ne?bt(ft)&&bt(Ne)?!Ih(ft,Ne)||On?ct(vt):Ve.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):Ve.protectedKeys[vt]=!0)}Ve.prevProp=Ae,Ve.prevResolvedValues=Pe,Ve.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(_e=!1),_e&&!er&&f.push.apply(f,t.__spreadArray([],t.__read(ve.map(function(nt){return{animation:nt,options:t.__assign({type:Ee},ae)}})),!1))},K=0;K=3;if(!(!me&&!u)){var f=pe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},f),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;me||(L&&L(z.lastMoveEvent,pe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,pe)}}},this.handlePointerMove=function(pe,me){if(z.lastMoveEvent=pe,z.lastMoveEventInfo=Vo(me,z.transformPagePoint),It(pe)&&pe.buttons===0){z.handlePointerUp(pe,me);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(pe,me){z.end();var u=z.handlers,f=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(me,z.transformPagePoint),z.history);z.startEvent&&f&&f(pe,N),O&&O(pe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var U=wo(M),ee=Vo(U,this.transformPagePoint),te=ee.point,ae=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},te),{timestamp:ae})];var de=I.onSessionStart;de&&de(M,Ja(ee,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Om(M)),velocity:fr(M,.1)}}function Om(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Uh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Hh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Wh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function km(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function Em(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function $h(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return $h(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function Gh(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Kh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var U,ee,te=0;teM?I="y":Math.abs(x.x)>M&&(I="x"),I}function t_(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new J5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Im(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,U=r.useRef(null),ee=r.useContext(g).transformPagePoint,te={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,pe){U.current=null,D&&D(de,pe)}};r.useEffect(function(){U.current!==null&&U.current.updateHandlers(te)});function ae(de){U.current=new Nl(de,te,{transformPagePoint:ee})}Ol($,"pointerdown",G&&ae),Ya(function(){return U.current&&U.current.end()})}var Xh={pan:ii(Im),drag:ii(t_)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,U=D[G];($=M[z])===null||$===void 0||$.call(M),U&&(M[z]=I[G](U))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,te=Vm(M,x,U);return $.length&&$.forEach(function(ae){var de=t.__read(ae,2),pe=de[0],me=de[1];x.getValue(pe).set(me)}),x.syncRender(),ee!==null&&window.scrollTo({top:ee}),{target:te,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Um(x,M,I,D){return Zh(M)?Bm(x,M,I,D):{target:M,transitionEnd:D}}var Hm=function(x,M,I,D){var z=Qh(x,M,D);return M=z.target,D=z.transitionEnd,Um(x,M,I,D)};function Wm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Wm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return Yh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,U=t.__rest(M,["transition","transitionEnd"]),ee=Co(U,$||{},x);if(z&&(G&&(G=z(G)),U&&(U=z(U)),ee&&(ee=z(ee))),D){cc(x,U,ee);var te=Hm(x,U,ee,G);G=te.transitionEnd,U=te.target}return t.__assign({transition:$,transitionEnd:G},U)},scrapeMotionValuesFromProps:kt,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Ze},$m=uf(ff),r0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=$e.has(M)?M:je(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Nt,build:function(x,M,I,D,z){he(M,I,D,z.transformTemplate)},render:Ge})),pf=function(x,M){return xt(x)?r0(M,{enableHardwareAcceleration:!1}):$m(M,{enableHardwareAcceleration:!0})};function n0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=n0(x,M.target.x),D=n0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",Gm={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(f){return G.push(f),hf}));var U=o.complex.parse(x);if(U.length>5)return z;var ee=o.complex.createTransformer(x),te=typeof U[0]!="number"?1:0,ae=D.x.scale*I.x,de=D.y.scale*I.y;U[0+te]/=ae,U[1+te]/=de;var pe=i.mix(ae,de,.5);typeof U[2+te]=="number"&&(U[2+te]/=pe),typeof U[3+te]=="number"&&(U[3+te]/=pe);var me=ee(U);if($){var u=0;me=me.replace(hf,function(){var f=G[u];return u++,f})}return me}},o0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,U=D.layoutId,ee=z.projection;Ht(o_),ee&&($!=null&&$.group&&$.group.add(ee),G!=null&&G.register&&U&&G.register(ee),ee.root.didUpdate(),ee.addEventListener("animationComplete",function(){I.safeToRemove()}),ee.setOptions(t.__assign(t.__assign({},ee.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,U=z.drag,ee=z.isPresent,te=G.projection;return te&&(te.isPresent=ee,U||I.layoutDependency!==$||$===void 0?te.willUpdate():this.safeToRemove(),I.isPresent!==ee&&(ee?te.promote():te.relegate()||S.default.postRender(function(){var ae;!((ae=te.getStack())===null||ae===void 0)&&ae.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(b.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(Le);return b.default.createElement(o0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Re),isPresent:I,safeToRemove:D}))}var o_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:Gm},i0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=Yt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var a0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=a0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Km=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,U,ee,te;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((U=M.opacity)!==null&&U!==void 0?U:1,0,Sc(D))):$&&(x.opacity=i.mix((ee=M.opacity)!==null&&ee!==void 0?ee:1,(te=I.opacity)!==null&&te!==void 0?te:1,D));for(var ae=0;aeM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var U=i.mix(G.min,G.max,M/100);M=U-G.min}if(typeof M=="number"){var ee=i.mix($.min,$.max,D);x===$&&(ee-=M),x.min=Vs(x.min,M,I,ee,z),x.max=Vs(x.max,M,I,ee,z)}}function qm(x,M,I,D,z){var $=t.__read(I,3),G=$[0],U=$[1],ee=$[2];Tn(x,M[G],M[U],M[ee],M.scale,D,z)}var i_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){qm(x.x,M,i_,I==null?void 0:I.x,D==null?void 0:D.x),qm(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function Ym(x){return x.translate===0&&x.scale===1}function We(x){return Ym(x.x)&&Ym(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var s0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Lh(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Xm="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Qm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,U=I.rotateX,ee=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),U&&($+="rotateX(".concat(U,"deg) ")),ee&&($+="rotateY(".concat(ee,"deg) "))}var te=x.x.scale*M.x,ae=x.y.scale*M.y;return $+="scale(".concat(te,", ").concat(ae,")"),$===Xm?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Lh(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function u0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(U,ee,te){var ae=this;ee===void 0&&(ee={}),te===void 0&&(te=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ae.isUpdating&&(ae.isUpdating=!1,ae.clearAllSnapshots())},this.updateProjection=function(){ae.nodes.forEach($i),ae.nodes.forEach(d0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=U,this.latestValues=ee,this.root=te?te.root||te:this,this.path=te?t.__spreadArray(t.__spreadArray([],t.__read(te.path),!1),[te],!1):[],this.parent=te,this.depth=te?te.depth+1:0,U&&this.root.registerPotentialNode(U,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function p0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){p0(x.x),p0(x.y)}var _f=u0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=u0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Xh),i0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function h0(x){return ze(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var g0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,U=ue(l_),ee=jo(),te=r.useMemo(function(){return{id:ee,initial:I,isPresent:D,custom:$,onExitComplete:function(ae){var de,pe;U.set(ae,!0);try{for(var me=t.__values(U.values()),u=me.next();!u.done;u=me.next()){var f=u.value;if(!f)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(pe=me.return)&&pe.call(me)}finally{if(de)throw de.error}}z==null||z()},register:function(ae){return U.set(ae,!1),function(){return U.delete(ae)}}}},G?void 0:[D]);return r.useMemo(function(){U.forEach(function(ae,de){return U.set(de,!1)})},[D]),v.useEffect(function(){!D&&!U.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:te},M)};function l_(){return new Map}var ba=function(x){return x.key||""};function v0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var Ct=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,U=x.presenceAffectsLayout,ee=U===void 0?!0:U,te=t.__read(Mc(),1),ae=te[0],de=r.useContext(Le).forceRender;de&&(ae=de);var pe=xf(),me=Pr(M),u=me,f=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,v0(me,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),f.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Ee){return v.createElement(Rc,{key:ba(Ee),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:ee},Ee)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=me.map(ba),se=j.length,ye=0;ye0?1:-1,G=x[z+$];if(!G)return x;var U=x[z],ee=G.layout,te=i.mix(ee.min,ee.max,.5);return $===1&&U.layout.max+I>te||$===-1&&U.layout.min+I.001?1/x:p_},Ef=!1;function h_(x){var M=Ki(1),I=Ki(1),D=_();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=Ct,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=Le,e.LazyMotion=m0,e.MotionConfig=Sf,e.MotionConfigContext=g,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Re,e.addPointerEvent=Tl,e.addScaleCorrector=Ht,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=h0,e.createMotionComponent=ze,e.domAnimation=w0,e.domMax=_0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Mh,e.isMotionValue=Yt,e.isValidMotionProp=Dn,e.m=g0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=u_,e.useAnimationControls=ay,e.useAnimationFrame=C0,e.useCycle=ly,e.useDeprecatedAnimatedState=dy,e.useDeprecatedInvertedScale=h_,e.useDomEvent=At,e.useDragControls=Ul,e.useElementScroll=S0,e.useForceUpdate=Mc,e.useInView=sy,e.useInstantLayoutTransition=T0,e.useInstantTransition=d_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=x0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=uy,e.useScroll=kf,e.useSpring=s_,e.useTime=P0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=_,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=S(pt),i=S(Xn),a=S(et),l=Je,s=t2,d=Xe,v=Gv;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,s.useAccordion)(),T=_.open,k=_.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,b({},m,{ref:p,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),g)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(PA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return h}});var r=w(Y),n=w(pt),o=Je,i=w(et),a=Xe,l=t2,s=Gv,d=CA,v=PA;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.open,m=p.icon,_=p.animate,T=p.className,k=p.disabled,R=p.children,E=P(p,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,_=_??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),b({},(0,i.default)(V.disabled),k)),T),H=r.default.useMemo(function(){return{open:g,icon:m,animate:_,disabled:k}},[g,m,_,k]);return r.default.createElement(l.AccordionContextProvider,{value:H},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var h=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(JR);var tL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var p2={},fh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(fh),i=S(pt),a=Je,l=S(Sr),s=S(et),d=Xe,v=_d;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.ripple,T=h.className,k=h.children;h.fullWidth;var R=w(h,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,H=V.variants,q=V.sizes;c=c??F.variant,g=g??F.size,m=m??F.color,_=_??F.ripple,T=(0,a.twMerge)(F.className||"",T);var ne=_!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(H[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),X=(0,s.default)(q[(0,l.default)(A.sizes,g,"md")]),re=(0,a.twMerge)((0,i.default)(Q,X,W),T);return r.default.createElement("button",b({},R,{ref:p,className:re,type:R.type||"button",onMouseDown:function(Z){var oe=R==null?void 0:R.onMouseDown;return _&&ne.create(Z,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof oe=="function"&&oe(Z)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(p2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Alert:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=AP,S=P(p2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),H=(0,v.useTheme)().alert,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.variants;m=m??q.variant,_=_??q.color,A=A??q.animate,k=k??q.open,R=R??q.action,E=E??q.onClose,F=(0,l.twMerge)(q.className||"",F);var re=(0,d.default)(W.alert),Z=(0,d.default)(W.action),oe=(0,d.default)(X[(0,s.default)(ne.variants,m,"filled")][(0,s.default)(ne.colors,_,"gray")]),fe=(0,l.twMerge)((0,i.default)(re,oe),F),ge=(0,i.default)(Z),ce={unmount:{opacity:0},mount:{opacity:1}},J=(0,a.default)(ce,A),ie=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,w({},B,{ref:g,role:"alert",className:"".concat(fe," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:J}),T&&ie,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:ge},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,action:b.propTypesAction,onClose:b.propTypesOnClose,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},h.displayName="MaterialTailwind.Alert";var p=h})(tL);var rL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=IP;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.className,_=h.color,T=h.withBorder,k=w(h,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,H=F.sizes,q=F.borderColor;c=c??A.variant,g=g??A.size,T=T??A.withBorder,_=_??A.color,m=(0,i.twMerge)(A.className||"",m);var ne=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(H[(0,a.default)(E.sizes,g,"md")]),W=(0,l.default)(q[(0,a.default)(E.colors,_,"gray")]),X,re=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),ne,Q,(X={},v(X,(0,l.default)(V.withBorder),T),v(X,W,T),X)),m);return r.default.createElement("img",b({},k,{ref:p,className:re}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(rL);var nL={},oL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(ot);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(oL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=oL;function s(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function d(){return d=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=(0,r.forwardRef)(function(h,p){var c=h.separator,g=h.fullWidth,m=h.className,_=h.children,T=w(h,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,g=g??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),g)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:p,className:F}),r.Children.map(_,function(H,q){if((0,r.isValidElement)(H)){var ne;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),H==null||(ne=H.props)===null||ne===void 0?void 0:ne.disabled))},H,q!==r.Children.count(_)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(nL);var iL={},w3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Spinner:function(){return C},default:function(){return h}});var r=b(ot),n=w(Y),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=KP;function v(){return v=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=(0,n.forwardRef)(function(p,c){var g=p.color,m=p.className,_=P(p,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;g=g??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,g,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),H,q;return n.default.createElement("svg",v({},_,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(H=_==null?void 0:_.width)!==null&&H!==void 0?H:24,height:(q=_==null?void 0:_.height)!==null&&q!==void 0?q:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var h=C})(w3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Button:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=P(fh),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=P(w3),b=_d;function S(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,H=B.valid,q=B.defaultProps,ne=B.styles,Q=ne.base,W=ne.variants,X=ne.sizes;m=m??q.variant,_=_??q.size,T=T??q.color,k=k??q.fullWidth,R=R??q.ripple,E=(0,a.twMerge)(q.className||"",E);var re=R!==void 0&&new o.default,Z=(0,s.default)(Q.initial),oe=(0,s.default)(W[(0,l.default)(H.variants,m,"filled")][(0,l.default)(H.colors,T,"gray")]),fe=(0,s.default)(X[(0,l.default)(H.sizes,_,"md")]),ge=(0,a.twMerge)((0,i.default)(Z,fe,oe,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":_==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":_==="lg"})),J;return r.default.createElement("button",w({},V,{disabled:(J=V.disabled)!==null&&J!==void 0?J:F,ref:g,className:ge,type:V.type||"button",onMouseDown:function(ie){var ue=V==null?void 0:V.onMouseDown;return R&&re.create(ie,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(ie)}}),F&&r.default.createElement(v.default,{className:ce}),A)});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),fullWidth:b.propTypesFullWidth,ripple:b.propTypesRipple,className:b.propTypesClassName,children:b.propTypesChildren,loading:b.propTypesLoading},h.displayName="MaterialTailwind.Button";var p=h})(iL);var aL={},lL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=xd;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.shadow,_=h.floated,T=h.className,k=h.children,R=w(h,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,H=F.variants;c=c??A.variant,g=g??A.color,m=m??A.shadow,_=_??A.floated,T=(0,i.twMerge)(A.className||"",T);var q=(0,l.default)(B.initial),ne=(0,l.default)(H[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"white")]),Q=(0,i.twMerge)((0,o.default)(q,ne,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),_)),T);return r.default.createElement("div",b({},R,{ref:p,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(lL);var sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var w=S})(sL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{CardFooter:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=xd;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,_=m.defaultProps,T=m.styles.base;h=h??_.divider,p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.CardFooter";var P=w})(uL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return p},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return b.CardFooter},default:function(){return c}});var r=y(Y),n=y(ot),o=y(pt),i=Je,a=y(Sr),l=y(et),s=Xe,d=lL,v=sL,b=uL,S=xd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.variant,T=g.color,k=g.shadow,R=g.className,E=g.children,A=C(g,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,H=F.valid,q=B.base,ne=B.variants;_=_??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(q.initial),W=(0,l.default)(ne[(0,a.default)(H.variants,_,"filled")][(0,a.default)(H.colors,T,"white")]),X=(0,i.twMerge)((0,o.default)(Q,W,w({},(0,l.default)(q.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:X}),E)});p.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},p.displayName="MaterialTailwind.Card";var c=Object.assign(p,{Header:d.CardHeader,Body:v.CardBody,Footer:b.CardFooter})})(aL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Checkbox:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().checkbox,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var Z=T!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("label",S({},E,{className:fe,htmlFor:B.id||re,onMouseDown:function(ie){var ue=E==null?void 0:E.onMouseDown;return T&&Z.create(ie,"dark"),typeof ue=="function"&&ue(ie)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:ge,id:B.id||re})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var h=C})(cL);var dL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Chip:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=BP,S=P(p2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,H=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),q=(0,v.useTheme)().chip,ne=q.defaultProps,Q=q.valid,W=q.styles,X=W.base,re=W.variants,Z=W.sizes;m=m??ne.variant,_=_??ne.size,T=T??ne.color,F=F??ne.animate,R=R??ne.open,A=A??ne.action,E=E??ne.onClose,V=(0,l.twMerge)(ne.className||"",V);var oe=(0,d.default)(X.chip),fe=(0,d.default)(X.action),ge=(0,d.default)(X.icon),ce=(0,d.default)(re[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),J=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].chip),ie=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].action),ue=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].icon),Se=(0,l.twMerge)((0,i.default)(oe,ce,J),V),Ce=(0,i.default)(fe,ie),Me=(0,i.default)(ge,ue),Le=(0,i.default)({"ml-4":k&&_==="sm","ml-[18px]":k&&_==="md","ml-5":k&&_==="lg","mr-5":E}),Re={unmount:{opacity:0},mount:{opacity:1}},be=(0,a.default)(Re,F),ke=r.default.createElement("div",{className:Me},k),ze=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ze,null,R&&r.default.createElement(o.m.div,w({},H,{ref:g,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:be}),k&&ke,r.default.createElement("span",{className:Le},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,onClose:b.propTypesOnClose,action:b.propTypesAction,animate:b.propTypesAnimate,className:b.propTypesClassName,value:b.propTypesValue},h.displayName="MaterialTailwind.Chip";var p=h})(dL);var fL={},pL={exports:{}},jt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Jv=Symbol.for("react.element"),hY=Symbol.for("react.portal"),gY=Symbol.for("react.fragment"),vY=Symbol.for("react.strict_mode"),mY=Symbol.for("react.profiler"),yY=Symbol.for("react.provider"),bY=Symbol.for("react.context"),wY=Symbol.for("react.forward_ref"),_Y=Symbol.for("react.suspense"),xY=Symbol.for("react.memo"),SY=Symbol.for("react.lazy"),wk=Symbol.iterator;function CY(e){return e===null||typeof e!="object"?null:(e=wk&&e[wk]||e["@@iterator"],typeof e=="function"?e:null)}var hL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gL=Object.assign,vL={};function ph(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}ph.prototype.isReactComponent={};ph.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ph.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mL(){}mL.prototype=ph.prototype;function _3(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}var x3=_3.prototype=new mL;x3.constructor=_3;gL(x3,ph.prototype);x3.isPureReactComponent=!0;var _k=Array.isArray,yL=Object.prototype.hasOwnProperty,S3={current:null},bL={key:!0,ref:!0,__self:!0,__source:!0};function wL(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)yL.call(t,n)&&!bL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Ly=new WeakMap,Dy={},ex=0,xL=function(e){return e&&(e.host||xL(e.parentNode))},RY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},NY=function(e,t,r,n){var o=RY(t,Array.isArray(e)?e:[e]);Dy[r]||(Dy[r]=new WeakMap);var i=Dy[r],a=[],l=new Set,s=new Set(o),d=function(b){!b||l.has(b)||(l.add(b),d(b.parentNode))};o.forEach(d);var v=function(b){!b||s.has(b)||Array.prototype.forEach.call(b.children,function(S){if(l.has(S))v(S);else try{var w=S.getAttribute(n),P=w!==null&&w!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Ly.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(h){console.error("aria-hidden: cannot operate on ",S,h)}})};return v(t),l.clear(),ex++,function(){a.forEach(function(b){var S=Nf.get(b)-1,w=i.get(b)-1;Nf.set(b,S),i.set(b,w),S||(Ly.has(b)||b.removeAttribute(n),Ly.delete(b)),w||b.removeAttribute(r)}),ex--,ex||(Nf=new WeakMap,Nf=new WeakMap,Ly=new WeakMap,Dy={})}},AY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=MY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),NY(n,o,r,"aria-hidden")):function(){return null}};/*! +* tabbable 6.2.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var IY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],fC=IY.join(","),SL=typeof Element>"u",cv=SL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,V1=!SL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},B1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},LY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},DY=function(t,r,n){if(B1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(fC));return r&&cv.call(t,fC)&&o.unshift(t),o=o.filter(n),o},FY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!B1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=cv.call(a,fC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var b=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!B1(b,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(b&&S){var w=e(b===!0?a.children:b.children,!0,n);n.flatten?o.push.apply(o,w):o.push({scopeParent:a,candidates:w})}else i.unshift.apply(i,a.children)}}return o},CL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},PL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||LY(t))&&!CL(t)?0:t.tabIndex},jY=function(t,r){var n=PL(t);return n<0&&r&&!CL(t)?0:n},zY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},TL=function(t){return t.tagName==="INPUT"},VY=function(t){return TL(t)&&t.type==="hidden"},BY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},UY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(cv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=V1(t);if(s&&!s.shadowRoot&&o(s)===!0)return Sk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if(GY(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Sk(t);return!1},qY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},QY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=jY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(zY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},U1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=FY([t],r.includeContainer,{filter:Ck.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:XY}):n=DY(t,r.includeContainer,Ck.bind(null,r)),QY(n)},OL={exports:{}},Ni={};/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var kL=we,ki=pp;function Fe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pC=Object.prototype.hasOwnProperty,ZY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Pk={},Tk={};function JY(e){return pC.call(Tk,e)?!0:pC.call(Pk,e)?!1:ZY.test(e)?Tk[e]=!0:(Pk[e]=!0,!1)}function eX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tX(e,t,r,n){if(t===null||typeof t>"u"||eX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var P3=/[\-:]([a-z])/g;function T3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function O3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` +`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{rx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ug(e):""}function rX(e){switch(e.tag){case 5:return ug(e.type);case 16:return ug("Lazy");case 13:return ug("Suspense");case 19:return ug("SuspenseList");case 0:case 2:case 15:return e=nx(e.type,!1),e;case 11:return e=nx(e.type.render,!1),e;case 1:return e=nx(e.type,!0),e;default:return""}}function mC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rp:return"Fragment";case tp:return"Portal";case hC:return"Profiler";case k3:return"StrictMode";case gC:return"Suspense";case vC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RL:return(e.displayName||"Context")+".Consumer";case ML:return(e._context.displayName||"Context")+".Provider";case E3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M3:return t=e.displayName||null,t!==null?t:mC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return mC(e(t))}catch{}}return null}function nX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mC(t);case 8:return t===k3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oX(e){var t=AL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jy(e){e._valueTracker||(e._valueTracker=oX(e))}function IL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function H1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function kk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LL(e,t){t=t.checked,t!=null&&O3(e,"checked",t,!1)}function bC(e,t){LL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wC(e,t.type,r):t.hasOwnProperty("defaultValue")&&wC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ek(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function wC(e,t,r){(t!=="number"||H1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var cg=Array.isArray;function Sp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Og={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iX=["Webkit","ms","Moz","O"];Object.keys(Og).forEach(function(e){iX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Og[t]=Og[e]})});function zL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Og.hasOwnProperty(e)&&Og[e]?(""+t).trim():t+"px"}function VL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=zL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var aX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function SC(e,t){if(t){if(aX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Fe(62))}}function CC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var PC=null;function R3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var TC=null,Cp=null,Pp=null;function Nk(e){if(e=rm(e)){if(typeof TC!="function")throw Error(Fe(280));var t=e.stateNode;t&&(t=y2(t),TC(e.stateNode,e.type,t))}}function BL(e){Cp?Pp?Pp.push(e):Pp=[e]:Cp=e}function UL(){if(Cp){var e=Cp,t=Pp;if(Pp=Cp=null,Nk(e),t)for(e=0;e>>=0,e===0?32:31-(mX(e)/yX|0)|0}var Vy=64,By=4194304;function dg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function K1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=dg(l):(i&=a,i!==0&&(n=dg(i)))}else a=r&~o,a!==0?n=dg(a):i!==0&&(n=dg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function em(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function xX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Eg),Bk=" ",Uk=!1;function sD(e,t){switch(e){case"keyup":return XX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var np=!1;function ZX(e,t){switch(e){case"compositionend":return uD(t);case"keypress":return t.which!==32?null:(Uk=!0,Bk);case"textInput":return e=t.data,e===Bk&&Uk?null:e;default:return null}}function JX(e,t){if(np)return e==="compositionend"||!z3&&sD(e,t)?(e=aD(),Fb=D3=uu=null,np=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gk(r)}}function pD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hD(){for(var e=window,t=H1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=H1(e.document)}return t}function V3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sQ(e){var t=hD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pD(r.ownerDocument.documentElement,r)){if(n!==null&&V3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Kk(r,i);var a=Kk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,op=null,NC=null,Rg=null,AC=!1;function qk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;AC||op==null||op!==H1(n)||(n=op,"selectionStart"in n&&V3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Rg&&yv(Rg,n)||(Rg=n,n=X1(NC,"onSelect"),0lp||(e.current=zC[lp],zC[lp]=null,lp--)}function cr(e,t){lp++,zC[lp]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function $p(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Z1(){yr(Jo),yr(go)}function t8(e,t,r){if(go.current!==Ru)throw Error(Fe(168));cr(go,t),cr(Jo,r)}function SD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Fe(108,nX(e)||"Unknown",o));return Ir({},r,n)}function J1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function r8(e,t,r){var n=e.stateNode;if(!n)throw Error(Fe(169));r?(e=SD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,b2=!1,mx=!1;function CD(e){Yl===null?Yl=[e]:Yl.push(e)}function wQ(e){b2=!0,CD(e)}function Hu(){if(!mx&&Yl!==null){mx=!0;var e=0,t=Qt;try{var r=Yl;for(Qt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return xr&&zc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),xr&&zc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===rp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Fy:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===rp){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&u8(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=G0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===rp?(p=ed(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=$b(c.type,c.key,c.props,null,h.mode,g),g.ref=G0(h,p,c),g.return=h,h=g)}return a(h);case tp:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=Px(c,h.mode,g),p.return=h,h=p}return a(h);case eu:return _=c._init,C(h,p,_(c._payload),g)}if(cg(c))return P(h,p,c,g);if(B0(c))return y(h,p,c,g);qy(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=Cx(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Kp=ND(!0),AD=ND(!1),nm={},yl=Uu(nm),xv=Uu(nm),Sv=Uu(nm);function Yc(e){if(e===nm)throw Error(Fe(174));return e}function Y3(e,t){switch(cr(Sv,t),cr(xv,e),cr(yl,nm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xC(t,e)}yr(yl),cr(yl,t)}function qp(){yr(yl),yr(xv),yr(Sv)}function ID(e){Yc(Sv.current);var t=Yc(yl.current),r=xC(t,e.type);t!==r&&(cr(xv,e),cr(yl,r))}function X3(e){xv.current===e&&(yr(yl),yr(xv))}var Er=Uu(0);function iw(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yx=[];function Q3(){for(var e=0;er?r:4,e(!0);var n=bx.transition;bx.transition={};try{e(!1),t()}finally{Qt=r,bx.transition=n}}function XD(){return ca().memoizedState}function CQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},QD(e))ZD(t,r);else if(r=kD(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),JD(r,t,n)}}function PQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(QD(e))ZD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,K3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=kD(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),JD(r,t,n))}}function QD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function ZD(e,t){Ng=aw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function JD(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,A3(e,r)}}var lw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},TQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:d8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bb(4194308,4,$D.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:c8,useDebugValue:rT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=c8(!1),t=e[0];return e=SQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=t(),Nn===null)throw Error(Fe(349));(ud&30)!==0||FD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,d8(zD.bind(null,n,i,e),[e]),n.flags|=2048,Tv(9,jD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Cv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[_v]=n,sF(e,t,!1,!1),t.stateNode=e;e:{switch(a=CC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oXp&&(t.flags|=128,n=!0,K0(i,!1),t.lanes=4194304)}else{if(!n)if(e=iw(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),K0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Xp&&r!==1073741824&&(t.flags|=128,n=!0,K0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return sT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Fe(156,t.tag))}function IQ(e,t){switch(U3(t),t.tag){case 1:return ei(t.type)&&Z1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qp(),yr(Jo),yr(go),Q3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return X3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Fe(340));Gp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return qp(),null;case 10:return G3(t.type._context),null;case 22:case 23:return sT(),null;case 24:return null;default:return null}}var Xy=!1,fo=!1,LQ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function dp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function QC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var w8=!1;function DQ(e,t){if(IC=q1,e=hD(),V3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(LC={focusedElem:e,selectionRange:r},q1=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(g){Br(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return P=w8,w8=!1,P}function Ag(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&QC(t,r,i)}o=o.next}while(o!==n)}}function x2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ZC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function dF(e){var t=e.alternate;t!==null&&(e.alternate=null,dF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[_v],delete t[jC],delete t[yQ],delete t[bQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fF(e){return e.tag===5||e.tag===3||e.tag===4}function _8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function JC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Q1));else if(n!==4&&(e=e.child,e!==null))for(JC(e,t,r),e=e.sibling;e!==null;)JC(e,t,r),e=e.sibling}function e4(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(e4(e,t,r),e=e.sibling;e!==null;)e4(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)pF(e,t,r),r=r.sibling}function pF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(h2,r)}catch{}switch(r.tag){case 5:fo||dp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?vx(e.parentNode,r):e.nodeType===1&&vx(e,r),vv(e)):vx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&QC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(dp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function x8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new LQ),t.forEach(function(n){var o=$Q.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*jQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,cw=0,($t&6)!==0)throw Error(Fe(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-aT?Jc(e,0):iT|=r),ti(e,t)}function _F(e,t){t===0&&((e.mode&1)===0?t=1:(t=By,By<<=1,(By&130023424)===0&&(By=4194304)));var r=No();e=hs(e,t),e!==null&&(em(e,t,r),ti(e,r))}function WQ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),_F(e,r)}function $Q(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(t),_F(e,r)}var xF;xF=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,NQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&PD(t,tw,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ub(e,t),e=t.pendingProps;var o=$p(t,go.current);Op(t,r),o=J3(null,t,n,e,o,r);var i=eT();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,J1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,q3(t),o.updater=w2,t.stateNode=o,o._reactInternals=t,WC(t,n,e,r),t=KC(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&B3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ub(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=KQ(n),e=Oa(n,e),o){case 0:t=GC(null,t,n,e,r);break e;case 1:t=m8(null,t,n,e,r);break e;case 11:t=g8(null,t,n,e,r);break e;case 14:t=v8(null,t,n,Oa(n.type,e),r);break e}throw Error(Fe(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),GC(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),m8(e,t,n,o,r);case 3:e:{if(iF(t),e===null)throw Error(Fe(387));n=t.pendingProps,i=t.memoizedState,o=i.element,ED(e,t),ow(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yp(Error(Fe(423)),t),t=y8(e,t,n,r,o);break e}else if(n!==o){o=Yp(Error(Fe(424)),t),t=y8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=AD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Gp(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return ID(t),e===null&&BC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,DC(n,o)?a=null:i!==null&&DC(n,i)&&(t.flags|=32),oF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&BC(t),null;case 13:return aF(e,t,r);case 4:return Y3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Kp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),g8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(rw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),UC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Fe(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),UC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Op(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),v8(e,t,n,o,r);case 15:return rF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Ub(e,t),t.tag=1,ei(n)?(e=!0,J1(t)):e=!1,Op(t,r),RD(t,n,o),WC(t,n,o,r),KC(null,t,n,!0,e,r);case 19:return lF(e,t,r);case 22:return nF(e,t,r)}throw Error(Fe(156,t.tag))};function SF(e,t){return YL(e,t)}function GQ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new GQ(e,t,r,n)}function cT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KQ(e){if(typeof e=="function")return cT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E3)return 11;if(e===M3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $b(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")cT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case rp:return ed(r.children,o,i,t);case k3:a=8,o|=8;break;case hC:return e=ra(12,r,t,o|2),e.elementType=hC,e.lanes=i,e;case gC:return e=ra(13,r,t,o),e.elementType=gC,e.lanes=i,e;case vC:return e=ra(19,r,t,o),e.elementType=vC,e.lanes=i,e;case NL:return C2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ML:a=10;break e;case RL:a=9;break e;case E3:a=11;break e;case M3:a=14;break e;case eu:a=16,n=null;break e}throw Error(Fe(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function C2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=NL,e.lanes=r,e.stateNode={isHidden:!1},e}function Cx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Px(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ix(0),this.expirationTimes=ix(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ix(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function dT(e,t,r,n,o,i,a,l,s){return e=new qQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},q3(i),e}function YQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OF)}catch(e){console.error(e)}}OF(),OL.exports=Ni;var Nu=OL.exports;const kF=["top","right","bottom","left"],M8=["start","end"],R8=kF.reduce((e,t)=>e.concat(t,t+"-"+M8[0],t+"-"+M8[1]),[]),Ua=Math.min,po=Math.max,pw=Math.round,Jy=Math.floor,Au=e=>({x:e,y:e}),eZ={left:"right",right:"left",bottom:"top",top:"bottom"},tZ={start:"end",end:"start"};function i4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function gT(e){return e==="x"?"y":"x"}function vT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function mT(e){return gT(vs(e))}function EF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=mT(e),i=vT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gw(a)),[a,gw(a)]}function rZ(e){const t=gw(e);return[hw(e),t,hw(t)]}function hw(e){return e.replace(/start|end/g,t=>tZ[t])}function nZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function oZ(e,t,r,n){const o=ja(e);let i=nZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(hw)))),i}function gw(e){return e.replace(/left|right|bottom|top/g,t=>eZ[t])}function iZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function yT(e){return typeof e!="number"?iZ(e):{top:e,right:e,bottom:e,left:e}}function Qp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function N8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=mT(t),l=vT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,b=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let w;switch(s){case"top":w={x:v,y:n.y-o.height};break;case"bottom":w={x:v,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:b};break;case"left":w={x:n.x-o.width,y:b};break;default:w={x:n.x,y:n.y}}switch(ja(t)){case"start":w[a]-=S*(r&&d?-1:1);break;case"end":w[a]+=S*(r&&d?-1:1);break}return w}const aZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:b}=N8(d,n,s),S=n,w={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const b=yT(v),S={x:r,y:n},w=mT(o),P=vT(w),y=await a.getDimensions(d),C=w==="y",h=C?"top":"left",p=C?"bottom":"right",c=C?"clientHeight":"clientWidth",g=i.reference[P]+i.reference[w]-S[w]-i.floating[P],m=S[w]-i.reference[w],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=_?_[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(_)))&&(T=l.floating[c]||i.floating[P]);const k=g/2-m/2,R=T/2-y[P]/2-1,E=Ua(b[h],R),A=Ua(b[p],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,H=i4(F,B,V),q=!s.arrow&&ja(o)!=null&&B!==H&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?hw(o)!==o:!1):!0)}const uZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:b,allowedPlacements:S=R8,autoAlignment:w=!0,...P}=Ha(e,t),y=b!==void 0||S===R8?sZ(b||null,w,S):S,C=await fd(t,P),h=((r=a.autoPlacement)==null?void 0:r.index)||0,p=y[h];if(p==null)return{};const c=EF(p,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==p)return{reset:{placement:y[0]}};const g=[C[Ei(p)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:p,overflows:g}],_=y[h+1];if(_)return{data:{index:h+1,overflows:m},reset:{placement:_}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:h+1,overflows:m},reset:{placement:R}}:{}}}},cZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const h=Ei(o),p=vs(l),c=Ei(l)===l,g=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[gw(l)]:rZ(l)),_=P!=="none";!S&&_&&m.push(...oZ(l,y,P,g));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[h]),b){const B=EF(o,a,g);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,H=T[B];if(H)return{data:{index:B,overflows:E},reset:{placement:H}};let q=(F=E.filter(ne=>ne.overflows[0]<=0).sort((ne,Q)=>ne.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!q)switch(w){case"bestFit":{var V;const ne=(V=E.filter(Q=>{if(_){const W=vs(Q.placement);return W===p||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,X)=>W+X,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];ne&&(q=ne);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function A8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I8(e){return kF.some(t=>e[t]>=0)}const dZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=A8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:I8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=A8(i,r.floating);return{data:{escapedOffsets:a,escaped:I8(a)}}}default:return{}}}}};function MF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function fZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Qp(MF(o)))}const pZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),b=fZ(v),S=Qp(MF(v)),w=yT(l);function P(){if(b.length===2&&b[0].left>b[1].right&&s!=null&&d!=null)return b.find(C=>s>C.left-w.left&&sC.top-w.top&&d=2){if(vs(r)==="y"){const E=b[0],A=b[b.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,H=F?E.left:A.left,q=F?E.right:A.right,ne=q-H,Q=B-V;return{top:V,bottom:B,left:H,right:q,width:ne,height:Q,x:H,y:V}}const C=Ei(r)==="left",h=po(...b.map(E=>E.right)),p=Ua(...b.map(E=>E.left)),c=b.filter(E=>C?E.left===p:E.right===h),g=c[0].top,m=c[c.length-1].bottom,_=p,T=h,k=T-_,R=m-g;return{top:g,bottom:m,left:_,right:T,width:k,height:R,x:_,y:g}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function hZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,b=Ha(t,e);let{mainAxis:S,crossAxis:w,alignmentAxis:P}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof P=="number"&&(w=l==="end"?P*-1:P),s?{x:w*v,y:S*d}:{x:S*d,y:w*v}}const gZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await hZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},vZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:h,y:p}=C;return{x:h,y:p}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),b=vs(Ei(o)),S=gT(b);let w=d[S],P=d[b];if(i){const C=S==="y"?"top":"left",h=S==="y"?"bottom":"right",p=w+v[C],c=w-v[h];w=i4(p,w,c)}if(a){const C=b==="y"?"top":"left",h=b==="y"?"bottom":"right",p=P+v[C],c=P-v[h];P=i4(p,P,c)}const y=l.fn({...t,[S]:w,[b]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[b]:a}}}}}},mZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},b=vs(o),S=gT(b);let w=v[S],P=v[b];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",g=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;wm&&(w=m)}if(d){var h,p;const c=S==="y"?"width":"height",g=["top","left"].includes(Ei(o)),m=i.reference[b]-i.floating[c]+(g&&((h=a.offset)==null?void 0:h[b])||0)+(g?0:C.crossAxis),_=i.reference[b]+i.reference[c]+(g?0:((p=a.offset)==null?void 0:p[b])||0)-(g?C.crossAxis:0);P_&&(P=_)}return{[S]:w,[b]:P}}}},yZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),b=Ei(o),S=ja(o),w=vs(o)==="y",{width:P,height:y}=i.floating;let C,h;b==="top"||b==="bottom"?(C=b,h=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=b,C=S==="end"?"top":"bottom");const p=y-v.top-v.bottom,c=P-v.left-v.right,g=Ua(y-v[C],p),m=Ua(P-v[h],c),_=!t.middlewareData.shift;let T=g,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=p),_&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);w?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function E2(){return typeof window<"u"}function vh(e){return RF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(RF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RF(e){return E2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return E2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return E2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function L8(e){return!E2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function om(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function bZ(e){return["table","td","th"].includes(vh(e))}function M2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bT(e){const t=wT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function wZ(e){let t=Iu(e);for(;wl(t)&&!Zp(t);){if(bT(t))return t;if(M2(t))return null;t=Iu(t)}return null}function wT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zp(e){return["html","body","#document"].includes(vh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function R2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(vh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||L8(e)&&e.host||_l(e);return L8(t)?t.host:t}function NF(e){const t=Iu(e);return Zp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&om(t)?t:NF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=NF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=a4(a);return t.concat(a,a.visualViewport||[],om(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function a4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=pw(r)!==i||pw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function _T(e){return Wa(e)?e:e.contextElement}function Ep(e){const t=_T(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=AF(t);let a=(i?pw(r.width):r.width)/n,l=(i?pw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _Z=Au(0);function IF(e){const t=Pi(e);return!wT()||!t.visualViewport?_Z:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=_T(e);let a=Au(1);t&&(n?Wa(n)&&(a=Ep(n)):a=Ep(e));const l=xZ(i,r,n)?IF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=Pi(i),w=n&&Wa(n)?Pi(n):n;let P=S,y=a4(P);for(;y&&n&&w!==P;){const C=Ep(y),h=y.getBoundingClientRect(),p=$a(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=Pi(y),y=a4(P)}}return Qp({width:v,height:b,x:s,y:d})}function SZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?M2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),b=wl(n);if((b||!b&&!i)&&((vh(n)!=="body"||om(a))&&(s=R2(n)),wl(n))){const S=pd(n);d=Ep(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function CZ(e){return Array.from(e.getClientRects())}function l4(e,t){const r=R2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function PZ(e){const t=_l(e),r=R2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+l4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function TZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=wT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function OZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?Ep(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function D8(e,t,r){let n;if(t==="viewport")n=TZ(e,r);else if(t==="document")n=PZ(_l(e));else if(Wa(t))n=OZ(t,r);else{const o=IF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Qp(n)}function LF(e,t){const r=Iu(e);return r===t||!Wa(r)||Zp(r)?!1:$a(r).position==="fixed"||LF(r,t)}function kZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&vh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Zp(a);){const l=$a(a),s=bT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||om(a)&&!s&&LF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function EZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?M2(t)?[]:kZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const b=D8(t,v,o);return d.top=po(b.top,d.top),d.right=Ua(b.right,d.right),d.bottom=Ua(b.bottom,d.bottom),d.left=po(b.left,d.left),d},D8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function MZ(e){const{width:t,height:r}=AF(e);return{width:t,height:r}}function RZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((vh(t)!=="body"||om(o))&&(l=R2(t)),n){const w=pd(t,!0,i,t);s.x=w.x+t.clientLeft,s.y=w.y+t.clientTop}else o&&(s.x=l4(o));let d=0,v=0;if(o&&!n&&!i){const w=o.getBoundingClientRect();v=w.top+l.scrollTop,d=w.left+l.scrollLeft-l4(o,w)}const b=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:b,y:S,width:a.width,height:a.height}}function Tx(e){return $a(e).position==="static"}function F8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function DF(e,t){const r=Pi(e);if(M2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Zp(o);){if(Wa(o)&&!Tx(o))return o;o=Iu(o)}return r}let n=F8(e,t);for(;n&&bZ(n)&&Tx(n);)n=F8(n,t);return n&&Zp(n)&&Tx(n)&&!bT(n)?r:n||wZ(e)||r}const NZ=async function(e){const t=this.getOffsetParent||DF,r=this.getDimensions,n=await r(e.floating);return{reference:RZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function AZ(e){return $a(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:SZ,getDocumentElement:_l,getClippingRect:EZ,getOffsetParent:DF,getElementRects:NZ,getClientRects:CZ,getDimensions:MZ,getScale:Ep,isElement:Wa,isRTL:AZ};function IZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:b,height:S}=e.getBoundingClientRect();if(l||t(),!b||!S)return;const w=Jy(v),P=Jy(o.clientWidth-(d+b)),y=Jy(o.clientHeight-(v+S)),C=Jy(d),p={rootMargin:-w+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function g(m){const _=m[0].intersectionRatio;if(_!==s){if(!c)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(g,p)}r.observe(e)}return a(!0),i}function LZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=_T(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?IZ(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const h=pd(e);y&&(h.x!==y.x||h.y!==y.y||h.width!==y.width||h.height!==y.height)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}const Gb=fd,jF=gZ,DZ=uZ,FZ=vZ,jZ=cZ,zZ=yZ,VZ=dZ,j8=lZ,BZ=pZ,UZ=mZ,zF=(e,t,r)=>{const n=new Map,o={platform:FF,...r},i={...o.platform,_c:n};return aZ(e,t,{...o,platform:i})},HZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?j8({element:t.current,padding:r}).fn(o):{}:t?j8({element:t,padding:r}).fn(o):{}}}};var Kb=typeof document<"u"?we.useLayoutEffect:we.useEffect;function vw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!vw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!vw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function z8(e){const t=we.useRef(e);return Kb(()=>{t.current=e}),t}function WZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=we.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=we.useState(n);vw(d,n)||v(n);const b=we.useRef(null),S=we.useRef(null),w=we.useRef(l),P=z8(i),y=z8(o),[C,h]=we.useState(null),[p,c]=we.useState(null),g=we.useCallback(E=>{b.current!==E&&(b.current=E,h(E))},[]),m=we.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),_=we.useCallback(()=>{if(!b.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),zF(b.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!vw(w.current,F)&&(w.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Kb(()=>{a===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=we.useRef(!1);Kb(()=>(T.current=!0,()=>{T.current=!1}),[]),Kb(()=>{if(C&&p){if(P.current)return P.current(C,p,_);_()}},[C,p,_,P]);const k=we.useMemo(()=>({reference:b,floating:S,setReference:g,setFloating:m}),[g,m]),R=we.useMemo(()=>({reference:C,floating:p}),[C,p]);return we.useMemo(()=>({...l,update:_,refs:k,elements:R,reference:g,floating:m}),[l,_,k,R,g,m])}var Mr=typeof document<"u"?we.useLayoutEffect:we.useEffect;let Ox=!1,$Z=0;const V8=()=>"floating-ui-"+$Z++;function GZ(){const[e,t]=we.useState(()=>Ox?V8():void 0);return Mr(()=>{e==null&&t(V8())},[]),we.useEffect(()=>{Ox||(Ox=!0)},[]),e}const KZ=_L.useId,kv=KZ||GZ;function VF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const BF=we.createContext(null),UF=we.createContext(null),mh=()=>{var e;return((e=we.useContext(BF))==null?void 0:e.id)||null},Od=()=>we.useContext(UF),qZ=e=>{const t=kv(),r=Od(),n=mh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},YZ=e=>{let{children:t,id:r}=e;const n=mh();return we.createElement(BF.Provider,{value:we.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},XZ=e=>{let{children:t}=e;const r=we.useRef([]),n=we.useCallback(a=>{r.current=[...r.current,a]},[]),o=we.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=we.useState(()=>VF())[0];return we.createElement(UF.Provider,{value:we.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function xT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function HF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function ST(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof ST(e).Element:!1}function hd(e){return e?e instanceof ST(e).HTMLElement:!1}function QZ(e){if(typeof ShadowRoot>"u")return!1;const t=ST(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WF(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(xT())||t.test(HF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $F(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function s4(){return/apple/i.test(navigator.vendor)}function GF(){return xT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function mw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=we.useRef(e);return Mr(()=>{t.current=e}),t}const B8="data-floating-ui-safe-polygon";function qb(e,t,r){return r&&!mw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const ZZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:b,elements:{domReference:S,floating:w},refs:P}=e,y=Od(),C=mh(),h=oa(o),p=oa(n),c=we.useRef(),g=we.useRef(),m=we.useRef(),_=we.useRef(),T=we.useRef(!0),k=we.useRef(!1),R=we.useRef(()=>{}),E=we.useCallback(()=>{var B;const H=(B=v.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"},[v]);we.useEffect(()=>{if(!r)return;function B(){clearTimeout(g.current),clearTimeout(_.current),T.current=!0}return b.on("dismiss",B),()=>{b.off("dismiss",B)}},[r,b]),we.useEffect(()=>{if(!r||!h.current||!s)return;function B(){E()&&d(!1)}const H=Yo(w).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[w,s,d,r,h,v,E]);const A=we.useCallback(function(B){B===void 0&&(B=!0);const H=qb(p.current,"close",c.current);H&&!m.current?(clearTimeout(g.current),g.current=setTimeout(()=>d(!1),H)):B&&(clearTimeout(g.current),d(!1))},[p,d]),F=we.useCallback(()=>{R.current(),m.current=void 0},[]),V=we.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(B8),k.current=!1}},[P]);return we.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function H(Q){if(clearTimeout(g.current),T.current=!1,i&&!mw(c.current)||a>0&&qb(p.current,"open")===0)return;v.current.openEvent=Q;const W=qb(p.current,"open",c.current);W?g.current=setTimeout(()=>{d(!0)},W):d(!0)}function q(Q){if(B())return;R.current();const W=Yo(w);if(clearTimeout(_.current),h.current){clearTimeout(g.current),m.current=h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const X=m.current;W.addEventListener("mousemove",X),R.current=()=>{W.removeEventListener("mousemove",X)};return}A()}function ne(Q){B()||h.current==null||h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",ne),w==null||w.addEventListener("mouseleave",ne),l&&Q.addEventListener("mousemove",H,{once:!0}),Q.addEventListener("mouseenter",H),Q.addEventListener("mouseleave",q),()=>{s&&Q.removeEventListener("mouseleave",ne),w==null||w.removeEventListener("mouseleave",ne),l&&Q.removeEventListener("mousemove",H),Q.removeEventListener("mouseenter",H),Q.removeEventListener("mouseleave",q)}}},[S,w,r,e,i,a,l,A,F,V,d,s,y,p,h,v]),Mr(()=>{var B;if(r&&s&&(B=h.current)!=null&&B.__options.blockPointerEvents&&E()){const ne=Yo(w).body;if(ne.setAttribute(B8,""),ne.style.pointerEvents="none",k.current=!0,na(S)&&w){var H,q;const Q=S,W=y==null||(H=y.nodesRef.current.find(X=>X.id===C))==null||(q=H.context)==null?void 0:q.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",w.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",w.style.pointerEvents=""}}}},[r,s,C,w,S,y,h,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),we.useEffect(()=>()=>{F(),clearTimeout(g.current),clearTimeout(_.current),V()},[r,F,V]),we.useMemo(()=>{if(!r)return{};function B(H){c.current=H.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(g.current)},onMouseLeave(){b.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[b,r,a,s,d,A])},KF=we.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),qF=()=>we.useContext(KF),JZ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=we.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=we.useRef(null),l=we.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),we.createElement(KF.Provider,{value:we.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},eJ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=qF();we.useEffect(()=>{i&&(s({delay:{open:1,close:qb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),we.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const b=window.setTimeout(v,d);return()=>{clearTimeout(b)}}else v()},[r,s,i,o,n,l,d]),we.useEffect(()=>{r&&a(o)},[r,a,o])};function Ev(){return Ev=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():U8=requestAnimationFrame(i)}function tJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Dg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function N2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const rJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function YF(e){return hd(e)&&e.matches(rJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const yw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function XF(e,t){const r=U1(e,yw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function QF(){return XF(document.body,"next")}function ZF(){return XF(document.body,"prev")}function Fg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function nJ(e){U1(e,yw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function oJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const iJ=_L.useInsertionEffect,aJ=iJ||(e=>e());function yh(e){const t=we.useRef(()=>{});return aJ(()=>{t.current=e}),we.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(s4()&&i("button"),document.addEventListener("keydown",H8),()=>{document.removeEventListener("keydown",H8)}),[]),we.createElement("span",Ev({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:CT,onFocus:a=>{s4()&&GF()&&!lJ(a)?(a.persist(),PT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),JF=we.createContext(null),ej=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=we.useState(null),i=kv(),a=tj();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},sJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=ej({id:r,enabled:!n}),[a,l]=we.useState(null),s=we.useRef(null),d=we.useRef(null),v=we.useRef(null),b=we.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return we.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function w(P){i&&Fg(P)&&(P.type==="focusin"?oJ:nJ)(i)}return i.addEventListener("focusin",w,!0),i.addEventListener("focusout",w,!0),()=>{i.removeEventListener("focusin",w,!0),i.removeEventListener("focusout",w,!0)}},[i,o,a==null?void 0:a.modal]),we.createElement(JF.Provider,{value:we.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:b,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&we.createElement(bw,{"data-type":"outside",ref:s,onFocus:w=>{if(Fg(w,i)){var P;(P=v.current)==null||P.focus()}else{const y=ZF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&we.createElement("span",{"aria-owns":i.id,style:CT}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&we.createElement(bw,{"data-type":"outside",ref:d,onFocus:w=>{if(Fg(w,i)){var P;(P=b.current)==null||P.focus()}else{const y=QF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},tj=()=>we.useContext(JF),uJ=we.forwardRef(function(t,r){return we.createElement("button",Ev({},t,{type:"button",ref:r,tabIndex:-1,style:CT}))});function cJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:b,onOpenChange:S,events:w,dataRef:P,elements:{domReference:y,floating:C}}=t,h=oa(n),p=Od(),c=tj(),[g,m]=we.useState(null),_=typeof i=="number"&&i<0,T=we.useRef(null),k=we.useRef(null),R=we.useRef(!1),E=we.useRef(null),A=we.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&YF(y),B=we.useCallback(function(Q){return Q===void 0&&(Q=C),Q?U1(Q,yw()):[]},[C]),H=we.useCallback(Q=>{const W=B(Q);return h.current.map(X=>y&&X==="reference"?y:C&&X==="floating"?C:W).filter(Boolean).flat()},[y,C,h,B]);we.useEffect(()=>{if(!l)return;function Q(X){if(X.key==="Tab"){B().length===0&&!V&&Xi(X);const re=H(),Z=N2(X);h.current[0]==="reference"&&Z===y&&(Xi(X),X.shiftKey?Ys(re[re.length-1]):Ys(re[1])),h.current[1]==="floating"&&Z===C&&X.shiftKey&&(Xi(X),Ys(re[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,h,v,V,B,H]),we.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(X){const re=X.relatedTarget,Z=!(Ho(y,re)||Ho(C,re)||Ho(re,C)||Ho(c==null?void 0:c.portalNode,re)||re!=null&&re.hasAttribute("data-floating-ui-focus-guard")||p&&(Dg(p.nodesRef.current,b).find(oe=>{var fe,ge;return Ho((fe=oe.context)==null?void 0:fe.elements.floating,re)||Ho((ge=oe.context)==null?void 0:ge.elements.domReference,re)})||tJ(p.nodesRef.current,b).find(oe=>{var fe,ge;return((fe=oe.context)==null?void 0:fe.elements.floating)===re||((ge=oe.context)==null?void 0:ge.elements.domReference)===re})));re&&Z&&!A.current&&re!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,b,p,c,S,d]),we.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function X(){return[T.current,k.current].filter(Boolean)}if(C&&l){const re=[C,...W,...X()],Z=AY(h.current.includes("reference")||V?re.concat(y||[]):re);return()=>{Z()}}},[y,C,l,h,c,V]),we.useEffect(()=>{if(l&&!o&&C){const Q=[],W=yw(),X=U1(Yo(C).body,W),re=H(),Z=X.filter(oe=>!re.includes(oe));return Z.forEach((oe,fe)=>{Q[fe]=oe.getAttribute("tabindex"),oe.setAttribute("tabindex","-1")}),()=>{Z.forEach((oe,fe)=>{const ge=Q[fe];ge==null?oe.removeAttribute("tabindex"):oe.setAttribute("tabindex",ge)})}}},[C,l,o,H]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,X=!1;const re=gd(Q),Z=P.current;E.current=re;const oe=H(C),fe=(typeof i=="number"?oe[i]:i.current)||C;!_&&Ys(fe,{preventScroll:fe===C});function ge(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const J=ce.data.returnFocus;typeof J=="object"?(W=!0,X=J.preventScroll):W=J}return w.on("dismiss",ge),()=>{if(w.off("dismiss",ge),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:X});else{var ce;Z.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:X}),setTimeout(()=>{delete Z.__syncReturnFocus})}}},[C,H,i,a,P,v,w,_]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(_||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,_,v]);const q=o&&(F||l)&&!V;function ne(Q){return s&&l?we.createElement(uJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return we.createElement(we.Fragment,null,q&&we.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const X=H();Ys(n[0]==="reference"?X[0]:X[X.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Fg(Q,c.portalNode)){const X=QF()||y;X==null||X.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:ne("start"),we.cloneElement(r,g===0||n.includes("floating")?{tabIndex:0}:{}),ne("end"),q&&we.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(H()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Fg(Q,c.portalNode)){const X=ZF()||y;X==null||X.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const eb="data-floating-ui-scroll-lock",dJ=we.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(eb))return;document.body.setAttribute(eb,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(xT()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(eb),Object.assign(document.body.style,{overflow:"",[d]:""})};const b=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,w=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(w-Math.floor(b))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(eb),window.scrollTo(w,P)}},[n]),we.createElement("div",Ev({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function W8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function $8(e){return YF(e)}const fJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const b=we.useRef();return we.useMemo(()=>a?{reference:{onPointerDown(S){b.current=S.pointerType},onMouseDown(S){S.button===0&&(mw(b.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&b.current){b.current=void 0;return}mw(b.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){b.current=void 0,v&&(W8(S)||(S.key===" "&&!$8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(W8(S)||$8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function Yb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const pJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},hJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},gJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},vJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:b=!0,outsidePress:S=!0,outsidePressEvent:w="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:h=!0}=t===void 0?{}:t;const p=Od(),c=mh()!=null,g=yh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?g:S,_=we.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=gJ(h);return we.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const H=p?Dg(p.nodesRef.current,i):[];if(H.length>0){let q=!0;if(H.forEach(ne=>{var Q;if((Q=ne.context)!=null&&Q.open&&!ne.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const H=_.current;if(_.current=!1,H||typeof m=="function"&&!m(B))return;const q=N2(B);if(hd(q)&&s){const W=s.ownerDocument.defaultView||window,X=q.scrollWidth>q.clientWidth,re=q.scrollHeight>q.clientHeight;let Z=re&&B.offsetX>q.clientWidth;if(re&&W.getComputedStyle(q).direction==="rtl"&&(Z=B.offsetX<=q.offsetWidth-q.clientWidth),Z||X&&B.offsetY>q.clientHeight)return}const ne=p&&Dg(p.nodesRef.current,i).some(W=>{var X;return Yb(B,(X=W.context)==null?void 0:X.elements.floating)});if(Yb(B,s)||Yb(B,l)||ne)return;const Q=p?Dg(p.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(X=>{var re;if((re=X.context)!=null&&re.open&&!X.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:WF(B)||$F(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);b&&F.addEventListener("keydown",R),m&&F.addEventListener(w,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var H;return B!==((H=F.defaultView)==null?void 0:H.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{b&&F.removeEventListener("keydown",R),m&&F.removeEventListener(w,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,b,m,w,o,p,i,r,n,C,v,T,k,c]),we.useEffect(()=>{_.current=!1},[m,w]),we.useMemo(()=>v?{reference:{[pJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[hJ[w]]:()=>{_.current=!0}}}:{},[v,o,P,w,y,n])},mJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const b=we.useRef(""),S=we.useRef(!1),w=we.useRef();return we.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),we.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),we.useEffect(()=>()=>{clearTimeout(w.current)},[]),we.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;b.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&Yb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";w.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let G8=!1;const TT="ArrowUp",A2="ArrowDown",Jp="ArrowLeft",im="ArrowRight";function tb(e,t,r){return Math.floor(e/t)!==r}function Y0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function I2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function K8(e,t){return I2(t,e===TT||e===A2,e===Jp||e===im)}function kx(e,t,r){return I2(t,e===A2,r?e===Jp:e===im)||e==="Enter"||e==" "||e===""}function yJ(e,t,r){return I2(t,r?e===Jp:e===im,e===A2)}function bJ(e,t,r){return I2(t,r?e===im:e===Jp,e===TT)}function Ex(e,t){return uo(e,{disabledIndices:t})}function q8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const wJ=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:b=!1,loop:S=!1,nested:w=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:h=!0,openOnArrowKeyDown:p=!0,disabledIndices:c=void 0,orientation:g="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=mh(),k=Od(),R=yh(s),E=we.useRef(C),A=we.useRef(v??-1),F=we.useRef(null),V=we.useRef(!0),B=we.useRef(R),H=we.useRef(r),q=we.useRef(!1),ne=we.useRef(!1),Q=oa(c),W=oa(r),X=oa(_),[re,Z]=we.useState(),oe=we.useCallback(function(ce,J,ie){ie===void 0&&(ie=!1);const ue=ce.current[J.current];y?Z(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:GF()&&s4()?G8||q.current:!1}),requestAnimationFrame(()=>{const Se=X.current;Se&&ue&&(ie||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,X]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return G8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(ne.current=!0,R(v)):H.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(q.current=!1,v!=null)return;H.current&&(A.current=-1,oe(a,A)),!H.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||kx(F.current,g,P)||w?Ex(a,Q.current):q8(a,Q.current),R(A.current))}else Y0(a,l)||(A.current=l,oe(a,A,ne.current),ne.current=!1)},[d,r,l,v,w,a,g,P,R,oe,Q]),Mr(()=>{if(d&&H.current&&!r){var ce,J;const ie=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(J=ce.context)==null?void 0:J.elements.floating;ie&&!Ho(ie,gd(Yo(ie)))&&ie.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,H.current=r});const fe=l!=null,ge=we.useMemo(()=>{function ce(ie){if(!r)return;const ue=a.current.indexOf(ie);ue!==-1&&R(ue)}return{onFocus(ie){let{currentTarget:ue}=ie;ce(ue)},onClick:ie=>{let{currentTarget:ue}=ie;return ue.focus({preventScroll:!0})},...h&&{onMouseMove(ie){let{currentTarget:ue}=ie;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,oe(a,A),Nu.flushSync(()=>R(null)),!y)){var ie;(ie=o.floating.current)==null||ie.focus({preventScroll:!0})}}}}},[r,o,oe,h,a,R,y]);return we.useMemo(()=>{if(!d)return{};const ce=Q.current;function J(Ce){if(V.current=!1,q.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(w&&bJ(Ce.key,g,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Me=A.current,Le=Ex(a,ce),Re=q8(a,ce);if(Ce.key==="Home"&&(A.current=Le,R(A.current)),Ce.key==="End"&&(A.current=Re,R(A.current)),m>1){const be=A.current;if(Ce.key===TT){if(Xi(Ce),be===-1)A.current=Re;else if(A.current=uo(a,{startingIndex:be,amount:m,decrement:!0,disabledIndices:ce}),S&&(be-mke?Ye:Ye-m}Y0(a,A.current)&&(A.current=be),R(A.current)}if(Ce.key===A2&&(Xi(Ce),be===-1?A.current=Le:(A.current=uo(a,{startingIndex:be,amount:m,disabledIndices:ce}),S&&be+m>Re&&(A.current=uo(a,{startingIndex:be%m-m,amount:m,disabledIndices:ce}))),Y0(a,A.current)&&(A.current=be),R(A.current)),g==="both"){const ke=Math.floor(be/m);Ce.key===im&&(Xi(Ce),be%m!==m-1?(A.current=uo(a,{startingIndex:be,disabledIndices:ce}),S&&tb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:be-be%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:be-be%m-1,disabledIndices:ce})),tb(A.current,m,ke)&&(A.current=be)),Ce.key===Jp&&(Xi(Ce),be%m!==0?(A.current=uo(a,{startingIndex:be,disabledIndices:ce,decrement:!0}),S&&tb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:be+(m-be%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:be+(m-be%m),decrement:!0,disabledIndices:ce})),tb(A.current,m,ke)&&(A.current=be));const ze=Math.floor(Re/m)===ke;Y0(a,A.current)&&(S&&ze?A.current=Ce.key===Jp?Re:uo(a,{startingIndex:be-be%m-1,disabledIndices:ce}):A.current=be),R(A.current);return}}if(K8(Ce.key,g)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=kx(Ce.key,g,P)?Le:Re,R(A.current);return}kx(Ce.key,g,P)?S?A.current=Me>=Re?b&&Me!==a.current.length?-1:Le:uo(a,{startingIndex:Me,disabledIndices:ce}):A.current=Math.min(Re,uo(a,{startingIndex:Me,disabledIndices:ce})):S?A.current=Me<=Le?b&&Me!==-1?a.current.length:Re:uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce}):A.current=Math.max(Le,uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce})),Y0(a,A.current)?R(null):R(A.current)}}function ie(Ce){C==="auto"&&WF(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&$F(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&fe&&{"aria-activedescendant":re};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Me=Ce.key.indexOf("Arrow")===0;if(y&&r)return J(Ce);if(!r&&!p&&Me)return;if((Me||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),w){yJ(Ce.key,g,P)&&(Xi(Ce),r?(A.current=Ex(a,ce),R(A.current)):n(!0));return}K8(Ce.key,g)&&(v!=null&&(A.current=v),Xi(Ce),!r&&p?n(!0):J(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:ie,onClick:ie},floating:{"aria-orientation":g==="both"?void 0:g,...Se,onKeyDown:J,onPointerMove(){V.current=!0}},item:ge}},[i,o,re,Q,W,a,d,g,P,y,r,fe,w,v,p,b,m,S,C,R,n,ge])};function _J(e){return we.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const xJ=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=kv(),a=kv();return we.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},Y8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function SJ(e,t){const[r,n]=we.useState(e);return e&&!r&&n(!0),we.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function rj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=we.useState(!1),[d,v]=we.useState("unmounted"),b=SJ(r,a);return Mr(()=>{l&&!b&&v("unmounted")},[l,b]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:b,status:d}}function CJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=we.useState({}),{isMounted:b,status:S}=rj(e,{duration:a}),w=oa(r),P=oa(n),y=oa(o),C=oa(i),h=typeof a=="number",p=(h?a:a.open)||0,c=(h?a:a.close)||0;return Mr(()=>{const g={side:s,placement:l},m=w.current,_=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(g):m,E=typeof _=="function"?_(g):_,A=typeof k=="function"?k(g):k,F=(typeof T=="function"?T(g):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(Y8).join(","),transitionDuration:p+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(Y8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,w,P,C,p,S]),{isMounted:b,styles:d}}const PJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:b=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const w=we.useRef(),P=we.useRef(""),y=we.useRef((r=S??a)!=null?r:-1),C=we.useRef(null),h=yh(l),p=oa(d),c=oa(b);return Mr(()=>{n&&(clearTimeout(w.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var g;y.current=(g=S??a)!=null?g:-1}},[n,S,a]),we.useMemo(()=>{if(!s)return{};function g(m){const _=N2(m.nativeEvent);if(na(_)&&(gd(Yo(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,H;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((H=V[1])==null?void 0:H.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(w.current),w.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=p.current?p.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(h(F),C.current=F)}return{reference:{onKeyDown:g},floating:{onKeyDown:g}}},[s,o,i,v,c,p,h])};function X8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const TJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:b,elements:{floating:S}}=t,w=r.current[a];if(!w)return{};const P={...t,...await jF(-w.offsetTop-b.reference.height/2-w.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await Gb(X8(P,y.scrollHeight),v),h=await Gb(P,{...v,elementContext:"reference"}),p=Math.max(0,C.top),c=P.y+p,g=Math.max(0,y.scrollHeight-p-Math.max(0,C.bottom));return y.style.maxHeight=g+"px",y.scrollTop=p,o&&(y.offsetHeight=-s||h.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await Gb(X8({...P,y:c},y.offsetHeight),v)),{y:c}}}),OJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=yh(l),d=we.useRef(!1),v=we.useRef(null),b=we.useRef(null);return we.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!w||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,h=i.current.bottom>=-.5,p=w.scrollHeight-w.clientHeight,c=y<0?-1:1,g=y<0?"max":"min";w.scrollHeight<=w.clientHeight||(!C&&y>0||!h&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[g](y,p*c))})):/firefox/i.test(HF())&&(w.scrollTop+=y))}const w=(a==null?void 0:a.current)||n.floating;if(r&&w)return w.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=w.scrollTop,i.current!=null&&(b.current={...i.current})}),()=>{v.current=null,b.current=null,w.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),we.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const w=S.scrollTop-v.current;(i.current.bottom<-.5&&w<-1||i.current.top<-.5&&w>1)&&Nu.flushSync(()=>s(P=>P+w))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function kJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=b>=n&&r<=(v-s)*(n-d)/(b-d)+s&&(o=!o)}return o}function EJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function MJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:b,elements:S,onClose:w,nodeId:P,tree:y}=s;return function(h){function p(){clearTimeout(o),w()}if(clearTimeout(o),!S.domReference||!S.floating||b==null||d==null||v==null)return;const{clientX:c,clientY:g}=h,m=[c,g],_=N2(h),T=h.type==="mouseleave",k=Ho(S.floating,_),R=Ho(S.domReference,_),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=b.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,H=EJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(h.relatedTarget)&&Ho(S.floating,h.relatedTarget)||y&&Dg(y.nodesRef.current,P).some(W=>{let{context:X}=W;return X==null?void 0:X.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return p();let q=[];switch(F){case"top":q=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&g>=A.top&&g<=E.top+1;break;case"bottom":q=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&g>=E.bottom-1&&g<=A.bottom;break;case"left":q=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&g>=A.top&&g<=A.bottom;break;case"right":q=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&g>=A.top&&g<=A.bottom;break}function ne(W){let[X,re]=W;const Z=A.width>E.width,oe=A.height>E.height;switch(F){case"top":{const fe=[Z?X+r/2:V?X+r*4:X-r*4,re+r+1],ge=[Z?X-r/2:V?X+r*4:X-r*4,re+r+1],ce=[[A.left,V||Z?A.bottom-r:A.top],[A.right,V?Z?A.bottom-r:A.top:A.bottom-r]];return[fe,ge,...ce]}case"bottom":{const fe=[Z?X+r/2:V?X+r*4:X-r*4,re-r],ge=[Z?X-r/2:V?X+r*4:X-r*4,re-r],ce=[[A.left,V||Z?A.top+r:A.bottom],[A.right,V?Z?A.top+r:A.bottom:A.top+r]];return[fe,ge,...ce]}case"left":{const fe=[X+r+1,oe?re+r/2:B?re+r*4:re-r*4],ge=[X+r+1,oe?re-r/2:B?re+r*4:re-r*4];return[...[[B||oe?A.right-r:A.left,A.top],[B?oe?A.right-r:A.left:A.right-r,A.bottom]],fe,ge]}case"right":{const fe=[X-r,oe?re+r/2:B?re+r*4:re-r*4],ge=[X-r,oe?re-r/2:B?re+r*4:re-r*4],ce=[[B||oe?A.left+r:A.right,A.top],[B?oe?A.left+r:A.right:A.left+r,A.bottom]];return[fe,ge,...ce]}}}const Q=i?q:ne([d,v]);if(!i){if(a&&!H)return p();kJ([c,g],Q)?t&&!a&&(o=setTimeout(p,t)):p()}}};return l.__options={blockPointerEvents:n},l}function RJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=WZ(e),i=Od(),a=we.useRef(null),l=we.useRef({}),s=we.useState(()=>VF())[0],[d,v]=we.useState(null),b=we.useCallback(h=>{const p=na(h)?{getBoundingClientRect:()=>h.getBoundingClientRect(),contextElement:h}:h;o.refs.setReference(p)},[o.refs]),S=we.useCallback(h=>{(na(h)||h===null)&&(a.current=h,v(h)),(na(o.refs.reference.current)||o.refs.reference.current===null||h!==null&&!na(h))&&o.refs.setReference(h)},[o.refs]),w=we.useMemo(()=>({...o.refs,setReference:S,setPositionReference:b,domReference:a}),[o.refs,S,b]),P=we.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=yh(r),C=we.useMemo(()=>({...o,refs:w,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,w,P]);return Mr(()=>{const h=i==null?void 0:i.nodesRef.current.find(p=>p.id===n);h&&(h.context=C)}),we.useMemo(()=>({...o,context:C,refs:w,reference:S,positionReference:b}),[o,w,C,S,b])}function Mx(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,b=arguments.length,S=new Array(b),w=0;wP(...S))}}}else o[l]=s}),o),{})}}const NJ=function(e){e===void 0&&(e=[]);const t=e,r=we.useCallback(i=>Mx(i,e,"reference"),t),n=we.useCallback(i=>Mx(i,e,"floating"),t),o=we.useCallback(i=>Mx(i,e,"item"),e.map(i=>i==null?void 0:i.item));return we.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},AJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:JZ,FloatingFocusManager:cJ,FloatingNode:YZ,FloatingOverlay:dJ,FloatingPortal:sJ,FloatingTree:XZ,arrow:HZ,autoPlacement:DZ,autoUpdate:LZ,computePosition:zF,detectOverflow:Gb,flip:jZ,getOverflowAncestors:os,hide:VZ,inline:BZ,inner:TJ,limitShift:UZ,offset:jF,platform:FF,safePolygon:MJ,shift:FZ,size:zZ,useClick:fJ,useDelayGroup:eJ,useDelayGroupContext:qF,useDismiss:vJ,useFloating:RJ,useFloatingNodeId:qZ,useFloatingParentNodeId:mh,useFloatingPortalNode:ej,useFloatingTree:Od,useFocus:mJ,useHover:ZZ,useId:kv,useInnerOffset:OJ,useInteractions:NJ,useListNavigation:wJ,useMergeRefs:_J,useRole:xJ,useTransitionStatus:rj,useTransitionStyles:CJ,useTypeahead:PJ},Symbol.toStringTag,{value:"Module"})),wn=Dv(AJ);var nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=uh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var w=S})(nj);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{DialogBody:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=uh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,_=m.defaultProps,T=m.styles.base;p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.DialogBody";var P=w})(oj);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=uh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var w=S})(ij);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return w.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=p(Y),n=p(ot),o=wn,i=An,a=p(pt),l=p(Xn),s=Je,d=p(Sr),v=p(et),b=Xe,S=uh,w=nj,P=oj,y=ij;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function h(){return h=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,H=E.dismiss,q=E.animate,ne=E.className,Q=E.children,W=_(E,["open","handler","size","dismiss","animate","className","children"]),X=(0,b.useTheme)().dialog,re=X.defaultProps,Z=X.valid,oe=X.styles,fe=oe.base,ge=oe.sizes;V=V??void 0,B=B??re.size,H=H??re.dismiss,q=q??re.animate,ne=(0,s.twMerge)(re.className||"",ne);var ce=(0,a.default)((0,v.default)(fe.backdrop)),J=(0,s.twMerge)((0,a.default)((0,v.default)(fe.container),(0,v.default)(ge[(0,d.default)(Z.sizes,B,"md")])),ne),ie={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(ie,q),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Me=Ce.floating,Le=Ce.context,Re=(0,o.useId)(),be="".concat(Re,"-label"),ke="".concat(Re,"-description"),ze=(0,o.useInteractions)([(0,o.useClick)(Le),(0,o.useRole)(Le),(0,o.useDismiss)(Le,H)]).getFloatingProps,Ye=(0,o.useMergeRefs)([A,Me]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Le},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,h({},ze(m(c({},W),{ref:Ye,className:J,"aria-labelledby":be,"aria-describedby":ke})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:w.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(fL);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Wv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.icon,E=h.containerProps,A=h.labelProps,F=h.className,V=h.shrink,B=h.inputRef,H=w(h,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),q=(0,l.useTheme)().input,ne=q.defaultProps,Q=q.valid,W=q.styles,X=W.base,re=W.variants;c=c??ne.variant,m=m??ne.size,g=g??ne.color,_=_??ne.label,A=A??ne.labelProps,E=E??ne.containerProps,V=V??ne.shrink,R=R??ne.icon,F=(0,d.twMerge)(ne.className||"",F);var Z=re[(0,i.default)(Q.variants,c,"outlined")],oe=Z.sizes[(0,i.default)(Q.sizes,m,"md")],fe=(0,a.default)(Z.error.input),ge=(0,a.default)(Z.success.input),ce=(0,a.default)(Z.shrink.input),J=(0,a.default)(Z.colors.input[(0,i.default)(Q.colors,g,"gray")]),ie=(0,a.default)(Z.error.label),ue=(0,a.default)(Z.success.label),Se=(0,a.default)(Z.shrink.label),Ce=(0,a.default)(Z.colors.label[(0,i.default)(Q.colors,g,"gray")]),Me=(0,o.default)((0,a.default)(X.container),(0,a.default)(oe.container),E==null?void 0:E.className),Le=(0,o.default)((0,a.default)(X.input),(0,a.default)(Z.base.input),(0,a.default)(oe.input),v({},(0,a.default)(Z.base.inputWithIcon),R),v({},J,!T&&!k),v({},fe,T),v({},ge,k),v({},ce,V),F),Re=(0,o.default)((0,a.default)(X.label),(0,a.default)(Z.base.label),(0,a.default)(oe.label),v({},Ce,!T&&!k),v({},ie,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),be=(0,o.default)((0,a.default)(X.icon),(0,a.default)(Z.base.icon),(0,a.default)(oe.icon)),ke=(0,o.default)((0,a.default)(X.asterisk));return r.default.createElement("div",b({},E,{ref:p,className:Me}),R&&r.default.createElement("div",{className:be},R),r.default.createElement("input",b({},H,{ref:B,className:Le,placeholder:(H==null?void 0:H.placeholder)||" "})),r.default.createElement("label",b({},A,{className:Re}),_," ",H.required?r.default.createElement("span",{className:ke},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(aj);var lj={},am={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,b=r.default.bool,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(Y),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(am);var sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{MenuCore:function(){return C},default:function(){return h}});var r=b(Y),n=b(ot),o=wn,i=b(Xn),a=Xe,l=am,s=bh;function d(p,c){(c==null||c>p.length)&&(c=p.length);for(var g=0,m=new Array(c);g=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.useMenu)(),g=c.getReferenceProps,m=c.reference,_=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(s(v(s({},p),{ref:T,onClick:function(R){R.stopPropagation()}}),_&&{role:"menuitem"}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.MenuHandler";var P=w})(uj);var cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(Y),n=wn,o=An,i=S(pt),a=Je,l=S(et),s=Xe,d=am,v=bh;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.children,g=h.className,m=w(h,["children","className"]),_=(0,s.useTheme)().menu,T=_.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,H=k.listItemsRef,q=k.getFloatingProps,ne=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,X=k.context,re=k.activeIndex,Z=k.tree,oe=k.allowHover,fe=k.internalAllowHover,ge=k.setActiveIndex,ce=k.nested;g=g??"";var J=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),g),ie=(0,n.useMergeRefs)([p,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,b({},m,{ref:ie,style:{position:A,top:V??0,left:F??0},className:J},q({onKeyDown:function(Me){Me.key==="Tab"&&(E(!1),Me.shiftKey&&Me.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Me){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,ne({tabIndex:re===Me?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Re){H.current[Me]=Re},onClick:function(Re){if(Ce.props.onClick){var be,ke;(ke=(be=Ce.props).onClick)===null||ke===void 0||ke.call(be,Re)}Z==null||Z.events.emit("click")},onMouseEnter:function(){(oe&&R||fe&&R)&&ge(Me)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(cj);var dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{MenuItem:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=bh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.className,p=h===void 0?"":h,c=y.disabled,g=c===void 0?!1:c,m=y.children,_=b(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),g)),p);return r.default.createElement("button",d({},_,{ref:C,role:"menuitem",className:R}),m)});w.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},w.displayName="MaterialTailwind.MenuItem";var P=w})(dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return b},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(Y),n=wn,o=am,i=sj,a=uj,l=cj,s=dj;function d(){return d=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. + +More details: https://www.material-tailwind.com/docs/react/collapse + `);var R=r.default.useRef(null),E=(0,d.useTheme)().navbar,A=E.styles,F=A.base.mobileNav;g=g??{},m=m??"";var V=(0,l.twMerge)((0,a.default)((0,s.default)(F)),m),B={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=R.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},H=(0,i.default)(B,g),q=n.AnimatePresence,ne=(0,o.useMergeRefs)([p,R]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(q,null,r.default.createElement(n.m.div,b({},T,{ref:ne,className:V,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:H}),_)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(pj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Navbar:function(){return C},MobileNav:function(){return d.MobileNav},default:function(){return h}});var r=w(Y),n=w(ot),o=w(pt),i=Je,a=w(Sr),l=w(et),s=Xe,d=pj,v=e2;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.variant,m=p.color,_=p.shadow,T=p.blurred,k=p.fullWidth,R=p.className,E=p.children,A=P(p,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,H=F.styles,q=H.base,ne=H.variants;g=g??V.variant,m=m??V.color,_=_??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(q.navbar.initial),(Q={},b(Q,(0,l.default)(q.navbar.shadow),_),b(Q,(0,l.default)(q.navbar.blurred),T&&m==="white"),b(Q,(0,l.default)(q.navbar.fullWidth),k),Q)),X=(0,o.default)((0,l.default)(ne[(0,a.default)(B.variants,g,"filled")][(0,a.default)(B.colors,m,"white")])),re=(0,i.twMerge)((0,o.default)(W,X),R);return r.default.createElement("nav",S({},A,{ref:c,className:re}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var h=Object.assign(C,{MobileNav:d.MobileNav})})(fj);var hj={},L2={},wh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return b},propTypesInteractive:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,b=r.default.node,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(wh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(Y),n=wh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(L2);var gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{PopoverHandler:function(){return w},default:function(){return P}});var r=l(Y),n=wn,o=L2,i=wh;function a(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.usePopover)(),g=c.getReferenceProps,m=c.reference,_=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(v(s({},p),{ref:_}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.PopoverHandler";var P=w})(gj);var vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{PopoverContent:function(){return c},default:function(){return g}});var r=w(Y),n=wn,o=An,i=w(pt),a=Je,l=w(et),s=Xe,d=L2,v=wh;function b(m,_,T){return _ in m?Object.defineProperty(m,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[_]=T,m}function S(){return S=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function p(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,_){var T=m.children,k=m.className,R=h(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,H=V.strategy,q=V.x,ne=V.y,Q=V.context,W=V.floating,X=V.getFloatingProps,re=V.appliedAnimation,Z=V.labelId,oe=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var fe=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),ge=(0,n.useMergeRefs)([_,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},X(C(P({},R),{ref:ge,className:fe,style:{position:H,top:ne??"",left:q??""},"aria-labelledby":Z,"aria-describedby":oe})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:re}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var g=c})(vj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return p},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=w(Y),n=w(ot),o=wn,i=w(Xn),a=Xe,l=L2,s=wh,d=gj,v=vj;function b(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.value,T=h.label,k=h.className,R=h.barProps,E=w(h,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,H=B.base,q=B.variants,ne=B.sizes;c=c??F.variant,g=g??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(q[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"gray")]),W=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].container.initial),X=(0,o.default)((0,l.default)(H.container.initial),W),re=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].container.withLabel),Z=(0,o.default)((0,l.default)(H.container.withLabel),re),oe=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].bar),fe=(0,o.default)((0,l.default)(H.bar),oe),ge=(0,i.twMerge)((0,o.default)(X,v({},Z,T)),k),ce=(0,i.twMerge)((0,o.default)(fe,Q),R==null?void 0:R.className);return r.default.createElement("div",b({},E,{ref:p,className:ge}),r.default.createElement("div",b({},R,{className:ce,style:{width:"".concat(_,"%")}}),T&&"".concat(_,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(mj);var yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Radio:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().radio,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var Z=T!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,i.default)((0,i.default)((0,s.default)(W.icon)),X[(0,l.default)(ne.colors,g,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("label",S({},E,{className:fe,htmlFor:B.id||re,onMouseDown:function(ie){var ue=E==null?void 0:E.onMouseDown;return T&&Z.create(ie,"dark"),typeof ue=="function"&&ue(ie)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:ge,id:B.id||re})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var h=C})(yj);var bj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,b){for(var S in b)Object.defineProperty(v,S,{enumerable:!0,get:b[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(Y),n=An,o=$v;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var b=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){b.current=v},[v]),b.current}var d=function(v){var b=v.value,S=v.children;return r.default.createElement(a.Provider,{value:b},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(OT);var wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=Xe,l=OT,s=$v;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=function(C){var h=function(){Q(_),re(g),X(!1),oe(null)},p=function(Me){(Me.key==="Enter"||Me.key===" "&&!ge.current.typing)&&(Me.preventDefault(),h())},c=C.value,g=c===void 0?"":c,m=C.index,_=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,H=B.base,q=(0,l.useSelect)(),ne=q.selectedIndex,Q=q.setSelectedIndex,W=q.listRef,X=q.setOpen,re=q.onChange,Z=q.activeIndex,oe=q.setActiveIndex,fe=q.getItemProps,ge=q.dataRef,ce=(0,i.default)(H.option.initial),J=(0,i.default)(H.option.active),ie=(0,i.default)(H.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,J,ne===_),d(ue,ie,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[_]=Ce},className:Se,disabled:k,tabIndex:Z===_?0:1,"aria-selected":Z===_&&ne===_,"data-selected":ne===_},fe({onClick:function(Ce){var Me=F==null?void 0:F.onClick;typeof Me=="function"&&(Me(Ce),h()),h()},onKeyDown:function(Ce){var Me=F==null?void 0:F.onKeyDown;typeof Me=="function"&&(Me(Ce),p(Ce)),p(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(wj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,X){for(var re in X)Object.defineProperty(W,re,{enumerable:!0,get:X[re]})}t(e,{Select:function(){return ne},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=g(Y),n=g(ot),o=wn,i=An,a=g(pt),l=Je,s=g(Xn),d=g(Sr),v=g(et),b=Xe,S=OT,w=$v,P=wj;function y(W,X){(X==null||X>W.length)&&(X=W.length);for(var re=0,Z=new Array(X);re=0)&&Object.prototype.propertyIsEnumerable.call(W,Z)&&(re[Z]=W[Z])}return re}function V(W,X){if(W==null)return{};var re={},Z=Object.keys(W),oe,fe;for(fe=0;fe=0)&&(re[oe]=W[oe]);return re}function B(W,X){return C(W)||_(W,X)||q(W,X)||T()}function H(W){return h(W)||m(W)||q(W)||k()}function q(W,X){if(W){if(typeof W=="string")return y(W,X);var re=Object.prototype.toString.call(W).slice(8,-1);if(re==="Object"&&W.constructor&&(re=W.constructor.name),re==="Map"||re==="Set")return Array.from(re);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return y(W,X)}}var ne=r.default.forwardRef(function(W,X){var re=W.variant,Z=W.color,oe=W.size,fe=W.label,ge=W.error,ce=W.success,J=W.arrow,ie=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Me=W.dismiss,Le=W.animate,Re=W.lockScroll,be=W.labelProps,ke=W.menuProps,ze=W.className,Ye=W.disabled,Mt=W.name,gt=W.children,xt=W.containerProps,zt=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Ht,mt=(0,b.useTheme)().select,Ot=mt.defaultProps,Jt=mt.valid,Dr=mt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),nr=Ln[0],mo=Ln[1];re=re??Ot.variant,Z=Z??Ot.color,oe=oe??Ot.size,fe=fe??Ot.label,ge=ge??Ot.error,ce=ce??Ot.success,J=J??Ot.arrow,ie=ie??Ot.value,ue=ue??Ot.onChange,Se=Se??Ot.selected,Ce=Ce??Ot.offset,Me=Me??Ot.dismiss,Le=Le??Ot.animate,be=be??Ot.labelProps,ke=ke??Ot.menuProps;var Yt;xt=(Yt=(0,s.default)(xt,(Ot==null?void 0:Ot.containerProps)||{}))!==null&&Yt!==void 0?Yt:Ot.containerProps,ze=(0,l.twMerge)(Ot.className||"",ze),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(H((Qr=r.default.Children.map(gt,function(at){var rt=at.props;return rt==null?void 0:rt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(rt){var St=rt.rects,cn=rt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(St==null||(wo=St.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,le=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(ie)+1))},[ie]);var he=ga.floating,xe=(0,o.useInteractions)([(0,o.useClick)(le),(0,o.useRole)(le,{role:"listbox"}),(0,o.useDismiss)(le,R({},Me)),(0,o.useListNavigation)(le,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(le,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Oe=xe.getReferenceProps,Ue=xe.getFloatingProps,Qe=xe.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=he.current;if(Sn&&pa&&at){var rt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(rt&&Fi!=null){var St,cn,wr=(cn=(St=yo.current[Fi])===null||St===void 0?void 0:St.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=rt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Qe,dataRef:le.dataRef}},[$r,ue,sn,Qe,le.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&ie?"withValue":"close")},[Sn,ie,$r,Se]);var je=Qn[(0,d.default)(Jt.variants,re,"outlined")],Ze=je.sizes[(0,d.default)(Jt.sizes,oe,"md")],$e=je.error.select,Ge=je.success.select,kt=je.colors.select[(0,d.default)(Jt.colors,Z,"gray")],Nt=je.error.label,Ut=je.success.label,bt=je.colors.label[(0,d.default)(Jt.colors,Z,"gray")],dr=je.states[nr],or=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Ze.container),xt==null?void 0:xt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(je.base.select),(0,v.default)(dr.select),(0,v.default)(Ze.select),p({},(0,v.default)(kt[nr]),!ge&&!ce),p({},(0,v.default)($e.initial),ge),p({},(0,v.default)($e.states[nr]),ge),p({},(0,v.default)(Ge.initial),ce),p({},(0,v.default)(Ge.states[nr]),ce)),ze),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(je.base.label),(0,v.default)(dr.label),(0,v.default)(Ze.label.initial),(0,v.default)(Ze.label.states[nr]),p({},(0,v.default)(bt[nr]),!ge&&!ce),p({},(0,v.default)(Nt.initial),ge),p({},(0,v.default)(Nt.states[nr]),ge),p({},(0,v.default)(Ut.initial),ce),p({},(0,v.default)(Ut.states[nr]),ce)),(Fr=be.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),p({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=ke.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",re==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},At=(0,s.default)(Zr,Le),He=i.AnimatePresence;r.default.useEffect(function(){ie&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[ie,ue]);var It=r.default.createElement(o.FloatingFocusManager,{context:le,modal:!1},r.default.createElement(i.m.ul,c({},Ue(A(R({},ke),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(rt){var St=ke==null?void 0:ke.onPointerEnter;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onPointerMove:function(rt){var St=ke==null?void 0:ke.onPointerMove;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onKeyDown:function(rt){var St=ke==null?void 0:ke.onKeyDown;typeof St=="function"&&(St(rt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:At}),r.default.Children.map(gt,function(at,rt){var St;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((St=at.props)===null||St===void 0?void 0:St.index)||rt+1,id:"material-tailwind-select-".concat(rt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},xt,{ref:X,className:or}),r.default.createElement("button",c({type:"button"},Oe(A(R({},zt),{ref:ga.setReference,className:Fn,disabled:Ye,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):ie&&!ue?r.default.createElement("span",{className:un},ie):r.default.createElement("span",c({},(Ht=gt[$r-1])===null||Ht===void 0?void 0:Ht.props,{className:un})),r.default.createElement("div",{className:Zn},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},be,{className:jn}),fe),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(He,null,Sn&&r.default.createElement(r.default.Fragment,null,Re?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},It):It)))))});ne.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),size:n.default.oneOf(w.propTypesSize),label:w.propTypesLabel,error:w.propTypesError,success:w.propTypesSuccess,arrow:w.propTypesArrow,value:w.propTypesValue,onChange:w.propTypesOnChange,selected:w.propTypesSelected,offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,lockScroll:w.propTypesLockScroll,labelProps:w.propTypesLabelProps,menuProps:w.propTypesMenuProps,className:w.propTypesClassName,disabled:w.propTypesDisabled,name:w.propTypesName,children:w.propTypesChildren,containerProps:w.propTypesContainerProps},ne.displayName="MaterialTailwind.Select";var Q=Object.assign(ne,{Option:P.SelectOption})})(bj);var _j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Switch:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.ripple,T=p.className,k=p.disabled,R=p.containerProps,E=p.circleProps,A=p.labelProps,F=p.inputRef,V=P(p,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),H=B.switch,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,_=_??q.ripple,k=k??q.disabled,R=R??q.containerProps,A=A??q.labelProps,E=E??q.circleProps,T=(0,a.twMerge)(q.className||"",T);var Z=_!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),k)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),X[(0,l.default)(ne.colors,g,"gray")].circle,X[(0,l.default)(ne.colors,g,"gray")].before),E==null?void 0:E.className),J=(0,i.default)((0,s.default)(W.ripple)),ie=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("div",S({},R,{className:fe}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||re,className:ge})),r.default.createElement("label",S({},E,{htmlFor:V.id||re,className:ce}),_&&r.default.createElement("div",{className:J,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return _&&Z.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||re,className:ie}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var h=C})(_j);var xj={},_h={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return b},propTypesChildren:function(){return S}});var r=o(ot),n=br;function o(w){return w&&w.__esModule?w:{default:w}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),b=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return h},TabsContextProvider:function(){return p},setId:function(){return c},setActive:function(){return g},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(Y),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.value,g=h.className,m=h.activeClassName,_=h.disabled,T=h.children,k=w(h,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,H=V.dispatch,q=B.id,ne=B.active,Q=B.indicatorProps;_=_??A.disabled,g=(0,i.twMerge)(A.className||"",g),m=(0,i.twMerge)(A.activeClassName||"",m);var W,X=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),_),v(W,m,ne===c),W)),g),re,Z=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(re=Q==null?void 0:Q.className)!==null&&re!==void 0?re:"");return r.default.createElement("li",b({},k,{ref:p,role:"tab",className:X,onClick:function(oe){var fe=k==null?void 0:k.onClick;typeof fe=="function"&&((0,s.setActive)(H,c),(0,s.setIsInitial)(H,!1),fe(oe)),(0,s.setIsInitial)(H,!1),(0,s.setActive)(H,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),ne===c&&r.default.createElement(n.motion.div,b({},Q,{transition:{duration:.5},className:Z,layoutId:q})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(Sj);var Cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=S(Xn),i=S(pt),a=Je,l=S(et),s=Xe,d=_h,v=kd;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.animate,g=h.className,m=h.children,_=w(h,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,g=(0,a.twMerge)(k.className||"",g);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),g),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",b({},_,{ref:p,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=Xe,l=_h,s=kd;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.indicatorProps,c=C.className,g=C.children,m=S(C,["indicatorProps","className","children"]),_=(0,a.useTheme)().tabsHeader,T=_.defaultProps,k=_.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,p)},[A,p]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:h,role:"tablist",className:V}),g))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Pj);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=b(Y),n=An,o=b(pt),i=Je,a=b(et),l=Xe,s=_h,d=kd;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.value,c=C.className,g=C.children,m=S(C,["value","className","children"]),_=(0,l.useTheme)().tabPanel,T=_.defaultProps,k=_.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:h,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===p?"mount":F?"initial":"unmount",variants:A,"data-value":p}),g)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Tj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return p},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return b.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(Y),n=y(pt),o=Je,i=y(et),a=Xe,l=_h,s=Sj,d=Cj,v=Pj,b=Tj,S=kd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.value,T=g.className,k=g.orientation,R=g.children,E=C(g,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var H=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),w({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:_,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:H}),R))});p.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},p.displayName="MaterialTailwind.Tabs";var c=Object.assign(p,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:b.TabPanel})})(xj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Wv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.resize,E=h.labelProps,A=h.containerProps,F=h.shrink,V=h.className,B=w(h,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),H=(0,l.useTheme)().textarea,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.variants;c=c??q.variant,m=m??q.size,g=g??q.color,_=_??q.label,E=E??q.labelProps,A=A??q.containerProps,F=F??q.shrink,V=(0,d.twMerge)(q.className||"",V);var re=X[(0,i.default)(ne.variants,c,"outlined")],Z=(0,a.default)(re.error.textarea),oe=(0,a.default)(re.success.textarea),fe=(0,a.default)(re.shrink.textarea),ge=(0,a.default)(re.colors.textarea[(0,i.default)(ne.colors,g,"gray")]),ce=(0,a.default)(re.error.label),J=(0,a.default)(re.success.label),ie=(0,a.default)(re.shrink.label),ue=(0,a.default)(re.colors.label[(0,i.default)(ne.colors,g,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(re.base.textarea),(0,a.default)(re.sizes[(0,i.default)(ne.sizes,m,"md")].textarea),v({},ge,!T&&!k),v({},Z,T),v({},oe,k),v({},fe,F),R?"":"!resize-none",V),Me=(0,o.default)((0,a.default)(W.label),(0,a.default)(re.base.label),(0,a.default)(re.sizes[(0,i.default)(ne.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},J,k),v({},ie,F),E==null?void 0:E.className),Le=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:p,className:Se},r.default.createElement("textarea",b({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Me},_," ",B.required?r.default.createElement("span",{className:Le},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(Oj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(Y),n=C(ot),o=wn,i=An,a=C(pt),l=Je,s=C(Xn),d=C(et),v=Xe,b=wh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,H=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,H)&&(B[H]=F[H])}return B}function T(F,V){if(F==null)return{};var B={},H=Object.keys(F),q,ne;for(ne=0;ne=0)&&(B[q]=F[q]);return B}function k(F,V){return w(F)||h(F,V)||R(F,V)||p()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,H=F.handler,q=F.content,ne=F.interactive,Q=F.placement,W=F.offset,X=F.dismiss,re=F.animate,Z=F.className,oe=F.children,fe=_(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),ge=(0,v.useTheme)().tooltip,ce=ge.defaultProps,J=ge.styles.base,ie=k(r.default.useState(!1),2),ue=ie[0],Se=ie[1];B=B??ue,H=H??Se,ne=ne??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,X=X??ce.dismiss,re=re??ce.animate,Z=(0,l.twMerge)(ce.className||"",Z);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(J)),Z),Me={unmount:{opacity:0},mount:{opacity:1}},Le=(0,s.default)(Me,re),Re=(0,o.useFloating)({open:B,onOpenChange:H,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),be=Re.x,ke=Re.y,ze=Re.reference,Ye=Re.floating,Mt=Re.strategy,gt=Re.refs,xt=Re.update,zt=Re.context,Ht=(0,o.useInteractions)([(0,o.useClick)(zt,{enabled:ne}),(0,o.useFocus)(zt),(0,o.useHover)(zt),(0,o.useRole)(zt,{role:"tooltip"}),(0,o.useDismiss)(zt,X)]),mt=Ht.getReferenceProps,Ot=Ht.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,xt)},[B,xt,gt.reference,gt.floating]);var Jt=(0,o.useMergeRefs)([V,Ye]),Dr=(0,o.useMergeRefs)([V,ze]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof oe=="string"?r.default.createElement("span",y({},mt({ref:Dr})),oe):r.default.cloneElement(oe,c({},mt(m(c({},oe==null?void 0:oe.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Ot(m(c({},fe),{ref:Jt,className:Ce,style:{position:Mt,top:ke??"",left:be??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:Le}),q)))))});E.propTypes={open:b.propTypesOpen,handler:b.propTypesHandler,content:b.propTypesContent,interactive:b.propTypesInteractive,placement:n.default.oneOf(b.propTypesPlacement),offset:b.propTypesOffset,dismiss:b.propTypesDismiss,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(kj);var Ej={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Typography:function(){return h},default:function(){return p}});var r=b(Y),n=b(ot),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=HP;function v(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function b(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,H=F.styles,q=H.variants,ne=H.colors,Q=H.textGradient;m=m??V.variant,_=_??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(q[(0,a.default)(B.variants,m,"paragraph")]),X=ne[(0,a.default)(B.colors,_,"inherit")],re=(0,l.default)(Q),Z=(0,i.twMerge)((0,o.default)(W,v({},X.color,!T),v({},re,T),v({},X.gradient,T)),R),oe;switch(m){case"h1":oe=r.default.createElement(k||"h1",P(S({},A),{ref:g,className:Z}),E);break;case"h2":oe=r.default.createElement(k||"h2",P(S({},A),{ref:g,className:Z}),E);break;case"h3":oe=r.default.createElement(k||"h3",P(S({},A),{ref:g,className:Z}),E);break;case"h4":oe=r.default.createElement(k||"h4",P(S({},A),{ref:g,className:Z}),E);break;case"h5":oe=r.default.createElement(k||"h5",P(S({},A),{ref:g,className:Z}),E);break;case"h6":oe=r.default.createElement(k||"h6",P(S({},A),{ref:g,className:Z}),E);break;case"lead":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;case"paragraph":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;case"small":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;default:oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break}return oe});h.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},h.displayName="MaterialTailwind.Typography";var p=h})(Ej);var Mj={},Rj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(ot),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Rj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=wn,i=S(Xn),a=S(pt),l=Je,s=S(et),d=Xe,v=Rj;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;g=g??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,g),H=n.AnimatePresence,q=(0,o.useMergeRefs)([p,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(H,null,r.default.createElement(n.m.div,b({},T,{ref:q,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Mj);var Nj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(lm);var Aj={},kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return w}});var r=d(Y),n=Xe,o=d(pt),i=Je,a=d(et),l=lm;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemPrefix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var w=S})(kT);var ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return w}});var r=d(Y),n=Xe,o=d(pt),i=Je,a=d(et),l=lm;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemSuffix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var w=S})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return h}});var r=w(Y),n=Xe,o=w(fh),i=w(pt),a=Je,l=w(et),s=lm,d=kT,v=ET;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.disabled,_=p.selected,T=p.ripple,k=p.children,R=P(p,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,H=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},b(B,(0,l.default)(F.item.disabled),m),b(B,(0,l.default)(F.item.selected),_&&!m),B)),g);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:H,onMouseDown:function(q){var ne=R==null?void 0:R.onMouseDown;return T&&V.create(q,"dark"),typeof ne=="function"&&ne(q)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var h=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Aj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(Y),n=Xe,o=S(pt),i=Je,a=S(et),l=lm,s=Aj,d=kT,v=ET;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,n.useTheme)().list,T=_.defaultProps,k=_.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",b({},m,{ref:p,className:R}),g)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Nj);var Ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=_d;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.fullWidth,T=h.ripple,k=h.className,R=h.children,E=w(h,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,H=V.base,q=V.dividerColor;c=c??F.variant,g=g??F.size,m=m??F.color,T=T??F.ripple,_=_??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var ne,Q=(0,i.twMerge)((0,o.default)((0,l.default)(H.initial),(ne={},v(ne,(0,l.default)(H.fullWidth),_),v(ne,"divide-x",c!=="outlined"),v(ne,(0,l.default)(q[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),ne)),k);return r.default.createElement("div",b({},E,{ref:p,className:Q}),r.default.Children.map(R,function(W,X){var re;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:g,color:m,ripple:T,fullWidth:_,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":X!==r.default.Children.count(R)-1,"border-r-0":X!==r.default.Children.count(R)-1,"rounded-l-none":X!==0}),(re=W.props)===null||re===void 0?void 0:re.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Ij);var Lj={},Dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return b},propTypesChildren:function(){return S},propTypesSlideRef:function(){return w}});var r=n(ot);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,b=r.default.bool,S=r.default.node.isRequired,w=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,T){for(var k in T)Object.defineProperty(_,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return g},default:function(){return m}});var r=w(Y),n=An,o=wn,i=w(pt),a=Je,l=w(et),s=Xe,d=Dj;function v(_,T){(T==null||T>_.length)&&(T=_.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(k[R]=_[R])}return k}function h(_,T){if(_==null)return{};var k={},R=Object.keys(_),E,A;for(A=0;A=0)&&(k[E]=_[E]);return k}function p(_,T){return b(_)||P(_,T)||c(_,T)||y()}function c(_,T){if(_){if(typeof _=="string")return v(_,T);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(_,T)}}var g=r.default.forwardRef(function(_,T){var k=_.children,R=_.prevArrow,E=_.nextArrow,A=_.navigation,F=_.autoplay,V=_.autoplayDelay,B=_.transition,H=_.loop,q=_.className,ne=_.slideRef,Q=C(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,X=W.defaultProps,re=W.styles.base,Z=(0,n.useMotionValue)(0),oe=r.default.useRef(null),fe=p(r.default.useState(0),2),ge=fe[0],ce=fe[1],J=r.default.Children.toArray(k);R=R??X.prevArrow,E=E??X.nextArrow,A=A??X.navigation,F=F??X.autoplay,V=V??X.autoplayDelay,B=B??X.transition,H=H??X.loop,q=(0,a.twMerge)(X.className||"",q);var ie=(0,a.twMerge)((0,i.default)((0,l.default)(re.carousel)),q),ue=(0,a.twMerge)((0,i.default)((0,l.default)(re.slide))),Se=r.default.useCallback(function(){var Re;return-ge*(((Re=oe.current)===null||Re===void 0?void 0:Re.clientWidth)||0)},[ge]),Ce=r.default.useCallback(function(){var Re=H?0:ge;ce(ge+1===J.length?Re:ge+1)},[ge,H,J.length]),Me=function(){var Re=H?J.length-1:0;ce(ge-1<0?Re:ge-1)};r.default.useEffect(function(){var Re=(0,n.animate)(Z,Se(),B);return Re.stop},[Se,ge,Z,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(Z,Se(),B)})},[Se,B,Z]),r.default.useEffect(function(){if(F){var Re=setInterval(function(){return Ce()},V);return function(){return clearInterval(Re)}}},[F,Ce,V]);var Le=(0,o.useMergeRefs)([oe,T]);return r.default.createElement("div",S({},Q,{ref:Le,className:ie}),J.map(function(Re,be){return r.default.createElement(n.LazyMotion,{key:be,features:n.domAnimation},r.default.createElement(n.m.div,{ref:ne,className:ue,style:{x:Z,left:"".concat(be*100,"%"),right:"".concat(be*100,"%")}},Re))}),R&&R({loop:H,handlePrev:Me,activeIndex:ge,firstIndex:ge===0}),E&&E({loop:H,handleNext:Ce,activeIndex:ge,lastIndex:ge===J.length-1}),A&&A({setActiveIndex:ce,activeIndex:ge,length:J.length}))});g.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},g.displayName="MaterialTailwind.Carousel";var m=g})(Lj);var Fj={},jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return b},propTypesOnClose:function(){return S},propTypesDismiss:function(){return w},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,b=r.default.string,S=r.default.func,w=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(jj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return p},default:function(){return c}});var r=P(Y),n=P(ot),o=An,i=wn,a=P(Xn),l=P(pt),s=Je,d=P(et),v=Xe,b=jj;function S(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function w(){return w=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.open,T=g.size,k=g.overlay,R=g.children,E=g.placement,A=g.overlayProps,F=g.className,V=g.onClose,B=g.dismiss,H=g.transition,q=g.overlayRef,ne=C(g,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,X=Q.styles.base,re=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var Z;B=(Z=(0,a.default)(W.dismiss,B||{}))!==null&&Z!==void 0?Z:W.dismiss,H=H??W.transition,F=(0,s.twMerge)(W.className||"",F);var oe=(0,s.twMerge)((0,l.default)((0,d.default)(X.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),fe=(0,s.twMerge)((0,l.default)((0,d.default)(X.overlay)),A==null?void 0:A.className),ge=(0,i.useFloating)({open:_,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(ge,B)]).getFloatingProps;r.default.useEffect(function(){re.start(_?"open":"close")},[_,re,E]);var J={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},ie={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:q,className:fe,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:ie,transition:{duration:.3}})),r.default.createElement(o.m.div,w({},ce(y({ref:m},ne)),{className:oe,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:re,variants:J,transition:H}),R)))});p.propTypes={open:b.propTypesOpen,size:b.propTypesSize,overlay:b.propTypesOverlay,children:b.propTypesChildren,placement:n.default.oneOf(b.propTypesPlacement),overlayProps:b.propTypesOverlayProps,className:b.propTypesClassName,onClose:b.propTypesOnClose,dismiss:b.propTypesDismiss,transition:b.propTypesTransition,overlayRef:b.propTypesOverlayRef},p.displayName="MaterialTailwind.Drawer";var c=p})(Fj);var zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Badge:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(Xn),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=WP;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.invisible,_=p.withBorder,T=p.overlap,k=p.placement,R=p.className,E=p.content,A=p.children,F=p.containerProps,V=p.containerRef,B=P(p,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),H=(0,d.useTheme)().badge,q=H.valid,ne=H.defaultProps,Q=H.styles,W=Q.base,X=Q.placements,re=Q.colors;g=g??ne.color,m=m??ne.invisible,_=_??ne.withBorder,T=T??ne.overlap,k=k??ne.placement,R=(0,a.twMerge)(ne.className||"",R);var Z;F=(Z=(0,o.default)(F,ne.containerProps||{}))!==null&&Z!==void 0?Z:ne.containerProps;var oe=(0,s.default)(W.badge.initial),fe=(0,s.default)(W.badge.withBorder),ge=(0,s.default)(W.badge.withContent),ce=(0,s.default)(re[(0,l.default)(q.colors,g,"red")]),J=(0,s.default)(X[(0,l.default)(q.placements,k,"top-end")][(0,l.default)(q.overlaps,T,"square")]),ie,ue=(0,a.twMerge)((0,i.default)(oe,J,ce,(ie={},b(ie,fe,_),b(ie,ge,E),ie)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var h=C})(zj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(Y),n=P(ot),o=P(pt),i=Je,a=P(Sr),l=P(et),s=Xe,d=$P;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function g(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}function m(E,A){return b(E)||C(E,A)||T(E,A)||h()}function _(E){return S(E)||y(E)||T(E)||p()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,H=E.unratedIcon,q=E.ratedColor,ne=E.unratedColor,Q=E.className,W=E.onChange,X=E.readonly,re=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),Z,oe,fe=(0,s.useTheme)().rating,ge=fe.valid,ce=fe.defaultProps,J=fe.styles,ie=J.base,ue=J.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,H=H??ce.unratedIcon,q=q??ce.ratedColor,ne=ne??ce.unratedColor,W=W??ce.onChange,X=X??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return _(Array(V).fill("rated")).concat(_(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Me=Se[1],Le=m(r.default.useState(function(){return _(Array(F).fill("un_rated"))}),2),Re=Le[0],be=Le[1],ke=m(r.default.useState(!1),2),ze=ke[0],Ye=ke[1],Mt=(0,l.default)(ue[(0,a.default)(ge.colors,q,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(ge.colors,ne,"blue-gray")]),xt=(0,i.twMerge)((0,o.default)((0,l.default)(ie.rating),Q)),zt=(0,l.default)(ie.icon),Ht=B,mt=H,Ot=r.default.isValidElement(B)&&r.default.cloneElement(Ht,{className:(0,i.twMerge)((0,o.default)(zt,Mt,Ht==null||(Z=Ht.props)===null||Z===void 0?void 0:Z.className))}),Jt=r.default.isValidElement(B)&&r.default.cloneElement(mt,{className:(0,i.twMerge)((0,o.default)(zt,gt,mt==null||(oe=mt.props)===null||oe===void 0?void 0:oe.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(zt,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(H,{className:(0,i.twMerge)((0,o.default)(zt,gt))}),Qn=function(Ln){return Ln.map(function(nr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!X){var Yt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Me(Yt),W&&typeof W=="function"&&W(Yt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!X){var Yt=Re.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Ye(!0),be(Yt)}},onMouseLeave:function(){return!X&&Ye(!1)}},r.default.isValidElement(nr==="rated"?B:H)?nr==="rated"?Ot:Jt:nr==="rated"?Dr:ln)})};return r.default.createElement("div",w({},re,{ref:A,className:xt}),Qn(ze?Re:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(Vj);var Bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=P(Y),n=P(ot),o=P(Xn),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=GP;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,H=T.value,q=T.defaultValue,ne=T.onChange,Q=T.min,W=T.max,X=T.step,re=T.inputRef,Z=T.inputProps,oe=h(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),fe=(0,d.useTheme)().slider,ge=fe.valid,ce=fe.defaultProps,J=fe.styles,ie=J.base,ue=J.sizes,Se=J.colors,Ce=c(r.default.useState(q||0),2),Me=Ce[0],Le=Ce[1];r.default.useMemo(function(){q&&Le(q)},[q]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,X=X??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Re;V=(Re=(0,i.default)(ce.thumbClassName,V))!==null&&Re!==void 0?Re:ce.thumbClassName;var be;F=(be=(0,i.default)(ce.trackClassName,F))!==null&&be!==void 0?be:ce.trackClassName;var ke;B=(ke=(0,i.default)(ce.barClassName,B))!==null&&ke!==void 0?ke:ce.barClassName;var ze;Z=(ze=(0,o.default)(Z,(ce==null?void 0:ce.inputProps)||{}))!==null&&ze!==void 0?ze:ce.inputProps;var Ye=(0,a.twMerge)((0,i.default)((0,s.default)(ie.container),(0,s.default)(Se[(0,l.default)(ge.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(ie.bar),B)),gt=(0,i.default)((0,s.default)(ie.track),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].track)),xt=(0,i.default)((0,s.default)(ie.thumb),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].thumb)),zt=(0,i.default)((0,s.default)(ie.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(xt,V));return r.default.createElement("div",w({},oe,{ref:k,className:Ye}),r.default.createElement("label",{className:Mt,style:{width:"".concat(H||Me,"%")}}),r.default.createElement("input",w({ref:re,type:"range",max:W,min:Q,step:X,className:zt},H?{value:H}:null,{defaultValue:q,onChange:function(Ht){return ne?ne(Ht):Le(Number(Ht.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(Bj);var Uj={},sm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{useTimelineItem:function(){return p},TimelineItem:function(){return c},default:function(){return g}});var r=v(Y),n=Je,o=v(et),i=Xe,a=bs;function l(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function s(m){if(Array.isArray(m))return m}function d(){return d=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,_){return s(m)||b(m,_)||C(m,_)||S()}function C(m,_){if(m){if(typeof m=="string")return l(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,_)}}var h=r.default.createContext(0);h.displayName="MaterialTailwind.TimelineItemContext";function p(){var m=r.default.useContext(h);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,_){var T=m.className,k=m.children,R=w(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],H=V[1],q=r.default.useMemo(function(){return[B,H]},[B,H]),ne=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(h.Provider,{value:q},r.default.createElement("li",d({ref:_},R,{className:ne}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var g=c})(sm);var Hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=P(Y),n=P(ot),o=wn,i=Je,a=P(Sr),l=P(et),s=Xe,d=sm,v=bs;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=h(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,H=B.styles,q=B.valid,ne=H.base,Q=H.variants,W=c((0,d.useTimelineItem)(),2),X=W[1],re=r.default.useRef(null),Z=(0,o.useMergeRefs)([k,re]);r.default.useEffect(function(){var ge=re.current;if(ge){var ce=ge.getBoundingClientRect().width;return X(ce),function(){X(0)}}},[X,A,F]);var oe=(0,l.default)(Q[(0,a.default)(q.variants,E,"filled")][(0,a.default)(q.colors,R,"gray")]),fe=(0,i.twMerge)((0,l.default)(ne),oe,A);return r.default.createElement("span",w({ref:Z},V,{className:fe}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(Hj);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return p},default:function(){return c}});var r=b(Y),n=Je,o=b(et),i=Xe,a=sm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),_);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var c=p})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return b},default:function(){return S}});var r=s(Y),n=Je,o=s(et),i=Xe,a=bs;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,i.useTheme)().timelineHeader,c=p.styles,g=c.base,m=(0,n.twMerge)((0,o.default)(g),y);return r.default.createElement("div",l({},h,{ref:P,className:m}),C)});b.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},b.displayName="MaterialTailwind.TimelineHeader";var S=b})($j);var Gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return p},default:function(){return c}});var r=b(Y),n=Je,o=b(et),i=Xe,a=sm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],H=(0,o.default)(F.line),q=(0,n.twMerge)((0,o.default)(F.container),_);return r.default.createElement("span",v({},k,{ref:m,className:q,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(H,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:H}))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineConnector";var c=p})(Gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return b.default},default:function(){return h}});var r=w(Y),n=Je,o=w(et),i=Xe,a=bs,l=w(sm),s=w(Hj),d=w(Wj),v=w($j),b=w(Gj);function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.children,_=P(p,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),g);return r.default.createElement("ul",S({ref:c},_,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var h=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:b.default})})(Uj);var Kj={},qj={},MT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(MT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return b},default:function(){return S}});var r=s(Y),n=Je,o=s(et),i=Xe,a=MT;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className;w.activeClassName,w.completedClassName;var C=w.children,h=d(w,["className","activeClassName","completedClassName","children"]),p=(0,i.useTheme)().step,c=p.styles.base,g=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},h,{ref:P,className:g}),C)});b.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},b.displayName="MaterialTailwind.Step";var S=b})(qj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=w(Y),n=wn,o=Je,i=w(et),a=Xe,l=w(qj),s=MT;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function g(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||_(R,E)||y()}function _(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,H=R.lineClassName,q=R.activeLineClassName,ne=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),X=W.stepper,re=W.step,Z=X.styles.base,oe=re.styles,fe=oe.base,ge=r.default.useRef(null),ce=m(r.default.useState(0),2),J=ce[0],ie=ce[1],ue=A===0,Se=Array.isArray(ne)&&A===ne.length-1,Ce=Array.isArray(ne)&&A>ne.length-1;r.default.useEffect(function(){if(ge.current){var Ye=ne,Mt=ge.current.getBoundingClientRect().width,gt=Mt/(Ye.length-1);ie(gt)}},[ne]);var Me=r.default.useMemo(function(){if(!Ce)return J*A},[A,Ce,J]);(0,n.useMergeRefs)([E,ge]);var Le=(0,o.twMerge)((0,i.default)(Z.stepper),B),Re=(0,o.twMerge)((0,i.default)(Z.line.initial),H),be=(0,o.twMerge)(Re,(0,i.default)(Z.line.active),q),ke=(0,i.default)(fe.active),ze=(0,i.default)(fe.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:ge,className:Le}),r.default.createElement("div",{className:Re}),r.default.createElement("div",{className:be,style:{width:"".concat(Me,"px")}}),Array.isArray(ne)?ne.map(function(Ye,Mt){var gt,xt;return r.default.cloneElement(Ye,p(C({key:Mt},Ye.props),{className:(0,o.twMerge)(Ye.props.className,Mt===A?(0,o.twMerge)(ke,(gt=Ye.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=S(C,["children"]),g,m=(0,o.useSpeedDial)(),_=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([h,T.setReference]);return r.default.cloneElement(p,d({},_(b(d({},c),{ref:k,className:(0,i.twMerge)(p==null||(g=p.props)===null||g===void 0?void 0:g.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Nx)),Nx}var Ax={},Z8;function LJ(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=b(Y),n=An,o=wn,i=RT(),a=Xe,l=Je,s=b(et),d=um;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=C.className,g=S(C,["children","className"]),m=(0,a.useTheme)(),_=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,H=(0,o.useMergeRefs)([h,E.setFloating]),q=(0,l.twMerge)((0,s.default)(_),c),ne=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(ne,null,A&&r.default.createElement("div",v({},g,{ref:H,className:q,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(p,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Ax)),Ax}var Yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return b},default:function(){return S}});var r=s(Y),n=Xe,o=Je,i=s(et),a=um;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,n.useTheme)(),c=p.speedDialAction.styles,g=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},h,{ref:P,className:g}),C)});b.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},b.displayName="SpeedDialAction";var S=b})(Yj);var J8;function RT(){return J8||(J8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{SpeedDialContext:function(){return h},useSpeedDial:function(){return p},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return g}});var r=S(Y),n=wn,o=Xe,i=S(Xn),a=um,l=S(IJ()),s=S(LJ()),d=S(Yj);function v(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function b(m){if(Array.isArray(m))return m}function S(m){return m&&m.__esModule?m:{default:m}}function w(m,_){var T=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(T!=null){var k=[],R=!0,E=!1,A,F;try{for(T=T.call(m);!(R=(A=T.next()).done)&&(k.push(A.value),!(_&&k.length===_));R=!0);}catch(V){E=!0,F=V}finally{try{!R&&T.return!=null&&T.return()}finally{if(E)throw F}}return k}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(m,_){return b(m)||w(m,_)||C(m,_)||P()}function C(m,_){if(m){if(typeof m=="string")return v(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return v(m,_)}}var h=r.default.createContext(null);function p(){var m=r.default.useContext(h);if(!m)throw new Error("useSpeedDial must be used within a .");return m}function c(m){var _=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,H=y(r.default.useState(!1),2),q=H[0],ne=H[1];_=_??q,T=T??ne,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),X=(0,n.useFloatingNodeId)(),re=(0,n.useFloating)({open:_,nodeId:X,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),Z=re.x,oe=re.y,fe=re.strategy,ge=re.refs,ce=re.context,J=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),ie=J.getReferenceProps,ue=J.getFloatingProps,Se=r.default.useMemo(function(){return{x:Z,y:oe,strategy:fe,refs:ge,open:_,context:ce,getReferenceProps:ie,getFloatingProps:ue,animation:W}},[ce,ue,ie,ge,fe,Z,oe,_,W]);return r.default.createElement(h.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:X},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var g=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Rx)),Rx}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(JR,e),t(tL,e),t(rL,e),t(nL,e),t(iL,e),t(aL,e),t(cL,e),t(dL,e),t(fL,e),t(p2,e),t(aj,e),t(lj,e),t(fj,e),t(hj,e),t(mj,e),t(yj,e),t(bj,e),t(_j,e),t(xj,e),t(Oj,e),t(kj,e),t(Ej,e),t(Mj,e),t(Nj,e),t(Ij,e),t(Lj,e),t(Fj,e),t(zj,e),t(Vj,e),t(Bj,e),t(w3,e),t(Uj,e),t(Kj,e),t(RT(),e),t(Xe,e),t(NP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(QW);function DJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var NT={exports:{}},D2={},ww={},Tt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof uO<"u"?uO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Tt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Tt;class r{constructor(g=[1,0,0,1,0,0]){this.dirty=!1,this.m=g&&g.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(g){g.m[0]=this.m[0],g.m[1]=this.m[1],g.m[2]=this.m[2],g.m[3]=this.m[3],g.m[4]=this.m[4],g.m[5]=this.m[5]}point(g){const m=this.m;return{x:m[0]*g.x+m[2]*g.y+m[4],y:m[1]*g.x+m[3]*g.y+m[5]}}translate(g,m){return this.m[4]+=this.m[0]*g+this.m[2]*m,this.m[5]+=this.m[1]*g+this.m[3]*m,this}scale(g,m){return this.m[0]*=g,this.m[1]*=g,this.m[2]*=m,this.m[3]*=m,this}rotate(g){const m=Math.cos(g),_=Math.sin(g),T=this.m[0]*m+this.m[2]*_,k=this.m[1]*m+this.m[3]*_,R=this.m[0]*-_+this.m[2]*m,E=this.m[1]*-_+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(g,m){const _=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*g,R=this.m[3]+this.m[1]*g;return this.m[0]=_,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(g){const m=this.m[0]*g.m[0]+this.m[2]*g.m[1],_=this.m[1]*g.m[0]+this.m[3]*g.m[1],T=this.m[0]*g.m[2]+this.m[2]*g.m[3],k=this.m[1]*g.m[2]+this.m[3]*g.m[3],R=this.m[0]*g.m[4]+this.m[2]*g.m[5]+this.m[4],E=this.m[1]*g.m[4]+this.m[3]*g.m[5]+this.m[5];return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const g=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*g,_=-this.m[1]*g,T=-this.m[2]*g,k=this.m[0]*g,R=g*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=g*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const g=this.m[0],m=this.m[1],_=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=g*T-m*_,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(g!=0||m!=0){const F=Math.sqrt(g*g+m*m);A.rotation=m>0?Math.acos(g/F):-Math.acos(g/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(g*_+m*T)/E,A.skewY=0}else if(_!=0||T!=0){const F=Math.sqrt(_*_+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-_/F):-Math.acos(_/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(g*_+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",b="0",S="Konva warning: ",w="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let h=[];const p=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const g=c[0];return g==="#"||g==="."||g===g.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){h.push(c),h.length===1&&p(function(){const g=h;h=[],g.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,g){const m=e.Util.createImageElement();m.onload=function(){g(m)},m.src=c},_rgbToHex(c,g,m){return((1<<24)+(c<<16)+(g<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const g=parseInt(c,16);return{r:g>>16&255,g:g>>8&255,b:g&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=b+c;return d+c},getRGB(c){let g;return c in y?(g=y[c],{r:g[0],g:g[1],b:g[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(g=C.exec(c.replace(/ /g,"")),{r:parseInt(g[1],10),g:parseInt(g[2],10),b:parseInt(g[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const g=y[c.toLowerCase()];return g?{r:g[0],g:g[1],b:g[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const g=c.split(/ *, */).map(Number);return{r:g[0],g:g[1],b:g[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const g=c.split(/ *, */).map((m,_)=>m.slice(-1)==="%"?_===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:g[0],g:g[1],b:g[2],a:g[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[g,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),_=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=_+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,g){return!(g.x>c.x+c.width||g.x+g.widthc.y+c.height||g.y+g.height1?(R=m,E=_,A=(m-T)*(m-T)+(_-k)*(_-k)):(R=c+V*(m-c),E=g+V*(_-g),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,g,m){const _=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return g.forEach(function(k,R){if(!m&&R===g.length-1)return;const E=g[(R+1)%g.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bg.length){const R=g;g=c,c=R}for(let R=0;R{g.width=0,g.height=0})},drawRoundedRectPath(c,g,m,_){let T=0,k=0,R=0,E=0;typeof _=="number"?T=k=R=E=Math.min(_,g/2,m/2):(T=Math.min(_[0]||0,g/2,m/2),k=Math.min(_[1]||0,g/2,m/2),E=Math.min(_[2]||0,g/2,m/2),R=Math.min(_[3]||0,g/2,m/2)),c.moveTo(T,0),c.lineTo(g-k,0),c.arc(g-k,k,k,Math.PI*3/2,0,!1),c.lineTo(g,m-E),c.arc(g-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},Et={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=FJ;ht.alphaComponent=jJ;ht.getNumberValidator=zJ;ht.getNumberOrArrayOfNumbersValidator=VJ;ht.getNumberOrAutoValidator=BJ;ht.getStringValidator=UJ;ht.getStringOrGradientValidator=HJ;ht.getFunctionValidator=WJ;ht.getNumberArrayValidator=$J;ht.getBooleanValidator=GJ;ht.getComponentValidator=KJ;const _s=Tt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function FJ(e){return e>255?255:e<0?0:Math.round(e)}function jJ(e){return e>1?1:e<1e-4?1e-4:e}function zJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function VJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function BJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function GJ(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function KJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,b=t.Util._capitalize,S=n+b(a),w=o+b(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+b(h),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const b=this.attrs[a];return b===void 0?l:b},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),b=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[b]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(Et);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Xj=Lr,qJ=Tt;function YJ(e){const t=[],r=e.length,n=Xj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=XJ+d.join(eE)+QJ)):(i+=l.property,t||(i+=ree+l.val)),i+=eee;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=oee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,b=this._context;v.length===3?b.drawImage(t,r,n):v.length===5?b.drawImage(t,r,n,o,i):v.length===9&&b.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=tE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=YJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(z2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,cm=Et,X0=za,Gs=Tt,qi=z2,Xr=ht,Xb="absoluteOpacity",nb="allEventListeners",$l="absoluteTransform",rE="absoluteScale",Dc="canvas",fee="Change",pee="children",hee="konva",c4="listening",nE="mouseenter",oE="mouseleave",iE="set",aE="Shape",Qb=" ",lE="stage",Xs="transform",gee="Stage",d4="visible",vee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Qb);let mee=1,_t=class f4{constructor(t){this._id=mee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Qb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,b=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,w=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+w,l-=d,s-=d;const P=new X0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new X0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new X0.HitCanvas({pixelRatio:b,width:o,height:i}),h=P.getContext(),p=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),h.save(),p.save(),h.translate(-l,-s),p.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Xb),this._clearSelfAndDescendantCache(rE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,h.restore(),p.restore(),v&&(h.save(),h.beginPath(),h.rect(0,0,o,i),h.closePath(),h.setAttr("strokeStyle","red"),h.setAttr("lineWidth",5),h.stroke(),h.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==pee&&(n=iE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(c4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(d4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==gee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Xb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=f4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Ix.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Ix.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,b=n===this;if(v){a.save();const w=this.getAbsoluteTransform(n);let P=w.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),h=this.clipY();a.rect(C||0,h||0,l,s)}a.clip.apply(a,y),P=w.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!b&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(w){w[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(w){if(!w.visible())return;const P=w.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const b=this.find("Shape");let S=!1;for(let w=0;wce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",Z=ce=>{const J=re(ce);if(J==="pointer")return o.Konva.pointerEventsEnabled&&X.pointer;if(J==="touch")return X.touch;if(J==="mouse")return X.mouse};function oe(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const fe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class ge extends n.Container{constructor(J){super(oe(J)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{oe(this.attrs)}),this._checkVisibility()}_validateAdd(J){const ie=J.getType()==="Layer",ue=J.getType()==="FastLayer";ie||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const J=this.visible()?"":"none";this.content.style.display=J}setContainer(J){if(typeof J===v){if(J.charAt(0)==="."){const ue=J.slice(1);J=document.getElementsByClassName(ue)[0]}else{var ie;J.charAt(0)!=="#"?ie=J:ie=J.slice(1),J=document.getElementById(ie)}if(!J)throw"Can not find container in document with id "+ie}return this._setAttr("container",J),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),J.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const J=this.children,ie=J.length;for(let ue=0;ue-1&&e.stages.splice(ie,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const J=this._pointerPositions[0]||this._changedPointerPositions[0];return J?{x:J.x,y:J.y}:(t.Util.warn(fe),null)}_getPointerById(J){return this._pointerPositions.find(ie=>ie.id===J)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(J){J=J||{},J.x=J.x||0,J.y=J.y||0,J.width=J.width||this.width(),J.height=J.height||this.height();const ie=new i.SceneCanvas({width:J.width,height:J.height,pixelRatio:J.pixelRatio||1}),ue=ie.getContext()._context,Se=this.children;return(J.x||J.y)&&ue.translate(-1*J.x,-1*J.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Me=Ce._toKonvaCanvas(J);ue.drawImage(Me._canvas,J.x,J.y,Me.getWidth()/Me.getPixelRatio(),Me.getHeight()/Me.getPixelRatio())}),ie}getIntersection(J){if(!J)return null;const ie=this.children,ue=ie.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Me=ie[Ce].getIntersection(J);if(Me)return Me}return null}_resizeDOM(){const J=this.width(),ie=this.height();this.content&&(this.content.style.width=J+b,this.content.style.height=ie+b),this.bufferCanvas.setSize(J,ie),this.bufferHitCanvas.setSize(J,ie),this.children.forEach(ue=>{ue.setSize({width:J,height:ie}),ue.draw()})}add(J,...ie){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),J.setSize({width:this.width(),height:this.height()}),J.draw(),o.Konva.isBrowser&&this.content.appendChild(J.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(J){return s.hasPointerCapture(J,this)}setPointerCapture(J){s.setPointerCapture(J,this)}releaseCapture(J){s.releaseCapture(J,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([J,ie])=>{this.content.addEventListener(J,ue=>{this[ie](ue)},{passive:!1})})}_pointerenter(J){this.setPointersPositions(J);const ie=Z(J.type);ie&&this._fire(ie.pointerenter,{evt:J,target:this,currentTarget:this})}_pointerover(J){this.setPointersPositions(J);const ie=Z(J.type);ie&&this._fire(ie.pointerover,{evt:J,target:this,currentTarget:this})}_getTargetShape(J){let ie=this[J+"targetShape"];return ie&&!ie.getStage()&&(ie=null),ie}_pointerleave(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(ie.pointerout,{evt:J}),Se._fireAndBubble(ie.pointerleave,{evt:J}),this._fire(ie.pointerleave,{evt:J,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(ie.pointerleave,{evt:J,target:this,currentTarget:this}),this._fire(ie.pointerout,{evt:J,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Me=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Me||!Me.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Me.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Me,Me._fireAndBubble(ie.pointerdown,{evt:J,pointerId:Ce.id}),Se=!0;const Le=J.type.indexOf("touch")>=0;Me.preventDefault()&&J.cancelable&&Le&&J.preventDefault()}),Se||this._fire(ie.pointerdown,{evt:J,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(J){const ie=Z(J.type),ue=re(J.type);if(!ie||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&J.cancelable&&J.preventDefault(),this.setPointersPositions(J),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Me=!1;const Le=this._getTargetShape(ue);this._changedPointerPositions.forEach(Re=>{const be=s.getCapturedShape(Re.id)||this.getIntersection(Re),ke=Re.id,ze={evt:J,pointerId:ke},Ye=Le!==be;if(Ye&&Le&&(Le._fireAndBubble(ie.pointerout,{...ze},be),Le._fireAndBubble(ie.pointerleave,{...ze},be)),be){if(Ce[be._id])return;Ce[be._id]=!0}be&&be.isListening()?(Me=!0,Ye&&(be._fireAndBubble(ie.pointerover,{...ze},Le),be._fireAndBubble(ie.pointerenter,{...ze},Le),this[ue+"targetShape"]=be),be._fireAndBubble(ie.pointermove,{...ze})):Le&&(this._fire(ie.pointerover,{evt:J,target:this,currentTarget:this,pointerId:ke}),this[ue+"targetShape"]=null)}),Me||this._fire(ie.pointermove,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Me={};let Le=!1;this._changedPointerPositions.forEach(Re=>{const be=s.getCapturedShape(Re.id)||this.getIntersection(Re);if(be){if(be.releaseCapture(Re.id),Me[be._id])return;Me[be._id]=!0}const ke=Re.id,ze={evt:J,pointerId:ke};let Ye=!1;o.Konva["_"+ue+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),be&&be.isListening()?(Le=!0,this[ue+"ClickEndShape"]=be,be._fireAndBubble(ie.pointerup,{...ze}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===be&&(be._fireAndBubble(ie.pointerclick,{...ze}),Ye&&Ce&&Ce===be&&be._fireAndBubble(ie.pointerdblclick,{...ze}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(ie.pointerclick,{evt:J,target:this,currentTarget:this,pointerId:ke}),Ye&&this._fire(ie.pointerdblclick,{evt:J,target:this,currentTarget:this,pointerId:ke}))}),Le||this._fire(ie.pointerup,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,J.cancelable&&ue!=="touch"&&ue!=="pointer"&&J.preventDefault()}_contextmenu(J){this.setPointersPositions(J);const ie=this.getIntersection(this.getPointerPosition());ie&&ie.isListening()?ie._fireAndBubble(F,{evt:J}):this._fire(F,{evt:J,target:this,currentTarget:this})}_wheel(J){this.setPointersPositions(J);const ie=this.getIntersection(this.getPointerPosition());ie&&ie.isListening()?ie._fireAndBubble(ne,{evt:J}):this._fire(ne,{evt:J,target:this,currentTarget:this})}_pointercancel(J){this.setPointersPositions(J);const ie=s.getCapturedShape(J.pointerId)||this.getIntersection(this.getPointerPosition());ie&&ie._fireAndBubble(m,s.createEvent(J)),s.releaseCapture(J.pointerId)}_lostpointercapture(J){s.releaseCapture(J.pointerId)}setPointersPositions(J){const ie=this._getContentPosition();let ue=null,Se=null;J=J||window.event,J.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(J.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-ie.left)/ie.scaleX,y:(Ce.clientY-ie.top)/ie.scaleY})}),Array.prototype.forEach.call(J.changedTouches||J.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-ie.left)/ie.scaleX,y:(Ce.clientY-ie.top)/ie.scaleY})})):(ue=(J.clientX-ie.left)/ie.scaleX,Se=(J.clientY-ie.top)/ie.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}])}_setPointerPosition(J){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(J)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const J=this.content.getBoundingClientRect();return{top:J.top,left:J.left,scaleX:J.width/this.content.clientWidth||1,scaleY:J.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const J=this.container();if(!J)throw"Stage has no container. A container is required.";J.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),J.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(J){J.batchDraw()}),this}}e.Stage=ge,ge.prototype.nodeType=d,(0,l._registerNode)(ge),r.Factory.addGetterSetter(ge,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(Jj);var dm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Tt,r=Lr,n=Et,o=Cr,i=ht,a=Tt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",b="linearGradient",S="radialGradient";let w;function P(){return w||(w=r.Util.createCanvasElement().getContext("2d"),w)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function h(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function p(R){R.stroke()}function c(){this._clearCache(s)}function g(){this._clearCache(d)}function m(){this._clearCache(v)}function _(){this._clearCache(b)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(b,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let H=0;Hthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),H=this.getAbsoluteOpacity()!==1;if(V&&B&&H)return!0;const q=this.hasShadow(),ne=this.shadowForStrokeEnabled();return!!(V&&B&&q&&ne)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,H=this.getSelfRect(),ne=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=H.width+ne,W=H.height+ne,X=!E.skipShadow&&this.hasShadow(),re=X?this.shadowOffsetX():0,Z=X?this.shadowOffsetY():0,oe=Q+Math.abs(re),fe=W+Math.abs(Z),ge=X&&this.shadowBlur()||0,ce=oe+ge*2,J=fe+ge*2,ie={width:ce,height:J,x:-(ne/2+ge)+Math.min(re,0)+H.x,y:-(ne/2+ge)+Math.min(Z,0)+H.y};return V?ie:this._transformedRect(ie,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),H=B.getContext(),q=this._getCanvasCache(),ne=this.getSceneFunc(),Q=this.hasShadow(),W,X;const re=B.isCache,Z=A===this;if(!this.isVisible()&&!Z)return this;if(q){H.save();const fe=this.getAbsoluteTransform(A).getMatrix();return H.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5]),this._drawCachedSceneCanvas(H),H.restore(),this}if(!ne)return this;if(H.save(),this._useBufferCanvas()&&!re){W=this.getStage();const fe=F||W.bufferCanvas;X=fe.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var oe=this.getAbsoluteTransform(A).getMatrix();X.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),ne.call(this,X,this),X.restore();const ge=fe.pixelRatio;Q&&H._applyShadow(this),H._applyOpacity(this),H._applyGlobalCompositeOperation(this),H.drawImage(fe._canvas,0,0,fe.width/ge,fe.height/ge)}else{if(H._applyLineJoin(this),!Z){var oe=this.getAbsoluteTransform(A).getMatrix();H.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),H._applyOpacity(this),H._applyGlobalCompositeOperation(this)}Q&&H._applyShadow(this),ne.call(this,H,this)}return H.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,H=B&&B.getContext(),q=this.hitFunc()||this.sceneFunc(),ne=this._getCanvasCache(),Q=ne&&ne.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){H.save();const X=this.getAbsoluteTransform(A).getMatrix();return H.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(H),H.restore(),this}if(!q)return this;if(H.save(),H._applyLineJoin(this),!(this===A)){const X=this.getAbsoluteTransform(A).getMatrix();H.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return q.call(this,H,this),H.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),H=V.getWidth(),q=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,H,q);try{const ne=B.getImageData(0,0,H,q),Q=ne.data,W=Q.length,X=r.Util._hexToRgb(this.colorKey);for(let re=0;reE?(Q[re]=X.r,Q[re+1]=X.g,Q[re+2]=X.b,Q[re+3]=255):Q[re+3]=0;B.putImageData(ne,0,0)}catch(ne){r.Util.error("Unable to draw hit graph from cached scene canvas. "+ne.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=h,k.prototype._strokeFuncHit=p,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",g),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",_),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(dm,"__esModule",{value:!0});dm.Layer=void 0;const Hl=Lr,Lx=Ed,If=Cr,IT=Et,sE=za,xee=ht,See=_n,Cee=Tt,Pee="#",Tee="beforeDraw",Oee="draw",rz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],kee=rz.length;let Sh=class extends Lx.Container{constructor(t){super(t),this.canvas=new sE.SceneCanvas,this.hitCanvas=new sE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Tee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Lx.Container.prototype.drawScene.call(this,o,r),this._fire(Oee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Lx.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};dm.Layer=Sh;Sh.prototype.nodeType="Layer";(0,Cee._registerNode)(Sh);IT.Factory.addGetterSetter(Sh,"imageSmoothingEnabled",!0);IT.Factory.addGetterSetter(Sh,"clearBeforeDraw",!0);IT.Factory.addGetterSetter(Sh,"hitGraphEnabled",!0,(0,xee.getBooleanValidator)());var B2={};Object.defineProperty(B2,"__esModule",{value:!0});B2.FastLayer=void 0;const Eee=Lr,Mee=dm,Ree=Tt;class LT extends Mee.Layer{constructor(t){super(t),this.listening(!1),Eee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}B2.FastLayer=LT;LT.prototype.nodeType="FastLayer";(0,Ree._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Group=void 0;const Nee=Lr,Aee=Ed,Iee=Tt;let DT=class extends Aee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Nee.Util.throw("You may only add groups and shapes to groups.")}};Ch.Group=DT;DT.prototype.nodeType="Group";(0,Iee._registerNode)(DT);var Ph={};Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Animation=void 0;const Dx=Tt,uE=Lr,Fx=(function(){return Dx.glob.performance&&Dx.glob.performance.now?function(){return Dx.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Fx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,h=C._id,p=P.easing||e.Easings.Linear,c=!!P.yoyo;let g,m;typeof P.duration>"u"?g=.3:P.duration===0?g=.001:g=P.duration,this.node=C,this._id=v++;const _=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);_||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},_),this.tween=new b(m,function(T){y._tweenFunc(T)},p,0,1,g*1e3,c),this._addListeners(),S.attrs[h]||(S.attrs[h]={}),S.attrs[h][this._id]||(S.attrs[h][this._id]={}),S.tweens[h]||(S.tweens[h]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,h=C._id;let p,c,g,m,_;const T=S.tweens[h][P];T&&delete S.attrs[h][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(p=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(g=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const h in C)delete S.tweens[P][h];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(w){const P=w.onFinish;w.node=this,w.onFinish=function(){this.destroy(),P&&P()},new S(w).play()},e.Easings={BackEaseIn(w,P,y,C){return y*(w/=C)*w*((1.70158+1)*w-1.70158)+P},BackEaseOut(w,P,y,C){return y*((w=w/C-1)*w*((1.70158+1)*w+1.70158)+1)+P},BackEaseInOut(w,P,y,C){let h=1.70158;return(w/=C/2)<1?y/2*(w*w*(((h*=1.525)+1)*w-h))+P:y/2*((w-=2)*w*(((h*=1.525)+1)*w+h)+2)+P},ElasticEaseIn(w,P,y,C,h,p){let c=0;return w===0?P:(w/=C)===1?P+y:(p||(p=C*.3),!h||h0?t:r),v=a*r,b=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:b,width:v-d,height:S-b}}}U2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Dee._registerNode)(Ss);H2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"angle",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,W2.getBooleanValidator)());var $2={},fm={};Object.defineProperty(fm,"__esModule",{value:!0});fm.Line=void 0;const G2=Et,Fee=Tt,jee=_n,oz=ht;function p4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),b=r-d*(o-e),S=n-d*(i-t),w=r+v*(o-e),P=n+v*(i-t);return[b,S,w,P]}function dE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let w=0;w<20;w++)v=S*e.tValues[20][w]+S,d+=e.cValues[20][w]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],b=2*a[1]-2*a[0],S=2*l[1]-2*l[0],w=4*(d*d+v*v),P=4*(d*b+v*S),y=b*b+S*S;if(w===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*w),h=y/w,p=s+C,c=h-C*C,g=p*p+c>0?Math.sqrt(p*p+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,_=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((p+g)/(C+m))):0;return Math.sqrt(w)/2*(p*g-C*m+_)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),b=d*d+v*v;return Math.sqrt(b)}const o=(a,l,s)=>{const d=s.length-1;let v,b;if(d===0)return 0;if(a===0){b=0;for(let S=0;S<=d;S++)b+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return b}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,b=(a-s(v))/l,S=0;for(;d>.001;){const w=s(v+b),P=Math.abs(a-w)/l;if(P500)break}return v};e.t2length=i})(iz);Object.defineProperty(Th,"__esModule",{value:!0});Th.Path=void 0;const zee=Et,Vee=_n,Bee=Tt,Lf=iz;class hn extends Vee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,w=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(w,P),t.arc(0,0,S,s,s+d,1-b),t.scale(1/w,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],b=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-b)b;w-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],w,0);t.push(P.x,P.y)}else for(let w=d+S;wr[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],b=l[3],S=l[4],w=l[5],P=l[6];return S+=w*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,b,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,w,P,y,C,h,p,c,g,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var _=E.shift(),T=E.shift();if(s+=_,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let H=a.length-2;H>=0;H--)if(a[H].command==="M"){s=a[H].points[0]+_,d=a[H].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(w,P,s,d);break;case"t":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(w,P,s,d);break;case"A":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break;case"a":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],b=o[5],S=o[4]+b,w=Math.PI/180;if(Math.abs(v-S)S;s-=w)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+w;s1&&(l*=Math.sqrt(w),s*=Math.sqrt(w));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(b*b))/(l*l*(S*S)+s*s*(b*b)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*b/l,h=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,p=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},g=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[h,p,l,s,_,R,v,a]}}Th.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Bee._registerNode)(hn);zee.Factory.addGetterSetter(hn,"data");Object.defineProperty($2,"__esModule",{value:!0});$2.Arrow=void 0;const K2=Et,Uee=fm,az=ht,Hee=Tt,fE=Th;class Rd extends Uee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],w=fE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=fE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/w),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,b=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}$2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Hee._registerNode)(Rd);K2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,az.getNumberValidator)());K2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,az.getNumberValidator)());K2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);K2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Circle=void 0;const Wee=Et,$ee=_n,Gee=ht,Kee=Tt;let Oh=class extends $ee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};q2.Circle=Oh;Oh.prototype._centroid=!0;Oh.prototype.className="Circle";Oh.prototype._attrsAffectingSize=["radius"];(0,Kee._registerNode)(Oh);Wee.Factory.addGetterSetter(Oh,"radius",0,(0,Gee.getNumberValidator)());var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.Ellipse=void 0;const FT=Et,qee=_n,lz=ht,Yee=Tt;class Gu extends qee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}Y2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Yee._registerNode)(Gu);FT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);FT.Factory.addGetterSetter(Gu,"radiusX",0,(0,lz.getNumberValidator)());FT.Factory.addGetterSetter(Gu,"radiusY",0,(0,lz.getNumberValidator)());var X2={};Object.defineProperty(X2,"__esModule",{value:!0});X2.Image=void 0;const jx=Lr,Nd=Et,Xee=_n,Qee=Tt,pm=ht;let xl=class sz extends Xee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?jx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?jx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=jx.Util.createImageElement();o.onload=function(){const i=new sz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};X2.Image=xl;xl.prototype.className="Image";(0,Qee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,pm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,pm.getNumberValidator)());var eh={};Object.defineProperty(eh,"__esModule",{value:!0});eh.Tag=eh.Label=void 0;const Q2=Et,Zee=_n,Jee=Ch,jT=ht,uz=Tt,cz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],ete="Change.konva",tte="none",h4="up",g4="right",v4="down",m4="left",rte=cz.length;class zT extends Jee.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}J2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,ute._registerNode)(Id);dz.Factory.addGetterSetter(Id,"radius",0,(0,fz.getNumberValidator)());dz.Factory.addGetterSetter(Id,"sides",0,(0,fz.getNumberValidator)());var e5={};Object.defineProperty(e5,"__esModule",{value:!0});e5.Ring=void 0;const pz=Et,cte=_n,hz=ht,dte=Tt,pE=Math.PI*2;class Ld extends cte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,pE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),pE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}e5.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,dte._registerNode)(Ld);pz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,hz.getNumberValidator)());pz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,hz.getNumberValidator)());var t5={};Object.defineProperty(t5,"__esModule",{value:!0});t5.Sprite=void 0;const Dd=Et,fte=_n,pte=Ph,gz=ht,hte=Tt;class Sl extends fte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new pte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],b=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),b)if(a){const S=a[r],w=n*2;t.drawImage(b,l,s,d,v,S[w+0],S[w+1],d,v)}else t.drawImage(b,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",bte="center",vz="inherit",Q0="justify",wte="Change.konva",_te="2d",hE="-",mz="left",xte="text",Ste="Text",Cte="top",Pte="bottom",gE="middle",yz="normal",Tte="px ",ob=" ",Ote="right",vE="rtl",kte="word",Ete="char",mE="none",Vx="…",bz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Mte=bz.length;function Rte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ib;function Bx(){return ib||(ib=y4.Util.createCanvasElement().getContext(_te),ib)}function Nte(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Ate(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Ite(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends mte.Shape{constructor(t){super(Ite(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(p+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=y4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(xte,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return y4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,b,S;let w=Bx(),P=this.fontSize(),y;w.save(),w.font=this._getContextFont(),y=w.measureText(t),w.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(b=y.hangingBaseline)!==null&&b!==void 0?b:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+ob+this.fontVariant()+ob+(this.fontSize()+Tte)+Rte(this.fontFamily())}_addTextLine(t){this.align()===Q0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return Bx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` +`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,b=a-d*2,S=0,w=this.wrap(),P=w!==mE,y=w!==Ete&&P,C=this.ellipsis();this.textArr=[],Bx().font=this._getContextFont();const h=C?this._getTextWidth(Vx):0;for(let p=0,c=t.length;pv)for(;g.length>0;){let _=0,T=Bc(g).length,k="",R=0;for(;_>>1,A=Bc(g),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+h;V<=v?(_=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(g),V=Bc(k),B=F[V.length],H=B===ob||B===hE;let q;if(H&&R<=v)q=V.length;else{const ne=V.lastIndexOf(ob),Q=V.lastIndexOf(hE);q=Math.max(ne,Q)+1}q>0&&(_=q,k=F.slice(0,_).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(g=Bc(g).slice(_).join("").trimLeft(),g.length>0&&(m=this._getTextWidth(g),m<=v)){this._addTextLine(g),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(g),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&pb)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==mE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+Vx)r?null:Z0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Z0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Cz}`).join(" "),wE="nodesRect",Ute=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Hte={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Wte="ontouchstart"in Pa.Konva._global;function $te(e,t,r){if(e==="rotater")return r;t+=tr.Util.degToRad(Hte[e]||0);const n=(tr.Util.radToDeg(t)%360+360)%360;return tr.Util._inRange(n,315+22.5,360)||tr.Util._inRange(n,0,22.5)?"ns-resize":tr.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":tr.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":tr.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":tr.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":tr.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":tr.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":tr.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(tr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const xw=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Gte(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Pz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function Kte(e,t){const r=Gte(e);return Pz(e,t,r)}function qte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(tr.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Ute.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(wE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(wE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Pz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),b=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();b.forEach(function(w){const P=S.point(w);r.push(P)})});const n=new tr.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),xw.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new zte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Wte?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=$te(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new jte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*tr.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},b4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let _=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(_-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+_,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=qte(this.rotationSnaps(),k,R)-m.rotation,F=Kte(m,A);this._fitNodesInto(F,t);return}const b=this.shiftBehavior();let S;b==="inverted"?S=this.keepRatio()&&!t.shiftKey:b==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var h=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-left").x()>w.x?-1:1,y=this.findOne(".top-left").y()>w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(w.x-r),this.findOne(".top-left").y(w.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-w.x,2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-right").x()w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(w.x+r),this.findOne(".top-right").y(w.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(i.y()-w.y,2));var P=w.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(tr.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tr.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new tr.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:tr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new tr.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new tr.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const b=s.multiply(l.invert());this._nodes.forEach(S=>{var w;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new tr.Transform;C.multiply(P.copy().invert()).multiply(b).multiply(P).multiply(y);const h=C.decompose();S.setAttrs(h),(w=S.getLayer())===null||w===void 0||w.batchDraw()}),this.rotation(tr.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(tr.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(b=>{b.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*tr.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(b=>{v(b)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),bE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return yE.Node.prototype.toObject.call(this)}clone(t){return yE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}o5.Transformer=Bt;Bt.isTransforming=()=>b4>0;function Yte(e){return e instanceof Array||tr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){xw.indexOf(t)===-1&&tr.Util.warn("Unknown anchor name: "+t+". Available names are: "+xw.join(", "))}),e||[]}Bt.prototype.className="Transformer";(0,Vte._registerNode)(Bt);qt.Factory.addGetterSetter(Bt,"enabledAnchors",xw,Yte);qt.Factory.addGetterSetter(Bt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());qt.Factory.addGetterSetter(Bt,"resizeEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorSize",10,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateEnabled",!0);qt.Factory.addGetterSetter(Bt,"rotateLineVisible",!0);qt.Factory.addGetterSetter(Bt,"rotationSnaps",[]);qt.Factory.addGetterSetter(Bt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateAnchorCursor","crosshair");qt.Factory.addGetterSetter(Bt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"anchorFill","white");qt.Factory.addGetterSetter(Bt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderDash");qt.Factory.addGetterSetter(Bt,"keepRatio",!0);qt.Factory.addGetterSetter(Bt,"shiftBehavior","default");qt.Factory.addGetterSetter(Bt,"centeredScaling",!1);qt.Factory.addGetterSetter(Bt,"ignoreStroke",!1);qt.Factory.addGetterSetter(Bt,"padding",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"nodes");qt.Factory.addGetterSetter(Bt,"node");qt.Factory.addGetterSetter(Bt,"boundBoxFunc");qt.Factory.addGetterSetter(Bt,"anchorDragBoundFunc");qt.Factory.addGetterSetter(Bt,"anchorStyleFunc");qt.Factory.addGetterSetter(Bt,"shouldOverdrawWholeArea",!1);qt.Factory.addGetterSetter(Bt,"useSingleNodeRotation",!0);qt.Factory.backCompat(Bt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var i5={};Object.defineProperty(i5,"__esModule",{value:!0});i5.Wedge=void 0;const a5=Et,Xte=_n,Qte=Tt,Tz=ht,Zte=Tt;class Cs extends Xte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Qte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}i5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Zte._registerNode)(Cs);a5.Factory.addGetterSetter(Cs,"radius",0,(0,Tz.getNumberValidator)());a5.Factory.addGetterSetter(Cs,"angle",0,(0,Tz.getNumberValidator)());a5.Factory.addGetterSetter(Cs,"clockwise",!1);a5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var l5={};Object.defineProperty(l5,"__esModule",{value:!0});l5.Blur=void 0;const _E=Et,Jte=Cr,ere=ht;function xE(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const tre=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],rre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function nre(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,b,S,w,P,y,C,h,p,c,g,m,_,T,k,R,E,A,F;const V=t+t+1,B=n-1,H=o-1,q=t+1,ne=q*(q+1)/2,Q=new xE,W=tre[t],X=rre[t];let re=null,Z=Q,oe=null,fe=null;for(l=1;l>X,A!==0?(A=255/A,r[v]=(S*W>>X)*A,r[v+1]=(w*W>>X)*A,r[v+2]=(P*W>>X)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,w-=h,P-=p,y-=c,C-=oe.r,h-=oe.g,p-=oe.b,c-=oe.a,s=b+((s=i+t+1)>X,A>0?(A=255/A,r[s]=(S*W>>X)*A,r[s+1]=(w*W>>X)*A,r[s+2]=(P*W>>X)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,w-=h,P-=p,y-=c,C-=oe.r,h-=oe.g,p-=oe.b,c-=oe.a,s=i+((s=a+q)0&&nre(t,r)};l5.Blur=ore;_E.Factory.addGetterSetter(Jte.Node,"blurRadius",0,(0,ere.getNumberValidator)(),_E.Factory.afterSetFilter);var s5={};Object.defineProperty(s5,"__esModule",{value:!0});s5.Brighten=void 0;const SE=Et,ire=Cr,are=ht,lre=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};u5.Contrast=cre;CE.Factory.addGetterSetter(sre.Node,"contrast",0,(0,ure.getNumberValidator)(),CE.Factory.afterSetFilter);var c5={};Object.defineProperty(c5,"__esModule",{value:!0});c5.Emboss=void 0;const Lu=Et,d5=Cr,dre=Lr,Oz=ht,fre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,b=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:dre.Util.error("Unknown emboss direction: "+n)}do{const S=(b-1)*s;let w=d;b+w<1&&(w=0),b+w>l&&(w=0);const P=(b-1+w)*a*4;let y=a;do{const C=S+(y-1)*4;let h=v;y+h<1&&(h=0),y+h>a&&(h=0);const p=P+(y-1+h)*4,c=i[C]-i[p],g=i[C+1]-i[p+1],m=i[C+2]-i[p+2];let _=c;const T=_>0?_:-_,k=g>0?g:-g,R=m>0?m:-m;if(k>T&&(_=g),R>T&&(_=m),_*=t,o){const E=i[C]+_,A=i[C+1]+_,F=i[C+2]+_;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-_;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--b)};c5.Emboss=fre;Lu.Factory.addGetterSetter(d5.Node,"embossStrength",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossWhiteLevel",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var f5={};Object.defineProperty(f5,"__esModule",{value:!0});f5.Enhance=void 0;const PE=Et,pre=Cr,hre=ht;function Wx(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const gre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,b;const S=this.enhance();if(S===0)return;for(let _=0;_o&&(o=i),s=t[_+1],sl&&(l=s),b=t[_+2],bv&&(v=b);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let w,P,y,C,h,p,c,g,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),h=l+S*(255-l),p=a-S*(a-0),g=v+S*(255-v),m=d-S*(d-0)):(w=(o+n)*.5,P=o+S*(o-w),y=n+S*(n-w),C=(l+a)*.5,h=l+S*(l-C),p=a+S*(a-C),c=(v+d)*.5,g=v+S*(v-c),m=d+S*(d-c));for(let _=0;_d?S:d;const w=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const w=a,P=i,y=0;let C,h;for(v=0;vt&&(g=c,m=0,_=-1),o=0;o=0&&w=0&&P=0&&w=0&&P=1020?255:0}return a}function Mre(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&w=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=g[a+0],s+=g[a+1],d+=g[a+2],v+=g[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=w;o=r))for(i=y;i=n||(a=(r*i+o)*4,g[a+0]=l,g[a+1]=s,g[a+2]=d,g[a+3]=v)}};w5.Pixelate=jre;EE.Factory.addGetterSetter(Dre.Node,"pixelSize",8,(0,Fre.getNumberValidator)(),EE.Factory.afterSetFilter);var _5={};Object.defineProperty(_5,"__esModule",{value:!0});_5.Posterize=void 0;const ME=Et,zre=Cr,Vre=ht,Bre=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter(GT.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter(GT.Node,"blue",0,Ure.RGBComponent,Cw.Factory.afterSetFilter);var S5={};Object.defineProperty(S5,"__esModule",{value:!0});S5.RGBA=void 0;const Rv=Et,C5=Cr,Wre=ht,$re=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Rv.Factory.addGetterSetter(C5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Rv.Factory.addGetterSetter(C5.Node,"blue",0,Wre.RGBComponent,Rv.Factory.afterSetFilter);Rv.Factory.addGetterSetter(C5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var P5={};Object.defineProperty(P5,"__esModule",{value:!0});P5.Sepia=void 0;const Gre=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),b>127&&(b=255-b),t[s]=d,t[s+1]=v,t[s+2]=b}while(--l)}while(--i)};T5.Solarize=Kre;var O5={};Object.defineProperty(O5,"__esModule",{value:!0});O5.Threshold=void 0;const RE=Et,qre=Cr,Yre=ht,Xre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;ose||L[K]!==j[se]){var ye=` +`+L[K].replace(" at new "," at ");return u.displayName&&ye.includes("")&&(ye=ye.replace("",u.displayName)),ye}while(1<=K&&0<=se);break}}}finally{jn=!1,Error.prepareStackTrace=O}return(u=u?u.displayName||u.name:"")?Fr(u):""}var ji=Object.prototype.hasOwnProperty,zn=[],un=-1;function Zr(u){return{current:u}}function At(u){0>un||(u.current=zn[un],zn[un]=null,un--)}function He(u,f){un++,zn[un]=u.current,u.current=f}var It={},at=Zr(It),rt=Zr(!1),St=It;function cn(u,f){var O=u.type.contextTypes;if(!O)return It;var N=u.stateNode;if(N&&N.__reactInternalMemoizedUnmaskedChildContext===f)return N.__reactInternalMemoizedMaskedChildContext;var L={},j;for(j in O)L[j]=f[j];return N&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=f,u.__reactInternalMemoizedMaskedChildContext=L),L}function wr(u){return u=u.childContextTypes,u!=null}function wo(){At(rt),At(at)}function qa(u,f,O){if(at.current!==It)throw Error(a(168));He(at,f),He(rt,O)}function Qu(u,f,O){var N=u.stateNode;if(f=f.childContextTypes,typeof N.getChildContext!="function")return O;N=N.getChildContext();for(var L in N)if(!(L in f))throw Error(a(108,k(u)||"Unknown",L));return i({},O,N)}function jd(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||It,St=at.current,He(at,u),He(rt,rt.current),!0}function vm(u,f,O){var N=u.stateNode;if(!N)throw Error(a(169));O?(u=Qu(u,f,St),N.__reactInternalMemoizedMergedChildContext=u,At(rt),At(at),He(at,u)):At(rt),He(rt,O)}var oi=Math.clz32?Math.clz32:Tl,W5=Math.log,mm=Math.LN2;function Tl(u){return u>>>=0,u===0?32:31-(W5(u)/mm|0)|0}var Ol=64,Zu=4194304;function ks(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function Ju(u,f){var O=u.pendingLanes;if(O===0)return 0;var N=0,L=u.suspendedLanes,j=u.pingedLanes,K=O&268435455;if(K!==0){var se=K&~L;se!==0?N=ks(se):(j&=K,j!==0&&(N=ks(j)))}else K=O&~L,K!==0?N=ks(K):j!==0&&(N=ks(j));if(N===0)return 0;if(f!==0&&f!==N&&(f&L)===0&&(L=N&-N,j=f&-f,L>=j||L===16&&(j&4194240)!==0))return f;if((N&4)!==0&&(N|=O&16),f=u.entangledLanes,f!==0)for(u=u.entanglements,f&=N;0O;O++)f.push(u);return f}function Ya(u,f,O){u.pendingLanes|=f,f!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,f=31-oi(f),u[f]=O}function $5(u,f){var O=u.pendingLanes&~f;u.pendingLanes=f,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=f,u.mutableReadLanes&=f,u.entangledLanes&=f,f=u.entanglements;var N=u.eventTimes;for(u=u.expirationTimes;0>=K,L-=K,Vi=1<<32-oi(f)+L|O<vt?(ft=ct,ct=null):ft=ct.sibling;var Ne=Ae(_e,ct,Pe[vt],Be);if(Ne===null){ct===null&&(ct=ft);break}u&&ct&&Ne.alternate===null&&f(_e,ct),ve=j(Ne,ve,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne,ct=ft}if(vt===Pe.length)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;vtvt?(ft=ct,ct=null):ft=ct.sibling;var nt=Ae(_e,ct,Ne.value,Be);if(nt===null){ct===null&&(ct=ft);break}u&&ct&&nt.alternate===null&&f(_e,ct),ve=j(nt,ve,vt),yt===null?tt=nt:yt.sibling=nt,yt=nt,ct=ft}if(Ne.done)return O(_e,ct),ar&&Ml(_e,vt),tt;if(ct===null){for(;!Ne.done;vt++,Ne=Pe.next())Ne=Ve(_e,Ne.value,Be),Ne!==null&&(ve=j(Ne,ve,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return ar&&Ml(_e,vt),tt}for(ct=N(_e,ct);!Ne.done;vt++,Ne=Pe.next())Ne=Rt(ct,_e,vt,Ne.value,Be),Ne!==null&&(u&&Ne.alternate!==null&&ct.delete(Ne.key===null?vt:Ne.key),ve=j(Ne,ve,vt),yt===null?tt=Ne:yt.sibling=Ne,yt=Ne);return u&&ct.forEach(function(Un){return f(_e,Un)}),ar&&Ml(_e,vt),tt}function On(_e,ve,Pe,Be){if(typeof Pe=="object"&&Pe!==null&&Pe.type===v&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case s:e:{for(var tt=Pe.key,yt=ve;yt!==null;){if(yt.key===tt){if(tt=Pe.type,tt===v){if(yt.tag===7){O(_e,yt.sibling),ve=L(yt,Pe.props.children),ve.return=_e,_e=ve;break e}}else if(yt.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===c&&So(tt)===yt.type){O(_e,yt.sibling),ve=L(yt,Pe.props),ve.ref=lc(_e,yt,Pe),ve.return=_e,_e=ve;break e}O(_e,yt);break}else f(_e,yt);yt=yt.sibling}Pe.type===v?(ve=I(Pe.props.children,_e.mode,Be,Pe.key),ve.return=_e,_e=ve):(Be=M(Pe.type,Pe.key,Pe.props,null,_e.mode,Be),Be.ref=lc(_e,ve,Pe),Be.return=_e,_e=Be)}return K(_e);case d:e:{for(yt=Pe.key;ve!==null;){if(ve.key===yt)if(ve.tag===4&&ve.stateNode.containerInfo===Pe.containerInfo&&ve.stateNode.implementation===Pe.implementation){O(_e,ve.sibling),ve=L(ve,Pe.children||[]),ve.return=_e,_e=ve;break e}else{O(_e,ve);break}else f(_e,ve);ve=ve.sibling}ve=$(Pe,_e.mode,Be),ve.return=_e,_e=ve}return K(_e);case c:return yt=Pe._init,On(_e,ve,yt(Pe._payload),Be)}if(H(Pe))return wt(_e,ve,Pe,Be);if(_(Pe))return er(_e,ve,Pe,Be);sc(_e,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,ve!==null&&ve.tag===6?(O(_e,ve.sibling),ve=L(ve,Pe),ve.return=_e,_e=ve):(O(_e,ve),ve=z(Pe,_e.mode,Be),ve.return=_e,_e=ve),K(_e)):O(_e,ve)}return On}var Ns=Dh(!0),Fh=Dh(!1),Xa=Zr(null),Xd=null,As=null,jh=null;function uc(){jh=As=Xd=null}function Qd(u,f,O){Se?(He(Xa,f._currentValue),f._currentValue=O):(He(Xa,f._currentValue2),f._currentValue2=O)}function zh(u){var f=Xa.current;At(Xa),Se?u._currentValue=f:u._currentValue2=f}function cc(u,f,O){for(;u!==null;){var N=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,N!==null&&(N.childLanes|=f)):N!==null&&(N.childLanes&f)!==f&&(N.childLanes|=f),u===O)break;u=u.return}}function Is(u,f){Xd=u,jh=As=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&f)!==0&&(eo=!0),u.firstContext=null)}function Co(u){var f=Se?u._currentValue:u._currentValue2;if(jh!==u)if(u={context:u,memoizedValue:f,next:null},As===null){if(Xd===null)throw Error(a(308));As=u,Xd.dependencies={lanes:0,firstContext:u}}else As=As.next=u;return f}var Bi=null;function dc(u){Bi===null?Bi=[u]:Bi.push(u)}function Vh(u,f,O,N){var L=f.interleaved;return L===null?(O.next=O,dc(f)):(O.next=L.next,L.next=O),f.interleaved=O,Ui(u,N)}function Ui(u,f){u.lanes|=f;var O=u.alternate;for(O!==null&&(O.lanes|=f),O=u,u=u.return;u!==null;)u.childLanes|=f,O=u.alternate,O!==null&&(O.childLanes|=f),O=u,u=u.return;return O.tag===3?O.stateNode:null}var Qa=!1;function Bh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cm(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ci(u,f){return{eventTime:u,lane:f,tag:0,payload:null,callback:null,next:null}}function Za(u,f,O){var N=u.updateQueue;if(N===null)return null;if(N=N.shared,(Ct&2)!==0){var L=N.pending;return L===null?f.next=f:(f.next=L.next,L.next=f),N.pending=f,Ui(u,O)}return L=N.interleaved,L===null?(f.next=f,dc(N)):(f.next=L.next,L.next=f),N.interleaved=f,Ui(u,O)}function Zd(u,f,O){if(f=f.updateQueue,f!==null&&(f=f.shared,(O&4194240)!==0)){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}function Pm(u,f){var O=u.updateQueue,N=u.alternate;if(N!==null&&(N=N.updateQueue,O===N)){var L=null,j=null;if(O=O.firstBaseUpdate,O!==null){do{var K={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};j===null?L=j=K:j=j.next=K,O=O.next}while(O!==null);j===null?L=j=f:j=j.next=f}else L=j=f;O={baseState:N.baseState,firstBaseUpdate:L,lastBaseUpdate:j,shared:N.shared,effects:N.effects},u.updateQueue=O;return}u=O.lastBaseUpdate,u===null?O.firstBaseUpdate=f:u.next=f,O.lastBaseUpdate=f}function Jd(u,f,O,N){var L=u.updateQueue;Qa=!1;var j=L.firstBaseUpdate,K=L.lastBaseUpdate,se=L.shared.pending;if(se!==null){L.shared.pending=null;var ye=se,Te=ye.next;ye.next=null,K===null?j=Te:K.next=Te,K=ye;var Ee=u.alternate;Ee!==null&&(Ee=Ee.updateQueue,se=Ee.lastBaseUpdate,se!==K&&(se===null?Ee.firstBaseUpdate=Te:se.next=Te,Ee.lastBaseUpdate=ye))}if(j!==null){var Ve=L.baseState;K=0,Ee=Te=ye=null,se=j;do{var Ae=se.lane,Rt=se.eventTime;if((N&Ae)===Ae){Ee!==null&&(Ee=Ee.next={eventTime:Rt,lane:0,tag:se.tag,payload:se.payload,callback:se.callback,next:null});e:{var wt=u,er=se;switch(Ae=f,Rt=O,er.tag){case 1:if(wt=er.payload,typeof wt=="function"){Ve=wt.call(Rt,Ve,Ae);break e}Ve=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=er.payload,Ae=typeof wt=="function"?wt.call(Rt,Ve,Ae):wt,Ae==null)break e;Ve=i({},Ve,Ae);break e;case 2:Qa=!0}}se.callback!==null&&se.lane!==0&&(u.flags|=64,Ae=L.effects,Ae===null?L.effects=[se]:Ae.push(se))}else Rt={eventTime:Rt,lane:Ae,tag:se.tag,payload:se.payload,callback:se.callback,next:null},Ee===null?(Te=Ee=Rt,ye=Ve):Ee=Ee.next=Rt,K|=Ae;if(se=se.next,se===null){if(se=L.shared.pending,se===null)break;Ae=se,se=Ae.next,Ae.next=null,L.lastBaseUpdate=Ae,L.shared.pending=null}}while(!0);if(Ee===null&&(ye=Ve),L.baseState=ye,L.firstBaseUpdate=Te,L.lastBaseUpdate=Ee,f=L.shared.interleaved,f!==null){L=f;do K|=L.lane,L=L.next;while(L!==f)}else j===null&&(L.shared.lanes=0);jl|=K,u.lanes=K,u.memoizedState=Ve}}function Tm(u,f,O){if(u=f.effects,f.effects=null,u!==null)for(f=0;fO?O:4,u(!0);var N=of.transition;of.transition={};try{u(!1),f()}finally{Vt=O,of.transition=N}}function mc(){return To().memoizedState}function e_(u,f,O){var N=nl(u);if(O={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null},Im(u))Xh(f,O);else if(O=Vh(u,f,O,N),O!==null){var L=pn();Uo(O,u,N,L),yc(O,f,N)}}function t_(u,f,O){var N=nl(u),L={lane:N,action:O,hasEagerState:!1,eagerState:null,next:null};if(Im(u))Xh(f,L);else{var j=u.alternate;if(u.lanes===0&&(j===null||j.lanes===0)&&(j=f.lastRenderedReducer,j!==null))try{var K=f.lastRenderedState,se=j(K,O);if(L.hasEagerState=!0,L.eagerState=se,jo(se,K)){var ye=f.interleaved;ye===null?(L.next=L,dc(f)):(L.next=ye.next,ye.next=L),f.interleaved=L;return}}catch{}finally{}O=Vh(u,f,L,N),O!==null&&(L=pn(),Uo(O,u,N,L),yc(O,f,N))}}function Im(u){var f=u.alternate;return u===lr||f!==null&&f===lr}function Xh(u,f){pc=fc=!0;var O=u.pending;O===null?f.next=f:(f.next=O.next,O.next=f),u.pending=f}function yc(u,f,O){if((O&4194240)!==0){var N=f.lanes;N&=u.pendingLanes,O|=N,f.lanes=O,Bd(u,O)}}var sf={readContext:Co,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},r_={readContext:Co,useCallback:function(u,f){return fi().memoizedState=[u,f===void 0?null:f],u},useContext:Co,useEffect:Gh,useImperativeHandle:function(u,f,O){return O=O!=null?O.concat([u]):null,vc(4194308,4,Mm.bind(null,f,u),O)},useLayoutEffect:function(u,f){return vc(4194308,4,u,f)},useInsertionEffect:function(u,f){return vc(4,2,u,f)},useMemo:function(u,f){var O=fi();return f=f===void 0?null:f,u=u(),O.memoizedState=[u,f],u},useReducer:function(u,f,O){var N=fi();return f=O!==void 0?O(f):f,N.memoizedState=N.baseState=f,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:f},N.queue=u,u=u.dispatch=e_.bind(null,lr,u),[N.memoizedState,u]},useRef:function(u){var f=fi();return u={current:u},f.memoizedState=u},useState:ma,useDebugValue:tl,useDeferredValue:function(u){return fi().memoizedState=u},useTransition:function(){var u=ma(!1),f=u[0];return u=J5.bind(null,u[1]),fi().memoizedState=u,[f,u]},useMutableSource:function(){},useSyncExternalStore:function(u,f,O){var N=lr,L=fi();if(ar){if(O===void 0)throw Error(a(407));O=O()}else{if(O=f(),Kr===null)throw Error(a(349));(Al&30)!==0||Wh(N,f,O)}L.memoizedState=O;var j={value:O,getSnapshot:f};return L.queue=j,Gh(Em.bind(null,N,j,u),[u]),N.flags|=2048,Fs(9,km.bind(null,N,j,O,f),void 0,null),O},useId:function(){var u=fi(),f=Kr.identifierPrefix;if(ar){var O=va,N=Vi;O=(N&~(1<<32-oi(N)-1)).toString(32)+O,f=":"+f+"R"+O,O=Ls++,0b0&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304)}else{if(!N)if(u=Po(j),u!==null){if(f.flags|=128,N=!0,u=u.updateQueue,u!==null&&(f.updateQueue=u,f.flags|=4),Vs(L,!0),L.tail===null&&L.tailMode==="hidden"&&!j.alternate&&!ar)return Tn(f),null}else 2*Jr()-L.renderingStartTime>b0&&O!==1073741824&&(f.flags|=128,N=!0,Vs(L,!1),f.lanes=4194304);L.isBackwards?(j.sibling=f.child,f.child=j):(u=L.last,u!==null?u.sibling=j:f.child=j,L.last=j)}return L.tail!==null?(f=L.tail,L.rendering=f,L.tail=f.sibling,L.renderingStartTime=Jr(),f.sibling=null,u=fr.current,He(fr,N?u&1|2:u&1),f):(Tn(f),null);case 22:case 23:return S0(),O=f.memoizedState!==null,u!==null&&u.memoizedState!==null!==O&&(f.flags|=8192),O&&(f.mode&1)!==0?(to&1073741824)!==0&&(Tn(f),Ce&&f.subtreeFlags&6&&(f.flags|=8192)):Tn(f),null;case 24:return null;case 25:return null}throw Error(a(156,f.tag))}function i_(u,f){switch(nc(f),f.tag){case 1:return wr(f.type)&&wo(),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return Ja(),At(rt),At(at),nf(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 5:return tf(f),null;case 13:if(At(fr),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(a(340));Rs()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return At(fr),null;case 4:return Ja(),null;case 10:return zh(f.type._context),null;case 22:case 23:return S0(),null;case 24:return null;default:return null}}var yf=!1,dn=!1,Ym=typeof WeakSet=="function"?WeakSet:Set,We=null;function Dl(u,f){var O=u.ref;if(O!==null)if(typeof O=="function")try{O(null)}catch(N){sr(u,f,N)}else O.current=null}function s0(u,f,O){try{O()}catch(N){sr(u,f,N)}}var Xm=!1;function Qm(u,f){for(W(u.containerInfo),We=f;We!==null;)if(u=We,f=u.child,(u.subtreeFlags&1028)!==0&&f!==null)f.return=u,We=f;else for(;We!==null;){u=We;try{var O=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var N=O.memoizedProps,L=O.memoizedState,j=u.stateNode,K=j.getSnapshotBeforeUpdate(u.elementType===u.type?N:hi(u.type,N),L);j.__reactInternalSnapshotBeforeUpdate=K}break;case 3:Ce&&Li(u.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(se){sr(u,u.return,se)}if(f=u.sibling,f!==null){f.return=u.return,We=f;break}We=u.return}return O=Xm,Xm=!1,O}function Tc(u,f,O){var N=f.updateQueue;if(N=N!==null?N.lastEffect:null,N!==null){var L=N=N.next;do{if((L.tag&u)===u){var j=L.destroy;L.destroy=void 0,j!==void 0&&s0(f,O,j)}L=L.next}while(L!==N)}}function Oc(u,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var O=f=f.next;do{if((O.tag&u)===u){var N=O.create;O.destroy=N()}O=O.next}while(O!==f)}}function bf(u){var f=u.ref;if(f!==null){var O=u.stateNode;switch(u.tag){case 5:u=q(O);break;default:u=O}typeof f=="function"?f(u):f.current=u}}function u0(u){var f=u.alternate;f!==null&&(u.alternate=null,u0(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&ze(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function Zm(u){return u.tag===5||u.tag===3||u.tag===4}function Jm(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Zm(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function c0(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?yo(O,u,f):Qn(O,u);else if(N!==4&&(u=u.child,u!==null))for(c0(u,f,O),u=u.sibling;u!==null;)c0(u,f,O),u=u.sibling}function wf(u,f,O){var N=u.tag;if(N===5||N===6)u=u.stateNode,f?Yt(O,u,f):ln(O,u);else if(N!==4&&(u=u.child,u!==null))for(wf(u,f,O),u=u.sibling;u!==null;)wf(u,f,O),u=u.sibling}var fn=null,gi=!1;function $i(u,f,O){for(O=O.child;O!==null;)d0(u,f,O),O=O.sibling}function d0(u,f,O){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(ii,O)}catch{}switch(O.tag){case 5:dn||Dl(O,f);case 6:if(Ce){var N=fn,L=gi;fn=null,$i(u,f,O),fn=N,gi=L,fn!==null&&(gi?Cl(fn,O.stateNode):Qr(fn,O.stateNode))}else $i(u,f,O);break;case 18:Ce&&fn!==null&&(gi?Ut(fn,O.stateNode):Nt(fn,O.stateNode));break;case 4:Ce?(N=fn,L=gi,fn=O.stateNode.containerInfo,gi=!0,$i(u,f,O),fn=N,gi=L):(Me&&(N=O.stateNode.containerInfo,L=$r(N),pa(N,L)),$i(u,f,O));break;case 0:case 11:case 14:case 15:if(!dn&&(N=O.updateQueue,N!==null&&(N=N.lastEffect,N!==null))){L=N=N.next;do{var j=L,K=j.destroy;j=j.tag,K!==void 0&&((j&2)!==0||(j&4)!==0)&&s0(O,f,K),L=L.next}while(L!==N)}$i(u,f,O);break;case 1:if(!dn&&(Dl(O,f),N=O.stateNode,typeof N.componentWillUnmount=="function"))try{N.props=O.memoizedProps,N.state=O.memoizedState,N.componentWillUnmount()}catch(se){sr(O,f,se)}$i(u,f,O);break;case 21:$i(u,f,O);break;case 22:O.mode&1?(dn=(N=dn)||O.memoizedState!==null,$i(u,f,O),dn=N):$i(u,f,O);break;default:$i(u,f,O)}}function ey(u){var f=u.updateQueue;if(f!==null){u.updateQueue=null;var O=u.stateNode;O===null&&(O=u.stateNode=new Ym),f.forEach(function(N){var L=f_.bind(null,u,N);O.has(N)||(O.add(N),N.then(L,L))})}}function vi(u,f){var O=f.deletions;if(O!==null)for(var N=0;N";case _f:return":has("+(xf(u)||"")+")";case Gi:return'[role="'+u.value+'"]';case Ec:return'"'+u.value+'"';case Bs:return'[data-testname="'+u.value+'"]';default:throw Error(a(365))}}function Mc(u,f){var O=[];u=[u,0];for(var N=0;NL&&(L=K),N&=~j}if(N=L,N=Jr()-N,N=(120>N?120:480>N?480:1080>N?1080:1920>N?1920:3e3>N?3e3:4320>N?4320:1960*l_(N/1960))-N,10u?16:u,_a===null)var N=!1;else{if(u=_a,_a=null,Tf=0,(Ct&6)!==0)throw Error(a(331));var L=Ct;for(Ct|=4,We=u.current;We!==null;){var j=We,K=j.child;if((We.flags&16)!==0){var se=j.deletions;if(se!==null){for(var ye=0;yeJr()-y0?Bl(u,0):m0|=O),ro(u,f)}function uy(u,f){f===0&&((u.mode&1)===0?f=1:(f=Zu,Zu<<=1,(Zu&130023424)===0&&(Zu=4194304)));var O=pn();u=Ui(u,f),u!==null&&(Ya(u,f,O),ro(u,O))}function O0(u){var f=u.memoizedState,O=0;f!==null&&(O=f.retryLane),uy(u,O)}function f_(u,f){var O=0;switch(u.tag){case 13:var N=u.stateNode,L=u.memoizedState;L!==null&&(O=L.retryLane);break;case 19:N=u.stateNode;break;default:throw Error(a(314))}N!==null&&N.delete(f),uy(u,O)}var cy;cy=function(u,f,O){if(u!==null)if(u.memoizedProps!==f.pendingProps||rt.current)eo=!0;else{if((u.lanes&O)===0&&(f.flags&128)===0)return eo=!1,Km(u,f,O);eo=(u.flags&131072)!==0}else eo=!1,ar&&(f.flags&1048576)!==0&&$d(f,zi,f.index);switch(f.lanes=0,f.tag){case 2:var N=f.type;mf(u,f),u=f.pendingProps;var L=cn(f,at.current);Is(f,O),L=hc(null,f,N,u,L,O);var j=Hh();return f.flags|=1,typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,wr(N)?(j=!0,jd(f)):j=!1,f.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,Bh(f),L.updater=wc,f.stateNode=L,L._reactInternals=f,Qh(f,N,u,O),f=r0(null,f,N,!0,j,O)):(f.tag=0,ar&&j&&rc(f),Pn(null,f,L,O),f=f.child),f;case 16:N=f.elementType;e:{switch(mf(u,f),u=f.pendingProps,L=N._init,N=L(N._payload),f.type=N,L=f.tag=h_(N),u=hi(N,u),L){case 0:f=ff(null,f,N,u,O);break e;case 1:f=$m(null,f,N,u,O);break e;case 11:f=Vm(null,f,N,u,O);break e;case 14:f=Bm(null,f,N,hi(N.type,u),O);break e}throw Error(a(306,N,""))}return f;case 0:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),ff(u,f,N,L,O);case 1:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),$m(u,f,N,L,O);case 3:e:{if(pf(f),u===null)throw Error(a(387));N=f.pendingProps,j=f.memoizedState,L=j.element,Cm(u,f),Jd(f,N,null,O);var K=f.memoizedState;if(N=K.element,Le&&j.isDehydrated)if(j={element:N,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},f.updateQueue.baseState=j,f.memoizedState=j,f.flags&256){L=zs(Error(a(423)),f),f=n0(u,f,N,O,L);break e}else if(N!==L){L=zs(Error(a(424)),f),f=n0(u,f,N,O,L);break e}else for(Le&&(xo=Ue(f.stateNode.containerInfo),_o=f,ar=!0,ui=null,oc=!1),O=Fh(f,null,N,O),f.child=O;O;)O.flags=O.flags&-3|4096,O=O.sibling;else{if(Rs(),N===L){f=Hi(u,f,O);break e}Pn(u,f,N,O)}f=f.child}return f;case 5:return Om(f),u===null&&Kd(f),N=f.type,L=f.pendingProps,j=u!==null?u.memoizedProps:null,K=L.children,ge(N,L)?K=null:j!==null&&ge(N,j)&&(f.flags|=32),Wm(u,f),Pn(u,f,K,O),f.child;case 6:return u===null&&Kd(f),null;case 13:return Gm(u,f,O);case 4:return ef(f,f.stateNode.containerInfo),N=f.pendingProps,u===null?f.child=Ns(f,null,N,O):Pn(u,f,N,O),f.child;case 11:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),Vm(u,f,N,L,O);case 7:return Pn(u,f,f.pendingProps,O),f.child;case 8:return Pn(u,f,f.pendingProps.children,O),f.child;case 12:return Pn(u,f,f.pendingProps.children,O),f.child;case 10:e:{if(N=f.type._context,L=f.pendingProps,j=f.memoizedProps,K=L.value,Qd(f,N,K),j!==null)if(jo(j.value,K)){if(j.children===L.children&&!rt.current){f=Hi(u,f,O);break e}}else for(j=f.child,j!==null&&(j.return=f);j!==null;){var se=j.dependencies;if(se!==null){K=j.child;for(var ye=se.firstContext;ye!==null;){if(ye.context===N){if(j.tag===1){ye=ci(-1,O&-O),ye.tag=2;var Te=j.updateQueue;if(Te!==null){Te=Te.shared;var Ee=Te.pending;Ee===null?ye.next=ye:(ye.next=Ee.next,Ee.next=ye),Te.pending=ye}}j.lanes|=O,ye=j.alternate,ye!==null&&(ye.lanes|=O),cc(j.return,O,f),se.lanes|=O;break}ye=ye.next}}else if(j.tag===10)K=j.type===f.type?null:j.child;else if(j.tag===18){if(K=j.return,K===null)throw Error(a(341));K.lanes|=O,se=K.alternate,se!==null&&(se.lanes|=O),cc(K,O,f),K=j.sibling}else K=j.child;if(K!==null)K.return=j;else for(K=j;K!==null;){if(K===f){K=null;break}if(j=K.sibling,j!==null){j.return=K.return,K=j;break}K=K.return}j=K}Pn(u,f,L.children,O),f=f.child}return f;case 9:return L=f.type,N=f.pendingProps.children,Is(f,O),L=Co(L),N=N(L),f.flags|=1,Pn(u,f,N,O),f.child;case 14:return N=f.type,L=hi(N,f.pendingProps),L=hi(N.type,L),Bm(u,f,N,L,O);case 15:return Um(u,f,f.type,f.pendingProps,O);case 17:return N=f.type,L=f.pendingProps,L=f.elementType===N?L:hi(N,L),mf(u,f),f.tag=1,wr(N)?(u=!0,jd(f)):u=!1,Is(f,O),Fm(f,N,L),Qh(f,N,L,O),r0(null,f,N,!0,u,O);case 19:return a0(u,f,O);case 22:return Hm(u,f,O)}throw Error(a(156,f.tag))};function dy(u,f){return ec(u,f)}function p_(u,f,O,N){this.tag=u,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(u,f,O,N){return new p_(u,f,O,N)}function Ef(u){return u=u.prototype,!(!u||!u.isReactComponent)}function h_(u){if(typeof u=="function")return Ef(u)?1:0;if(u!=null){if(u=u.$$typeof,u===y)return 11;if(u===p)return 14}return 2}function x(u,f){var O=u.alternate;return O===null?(O=Oo(u.tag,f,u.key,u.mode),O.elementType=u.elementType,O.type=u.type,O.stateNode=u.stateNode,O.alternate=u,u.alternate=O):(O.pendingProps=f,O.type=u.type,O.flags=0,O.subtreeFlags=0,O.deletions=null),O.flags=u.flags&14680064,O.childLanes=u.childLanes,O.lanes=u.lanes,O.child=u.child,O.memoizedProps=u.memoizedProps,O.memoizedState=u.memoizedState,O.updateQueue=u.updateQueue,f=u.dependencies,O.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},O.sibling=u.sibling,O.index=u.index,O.ref=u.ref,O}function M(u,f,O,N,L,j){var K=2;if(N=u,typeof u=="function")Ef(u)&&(K=1);else if(typeof u=="string")K=5;else e:switch(u){case v:return I(O.children,L,j,f);case b:K=8,L|=8;break;case S:return u=Oo(12,O,f,L|2),u.elementType=S,u.lanes=j,u;case C:return u=Oo(13,O,f,L),u.elementType=C,u.lanes=j,u;case h:return u=Oo(19,O,f,L),u.elementType=h,u.lanes=j,u;case g:return D(O,L,j,f);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case w:K=10;break e;case P:K=9;break e;case y:K=11;break e;case p:K=14;break e;case c:K=16,N=null;break e}throw Error(a(130,u==null?u:typeof u,""))}return f=Oo(K,O,f,L),f.elementType=u,f.type=N,f.lanes=j,f}function I(u,f,O,N){return u=Oo(7,u,N,f),u.lanes=O,u}function D(u,f,O,N){return u=Oo(22,u,N,f),u.elementType=g,u.lanes=O,u.stateNode={isHidden:!1},u}function z(u,f,O){return u=Oo(6,u,null,f),u.lanes=O,u}function $(u,f,O){return f=Oo(4,u.children!==null?u.children:[],u.key,f),f.lanes=O,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}function G(u,f,O,N,L){this.tag=f,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ue,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=N,this.onRecoverableError=L,Le&&(this.mutableSourceEagerHydrationData=null)}function U(u,f,O,N,L,j,K,se,ye){return u=new G(u,f,O,se,ye),f===1?(f=1,j===!0&&(f|=8)):f=0,j=Oo(3,null,null,f),u.current=j,j.stateNode=u,j.memoizedState={element:N,isDehydrated:O,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bh(j),u}function ee(u){if(!u)return It;u=u._reactInternals;e:{if(R(u)!==u||u.tag!==1)throw Error(a(170));var f=u;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(wr(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(a(171))}if(u.tag===1){var O=u.type;if(wr(O))return Qu(u,O,f)}return f}function te(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(a(188)):(u=Object.keys(u).join(","),Error(a(268,u)));return u=F(f),u===null?null:u.stateNode}function ae(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var O=u.retryLane;u.retryLane=O!==0&&O=Te&&j>=Ve&&L<=Ee&&K<=Ae){u.splice(f,1);break}else if(N!==Te||O.width!==ye.width||AeK){if(!(j!==Ve||O.height!==ye.height||EeL)){Te>N&&(ye.width+=Te-N,ye.x=N),Eej&&(ye.height+=Ve-j,ye.y=j),AeO&&(O=K)),K ")+` + +No matching component was found for: + `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return q(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:pe,findFiberByHostInstance:u.findFiberByHostInstance||me,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)u=!0;else{try{ii=f.inject(u),ai=f}catch{}u=!!f.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,f,O,N){if(!gt)throw Error(a(363));u=Rc(u,f);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,f){var O=f._getVersion;O=O(f._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[f,O]:u.mutableSourceEagerHydrationData.push(f,O)},r.runWithPriority=function(u,f){var O=Vt;try{return Vt=u,f()}finally{Vt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,f,O,N){var L=f.current,j=pn(),K=nl(L);return O=ee(O),f.context===null?f.context=O:f.pendingContext=O,f=ci(j,K),f.payload={element:u},N=N===void 0?null:N,N!==null&&(f.callback=N),u=Za(L,f,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Mz.exports=Dne;var Fne=Mz.exports;const jne=oh(Fne);var Rz={exports:{}},Fd={};/** + * @license React + * react-reconciler-constants.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Rz.exports=Fd;var Nz=Rz.exports;const IE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let LE=!1,DE=!1;const KT=".react-konva-event",zne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. +Position of a node will be changed during drag&drop, so you should update state of the react app as well. +Consider to add onDragMove or onDragEnd events. +For more info see: https://github.com/konvajs/react-konva/issues/256 +`,Vne=`ReactKonva: You are using "zIndex" attribute for a Konva node. +react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. +For more info see: https://github.com/konvajs/react-konva/issues/194 +`,Bne={};function k5(e,t,r=Bne){if(!LE&&"zIndex"in t&&(console.warn(Vne),LE=!0),!DE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(zne),DE=!0)}for(var i in r)if(!IE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,b={},S=!1;const w={};for(var i in t)if(!IE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(w[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,b[i]=t[i])}S&&(e.setAttrs(b),Xu(e));for(var s in w)e.on(s+KT,w[s])}function Xu(e){if(!Tt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Az={},Une={};Nv.Node.prototype._applyProps=k5;function Hne(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function Wne(e,t,r){let n=Nv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Nv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return k5(s,i),s}function $ne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Gne(e,t,r){return!1}function Kne(e){return e}function qne(){return null}function Yne(){return null}function Xne(e,t,r,n){return Une}function Qne(){}function Zne(e){}function Jne(e,t){return!1}function eoe(){return Az}function toe(){return Az}const roe=setTimeout,noe=clearTimeout,ooe=-1;function ioe(e,t){return!1}const aoe=!1,loe=!0,soe=!0;function uoe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function coe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Iz(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function doe(e,t,r){Iz(e,t,r)}function foe(e,t){t.destroy(),t.off(KT),Xu(e)}function poe(e,t){t.destroy(),t.off(KT),Xu(e)}function hoe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function goe(e,t,r){}function voe(e,t,r,n,o){k5(e,o,n)}function moe(e){e.hide(),Xu(e)}function yoe(e){}function boe(e,t){(t.visible==null||t.visible)&&e.show()}function woe(e,t){}function _oe(e){}function xoe(){}const Soe=()=>Nz.DefaultEventPriority,Coe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:uoe,appendChildToContainer:coe,appendInitialChild:Hne,cancelTimeout:noe,clearContainer:_oe,commitMount:goe,commitTextUpdate:hoe,commitUpdate:voe,createInstance:Wne,createTextInstance:$ne,detachDeletedInstance:xoe,finalizeInitialChildren:Gne,getChildHostContext:toe,getCurrentEventPriority:Soe,getPublicInstance:Kne,getRootHostContext:eoe,hideInstance:moe,hideTextInstance:yoe,idlePriority:pp.unstable_IdlePriority,insertBefore:Iz,insertInContainerBefore:doe,isPrimaryRenderer:aoe,noTimeout:ooe,now:pp.unstable_now,prepareForCommit:qne,preparePortalMount:Yne,prepareUpdate:Xne,removeChild:foe,removeChildFromContainer:poe,resetAfterCommit:Qne,resetTextContent:Zne,run:pp.unstable_runWithPriority,scheduleTimeout:roe,shouldDeprioritizeSubtree:Jne,shouldSetTextContent:ioe,supportsMutation:soe,unhideInstance:boe,unhideTextInstance:woe,warnsIfNotActing:loe},Symbol.toStringTag,{value:"Module"}));var Poe=Object.defineProperty,Toe=Object.defineProperties,Ooe=Object.getOwnPropertyDescriptors,FE=Object.getOwnPropertySymbols,koe=Object.prototype.hasOwnProperty,Eoe=Object.prototype.propertyIsEnumerable,jE=(e,t,r)=>t in e?Poe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))koe.call(t,r)&&jE(e,r,t[r]);if(FE)for(var r of FE(t))Eoe.call(t,r)&&jE(e,r,t[r]);return e},Moe=(e,t)=>Toe(e,Ooe(t)),VE,BE;typeof window<"u"&&((VE=window.document)!=null&&VE.createElement||((BE=window.navigator)==null?void 0:BE.product)==="ReactNative")?Y.useLayoutEffect:Y.useEffect;function Lz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Lz(n,t,r);if(o)return o;n=n.sibling}}function Dz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const UE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=UE;return}return UE.apply(this,arguments)};const qT=Dz(Y.createContext(null));class Fz extends Y.Component{render(){return Y.createElement(qT.Provider,{value:this._reactInternals},this.props.children)}}function Roe(){const e=Y.useContext(qT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=Y.useId();return Y.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Lz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Noe(){const e=Roe(),[t]=Y.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==qT&&!t.has(o)&&t.set(o,Y.useContext(Dz(o)))}r=r.return}return t}function Aoe(){const e=Noe();return Y.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>Y.createElement(t,null,Y.createElement(r.Provider,Moe(zE({},n),{value:e.get(r)}))),t=>Y.createElement(Fz,zE({},t))),[e])}function Ioe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Loe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Ioe(e),i=Aoe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Nv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=pg.createContainer(r.current,Nz.LegacyRoot,!1,null),pg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Nv.isBrowser&&(a(null),pg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),k5(r.current,e,o),pg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},$x="Layer",HE="Group",Doe="Rect",Ff="Circle",Foe="Line",joe="Image",WE="Text",pg=jne(Coe);pg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const zoe=Or.forwardRef((e,t)=>Or.createElement(Fz,{},Or.createElement(Loe,{...e,forwardedRef:t})));function Voe(e){window.open(e,"_blank","noreferrer")}function _4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Boe(e,t){return t.includes(e)}const jg="https://roguewar.org",Uoe=2.5,Hoe=1,Woe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{var re;const v=e.isCapital?Uoe:Hoe,b=(Z,oe)=>[...Z].sort((fe,ge)=>ge.control-fe.control).map(fe=>{const ge=_4(fe.Name,oe);return{name:(ge==null?void 0:ge.prettyName)||fe.Name,control:fe.control,players:fe.ActivePlayers}}),S=Z=>`${Z.name} ${Z.control}% · P${Z.players}`,w=e.factions.some(Z=>Z.ActivePlayers>0),P=!!((re=e.state)!=null&&re.isInsurrect),y=n.flashActivePlayes&&w,C=y?1.25:1,h=(s?v*3:v)*C/t,p=Number(e.posX),c=-Number(e.posY),g=y?Math.min(1,d+.25):d,m=h*2.5,_=Math.min(.34,g*.4),T=Math.min(.4,g*.4),k=h*.45,R=Math.min(.42,g*.45),E=h*.35,A=`rgba(255,255,255,${R})`,F="rgba(255,255,255,0)",V=h*3.3,B=Math.min(.22,g*.26),H=h*2.1,q=Y.useRef(null),ne=Y.useRef(null);Y.useEffect(()=>{if(!P||!q.current)return;const Z=q.current,oe=Math.min(.22,g*.25),fe=new Pw.Animation(ge=>{if(!ge)return;const ce=(Math.sin(ge.time*.004)+1)/2,J=.86+ce*.72,ie=Math.min(.5,oe+ce*.24);Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]),Y.useEffect(()=>{if(!P||!ne.current)return;const Z=ne.current,oe=g,fe=new Pw.Animation(ge=>{if(!ge)return;const ce=Math.sin(ge.time*.0045),J=1+ce*.2,ie=Math.max(.3,Math.min(1,oe+ce*.24));Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]);const Q=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",W=Z=>{if(!Z)return"None";const fe=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([ge])=>Z[ge]).map(([,ge])=>ge);return fe.length?fe.join(", "):"None"},X=(Z=!1)=>{var ue;const oe=((ue=_4(e.owner,r))==null?void 0:ue.prettyName)||"Unknown",fe=b(e.factions,r),ge=fe.slice(0,3),ce=Math.max(0,fe.length-ge.length),J=W(e.state),ie=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${oe}`,"Control:",...ge.map(S),...ce>0?[`+${ce} more`]:[],`Damage: ${Q}`];return J!=="None"&&ie.push(`State: ${J}`),Z&&ie.push("[Tap to open]"),{text:ie.join(` +`),controlItems:fe}};return Ie.jsxs(Ie.Fragment,{children:[P&&Ie.jsx(Ff,{x:p,y:c,radius:V,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:V,fillRadialGradientColorStops:[0,`rgba(168,85,247,${Math.min(.32,B+.06)})`,.6,`rgba(168,85,247,${B})`,1,"rgba(168,85,247,0)"],listening:!1}),P&&Ie.jsx(Ff,{ref:q,x:p,y:c,radius:H,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:H,fillRadialGradientColorStops:[0,"rgba(192,132,252,0.34)",1,"rgba(192,132,252,0)"],listening:!1}),y&&Ie.jsx(Ff,{x:p,y:c,fill:e.factionColour,radius:m,opacity:_,listening:!1}),y&&Ie.jsx(Ff,{x:p,y:c,radius:h,stroke:"#ffffff",strokeWidth:Math.max(.2,h*.14),opacity:T,listening:!1}),Ie.jsx(Ff,{ref:ne,x:p,y:c,fill:e.factionColour,radius:h,hitStrokeWidth:3,opacity:g,onClick:Z=>{Z.cancelBubble=!0,e.sysUrl&&Voe(`${jg}${e.sysUrl}`)},onMouseEnter:Z=>{const oe=Z.target.getStage();if(!oe)return;const fe=oe.getPointerPosition();if(!fe)return;const ge=X();o(ge.text,fe.x,fe.y,oe.x(),oe.y(),void 0,ge.controlItems)},onMouseLeave:i,onTouchStart:Z=>{if(Z.evt.touches.length===1){Z.evt.preventDefault();const oe=Z.target.getStage();if(!oe)return;const fe=oe.getRelativePointerPosition();if(!fe)return;if(a.current&&l.current===e.name){window.location.href=`${jg}${e.sysUrl}`;return}const ge=X(!0);o(ge.text,fe.x,fe.y,void 0,void 0,()=>{window.location.href=`${jg}${e.sysUrl}`},ge.controlItems),l.current=e.name}}}),y&&Ie.jsx(Ff,{x:p-E,y:c-E,radius:k,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:k,fillRadialGradientColorStops:[0,A,1,F],listening:!1})]})},$oe=Y.memo(Woe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Goe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jz(e){var t=Goe(e,"string");return vd(t)=="symbol"?t:t+""}function hg(e,t,r){return(t=jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(Eh,--ri):0,nh--,nn===10&&(nh=1,M5--),nn}function Ti(){return nn=ri2||Iv(nn)>3?"":" "}function _ie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return gm(e,Zb()+(t<6&&bl()==32&&Ti()==32))}function P4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&P4(nn);break;case 40:e===41&&P4(e);break;case 92:Ti();break}return ri}function xie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+gm(t,ri-1)+"*"+E5(e===47?e:Ti())}function Sie(e){for(;!Iv(bl());)Ti();return gm(e,ri)}function Cie(e){return Gz(e1("",null,null,null,[""],e=$z(e),0,[0],e))}function e1(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,b=a,S=0,w=0,P=0,y=1,C=1,h=1,p=0,c="",g=o,m=i,_=n,T=c;C;)switch(P=p,p=Ti()){case 40:if(P!=108&&$n(T,b-1)==58){C4(T+=Kt(Jb(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:T+=Jb(p);break;case 9:case 10:case 13:case 32:T+=wie(P);break;case 92:T+=_ie(Zb()-1,7);continue;case 47:switch(bl()){case 42:case 47:lb(Pie(xie(Ti(),Zb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*h;case 125*y:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+v:h==-1&&(T=Kt(T,/\f/g,"")),w>0&&cl(T)-b&&lb(w>32?qE(T+";",n,r,b-1):qE(Kt(T," ","")+";",n,r,b-2),s);break;case 59:T+=";";default:if(lb(_=KE(T,t,r,d,v,o,l,c,g=[],m=[],b),i),p===123)if(v===0)e1(T,t,_,_,g,i,b,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:e1(e,_,_,n&&lb(KE(e,_,_,0,0,o,l,c,o,g=[],b),m),o,m,b,l,n?g:m);break;default:e1(T,_,_,_,[""],m,0,l,m)}}d=v=w=0,y=h=1,c=T="",b=a;break;case 58:b=1+cl(T),w=P;default:if(y<1){if(p==123)--y;else if(p==125&&y++==0&&bie()==125)continue}switch(T+=E5(p),p*y){case 38:h=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*h,h=1;break;case 64:bl()===45&&(T+=Jb(Ti())),S=bl(),v=b=cl(c=T+=Sie(Zb())),p++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function KE(e,t,r,n,o,i,a,l,s,d,v){for(var b=o-1,S=o===0?i:[""],w=ZT(S),P=0,y=0,C=0;P0?S[h]+" "+p:Kt(p,/&\f/g,S[h])))&&(s[C++]=c);return R5(e,t,r,o===0?XT:l,s,d,v)}function Pie(e,t,r){return R5(e,t,r,Bz,E5(yie()),Av(e,2,-2),0)}function qE(e,t,r,n){return R5(e,t,r,QT,Av(e,0,n),Av(e,n+1,-1),n)}function Mp(e,t){for(var r="",n=ZT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Kt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+Ow+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~C4(e,"stretch")?Kz(Kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~C4(e,"!important")&&10))){case 107:return Kt(e,":",":"+Gt)+e;case 101:return Kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+($n(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+so+e+e}return e}var Lie=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case QT:t.return=Kz(t.value,t.length);break;case Uz:return Mp([eg(t,{value:Kt(t.value,"@","@"+Gt)})],o);case XT:if(t.length)return mie(t.props,function(i){switch(vie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mp([eg(t,{props:[Kt(i,/:(read-\w+)/,":"+Ow+"$1")]})],o);case"::placeholder":return Mp([eg(t,{props:[Kt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),eg(t,{props:[Kt(i,/:(plac\w+)/,":"+Ow+"$1")]}),eg(t,{props:[Kt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Die=[Lie],Fie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Die,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),h=1;h=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Xie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qie=/[A-Z]|^ms/g,Zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jz=function(t){return t.charCodeAt(1)===45},XE=function(t){return t!=null&&typeof t!="boolean"},Gx=Eie(function(e){return Jz(e)?e:e.replace(Qie,"-$&").toLowerCase()}),QE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Xie[t]!==1&&!Jz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Lv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return Jie(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Lv(e,t,d)}break}}var v=r;return v}function Jie(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function pae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function U5(){return typeof window<"u"}function rV(e){return oV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nV(e){var t;return(t=(oV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oV(e){return U5()?e instanceof Node||e instanceof ms(e).Node:!1}function hae(e){return U5()?e instanceof Element||e instanceof ms(e).Element:!1}function oO(e){return U5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function JE(e){return!U5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const gae=new Set(["inline","contents"]);function iV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=iO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!gae.has(o)}function vae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mae=new Set(["html","body","#document"]);function yae(e){return mae.has(rV(e))}function iO(e){return ms(e).getComputedStyle(e)}function bae(e){if(rV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JE(e)&&e.host||nV(e);return JE(t)?t.host:t}function aV(e){const t=bae(e);return yae(t)?e.ownerDocument?e.ownerDocument.body:e.body:oO(t)&&iV(t)?t:aV(t)}function Mw(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=aV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=O4(a);return t.concat(a,a.visualViewport||[],iV(o)?o:[],l&&r?Mw(l):[])}return t.concat(o,Mw(o,[],r))}function O4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wae(e){const t=iO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=oO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=kw(r)!==i||kw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function aO(e){return hae(e)?e:e.contextElement}function e9(e){const t=aO(e);if(!oO(t))return Ew(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=wae(t);let a=(i?kw(r.width):r.width)/n,l=(i?kw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _ae=Ew(0);function xae(e){const t=ms(e);return!vae()||!t.visualViewport?_ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sae(e,t,r){return!1}function t9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=aO(e);let a=Ew(1);t&&(a=e9(e));const l=Sae()?xae(i):Ew(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=ms(i),w=n;let P=S,y=O4(P);for(;y&&n&&w!==P;){const C=e9(y),h=y.getBoundingClientRect(),p=iO(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=ms(y),y=O4(P)}}return pae({width:v,height:b,x:s,y:d})}function lV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cae(e,t){let r=null,n;const o=nV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:b,width:S,height:w}=d;if(l||t(),!S||!w)return;const P=sb(b),y=sb(o.clientWidth-(v+S)),C=sb(o.clientHeight-(b+w)),h=sb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-h+"px",threshold:fae(0,dae(1,s))||1};let g=!0;function m(_){const T=_[0].intersectionRatio;if(T!==s){if(!g)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!lV(d,e.getBoundingClientRect())&&a(),g=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Pae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=aO(e),v=o||i?[...d?Mw(d):[],...Mw(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?Cae(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?t9(e):null;s&&C();function C(){const h=t9(e);y&&!lV(y,h)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}var k4=Y.useLayoutEffect,Tae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Rw=function(){};function Oae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function kae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Eae(e){return H5(e)?window.innerHeight:e.clientHeight}function uV(e){return H5(e)?window.pageYOffset:e.scrollTop}function Nw(e,t){if(H5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Mae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Rae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function ub(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Rw,o=uV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Rae(l,o,i,r);Nw(e,d),lr.bottom?Nw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&ub(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&ub(s,E,F);var V=a?T-g:R-g;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,H=a?_:k;return H>=n&&(B=Math.min(H-g-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Nw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&ub(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&_>=n){var q=t;return(!a&&k>=n||a&&_>=n)&&(q=a?_-m:k-m),i&&ub(s,A,F),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Uae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dV=function(t){return t==="auto"?"bottom":t},Hae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},hg(n,Uae(o),"100%"),hg(n,"position","absolute"),hg(n,"width","100%"),hg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},fV=Y.createContext(null),Wae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=Y.useContext(fV)||{},v=d.setPortalPlacement,b=Y.useRef(null),S=Y.useState(o),w=as(S,2),P=w[0],y=w[1],C=Y.useState(null),h=as(C,2),p=h[0],c=h[1],g=s.spacing.controlHeight;return k4(function(){var m=b.current;if(m){var _=a==="fixed",T=l&&!_,k=Bae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:_,controlHeight:g});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,g]),r({ref:b,placerProps:st(st({},t),{},{placement:p||dV(i),maxHeight:P})})},$ae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return it("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Gae=$ae,Kae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},qae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return it("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},pV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Yae=pV,Xae=pV,Qae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,zae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Zae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Vae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},Jae=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},ele=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=Y.useRef(null),d=Y.useRef(null),v=Y.useState(dV(a)),b=as(v,2),S=b[0],w=b[1],P=Y.useMemo(function(){return{setPortalPlacement:w}},[]),y=Y.useState(null),C=as(y,2),h=C[0],p=C[1],c=Y.useCallback(function(){if(o){var T=Nae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(h==null?void 0:h.offset)||T.left!==(h==null?void 0:h.rect.left)||T.width!==(h==null?void 0:h.rect.width))&&p({offset:R,rect:T})}},[o,l,S,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);k4(function(){c()},[c]);var g=Y.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Pae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);k4(function(){g()},[g]);var m=Y.useCallback(function(T){s.current=T,g()},[g]);if(!r&&l!=="fixed"||!h)return null;var _=it("div",dt({ref:m},Hr(st(st({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(fV.Provider,{value:P},r?Xw.createPortal(_,r):_)},tle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},rle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return it("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},nle=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ole=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return it("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ile=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ale=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},i9,lle=["size"],sle=["innerProps","isRtl","size"],ule={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hV=function(t){var r=t.size,n=Ps(t,lle);return it("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ule},n))},lO=function(t){return it(hV,dt({size:20},t),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gV=function(t){return it(hV,dt({size:20},t),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},cle=vV,dle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||it(gV,null))},fle=vV,ple=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||it(lO,null))},hle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},gle=function(t){var r=t.innerProps;return it("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},vle=uae(i9||(i9=cae([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),mle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},Kx=function(t){var r=t.delay,n=t.offset;return it("span",{css:nO({animation:"".concat(vle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yle=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,sle);return it("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),it(Kx,{delay:0,offset:n}),it(Kx,{delay:160,offset:!0}),it(Kx,{delay:320,offset:!n}))},ble=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return it("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},_le=wle,xle=["data"],Sle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Cle=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,b=t.selectProps;return it("div",dt({},Hr(t,"group",{group:!0}),s),it(a,dt({},l,{selectProps:b,theme:v,getStyles:o,getClassNames:i,cx:n}),d),it("div",null,r))},Ple=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Tle=function(t){var r=sV(t);r.data;var n=Ps(r,xle);return it("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},Ole=Cle,kle=["innerRef","isDisabled","isHidden","inputClassName"],Ele=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Mle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},mV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mV)},Rle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},mV)},Nle=function(t){var r=t.cx,n=t.value,o=sV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,kle);return it("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),it("input",dt({className:r({input:!0},s),ref:i,style:Rle(l),disabled:a},d)))},Ale=Nle,Ile=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Lle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Dle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},yV=function(t){var r=t.children,n=t.innerProps;return it("div",n,r)},Fle=yV,jle=yV;function zle(e){var t=e.children,r=e.innerProps;return it("div",dt({role:"button"},r),t||it(lO,{size:14}))}var Vle=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,b=n.Remove;return it(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},it(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),it(b,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ble=Vle,Ule=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Hle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return it("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},Wle=Hle,$le=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Gle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},Kle=Gle,qle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Yle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return it("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Xle=Yle,Qle={ClearIndicator:ple,Control:_le,DropdownIndicator:dle,DownChevron:gV,CrossIcon:lO,Group:Ole,GroupHeading:Tle,IndicatorsContainer:ale,IndicatorSeparator:gle,Input:Ale,LoadingIndicator:yle,Menu:Gae,MenuList:qae,MenuPortal:ele,LoadingMessage:Zae,NoOptionsMessage:Qae,MultiValue:Ble,MultiValueContainer:Fle,MultiValueLabel:jle,MultiValueRemove:zle,Option:Wle,Placeholder:Kle,SelectContainer:rle,SingleValue:Xle,ValueContainer:ole},Zle=function(t){return st(st({},Qle),t.components)},a9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Jle(e,t){return!!(e===t||a9(e)&&a9(t))}function ese(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,b=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(b(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",w="".concat(d?" selected":"").concat(S);return"".concat(a).concat(w,", ").concat(b(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ise=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,b=s.ariaLiveMessages,S=s.getOptionLabel,w=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,h=s.menuIsOpen,p=s.options,c=s.screenReaderStatus,g=s.tabSelectsValue,m=s.isLoading,_=s["aria-label"],T=s["aria-live"],k=Y.useMemo(function(){return st(st({},ose),b||{})},[b]),R=Y.useMemo(function(){var H="";if(r&&k.onChange){var q=r.option,ne=r.options,Q=r.removedValue,W=r.removedValues,X=r.value,re=function(ie){return Array.isArray(ie)?null:ie},Z=Q||q||re(X),oe=Z?S(Z):"",fe=ne||W||void 0,ge=fe?fe.map(S):[],ce=st({isDisabled:Z&&y(Z,l),label:oe,labels:ge},r);H=k.onChange(ce)}return H},[r,k,y,l,S]),E=Y.useMemo(function(){var H="",q=n||o,ne=!!(n&&l&&l.includes(n));if(q&&k.onFocus){var Q={focused:q,label:S(q),isDisabled:y(q,l),isSelected:ne,options:i,context:q===n?"menu":"value",selectValue:l,isAppleDevice:v};H=k.onFocus(Q)}return H},[n,o,S,y,k,i,l,v]),A=Y.useMemo(function(){var H="";if(h&&p.length&&!m&&k.onFilter){var q=c({count:i.length});H=k.onFilter({inputValue:w,resultsMessage:q})}return H},[i,w,h,k,p,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=Y.useMemo(function(){var H="";if(k.guidance){var q=o?"value":h?"menu":"input";H=k.guidance({"aria-label":_,context:q,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:g,isInitialFocus:F})}return H},[_,n,o,P,y,C,h,k,l,g,F]),B=it(Y.Fragment,null,it("span",{id:"aria-selection"},R),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},A),it("span",{id:"aria-guidance"},V));return it(Y.Fragment,null,it(l9,{id:d},F&&B),it(l9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},ase=ise,E4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],lse=new RegExp("["+E4.map(function(e){return e.letters}).join("")+"]","g"),bV={};for(var qx=0;qx-1}},dse=["innerRef"];function fse(e){var t=e.innerRef,r=Ps(e,dse),n=jae(r,"onExited","in","enter","exit","appear");return it("input",dt({ref:t},n,{css:nO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var pse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function hse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=Y.useRef(!1),l=Y.useRef(!1),s=Y.useRef(0),d=Y.useRef(null),v=Y.useCallback(function(C,h){if(d.current!==null){var p=d.current,c=p.scrollTop,g=p.scrollHeight,m=p.clientHeight,_=d.current,T=h>0,k=g-m-c,R=!1;k>h&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&h>k?(r&&!a.current&&r(C),_.scrollTop=g,R=!0,a.current=!0):!T&&-h>c&&(o&&!l.current&&o(C),_.scrollTop=0,R=!0,l.current=!0),R&&pse(C)}},[r,n,o,i]),b=Y.useCallback(function(C){v(C,C.deltaY)},[v]),S=Y.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),w=Y.useCallback(function(C){var h=s.current-C.changedTouches[0].clientY;v(C,h)},[v]),P=Y.useCallback(function(C){if(C){var h=Lae?{passive:!1}:!1;C.addEventListener("wheel",b,h),C.addEventListener("touchstart",S,h),C.addEventListener("touchmove",w,h)}},[w,S,b]),y=Y.useCallback(function(C){C&&(C.removeEventListener("wheel",b,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",w,!1))},[w,S,b]);return Y.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var u9=["boxSizing","height","overflow","paddingRight","position"],c9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function d9(e){e.cancelable&&e.preventDefault()}function f9(e){e.stopPropagation()}function p9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function h9(){return"ontouchstart"in window||navigator.maxTouchPoints}var g9=!!(typeof window<"u"&&window.document&&window.document.createElement),tg=0,jf={capture:!1,passive:!1};function gse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=Y.useRef({}),i=Y.useRef(null),a=Y.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;if(n&&u9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&tg<1){var b=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,w=window.innerWidth-S+b||0;Object.keys(c9).forEach(function(P){var y=c9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(w,"px"))}d&&h9()&&(d.addEventListener("touchmove",d9,jf),s&&(s.addEventListener("touchstart",p9,jf),s.addEventListener("touchmove",f9,jf))),tg+=1}},[n]),l=Y.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;tg=Math.max(tg-1,0),n&&tg<1&&u9.forEach(function(b){var S=o.current[b];v&&(v[b]=S)}),d&&h9()&&(d.removeEventListener("touchmove",d9,jf),s&&(s.removeEventListener("touchstart",p9,jf),s.removeEventListener("touchmove",f9,jf)))}},[n]);return Y.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var vse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},mse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=hse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=gse({isEnabled:r}),b=function(w){d(w),v(w)};return it(Y.Fragment,null,r&&it("div",{onClick:vse,css:mse}),t(b))}var bse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},wse=function(t){var r=t.name,n=t.onFocus;return it("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:bse,value:"",onChange:function(){}})},_se=wse;function sO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xse(){return sO(/^iPhone/i)}function _V(){return sO(/^Mac/i)}function Sse(){return sO(/^iPad/i)||_V()&&navigator.maxTouchPoints>1}function Cse(){return xse()||Sse()}function Pse(){return _V()||Cse()}var Tse=function(t){return t.label},Ose=function(t){return t.label},kse=function(t){return t.value},Ese=function(t){return!!t.isDisabled},Mse={clearIndicator:fle,container:tle,control:ble,dropdownIndicator:cle,group:Sle,groupHeading:Ple,indicatorsContainer:ile,indicatorSeparator:hle,input:Ele,loadingIndicator:mle,loadingMessage:Xae,menu:Hae,menuList:Kae,menuPortal:Jae,multiValue:Ile,multiValueLabel:Lle,multiValueRemove:Dle,noOptionsMessage:Yae,option:Ule,placeholder:$le,singleValue:qle,valueContainer:nle},Rse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Nse=4,xV=4,Ase=38,Ise=xV*2,Lse={baseUnit:xV,controlHeight:Ase,menuGutter:Ise},Qx={borderRadius:Nse,colors:Rse,spacing:Lse},Dse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:o9(),captureMenuScroll:!o9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cse(),formatGroupLabel:Tse,getOptionLabel:Ose,getOptionValue:kse,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ese,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Aae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function v9(e,t,r,n){var o=PV(e,t,r),i=TV(e,t,r),a=CV(e,t),l=Aw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function t1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return v9(e,a,t,l)}).filter(function(a){return y9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=v9(e,r,t,n);return y9(e,i)?i:void 0}).filter(Dae)}function SV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,YT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function m9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,YT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function Fse(e,t){return SV(t1(e,t))}function y9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!kV(e)||!i)&&OV(e,{label:a,value:l,data:o},n)}function jse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Zx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},CV=function(t,r){return t.getOptionLabel(r)},Aw=function(t,r){return t.getOptionValue(r)};function PV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function TV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Aw(e,t);return r.some(function(o){return Aw(e,o)===n})}function OV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var kV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Vse=1,EV=(function(e){tie(r,e);var t=oie(r);function r(n){var o;if(Joe(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,b=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),b(s,d)},o.setValue=function(s,d,v){var b=o.props,S=b.closeMenuOnSelect,w=b.isMulti,P=b.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!w}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,b=d.isMulti,S=d.name,w=o.state.selectValue,P=b&&o.isOptionSelected(s,w),y=o.isOptionDisabled(s,w);if(P){var C=o.getOptionValue(s);o.setValue(w.filter(function(h){return o.getOptionValue(h)!==C}),"deselect-option",s)}else if(!y)b?o.setValue([].concat(YT(w),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,b=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==b}),w=db(d,S,S[0]||null);o.onChange(w,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(db(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],b=d.slice(0,d.length-1),S=db(s,b,b[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Zx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return m9(t1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;vw||S>w}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return kV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,b=d.backspaceRemovesValue,S=d.escapeClearsValue,w=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,h=d.onKeyDown,p=d.tabSelectsValue,c=d.openMenuOnFocus,g=o.state,m=g.focusedOption,_=g.focusedValue,T=g.selectValue;if(!y&&!(typeof h=="function"&&(h(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||w)return;o.focusValue("previous");break;case"ArrowRight":if(!v||w)return;o.focusValue("next");break;case"Delete":case"Backspace":if(w)return;if(_)o.removeValue(_);else{if(!b)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!p||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:w}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(w)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Vse),o.state.selectValue=r9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Zx(i,a[l])}return o}return eie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&n9(this.menuListRef,this.focusedOptionRef),Pse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(n9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var b=d.indexOf(l[0]);b>-1&&(v=b)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Qx):st(st({},Qx),this.props.theme):Qx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,b=this.props,S=b.isMulti,w=b.isRtl,P=b.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:w,options:P,selectOption:d,selectProps:b,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return PV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return TV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return OV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,b=o.menuIsOpen,S=o.required,w=this.getComponents(),P=w.Input,y=this.state,C=y.inputIsHidden,h=y.ariaSelection,p=this.commonProps,c=l||this.getElementId("input"),g=st(st(st({"aria-autocomplete":"list","aria-expanded":b,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},b&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Y.createElement(P,dt({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},g)):Y.createElement(fse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Rw,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},g))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,b=i.Placeholder,S=this.commonProps,w=this.props,P=w.controlShouldRenderValue,y=w.isDisabled,C=w.isMulti,h=w.inputValue,p=w.placeholder,c=this.state,g=c.selectValue,m=c.focusedValue,_=c.isFocused;if(!this.hasValue()||!P)return h?null:Y.createElement(b,dt({},S,{key:"placeholder",isDisabled:y,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),p);if(C)return g.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return Y.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(h)return null;var T=g[0];return Y.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var b={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:b,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var b={"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:b,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return Y.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,b=i.LoadingMessage,S=i.NoOptionsMessage,w=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,h=C.captureMenuScroll,p=C.inputValue,c=C.isLoading,g=C.loadingMessage,m=C.minMenuHeight,_=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,H=C.onMenuScrollToBottom;if(!T)return null;var q=function(oe,fe){var ge=oe.type,ce=oe.data,J=oe.isDisabled,ie=oe.isSelected,ue=oe.label,Se=oe.value,Ce=y===ce,Me=J?void 0:function(){return o.onOptionHover(ce)},Le=J?void 0:function(){return o.selectOption(ce)},Re="".concat(o.getElementId("option"),"-").concat(fe),be={id:Re,onClick:Le,onMouseMove:Me,onMouseOver:Me,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:ie};return Y.createElement(w,dt({},P,{innerProps:be,data:ce,isDisabled:J,isSelected:ie,key:Re,label:ue,type:ge,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(oe.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var oe=Z.data,fe=Z.options,ge=Z.index,ce="".concat(o.getElementId("group"),"-").concat(ge),J="".concat(ce,"-heading");return Y.createElement(a,dt({},P,{key:ce,data:oe,options:fe,Heading:l,headingProps:{id:J,data:Z.data},label:o.formatGroupLabel(Z.data)}),Z.options.map(function(ie){return q(ie,"".concat(ge,"-").concat(ie.index))}))}else if(Z.type==="option")return q(Z,"".concat(Z.index))});else if(c){var Q=g({inputValue:p});if(Q===null)return null;ne=Y.createElement(b,P,Q)}else{var W=V({inputValue:p});if(W===null)return null;ne=Y.createElement(S,P,W)}var X={minMenuHeight:m,maxMenuHeight:_,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},re=Y.createElement(Wae,dt({},P,X),function(Z){var oe=Z.ref,fe=Z.placerProps,ge=fe.placement,ce=fe.maxHeight;return Y.createElement(s,dt({},P,X,{innerRef:oe,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:ge}),Y.createElement(yse,{captureEnabled:h,onTopArrive:B,onBottomArrive:H,lockEnabled:A},function(J){return Y.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),J(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),ne)}))});return E||R==="fixed"?Y.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),re):re}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,b=this.state.selectValue;if(v&&!this.hasValue()&&!l)return Y.createElement(_se,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=b.map(function(y){return o.getOptionValue(y)}).join(a);return Y.createElement("input",{name:d,type:"hidden",value:S})}else{var w=b.length>0?b.map(function(y,C){return Y.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):Y.createElement("input",{name:d,type:"hidden",value:""});return Y.createElement("div",null,w)}else{var P=b[0]?this.getOptionValue(b[0]):"";return Y.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,b=this.getFocusableOptions();return Y.createElement(ase,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:b,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,b=d.id,S=d.isDisabled,w=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return Y.createElement(l,dt({},y,{className:v,innerProps:{id:b,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),Y.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:w}),Y.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),Y.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,b=i.prevWasFocused,S=i.instancePrefix,w=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,h=o.isMulti,p=r9(P),c={};if(a&&(P!==a.value||w!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var g=y?Fse(o,p):[],m=y?m9(t1(o,p),"".concat(S,"-option")):[],_=l?jse(i,p):null,T=zse(i,g),k=Zx(m,T);c={selectValue:p,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:_,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&b;return v&&!A&&(E={value:db(h,p,p[0]||null),options:p,action:"initial-input-focus"},A=!b),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(Y.Component);EV.defaultProps=Dse;var Bse=Y.forwardRef(function(e,t){var r=Zoe(e);return Y.createElement(EV,dt({ref:t},r))}),Use=Bse;/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wse=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),b9=e=>{const t=Wse(e);return t.charAt(0).toUpperCase()+t.slice(1)},MV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),$se=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Gse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kse=Y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>Y.createElement("svg",{ref:s,...Gse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:MV("lucide",o),...!i&&!$se(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>Y.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const RV=(e,t)=>{const r=Y.forwardRef(({className:n,...o},i)=>Y.createElement(Kse,{ref:i,iconNode:t,className:MV(`lucide-${Hse(b9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=b9(e),r};/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Yse=RV("chevrons-down",qse);/** + * @license lucide-react v0.515.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Qse=RV("chevrons-up",Xse),Zse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=Y.useState(!1),[l,s]=Y.useState(typeof window<"u"&&window.innerWidth>=768);Y.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),b=c=>o(c.map(g=>g.value)),S=c=>o(n.filter(g=>g!==c)),w=Y.useRef(null),[P,y]=Y.useState("32px"),[C,h]=Y.useState(!1);Y.useEffect(()=>{const c=w.current;if(!c)return;const g=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${g}px`,requestAnimationFrame(()=>{const _=Math.max(m,125);y(`${i?_:32}px`)})})},[i,n]);const p={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return Ie.jsxs("div",{ref:w,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[Ie.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?Ie.jsx(Yse,{size:24}):Ie.jsx(Qse,{size:24})}),i&&Ie.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[Ie.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:Ie.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),Ie.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:Ie.jsxs("div",{style:{width:l?"50%":"100%"},children:[Ie.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Ie.jsx("div",{style:{flexGrow:1},children:Ie.jsx(Use,{isMulti:!0,options:d,value:v,onChange:b,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,g)=>({...c,color:"black",backgroundColor:g.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),Ie.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&h(!0),onMouseLeave:()=>l&&h(!1),onClick:()=>!l&&h(c=>!c),children:["i",C&&Ie.jsx("div",{style:p,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&Ie.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>Ie.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,Ie.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},Jse=e=>{const[t,r]=Y.useState({visible:!1,text:"",x:0,y:0}),n=Y.useCallback((i,a,l,s,d,v,b)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:b})},[e]),o=Y.useCallback(()=>{r(i=>({...i,visible:!1}))},[]);return{tooltip:t,showTooltip:n,hideTooltip:o}},eue=e=>e,tue=()=>{const[e,t]=Y.useState([]),[r,n]=Y.useState({}),[o,i]=Y.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${jg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${jg}/api/v1/starmap/warmap`).then(d=>d.json());t(eue(s))}catch(s){console.error("Failed to fetch data:",s)}}}},rue={flashActivePlayes:!0},nue=()=>{const[e,t]=Y.useState(rue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},oue=()=>{const[e,t]=Y.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=tue(),{settings:l,setFlashActive:s}=nue(),d=Y.useCallback(v=>v.map(b=>{const S=_4(b.owner,n),w=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...b,isCapital:Boe(b.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:w}}),[o,n]);return Y.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function iue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=Y.useRef(null),o=Y.useRef(1),i=Y.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=Y.useState(1),s=Y.useRef(!1),d=Y.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=Y.useRef(0),b=Y.useCallback(P=>{const y=performance.now();if(y-v.current0?c/p:c*p;g=Math.max(e,Math.min(t,g));const m={x:(h.x-C.x())/c,y:(h.y-C.y())/c};o.current=g,i.current={x:h.x-m.x*g,y:h.y-m.y*g},C.scale({x:g,y:g}),C.position(i.current),d(C),l(g)},[t,e,d,r]),S=Y.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),w=Y.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:w,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:b,onDragMove:S}}}function aue(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function lue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=Y.useState(!1),v=Y.useRef(0),b=Y.useRef(null),S=Y.useRef(!1),w=Y.useRef(null),P=Y.useCallback(h=>{if(h.evt.touches.length===1){const p=h.target.className==="Circle",c=h.target.findAncestor("Label",!0);!p&&!c&&(i==null||i())}h.evt.touches.length===2&&(d(!0),v.current=aue(h.evt.touches[0],h.evt.touches[1]))},[i]),y=Y.useCallback(h=>{if(h.evt.touches.length!==2||!s)return;h.evt.preventDefault();const[p,c]=h.evt.touches;w.current={touch1:{clientX:p.clientX,clientY:p.clientY},touch2:{clientX:c.clientX,clientY:c.clientY}},!S.current&&(S.current=!0,b.current=requestAnimationFrame(()=>{S.current=!1;const g=w.current;if(!g)return;const m=Math.hypot(g.touch2.clientX-g.touch1.clientX,g.touch2.clientY-g.touch1.clientY);if(!v.current){v.current=m;return}const _=e.current;if(!_)return;let T=m/v.current;if(Math.abs(1-T)<.02)return;T=Math.max(.9,Math.min(1.1,T));const k=t.current??1,R=Math.max(a,Math.min(l,k*T)),E=_.getPosition(),A=_.scaleX(),F={x:(g.touch1.clientX+g.touch2.clientX)/2,y:(g.touch1.clientY+g.touch2.clientY)/2},V={x:(F.x-E.x)/A,y:(F.y-E.y)/A},B={x:F.x-V.x*R,y:F.y-V.y*R};t.current=R,r.current=B,_.scale({x:R,y:R}),_.position(B),n(_),v.current=m}))},[s,l,a,r,n,t,o,e]),C=Y.useCallback(h=>{h.evt.touches.length<2&&(d(!1),o(t.current),w.current=null,b.current!==null&&(cancelAnimationFrame(b.current),b.current=null),S.current=!1)},[]);return{isPinching:s,handlers:{onTouchStart:P,onTouchMove:y,onTouchEnd:C}}}const sue=.2,uue=25,cue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=oue(),[a,l]=Y.useState(!1);return Y.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?Ie.jsx(due,{systems:e,factions:t,settings:i}):null},due=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:b}}=iue(),[S,w]=Y.useState(""),[P,y]=Y.useState(!1),C=S.trim().toLowerCase(),h=C.length>=2,[p,c]=Y.useState([]),{tooltip:g,showTooltip:m,hideTooltip:_}=Jse(o),T=Y.useRef(!1),k=Y.useRef(null),{isPinching:R,handlers:{onTouchStart:E,onTouchMove:A,onTouchEnd:F}}=lue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:_,minScale:sue,maxScale:uue}),[V,B]=Y.useState({width:window.innerWidth,height:window.innerHeight});Y.useEffect(()=>{const be=Ye=>{Ye.touches.length>1&&Ye.preventDefault()},ke=Ye=>{Ye.preventDefault()},ze={passive:!1};return document.addEventListener("touchmove",be,ze),document.addEventListener("gesturestart",ke,ze),document.addEventListener("gesturechange",ke,ze),document.addEventListener("gestureend",ke,ze),()=>{document.removeEventListener("touchmove",be,ze),document.removeEventListener("gesturestart",ke,ze),document.removeEventListener("gesturechange",ke,ze),document.removeEventListener("gestureend",ke,ze)}},[]),Y.useEffect(()=>{const be=ke=>ke.preventDefault();return window.addEventListener("gesturestart",be,{passive:!1}),window.addEventListener("gesturechange",be,{passive:!1}),window.addEventListener("gestureend",be,{passive:!1}),()=>{window.removeEventListener("gesturestart",be),window.removeEventListener("gesturechange",be),window.removeEventListener("gestureend",be)}},[]),Y.useEffect(()=>{const be=()=>{B({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]);const[H,q]=Y.useState(null),[ne,Q]=Y.useState(!1);Y.useEffect(()=>{const be=new window.Image,ze=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";be.src="/"+ze,be.onload=()=>{q(be),Q(!0)}},[]),Y.useEffect(()=>{const be=n.current;if(!be)return;const ke=be.container(),ze=Ye=>{Ye.cancelable&&Ye.preventDefault()};return ke.addEventListener("gesturestart",ze,{passive:!1}),ke.addEventListener("gesturechange",ze,{passive:!1}),ke.addEventListener("gestureend",ze,{passive:!1}),ke.addEventListener("touchmove",ze,{passive:!1}),()=>{ke.removeEventListener("gesturestart",ze),ke.removeEventListener("gesturechange",ze),ke.removeEventListener("gestureend",ze),ke.removeEventListener("touchmove",ze)}},[]);const W=window.innerWidth<768,X=W?1.5/a.scale:2/a.scale,re=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,Z=6,oe=10,fe=12,ge=re*1.12,ce=re*.92,J=ge*1.2,ie=(be,ke)=>{if(ke===0)return[{text:be,fontStyle:"bold",fontSize:ge}];const ze=be.match(/^(Owner:|Damage:)\s*(.*)$/);if(ze){const[,Ye,Mt]=ze;return[{text:`${Ye} `,fontStyle:"bold",fontSize:ce},{text:Mt,fontStyle:"normal",fontSize:ce}]}return[{text:be,fontStyle:/^(Control|State):/.test(be)?"bold":"normal",fontSize:ce}]},ue=Y.useMemo(()=>(g.text||"").split(` +`).map(be=>be.trimEnd()),[g.text]),Se=Y.useMemo(()=>{const be=ue.length?ue:[""],ke=be.map((gt,xt)=>ie(gt,xt).reduce((zt,Ht)=>{const mt=new Pw.Text({text:Ht.text,fontFamily:"Roboto Mono, monospace",fontSize:Ht.fontSize,fontStyle:Ht.fontStyle}),Ot=mt.width();return mt.destroy(),zt+Ot},0)),Ye=(ke.length?Math.max(...ke):0)+Z*2,Mt=be.length*J+Z*2;return{lines:be,boxWidth:Ye,boxHeight:Mt}},[ue,re,J]);Y.useEffect(()=>{g.visible&&y(!1)},[g.visible,g.text]),Y.useEffect(()=>{T.current=g.visible,g.visible||(k.current=null)},[g.visible]);const Ce=Y.useMemo(()=>{var zt,Ht;const be=(zt=g.text)==null?void 0:zt.trim();if(!be)return{title:"",subtitle:"",details:[]};const ke=be.split(` +`).map(mt=>mt.trim()).filter(mt=>mt&&mt!=="[Tap to open]"),ze=ke[0]??"",Ye=(Ht=ke[1])!=null&&Ht.startsWith("(")?ke[1]:"",Mt=ke.slice(Ye?2:1),gt=[];let xt=!1;for(const mt of Mt){if(mt==="Control:"){xt=!0;continue}if(xt){if(!/^[A-Za-z ]+:\s/.test(mt))continue;xt=!1}gt.push(mt)}return{title:ze,subtitle:Ye,details:gt}},[g.text]),Me=Y.useMemo(()=>[...g.controlItems||[]].sort((be,ke)=>ke.control-be.control),[g.controlItems]),Le=P?Me:Me.slice(0,3),Re=Math.max(0,Me.length-3);return Ie.jsxs(Ie.Fragment,{children:[Ie.jsxs(zoe,{width:V.width,height:V.height,draggable:!R,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:b,onTouchStart:E,onTouchMove:A,onTouchEnd:F,children:[Ie.jsx($x,{cache:!0,children:ne&&H?Ie.jsx(joe,{image:H,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):Ie.jsx(WE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),Ie.jsx($x,{children:e.map((be,ke)=>{var xt;const ze=((xt=t[be.owner])==null?void 0:xt.prettyName)??be.owner;if(!(!p.length||p.includes(ze)))return null;const Mt=be.name.toLowerCase().includes(C),gt=h?Mt?1:.2:1;return Ie.jsx($oe,{zoomScaleFactor:l<1?l:1,system:be,factions:t,settings:r,showTooltip:m,hideTooltip:_,tooltipVisibleRef:T,touchedSystemNameRef:k,highlighted:h&&Mt,opacity:gt},be.name||ke)})}),Ie.jsx($x,{children:g.visible&&!W&&Ie.jsxs(HE,{x:g.x,y:g.y,opacity:.75,scaleX:X,scaleY:X,children:[Ie.jsx(Doe,{x:-Se.boxWidth/2,y:-(Se.boxHeight+oe),width:Se.boxWidth,height:Se.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),Ie.jsx(Foe,{points:[-fe/2,-oe,0,0,fe/2,-oe],fill:"white",closed:!0}),Se.lines.map((be,ke)=>(()=>{const ze=ie(be,ke);return Ie.jsx(HE,{x:-Se.boxWidth/2+Z,y:-(Se.boxHeight+oe-Z-ke*J),listening:!1,children:ze.map((Ye,Mt)=>{const gt=ze.slice(0,Mt).reduce((xt,zt)=>{const Ht=new Pw.Text({text:zt.text,fontFamily:"Roboto Mono, monospace",fontSize:zt.fontSize,fontStyle:zt.fontStyle}),mt=Ht.width();return Ht.destroy(),xt+mt},0);return Ie.jsx(WE,{x:gt,y:0,text:Ye.text,fontFamily:"Roboto Mono, monospace",fontSize:Ye.fontSize,fontStyle:Ye.fontStyle,fill:"black",listening:!1},`${Ye.text}-${Mt}`)})},`${be}-${ke}`)})())]})})]}),W&&g.visible&&Ie.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[Ie.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:Ce.title}),Ce.subtitle&&Ie.jsx("div",{style:{marginTop:"2px",opacity:.8},children:Ce.subtitle}),Ie.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:Ce.details.map((be,ke)=>Ie.jsx("div",{children:be},`${be}-${ke}`))}),Me.length>0&&Ie.jsxs("div",{style:{marginTop:"10px"},children:[Ie.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),Ie.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Le.map(be=>Ie.jsx("div",{children:`${be.name} ${be.control}% · P${be.players}`},`${be.name}-${be.control}-${be.players}`))}),Re>0&&Ie.jsx("button",{type:"button",onClick:()=>y(be=>!be),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),Ie.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[g.onTouch&&Ie.jsx("button",{type:"button",onClick:()=>{var be;return(be=g.onTouch)==null?void 0:be.call(g)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),Ie.jsx("button",{type:"button",onClick:_,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),Ie.jsx(Zse,{searchTerm:S,setSearchTerm:w,factions:Y.useMemo(()=>DJ(e,t),[e,t]),selectedFactions:p,setSelectedFactions:c})]})},w9=cue;function fue(e){return Jw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function pue(){return Ie.jsx(XW,{children:Ie.jsx(hue,{})})}function hue(){const e=XR();return Uv(e)?Ie.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",Ie.jsx(k1,{to:"/",children:Ie.jsxs("div",{className:"flex",children:[Ie.jsx(fue,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?Ie.jsxs("div",{id:"error-page",children:[Ie.jsx("h1",{children:"Oops! Unexpected Error"}),Ie.jsx("p",{children:"Something went wrong."}),Ie.jsx("p",{children:Ie.jsx("i",{children:e.message})})]}):Ie.jsx(Ie.Fragment,{children:"Unknown error"})}const gue="/",vue=CW(YS(Ie.jsxs(Ie.Fragment,{children:[Ie.jsx(qS,{path:"/",element:Ie.jsx(w9,{}),errorElement:Ie.jsx(pue,{})}),Ie.jsx(qS,{index:!0,element:Ie.jsx(w9,{})})]})),{basename:gue});function mue(){return Ie.jsx(AW,{router:vue})}AR(document.getElementById("react-root")).render(Ie.jsx(Y.StrictMode,{children:Ie.jsx(mue,{})})); diff --git a/map/index.html b/map/index.html index 30eb068..80ad902 100644 --- a/map/index.html +++ b/map/index.html @@ -5,7 +5,7 @@ RogueTech - + diff --git a/src/components/helpers/devStateInjector.ts b/src/components/helpers/devStateInjector.ts new file mode 100644 index 0000000..cd7b082 --- /dev/null +++ b/src/components/helpers/devStateInjector.ts @@ -0,0 +1,165 @@ +import type { StarSystemState, StarSystemType } from '../hooks/types'; + +const ENABLE_QUERY_PARAM = 'stateTest'; +const PRESET_QUERY_PARAM = 'statePreset'; +const ENABLE_STORAGE_KEY = 'warMapDevStateTest'; +const PRESET_STORAGE_KEY = 'warMapDevStatePreset'; +const OVERRIDES_STORAGE_KEY = 'warMapDevStateOverrides'; +const DEV_INSURRECTION_SYSTEMS = [ + 'Terra', + 'Altair', + 'Asta', + 'Bryant', + 'Caph', + 'Dieron', + 'Epsilon Eridani', + 'Fomalhaut', + 'Keid', + 'New Home', + 'New Stevens', + 'Saffel', +]; + +type StateOverrideMap = Record; + +const isTruthyFlag = (value: string | null) => { + if (!value) return false; + const normalized = value.trim().toLowerCase(); + return normalized !== '0' && normalized !== 'false' && normalized !== 'off'; +}; + +const isStateOverrideMap = (value: unknown): value is StateOverrideMap => { + if (!value || typeof value !== 'object') return false; + + return Object.values(value).every((state) => { + if (!state || typeof state !== 'object') return false; + + const typed = state as StarSystemState; + return ( + (typed.isInsurrect === undefined || + typeof typed.isInsurrect === 'boolean') && + (typed.hasPirateRaid === undefined || + typeof typed.hasPirateRaid === 'boolean') && + (typed.hasCaptureEvent === undefined || + typeof typed.hasCaptureEvent === 'boolean') && + (typed.hasHoldTheLineEvent === undefined || + typeof typed.hasHoldTheLineEvent === 'boolean') + ); + }); +}; + +const buildSampleOverrides = (systems: StarSystemType[]): StateOverrideMap => { + const byName = [...systems].sort((a, b) => a.name.localeCompare(b.name)); + const selected = byName.slice(0, 5); + const [a, b, c, d, e] = selected; + const overrides: StateOverrideMap = {}; + + if (a) overrides[a.name] = { isInsurrect: true }; + if (b) overrides[b.name] = { hasPirateRaid: true }; + if (c) overrides[c.name] = { hasCaptureEvent: true }; + if (d) overrides[d.name] = { hasHoldTheLineEvent: true }; + if (e) { + overrides[e.name] = { + hasPirateRaid: true, + hasCaptureEvent: true, + }; + } + + return overrides; +}; + +const buildDenseOverrides = (systems: StarSystemType[]): StateOverrideMap => { + const byName = [...systems].sort((a, b) => a.name.localeCompare(b.name)); + const selected = byName.slice(0, 12); + const overrides: StateOverrideMap = {}; + + selected.forEach((system, idx) => { + const mode = idx % 4; + if (mode === 0) overrides[system.name] = { isInsurrect: true }; + if (mode === 1) overrides[system.name] = { hasPirateRaid: true }; + if (mode === 2) overrides[system.name] = { hasCaptureEvent: true }; + if (mode === 3) overrides[system.name] = { hasHoldTheLineEvent: true }; + }); + + return overrides; +}; + +const readOverridesFromStorage = (): StateOverrideMap | null => { + const raw = window.localStorage.getItem(OVERRIDES_STORAGE_KEY); + if (!raw) return null; + + try { + const parsed: unknown = JSON.parse(raw); + if (isStateOverrideMap(parsed)) { + return parsed; + } + } catch (error) { + console.warn('Invalid dev state override JSON in localStorage.', error); + } + + return null; +}; + +const buildNamedInsurrectionOverrides = ( + systems: StarSystemType[] +): StateOverrideMap => { + const systemNameLookup = new Map( + systems.map((system) => [system.name.toLowerCase(), system.name]) + ); + const overrides: StateOverrideMap = {}; + + DEV_INSURRECTION_SYSTEMS.forEach((targetName) => { + const canonicalName = systemNameLookup.get(targetName.toLowerCase()); + if (!canonicalName) return; + overrides[canonicalName] = { isInsurrect: true }; + }); + + return overrides; +}; + +export const applyDevStateInjection = ( + systems: StarSystemType[] +): StarSystemType[] => { + const allowInjectedStates = + import.meta.env.DEV || import.meta.env.VITE_ENABLE_STATE_TEST === 'true'; + if (!allowInjectedStates || typeof window === 'undefined') return systems; + + const params = new URLSearchParams(window.location.search); + const enabled = + isTruthyFlag(params.get(ENABLE_QUERY_PARAM)) || + isTruthyFlag(window.localStorage.getItem(ENABLE_STORAGE_KEY)); + + if (!enabled) return systems; + + const preset = + params.get(PRESET_QUERY_PARAM) || + window.localStorage.getItem(PRESET_STORAGE_KEY) || + 'sample'; + const customOverrides = readOverridesFromStorage(); + const namedInsurrectionOverrides = buildNamedInsurrectionOverrides(systems); + + const presetOverrides = + preset === 'dense' + ? buildDenseOverrides(systems) + : buildSampleOverrides(systems); + const overrides = { + ...presetOverrides, + ...namedInsurrectionOverrides, + ...customOverrides, + }; + + if (!Object.keys(overrides).length) return systems; + + return systems.map((system) => { + const injected = overrides[system.name]; + if (!injected) return system; + + return { + ...system, + state: { + ...system.state, + ...injected, + }, + }; + }); +}; diff --git a/src/components/hooks/useWarmapAPI.ts b/src/components/hooks/useWarmapAPI.ts index ace545e..839d1b7 100644 --- a/src/components/hooks/useWarmapAPI.ts +++ b/src/components/hooks/useWarmapAPI.ts @@ -1,6 +1,7 @@ import { useState } from 'react'; import { FactionDataType, StarSystemType } from './types'; import { API_BASE_URL } from '../helpers/ApiHelper.ts'; +import { applyDevStateInjection } from '../helpers/devStateInjector'; const useWarmapAPI = () => { const [rawSystems, setRawSystems] = useState([]); @@ -40,7 +41,7 @@ const useWarmapAPI = () => { `${API_BASE_URL}/api/v1/starmap/warmap` ).then((res) => res.json()); - setRawSystems(systemData); + setRawSystems(applyDevStateInjection(systemData)); } catch (error) { console.error('Failed to fetch data:', error); } diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index 3074713..3b6bffc 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -1,5 +1,6 @@ -import { memo } from 'react'; +import { memo, useEffect, useRef } from 'react'; import { Circle } from 'react-konva'; +import Konva from 'konva'; import { findFaction, openInNewTab } from '../helpers'; import { DisplayStarSystemType, @@ -72,6 +73,7 @@ const StarSystem: React.FC = ({ const hasActivePlayers = system.factions.some( (faction) => faction.ActivePlayers > 0 ); + const isInsurrect = !!system.state?.isInsurrect; const showActivePlayerIndicator = settings.flashActivePlayes && hasActivePlayers; const activePlayerRadiusMultiplier = showActivePlayerIndicator ? 1.25 : 1; @@ -91,6 +93,64 @@ const StarSystem: React.FC = ({ const shineOffset = radius * 0.35; const shineCenterColor = `rgba(255,255,255,${shineOpacity})`; const shineEdgeColor = 'rgba(255,255,255,0)'; + const insurrectGlowRadius = radius * 3.3; + const insurrectGlowOpacity = Math.min(0.22, circleOpacity * 0.26); + const insurrectPulseRadius = radius * 2.1; + const insurrectPulseRef = useRef(null); + const systemCircleRef = useRef(null); + + useEffect(() => { + if (!isInsurrect || !insurrectPulseRef.current) return; + + const node = insurrectPulseRef.current; + const baseOpacity = Math.min(0.22, circleOpacity * 0.25); + + const animation = new Konva.Animation((frame) => { + if (!frame) return; + const wave = (Math.sin(frame.time * 0.004) + 1) / 2; + const scale = 0.86 + wave * 0.72; + const pulseOpacity = Math.min(0.5, baseOpacity + wave * 0.24); + + node.scale({ x: scale, y: scale }); + node.opacity(pulseOpacity); + }, node.getLayer()); + + animation.start(); + + return () => { + animation.stop(); + node.scale({ x: 1, y: 1 }); + node.opacity(baseOpacity); + }; + }, [isInsurrect, circleOpacity]); + + useEffect(() => { + if (!isInsurrect || !systemCircleRef.current) return; + + const node = systemCircleRef.current; + const baseOpacity = circleOpacity; + + const animation = new Konva.Animation((frame) => { + if (!frame) return; + const wave = Math.sin(frame.time * 0.0045); + const scale = 1 + wave * 0.2; + const pulsedOpacity = Math.max( + 0.3, + Math.min(1, baseOpacity + wave * 0.24) + ); + + node.scale({ x: scale, y: scale }); + node.opacity(pulsedOpacity); + }, node.getLayer()); + + animation.start(); + + return () => { + animation.stop(); + node.scale({ x: 1, y: 1 }); + node.opacity(baseOpacity); + }; + }, [isInsurrect, circleOpacity]); const damageLevelText = system.damageLevel !== undefined && system.damageLevel !== null && @@ -148,6 +208,45 @@ const StarSystem: React.FC = ({ return ( <> + {isInsurrect && ( + + )} + {isInsurrect && ( + + )} {showActivePlayerIndicator && ( = ({ /> )} Date: Thu, 26 Feb 2026 10:05:06 -0800 Subject: [PATCH 16/28] Increase insurrecction graphical effect --- .../{index-CgcEaKjL.js => index-C_23djxc.js} | 80 +++++++++---------- map/index.html | 2 +- src/components/ui/StarSystem.tsx | 6 +- 3 files changed, 44 insertions(+), 44 deletions(-) rename map/assets/{index-CgcEaKjL.js => index-C_23djxc.js} (79%) diff --git a/map/assets/index-CgcEaKjL.js b/map/assets/index-C_23djxc.js similarity index 79% rename from map/assets/index-CgcEaKjL.js rename to map/assets/index-C_23djxc.js index 83d59ab..d15a363 100644 --- a/map/assets/index-CgcEaKjL.js +++ b/map/assets/index-C_23djxc.js @@ -1,4 +1,4 @@ -function M4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var uO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _9={exports:{}},Iw={},x9={exports:{}},Lt={};/** +function M4(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var uO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var x9={exports:{}},Iw={},S9={exports:{}},Lt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function M4(e,t){for(var r=0;r>>1,Z=Q[re];if(0>>1;reo(ge,X))ceo(J,ge)?(Q[re]=J,Q[ce]=X,re=ce):(Q[re]=ge,Q[fe]=X,re=fe);else if(ceo(J,X))Q[re]=J,Q[ce]=X,re=ce;else break e}}return W}function o(Q,W){var X=Q.sortIndex-W.sortIndex;return X!==0?X:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,b=null,S=3,w=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function g(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,q(m);else{var W=r(d);W!==null&&ne(g,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,h(k),k=-1),w=!0;var X=S;try{for(c(W),b=r(s);b!==null&&(!(b.expirationTime>W)||Q&&!A());){var re=b.callback;if(typeof re=="function"){b.callback=null,S=b.priorityLevel;var Z=re(b.expirationTime<=W);W=e.unstable_now(),typeof Z=="function"?b.callback=Z:b===r(s)&&n(s),c(W)}else n(s);b=r(s)}if(b!==null)var oe=!0;else{var fe=r(d);fe!==null&&ne(g,fe.startTime-W),oe=!1}return oe}finally{b=null,S=X,w=!1}}var _=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125re?(Q.sortIndex=X,t(d,Q),r(s)===null&&Q===r(d)&&(y?(h(k),k=-1):y=!0,ne(g,X-re))):(Q.sortIndex=Z,t(s,Q),P||w||(P=!0,q(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var X=S;S=W;try{return Q.apply(this,arguments)}finally{S=X}}}})(I9);A9.exports=I9;var pp=A9.exports;/** + */(function(e){function t(Q,W){var X=Q.length;Q.push(W);e:for(;0>>1,Z=Q[re];if(0>>1;reo(ge,X))ceo(J,ge)?(Q[re]=J,Q[ce]=X,re=ce):(Q[re]=ge,Q[fe]=X,re=fe);else if(ceo(J,X))Q[re]=J,Q[ce]=X,re=ce;else break e}}return W}function o(Q,W){var X=Q.sortIndex-W.sortIndex;return X!==0?X:Q.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],d=[],v=1,b=null,S=3,w=!1,P=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function c(Q){for(var W=r(d);W!==null;){if(W.callback===null)n(d);else if(W.startTime<=Q)n(d),W.sortIndex=W.expirationTime,t(s,W);else break;W=r(d)}}function g(Q){if(y=!1,c(Q),!P)if(r(s)!==null)P=!0,q(m);else{var W=r(d);W!==null&&ne(g,W.startTime-Q)}}function m(Q,W){P=!1,y&&(y=!1,h(k),k=-1),w=!0;var X=S;try{for(c(W),b=r(s);b!==null&&(!(b.expirationTime>W)||Q&&!A());){var re=b.callback;if(typeof re=="function"){b.callback=null,S=b.priorityLevel;var Z=re(b.expirationTime<=W);W=e.unstable_now(),typeof Z=="function"?b.callback=Z:b===r(s)&&n(s),c(W)}else n(s);b=r(s)}if(b!==null)var oe=!0;else{var fe=r(d);fe!==null&&ne(g,fe.startTime-W),oe=!1}return oe}finally{b=null,S=X,w=!1}}var _=!1,T=null,k=-1,R=5,E=-1;function A(){return!(e.unstable_now()-EQ||125re?(Q.sortIndex=X,t(d,Q),r(s)===null&&Q===r(d)&&(y?(h(k),k=-1):y=!0,ne(g,X-re))):(Q.sortIndex=Z,t(s,Q),P||w||(P=!0,q(m))),Q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(Q){var W=S;return function(){var X=S;S=W;try{return Q.apply(this,arguments)}finally{S=X}}}})(L9);I9.exports=L9;var pp=I9.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function M4(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eS=Object.prototype.hasOwnProperty,eB=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pO={},hO={};function tB(e){return eS.call(hO,e)?!0:eS.call(pO,e)?!1:eB.test(e)?hO[e]=!0:(pO[e]=!0,!1)}function rB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nB(e,t,r,n){if(t===null||typeof t>"u"||rB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var L4=/[\-:]([a-z])/g;function D4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function F4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eS=Object.prototype.hasOwnProperty,tB=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pO={},hO={};function rB(e){return eS.call(hO,e)?!0:eS.call(pO,e)?!1:tB.test(e)?hO[e]=!0:(pO[e]=!0,!1)}function nB(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oB(e,t,r,n){if(t===null||typeof t>"u"||nB(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var L4=/[\-:]([a-z])/g;function D4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(L4,D4);qn[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function F4(e,t,r,n){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{y_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?rg(e):""}function oB(e){switch(e.tag){case 5:return rg(e.type);case 16:return rg("Lazy");case 13:return rg("Suspense");case 19:return rg("SuspenseList");case 0:case 2:case 15:return e=b_(e.type,!1),e;case 11:return e=b_(e.type.render,!1),e;case 1:return e=b_(e.type,!0),e;default:return""}}function oS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bf:return"Fragment";case Vf:return"Portal";case tS:return"Profiler";case j4:return"StrictMode";case rS:return"Suspense";case nS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F9:return(e.displayName||"Context")+".Consumer";case D9:return(e._context.displayName||"Context")+".Provider";case z4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V4:return t=e.displayName||null,t!==null?t:oS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return oS(e(t))}catch{}}return null}function iB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oS(t);case 8:return t===j4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function z9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aB(e){var t=z9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gy(e){e._valueTracker||(e._valueTracker=aB(e))}function V9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=z9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function r1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function iS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function vO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function B9(e,t){t=t.checked,t!=null&&F4(e,"checked",t,!1)}function aS(e,t){B9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lS(e,t.type,r):t.hasOwnProperty("defaultValue")&&lS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function lS(e,t,r){(t!=="number"||r1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ng=Array.isArray;function hp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=vy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var gg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lB=["Webkit","ms","Moz","O"];Object.keys(gg).forEach(function(e){lB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gg[t]=gg[e]})});function $9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||gg.hasOwnProperty(e)&&gg[e]?(""+t).trim():t+"px"}function G9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=$9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var sB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cS(e,t){if(t){if(sB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(De(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(De(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(De(61))}if(t.style!=null&&typeof t.style!="object")throw Error(De(62))}}function dS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fS=null;function B4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pS=null,gp=null,vp=null;function wO(e){if(e=Vv(e)){if(typeof pS!="function")throw Error(De(280));var t=e.stateNode;t&&(t=zw(t),pS(e.stateNode,e.type,t))}}function K9(e){gp?vp?vp.push(e):vp=[e]:gp=e}function q9(){if(gp){var e=gp,t=vp;if(vp=gp=null,wO(e),t)for(e=0;e>>=0,e===0?32:31-(bB(e)/wB|0)|0}var my=64,yy=4194304;function og(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function a1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=og(l):(i&=a,i!==0&&(n=og(i)))}else a=r&~o,a!==0?n=og(a):i!==0&&(n=og(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function CB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=mg),EO=" ",MO=!1;function hM(e,t){switch(e){case"keyup":return ZB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Uf=!1;function eU(e,t){switch(e){case"compositionend":return gM(t);case"keypress":return t.which!==32?null:(MO=!0,EO);case"textInput":return e=t.data,e===EO&&MO?null:e;default:return null}}function tU(e,t){if(Uf)return e==="compositionend"||!Y4&&hM(e,t)?(e=fM(),gb=G4=au=null,Uf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=IO(r)}}function bM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wM(){for(var e=window,t=r1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=r1(e.document)}return t}function X4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cU(e){var t=wM(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&bM(r.ownerDocument.documentElement,r)){if(n!==null&&X4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=LO(r,i);var a=LO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Hf=null,bS=null,bg=null,wS=!1;function DO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wS||Hf==null||Hf!==r1(n)||(n=Hf,"selectionStart"in n&&X4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bg&&Gg(bg,n)||(bg=n,n=u1(bS,"onSelect"),0Gf||(e.current=TS[Gf],TS[Gf]=null,Gf--)}function ur(e,t){Gf++,TS[Gf]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Np(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function d1(){mr(Xo),mr(ho)}function HO(e,t,r){if(ho.current!==Eu)throw Error(De(168));ur(ho,t),ur(Xo,r)}function EM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(De(108,iB(e)||"Unknown",o));return Ar({},r,n)}function f1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function WO(e,t,r){var n=e.stateNode;if(!n)throw Error(De(169));r?(e=EM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,Vw=!1,A_=!1;function MM(e){ql===null?ql=[e]:ql.push(e)}function xU(e){Vw=!0,MM(e)}function ju(){if(!A_&&ql!==null){A_=!0;var e=0,t=Xt;try{var r=ql;for(Xt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return _r&&Fc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),_r&&Fc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===Bf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case hy:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===Bf){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&KO(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=I0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===Bf?(p=Qc(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=Sb(c.type,c.key,c.props,null,h.mode,g),g.ref=I0(h,p,c),g.return=h,h=g)}return a(h);case Vf:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=B_(c,h.mode,g),p.return=h,h=p}return a(h);case Qs:return _=c._init,C(h,p,_(c._payload),g)}if(ng(c))return P(h,p,c,g);if(E0(c))return y(h,p,c,g);Py(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=V_(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Ip=IM(!0),LM=IM(!1),g1=Fu(null),v1=null,Yf=null,eP=null;function tP(){eP=Yf=v1=null}function rP(e){var t=g1.current;mr(g1),e._currentValue=t}function ES(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function yp(e,t){v1=e,eP=Yf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(eP!==e)if(e={context:e,memoizedValue:t,next:null},Yf===null){if(v1===null)throw Error(De(308));Yf=e,v1.dependencies={lanes:0,firstContext:e}}else Yf=Yf.next=e;return t}var Wc=null;function nP(e){Wc===null?Wc=[e]:Wc.push(e)}function DM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,nP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function oP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Wt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,nP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function mb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,H4(e,r)}}function qO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function m1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var b=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,w=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,w=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){b=P.call(w,b,S);break e}b=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(w,b,S):P,S==null)break e;b=Ar({},b,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else w={eventTime:w,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=w,s=b):v=v.next=w,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=b),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=b}}function YO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=L_.transition;L_.transition={};try{e(!1),t()}finally{Xt=r,L_.transition=n}}function eR(){return sa().memoizedState}function TU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},tR(e))rR(t,r);else if(r=DM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),nR(r,t,n)}}function OU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(tR(e))rR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,nP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=DM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),nR(r,t,n))}}function tR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function rR(e,t){wg=b1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function nR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,H4(e,r)}}var w1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},kU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:QO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bb(4194308,4,YM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return bb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:XO,useDebugValue:fP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=XO(!1),t=e[0];return e=PU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(De(407));r=r()}else{if(r=t(),Rn===null)throw Error(De(349));(nd&30)!==0||BM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,QO(HM.bind(null,n,i,e),[e]),n.flags|=2048,ev(9,UM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Zg++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{y_=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?rg(e):""}function iB(e){switch(e.tag){case 5:return rg(e.type);case 16:return rg("Lazy");case 13:return rg("Suspense");case 19:return rg("SuspenseList");case 0:case 2:case 15:return e=b_(e.type,!1),e;case 11:return e=b_(e.type.render,!1),e;case 1:return e=b_(e.type,!0),e;default:return""}}function oS(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bf:return"Fragment";case Vf:return"Portal";case tS:return"Profiler";case j4:return"StrictMode";case rS:return"Suspense";case nS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j9:return(e.displayName||"Context")+".Consumer";case F9:return(e._context.displayName||"Context")+".Provider";case z4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V4:return t=e.displayName||null,t!==null?t:oS(e.type)||"Memo";case Qs:t=e._payload,e=e._init;try{return oS(e(t))}catch{}}return null}function aB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oS(t);case 8:return t===j4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ku(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function V9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lB(e){var t=V9(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gy(e){e._valueTracker||(e._valueTracker=lB(e))}function B9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=V9(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function r1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function iS(e,t){var r=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function vO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ku(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function U9(e,t){t=t.checked,t!=null&&F4(e,"checked",t,!1)}function aS(e,t){U9(e,t);var r=ku(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lS(e,t.type,r):t.hasOwnProperty("defaultValue")&&lS(e,t.type,ku(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mO(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function lS(e,t,r){(t!=="number"||r1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ng=Array.isArray;function hp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=vy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vg(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var gg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sB=["Webkit","ms","Moz","O"];Object.keys(gg).forEach(function(e){sB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gg[t]=gg[e]})});function G9(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||gg.hasOwnProperty(e)&&gg[e]?(""+t).trim():t+"px"}function K9(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=G9(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var uB=Ar({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cS(e,t){if(t){if(uB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(De(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(De(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(De(61))}if(t.style!=null&&typeof t.style!="object")throw Error(De(62))}}function dS(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fS=null;function B4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pS=null,gp=null,vp=null;function wO(e){if(e=Vv(e)){if(typeof pS!="function")throw Error(De(280));var t=e.stateNode;t&&(t=zw(t),pS(e.stateNode,e.type,t))}}function q9(e){gp?vp?vp.push(e):vp=[e]:gp=e}function Y9(){if(gp){var e=gp,t=vp;if(vp=gp=null,wO(e),t)for(e=0;e>>=0,e===0?32:31-(wB(e)/_B|0)|0}var my=64,yy=4194304;function og(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function a1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=og(l):(i&=a,i!==0&&(n=og(i)))}else a=r&~o,a!==0?n=og(a):i!==0&&(n=og(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function jv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ia(t),e[t]=r}function PB(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=mg),EO=" ",MO=!1;function gM(e,t){switch(e){case"keyup":return JB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Uf=!1;function tU(e,t){switch(e){case"compositionend":return vM(t);case"keypress":return t.which!==32?null:(MO=!0,EO);case"textInput":return e=t.data,e===EO&&MO?null:e;default:return null}}function rU(e,t){if(Uf)return e==="compositionend"||!Y4&&gM(e,t)?(e=pM(),gb=G4=au=null,Uf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=IO(r)}}function wM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _M(){for(var e=window,t=r1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=r1(e.document)}return t}function X4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dU(e){var t=_M(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&wM(r.ownerDocument.documentElement,r)){if(n!==null&&X4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=LO(r,i);var a=LO(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Hf=null,bS=null,bg=null,wS=!1;function DO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wS||Hf==null||Hf!==r1(n)||(n=Hf,"selectionStart"in n&&X4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bg&&Gg(bg,n)||(bg=n,n=u1(bS,"onSelect"),0Gf||(e.current=TS[Gf],TS[Gf]=null,Gf--)}function ur(e,t){Gf++,TS[Gf]=e.current,e.current=t}var Eu={},ho=Fu(Eu),Xo=Fu(!1),td=Eu;function Np(e,t){var r=e.type.contextTypes;if(!r)return Eu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qo(e){return e=e.childContextTypes,e!=null}function d1(){mr(Xo),mr(ho)}function HO(e,t,r){if(ho.current!==Eu)throw Error(De(168));ur(ho,t),ur(Xo,r)}function MM(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(De(108,aB(e)||"Unknown",o));return Ar({},r,n)}function f1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eu,td=ho.current,ur(ho,e),ur(Xo,Xo.current),!0}function WO(e,t,r){var n=e.stateNode;if(!n)throw Error(De(169));r?(e=MM(e,t,td),n.__reactInternalMemoizedMergedChildContext=e,mr(Xo),mr(ho),ur(ho,e)):mr(Xo),ur(Xo,r)}var ql=null,Vw=!1,A_=!1;function RM(e){ql===null?ql=[e]:ql.push(e)}function SU(e){Vw=!0,RM(e)}function ju(){if(!A_&&ql!==null){A_=!0;var e=0,t=Xt;try{var r=ql;for(Xt=1;e>=a,o-=a,Xl=1<<32-Ia(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),_r&&Fc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return _r&&Fc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),_r&&Fc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===Bf&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case hy:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===Bf){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===Qs&&KO(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=I0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===Bf?(p=Qc(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=Sb(c.type,c.key,c.props,null,h.mode,g),g.ref=I0(h,p,c),g.return=h,h=g)}return a(h);case Vf:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=B_(c,h.mode,g),p.return=h,h=p}return a(h);case Qs:return _=c._init,C(h,p,_(c._payload),g)}if(ng(c))return P(h,p,c,g);if(E0(c))return y(h,p,c,g);Py(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=V_(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Ip=LM(!0),DM=LM(!1),g1=Fu(null),v1=null,Yf=null,eP=null;function tP(){eP=Yf=v1=null}function rP(e){var t=g1.current;mr(g1),e._currentValue=t}function ES(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function yp(e,t){v1=e,eP=Yf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ko=!0),e.firstContext=null)}function la(e){var t=e._currentValue;if(eP!==e)if(e={context:e,memoizedValue:t,next:null},Yf===null){if(v1===null)throw Error(De(308));Yf=e,v1.dependencies={lanes:0,firstContext:e}}else Yf=Yf.next=e;return t}var Wc=null;function nP(e){Wc===null?Wc=[e]:Wc.push(e)}function FM(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,nP(t)):(r.next=o.next,o.next=r),t.interleaved=r,us(e,n)}function us(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Zs=!1;function oP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jM(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Wt&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,us(e,r)}return o=n.interleaved,o===null?(t.next=t,nP(n)):(t.next=o.next,o.next=t),n.interleaved=t,us(e,r)}function mb(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,H4(e,r)}}function qO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function m1(e,t,r,n){var o=e.updateQueue;Zs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,d=s.next;s.next=null,a===null?i=d:a.next=d,a=s;var v=e.alternate;v!==null&&(v=v.updateQueue,l=v.lastBaseUpdate,l!==a&&(l===null?v.firstBaseUpdate=d:l.next=d,v.lastBaseUpdate=s))}if(i!==null){var b=o.baseState;a=0,v=d=s=null,l=i;do{var S=l.lane,w=l.eventTime;if((n&S)===S){v!==null&&(v=v.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var P=e,y=l;switch(S=t,w=r,y.tag){case 1:if(P=y.payload,typeof P=="function"){b=P.call(w,b,S);break e}b=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=y.payload,S=typeof P=="function"?P.call(w,b,S):P,S==null)break e;b=Ar({},b,S);break e;case 2:Zs=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,S=o.effects,S===null?o.effects=[l]:S.push(l))}else w={eventTime:w,lane:S,tag:l.tag,payload:l.payload,callback:l.callback,next:null},v===null?(d=v=w,s=b):v=v.next=w,a|=S;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;S=l,l=S.next,S.next=null,o.lastBaseUpdate=S,o.shared.pending=null}}while(!0);if(v===null&&(s=b),o.baseState=s,o.firstBaseUpdate=d,o.lastBaseUpdate=v,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);od|=a,e.lanes=a,e.memoizedState=b}}function YO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=L_.transition;L_.transition={};try{e(!1),t()}finally{Xt=r,L_.transition=n}}function tR(){return sa().memoizedState}function OU(e,t,r){var n=mu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},rR(e))nR(t,r);else if(r=FM(e,t,r,n),r!==null){var o=Ro();La(r,e,n,o),oR(r,t,n)}}function kU(e,t,r){var n=mu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(rR(e))nR(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Va(l,a)){var s=t.interleaved;s===null?(o.next=o,nP(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=FM(e,t,o,n),r!==null&&(o=Ro(),La(r,e,n,o),oR(r,t,n))}}function rR(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function nR(e,t){wg=b1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function oR(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,H4(e,r)}}var w1={readContext:la,useCallback:no,useContext:no,useEffect:no,useImperativeHandle:no,useInsertionEffect:no,useLayoutEffect:no,useMemo:no,useReducer:no,useRef:no,useState:no,useDebugValue:no,useDeferredValue:no,useTransition:no,useMutableSource:no,useSyncExternalStore:no,useId:no,unstable_isNewReconciler:!1},EU={readContext:la,useCallback:function(e,t){return sl().memoizedState=[e,t===void 0?null:t],e},useContext:la,useEffect:QO,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bb(4194308,4,XM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return bb(4,2,e,t)},useMemo:function(e,t){var r=sl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=OU.bind(null,Rr,e),[n.memoizedState,e]},useRef:function(e){var t=sl();return e={current:e},t.memoizedState=e},useState:XO,useDebugValue:fP,useDeferredValue:function(e){return sl().memoizedState=e},useTransition:function(){var e=XO(!1),t=e[0];return e=TU.bind(null,e[1]),sl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Rr,o=sl();if(_r){if(r===void 0)throw Error(De(407));r=r()}else{if(r=t(),Rn===null)throw Error(De(349));(nd&30)!==0||UM(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,QO(WM.bind(null,n,i,e),[e]),n.flags|=2048,ev(9,HM.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=sl(),t=Rn.identifierPrefix;if(_r){var r=Ql,n=Xl;r=(n&~(1<<32-Ia(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Zg++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[Yg]=n,pR(e,t,!1,!1),t.stateNode=e;e:{switch(a=dS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oFp&&(t.flags|=128,n=!0,L0(i,!1),t.lanes=4194304)}else{if(!n)if(e=y1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),L0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Fp&&r!==1073741824&&(t.flags|=128,n=!0,L0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return yP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function DU(e,t){switch(Z4(t),t.tag){case 1:return Qo(t.type)&&d1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lp(),mr(Xo),mr(ho),lP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return aP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(De(340));Ap()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Lp(),null;case 10:return rP(t.type._context),null;case 22:case 23:return yP(),null;case 24:return null;default:return null}}var Oy=!1,co=!1,FU=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Xf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function jS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var s6=!1;function jU(e,t){if(_S=l1,e=wM(),X4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(xS={focusedElem:e,selectionRange:r},l1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(De(163))}}catch(g){Vr(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=s6,s6=!1,P}function _g(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&jS(t,r,i)}o=o.next}while(o!==n)}}function Hw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function zS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function vR(e){var t=e.alternate;t!==null&&(e.alternate=null,vR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[Yg],delete t[PS],delete t[wU],delete t[_U])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mR(e){return e.tag===5||e.tag===3||e.tag===4}function u6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function VS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=c1));else if(n!==4&&(e=e.child,e!==null))for(VS(e,t,r),e=e.sibling;e!==null;)VS(e,t,r),e=e.sibling}function BS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(BS(e,t,r),e=e.sibling;e!==null;)BS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)yR(e,t,r),r=r.sibling}function yR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Lw,r)}catch{}switch(r.tag){case 5:co||Xf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?N_(e.parentNode,r):e.nodeType===1&&N_(e,r),Wg(e)):N_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&jS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Xf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function c6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new FU),t.forEach(function(n){var o=KU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,S1=0,(Wt&6)!==0)throw Error(De(331));var o=Wt;for(Wt|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-vP?Xc(e,0):gP|=r),Zo(e,t)}function TR(e,t){t===0&&((e.mode&1)===0?t=1:(t=yy,yy<<=1,(yy&130023424)===0&&(yy=4194304)));var r=Ro();e=us(e,t),e!==null&&(jv(e,t,r),Zo(e,r))}function GU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TR(e,r)}function KU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(De(314))}n!==null&&n.delete(t),TR(e,r)}var OR;OR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,IU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&RM(t,h1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;wb(e,t),e=t.pendingProps;var o=Np(t,ho.current);yp(t,r),o=uP(null,t,n,e,o,r);var i=cP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,f1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,oP(t),o.updater=Uw,t.stateNode=o,o._reactInternals=t,RS(t,n,e,r),t=IS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&Q4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(wb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=YU(n),e=Ta(n,e),o){case 0:t=AS(null,t,n,e,r);break e;case 1:t=i6(null,t,n,e,r);break e;case 11:t=n6(null,t,n,e,r);break e;case 14:t=o6(null,t,n,Ta(n.type,e),r);break e}throw Error(De(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),AS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),i6(e,t,n,o,r);case 3:e:{if(cR(t),e===null)throw Error(De(387));n=t.pendingProps,i=t.memoizedState,o=i.element,FM(e,t),m1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Dp(Error(De(423)),t),t=a6(e,t,n,r,o);break e}else if(n!==o){o=Dp(Error(De(424)),t),t=a6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=LM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ap(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return jM(t),e===null&&kS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,SS(n,o)?a=null:i!==null&&SS(n,i)&&(t.flags|=32),uR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&kS(t),null;case 13:return dR(e,t,r);case 4:return iP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ip(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),n6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(g1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),ES(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(De(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),ES(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,yp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),o6(e,t,n,o,r);case 15:return lR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),wb(e,t),t.tag=1,Qo(n)?(e=!0,f1(t)):e=!1,yp(t,r),oR(t,n,o),RS(t,n,o,r),IS(null,t,n,!0,e,r);case 19:return fR(e,t,r);case 22:return sR(e,t,r)}throw Error(De(156,t.tag))};function kR(e,t){return tM(e,t)}function qU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new qU(e,t,r,n)}function wP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YU(e){if(typeof e=="function")return wP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===z4)return 11;if(e===V4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Sb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")wP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Bf:return Qc(r.children,o,i,t);case j4:a=8,o|=8;break;case tS:return e=ta(12,r,t,o|2),e.elementType=tS,e.lanes=i,e;case rS:return e=ta(13,r,t,o),e.elementType=rS,e.lanes=i,e;case nS:return e=ta(19,r,t,o),e.elementType=nS,e.lanes=i,e;case j9:return $w(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D9:a=10;break e;case F9:a=9;break e;case z4:a=11;break e;case V4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(De(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function $w(e,t,r,n){return e=ta(22,e,n,t),e.elementType=j9,e.lanes=r,e.stateNode={isHidden:!1},e}function V_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function B_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=__(0),this.expirationTimes=__(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=__(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function _P(e,t,r,n,o,i,a,l,s){return e=new XU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},oP(i),e}function QU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(NR)}catch(e){console.error(e)}}NR(),N9.exports=Mi;var Xw=N9.exports;const rH=oh(Xw),nH=M4({__proto__:null,default:rH},[Xw]);var AR,y6=Xw;AR=y6.createRoot,y6.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function j_(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function NS(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var NU=typeof WeakMap=="function"?WeakMap:Map;function aR(e,t,r){r=es(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){x1||(x1=!0,US=n),NS(e,t)},r}function lR(e,t,r){r=es(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){NS(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){NS(e,t),typeof n!="function"&&(vu===null?vu=new Set([this]):vu.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function e6(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new NU;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=GU.bind(null,e,t,r),t.then(e,e))}function t6(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function r6(e,t,r,n,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=es(-1,1),t.tag=2,gu(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var AU=ys.ReactCurrentOwner,Ko=!1;function Eo(e,t,r,n){t.child=e===null?DM(t,null,r,n):Ip(t,e.child,r,n)}function n6(e,t,r,n,o){r=r.render;var i=t.ref;return yp(t,o),n=uP(e,t,r,n,i,o),r=cP(),e!==null&&!Ko?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,cs(e,t,o)):(_r&&r&&Q4(t),t.flags|=1,Eo(e,t,n,o),t.child)}function o6(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!wP(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,sR(e,t,i,n,o)):(e=Sb(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Gg,r(a,n)&&e.ref===t.ref)return cs(e,t,o)}return t.flags|=1,e=yu(i,n),e.ref=t.ref,e.return=t,t.child=e}function sR(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Gg(i,n)&&e.ref===t.ref)if(Ko=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Ko=!0);else return t.lanes=e.lanes,cs(e,t,o)}return AS(e,t,r,n,o)}function uR(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ur(Qf,yi),yi|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ur(Qf,yi),yi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ur(Qf,yi),yi|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,ur(Qf,yi),yi|=n;return Eo(e,t,o,r),t.child}function cR(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function AS(e,t,r,n,o){var i=Qo(r)?td:ho.current;return i=Np(t,i),yp(t,o),r=uP(e,t,r,n,i,o),n=cP(),e!==null&&!Ko?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,cs(e,t,o)):(_r&&n&&Q4(t),t.flags|=1,Eo(e,t,r,o),t.child)}function i6(e,t,r,n,o){if(Qo(r)){var i=!0;f1(t)}else i=!1;if(yp(t,o),t.stateNode===null)wb(e,t),iR(t,r,n),RS(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,d=r.contextType;typeof d=="object"&&d!==null?d=la(d):(d=Qo(r)?td:ho.current,d=Np(t,d));var v=r.getDerivedStateFromProps,b=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function";b||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==n||s!==d)&&JO(t,a,n,d),Zs=!1;var S=t.memoizedState;a.state=S,m1(t,n,a,o),s=t.memoizedState,l!==n||S!==s||Xo.current||Zs?(typeof v=="function"&&(MS(t,r,v,n),s=t.memoizedState),(l=Zs||ZO(t,r,l,n,S,s,d))?(b||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),a.props=n,a.state=s,a.context=d,n=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,jM(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:Ta(t.type,l),a.props=d,b=t.pendingProps,S=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=la(s):(s=Qo(r)?td:ho.current,s=Np(t,s));var w=r.getDerivedStateFromProps;(v=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==b||S!==s)&&JO(t,a,n,s),Zs=!1,S=t.memoizedState,a.state=S,m1(t,n,a,o);var P=t.memoizedState;l!==b||S!==P||Xo.current||Zs?(typeof w=="function"&&(MS(t,r,w,n),P=t.memoizedState),(d=Zs||ZO(t,r,d,n,S,P,s)||!1)?(v||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,P,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,P,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=P),a.props=n,a.state=P,a.context=s,n=d):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),n=!1)}return IS(e,t,r,n,i,o)}function IS(e,t,r,n,o,i){cR(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&WO(t,r,!1),cs(e,t,i);n=t.stateNode,AU.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Ip(t,e.child,null,i),t.child=Ip(t,null,l,i)):Eo(e,t,l,i),t.memoizedState=n.state,o&&WO(t,r,!0),t.child}function dR(e){var t=e.stateNode;t.pendingContext?HO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&HO(e,t.context,!1),iP(e,t.containerInfo)}function a6(e,t,r,n,o){return Ap(),J4(o),t.flags|=256,Eo(e,t,r,n),t.child}var LS={dehydrated:null,treeContext:null,retryLane:0};function DS(e){return{baseLanes:e,cachePool:null,transitions:null}}function fR(e,t,r){var n=t.pendingProps,o=kr.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ur(kr,o&1),e===null)return kS(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=$w(a,n,0,null),e=Qc(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=DS(r),t.memoizedState=LS,e):pP(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return IU(e,t,a,n,l,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:n.children};return(a&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=yu(o,s),n.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=yu(l,i):(i=Qc(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?DS(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=LS,n}return i=e.child,e=i.sibling,n=yu(i,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function pP(e,t){return t=$w({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ty(e,t,r,n){return n!==null&&J4(n),Ip(t,e.child,null,r),e=pP(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function IU(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=j_(Error(De(422))),Ty(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=$w({mode:"visible",children:n.children},o,0,null),i=Qc(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Ip(t,e.child,null,a),t.child.memoizedState=DS(a),t.memoizedState=LS,i);if((t.mode&1)===0)return Ty(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(De(419)),n=j_(i,n,void 0),Ty(e,t,a,n)}if(l=(a&e.childLanes)!==0,Ko||l){if(n=Rn,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,us(e,o),La(n,e,o,-1))}return bP(),n=j_(Error(De(421))),Ty(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=KU.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,_i=hu(o.nextSibling),Si=t,_r=!0,Ra=null,e!==null&&(Qi[Zi++]=Xl,Qi[Zi++]=Ql,Qi[Zi++]=rd,Xl=e.id,Ql=e.overflow,rd=t),t=pP(t,n.children),t.flags|=4096,t)}function l6(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ES(e.return,t,r)}function z_(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function pR(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Eo(e,t,n.children,r),n=kr.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&l6(e,r,t);else if(e.tag===19)l6(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ur(kr,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&y1(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),z_(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&y1(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}z_(t,!0,r,null,i);break;case"together":z_(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function wb(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),od|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(De(153));if(t.child!==null){for(e=t.child,r=yu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=yu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function LU(e,t,r){switch(t.tag){case 3:dR(t),Ap();break;case 5:zM(t);break;case 1:Qo(t.type)&&f1(t);break;case 4:iP(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ur(g1,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ur(kr,kr.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?fR(e,t,r):(ur(kr,kr.current&1),e=cs(e,t,r),e!==null?e.sibling:null);ur(kr,kr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return pR(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ur(kr,kr.current),n)break;return null;case 22:case 23:return t.lanes=0,uR(e,t,r)}return cs(e,t,r)}var hR,FS,gR,vR;hR=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};FS=function(){};gR=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,$c(vl.current);var i=null;switch(r){case"input":o=iS(e,o),n=iS(e,n),i=[];break;case"select":o=Ar({},o,{value:void 0}),n=Ar({},n,{value:void 0}),i=[];break;case"textarea":o=sS(e,o),n=sS(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=c1)}cS(r,n);var a;r=null;for(d in o)if(!n.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var l=o[d];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(zg.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in n){var s=n[d];if(l=o!=null?o[d]:void 0,n.hasOwnProperty(d)&&s!==l&&(s!=null||l!=null))if(d==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(d,r)),r=s;else d==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(d,s)):d==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(d,""+s):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(zg.hasOwnProperty(d)?(s!=null&&d==="onScroll"&&hr("scroll",e),i||l===s||(i=[])):(i=i||[]).push(d,s))}r&&(i=i||[]).push("style",r);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};vR=function(e,t,r,n){r!==n&&(t.flags|=4)};function L0(e,t){if(!_r)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function oo(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function DU(e,t,r){var n=t.pendingProps;switch(Z4(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oo(t),null;case 1:return Qo(t.type)&&d1(),oo(t),null;case 3:return n=t.stateNode,Lp(),mr(Xo),mr(ho),lP(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Cy(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ra!==null&&($S(Ra),Ra=null))),FS(e,t),oo(t),null;case 5:aP(t);var o=$c(Qg.current);if(r=t.type,e!==null&&t.stateNode!=null)gR(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(De(166));return oo(t),null}if(e=$c(vl.current),Cy(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[fl]=t,n[Yg]=i,e=(t.mode&1)!==0,r){case"dialog":hr("cancel",n),hr("close",n);break;case"iframe":case"object":case"embed":hr("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fl]=t,e[Yg]=n,hR(e,t,!1,!1),t.stateNode=e;e:{switch(a=dS(r,n),r){case"dialog":hr("cancel",e),hr("close",e),o=n;break;case"iframe":case"object":case"embed":hr("load",e),o=n;break;case"video":case"audio":for(o=0;oFp&&(t.flags|=128,n=!0,L0(i,!1),t.lanes=4194304)}else{if(!n)if(e=y1(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),L0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_r)return oo(t),null}else 2*qr()-i.renderingStartTime>Fp&&r!==1073741824&&(t.flags|=128,n=!0,L0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qr(),t.sibling=null,r=kr.current,ur(kr,n?r&1|2:r&1),t):(oo(t),null);case 22:case 23:return yP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(yi&1073741824)!==0&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function FU(e,t){switch(Z4(t),t.tag){case 1:return Qo(t.type)&&d1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lp(),mr(Xo),mr(ho),lP(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return aP(t),null;case 13:if(mr(kr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(De(340));Ap()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return mr(kr),null;case 4:return Lp(),null;case 10:return rP(t.type._context),null;case 22:case 23:return yP(),null;case 24:return null;default:return null}}var Oy=!1,co=!1,jU=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Xf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Vr(e,t,n)}else r.current=null}function jS(e,t,r){try{r()}catch(n){Vr(e,t,n)}}var s6=!1;function zU(e,t){if(_S=l1,e=_M(),X4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(xS={focusedElem:e,selectionRange:r},l1=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ta(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(De(163))}}catch(g){Vr(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return P=s6,s6=!1,P}function _g(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&jS(t,r,i)}o=o.next}while(o!==n)}}function Hw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function zS(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function mR(e){var t=e.alternate;t!==null&&(e.alternate=null,mR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[Yg],delete t[PS],delete t[_U],delete t[xU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yR(e){return e.tag===5||e.tag===3||e.tag===4}function u6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function VS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=c1));else if(n!==4&&(e=e.child,e!==null))for(VS(e,t,r),e=e.sibling;e!==null;)VS(e,t,r),e=e.sibling}function BS(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(BS(e,t,r),e=e.sibling;e!==null;)BS(e,t,r),e=e.sibling}var Hn=null,ka=!1;function Ws(e,t,r){for(r=r.child;r!==null;)bR(e,t,r),r=r.sibling}function bR(e,t,r){if(gl&&typeof gl.onCommitFiberUnmount=="function")try{gl.onCommitFiberUnmount(Lw,r)}catch{}switch(r.tag){case 5:co||Xf(r,t);case 6:var n=Hn,o=ka;Hn=null,Ws(e,t,r),Hn=n,ka=o,Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Hn.removeChild(r.stateNode));break;case 18:Hn!==null&&(ka?(e=Hn,r=r.stateNode,e.nodeType===8?N_(e.parentNode,r):e.nodeType===1&&N_(e,r),Wg(e)):N_(Hn,r.stateNode));break;case 4:n=Hn,o=ka,Hn=r.stateNode.containerInfo,ka=!0,Ws(e,t,r),Hn=n,ka=o;break;case 0:case 11:case 14:case 15:if(!co&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&jS(r,t,a),o=o.next}while(o!==n)}Ws(e,t,r);break;case 1:if(!co&&(Xf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Vr(r,t,l)}Ws(e,t,r);break;case 21:Ws(e,t,r);break;case 22:r.mode&1?(co=(n=co)||r.memoizedState!==null,Ws(e,t,r),co=n):Ws(e,t,r);break;default:Ws(e,t,r)}}function c6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new jU),t.forEach(function(n){var o=qU.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function xa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=qr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*BU(n/1960))-n,10e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,S1=0,(Wt&6)!==0)throw Error(De(331));var o=Wt;for(Wt|=4,Ke=e.current;Ke!==null;){var i=Ke,a=i.child;if((Ke.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sqr()-vP?Xc(e,0):gP|=r),Zo(e,t)}function OR(e,t){t===0&&((e.mode&1)===0?t=1:(t=yy,yy<<=1,(yy&130023424)===0&&(yy=4194304)));var r=Ro();e=us(e,t),e!==null&&(jv(e,t,r),Zo(e,r))}function KU(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),OR(e,r)}function qU(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(De(314))}n!==null&&n.delete(t),OR(e,r)}var kR;kR=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xo.current)Ko=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Ko=!1,LU(e,t,r);Ko=(e.flags&131072)!==0}else Ko=!1,_r&&(t.flags&1048576)!==0&&NM(t,h1,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;wb(e,t),e=t.pendingProps;var o=Np(t,ho.current);yp(t,r),o=uP(null,t,n,e,o,r);var i=cP();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qo(n)?(i=!0,f1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,oP(t),o.updater=Uw,t.stateNode=o,o._reactInternals=t,RS(t,n,e,r),t=IS(null,t,n,!0,i,r)):(t.tag=0,_r&&i&&Q4(t),Eo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(wb(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=XU(n),e=Ta(n,e),o){case 0:t=AS(null,t,n,e,r);break e;case 1:t=i6(null,t,n,e,r);break e;case 11:t=n6(null,t,n,e,r);break e;case 14:t=o6(null,t,n,Ta(n.type,e),r);break e}throw Error(De(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),AS(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),i6(e,t,n,o,r);case 3:e:{if(dR(t),e===null)throw Error(De(387));n=t.pendingProps,i=t.memoizedState,o=i.element,jM(e,t),m1(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Dp(Error(De(423)),t),t=a6(e,t,n,r,o);break e}else if(n!==o){o=Dp(Error(De(424)),t),t=a6(e,t,n,r,o);break e}else for(_i=hu(t.stateNode.containerInfo.firstChild),Si=t,_r=!0,Ra=null,r=DM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ap(),n===o){t=cs(e,t,r);break e}Eo(e,t,n,r)}t=t.child}return t;case 5:return zM(t),e===null&&kS(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,SS(n,o)?a=null:i!==null&&SS(n,i)&&(t.flags|=32),cR(e,t),Eo(e,t,a,r),t.child;case 6:return e===null&&kS(t),null;case 13:return fR(e,t,r);case 4:return iP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ip(t,null,n,r):Eo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),n6(e,t,n,o,r);case 7:return Eo(e,t,t.pendingProps,r),t.child;case 8:return Eo(e,t,t.pendingProps.children,r),t.child;case 12:return Eo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ur(g1,n._currentValue),n._currentValue=a,i!==null)if(Va(i.value,a)){if(i.children===o.children&&!Xo.current){t=cs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=es(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),ES(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(De(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),ES(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Eo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,yp(t,r),o=la(o),n=n(o),t.flags|=1,Eo(e,t,n,r),t.child;case 14:return n=t.type,o=Ta(n,t.pendingProps),o=Ta(n.type,o),o6(e,t,n,o,r);case 15:return sR(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ta(n,o),wb(e,t),t.tag=1,Qo(n)?(e=!0,f1(t)):e=!1,yp(t,r),iR(t,n,o),RS(t,n,o,r),IS(null,t,n,!0,e,r);case 19:return pR(e,t,r);case 22:return uR(e,t,r)}throw Error(De(156,t.tag))};function ER(e,t){return rM(e,t)}function YU(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,r,n){return new YU(e,t,r,n)}function wP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XU(e){if(typeof e=="function")return wP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===z4)return 11;if(e===V4)return 14}return 2}function yu(e,t){var r=e.alternate;return r===null?(r=ta(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Sb(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")wP(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Bf:return Qc(r.children,o,i,t);case j4:a=8,o|=8;break;case tS:return e=ta(12,r,t,o|2),e.elementType=tS,e.lanes=i,e;case rS:return e=ta(13,r,t,o),e.elementType=rS,e.lanes=i,e;case nS:return e=ta(19,r,t,o),e.elementType=nS,e.lanes=i,e;case z9:return $w(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F9:a=10;break e;case j9:a=9;break e;case z4:a=11;break e;case V4:a=14;break e;case Qs:a=16,n=null;break e}throw Error(De(130,e==null?e:typeof e,""))}return t=ta(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Qc(e,t,r,n){return e=ta(7,e,n,t),e.lanes=r,e}function $w(e,t,r,n){return e=ta(22,e,n,t),e.elementType=z9,e.lanes=r,e.stateNode={isHidden:!1},e}function V_(e,t,r){return e=ta(6,e,null,t),e.lanes=r,e}function B_(e,t,r){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QU(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=__(0),this.expirationTimes=__(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=__(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function _P(e,t,r,n,o,i,a,l,s){return e=new QU(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ta(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},oP(i),e}function ZU(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AR)}catch(e){console.error(e)}}AR(),A9.exports=Mi;var Xw=A9.exports;const nH=oh(Xw),oH=M4({__proto__:null,default:nH},[Xw]);var IR,y6=Xw;IR=y6.createRoot,y6.hydrateRoot;/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -46,9 +46,9 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iH(){return Math.random().toString(36).substr(2,8)}function w6(e,t){return{usr:e.state,key:e.key,idx:t}}function rv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||iH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function aH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function b(){l=rn.Pop;let C=v(),h=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:h})}function S(C,h){l=rn.Push;let p=rv(y.location,C,h);d=v()+1;let c=w6(p,d),g=y.createHref(p);try{a.pushState(c,"",g)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(g)}i&&s&&s({action:l,location:y.location,delta:1})}function w(C,h){l=rn.Replace;let p=rv(y.location,C,h);d=v();let c=w6(p,d),g=y.createHref(p);a.replaceState(c,"",g),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof C=="string"?C:ad(C);return p=p.replace(/ $/,"%20"),Pt(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(b6,b),s=C,()=>{o.removeEventListener(b6,b),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let h=P(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:S,replace:w,go(C){return a.go(C)}};return y}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const lH=new Set(["lazy","caseSensitive","path","id","index","children"]);function sH(e){return e.index===!0}function nv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pt(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),sH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=nv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Cb(e,t,r,!1)}function Cb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=sh(o.pathname||"/",r);if(i==null)return null;let a=IR(e);cH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Pt(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),IR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:mH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of LR(i.path))o(i,a,s)}),t}function LR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=LR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function cH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:yH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const dH=/^:[\w-]+$/,fH=3,pH=2,hH=1,gH=10,vH=-2,_6=e=>e==="*";function mH(e,t){let r=e.split("/"),n=r.length;return r.some(_6)&&(n+=vH),t&&(n+=pH),r.filter(o=>!_6(o)).reduce((o,i)=>o+(dH.test(i)?fH:i===""?hH:gH),n)}function yH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function bH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:w}=v;if(S==="*"){let y=l[b]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[b];return w&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function wH(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),jp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function _H(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function sh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function xH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:SH(r,t):t,search:PH(n),hash:TH(o)}}function SH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function U_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function DR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function PP(e,t){let r=DR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function TP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Pt(!o.pathname||!o.pathname.includes("?"),U_("?","pathname","search",o)),Pt(!o.pathname||!o.pathname.includes("#"),U_("#","pathname","hash",o)),Pt(!o.search||!o.search.includes("#"),U_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let b=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),b-=1;o.pathname=S.join("/")}l=b>=0?t[b]:"/"}let s=xH(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),CH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),PH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class T1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Uv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const FR=["post","put","patch","delete"],OH=new Set(FR),kH=["get",...FR],EH=new Set(kH),MH=new Set([301,302,303,307,308]),RH=new Set([307,308]),H_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},NH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},F0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},OP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jR="remix-router-transitions";function IH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;o=he=>({hasErrorBoundary:le(he)})}else o=AH;let i={},a=nv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||VH,v=e.unstable_patchRoutesOnNavigation,b=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,w=new Set,P=1e3,y=new Set,C=null,h=null,p=null,c=e.hydrationData!=null,g=Uc(a,e.history.location,s),m=null;if(g==null&&!v){let le=ko(404,{pathname:e.history.location.pathname}),{matches:he,route:xe}=R6(a);g=he,m={[xe.id]:le}}g&&!e.hydrationData&&bo(g,a,e.history.location.pathname).active&&(g=null);let _;if(g)if(g.some(le=>le.route.lazy))_=!1;else if(!g.some(le=>le.route.loader))_=!0;else if(b.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,he=e.hydrationData?e.hydrationData.errors:null,xe=Oe=>Oe.route.loader?typeof Oe.route.loader=="function"&&Oe.route.loader.hydrate===!0?!1:le&&le[Oe.route.id]!==void 0||he&&he[Oe.route.id]!==void 0:!0;if(he){let Oe=g.findIndex(Ue=>he[Ue.route.id]!==void 0);_=g.slice(0,Oe+1).every(xe)}else _=g.every(xe)}else _=e.hydrationData!=null;else if(_=!1,g=[],b.v7_partialHydration){let le=bo(null,a,e.history.location.pathname);le.active&&le.matches&&(g=le.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:g,initialized:_,navigation:H_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,H=!1,q=!1,ne=[],Q=new Set,W=new Map,X=0,re=-1,Z=new Map,oe=new Set,fe=new Map,ge=new Map,ce=new Set,J=new Map,ie=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(le=>{let{action:he,location:xe,delta:Oe}=le;if(Se){Se(),Se=void 0;return}jp(ie.size===0||Oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=Li({currentLocation:k.location,nextLocation:xe,historyAction:he});if(Ue&&Oe!=null){let Qe=new Promise(ut=>{Se=ut});e.history.go(Oe*-1),sn(Ue,{state:"blocked",location:xe,proceed(){sn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Qe.then(()=>e.history.go(Oe))},reset(){let ut=new Map(k.blockers);ut.set(Ue,F0),Re({blockers:ut})}});return}return Ye(he,xe)}),r){tW(t,V);let le=()=>rW(t,V);t.addEventListener("pagehide",le),B=()=>t.removeEventListener("pagehide",le)}return k.initialized||Ye(rn.Pop,k.location,{initialHydration:!0}),T}function Me(){S&&S(),B&&B(),w.clear(),A&&A.abort(),k.fetchers.forEach((le,he)=>Yt(he)),k.blockers.forEach((le,he)=>Ka(he))}function Le(le){return w.add(le),()=>w.delete(le)}function Re(le,he){he===void 0&&(he={}),k=Tr({},k,le);let xe=[],Oe=[];b.v7_fetcherPersist&&k.fetchers.forEach((Ue,Qe)=>{Ue.state==="idle"&&(ce.has(Qe)?Oe.push(Qe):xe.push(Qe))}),[...w].forEach(Ue=>Ue(k,{deletedFetchers:Oe,unstable_viewTransitionOpts:he.viewTransitionOpts,unstable_flushSync:he.flushSync===!0})),b.v7_fetcherPersist&&(xe.forEach(Ue=>k.fetchers.delete(Ue)),Oe.forEach(Ue=>Yt(Ue)))}function be(le,he,xe){var Oe,Ue;let{flushSync:Qe}=xe===void 0?{}:xe,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Oe=le.state)==null?void 0:Oe._isRedirect)!==!0,je;he.actionData?Object.keys(he.actionData).length>0?je=he.actionData:je=null:ut?je=k.actionData:je=null;let Ze=he.loaderData?E6(k.loaderData,he.loaderData,he.matches||[],he.errors):k.loaderData,$e=k.blockers;$e.size>0&&($e=new Map($e),$e.forEach((Nt,Ut)=>$e.set(Ut,F0)));let Ge=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Ue=le.state)==null?void 0:Ue._isRedirect)!==!0;l&&(a=l,l=void 0),H||R===rn.Pop||(R===rn.Push?e.history.push(le,le.state):R===rn.Replace&&e.history.replace(le,le.state));let kt;if(R===rn.Pop){let Nt=V.get(k.location.pathname);Nt&&Nt.has(le.pathname)?kt={currentLocation:k.location,nextLocation:le}:V.has(le.pathname)&&(kt={currentLocation:le,nextLocation:k.location})}else if(F){let Nt=V.get(k.location.pathname);Nt?Nt.add(le.pathname):(Nt=new Set([le.pathname]),V.set(k.location.pathname,Nt)),kt={currentLocation:k.location,nextLocation:le}}Re(Tr({},he,{actionData:je,loaderData:Ze,historyAction:R,location:le,initialized:!0,navigation:H_,revalidation:"idle",restoreScrollPosition:Fi(le,he.matches||k.matches),preventScrollReset:Ge,blockers:$e}),{viewTransitionOpts:kt,flushSync:Qe===!0}),R=rn.Pop,E=!1,F=!1,H=!1,q=!1,ne=[]}async function ke(le,he){if(typeof le=="number"){e.history.go(le);return}let xe=GS(k.location,k.matches,s,b.v7_prependBasename,le,b.v7_relativeSplatPath,he==null?void 0:he.fromRouteId,he==null?void 0:he.relative),{path:Oe,submission:Ue,error:Qe}=S6(b.v7_normalizeFormMethod,!1,xe,he),ut=k.location,je=rv(k.location,Oe,he&&he.state);je=Tr({},je,e.history.encodeLocation(je));let Ze=he&&he.replace!=null?he.replace:void 0,$e=rn.Push;Ze===!0?$e=rn.Replace:Ze===!1||Ue!=null&&Ea(Ue.formMethod)&&Ue.formAction===k.location.pathname+k.location.search&&($e=rn.Replace);let Ge=he&&"preventScrollReset"in he?he.preventScrollReset===!0:void 0,kt=(he&&he.unstable_flushSync)===!0,Nt=Li({currentLocation:ut,nextLocation:je,historyAction:$e});if(Nt){sn(Nt,{state:"blocked",location:je,proceed(){sn(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),ke(le,he)},reset(){let Ut=new Map(k.blockers);Ut.set(Nt,F0),Re({blockers:Ut})}});return}return await Ye($e,je,{submission:Ue,pendingError:Qe,preventScrollReset:Ge,replace:he&&he.replace,enableViewTransition:he&&he.unstable_viewTransition,flushSync:kt})}function ze(){if(Qn(),Re({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Ye(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Ye(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function Ye(le,he,xe){A&&A.abort(),A=null,R=le,H=(xe&&xe.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(xe&&xe.preventScrollReset)===!0,F=(xe&&xe.enableViewTransition)===!0;let Oe=l||a,Ue=xe&&xe.overrideNavigation,Qe=Uc(Oe,he,s),ut=(xe&&xe.flushSync)===!0,je=bo(Qe,Oe,he.pathname);if(je.active&&je.matches&&(Qe=je.matches),!Qe){let{error:bt,notFoundMatches:dr,route:or}=fa(he.pathname);be(he,{matches:dr,loaderData:{},errors:{[or.id]:bt}},{flushSync:ut});return}if(k.initialized&&!q&&GH(k.location,he)&&!(xe&&xe.submission&&Ea(xe.submission.formMethod))){be(he,{matches:Qe},{flushSync:ut});return}A=new AbortController;let Ze=Rf(e.history,he,A.signal,xe&&xe.submission),$e;if(xe&&xe.pendingError)$e=[Zf(Qe).route.id,{type:rr.error,error:xe.pendingError}];else if(xe&&xe.submission&&Ea(xe.submission.formMethod)){let bt=await Mt(Ze,he,xe.submission,Qe,je.active,{replace:xe.replace,flushSync:ut});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[dr,or]=bt.pendingActionResult;if(wi(or)&&Uv(or.error)&&or.error.status===404){A=null,be(he,{matches:bt.matches,loaderData:{},errors:{[dr]:or.error}});return}}Qe=bt.matches||Qe,$e=bt.pendingActionResult,Ue=W_(he,xe.submission),ut=!1,je.active=!1,Ze=Rf(e.history,Ze.url,Ze.signal)}let{shortCircuited:Ge,matches:kt,loaderData:Nt,errors:Ut}=await gt(Ze,he,Qe,je.active,Ue,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,ut,$e);Ge||(A=null,be(he,Tr({matches:kt||Qe},M6($e),{loaderData:Nt,errors:Ut})))}async function Mt(le,he,xe,Oe,Ue,Qe){Qe===void 0&&(Qe={}),Qn();let ut=JH(he,xe);if(Re({navigation:ut},{flushSync:Qe.flushSync===!0}),Ue){let $e=await ni(Oe,he.pathname,le.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let{boundaryId:Ge,error:kt}=$r(he.pathname,$e);return{matches:$e.partialMatches,pendingActionResult:[Ge,{type:rr.error,error:kt}]}}else if($e.matches)Oe=$e.matches;else{let{notFoundMatches:Ge,error:kt,route:Nt}=fa(he.pathname);return{matches:Ge,pendingActionResult:[Nt.id,{type:rr.error,error:kt}]}}}let je,Ze=ag(Oe,he);if(!Ze.route.action&&!Ze.route.lazy)je={type:rr.error,error:ko(405,{method:le.method,pathname:he.pathname,routeId:Ze.route.id})};else if(je=(await Dr("action",k,le,[Ze],Oe,null))[Ze.route.id],le.signal.aborted)return{shortCircuited:!0};if(Gc(je)){let $e;return Qe&&Qe.replace!=null?$e=Qe.replace:$e=T6(je.response.headers.get("Location"),new URL(le.url),s)===k.location.pathname+k.location.search,await Jt(le,je,!0,{submission:xe,replace:$e}),{shortCircuited:!0}}if(su(je))throw ko(400,{type:"defer-action"});if(wi(je)){let $e=Zf(Oe,Ze.route.id);return(Qe&&Qe.replace)!==!0&&(R=rn.Push),{matches:Oe,pendingActionResult:[$e.route.id,je]}}return{matches:Oe,pendingActionResult:[Ze.route.id,je]}}async function gt(le,he,xe,Oe,Ue,Qe,ut,je,Ze,$e,Ge){let kt=Ue||W_(he,Qe),Nt=Qe||ut||A6(kt),Ut=!H&&(!b.v7_partialHydration||!Ze);if(Oe){if(Ut){let It=xt(Ge);Re(Tr({navigation:kt},It!==void 0?{actionData:It}:{}),{flushSync:$e})}let He=await ni(xe,he.pathname,le.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let{boundaryId:It,error:at}=$r(he.pathname,He);return{matches:He.partialMatches,loaderData:{},errors:{[It]:at}}}else if(He.matches)xe=He.matches;else{let{error:It,notFoundMatches:at,route:rt}=fa(he.pathname);return{matches:at,loaderData:{},errors:{[rt.id]:It}}}}let bt=l||a,[dr,or]=C6(e.history,k,xe,Nt,he,b.v7_partialHydration&&Ze===!0,b.v7_skipActionErrorRevalidation,q,ne,Q,ce,fe,oe,bt,s,Ge);if(Di(He=>!(xe&&xe.some(It=>It.route.id===He))||dr&&dr.some(It=>It.route.id===He)),re=++X,dr.length===0&&or.length===0){let He=da();return be(he,Tr({matches:xe,loaderData:{},errors:Ge&&wi(Ge[1])?{[Ge[0]]:Ge[1].error}:null},M6(Ge),He?{fetchers:new Map(k.fetchers)}:{}),{flushSync:$e}),{shortCircuited:!0}}if(Ut){let He={};if(!Oe){He.navigation=kt;let It=xt(Ge);It!==void 0&&(He.actionData=It)}or.length>0&&(He.fetchers=zt(or)),Re(He,{flushSync:$e})}or.forEach(He=>{W.has(He.key)&&Qr(He.key),He.controller&&W.set(He.key,He.controller)});let Fn=()=>or.forEach(He=>Qr(He.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,xe,dr,or,le);if(le.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),or.forEach(He=>W.delete(He.key));let Zn=My(Fr);if(Zn)return await Jt(le,Zn.result,!0,{replace:je}),{shortCircuited:!0};if(Zn=My(jn),Zn)return oe.add(Zn.key),await Jt(le,Zn.result,!0,{replace:je}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=k6(k,xe,dr,Fr,Ge,or,jn,J);J.forEach((He,It)=>{He.subscribe(at=>{(at||He.done)&&J.delete(It)})}),b.v7_partialHydration&&Ze&&k.errors&&Object.entries(k.errors).filter(He=>{let[It]=He;return!dr.some(at=>at.route.id===It)}).forEach(He=>{let[It,at]=He;zn=Object.assign(zn||{},{[It]:at})});let un=da(),Zr=Sn(re),At=un||Zr||or.length>0;return Tr({matches:xe,loaderData:ji,errors:zn},At?{fetchers:new Map(k.fetchers)}:{})}function xt(le){if(le&&!wi(le[1]))return{[le[0]]:le[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function zt(le){return le.forEach(he=>{let xe=k.fetchers.get(he.key),Oe=j0(void 0,xe?xe.data:void 0);k.fetchers.set(he.key,Oe)}),new Map(k.fetchers)}function Ht(le,he,xe,Oe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(le)&&Qr(le);let Ue=(Oe&&Oe.unstable_flushSync)===!0,Qe=l||a,ut=GS(k.location,k.matches,s,b.v7_prependBasename,xe,b.v7_relativeSplatPath,he,Oe==null?void 0:Oe.relative),je=Uc(Qe,ut,s),Ze=bo(je,Qe,ut);if(Ze.active&&Ze.matches&&(je=Ze.matches),!je){nr(le,he,ko(404,{pathname:ut}),{flushSync:Ue});return}let{path:$e,submission:Ge,error:kt}=S6(b.v7_normalizeFormMethod,!0,ut,Oe);if(kt){nr(le,he,kt,{flushSync:Ue});return}let Nt=ag(je,$e);if(E=(Oe&&Oe.preventScrollReset)===!0,Ge&&Ea(Ge.formMethod)){mt(le,he,$e,Nt,je,Ze.active,Ue,Ge);return}fe.set(le,{routeId:he,path:$e}),Ot(le,he,$e,Nt,je,Ze.active,Ue,Ge)}async function mt(le,he,xe,Oe,Ue,Qe,ut,je){Qn(),fe.delete(le);function Ze(rt){if(!rt.route.action&&!rt.route.lazy){let St=ko(405,{method:je.formMethod,pathname:xe,routeId:he});return nr(le,he,St,{flushSync:ut}),!0}return!1}if(!Qe&&Ze(Oe))return;let $e=k.fetchers.get(le);Ln(le,eW(je,$e),{flushSync:ut});let Ge=new AbortController,kt=Rf(e.history,xe,Ge.signal,je);if(Qe){let rt=await ni(Ue,xe,kt.signal);if(rt.type==="aborted")return;if(rt.type==="error"){let{error:St}=$r(xe,rt);nr(le,he,St,{flushSync:ut});return}else if(rt.matches){if(Ue=rt.matches,Oe=ag(Ue,xe),Ze(Oe))return}else{nr(le,he,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(le,Ge);let Nt=X,bt=(await Dr("action",k,kt,[Oe],Ue,le))[Oe.route.id];if(kt.signal.aborted){W.get(le)===Ge&&W.delete(le);return}if(b.v7_fetcherPersist&&ce.has(le)){if(Gc(bt)||wi(bt)){Ln(le,Ks(void 0));return}}else{if(Gc(bt))if(W.delete(le),re>Nt){Ln(le,Ks(void 0));return}else return oe.add(le),Ln(le,j0(je)),Jt(kt,bt,!1,{fetcherSubmission:je});if(wi(bt)){nr(le,he,bt.error);return}}if(su(bt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,or=Rf(e.history,dr,Ge.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Pt(Fr,"Didn't find any matches after fetcher action");let jn=++X;Z.set(le,jn);let Zn=j0(je,bt.data);k.fetchers.set(le,Zn);let[ji,zn]=C6(e.history,k,Fr,je,dr,!1,b.v7_skipActionErrorRevalidation,q,ne,Q,ce,fe,oe,Fn,s,[Oe.route.id,bt]);zn.filter(rt=>rt.key!==le).forEach(rt=>{let St=rt.key,cn=k.fetchers.get(St),wr=j0(void 0,cn?cn.data:void 0);k.fetchers.set(St,wr),W.has(St)&&Qr(St),rt.controller&&W.set(St,rt.controller)}),Re({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(rt=>Qr(rt.key));Ge.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:At}=await ln(k,Fr,ji,zn,or);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",un),Z.delete(le),W.delete(le),zn.forEach(rt=>W.delete(rt.key));let He=My(Zr);if(He)return Jt(or,He.result,!1);if(He=My(At),He)return oe.add(He.key),Jt(or,He.result,!1);let{loaderData:It,errors:at}=k6(k,Fr,ji,Zr,void 0,zn,At,J);if(k.fetchers.has(le)){let rt=Ks(bt.data);k.fetchers.set(le,rt)}Sn(jn),k.navigation.state==="loading"&&jn>re?(Pt(R,"Expected pending action"),A&&A.abort(),be(k.navigation.location,{matches:Fr,loaderData:It,errors:at,fetchers:new Map(k.fetchers)})):(Re({errors:at,loaderData:E6(k.loaderData,It,Fr,at),fetchers:new Map(k.fetchers)}),q=!1)}async function Ot(le,he,xe,Oe,Ue,Qe,ut,je){let Ze=k.fetchers.get(le);Ln(le,j0(je,Ze?Ze.data:void 0),{flushSync:ut});let $e=new AbortController,Ge=Rf(e.history,xe,$e.signal);if(Qe){let bt=await ni(Ue,xe,Ge.signal);if(bt.type==="aborted")return;if(bt.type==="error"){let{error:dr}=$r(xe,bt);nr(le,he,dr,{flushSync:ut});return}else if(bt.matches)Ue=bt.matches,Oe=ag(Ue,xe);else{nr(le,he,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(le,$e);let kt=X,Ut=(await Dr("loader",k,Ge,[Oe],Ue,le))[Oe.route.id];if(su(Ut)&&(Ut=await kP(Ut,Ge.signal,!0)||Ut),W.get(le)===$e&&W.delete(le),!Ge.signal.aborted){if(ce.has(le)){Ln(le,Ks(void 0));return}if(Gc(Ut))if(re>kt){Ln(le,Ks(void 0));return}else{oe.add(le),await Jt(Ge,Ut,!1);return}if(wi(Ut)){nr(le,he,Ut.error);return}Pt(!su(Ut),"Unhandled fetcher deferred data"),Ln(le,Ks(Ut.data))}}async function Jt(le,he,xe,Oe){let{submission:Ue,fetcherSubmission:Qe,replace:ut}=Oe===void 0?{}:Oe;he.response.headers.has("X-Remix-Revalidate")&&(q=!0);let je=he.response.headers.get("Location");Pt(je,"Expected a Location header on the redirect Response"),je=T6(je,new URL(le.url),s);let Ze=rv(k.location,je,{_isRedirect:!0});if(r){let bt=!1;if(he.response.headers.has("X-Remix-Reload-Document"))bt=!0;else if(OP.test(je)){const dr=e.history.createURL(je);bt=dr.origin!==t.location.origin||sh(dr.pathname,s)==null}if(bt){ut?t.location.replace(je):t.location.assign(je);return}}A=null;let $e=ut===!0||he.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:Ge,formAction:kt,formEncType:Nt}=k.navigation;!Ue&&!Qe&&Ge&&kt&&Nt&&(Ue=A6(k.navigation));let Ut=Ue||Qe;if(RH.has(he.response.status)&&Ut&&Ea(Ut.formMethod))await Ye($e,Ze,{submission:Tr({},Ut,{formAction:je}),preventScrollReset:E,enableViewTransition:xe?F:void 0});else{let bt=W_(Ze,Ue);await Ye($e,Ze,{overrideNavigation:bt,fetcherSubmission:Qe,preventScrollReset:E,enableViewTransition:xe?F:void 0})}}async function Dr(le,he,xe,Oe,Ue,Qe){let ut,je={};try{ut=await BH(d,le,he,xe,Oe,Ue,Qe,i,o)}catch(Ze){return Oe.forEach($e=>{je[$e.route.id]={type:rr.error,error:Ze}}),je}for(let[Ze,$e]of Object.entries(ut))if(qH($e)){let Ge=$e.result;je[Ze]={type:rr.redirect,response:WH(Ge,xe,Ze,Ue,s,b.v7_relativeSplatPath)}}else je[Ze]=await HH($e);return je}async function ln(le,he,xe,Oe,Ue){let Qe=le.matches,ut=Dr("loader",le,Ue,xe,he,null),je=Promise.all(Oe.map(async Ge=>{if(Ge.matches&&Ge.match&&Ge.controller){let Nt=(await Dr("loader",le,Rf(e.history,Ge.path,Ge.controller.signal),[Ge.match],Ge.matches,Ge.key))[Ge.match.route.id];return{[Ge.key]:Nt}}else return Promise.resolve({[Ge.key]:{type:rr.error,error:ko(404,{pathname:Ge.path})}})})),Ze=await ut,$e=(await je).reduce((Ge,kt)=>Object.assign(Ge,kt),{});return await Promise.all([QH(he,Ze,Ue.signal,Qe,le.loaderData),ZH(he,$e,Oe)]),{loaderResults:Ze,fetcherResults:$e}}function Qn(){q=!0,ne.push(...Di()),fe.forEach((le,he)=>{W.has(he)&&(Q.add(he),Qr(he))})}function Ln(le,he,xe){xe===void 0&&(xe={}),k.fetchers.set(le,he),Re({fetchers:new Map(k.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function nr(le,he,xe,Oe){Oe===void 0&&(Oe={});let Ue=Zf(k.matches,he);Yt(le),Re({errors:{[Ue.route.id]:xe},fetchers:new Map(k.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function mo(le){return b.v7_fetcherPersist&&(ge.set(le,(ge.get(le)||0)+1),ce.has(le)&&ce.delete(le)),k.fetchers.get(le)||NH}function Yt(le){let he=k.fetchers.get(le);W.has(le)&&!(he&&he.state==="loading"&&Z.has(le))&&Qr(le),fe.delete(le),Z.delete(le),oe.delete(le),ce.delete(le),Q.delete(le),k.fetchers.delete(le)}function yo(le){if(b.v7_fetcherPersist){let he=(ge.get(le)||0)-1;he<=0?(ge.delete(le),ce.add(le)):ge.set(le,he)}else Yt(le);Re({fetchers:new Map(k.fetchers)})}function Qr(le){let he=W.get(le);Pt(he,"Expected fetch controller: "+le),he.abort(),W.delete(le)}function Cl(le){for(let he of le){let xe=mo(he),Oe=Ks(xe.data);k.fetchers.set(he,Oe)}}function da(){let le=[],he=!1;for(let xe of oe){let Oe=k.fetchers.get(xe);Pt(Oe,"Expected fetcher: "+xe),Oe.state==="loading"&&(oe.delete(xe),le.push(xe),he=!0)}return Cl(le),he}function Sn(le){let he=[];for(let[xe,Oe]of Z)if(Oe0}function Pl(le,he){let xe=k.blockers.get(le)||F0;return ie.get(le)!==he&&ie.set(le,he),xe}function Ka(le){k.blockers.delete(le),ie.delete(le)}function sn(le,he){let xe=k.blockers.get(le)||F0;Pt(xe.state==="unblocked"&&he.state==="blocked"||xe.state==="blocked"&&he.state==="blocked"||xe.state==="blocked"&&he.state==="proceeding"||xe.state==="blocked"&&he.state==="unblocked"||xe.state==="proceeding"&&he.state==="unblocked","Invalid blocker state transition: "+xe.state+" -> "+he.state);let Oe=new Map(k.blockers);Oe.set(le,he),Re({blockers:Oe})}function Li(le){let{currentLocation:he,nextLocation:xe,historyAction:Oe}=le;if(ie.size===0)return;ie.size>1&&jp(!1,"A router only supports one blocker at a time");let Ue=Array.from(ie.entries()),[Qe,ut]=Ue[Ue.length-1],je=k.blockers.get(Qe);if(!(je&&je.state==="proceeding")&&ut({currentLocation:he,nextLocation:xe,historyAction:Oe}))return Qe}function fa(le){let he=ko(404,{pathname:le}),xe=l||a,{matches:Oe,route:Ue}=R6(xe);return Di(),{notFoundMatches:Oe,route:Ue,error:he}}function $r(le,he){return{boundaryId:Zf(he.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:le,message:he.error!=null&&"message"in he.error?he.error:String(he.error)})}}function Di(le){let he=[];return J.forEach((xe,Oe)=>{(!le||le(Oe))&&(xe.cancel(),he.push(Oe),J.delete(Oe))}),he}function Ts(le,he,xe){if(C=le,p=he,h=xe||null,!c&&k.navigation===H_){c=!0;let Oe=Fi(k.location,k.matches);Oe!=null&&Re({restoreScrollPosition:Oe})}return()=>{C=null,p=null,h=null}}function pa(le,he){return h&&h(le,he.map(Oe=>uH(Oe,k.loaderData)))||le.key}function Dn(le,he){if(C&&p){let xe=pa(le,he);C[xe]=p()}}function Fi(le,he){if(C){let xe=pa(le,he),Oe=C[xe];if(typeof Oe=="number")return Oe}return null}function bo(le,he,xe){if(v){if(y.has(xe))return{active:!1,matches:le};if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:Cb(he,xe,s,!0)}}else return{active:!0,matches:Cb(he,xe,s,!0)||[]}}return{active:!1,matches:null}}async function ni(le,he,xe){let Oe=le;for(;;){let Ue=l==null,Qe=l||a;try{await jH(v,he,Oe,Qe,i,o,ue,xe)}catch(Ze){return{type:"error",error:Ze,partialMatches:Oe}}finally{Ue&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let ut=Uc(Qe,he,s);if(ut)return ha(he,y),{type:"success",matches:ut};let je=Cb(Qe,he,s,!0);if(!je||Oe.length===je.length&&Oe.every((Ze,$e)=>Ze.route.id===je[$e].route.id))return ha(he,y),{type:"success",matches:null};Oe=je}}function ha(le,he){if(he.size>=P){let xe=he.values().next().value;he.delete(xe)}he.add(le)}function Os(le){i={},l=nv(le,o,void 0,i)}function ga(le,he){let xe=l==null;VR(le,he,l||a,i,o),xe&&(a=[...a],Re({}))}return T={get basename(){return s},get future(){return b},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:Le,enableScrollRestoration:Ts,navigate:ke,fetch:Ht,revalidate:ze,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:mo,deleteFetcher:yo,dispose:Me,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Os},T}function LH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function GS(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let b of t)if(s.push(b),b.route.id===a){d=b;break}}else s=t,d=t[t.length-1];let v=TP(o||".",PP(s,i),sh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!EP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function S6(e,t,r,n){if(!n||!LH(n))return{path:r};if(n.formMethod&&!XH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=BR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,P)=>{let[y,C]=P;return""+w+y+"="+C+` -`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Pt(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=KS(n.formData),d=n.formData;else if(n.body instanceof FormData)s=KS(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=O6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=O6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let b=zu(r);return t&&b.search&&EP(b.search)&&s.append("index",""),b.search="?"+s,{path:ad(b),submission:v}}function DH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function C6(e,t,r,n,o,i,a,l,s,d,v,b,S,w,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,h=e.createURL(t.location),p=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,g=c?DH(r,c):r,m=y?y[1].statusCode:void 0,_=a&&m&&m>=400,T=g.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(FH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return P6(R,Tr({currentUrl:h,currentParams:F.params,nextUrl:p,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||zR(F,V)}))}),k=[];return b.forEach((R,E)=>{if(i||!r.some(H=>H.route.id===R.routeId)||v.has(E))return;let A=Uc(w,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ag(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=P6(V,Tr({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function FH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function zR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function P6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function jH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,b)=>{l.aborted||VR(v,b,n,o,i)}}),a.set(s,d)),d&&KH(d)&&await d}finally{a.delete(s)}}function VR(e,t,r,n,o){if(e){var i;let a=n[e];Pt(a,"No route found to patch children into: routeId = "+e);let l=nv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=nv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function zH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Pt(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";jp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!lH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function VH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function BH(e,t,r,n,o,i,a,l,s,d){let v=i.map(w=>w.route.lazy?zH(w.route,s,l):void 0),b=i.map((w,P)=>{let y=v[P],C=o.some(p=>p.route.id===w.route.id);return Tr({},w,{shouldLoad:C,resolve:async p=>(p&&n.method==="GET"&&(w.route.lazy||w.route.loader)&&(C=!0),C?UH(t,n,w,y,p,d):Promise.resolve({type:rr.data,result:void 0}))})}),S=await e({matches:b,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function UH(e,t,r,n,o,i){let a,l,s=d=>{let v,b=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),w=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([w,b])};try{let d=r.route[e];if(n)if(d){let v,[b]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=b}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),b=v.pathname+v.search;throw ko(405,{method:t.method,pathname:b,routeId:r.route.id})}else return{type:rr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),b=v.pathname+v.search;throw ko(404,{pathname:b})}Pt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:rr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function HH(e){let{result:t,type:r}=e;if(UR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:rr.error,error:v}}return r===rr.error?{type:rr.error,error:new T1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:rr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===rr.error){if(N6(t)){var n;if(t.data instanceof Error){var o;return{type:rr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new T1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:Uv(t)?t.status:void 0}}if(YH(t)){var i,a;return{type:rr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(N6(t)){var l,s;return{type:rr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function WH(e,t,r,n,o,i){let a=e.headers.get("Location");if(Pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!OP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=GS(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function T6(e,t,r){if(OP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=sh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(BR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=KS(n.formData):i.body=n.formData}return new Request(o,i)}function KS(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function O6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function $H(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let S=b.route.id,w=t[S];if(Pt(!Gc(w),"Cannot handle redirect results in processLoaderData"),wi(w)){let P=w.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Zf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Uv(w.error)?w.error.status:500),w.headers&&(d[S]=w.headers)}else su(w)?(n.set(S,w.deferredData),i[S]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers)):(i[S]=w.data,w.statusCode&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function k6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=$H(t,n,o,l);return i.forEach(v=>{let{key:b,match:S,controller:w}=v,P=a[b];if(Pt(P,"Did not find corresponding fetcher result"),!(w&&w.signal.aborted))if(wi(P)){let y=Zf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(b)}else if(Gc(P))Pt(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Pt(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(b,y)}}),{loaderData:s,errors:d}}function E6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function M6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Zf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function R6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new T1(e||500,l,new Error(s),!0)}function My(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function BR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function GH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function KH(e){return typeof e=="object"&&e!=null&&"then"in e}function qH(e){return UR(e.result)&&MH.has(e.result.status)}function su(e){return e.type===rr.deferred}function wi(e){return e.type===rr.error}function Gc(e){return(e&&e.type)===rr.redirect}function N6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function YH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function UR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XH(e){return EH.has(e.toLowerCase())}function Ea(e){return OH.has(e.toLowerCase())}async function QH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),b=v!=null&&!zR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&b&&await kP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function ZH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Pt(a,"Expected an AbortController for revalidating fetcher deferred result"),await kP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function kP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function EP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ag(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&EP(r||""))return e[e.length-1];let n=DR(e);return n[n.length-1]}function A6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function W_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function JH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function j0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eW(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function tW(e,t){try{let r=e.sessionStorage.getItem(jR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function rW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(jR,JSON.stringify(r))}catch(n){jp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aH(){return Math.random().toString(36).substr(2,8)}function w6(e,t){return{usr:e.state,key:e.key,idx:t}}function rv(e,t,r,n){return r===void 0&&(r=null),Tr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zu(t):t,{state:r,key:t&&t.key||n||aH()})}function ad(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function zu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function lH(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,l=rn.Pop,s=null,d=v();d==null&&(d=0,a.replaceState(Tr({},a.state,{idx:d}),""));function v(){return(a.state||{idx:null}).idx}function b(){l=rn.Pop;let C=v(),h=C==null?null:C-d;d=C,s&&s({action:l,location:y.location,delta:h})}function S(C,h){l=rn.Push;let p=rv(y.location,C,h);d=v()+1;let c=w6(p,d),g=y.createHref(p);try{a.pushState(c,"",g)}catch(m){if(m instanceof DOMException&&m.name==="DataCloneError")throw m;o.location.assign(g)}i&&s&&s({action:l,location:y.location,delta:1})}function w(C,h){l=rn.Replace;let p=rv(y.location,C,h);d=v();let c=w6(p,d),g=y.createHref(p);a.replaceState(c,"",g),i&&s&&s({action:l,location:y.location,delta:0})}function P(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof C=="string"?C:ad(C);return p=p.replace(/ $/,"%20"),Pt(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return l},get location(){return e(o,a)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(b6,b),s=C,()=>{o.removeEventListener(b6,b),s=null}},createHref(C){return t(o,C)},createURL:P,encodeLocation(C){let h=P(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:S,replace:w,go(C){return a.go(C)}};return y}var rr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rr||(rr={}));const sH=new Set(["lazy","caseSensitive","path","id","index","children"]);function uH(e){return e.index===!0}function nv(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(Pt(o.index!==!0||!o.children,"Cannot specify children on an index route"),Pt(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),uH(o)){let s=Tr({},o,t(o),{id:l});return n[l]=s,s}else{let s=Tr({},o,t(o),{id:l,children:void 0});return n[l]=s,o.children&&(s.children=nv(o.children,t,a,n)),s}})}function Uc(e,t,r){return r===void 0&&(r="/"),Cb(e,t,r,!1)}function Cb(e,t,r,n){let o=typeof t=="string"?zu(t):t,i=sh(o.pathname||"/",r);if(i==null)return null;let a=LR(e);dH(a);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Pt(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let d=ts([n,s.relativePath]),v=r.concat(s);i.children&&i.children.length>0&&(Pt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),LR(i.children,t,v,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:yH(d,i.index),routesMeta:v})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of DR(i.path))o(i,a,s)}),t}function DR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=DR(n.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function dH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:bH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const fH=/^:[\w-]+$/,pH=3,hH=2,gH=1,vH=10,mH=-2,_6=e=>e==="*";function yH(e,t){let r=e.split("/"),n=r.length;return r.some(_6)&&(n+=mH),t&&(n+=hH),r.filter(o=>!_6(o)).reduce((o,i)=>o+(fH.test(i)?pH:i===""?gH:vH),n)}function bH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function wH(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:S,isOptional:w}=v;if(S==="*"){let y=l[b]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const P=l[b];return w&&!P?d[S]=void 0:d[S]=(P||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function _H(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),jp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function xH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function sh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function SH(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?zu(e):e;return{pathname:r?r.startsWith("/")?r:CH(r,t):t,search:TH(n),hash:OH(o)}}function CH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function U_(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function FR(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function PP(e,t){let r=FR(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function TP(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=zu(e):(o=Tr({},e),Pt(!o.pathname||!o.pathname.includes("?"),U_("?","pathname","search",o)),Pt(!o.pathname||!o.pathname.includes("#"),U_("#","pathname","hash",o)),Pt(!o.search||!o.search.includes("#"),U_("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=r;else{let b=t.length-1;if(!n&&a.startsWith("..")){let S=a.split("/");for(;S[0]==="..";)S.shift(),b-=1;o.pathname=S.join("/")}l=b>=0?t[b]:"/"}let s=SH(o,l),d=a&&a!=="/"&&a.endsWith("/"),v=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(d||v)&&(s.pathname+="/"),s}const ts=e=>e.join("/").replace(/\/\/+/g,"/"),PH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,OH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class T1{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Uv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jR=["post","put","patch","delete"],kH=new Set(jR),EH=["get",...jR],MH=new Set(EH),RH=new Set([301,302,303,307,308]),NH=new Set([307,308]),H_={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},AH={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},F0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},OP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,IH=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zR="remix-router-transitions";function LH(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Pt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;o=he=>({hasErrorBoundary:le(he)})}else o=IH;let i={},a=nv(e.routes,o,void 0,i),l,s=e.basename||"/",d=e.unstable_dataStrategy||BH,v=e.unstable_patchRoutesOnNavigation,b=Tr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,w=new Set,P=1e3,y=new Set,C=null,h=null,p=null,c=e.hydrationData!=null,g=Uc(a,e.history.location,s),m=null;if(g==null&&!v){let le=ko(404,{pathname:e.history.location.pathname}),{matches:he,route:xe}=R6(a);g=he,m={[xe.id]:le}}g&&!e.hydrationData&&bo(g,a,e.history.location.pathname).active&&(g=null);let _;if(g)if(g.some(le=>le.route.lazy))_=!1;else if(!g.some(le=>le.route.loader))_=!0;else if(b.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,he=e.hydrationData?e.hydrationData.errors:null,xe=Oe=>Oe.route.loader?typeof Oe.route.loader=="function"&&Oe.route.loader.hydrate===!0?!1:le&&le[Oe.route.id]!==void 0||he&&he[Oe.route.id]!==void 0:!0;if(he){let Oe=g.findIndex(Ue=>he[Ue.route.id]!==void 0);_=g.slice(0,Oe+1).every(xe)}else _=g.every(xe)}else _=e.hydrationData!=null;else if(_=!1,g=[],b.v7_partialHydration){let le=bo(null,a,e.history.location.pathname);le.active&&le.matches&&(g=le.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:g,initialized:_,navigation:H_,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},R=rn.Pop,E=!1,A,F=!1,V=new Map,B=null,H=!1,q=!1,ne=[],Q=new Set,W=new Map,X=0,re=-1,Z=new Map,oe=new Set,fe=new Map,ge=new Map,ce=new Set,J=new Map,ie=new Map,ue=new Map,Se;function Ce(){if(S=e.history.listen(le=>{let{action:he,location:xe,delta:Oe}=le;if(Se){Se(),Se=void 0;return}jp(ie.size===0||Oe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=Li({currentLocation:k.location,nextLocation:xe,historyAction:he});if(Ue&&Oe!=null){let Qe=new Promise(ut=>{Se=ut});e.history.go(Oe*-1),sn(Ue,{state:"blocked",location:xe,proceed(){sn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Qe.then(()=>e.history.go(Oe))},reset(){let ut=new Map(k.blockers);ut.set(Ue,F0),Re({blockers:ut})}});return}return Ye(he,xe)}),r){rW(t,V);let le=()=>nW(t,V);t.addEventListener("pagehide",le),B=()=>t.removeEventListener("pagehide",le)}return k.initialized||Ye(rn.Pop,k.location,{initialHydration:!0}),T}function Me(){S&&S(),B&&B(),w.clear(),A&&A.abort(),k.fetchers.forEach((le,he)=>Yt(he)),k.blockers.forEach((le,he)=>Ka(he))}function Le(le){return w.add(le),()=>w.delete(le)}function Re(le,he){he===void 0&&(he={}),k=Tr({},k,le);let xe=[],Oe=[];b.v7_fetcherPersist&&k.fetchers.forEach((Ue,Qe)=>{Ue.state==="idle"&&(ce.has(Qe)?Oe.push(Qe):xe.push(Qe))}),[...w].forEach(Ue=>Ue(k,{deletedFetchers:Oe,unstable_viewTransitionOpts:he.viewTransitionOpts,unstable_flushSync:he.flushSync===!0})),b.v7_fetcherPersist&&(xe.forEach(Ue=>k.fetchers.delete(Ue)),Oe.forEach(Ue=>Yt(Ue)))}function be(le,he,xe){var Oe,Ue;let{flushSync:Qe}=xe===void 0?{}:xe,ut=k.actionData!=null&&k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Oe=le.state)==null?void 0:Oe._isRedirect)!==!0,je;he.actionData?Object.keys(he.actionData).length>0?je=he.actionData:je=null:ut?je=k.actionData:je=null;let Ze=he.loaderData?E6(k.loaderData,he.loaderData,he.matches||[],he.errors):k.loaderData,$e=k.blockers;$e.size>0&&($e=new Map($e),$e.forEach((Nt,Ut)=>$e.set(Ut,F0)));let Ge=E===!0||k.navigation.formMethod!=null&&Ea(k.navigation.formMethod)&&((Ue=le.state)==null?void 0:Ue._isRedirect)!==!0;l&&(a=l,l=void 0),H||R===rn.Pop||(R===rn.Push?e.history.push(le,le.state):R===rn.Replace&&e.history.replace(le,le.state));let kt;if(R===rn.Pop){let Nt=V.get(k.location.pathname);Nt&&Nt.has(le.pathname)?kt={currentLocation:k.location,nextLocation:le}:V.has(le.pathname)&&(kt={currentLocation:le,nextLocation:k.location})}else if(F){let Nt=V.get(k.location.pathname);Nt?Nt.add(le.pathname):(Nt=new Set([le.pathname]),V.set(k.location.pathname,Nt)),kt={currentLocation:k.location,nextLocation:le}}Re(Tr({},he,{actionData:je,loaderData:Ze,historyAction:R,location:le,initialized:!0,navigation:H_,revalidation:"idle",restoreScrollPosition:Fi(le,he.matches||k.matches),preventScrollReset:Ge,blockers:$e}),{viewTransitionOpts:kt,flushSync:Qe===!0}),R=rn.Pop,E=!1,F=!1,H=!1,q=!1,ne=[]}async function ke(le,he){if(typeof le=="number"){e.history.go(le);return}let xe=GS(k.location,k.matches,s,b.v7_prependBasename,le,b.v7_relativeSplatPath,he==null?void 0:he.fromRouteId,he==null?void 0:he.relative),{path:Oe,submission:Ue,error:Qe}=S6(b.v7_normalizeFormMethod,!1,xe,he),ut=k.location,je=rv(k.location,Oe,he&&he.state);je=Tr({},je,e.history.encodeLocation(je));let Ze=he&&he.replace!=null?he.replace:void 0,$e=rn.Push;Ze===!0?$e=rn.Replace:Ze===!1||Ue!=null&&Ea(Ue.formMethod)&&Ue.formAction===k.location.pathname+k.location.search&&($e=rn.Replace);let Ge=he&&"preventScrollReset"in he?he.preventScrollReset===!0:void 0,kt=(he&&he.unstable_flushSync)===!0,Nt=Li({currentLocation:ut,nextLocation:je,historyAction:$e});if(Nt){sn(Nt,{state:"blocked",location:je,proceed(){sn(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),ke(le,he)},reset(){let Ut=new Map(k.blockers);Ut.set(Nt,F0),Re({blockers:Ut})}});return}return await Ye($e,je,{submission:Ue,pendingError:Qe,preventScrollReset:Ge,replace:he&&he.replace,enableViewTransition:he&&he.unstable_viewTransition,flushSync:kt})}function ze(){if(Qn(),Re({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Ye(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Ye(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:F===!0})}}async function Ye(le,he,xe){A&&A.abort(),A=null,R=le,H=(xe&&xe.startUninterruptedRevalidation)===!0,Dn(k.location,k.matches),E=(xe&&xe.preventScrollReset)===!0,F=(xe&&xe.enableViewTransition)===!0;let Oe=l||a,Ue=xe&&xe.overrideNavigation,Qe=Uc(Oe,he,s),ut=(xe&&xe.flushSync)===!0,je=bo(Qe,Oe,he.pathname);if(je.active&&je.matches&&(Qe=je.matches),!Qe){let{error:bt,notFoundMatches:dr,route:or}=fa(he.pathname);be(he,{matches:dr,loaderData:{},errors:{[or.id]:bt}},{flushSync:ut});return}if(k.initialized&&!q&&KH(k.location,he)&&!(xe&&xe.submission&&Ea(xe.submission.formMethod))){be(he,{matches:Qe},{flushSync:ut});return}A=new AbortController;let Ze=Rf(e.history,he,A.signal,xe&&xe.submission),$e;if(xe&&xe.pendingError)$e=[Zf(Qe).route.id,{type:rr.error,error:xe.pendingError}];else if(xe&&xe.submission&&Ea(xe.submission.formMethod)){let bt=await Mt(Ze,he,xe.submission,Qe,je.active,{replace:xe.replace,flushSync:ut});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[dr,or]=bt.pendingActionResult;if(wi(or)&&Uv(or.error)&&or.error.status===404){A=null,be(he,{matches:bt.matches,loaderData:{},errors:{[dr]:or.error}});return}}Qe=bt.matches||Qe,$e=bt.pendingActionResult,Ue=W_(he,xe.submission),ut=!1,je.active=!1,Ze=Rf(e.history,Ze.url,Ze.signal)}let{shortCircuited:Ge,matches:kt,loaderData:Nt,errors:Ut}=await gt(Ze,he,Qe,je.active,Ue,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,ut,$e);Ge||(A=null,be(he,Tr({matches:kt||Qe},M6($e),{loaderData:Nt,errors:Ut})))}async function Mt(le,he,xe,Oe,Ue,Qe){Qe===void 0&&(Qe={}),Qn();let ut=eW(he,xe);if(Re({navigation:ut},{flushSync:Qe.flushSync===!0}),Ue){let $e=await ni(Oe,he.pathname,le.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let{boundaryId:Ge,error:kt}=$r(he.pathname,$e);return{matches:$e.partialMatches,pendingActionResult:[Ge,{type:rr.error,error:kt}]}}else if($e.matches)Oe=$e.matches;else{let{notFoundMatches:Ge,error:kt,route:Nt}=fa(he.pathname);return{matches:Ge,pendingActionResult:[Nt.id,{type:rr.error,error:kt}]}}}let je,Ze=ag(Oe,he);if(!Ze.route.action&&!Ze.route.lazy)je={type:rr.error,error:ko(405,{method:le.method,pathname:he.pathname,routeId:Ze.route.id})};else if(je=(await Dr("action",k,le,[Ze],Oe,null))[Ze.route.id],le.signal.aborted)return{shortCircuited:!0};if(Gc(je)){let $e;return Qe&&Qe.replace!=null?$e=Qe.replace:$e=T6(je.response.headers.get("Location"),new URL(le.url),s)===k.location.pathname+k.location.search,await Jt(le,je,!0,{submission:xe,replace:$e}),{shortCircuited:!0}}if(su(je))throw ko(400,{type:"defer-action"});if(wi(je)){let $e=Zf(Oe,Ze.route.id);return(Qe&&Qe.replace)!==!0&&(R=rn.Push),{matches:Oe,pendingActionResult:[$e.route.id,je]}}return{matches:Oe,pendingActionResult:[Ze.route.id,je]}}async function gt(le,he,xe,Oe,Ue,Qe,ut,je,Ze,$e,Ge){let kt=Ue||W_(he,Qe),Nt=Qe||ut||A6(kt),Ut=!H&&(!b.v7_partialHydration||!Ze);if(Oe){if(Ut){let It=xt(Ge);Re(Tr({navigation:kt},It!==void 0?{actionData:It}:{}),{flushSync:$e})}let He=await ni(xe,he.pathname,le.signal);if(He.type==="aborted")return{shortCircuited:!0};if(He.type==="error"){let{boundaryId:It,error:at}=$r(he.pathname,He);return{matches:He.partialMatches,loaderData:{},errors:{[It]:at}}}else if(He.matches)xe=He.matches;else{let{error:It,notFoundMatches:at,route:rt}=fa(he.pathname);return{matches:at,loaderData:{},errors:{[rt.id]:It}}}}let bt=l||a,[dr,or]=C6(e.history,k,xe,Nt,he,b.v7_partialHydration&&Ze===!0,b.v7_skipActionErrorRevalidation,q,ne,Q,ce,fe,oe,bt,s,Ge);if(Di(He=>!(xe&&xe.some(It=>It.route.id===He))||dr&&dr.some(It=>It.route.id===He)),re=++X,dr.length===0&&or.length===0){let He=da();return be(he,Tr({matches:xe,loaderData:{},errors:Ge&&wi(Ge[1])?{[Ge[0]]:Ge[1].error}:null},M6(Ge),He?{fetchers:new Map(k.fetchers)}:{}),{flushSync:$e}),{shortCircuited:!0}}if(Ut){let He={};if(!Oe){He.navigation=kt;let It=xt(Ge);It!==void 0&&(He.actionData=It)}or.length>0&&(He.fetchers=zt(or)),Re(He,{flushSync:$e})}or.forEach(He=>{W.has(He.key)&&Qr(He.key),He.controller&&W.set(He.key,He.controller)});let Fn=()=>or.forEach(He=>Qr(He.key));A&&A.signal.addEventListener("abort",Fn);let{loaderResults:Fr,fetcherResults:jn}=await ln(k,xe,dr,or,le);if(le.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Fn),or.forEach(He=>W.delete(He.key));let Zn=My(Fr);if(Zn)return await Jt(le,Zn.result,!0,{replace:je}),{shortCircuited:!0};if(Zn=My(jn),Zn)return oe.add(Zn.key),await Jt(le,Zn.result,!0,{replace:je}),{shortCircuited:!0};let{loaderData:ji,errors:zn}=k6(k,xe,dr,Fr,Ge,or,jn,J);J.forEach((He,It)=>{He.subscribe(at=>{(at||He.done)&&J.delete(It)})}),b.v7_partialHydration&&Ze&&k.errors&&Object.entries(k.errors).filter(He=>{let[It]=He;return!dr.some(at=>at.route.id===It)}).forEach(He=>{let[It,at]=He;zn=Object.assign(zn||{},{[It]:at})});let un=da(),Zr=Sn(re),At=un||Zr||or.length>0;return Tr({matches:xe,loaderData:ji,errors:zn},At?{fetchers:new Map(k.fetchers)}:{})}function xt(le){if(le&&!wi(le[1]))return{[le[0]]:le[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function zt(le){return le.forEach(he=>{let xe=k.fetchers.get(he.key),Oe=j0(void 0,xe?xe.data:void 0);k.fetchers.set(he.key,Oe)}),new Map(k.fetchers)}function Ht(le,he,xe,Oe){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(le)&&Qr(le);let Ue=(Oe&&Oe.unstable_flushSync)===!0,Qe=l||a,ut=GS(k.location,k.matches,s,b.v7_prependBasename,xe,b.v7_relativeSplatPath,he,Oe==null?void 0:Oe.relative),je=Uc(Qe,ut,s),Ze=bo(je,Qe,ut);if(Ze.active&&Ze.matches&&(je=Ze.matches),!je){nr(le,he,ko(404,{pathname:ut}),{flushSync:Ue});return}let{path:$e,submission:Ge,error:kt}=S6(b.v7_normalizeFormMethod,!0,ut,Oe);if(kt){nr(le,he,kt,{flushSync:Ue});return}let Nt=ag(je,$e);if(E=(Oe&&Oe.preventScrollReset)===!0,Ge&&Ea(Ge.formMethod)){mt(le,he,$e,Nt,je,Ze.active,Ue,Ge);return}fe.set(le,{routeId:he,path:$e}),Ot(le,he,$e,Nt,je,Ze.active,Ue,Ge)}async function mt(le,he,xe,Oe,Ue,Qe,ut,je){Qn(),fe.delete(le);function Ze(rt){if(!rt.route.action&&!rt.route.lazy){let St=ko(405,{method:je.formMethod,pathname:xe,routeId:he});return nr(le,he,St,{flushSync:ut}),!0}return!1}if(!Qe&&Ze(Oe))return;let $e=k.fetchers.get(le);Ln(le,tW(je,$e),{flushSync:ut});let Ge=new AbortController,kt=Rf(e.history,xe,Ge.signal,je);if(Qe){let rt=await ni(Ue,xe,kt.signal);if(rt.type==="aborted")return;if(rt.type==="error"){let{error:St}=$r(xe,rt);nr(le,he,St,{flushSync:ut});return}else if(rt.matches){if(Ue=rt.matches,Oe=ag(Ue,xe),Ze(Oe))return}else{nr(le,he,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(le,Ge);let Nt=X,bt=(await Dr("action",k,kt,[Oe],Ue,le))[Oe.route.id];if(kt.signal.aborted){W.get(le)===Ge&&W.delete(le);return}if(b.v7_fetcherPersist&&ce.has(le)){if(Gc(bt)||wi(bt)){Ln(le,Ks(void 0));return}}else{if(Gc(bt))if(W.delete(le),re>Nt){Ln(le,Ks(void 0));return}else return oe.add(le),Ln(le,j0(je)),Jt(kt,bt,!1,{fetcherSubmission:je});if(wi(bt)){nr(le,he,bt.error);return}}if(su(bt))throw ko(400,{type:"defer-action"});let dr=k.navigation.location||k.location,or=Rf(e.history,dr,Ge.signal),Fn=l||a,Fr=k.navigation.state!=="idle"?Uc(Fn,k.navigation.location,s):k.matches;Pt(Fr,"Didn't find any matches after fetcher action");let jn=++X;Z.set(le,jn);let Zn=j0(je,bt.data);k.fetchers.set(le,Zn);let[ji,zn]=C6(e.history,k,Fr,je,dr,!1,b.v7_skipActionErrorRevalidation,q,ne,Q,ce,fe,oe,Fn,s,[Oe.route.id,bt]);zn.filter(rt=>rt.key!==le).forEach(rt=>{let St=rt.key,cn=k.fetchers.get(St),wr=j0(void 0,cn?cn.data:void 0);k.fetchers.set(St,wr),W.has(St)&&Qr(St),rt.controller&&W.set(St,rt.controller)}),Re({fetchers:new Map(k.fetchers)});let un=()=>zn.forEach(rt=>Qr(rt.key));Ge.signal.addEventListener("abort",un);let{loaderResults:Zr,fetcherResults:At}=await ln(k,Fr,ji,zn,or);if(Ge.signal.aborted)return;Ge.signal.removeEventListener("abort",un),Z.delete(le),W.delete(le),zn.forEach(rt=>W.delete(rt.key));let He=My(Zr);if(He)return Jt(or,He.result,!1);if(He=My(At),He)return oe.add(He.key),Jt(or,He.result,!1);let{loaderData:It,errors:at}=k6(k,Fr,ji,Zr,void 0,zn,At,J);if(k.fetchers.has(le)){let rt=Ks(bt.data);k.fetchers.set(le,rt)}Sn(jn),k.navigation.state==="loading"&&jn>re?(Pt(R,"Expected pending action"),A&&A.abort(),be(k.navigation.location,{matches:Fr,loaderData:It,errors:at,fetchers:new Map(k.fetchers)})):(Re({errors:at,loaderData:E6(k.loaderData,It,Fr,at),fetchers:new Map(k.fetchers)}),q=!1)}async function Ot(le,he,xe,Oe,Ue,Qe,ut,je){let Ze=k.fetchers.get(le);Ln(le,j0(je,Ze?Ze.data:void 0),{flushSync:ut});let $e=new AbortController,Ge=Rf(e.history,xe,$e.signal);if(Qe){let bt=await ni(Ue,xe,Ge.signal);if(bt.type==="aborted")return;if(bt.type==="error"){let{error:dr}=$r(xe,bt);nr(le,he,dr,{flushSync:ut});return}else if(bt.matches)Ue=bt.matches,Oe=ag(Ue,xe);else{nr(le,he,ko(404,{pathname:xe}),{flushSync:ut});return}}W.set(le,$e);let kt=X,Ut=(await Dr("loader",k,Ge,[Oe],Ue,le))[Oe.route.id];if(su(Ut)&&(Ut=await kP(Ut,Ge.signal,!0)||Ut),W.get(le)===$e&&W.delete(le),!Ge.signal.aborted){if(ce.has(le)){Ln(le,Ks(void 0));return}if(Gc(Ut))if(re>kt){Ln(le,Ks(void 0));return}else{oe.add(le),await Jt(Ge,Ut,!1);return}if(wi(Ut)){nr(le,he,Ut.error);return}Pt(!su(Ut),"Unhandled fetcher deferred data"),Ln(le,Ks(Ut.data))}}async function Jt(le,he,xe,Oe){let{submission:Ue,fetcherSubmission:Qe,replace:ut}=Oe===void 0?{}:Oe;he.response.headers.has("X-Remix-Revalidate")&&(q=!0);let je=he.response.headers.get("Location");Pt(je,"Expected a Location header on the redirect Response"),je=T6(je,new URL(le.url),s);let Ze=rv(k.location,je,{_isRedirect:!0});if(r){let bt=!1;if(he.response.headers.has("X-Remix-Reload-Document"))bt=!0;else if(OP.test(je)){const dr=e.history.createURL(je);bt=dr.origin!==t.location.origin||sh(dr.pathname,s)==null}if(bt){ut?t.location.replace(je):t.location.assign(je);return}}A=null;let $e=ut===!0||he.response.headers.has("X-Remix-Replace")?rn.Replace:rn.Push,{formMethod:Ge,formAction:kt,formEncType:Nt}=k.navigation;!Ue&&!Qe&&Ge&&kt&&Nt&&(Ue=A6(k.navigation));let Ut=Ue||Qe;if(NH.has(he.response.status)&&Ut&&Ea(Ut.formMethod))await Ye($e,Ze,{submission:Tr({},Ut,{formAction:je}),preventScrollReset:E,enableViewTransition:xe?F:void 0});else{let bt=W_(Ze,Ue);await Ye($e,Ze,{overrideNavigation:bt,fetcherSubmission:Qe,preventScrollReset:E,enableViewTransition:xe?F:void 0})}}async function Dr(le,he,xe,Oe,Ue,Qe){let ut,je={};try{ut=await UH(d,le,he,xe,Oe,Ue,Qe,i,o)}catch(Ze){return Oe.forEach($e=>{je[$e.route.id]={type:rr.error,error:Ze}}),je}for(let[Ze,$e]of Object.entries(ut))if(YH($e)){let Ge=$e.result;je[Ze]={type:rr.redirect,response:$H(Ge,xe,Ze,Ue,s,b.v7_relativeSplatPath)}}else je[Ze]=await WH($e);return je}async function ln(le,he,xe,Oe,Ue){let Qe=le.matches,ut=Dr("loader",le,Ue,xe,he,null),je=Promise.all(Oe.map(async Ge=>{if(Ge.matches&&Ge.match&&Ge.controller){let Nt=(await Dr("loader",le,Rf(e.history,Ge.path,Ge.controller.signal),[Ge.match],Ge.matches,Ge.key))[Ge.match.route.id];return{[Ge.key]:Nt}}else return Promise.resolve({[Ge.key]:{type:rr.error,error:ko(404,{pathname:Ge.path})}})})),Ze=await ut,$e=(await je).reduce((Ge,kt)=>Object.assign(Ge,kt),{});return await Promise.all([ZH(he,Ze,Ue.signal,Qe,le.loaderData),JH(he,$e,Oe)]),{loaderResults:Ze,fetcherResults:$e}}function Qn(){q=!0,ne.push(...Di()),fe.forEach((le,he)=>{W.has(he)&&(Q.add(he),Qr(he))})}function Ln(le,he,xe){xe===void 0&&(xe={}),k.fetchers.set(le,he),Re({fetchers:new Map(k.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function nr(le,he,xe,Oe){Oe===void 0&&(Oe={});let Ue=Zf(k.matches,he);Yt(le),Re({errors:{[Ue.route.id]:xe},fetchers:new Map(k.fetchers)},{flushSync:(Oe&&Oe.flushSync)===!0})}function mo(le){return b.v7_fetcherPersist&&(ge.set(le,(ge.get(le)||0)+1),ce.has(le)&&ce.delete(le)),k.fetchers.get(le)||AH}function Yt(le){let he=k.fetchers.get(le);W.has(le)&&!(he&&he.state==="loading"&&Z.has(le))&&Qr(le),fe.delete(le),Z.delete(le),oe.delete(le),ce.delete(le),Q.delete(le),k.fetchers.delete(le)}function yo(le){if(b.v7_fetcherPersist){let he=(ge.get(le)||0)-1;he<=0?(ge.delete(le),ce.add(le)):ge.set(le,he)}else Yt(le);Re({fetchers:new Map(k.fetchers)})}function Qr(le){let he=W.get(le);Pt(he,"Expected fetch controller: "+le),he.abort(),W.delete(le)}function Cl(le){for(let he of le){let xe=mo(he),Oe=Ks(xe.data);k.fetchers.set(he,Oe)}}function da(){let le=[],he=!1;for(let xe of oe){let Oe=k.fetchers.get(xe);Pt(Oe,"Expected fetcher: "+xe),Oe.state==="loading"&&(oe.delete(xe),le.push(xe),he=!0)}return Cl(le),he}function Sn(le){let he=[];for(let[xe,Oe]of Z)if(Oe0}function Pl(le,he){let xe=k.blockers.get(le)||F0;return ie.get(le)!==he&&ie.set(le,he),xe}function Ka(le){k.blockers.delete(le),ie.delete(le)}function sn(le,he){let xe=k.blockers.get(le)||F0;Pt(xe.state==="unblocked"&&he.state==="blocked"||xe.state==="blocked"&&he.state==="blocked"||xe.state==="blocked"&&he.state==="proceeding"||xe.state==="blocked"&&he.state==="unblocked"||xe.state==="proceeding"&&he.state==="unblocked","Invalid blocker state transition: "+xe.state+" -> "+he.state);let Oe=new Map(k.blockers);Oe.set(le,he),Re({blockers:Oe})}function Li(le){let{currentLocation:he,nextLocation:xe,historyAction:Oe}=le;if(ie.size===0)return;ie.size>1&&jp(!1,"A router only supports one blocker at a time");let Ue=Array.from(ie.entries()),[Qe,ut]=Ue[Ue.length-1],je=k.blockers.get(Qe);if(!(je&&je.state==="proceeding")&&ut({currentLocation:he,nextLocation:xe,historyAction:Oe}))return Qe}function fa(le){let he=ko(404,{pathname:le}),xe=l||a,{matches:Oe,route:Ue}=R6(xe);return Di(),{notFoundMatches:Oe,route:Ue,error:he}}function $r(le,he){return{boundaryId:Zf(he.partialMatches).route.id,error:ko(400,{type:"route-discovery",pathname:le,message:he.error!=null&&"message"in he.error?he.error:String(he.error)})}}function Di(le){let he=[];return J.forEach((xe,Oe)=>{(!le||le(Oe))&&(xe.cancel(),he.push(Oe),J.delete(Oe))}),he}function Ts(le,he,xe){if(C=le,p=he,h=xe||null,!c&&k.navigation===H_){c=!0;let Oe=Fi(k.location,k.matches);Oe!=null&&Re({restoreScrollPosition:Oe})}return()=>{C=null,p=null,h=null}}function pa(le,he){return h&&h(le,he.map(Oe=>cH(Oe,k.loaderData)))||le.key}function Dn(le,he){if(C&&p){let xe=pa(le,he);C[xe]=p()}}function Fi(le,he){if(C){let xe=pa(le,he),Oe=C[xe];if(typeof Oe=="number")return Oe}return null}function bo(le,he,xe){if(v){if(y.has(xe))return{active:!1,matches:le};if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:Cb(he,xe,s,!0)}}else return{active:!0,matches:Cb(he,xe,s,!0)||[]}}return{active:!1,matches:null}}async function ni(le,he,xe){let Oe=le;for(;;){let Ue=l==null,Qe=l||a;try{await zH(v,he,Oe,Qe,i,o,ue,xe)}catch(Ze){return{type:"error",error:Ze,partialMatches:Oe}}finally{Ue&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let ut=Uc(Qe,he,s);if(ut)return ha(he,y),{type:"success",matches:ut};let je=Cb(Qe,he,s,!0);if(!je||Oe.length===je.length&&Oe.every((Ze,$e)=>Ze.route.id===je[$e].route.id))return ha(he,y),{type:"success",matches:null};Oe=je}}function ha(le,he){if(he.size>=P){let xe=he.values().next().value;he.delete(xe)}he.add(le)}function Os(le){i={},l=nv(le,o,void 0,i)}function ga(le,he){let xe=l==null;BR(le,he,l||a,i,o),xe&&(a=[...a],Re({}))}return T={get basename(){return s},get future(){return b},get state(){return k},get routes(){return a},get window(){return t},initialize:Ce,subscribe:Le,enableScrollRestoration:Ts,navigate:ke,fetch:Ht,revalidate:ze,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:mo,deleteFetcher:yo,dispose:Me,getBlocker:Pl,deleteBlocker:Ka,patchRoutes:ga,_internalFetchControllers:W,_internalActiveDeferreds:J,_internalSetRoutes:Os},T}function DH(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function GS(e,t,r,n,o,i,a,l){let s,d;if(a){s=[];for(let b of t)if(s.push(b),b.route.id===a){d=b;break}}else s=t,d=t[t.length-1];let v=TP(o||".",PP(s,i),sh(e.pathname,r)||e.pathname,l==="path");return o==null&&(v.search=e.search,v.hash=e.hash),(o==null||o===""||o===".")&&d&&d.route.index&&!EP(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(v.pathname=v.pathname==="/"?r:ts([r,v.pathname])),ad(v)}function S6(e,t,r,n){if(!n||!DH(n))return{path:r};if(n.formMethod&&!QH(n.formMethod))return{path:r,error:ko(405,{method:n.formMethod})};let o=()=>({path:r,error:ko(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=UR(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ea(a))return o();let S=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((w,P)=>{let[y,C]=P;return""+w+y+"="+C+` +`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:S}}}else if(n.formEncType==="application/json"){if(!Ea(a))return o();try{let S=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:l,formEncType:n.formEncType,formData:void 0,json:S,text:void 0}}}catch{return o()}}}Pt(typeof FormData=="function","FormData is not available in this environment");let s,d;if(n.formData)s=KS(n.formData),d=n.formData;else if(n.body instanceof FormData)s=KS(n.body),d=n.body;else if(n.body instanceof URLSearchParams)s=n.body,d=O6(s);else if(n.body==null)s=new URLSearchParams,d=new FormData;else try{s=new URLSearchParams(n.body),d=O6(s)}catch{return o()}let v={formMethod:a,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ea(v.formMethod))return{path:r,submission:v};let b=zu(r);return t&&b.search&&EP(b.search)&&s.append("index",""),b.search="?"+s,{path:ad(b),submission:v}}function FH(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function C6(e,t,r,n,o,i,a,l,s,d,v,b,S,w,P,y){let C=y?wi(y[1])?y[1].error:y[1].data:void 0,h=e.createURL(t.location),p=e.createURL(o),c=y&&wi(y[1])?y[0]:void 0,g=c?FH(r,c):r,m=y?y[1].statusCode:void 0,_=a&&m&&m>=400,T=g.filter((R,E)=>{let{route:A}=R;if(A.lazy)return!0;if(A.loader==null)return!1;if(i)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(jH(t.loaderData,t.matches[E],R)||s.some(B=>B===R.route.id))return!0;let F=t.matches[E],V=R;return P6(R,Tr({currentUrl:h,currentParams:F.params,nextUrl:p,nextParams:V.params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||VR(F,V)}))}),k=[];return b.forEach((R,E)=>{if(i||!r.some(H=>H.route.id===R.routeId)||v.has(E))return;let A=Uc(w,R.path,P);if(!A){k.push({key:E,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(E),V=ag(A,R.path),B=!1;S.has(E)?B=!1:d.has(E)?(d.delete(E),B=!0):F&&F.state!=="idle"&&F.data===void 0?B=l:B=P6(V,Tr({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:r[r.length-1].params},n,{actionResult:C,actionStatus:m,defaultShouldRevalidate:_?!1:l})),B&&k.push({key:E,routeId:R.routeId,path:R.path,matches:A,match:V,controller:new AbortController})}),[T,k]}function jH(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function VR(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function P6(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function zH(e,t,r,n,o,i,a,l){let s=[t,...r.map(d=>d.route.id)].join("-");try{let d=a.get(s);d||(d=e({path:t,matches:r,patch:(v,b)=>{l.aborted||BR(v,b,n,o,i)}}),a.set(s,d)),d&&qH(d)&&await d}finally{a.delete(s)}}function BR(e,t,r,n,o){if(e){var i;let a=n[e];Pt(a,"No route found to patch children into: routeId = "+e);let l=nv(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],n);a.children?a.children.push(...l):a.children=l}else{let a=nv(t,o,["patch",String(r.length||"0")],n);r.push(...a)}}async function VH(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];Pt(o,"No route found in manifest");let i={};for(let a in n){let s=o[a]!==void 0&&a!=="hasErrorBoundary";jp(!s,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!s&&!sH.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Tr({},t(o),{lazy:void 0}))}async function BH(e){let{matches:t}=e,r=t.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[r[a].route.id]:i}),{})}async function UH(e,t,r,n,o,i,a,l,s,d){let v=i.map(w=>w.route.lazy?VH(w.route,s,l):void 0),b=i.map((w,P)=>{let y=v[P],C=o.some(p=>p.route.id===w.route.id);return Tr({},w,{shouldLoad:C,resolve:async p=>(p&&n.method==="GET"&&(w.route.lazy||w.route.loader)&&(C=!0),C?HH(t,n,w,y,p,d):Promise.resolve({type:rr.data,result:void 0}))})}),S=await e({matches:b,request:n,params:i[0].params,fetcherKey:a,context:d});try{await Promise.all(v)}catch{}return S}async function HH(e,t,r,n,o,i){let a,l,s=d=>{let v,b=new Promise((P,y)=>v=y);l=()=>v(),t.signal.addEventListener("abort",l);let S=P=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):d({request:t,params:r.params,context:i},...P!==void 0?[P]:[]),w=(async()=>{try{return{type:"data",result:await(o?o(y=>S(y)):S())}}catch(P){return{type:"error",result:P}}})();return Promise.race([w,b])};try{let d=r.route[e];if(n)if(d){let v,[b]=await Promise.all([s(d).catch(S=>{v=S}),n]);if(v!==void 0)throw v;a=b}else if(await n,d=r.route[e],d)a=await s(d);else if(e==="action"){let v=new URL(t.url),b=v.pathname+v.search;throw ko(405,{method:t.method,pathname:b,routeId:r.route.id})}else return{type:rr.data,result:void 0};else if(d)a=await s(d);else{let v=new URL(t.url),b=v.pathname+v.search;throw ko(404,{pathname:b})}Pt(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:rr.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return a}async function WH(e){let{result:t,type:r}=e;if(HR(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:rr.error,error:v}}return r===rr.error?{type:rr.error,error:new T1(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:rr.data,data:d,statusCode:t.status,headers:t.headers}}if(r===rr.error){if(N6(t)){var n;if(t.data instanceof Error){var o;return{type:rr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new T1(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:rr.error,error:t,statusCode:Uv(t)?t.status:void 0}}if(XH(t)){var i,a;return{type:rr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(N6(t)){var l,s;return{type:rr.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:rr.data,data:t}}function $H(e,t,r,n,o,i){let a=e.headers.get("Location");if(Pt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!OP.test(a)){let l=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=GS(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function T6(e,t,r){if(OP.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=sh(o.pathname,r)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Rf(e,t,r,n){let o=e.createURL(UR(t)).toString(),i={signal:r};if(n&&Ea(n.formMethod)){let{formMethod:a,formEncType:l}=n;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(n.json)):l==="text/plain"?i.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?i.body=KS(n.formData):i.body=n.formData}return new Request(o,i)}function KS(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function O6(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function GH(e,t,r,n,o){let i={},a=null,l,s=!1,d={},v=r&&wi(r[1])?r[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let S=b.route.id,w=t[S];if(Pt(!Gc(w),"Cannot handle redirect results in processLoaderData"),wi(w)){let P=w.error;v!==void 0&&(P=v,v=void 0),a=a||{};{let y=Zf(e,S);a[y.route.id]==null&&(a[y.route.id]=P)}i[S]=void 0,s||(s=!0,l=Uv(w.error)?w.error.status:500),w.headers&&(d[S]=w.headers)}else su(w)?(n.set(S,w.deferredData),i[S]=w.deferredData.data,w.statusCode!=null&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers)):(i[S]=w.data,w.statusCode&&w.statusCode!==200&&!s&&(l=w.statusCode),w.headers&&(d[S]=w.headers))}),v!==void 0&&r&&(a={[r[0]]:v},i[r[0]]=void 0),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function k6(e,t,r,n,o,i,a,l){let{loaderData:s,errors:d}=GH(t,n,o,l);return i.forEach(v=>{let{key:b,match:S,controller:w}=v,P=a[b];if(Pt(P,"Did not find corresponding fetcher result"),!(w&&w.signal.aborted))if(wi(P)){let y=Zf(e.matches,S==null?void 0:S.route.id);d&&d[y.route.id]||(d=Tr({},d,{[y.route.id]:P.error})),e.fetchers.delete(b)}else if(Gc(P))Pt(!1,"Unhandled fetcher revalidation redirect");else if(su(P))Pt(!1,"Unhandled fetcher deferred data");else{let y=Ks(P.data);e.fetchers.set(b,y)}}),{loaderData:s,errors:d}}function E6(e,t,r,n){let o=Tr({},t);for(let i of r){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),n&&n.hasOwnProperty(a))break}return o}function M6(e){return e?wi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Zf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function R6(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ko(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?s='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+a):o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(l="Not Found",s='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new T1(e||500,l,new Error(s),!0)}function My(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];if(Gc(o))return{key:n,result:o}}}function UR(e){let t=typeof e=="string"?zu(e):e;return ad(Tr({},t,{hash:""}))}function KH(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function qH(e){return typeof e=="object"&&e!=null&&"then"in e}function YH(e){return HR(e.result)&&RH.has(e.result.status)}function su(e){return e.type===rr.deferred}function wi(e){return e.type===rr.error}function Gc(e){return(e&&e.type)===rr.redirect}function N6(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function XH(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function HR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QH(e){return MH.has(e.toLowerCase())}function Ea(e){return kH.has(e.toLowerCase())}async function ZH(e,t,r,n,o){let i=Object.entries(t);for(let a=0;a(S==null?void 0:S.route.id)===l);if(!d)continue;let v=n.find(S=>S.route.id===d.route.id),b=v!=null&&!VR(v,d)&&(o&&o[d.route.id])!==void 0;su(s)&&b&&await kP(s,r,!1).then(S=>{S&&(t[l]=S)})}}async function JH(e,t,r){for(let n=0;n(d==null?void 0:d.route.id)===i)&&su(l)&&(Pt(a,"Expected an AbortController for revalidating fetcher deferred result"),await kP(l,a.signal,!0).then(d=>{d&&(t[o]=d)}))}}async function kP(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:rr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:rr.error,error:o}}return{type:rr.data,data:e.deferredData.data}}}function EP(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ag(e,t){let r=typeof t=="string"?zu(t).search:t.search;if(e[e.length-1].route.index&&EP(r||""))return e[e.length-1];let n=FR(e);return n[n.length-1]}function A6(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function W_(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eW(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function j0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function tW(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ks(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function rW(e,t){try{let r=e.sessionStorage.getItem(zR);if(r){let n=JSON.parse(r);for(let[o,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function nW(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(zR,JSON.stringify(r))}catch(n){jp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -57,7 +57,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),Y.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let b=TP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(b.pathname=b.pathname==="/"?t:ts([t,b.pathname])),(v.replace?n.replace:n.push)(b,v.state,v)},[t,n,a,i,e])}function GR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=Y.useContext(bd),{matches:o}=Y.useContext(wd),{pathname:i}=Zw(),a=JSON.stringify(PP(o,n.v7_relativeSplatPath));return Y.useMemo(()=>TP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function aW(e,t,r,n){Hv()||Pt(!1);let{navigator:o}=Y.useContext(bd),{matches:i}=Y.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Zw(),v;v=d;let b=v.pathname||"/",S=b;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(y.length).join("/")}let w=Uc(e,{pathname:S});return dW(w&&w.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function lW(){let e=XR(),t=Uv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Y.createElement(Y.Fragment,null,Y.createElement("h2",null,"Unexpected Application Error!"),Y.createElement("h3",{style:{fontStyle:"italic"}},t),r?Y.createElement("pre",{style:o},r):null,null)}const sW=Y.createElement(lW,null);class uW extends Y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?Y.createElement(wd.Provider,{value:this.props.routeContext},Y.createElement(WR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cW(e){let{routeContext:t,match:r,children:n}=e,o=Y.useContext(Qw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),Y.createElement(wd.Provider,{value:t},n)}function dW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(b=>b.route.id&&(l==null?void 0:l[b.route.id])!==void 0);v>=0||Pt(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,b,S)=>{let w,P=!1,y=null,C=null;r&&(w=l&&b.route.id?l[b.route.id]:void 0,y=b.route.errorElement||sW,s&&(d<0&&S===0?(vW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=b.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,S+1)),p=()=>{let c;return w?c=y:P?c=C:b.route.Component?c=Y.createElement(b.route.Component,null):b.route.element?c=b.route.element:c=v,Y.createElement(cW,{match:b,routeContext:{outlet:v,matches:h,isDataRoute:r!=null},children:c})};return r&&(b.route.ErrorBoundary||b.route.errorElement||S===0)?Y.createElement(uW,{location:r.location,revalidation:r.revalidation,component:y,error:w,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var KR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(KR||{}),qR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(qR||{});function fW(e){let t=Y.useContext(Qw);return t||Pt(!1),t}function pW(e){let t=Y.useContext(HR);return t||Pt(!1),t}function hW(e){let t=Y.useContext(wd);return t||Pt(!1),t}function YR(e){let t=hW(),r=t.matches[t.matches.length-1];return r.route.id||Pt(!1),r.route.id}function XR(){var e;let t=Y.useContext(WR),r=pW(qR.UseRouteError),n=YR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function gW(){let{router:e}=fW(KR.UseNavigateStable),t=YR(),r=Y.useRef(!1);return $R(()=>{r.current=!0}),Y.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,O1({fromRouteId:t},i)))},[e,t])}const I6={};function vW(e,t,r){I6[e]||(I6[e]=!0)}function qS(e){Pt(!1)}function mW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Hv()&&Pt(!1);let s=t.replace(/^\/*/,"/"),d=Y.useMemo(()=>({basename:s,navigator:i,static:a,future:O1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:b="",hash:S="",state:w=null,key:P="default"}=n,y=Y.useMemo(()=>{let C=sh(v,s);return C==null?null:{location:{pathname:C,search:b,hash:S,state:w,key:P},navigationType:o}},[s,v,b,S,w,P,o]);return y==null?null:Y.createElement(bd.Provider,{value:d},Y.createElement(MP.Provider,{children:r,value:y}))}new Promise(()=>{});function YS(e,t){t===void 0&&(t=[]);let r=[];return Y.Children.forEach(e,(n,o)=>{if(!Y.isValidElement(n))return;let i=[...t,o];if(n.type===Y.Fragment){r.push.apply(r,YS(n.props.children,i));return}n.type!==qS&&Pt(!1),!n.props.index||!n.props.children||Pt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=YS(n.props.children,i)),r.push(a)}),r}function yW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:Y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:Y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:Y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),Y.useCallback(function(d,v){if(v===void 0&&(v={}),!l.current)return;if(typeof d=="number"){n.go(d);return}let b=TP(d,JSON.parse(a),i,v.relative==="path");e==null&&t!=="/"&&(b.pathname=b.pathname==="/"?t:ts([t,b.pathname])),(v.replace?n.replace:n.push)(b,v.state,v)},[t,n,a,i,e])}function KR(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=Y.useContext(bd),{matches:o}=Y.useContext(wd),{pathname:i}=Zw(),a=JSON.stringify(PP(o,n.v7_relativeSplatPath));return Y.useMemo(()=>TP(e,JSON.parse(a),i,r==="path"),[e,a,i,r])}function lW(e,t,r,n){Hv()||Pt(!1);let{navigator:o}=Y.useContext(bd),{matches:i}=Y.useContext(wd),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let d=Zw(),v;v=d;let b=v.pathname||"/",S=b;if(s!=="/"){let y=s.replace(/^\//,"").split("/");S="/"+b.replace(/^\//,"").split("/").slice(y.length).join("/")}let w=Uc(e,{pathname:S});return fW(w&&w.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:ts([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ts([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,n)}function sW(){let e=QR(),t=Uv(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Y.createElement(Y.Fragment,null,Y.createElement("h2",null,"Unexpected Application Error!"),Y.createElement("h3",{style:{fontStyle:"italic"}},t),r?Y.createElement("pre",{style:o},r):null,null)}const uW=Y.createElement(sW,null);class cW extends Y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?Y.createElement(wd.Provider,{value:this.props.routeContext},Y.createElement($R.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dW(e){let{routeContext:t,match:r,children:n}=e,o=Y.useContext(Qw);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),Y.createElement(wd.Provider,{value:t},n)}function fW(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let v=a.findIndex(b=>b.route.id&&(l==null?void 0:l[b.route.id])!==void 0);v>=0||Pt(!1),a=a.slice(0,Math.min(a.length,v+1))}let s=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let v=0;v=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((v,b,S)=>{let w,P=!1,y=null,C=null;r&&(w=l&&b.route.id?l[b.route.id]:void 0,y=b.route.errorElement||uW,s&&(d<0&&S===0?(mW("route-fallback"),P=!0,C=null):d===S&&(P=!0,C=b.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,S+1)),p=()=>{let c;return w?c=y:P?c=C:b.route.Component?c=Y.createElement(b.route.Component,null):b.route.element?c=b.route.element:c=v,Y.createElement(dW,{match:b,routeContext:{outlet:v,matches:h,isDataRoute:r!=null},children:c})};return r&&(b.route.ErrorBoundary||b.route.errorElement||S===0)?Y.createElement(cW,{location:r.location,revalidation:r.revalidation,component:y,error:w,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var qR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(qR||{}),YR=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(YR||{});function pW(e){let t=Y.useContext(Qw);return t||Pt(!1),t}function hW(e){let t=Y.useContext(WR);return t||Pt(!1),t}function gW(e){let t=Y.useContext(wd);return t||Pt(!1),t}function XR(e){let t=gW(),r=t.matches[t.matches.length-1];return r.route.id||Pt(!1),r.route.id}function QR(){var e;let t=Y.useContext($R),r=hW(YR.UseRouteError),n=XR();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function vW(){let{router:e}=pW(qR.UseNavigateStable),t=XR(),r=Y.useRef(!1);return GR(()=>{r.current=!0}),Y.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,O1({fromRouteId:t},i)))},[e,t])}const I6={};function mW(e,t,r){I6[e]||(I6[e]=!0)}function qS(e){Pt(!1)}function yW(e){let{basename:t="/",children:r=null,location:n,navigationType:o=rn.Pop,navigator:i,static:a=!1,future:l}=e;Hv()&&Pt(!1);let s=t.replace(/^\/*/,"/"),d=Y.useMemo(()=>({basename:s,navigator:i,static:a,future:O1({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);typeof n=="string"&&(n=zu(n));let{pathname:v="/",search:b="",hash:S="",state:w=null,key:P="default"}=n,y=Y.useMemo(()=>{let C=sh(v,s);return C==null?null:{location:{pathname:C,search:b,hash:S,state:w,key:P},navigationType:o}},[s,v,b,S,w,P,o]);return y==null?null:Y.createElement(bd.Provider,{value:d},Y.createElement(MP.Provider,{children:r,value:y}))}new Promise(()=>{});function YS(e,t){t===void 0&&(t=[]);let r=[];return Y.Children.forEach(e,(n,o)=>{if(!Y.isValidElement(n))return;let i=[...t,o];if(n.type===Y.Fragment){r.push.apply(r,YS(n.props.children,i));return}n.type!==qS&&Pt(!1),!n.props.index||!n.props.children||Pt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=YS(n.props.children,i)),r.push(a)}),r}function bW(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:Y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:Y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:Y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -66,11 +66,11 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function wW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _W(e,t){return e.button===0&&(!t||t==="_self")&&!wW(e)}const xW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],SW="6";try{window.__reactRouterVersion=SW}catch{}function CW(e,t){return IH({basename:t==null?void 0:t.basename,future:ov({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:oH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||PW(),routes:e,mapRouteProperties:yW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function PW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ov({},t,{errors:TW(t.errors)})),t}function TW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new T1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const OW=Y.createContext({isTransitioning:!1}),kW=Y.createContext(new Map),EW="startTransition",L6=Jx[EW],MW="flushSync",D6=nH[MW];function RW(e){L6?L6(e):e()}function z0(e){D6?D6(e):e()}class NW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function AW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=Y.useState(r.state),[a,l]=Y.useState(),[s,d]=Y.useState({isTransitioning:!1}),[v,b]=Y.useState(),[S,w]=Y.useState(),[P,y]=Y.useState(),C=Y.useRef(new Map),{v7_startTransition:h}=n||{},p=Y.useCallback(k=>{h?RW(k):k()},[h]),c=Y.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,H)=>{B.data!==void 0&&C.current.set(H,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?z0(()=>i(k)):p(()=>i(k));return}if(A){z0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{z0(()=>i(k))});B.finished.finally(()=>{z0(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})})}),z0(()=>w(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,p]);Y.useLayoutEffect(()=>r.subscribe(c),[r,c]),Y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&b(new NW)},[s]),Y.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{p(()=>i(k)),await R});E.finished.finally(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})}),w(E)}},[p,a,v,r.window]),Y.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),Y.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),Y.useEffect(()=>{},[]);let g=Y.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",_=Y.useMemo(()=>({router:r,navigator:g,static:!1,basename:m}),[r,g,m]),T=Y.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return Y.createElement(Y.Fragment,null,Y.createElement(Qw.Provider,{value:_},Y.createElement(HR.Provider,{value:o},Y.createElement(kW.Provider,{value:C.current},Y.createElement(OW.Provider,{value:s},Y.createElement(mW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:g,future:T},o.initialized||r.future.v7_partialHydration?Y.createElement(IW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const IW=Y.memo(LW);function LW(e){let{routes:t,future:r,state:n}=e;return aW(t,void 0,n,r)}const DW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",FW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k1=Y.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:b}=t,S=bW(t,xW),{basename:w}=Y.useContext(bd),P,y=!1;if(typeof d=="string"&&FW.test(d)&&(P=d,DW))try{let c=new URL(window.location.href),g=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=sh(g.pathname,w);g.origin===c.origin&&m!=null?d=m+g.search+g.hash:y=!0}catch{}let C=nW(d,{relative:o}),h=jW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:b});function p(c){n&&n(c),c.defaultPrevented||h(c)}return Y.createElement("a",ov({},S,{href:P||C,onClick:y||i?n:p,ref:r,target:s}))});var F6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(F6||(F6={}));var j6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(j6||(j6={}));function jW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=oW(),d=Zw(),v=GR(e,{relative:a});return Y.useCallback(b=>{if(_W(b,r)){b.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var QR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},z6=Or.createContext&&Or.createContext(QR),zW=["attr","size","title"];function VW(e,t){if(e==null)return{};var r=BW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,M1({key:r},t.attr),ZR(t.child)))}function Jw(e){return t=>Or.createElement($W,E1({attr:M1({},e.attr)},t),ZR(e.child))}function $W(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=VW(e,zW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",E1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:M1(M1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return z6!==void 0?Or.createElement(z6.Consumer,null,r=>t(r)):t(QR)}function GW(e){return Jw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function KW(e){return Jw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function qW(e){return Jw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function B6(e){return Ie.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:Ie.jsxs(k1,{to:e.path,children:[Ie.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function YW(){return Ie.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[Ie.jsx(k1,{to:"/",children:Ie.jsx("div",{className:"sideMenu-header",children:Ie.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),Ie.jsx("br",{}),Ie.jsx("nav",{children:Ie.jsxs("ul",{children:[Ie.jsx(B6,{icon:GW,label:"Home",path:"/"},"Home"),Ie.jsx(B6,{icon:qW,label:"Map",path:"/map"},"Map")]})}),Ie.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:Ie.jsxs(k1,{to:"/tos",className:"inline-",children:[Ie.jsx(KW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function XW({children:e}){return Ie.jsxs("div",{className:"bg-black",children:[Ie.jsx(YW,{}),Ie.jsx("div",{className:"ml-40 pl-2",children:e})]})}var QW={},JR={},e7={exports:{}};/*! + */function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function _W(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xW(e,t){return e.button===0&&(!t||t==="_self")&&!_W(e)}const SW=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],CW="6";try{window.__reactRouterVersion=CW}catch{}function PW(e,t){return LH({basename:t==null?void 0:t.basename,future:ov({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:iH({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||TW(),routes:e,mapRouteProperties:bW,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,unstable_patchRoutesOnNavigation:t==null?void 0:t.unstable_patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function TW(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ov({},t,{errors:OW(t.errors)})),t}function OW(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new T1(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const kW=Y.createContext({isTransitioning:!1}),EW=Y.createContext(new Map),MW="startTransition",L6=Jx[MW],RW="flushSync",D6=oH[RW];function NW(e){L6?L6(e):e()}function z0(e){D6?D6(e):e()}class AW{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function IW(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=Y.useState(r.state),[a,l]=Y.useState(),[s,d]=Y.useState({isTransitioning:!1}),[v,b]=Y.useState(),[S,w]=Y.useState(),[P,y]=Y.useState(),C=Y.useRef(new Map),{v7_startTransition:h}=n||{},p=Y.useCallback(k=>{h?NW(k):k()},[h]),c=Y.useCallback((k,R)=>{let{deletedFetchers:E,unstable_flushSync:A,unstable_viewTransitionOpts:F}=R;E.forEach(B=>C.current.delete(B)),k.fetchers.forEach((B,H)=>{B.data!==void 0&&C.current.set(H,B.data)});let V=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!F||V){A?z0(()=>i(k)):p(()=>i(k));return}if(A){z0(()=>{S&&(v&&v.resolve(),S.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=r.window.document.startViewTransition(()=>{z0(()=>i(k))});B.finished.finally(()=>{z0(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})})}),z0(()=>w(B));return}S?(v&&v.resolve(),S.skipTransition(),y({state:k,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(l(k),d({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[r.window,S,v,C,p]);Y.useLayoutEffect(()=>r.subscribe(c),[r,c]),Y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&b(new AW)},[s]),Y.useEffect(()=>{if(v&&a&&r.window){let k=a,R=v.promise,E=r.window.document.startViewTransition(async()=>{p(()=>i(k)),await R});E.finished.finally(()=>{b(void 0),w(void 0),l(void 0),d({isTransitioning:!1})}),w(E)}},[p,a,v,r.window]),Y.useEffect(()=>{v&&a&&o.location.key===a.location.key&&v.resolve()},[v,S,o.location,a]),Y.useEffect(()=>{!s.isTransitioning&&P&&(l(P.state),d({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}),y(void 0))},[s.isTransitioning,P]),Y.useEffect(()=>{},[]);let g=Y.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:k=>r.navigate(k),push:(k,R,E)=>r.navigate(k,{state:R,preventScrollReset:E==null?void 0:E.preventScrollReset}),replace:(k,R,E)=>r.navigate(k,{replace:!0,state:R,preventScrollReset:E==null?void 0:E.preventScrollReset})}),[r]),m=r.basename||"/",_=Y.useMemo(()=>({router:r,navigator:g,static:!1,basename:m}),[r,g,m]),T=Y.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return Y.createElement(Y.Fragment,null,Y.createElement(Qw.Provider,{value:_},Y.createElement(WR.Provider,{value:o},Y.createElement(EW.Provider,{value:C.current},Y.createElement(kW.Provider,{value:s},Y.createElement(yW,{basename:m,location:o.location,navigationType:o.historyAction,navigator:g,future:T},o.initialized||r.future.v7_partialHydration?Y.createElement(LW,{routes:r.routes,future:r.future,state:o}):t))))),null)}const LW=Y.memo(DW);function DW(e){let{routes:t,future:r,state:n}=e;return lW(t,void 0,n,r)}const FW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,k1=Y.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:d,preventScrollReset:v,unstable_viewTransition:b}=t,S=wW(t,SW),{basename:w}=Y.useContext(bd),P,y=!1;if(typeof d=="string"&&jW.test(d)&&(P=d,FW))try{let c=new URL(window.location.href),g=d.startsWith("//")?new URL(c.protocol+d):new URL(d),m=sh(g.pathname,w);g.origin===c.origin&&m!=null?d=m+g.search+g.hash:y=!0}catch{}let C=oW(d,{relative:o}),h=zW(d,{replace:a,state:l,target:s,preventScrollReset:v,relative:o,unstable_viewTransition:b});function p(c){n&&n(c),c.defaultPrevented||h(c)}return Y.createElement("a",ov({},S,{href:P||C,onClick:y||i?n:p,ref:r,target:s}))});var F6;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(F6||(F6={}));var j6;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(j6||(j6={}));function zW(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=iW(),d=Zw(),v=KR(e,{relative:a});return Y.useCallback(b=>{if(xW(b,r)){b.preventDefault();let S=n!==void 0?n:ad(d)===ad(v);s(e,{replace:S,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[d,s,v,n,o,r,e,i,a,l])}var ZR={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},z6=Or.createContext&&Or.createContext(ZR),VW=["attr","size","title"];function BW(e,t){if(e==null)return{};var r=UW(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;tOr.createElement(t.tag,M1({key:r},t.attr),JR(t.child)))}function Jw(e){return t=>Or.createElement(GW,E1({attr:M1({},e.attr)},t),JR(e.child))}function GW(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=BW(e,VW),l=o||r.size||"1em",s;return r.className&&(s=r.className),e.className&&(s=(s?s+" ":"")+e.className),Or.createElement("svg",E1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:s,style:M1(M1({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&Or.createElement("title",null,i),e.children)};return z6!==void 0?Or.createElement(z6.Consumer,null,r=>t(r)):t(ZR)}function KW(e){return Jw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function qW(e){return Jw({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function YW(e){return Jw({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},child:[]}]})(e)}function B6(e){return Ie.jsx("li",{className:"items-center text-xl text-white font-bold mb-2 rounded hover:bg-gray-500 hover:shadow py-2",children:Ie.jsxs(k1,{to:e.path,children:[Ie.jsx(e.icon,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),e.label]})})}function XW(){return Ie.jsxs("div",{id:"sideMenu",className:"w-40 fixed h-full",children:[Ie.jsx(k1,{to:"/",children:Ie.jsx("div",{className:"sideMenu-header",children:Ie.jsx("img",{id:"RoguewarLogo",src:"/rtLogo.png"})})}),Ie.jsx("br",{}),Ie.jsx("nav",{children:Ie.jsxs("ul",{children:[Ie.jsx(B6,{icon:KW,label:"Home",path:"/"},"Home"),Ie.jsx(B6,{icon:YW,label:"Map",path:"/map"},"Map")]})}),Ie.jsx("div",{className:"absolute inset-x-0 bottom-0 h-16 items-center text-2x text-white",children:Ie.jsxs(k1,{to:"/tos",className:"inline-",children:[Ie.jsx(qW,{className:"inline-block w-4 h-4 mr-2 -mt-1"}),"Terms of Data Use"]})})]})}function QW({children:e}){return Ie.jsxs("div",{className:"bg-black",children:[Ie.jsx(XW,{}),Ie.jsx("div",{className:"ml-40 pl-2",children:e})]})}var ZW={},e7={},t7={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function e$(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,b=new Array(d);vC.length)&&(h=C.length);for(var p=0,c=new Array(h);pc.length)&&(g=c.length);for(var m=0,_=new Array(g);mp.length)&&(c=p.length);for(var g=0,m=new Array(c);gT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rg.length)&&(m=g.length);for(var _=0,T=new Array(m);_h.length)&&(p=h.length);for(var c=0,g=new Array(p);cm.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function i(m){if(Array.isArray(m))return o(m)}function a(m){return m&&m.__esModule?m:{default:m}}function l(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(m){return i(m)||l(m)||v(m)||s()}function v(m,_){if(m){if(typeof m=="string")return o(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(m,_)}}var b=["white"].concat(d(n.propTypesColors)),S=r.default.bool,w=r.default.bool,P=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],C=r.default.string,h=r.default.node,p=r.default.node.isRequired,c=r.default.instanceOf(Object),g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(WP);var ZN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(ZN);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,s){for(var d in s)Object.defineProperty(l,d,{enumerable:!0,get:s[d]})}t(e,{badge:function(){return i},default:function(){return a}});var r=WP,n=o(ZN);function o(l){return l&&l.__esModule?l:{default:l}}var i={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},a=i})(QN);var JN={},$P={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{propTypesCount:function(){return b},propTypesValue:function(){return S},propTypesRatedIcon:function(){return w},propTypesUnratedIcon:function(){return P},propTypesColor:function(){return y},propTypesOnChange:function(){return C},propTypesClassName:function(){return h},propTypesReadonly:function(){return p}});var r=a(ot),n=br;function o(c,g){(g==null||g>c.length)&&(g=c.length);for(var m=0,_=new Array(g);mw.length)&&(P=w.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var h=0,p=new Array(C);h"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(SA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return b},useTheme:function(){return S}});var r=d(Y),n=l(ot),o=l(Xn),i=l(NP),a=l(SA);function l(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(w)}function d(w,P){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=s(P);if(y&&y.has(w))return y.get(w);var C={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in w)if(p!=="default"&&Object.prototype.hasOwnProperty.call(w,p)){var c=h?Object.getOwnPropertyDescriptor(w,p):null;c&&(c.get||c.set)?Object.defineProperty(C,p,c):C[p]=w[p]}return C.default=w,y&&y.set(w,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function b(w){var P=w.value,y=P===void 0?i.default:P,C=w.children,h=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:h},C)}var S=function(){return(0,r.useContext)(v)};b.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Xe);var t2={},Gv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,w){for(var P in w)Object.defineProperty(S,P,{enumerable:!0,get:w[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return b}});var r=o(ot),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,b=r.default.node.isRequired})(Gv);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(Y),n=Gv;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(t2);var CA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=t2,l=Xe,s=Gv;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.className,c=C.children,g=S(C,["className","children"]),m=(0,a.useAccordion)(),_=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;p=p??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),_)),p),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},g,{ref:h,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(CA);var PA={},An={},JS=function(e,t){return JS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},JS(e,t)};function TA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");JS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var N1=function(){return N1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function kA(e,t){return function(r,n){t(r,n,e)}}function R$(e,t,r,n,o,i){function a(h){if(h!==void 0&&typeof h!="function")throw new TypeError("Function expected");return h}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),b,S=!1,w=r.length-1;w>=0;w--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(h){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(h||null))};var C=(0,r[w])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(b=a(C.get))&&(v.get=b),(b=a(C.set))&&(v.set=b),(b=a(C.init))&&o.unshift(b)}else(b=a(C))&&(l==="field"?o.unshift(b):v[s]=b)}d&&Object.defineProperty(d,n.name,v),S=!0}function N$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function AA(){for(var e=[],t=0;t1||s(w,y)})},P&&(o[w]=P(o[w])))}function s(w,P){try{d(n[w](P))}catch(y){S(i[0][3],y)}}function d(w){w.value instanceof Vp?Promise.resolve(w.value.v).then(v,b):S(i[0][2],w)}function v(w){s("next",w)}function b(w){s("throw",w)}function S(w,P){w(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function FA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:Vp(e[o](a)),done:!1}:i?i(a):a}:i}}function jA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof A1=="function"?A1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function zA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var L$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function VA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&r2(t,e,r);return L$(t,e),t}function BA(e){return e&&e.__esModule?e:{default:e}}function UA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function HA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function WA(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function $A(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var D$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function GA(e){function t(i){e.error=e.hasError?new D$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const F$={__extends:TA,__assign:N1,__rest:ch,__decorate:OA,__param:kA,__metadata:EA,__awaiter:MA,__generator:RA,__createBinding:r2,__exportStar:NA,__values:A1,__read:qP,__spread:AA,__spreadArrays:IA,__spreadArray:LA,__await:Vp,__asyncGenerator:DA,__asyncDelegator:FA,__asyncValues:jA,__makeTemplateObject:zA,__importStar:VA,__importDefault:BA,__classPrivateFieldGet:UA,__classPrivateFieldSet:HA,__classPrivateFieldIn:WA,__addDisposableResource:$A,__disposeResources:GA},j$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:$A,get __assign(){return N1},__asyncDelegator:FA,__asyncGenerator:DA,__asyncValues:jA,__await:Vp,__awaiter:MA,__classPrivateFieldGet:UA,__classPrivateFieldIn:WA,__classPrivateFieldSet:HA,__createBinding:r2,__decorate:OA,__disposeResources:GA,__esDecorate:R$,__exportStar:NA,__extends:TA,__generator:RA,__importDefault:BA,__importStar:VA,__makeTemplateObject:zA,__metadata:EA,__param:kA,__propKey:A$,__read:qP,__rest:ch,__runInitializers:N$,__setFunctionName:I$,__spread:AA,__spreadArray:LA,__spreadArrays:IA,__values:A1,default:F$},Symbol.toStringTag,{value:"Module"})),KA=Dv(j$);var qA={exports:{}},Ft={};/** +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(i){var a=r.get(i);return a!==void 0?a:(a=n.get(i))!==void 0?(o(i,a),a):void 0},set:function(i,a){r.has(i)?r.set(i,a):o(i,a)}}}function t$(e){var t=e.separator||":";return function(r){for(var n=0,o=[],i=0,a=0;a1?t-1:0),n=1;ns.length)&&(d=s.length);for(var v=0,b=new Array(d);vC.length)&&(h=C.length);for(var p=0,c=new Array(h);pc.length)&&(g=c.length);for(var m=0,_=new Array(g);mp.length)&&(c=p.length);for(var g=0,m=new Array(c);gT.length)&&(k=T.length);for(var R=0,E=new Array(k);Rg.length)&&(m=g.length);for(var _=0,T=new Array(m);_h.length)&&(p=h.length);for(var c=0,g=new Array(p);cm.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function i(m){if(Array.isArray(m))return o(m)}function a(m){return m&&m.__esModule?m:{default:m}}function l(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(m){return i(m)||l(m)||v(m)||s()}function v(m,_){if(m){if(typeof m=="string")return o(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return o(m,_)}}var b=["white"].concat(d(n.propTypesColors)),S=r.default.bool,w=r.default.bool,P=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],C=r.default.string,h=r.default.node,p=r.default.node.isRequired,c=r.default.instanceOf(Object),g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(WP);var JN={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(JN);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,s){for(var d in s)Object.defineProperty(l,d,{enumerable:!0,get:s[d]})}t(e,{badge:function(){return i},default:function(){return a}});var r=WP,n=o(JN);function o(l){return l&&l.__esModule?l:{default:l}}var i={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},a=i})(ZN);var eA={},$P={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{propTypesCount:function(){return b},propTypesValue:function(){return S},propTypesRatedIcon:function(){return w},propTypesUnratedIcon:function(){return P},propTypesColor:function(){return y},propTypesOnChange:function(){return C},propTypesClassName:function(){return h},propTypesReadonly:function(){return p}});var r=a(ot),n=br;function o(c,g){(g==null||g>c.length)&&(g=c.length);for(var m=0,_=new Array(g);mw.length)&&(P=w.length);for(var y=0,C=new Array(P);yy.length)&&(C=y.length);for(var h=0,p=new Array(C);h"u"?l[d]=a.cloneUnlessOtherwiseSpecified(s,a):a.isMergeableObject(s)?l[d]=(0,t.default)(o[d],s,a):o.indexOf(s)===-1&&l.push(s)}),l}})(CA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{MaterialTailwindTheme:function(){return v},ThemeProvider:function(){return b},useTheme:function(){return S}});var r=d(Y),n=l(ot),o=l(Xn),i=l(NP),a=l(CA);function l(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof WeakMap!="function")return null;var P=new WeakMap,y=new WeakMap;return(s=function(C){return C?y:P})(w)}function d(w,P){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=s(P);if(y&&y.has(w))return y.get(w);var C={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in w)if(p!=="default"&&Object.prototype.hasOwnProperty.call(w,p)){var c=h?Object.getOwnPropertyDescriptor(w,p):null;c&&(c.get||c.set)?Object.defineProperty(C,p,c):C[p]=w[p]}return C.default=w,y&&y.set(w,C),C}var v=(0,r.createContext)(i.default);v.displayName="MaterialTailwindThemeProvider";function b(w){var P=w.value,y=P===void 0?i.default:P,C=w.children,h=(0,o.default)(i.default,y,{arrayMerge:a.default});return r.default.createElement(v.Provider,{value:h},C)}var S=function(){return(0,r.useContext)(v)};b.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Xe);var t2={},Gv={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,w){for(var P in w)Object.defineProperty(S,P,{enumerable:!0,get:w[P]})}t(e,{propTypesOpen:function(){return i},propTypesIcon:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesValue:function(){return v},propTypesChildren:function(){return b}});var r=o(ot),n=br;function o(S){return S&&S.__esModule?S:{default:S}}var i=r.default.bool.isRequired,a=r.default.node,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.instanceOf(Object).isRequired,b=r.default.node.isRequired})(Gv);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{AccordionContext:function(){return i},useAccordion:function(){return a},AccordionContextProvider:function(){return l}});var r=o(Y),n=Gv;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.AccordionContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.AccordionContextProvider"})(t2);var PA={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{AccordionHeader:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=t2,l=Xe,s=Gv;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.className,c=C.children,g=S(C,["className","children"]),m=(0,a.useAccordion)(),_=m.open,T=m.icon,k=m.disabled,R=(0,l.useTheme)().accordion,E=R.styles.base;p=p??"";var A=(0,o.twMerge)((0,n.default)((0,i.default)(E.header.initial),d({},(0,i.default)(E.header.active),_)),p),F=(0,n.default)((0,i.default)(E.header.icon));return r.default.createElement("button",v({},g,{ref:h,type:"button",disabled:k,className:A}),c,r.default.createElement("span",{className:F},T??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});P.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.AccordionHeader";var y=P})(PA);var TA={},An={},JS=function(e,t){return JS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},JS(e,t)};function OA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");JS(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var N1=function(){return N1=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function EA(e,t){return function(r,n){t(r,n,e)}}function N$(e,t,r,n,o,i){function a(h){if(h!==void 0&&typeof h!="function")throw new TypeError("Function expected");return h}for(var l=n.kind,s=l==="getter"?"get":l==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,v=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),b,S=!1,w=r.length-1;w>=0;w--){var P={};for(var y in n)P[y]=y==="access"?{}:n[y];for(var y in n.access)P.access[y]=n.access[y];P.addInitializer=function(h){if(S)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(h||null))};var C=(0,r[w])(l==="accessor"?{get:v.get,set:v.set}:v[s],P);if(l==="accessor"){if(C===void 0)continue;if(C===null||typeof C!="object")throw new TypeError("Object expected");(b=a(C.get))&&(v.get=b),(b=a(C.set))&&(v.set=b),(b=a(C.init))&&o.unshift(b)}else(b=a(C))&&(l==="field"?o.unshift(b):v[s]=b)}d&&Object.defineProperty(d,n.name,v),S=!0}function A$(e,t,r){for(var n=arguments.length>2,o=0;o0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function IA(){for(var e=[],t=0;t1||s(w,y)})},P&&(o[w]=P(o[w])))}function s(w,P){try{d(n[w](P))}catch(y){S(i[0][3],y)}}function d(w){w.value instanceof Vp?Promise.resolve(w.value.v).then(v,b):S(i[0][2],w)}function v(w){s("next",w)}function b(w){s("throw",w)}function S(w,P){w(P),i.shift(),i.length&&s(i[0][0],i[0][1])}}function jA(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:Vp(e[o](a)),done:!1}:i?i(a):a}:i}}function zA(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof A1=="function"?A1(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(l,s){a=e[i](a),o(l,s,a.done,a.value)})}}function o(i,a,l,s){Promise.resolve(s).then(function(d){i({value:d,done:l})},a)}}function VA(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var D$=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function BA(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&r2(t,e,r);return D$(t,e),t}function UA(e){return e&&e.__esModule?e:{default:e}}function HA(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function WA(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function $A(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function GA(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var F$=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function KA(e){function t(i){e.error=e.hasError?new F$(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}const j$={__extends:OA,__assign:N1,__rest:ch,__decorate:kA,__param:EA,__metadata:MA,__awaiter:RA,__generator:NA,__createBinding:r2,__exportStar:AA,__values:A1,__read:qP,__spread:IA,__spreadArrays:LA,__spreadArray:DA,__await:Vp,__asyncGenerator:FA,__asyncDelegator:jA,__asyncValues:zA,__makeTemplateObject:VA,__importStar:BA,__importDefault:UA,__classPrivateFieldGet:HA,__classPrivateFieldSet:WA,__classPrivateFieldIn:$A,__addDisposableResource:GA,__disposeResources:KA},z$=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:GA,get __assign(){return N1},__asyncDelegator:jA,__asyncGenerator:FA,__asyncValues:zA,__await:Vp,__awaiter:RA,__classPrivateFieldGet:HA,__classPrivateFieldIn:$A,__classPrivateFieldSet:WA,__createBinding:r2,__decorate:kA,__disposeResources:KA,__esDecorate:N$,__exportStar:AA,__extends:OA,__generator:NA,__importDefault:UA,__importStar:BA,__makeTemplateObject:VA,__metadata:MA,__param:EA,__propKey:I$,__read:qP,__rest:ch,__runInitializers:A$,__setFunctionName:L$,__spread:IA,__spreadArray:DA,__spreadArrays:LA,__values:A1,default:j$},Symbol.toStringTag,{value:"Module"})),qA=Dv(z$);var YA={exports:{}},Ft={};/** * @license React * react.production.min.js * @@ -78,7 +78,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Kv=Symbol.for("react.element"),z$=Symbol.for("react.portal"),V$=Symbol.for("react.fragment"),B$=Symbol.for("react.strict_mode"),U$=Symbol.for("react.profiler"),H$=Symbol.for("react.provider"),W$=Symbol.for("react.context"),$$=Symbol.for("react.forward_ref"),G$=Symbol.for("react.suspense"),K$=Symbol.for("react.memo"),q$=Symbol.for("react.lazy"),G6=Symbol.iterator;function Y$(e){return e===null||typeof e!="object"?null:(e=G6&&e[G6]||e["@@iterator"],typeof e=="function"?e:null)}var YA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XA=Object.assign,QA={};function dh(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}dh.prototype.isReactComponent={};dh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};dh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=dh.prototype;function YP(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||YA}var XP=YP.prototype=new ZA;XP.constructor=YP;XA(XP,dh.prototype);XP.isPureReactComponent=!0;var K6=Array.isArray,JA=Object.prototype.hasOwnProperty,QP={current:null},eI={key:!0,ref:!0,__self:!0,__source:!0};function tI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)JA.call(t,n)&&!eI.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Cg=e=>e%1?Number(e.toFixed(5)):e,av=/(-)?([\d]*\.?[\d])+/g,eC=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,nG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function qv(e){return typeof e=="string"}const Yv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},JP=Object.assign(Object.assign({},Yv),{transform:oI(0,1)}),oG=Object.assign(Object.assign({},Yv),{default:1}),Xv=e=>({test:t=>qv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),iG=Xv("deg"),wp=Xv("%"),aG=Xv("px"),lG=Xv("vh"),sG=Xv("vw"),uG=Object.assign(Object.assign({},wp),{parse:e=>wp.parse(e)/100,transform:e=>wp.transform(e*100)}),e3=(e,t)=>r=>!!(qv(r)&&nG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),iI=(e,t,r)=>n=>{if(!qv(n))return n;const[o,i,a,l]=n.match(av);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},lg={test:e3("hsl","hue"),parse:iI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+wp.transform(Cg(t))+", "+wp.transform(Cg(r))+", "+Cg(JP.transform(n))+")"},cG=oI(0,255),kb=Object.assign(Object.assign({},Yv),{transform:e=>Math.round(cG(e))}),Jf={test:e3("rgb","red"),parse:iI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+kb.transform(e)+", "+kb.transform(t)+", "+kb.transform(r)+", "+Cg(JP.transform(n))+")"};function dG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const tC={test:e3("#"),parse:dG,transform:Jf.transform},t3={test:e=>Jf.test(e)||tC.test(e)||lg.test(e),parse:e=>Jf.test(e)?Jf.parse(e):lg.test(e)?lg.parse(e):tC.parse(e),transform:e=>qv(e)?e:e.hasOwnProperty("red")?Jf.transform(e):lg.transform(e)},aI="${c}",lI="${n}";function fG(e){var t,r,n,o;return isNaN(e)&&qv(e)&&((r=(t=e.match(av))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(eC))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function sI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(eC);n&&(r=n.length,e=e.replace(eC,aI),t.push(...n.map(t3.parse)));const o=e.match(av);return o&&(e=e.replace(av,lI),t.push(...o.map(Yv.parse))),{values:t,numColors:r,tokenised:e}}function uI(e){return sI(e).values}function cI(e){const{values:t,numColors:r,tokenised:n}=sI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function hG(e){const t=uI(e);return cI(e)(t.map(pG))}const dI={test:fG,parse:uI,createTransformer:cI,getAnimatableNone:hG},gG=new Set(["brightness","contrast","saturate","opacity"]);function vG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(av)||[];if(!n)return e;const o=r.replace(n,"");let i=gG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const mG=/([a-z-]*)\(.*?\)/g,yG=Object.assign(Object.assign({},dI),{getAnimatableNone:e=>{const t=e.match(mG);return t?t.map(vG).join(" "):e}});bn.alpha=JP;bn.color=t3;bn.complex=dI;bn.degrees=iG;bn.filter=yG;bn.hex=tC;bn.hsla=lg;bn.number=Yv;bn.percent=wp;bn.progressPercentage=uG;bn.px=aG;bn.rgbUnit=kb;bn.rgba=Jf;bn.scale=oG;bn.vh=lG;bn.vw=sG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const fI=1/60*1e3,bG=typeof performance<"u"?()=>performance.now():()=>Date.now(),pI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(bG()),fI);function wG(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const b=v&&o,S=b?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),b&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=wG(()=>lv=!0),e),{}),xG=Qv.reduce((e,t)=>{const r=n2[t];return e[t]=(n,o=!1,i=!1)=>(lv||TG(),r.schedule(n,o,i)),e},{}),SG=Qv.reduce((e,t)=>(e[t]=n2[t].cancel,e),{}),CG=Qv.reduce((e,t)=>(e[t]=()=>n2[t].process(_p),e),{}),PG=e=>n2[e].process(_p),hI=e=>{lv=!1,_p.delta=rC?fI:Math.max(Math.min(e-_p.timestamp,_G),1),_p.timestamp=e,nC=!0,Qv.forEach(PG),nC=!1,lv&&(rC=!1,pI(hI))},TG=()=>{lv=!0,rC=!0,nC||pI(hI)},OG=()=>_p;Cd.cancelSync=SG;Cd.default=xG;Cd.flushSync=CG;Cd.getFrameData=OG;Object.defineProperty(lt,"__esModule",{value:!0});var gI=KA,Bp=nI,Aa=bn,o2=Cd;function kG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var EG=kG(o2);const sv=(e,t,r)=>Math.min(Math.max(r,e),t),G_=.001,MG=.01,Y6=10,RG=.05,NG=1;function AG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Bp.warning(e<=Y6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=sv(RG,NG,a),e=sv(MG,Y6,e/1e3),a<1?(o=d=>{const v=d*a,b=v*e,S=v-r,w=oC(d,a),P=Math.exp(-b);return G_-S/w*P},i=d=>{const b=d*a*e,S=b*r+r,w=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-b),y=oC(Math.pow(d,2),a);return(-o(d)+G_>0?-1:1)*((S-w)*P)/y}):(o=d=>{const v=Math.exp(-d*e),b=(d-r)*e+1;return-G_+v*b},i=d=>{const v=Math.exp(-d*e),b=(r-d)*(e*e);return v*b});const l=5/e,s=LG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const IG=12;function LG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function jG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!X6(e,FG)&&X6(e,DG)){const r=AG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function i2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=gI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:b,isResolvedFromDuration:S}=jG(i),w=Q6,P=Q6;function y(){const C=v?-(v/1e3):0,h=r-t,p=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),p<1){const g=oC(c,p);w=m=>{const _=Math.exp(-p*c*m);return r-_*((C+p*c*h)/g*Math.sin(g*m)+h*Math.cos(g*m))},P=m=>{const _=Math.exp(-p*c*m);return p*c*_*(Math.sin(g*m)*(C+p*c*h)/g+h*Math.cos(g*m))-_*(Math.cos(g*m)*(C+p*c*h)-g*h*Math.sin(g*m))}}else if(p===1)w=g=>r-Math.exp(-c*g)*(h+(C+c*h)*g);else{const g=c*Math.sqrt(p*p-1);w=m=>{const _=Math.exp(-p*c*m),T=Math.min(g*m,300);return r-_*((C+p*c*h)*Math.sinh(T)+g*h*Math.cosh(T))/g}}}return y(),{next:C=>{const h=w(C);if(S)a.done=C>=b;else{const p=P(C)*1e3,c=Math.abs(p)<=n,g=Math.abs(r-h)<=o;a.done=c&&g}return a.value=a.done?r:h,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}i2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Q6=e=>0,r3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},a2=(e,t,r)=>-r*e+r*t+e;function K_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Z6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=K_(s,l,e+1/3),i=K_(s,l,e),a=K_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const zG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},VG=[Aa.hex,Aa.rgba,Aa.hsla],J6=e=>VG.find(t=>t.test(e)),ek=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,n3=(e,t)=>{let r=J6(e),n=J6(t);Bp.invariant(!!r,ek(e)),Bp.invariant(!!n,ek(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Z6(o),r=Aa.rgba),n===Aa.hsla&&(i=Z6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=zG(o[s],i[s],l));return a.alpha=a2(o.alpha,i.alpha,l),r.transform(a)}},BG={x:0,y:0,z:0},iC=e=>typeof e=="number",UG=(e,t)=>r=>t(e(r)),o3=(...e)=>e.reduce(UG);function vI(e,t){return iC(e)?r=>a2(e,t,r):Aa.color.test(e)?n3(e,t):i3(e,t)}const mI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>vI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=vI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function tk(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=tk(e),o=tk(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?o3(mI(n.parsed,o.parsed),r):(Bp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},WG=(e,t)=>r=>a2(e,t,r);function $G(e){if(typeof e=="number")return WG;if(typeof e=="string")return Aa.color.test(e)?n3:i3;if(Array.isArray(e))return mI;if(typeof e=="object")return HG}function GG(e,t,r){const n=[],o=r||$G(e[0]),i=e.length-1;for(let a=0;ar(r3(e,t,n))}function qG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=r3(e[i],e[i+1],o);return t[i](l)}}function a3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Bp.invariant(i===t.length,"Both input and output ranges must be the same length"),Bp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=GG(t,n,o),l=i===2?KG(e,a):qG(e,a);return r?s=>l(sv(e[0],e[i-1],s)):l}const Zv=e=>t=>1-e(1-t),l2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yI=e=>t=>Math.pow(t,e),l3=e=>t=>t*t*((e+1)*t-e),bI=e=>{const t=l3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},wI=1.525,YG=4/11,XG=8/11,QG=9/10,_I=e=>e,s3=yI(2),ZG=Zv(s3),xI=l2(s3),SI=e=>1-Math.sin(Math.acos(e)),CI=Zv(SI),JG=l2(CI),u3=l3(wI),eK=Zv(u3),tK=l2(u3),rK=bI(wI),nK=4356/361,oK=35442/1805,iK=16061/1805,I1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-I1(1-e*2)):.5*I1(e*2-1)+.5;function sK(e,t){return e.map(()=>t||xI).splice(0,e.length-1)}function uK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function cK(e,t){return e.map(r=>r*t)}function Pg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=cK(n&&n.length===a.length?n:uK(a),o);function s(){return a3(l,a,{ease:Array.isArray(r)?r:sK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function PI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const b=-l*Math.exp(-v/n);return a.done=!(b>o||b<-o),a.value=a.done?d:d+b,a},flipTarget:()=>{}}}const rk={keyframes:Pg,spring:i2,decay:PI};function dK(e){if(Array.isArray(e.to))return Pg;if(rk[e.type])return rk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Pg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?i2:Pg}function TI(e,t,r=0){return e-t-r}function fK(e,t,r=0,n=!0){return n?TI(t+-e,t,r):t-(e-t)+r}function pK(e,t,r,n){return n?e>=t+r:e<=-r}const hK=e=>{const t=({delta:r})=>e(r);return{start:()=>EG.default.update(t,!0),stop:()=>o2.cancelSync.update(t)}};function OI(e){var t,r,{from:n,autoplay:o=!0,driver:i=hK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:b,onComplete:S,onRepeat:w,onUpdate:P}=e,y=gI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,h,p=0,c=y.duration,g,m=!1,_=!0,T;const k=dK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=a3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){p++,s==="reverse"?(_=p%2===0,a=fK(a,c,d,_)):(a=TI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,w&&w()}function A(){h.stop(),S&&S()}function F(B){if(_||(B=-B),a+=B,!m){const H=R.next(Math.max(0,a));g=H.value,T&&(g=T(g)),m=_?H.done:a<=0}P==null||P(g),m&&(p===0&&(c??(c=a)),p{b==null||b(),h.stop()}}}function kI(e,t){return t?e*(1e3/t):0}function gK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:b,onComplete:S,onStop:w}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;b==null||b(g),(m=c.onUpdate)===null||m===void 0||m.call(c,g)},onComplete:S,onStop:w}))}function p(c){h(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))p({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const g=C(c),m=g===r?-1:1;let _,T;const k=R=>{_=T,T=R,t=kI(R-_,o2.getFrameData().delta),(m===1&&R>g||m===-1&&RP==null?void 0:P.stop()}}const EI=e=>e*180/Math.PI,vK=(e,t=BG)=>EI(Math.atan2(t.y-e.y,t.x-e.x)),mK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},yK=e=>e,c3=(e=yK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},bK=c3(),wK=c3(Math.sqrt),MI=e=>e*Math.PI/180,L1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),aC=e=>L1(e)&&e.hasOwnProperty("z"),Ny=(e,t)=>Math.abs(e-t);function _K(e,t){if(iC(e)&&iC(t))return Ny(e,t);if(L1(e)&&L1(t)){const r=Ny(e.x,t.x),n=Ny(e.y,t.y),o=aC(e)&&aC(t)?Ny(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const xK=(e,t,r)=>(t=MI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),RI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),NI=(e,t,r,n=0)=>RI(e+r*(t-e)/Math.max(n,r)),SK=(e=50)=>{let t=0,r=0;return n=>{const o=o2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?NI(t,n,i,e):t;return r=o,t=a,a}},CK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function PK(e,t){return e/(1e3/t)}const TK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},AI=(e,t)=>1-3*t+3*e,II=(e,t)=>3*t-6*e,LI=e=>3*e,D1=(e,t,r)=>((AI(t,r)*e+II(t,r))*e+LI(t))*e,DI=(e,t,r)=>3*AI(t,r)*e*e+2*II(t,r)*e+LI(t),OK=1e-7,kK=10;function EK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=D1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>OK&&++l=RK?NK(a,b,e,r):S===0?b:EK(a,l,l+Ay,e,r)}return a=>a===0||a===1?a:D1(i(a),t,n)}const IK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return sv(0,1,o/e)};lt.angle=vK;lt.animate=OI;lt.anticipate=rK;lt.applyOffset=mK;lt.attract=bK;lt.attractExpo=wK;lt.backIn=u3;lt.backInOut=tK;lt.backOut=eK;lt.bounceIn=aK;lt.bounceInOut=lK;lt.bounceOut=I1;lt.circIn=SI;lt.circInOut=JG;lt.circOut=CI;lt.clamp=sv;lt.createAnticipate=bI;lt.createAttractor=c3;lt.createBackIn=l3;lt.createExpoIn=yI;lt.cubicBezier=AK;lt.decay=PI;lt.degreesToRadians=MI;lt.distance=_K;lt.easeIn=s3;lt.easeInOut=xI;lt.easeOut=ZG;lt.inertia=gK;lt.interpolate=a3;lt.isPoint=L1;lt.isPoint3D=aC;lt.keyframes=Pg;lt.linear=_I;lt.mirrorEasing=l2;lt.mix=a2;lt.mixColor=n3;lt.mixComplex=i3;lt.pipe=o3;lt.pointFromVector=xK;lt.progress=r3;lt.radiansToDegrees=EI;lt.reverseEasing=Zv;lt.smooth=SK;lt.smoothFrame=NI;lt.snap=CK;lt.spring=i2;lt.steps=IK;lt.toDecimal=RI;lt.velocityPerFrame=PK;lt.velocityPerSecond=kI;lt.wrap=TK;class LK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const q_=new WeakMap;function d3(e){return q_.has(e)||q_.set(e,{transforms:[],values:new Map}),q_.get(e)}function DK(e,t){return e.has(t)||e.set(t,new LK),e.get(t)}function FI(e,t){e.indexOf(t)===-1&&e.push(t)}function jI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const zI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",uv=e=>Array.isArray(e)&&!ds(e[0]),FK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function VI(e,t){return uv(e)?e[FK(0,e.length,t)]:e}const f3=(e,t,r)=>-r*e+r*t+e,p3=()=>{},rs=e=>e,s2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function h3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=s2(0,t,n);e.push(f3(r,1,o))}}function g3(e){const t=[0];return h3(t,e-1),t}function BI(e,t=g3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&h3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),F1=e=>typeof e=="object"&&!!e.createAnimation,jK=e=>typeof e=="function",v3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function HI(e,t){return t?e*(1e3/t):0}const zK=["","X","Y","Z"],VK=["translate","scale","rotate","skew"],Up={x:"translateX",y:"translateY",z:"translateZ"},nk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},BK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:nk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:nk},Hp=new Map,u2=e=>`--motion-${e}`,j1=["x","y","z"];VK.forEach(e=>{zK.forEach(t=>{j1.push(e+t),Hp.set(u2(e+t),BK[e])})});const UK=(e,t)=>j1.indexOf(e)-j1.indexOf(t),HK=new Set(j1),c2=e=>HK.has(e),WK=(e,t)=>{Up[t]&&(t=Up[t]);const{transforms:r}=d3(e);FI(r,t),e.style.transform=WI(r)},WI=e=>e.sort(UK).reduce($K,"").trim(),$K=(e,t)=>`${e} ${t}(var(${u2(t)}))`,lC=e=>e.startsWith("--"),ok=new Set;function GK(e){if(!ok.has(e)){ok.add(e);try{const{syntax:t,initialValue:r}=Hp.has(e)?Hp.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const $I=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,KK=1e-7,qK=12;function YK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=$I(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>KK&&++lYK(i,0,1,e,r);return i=>i===0||i===1?i:$I(o(i),t,n)}const XK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return zI(0,1,o/e)},QK={ease:sg(.25,.1,.25,1),"ease-in":sg(.42,0,1,1),"ease-in-out":sg(.42,0,.58,1),"ease-out":sg(0,0,.58,1)},ZK=/\((.*?)\)/;function sC(e){if(jK(e))return e;if(UI(e))return sg(...e);const t=QK[e];if(t)return t;if(e.startsWith("steps")){const r=ZK.exec(e);if(r){const n=r[1].split(",");return XK(parseFloat(n[0]),n[1].trim())}}return rs}let JK=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,w)=>{this.resolve=S,this.reject=w}),n=n||Go.easing,F1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=uv(n)?rs:sC(n),this.updateDuration(o);const b=BI(r,s,uv(n)?n.map(sC):rs);this.tick=S=>{var w;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),h=y%1;!h&&y>=1&&(h=1),h===1&&C--;const p=C%2;(d==="reverse"||d==="alternate"&&p||d==="alternate-reverse"&&!p)&&(h=1-h);const c=P>=this.totalDuration?1:Math.min(h,1),g=b(this.easing(c));t(g),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(w=this.resolve)===null||w===void 0||w.call(this,g)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ik=e=>UI(e)?eq(e):e,eq=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ak=e=>document.createElement("div").animate(e,{duration:.001}),lk={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ak({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ak({opacity:[0,1]}).finished},Y_={},Mb={};for(const e in lk)Mb[e]=()=>(Y_[e]===void 0&&(Y_[e]=lk[e]()),Y_[e]);function tq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function z1(e){return Up[e]&&(e=Up[e]),c2(e)?u2(e):e}const ep={get:(e,t)=>{t=z1(t);let r=lC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Hp.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=z1(t),lC(t)?e.style.setProperty(t,r):e.style[t]=r}};function KI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function rq(){return window.__MOTION_DEV_TOOLS_RECORD}function d2(e,t,r,n={}){const o=rq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:b=Go.easing,direction:S,offset:w,allowWebkitAcceleration:P=!1}=n;const y=d3(e);let C=Mb.waapi();const h=c2(t);h&&WK(e,t);const p=z1(t),c=DK(y.values,p),g=Hp.get(p);return KI(c.animation,!(F1(b)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=ep.get(e,p))!==null&&T!==void 0?T:g==null?void 0:g.initialValue)!==null&&k!==void 0?k:0};let _=tq(GI(r),m);if(F1(b)){const T=b.createAnimation(_,m,h,p,c);b=T.easing,T.keyframes!==void 0&&(_=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(lC(p)&&(Mb.cssRegisterProperty()?GK(p):C=!1),C){g&&(_=_.map(R=>ds(R)?g.toDefaultUnit(R):R)),_.length===1&&(!Mb.partialKeyframes()||i)&&_.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:uv(b)?void 0:ik(b),direction:S,iterations:v+1,fill:"both"};a=e.animate({[p]:_,offset:w,easing:uv(b)?b.map(ik):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=_[_.length-1];a.finished.then(()=>{ep.set(e,p,k),a.cancel()}).catch(p3),P||(a.playbackRate=1.000001)}else if(h){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(m()));const T=k=>{g&&(k=g.toDefaultUnit(k)),ep.set(e,p,k)};a=new JK(T,_,Object.assign(Object.assign({},n),{duration:l,easing:b}))}else{const T=_[_.length-1];ep.set(e,p,g&&ds(T)?g.toDefaultUnit(T):T)}return i&&o(e,t,_,{duration:l,delay:s,easing:b,repeat:v,offset:w},"motion-one"),c.setAnimation(a),a}}const m3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function f2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const nq=e=>e(),y3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(nq).filter(Boolean),duration:r,options:t},iq),oq=e=>e.animations[0],iq={get:(e,t)=>{const r=oq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(aq)).catch(p3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>KI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function lq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:sq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=sC(n)(s/d)*d}return t+s}}function sq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function qI(e,t,r){return typeof e=="function"?e(t,r):e}function uq(e,t,r={}){e=f2(e);const n=e.length,o=[];for(let i=0;it&&o.atd2(...i)).filter(Boolean);return y3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function hq(e,t={}){var{defaultOptions:r={}}=t,n=ch(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let b=0;b"0",ne);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=qI(y.delay,c,p)||0,V=d+F,B=V+E;let{offset:H=g3(k.length)}=R;H.length===1&&H[0]===0&&(H[1]=1);const q=length-k.length;q>0&&h3(H,q),k.length===1&&k.unshift(null),dq(T,k,A,H,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((b,S)=>{for(const w in b){const P=b[w];P.sort(fq);const y=[],C=[],h=[];for(let p=0;pt/(2*Math.sqrt(e*r));function bq(e,t,r){return e=t||e>t&&r<=t}const YI=({stiffness:e=xp.stiffness,damping:t=xp.damping,mass:r=xp.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,b=yq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let w;if(b<1){const P=v*Math.sqrt(1-b*b);w=y=>o-Math.exp(-b*v*y)*((-i+b*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else w=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=w(P);const y=P===0?i:b3(w,P,s.current),C=Math.abs(y)<=a,h=Math.abs(o-s.current)<=l;return s.done=C&&h,s.hasReachedTarget=bq(n,o,s.current),s}},wq=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const b={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,w=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),p=T=>C+h(T),c=T=>{const k=h(T),R=p(T);b.done=Math.abs(k)<=d,b.current=b.done?C:R};let g,m;const _=T=>{S(b.current)&&(g=T,m=YI({from:b.current,to:w(b.current),velocity:b3(p,T,b.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return _(0),T=>{let k=!1;return!m&&g===void 0&&(k=!0,c(T),_(T)),g!==void 0&&T>g?(b.hasReachedTarget=!0,m(T-g)):(b.hasReachedTarget=!1,!k&&c(T),b)}},X_=10,_q=1e4;function xq(e,t=rs){let r,n=X_,o=e(0);const i=[t(o.current)];for(;!o.done&&n<_q;)o=e(n),i.push(t(o.done?o.target:o.current)),r===void 0&&o.hasReachedTarget&&(r=n),n+=X_;const a=n-X_;return i.length===1&&i.push(o.current),{keyframes:i,duration:a/1e3,overshootDuration:(r??a)/1e3}}function XI(e){const t=new WeakMap;return(r={})=>{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,xq(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var b,S;let w;const P=a.length;if(s&&P<=2&&a.every(Sq)){const C=a[P-1],h=P===1?null:a[0];let p=0,c=0;const g=v==null?void 0:v.generator;if(g){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=g(E).current;c=(b=h)!==null&&b!==void 0?b:A,(P===1||P===2&&a[0]===null)&&(p=b3(F=>g(F).current,E,A))}else c=(S=h)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,p,d==null?void 0:d.includes("scale")),_=i(m);w=Object.assign(Object.assign({},_),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else w={easing:"ease",duration:i(o(0,100)).overshootDuration};return w}}}}const Sq=e=>typeof e!="string",Cq=XI(YI),Pq=XI(wq),Tq={any:0,all:1};function QI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=f2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const b=a.get(v.target);if(v.isIntersecting!==!!b)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else b&&(b(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Tq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Rb=new WeakMap;let qs;function Oq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function kq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Rb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return Oq(e,r)}})})}function Eq(e){e.forEach(kq)}function Mq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(Eq))}function Rq(e,t){qs||Mq();const r=f2(e);return r.forEach(n=>{let o=Rb.get(n);o||(o=new Set,Rb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Rb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Nb=new Set;let Tg;function Nq(){Tg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Nb.forEach(r=>r(t))},window.addEventListener("resize",Tg)}function Aq(e){return Nb.add(e),Tg||Nq(),()=>{Nb.delete(e),!Nb.size&&Tg&&(Tg=void 0)}}function ZI(e,t){return typeof e=="function"?Aq(e):Rq(e,t)}const Iq=50,uk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Lq=()=>({time:0,x:uk(),y:uk()}),Dq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ck(e,t,r,n){const o=r[t],{length:i,position:a}=Dq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=s2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Iq?0:HI(o.current-l,d)}function Fq(e,t,r){ck(e,"x",t,r),ck(e,"y",t,r),t.time=r}function jq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const JI={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},uC={start:0,center:.5,end:1};function dk(e,t,r=0){let n=0;if(uC[e]!==void 0&&(e=uC[e]),v3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const zq=[0,0];function Vq(e,t,r,n){let o=Array.isArray(e)?e:zq,i=0,a=0;return ds(e)?o=[e,e]:v3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,uC[e]?e:"0"]),i=dk(o[0],r,n),a=dk(o[1],t),i-a}const Bq={x:0,y:0};function Uq(e,t,r){let{offset:n=JI.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?jq(o,e):Bq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const b=n.length;for(let S=0;SHq(e,n.target,r),update:i=>{Fq(e,r,i),(n.offset||n.target)&&Uq(e,r,n)},notify:typeof t=="function"?()=>t(r):$q(t,r[o])}}function $q(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const V0=new WeakMap,fk=new WeakMap,Q_=new WeakMap,pk=e=>e===document.documentElement?window:e;function Gq(e,t={}){var{container:r=document.documentElement}=t,n=ch(t,["container"]);let o=Q_.get(r);o||(o=new Set,Q_.set(r,o));const i=Lq(),a=Wq(r,e,i,n);if(o.add(a),!V0.has(r)){const d=()=>{const b=performance.now();for(const S of o)S.measure();for(const S of o)S.update(b);for(const S of o)S.notify()};V0.set(r,d);const v=pk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&fk.set(r,ZI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=V0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=Q_.get(r);if(!v||(v.delete(a),v.size))return;const b=V0.get(r);V0.delete(r),b&&(pk(r).removeEventListener("scroll",b),(d=fk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",b))}}function Kq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!qq(e,t):e!==t}function qq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),Jq=e=>e.animateUpdates(),gk=e=>e.next(),vk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function cC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function mk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const eY={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=ch(n,["once"]);return QI(e,a=>{if(t(),mk(e,"viewenter",a),!o)return l=>{r(),mk(e,"viewleave",l)}},i)}},yk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),cC(e,t,n))},tY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=yk(e,"hoverstart",t),o=yk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},rY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),cC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),cC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Ab={inView:eY,hover:tY,press:rY},bk=["initial","animate",...Object.keys(Ab),"exit"],dC=new WeakMap;function nY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of bk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=hk(e[l]||a[l],e.variants)||{},d=ch(s,["transition"]);const v=Object.assign({},d);function*b(){var y,C;const h=d;d={};const p={};for(const T of bk){if(!o[T])continue;const k=hk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],p[R]=m3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(h)]),g=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),Kq(h[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=ep.get(r,T)),g.push(d2(r,T,d[T],p[T])))}),yield;const m=g.map(T=>T()).filter(Boolean);if(!m.length)return;const _=d;r.dispatchEvent(vk("motionstart",_)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(vk("motioncomplete",_))}).catch(p3)}const S=(y,C)=>()=>{o[y]=C,Z_(P)},w=()=>{for(const y in Ab){const C=Ab[y].isActive(e),h=i[y];C&&!h?i[y]=Ab[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&h&&(h(),delete i[y])}},P={update:y=>{r&&(e=y,w(),Z_(P))},setActive:(y,C)=>{r&&(o[y]=C,Z_(P))},animateUpdates:b,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,dC.set(r,P),w(),()=>{dC.delete(r),Qq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function eL(e){const t={},r=[];for(let n in e){const o=e[n];c2(n)&&(Up[n]&&(n=Up[n]),r.push(n),n=u2(n));let i=Array.isArray(o)?o[0]:o;const a=Hp.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=WI(r)),t}const oY=e=>`-${e.toLowerCase()}`,iY=e=>e.replace(/[A-Z]/g,oY);function aY(e={}){const t=eL(e);let r="";for(const n in t)r+=n.startsWith("--")?n:iY(n),r+=`: ${t[n]}; `;return r}const lY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:JI,animate:uq,animateStyle:d2,createMotionState:nY,createStyleString:aY,createStyles:eL,getAnimationData:d3,getStyleName:z1,glide:Pq,inView:QI,mountedStates:dC,resize:ZI,scroll:Gq,spring:Cq,stagger:lq,style:ep,timeline:pq,withControls:y3},Symbol.toStringTag,{value:"Module"})),sY=Dv(lY);function uY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dY=uY(function(e){return cY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const fY=Object.freeze(Object.defineProperty({__proto__:null,default:dY},Symbol.toStringTag,{value:"Module"})),pY=Dv(fY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=KA,r=eG,n=nI,o=bn,i=lt,a=Cd,l=sY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),b=s(r),S=s(a),w=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:w(["layout","layoutId","drag"]),animation:w(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:w(["exit"]),drag:w(["drag","dragControls"]),focus:w(["whileFocus"]),hover:w(["whileHover","onHoverStart","onHoverEnd"]),tap:w(["whileTap","onTap","onTapStart","onTapCancel"]),pan:w(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:w(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),h=Object.keys(P),p=h.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var zt={};function Ht(x){Object.assign(zt,x)}var mt=["","X","Y","Z"],Ot=["translate","scale","rotate","skew"],Jt=["transformPerspective","x","y","z"];Ot.forEach(function(x){return mt.forEach(function(M){return Jt.push(x+M)})});function Dr(x,M){return Jt.indexOf(x)-Jt.indexOf(M)}var ln=new Set(Jt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function nr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||nr(x)||(I||D!==void 0)&&(!!zt[x]||x==="opacity")}var Yt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,U=G===void 0?!0:G,ee=M.allowTransformNone,te=ee===void 0?!0:ee,ae="";$.sort(Dr);for(var de=!1,pe=$.length,me=0;me"u"?Y5:Nh;te(ee,U.current,M,G)}var q5={some:0,all:1};function Nh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,U=G===void 0?"some":G,ee=D.once;r.useEffect(function(){if(x){var te={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof U=="number"?U:q5[U]},ae=function(de){var pe,me=de.isIntersecting;if(M.isInView!==me&&(M.isInView=me,!(ee&&!me&&M.hasEnteredView))){me&&(M.hasEnteredView=!0),(pe=I.animationState)===null||pe===void 0||pe.setActive(e.AnimationType.InView,me);var u=I.getProps(),f=me?u.onViewportEnter:u.onViewportLeave;f==null||f(de)}};return Jr(I.getInstance(),te,ae)}},[x,z,$,U])}function Y5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var U=I.getProps().onViewportEnter;U==null||U(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Rh),tap:ii($5),focus:ii(He),hover:ii(bm)},X5=0,Q5=function(){return X5++},jo=function(){return ue(Q5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Ah(r.useContext(T))}function Ah(x){return x===null?!0:x.isPresent}function Ih(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Rt,ve=Array.isArray(Ae)?Ae:[Ae],Pe=ve.reduce($,{});wt===!1&&(Pe={});var Be=Ve.prevResolvedValues,tt=Be===void 0?{}:Be,yt=t.__assign(t.__assign({},tt),Pe),ct=function(nt){_e=!0,O.delete(nt),Ve.needsAnimating[nt]=!0};for(var vt in yt){var ft=Pe[vt],Ne=tt[vt];N.hasOwnProperty(vt)||(ft!==Ne?bt(ft)&&bt(Ne)?!Ih(ft,Ne)||On?ct(vt):Ve.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):Ve.protectedKeys[vt]=!0)}Ve.prevProp=Ae,Ve.prevResolvedValues=Pe,Ve.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(_e=!1),_e&&!er&&f.push.apply(f,t.__spreadArray([],t.__read(ve.map(function(nt){return{animation:nt,options:t.__assign({type:Ee},ae)}})),!1))},K=0;K=3;if(!(!me&&!u)){var f=pe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},f),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;me||(L&&L(z.lastMoveEvent,pe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,pe)}}},this.handlePointerMove=function(pe,me){if(z.lastMoveEvent=pe,z.lastMoveEventInfo=Vo(me,z.transformPagePoint),It(pe)&&pe.buttons===0){z.handlePointerUp(pe,me);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(pe,me){z.end();var u=z.handlers,f=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(me,z.transformPagePoint),z.history);z.startEvent&&f&&f(pe,N),O&&O(pe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var U=wo(M),ee=Vo(U,this.transformPagePoint),te=ee.point,ae=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},te),{timestamp:ae})];var de=I.onSessionStart;de&&de(M,Ja(ee,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Om(M)),velocity:fr(M,.1)}}function Om(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Uh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Hh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Wh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function km(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function Em(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function $h(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return $h(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function Gh(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Kh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var U,ee,te=0;teM?I="y":Math.abs(x.x)>M&&(I="x"),I}function t_(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new J5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Im(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,U=r.useRef(null),ee=r.useContext(g).transformPagePoint,te={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,pe){U.current=null,D&&D(de,pe)}};r.useEffect(function(){U.current!==null&&U.current.updateHandlers(te)});function ae(de){U.current=new Nl(de,te,{transformPagePoint:ee})}Ol($,"pointerdown",G&&ae),Ya(function(){return U.current&&U.current.end()})}var Xh={pan:ii(Im),drag:ii(t_)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,U=D[G];($=M[z])===null||$===void 0||$.call(M),U&&(M[z]=I[G](U))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,te=Vm(M,x,U);return $.length&&$.forEach(function(ae){var de=t.__read(ae,2),pe=de[0],me=de[1];x.getValue(pe).set(me)}),x.syncRender(),ee!==null&&window.scrollTo({top:ee}),{target:te,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Um(x,M,I,D){return Zh(M)?Bm(x,M,I,D):{target:M,transitionEnd:D}}var Hm=function(x,M,I,D){var z=Qh(x,M,D);return M=z.target,D=z.transitionEnd,Um(x,M,I,D)};function Wm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Wm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return Yh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,U=t.__rest(M,["transition","transitionEnd"]),ee=Co(U,$||{},x);if(z&&(G&&(G=z(G)),U&&(U=z(U)),ee&&(ee=z(ee))),D){cc(x,U,ee);var te=Hm(x,U,ee,G);G=te.transitionEnd,U=te.target}return t.__assign({transition:$,transitionEnd:G},U)},scrapeMotionValuesFromProps:kt,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Ze},$m=uf(ff),r0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=$e.has(M)?M:je(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Nt,build:function(x,M,I,D,z){he(M,I,D,z.transformTemplate)},render:Ge})),pf=function(x,M){return xt(x)?r0(M,{enableHardwareAcceleration:!1}):$m(M,{enableHardwareAcceleration:!0})};function n0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=n0(x,M.target.x),D=n0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",Gm={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(f){return G.push(f),hf}));var U=o.complex.parse(x);if(U.length>5)return z;var ee=o.complex.createTransformer(x),te=typeof U[0]!="number"?1:0,ae=D.x.scale*I.x,de=D.y.scale*I.y;U[0+te]/=ae,U[1+te]/=de;var pe=i.mix(ae,de,.5);typeof U[2+te]=="number"&&(U[2+te]/=pe),typeof U[3+te]=="number"&&(U[3+te]/=pe);var me=ee(U);if($){var u=0;me=me.replace(hf,function(){var f=G[u];return u++,f})}return me}},o0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,U=D.layoutId,ee=z.projection;Ht(o_),ee&&($!=null&&$.group&&$.group.add(ee),G!=null&&G.register&&U&&G.register(ee),ee.root.didUpdate(),ee.addEventListener("animationComplete",function(){I.safeToRemove()}),ee.setOptions(t.__assign(t.__assign({},ee.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,U=z.drag,ee=z.isPresent,te=G.projection;return te&&(te.isPresent=ee,U||I.layoutDependency!==$||$===void 0?te.willUpdate():this.safeToRemove(),I.isPresent!==ee&&(ee?te.promote():te.relegate()||S.default.postRender(function(){var ae;!((ae=te.getStack())===null||ae===void 0)&&ae.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(b.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(Le);return b.default.createElement(o0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Re),isPresent:I,safeToRemove:D}))}var o_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:Gm},i0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=Yt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var a0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=a0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Km=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,U,ee,te;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((U=M.opacity)!==null&&U!==void 0?U:1,0,Sc(D))):$&&(x.opacity=i.mix((ee=M.opacity)!==null&&ee!==void 0?ee:1,(te=I.opacity)!==null&&te!==void 0?te:1,D));for(var ae=0;aeM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var U=i.mix(G.min,G.max,M/100);M=U-G.min}if(typeof M=="number"){var ee=i.mix($.min,$.max,D);x===$&&(ee-=M),x.min=Vs(x.min,M,I,ee,z),x.max=Vs(x.max,M,I,ee,z)}}function qm(x,M,I,D,z){var $=t.__read(I,3),G=$[0],U=$[1],ee=$[2];Tn(x,M[G],M[U],M[ee],M.scale,D,z)}var i_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){qm(x.x,M,i_,I==null?void 0:I.x,D==null?void 0:D.x),qm(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function Ym(x){return x.translate===0&&x.scale===1}function We(x){return Ym(x.x)&&Ym(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var s0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Lh(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Xm="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Qm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,U=I.rotateX,ee=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),U&&($+="rotateX(".concat(U,"deg) ")),ee&&($+="rotateY(".concat(ee,"deg) "))}var te=x.x.scale*M.x,ae=x.y.scale*M.y;return $+="scale(".concat(te,", ").concat(ae,")"),$===Xm?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Lh(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function u0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(U,ee,te){var ae=this;ee===void 0&&(ee={}),te===void 0&&(te=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ae.isUpdating&&(ae.isUpdating=!1,ae.clearAllSnapshots())},this.updateProjection=function(){ae.nodes.forEach($i),ae.nodes.forEach(d0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=U,this.latestValues=ee,this.root=te?te.root||te:this,this.path=te?t.__spreadArray(t.__spreadArray([],t.__read(te.path),!1),[te],!1):[],this.parent=te,this.depth=te?te.depth+1:0,U&&this.root.registerPotentialNode(U,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function p0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){p0(x.x),p0(x.y)}var _f=u0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=u0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Xh),i0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function h0(x){return ze(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var g0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,U=ue(l_),ee=jo(),te=r.useMemo(function(){return{id:ee,initial:I,isPresent:D,custom:$,onExitComplete:function(ae){var de,pe;U.set(ae,!0);try{for(var me=t.__values(U.values()),u=me.next();!u.done;u=me.next()){var f=u.value;if(!f)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(pe=me.return)&&pe.call(me)}finally{if(de)throw de.error}}z==null||z()},register:function(ae){return U.set(ae,!1),function(){return U.delete(ae)}}}},G?void 0:[D]);return r.useMemo(function(){U.forEach(function(ae,de){return U.set(de,!1)})},[D]),v.useEffect(function(){!D&&!U.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:te},M)};function l_(){return new Map}var ba=function(x){return x.key||""};function v0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var Ct=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,U=x.presenceAffectsLayout,ee=U===void 0?!0:U,te=t.__read(Mc(),1),ae=te[0],de=r.useContext(Le).forceRender;de&&(ae=de);var pe=xf(),me=Pr(M),u=me,f=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,v0(me,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),f.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Ee){return v.createElement(Rc,{key:ba(Ee),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:ee},Ee)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=me.map(ba),se=j.length,ye=0;ye0?1:-1,G=x[z+$];if(!G)return x;var U=x[z],ee=G.layout,te=i.mix(ee.min,ee.max,.5);return $===1&&U.layout.max+I>te||$===-1&&U.layout.min+I.001?1/x:p_},Ef=!1;function h_(x){var M=Ki(1),I=Ki(1),D=_();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=Ct,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=Le,e.LazyMotion=m0,e.MotionConfig=Sf,e.MotionConfigContext=g,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Re,e.addPointerEvent=Tl,e.addScaleCorrector=Ht,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=h0,e.createMotionComponent=ze,e.domAnimation=w0,e.domMax=_0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Mh,e.isMotionValue=Yt,e.isValidMotionProp=Dn,e.m=g0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=u_,e.useAnimationControls=ay,e.useAnimationFrame=C0,e.useCycle=ly,e.useDeprecatedAnimatedState=dy,e.useDeprecatedInvertedScale=h_,e.useDomEvent=At,e.useDragControls=Ul,e.useElementScroll=S0,e.useForceUpdate=Mc,e.useInView=sy,e.useInstantLayoutTransition=T0,e.useInstantTransition=d_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=x0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=uy,e.useScroll=kf,e.useSpring=s_,e.useTime=P0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=_,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=S(pt),i=S(Xn),a=S(et),l=Je,s=t2,d=Xe,v=Gv;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,s.useAccordion)(),T=_.open,k=_.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,b({},m,{ref:p,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),g)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(PA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return h}});var r=w(Y),n=w(pt),o=Je,i=w(et),a=Xe,l=t2,s=Gv,d=CA,v=PA;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.open,m=p.icon,_=p.animate,T=p.className,k=p.disabled,R=p.children,E=P(p,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,_=_??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),b({},(0,i.default)(V.disabled),k)),T),H=r.default.useMemo(function(){return{open:g,icon:m,animate:_,disabled:k}},[g,m,_,k]);return r.default.createElement(l.AccordionContextProvider,{value:H},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var h=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(JR);var tL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var p2={},fh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(fh),i=S(pt),a=Je,l=S(Sr),s=S(et),d=Xe,v=_d;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.ripple,T=h.className,k=h.children;h.fullWidth;var R=w(h,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,H=V.variants,q=V.sizes;c=c??F.variant,g=g??F.size,m=m??F.color,_=_??F.ripple,T=(0,a.twMerge)(F.className||"",T);var ne=_!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(H[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),X=(0,s.default)(q[(0,l.default)(A.sizes,g,"md")]),re=(0,a.twMerge)((0,i.default)(Q,X,W),T);return r.default.createElement("button",b({},R,{ref:p,className:re,type:R.type||"button",onMouseDown:function(Z){var oe=R==null?void 0:R.onMouseDown;return _&&ne.create(Z,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof oe=="function"&&oe(Z)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(p2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Alert:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=AP,S=P(p2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),H=(0,v.useTheme)().alert,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.variants;m=m??q.variant,_=_??q.color,A=A??q.animate,k=k??q.open,R=R??q.action,E=E??q.onClose,F=(0,l.twMerge)(q.className||"",F);var re=(0,d.default)(W.alert),Z=(0,d.default)(W.action),oe=(0,d.default)(X[(0,s.default)(ne.variants,m,"filled")][(0,s.default)(ne.colors,_,"gray")]),fe=(0,l.twMerge)((0,i.default)(re,oe),F),ge=(0,i.default)(Z),ce={unmount:{opacity:0},mount:{opacity:1}},J=(0,a.default)(ce,A),ie=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,w({},B,{ref:g,role:"alert",className:"".concat(fe," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:J}),T&&ie,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:ge},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,action:b.propTypesAction,onClose:b.propTypesOnClose,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},h.displayName="MaterialTailwind.Alert";var p=h})(tL);var rL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=IP;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.className,_=h.color,T=h.withBorder,k=w(h,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,H=F.sizes,q=F.borderColor;c=c??A.variant,g=g??A.size,T=T??A.withBorder,_=_??A.color,m=(0,i.twMerge)(A.className||"",m);var ne=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(H[(0,a.default)(E.sizes,g,"md")]),W=(0,l.default)(q[(0,a.default)(E.colors,_,"gray")]),X,re=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),ne,Q,(X={},v(X,(0,l.default)(V.withBorder),T),v(X,W,T),X)),m);return r.default.createElement("img",b({},k,{ref:p,className:re}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(rL);var nL={},oL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(ot);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(oL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=oL;function s(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function d(){return d=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=(0,r.forwardRef)(function(h,p){var c=h.separator,g=h.fullWidth,m=h.className,_=h.children,T=w(h,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,g=g??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),g)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:p,className:F}),r.Children.map(_,function(H,q){if((0,r.isValidElement)(H)){var ne;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),H==null||(ne=H.props)===null||ne===void 0?void 0:ne.disabled))},H,q!==r.Children.count(_)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(nL);var iL={},w3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Spinner:function(){return C},default:function(){return h}});var r=b(ot),n=w(Y),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=KP;function v(){return v=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=(0,n.forwardRef)(function(p,c){var g=p.color,m=p.className,_=P(p,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;g=g??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,g,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),H,q;return n.default.createElement("svg",v({},_,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(H=_==null?void 0:_.width)!==null&&H!==void 0?H:24,height:(q=_==null?void 0:_.height)!==null&&q!==void 0?q:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var h=C})(w3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Button:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=P(fh),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=P(w3),b=_d;function S(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,H=B.valid,q=B.defaultProps,ne=B.styles,Q=ne.base,W=ne.variants,X=ne.sizes;m=m??q.variant,_=_??q.size,T=T??q.color,k=k??q.fullWidth,R=R??q.ripple,E=(0,a.twMerge)(q.className||"",E);var re=R!==void 0&&new o.default,Z=(0,s.default)(Q.initial),oe=(0,s.default)(W[(0,l.default)(H.variants,m,"filled")][(0,l.default)(H.colors,T,"gray")]),fe=(0,s.default)(X[(0,l.default)(H.sizes,_,"md")]),ge=(0,a.twMerge)((0,i.default)(Z,fe,oe,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":_==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":_==="lg"})),J;return r.default.createElement("button",w({},V,{disabled:(J=V.disabled)!==null&&J!==void 0?J:F,ref:g,className:ge,type:V.type||"button",onMouseDown:function(ie){var ue=V==null?void 0:V.onMouseDown;return R&&re.create(ie,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(ie)}}),F&&r.default.createElement(v.default,{className:ce}),A)});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),fullWidth:b.propTypesFullWidth,ripple:b.propTypesRipple,className:b.propTypesClassName,children:b.propTypesChildren,loading:b.propTypesLoading},h.displayName="MaterialTailwind.Button";var p=h})(iL);var aL={},lL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=xd;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.shadow,_=h.floated,T=h.className,k=h.children,R=w(h,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,H=F.variants;c=c??A.variant,g=g??A.color,m=m??A.shadow,_=_??A.floated,T=(0,i.twMerge)(A.className||"",T);var q=(0,l.default)(B.initial),ne=(0,l.default)(H[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"white")]),Q=(0,i.twMerge)((0,o.default)(q,ne,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),_)),T);return r.default.createElement("div",b({},R,{ref:p,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(lL);var sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var w=S})(sL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{CardFooter:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=xd;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,_=m.defaultProps,T=m.styles.base;h=h??_.divider,p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.CardFooter";var P=w})(uL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return p},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return b.CardFooter},default:function(){return c}});var r=y(Y),n=y(ot),o=y(pt),i=Je,a=y(Sr),l=y(et),s=Xe,d=lL,v=sL,b=uL,S=xd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.variant,T=g.color,k=g.shadow,R=g.className,E=g.children,A=C(g,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,H=F.valid,q=B.base,ne=B.variants;_=_??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(q.initial),W=(0,l.default)(ne[(0,a.default)(H.variants,_,"filled")][(0,a.default)(H.colors,T,"white")]),X=(0,i.twMerge)((0,o.default)(Q,W,w({},(0,l.default)(q.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:X}),E)});p.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},p.displayName="MaterialTailwind.Card";var c=Object.assign(p,{Header:d.CardHeader,Body:v.CardBody,Footer:b.CardFooter})})(aL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Checkbox:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().checkbox,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var Z=T!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("label",S({},E,{className:fe,htmlFor:B.id||re,onMouseDown:function(ie){var ue=E==null?void 0:E.onMouseDown;return T&&Z.create(ie,"dark"),typeof ue=="function"&&ue(ie)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:ge,id:B.id||re})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var h=C})(cL);var dL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Chip:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=BP,S=P(p2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,H=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),q=(0,v.useTheme)().chip,ne=q.defaultProps,Q=q.valid,W=q.styles,X=W.base,re=W.variants,Z=W.sizes;m=m??ne.variant,_=_??ne.size,T=T??ne.color,F=F??ne.animate,R=R??ne.open,A=A??ne.action,E=E??ne.onClose,V=(0,l.twMerge)(ne.className||"",V);var oe=(0,d.default)(X.chip),fe=(0,d.default)(X.action),ge=(0,d.default)(X.icon),ce=(0,d.default)(re[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),J=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].chip),ie=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].action),ue=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].icon),Se=(0,l.twMerge)((0,i.default)(oe,ce,J),V),Ce=(0,i.default)(fe,ie),Me=(0,i.default)(ge,ue),Le=(0,i.default)({"ml-4":k&&_==="sm","ml-[18px]":k&&_==="md","ml-5":k&&_==="lg","mr-5":E}),Re={unmount:{opacity:0},mount:{opacity:1}},be=(0,a.default)(Re,F),ke=r.default.createElement("div",{className:Me},k),ze=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ze,null,R&&r.default.createElement(o.m.div,w({},H,{ref:g,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:be}),k&&ke,r.default.createElement("span",{className:Le},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,onClose:b.propTypesOnClose,action:b.propTypesAction,animate:b.propTypesAnimate,className:b.propTypesClassName,value:b.propTypesValue},h.displayName="MaterialTailwind.Chip";var p=h})(dL);var fL={},pL={exports:{}},jt={};/** + */var Kv=Symbol.for("react.element"),V$=Symbol.for("react.portal"),B$=Symbol.for("react.fragment"),U$=Symbol.for("react.strict_mode"),H$=Symbol.for("react.profiler"),W$=Symbol.for("react.provider"),$$=Symbol.for("react.context"),G$=Symbol.for("react.forward_ref"),K$=Symbol.for("react.suspense"),q$=Symbol.for("react.memo"),Y$=Symbol.for("react.lazy"),G6=Symbol.iterator;function X$(e){return e===null||typeof e!="object"?null:(e=G6&&e[G6]||e["@@iterator"],typeof e=="function"?e:null)}var XA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},QA=Object.assign,ZA={};function dh(e,t,r){this.props=e,this.context=t,this.refs=ZA,this.updater=r||XA}dh.prototype.isReactComponent={};dh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};dh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function JA(){}JA.prototype=dh.prototype;function YP(e,t,r){this.props=e,this.context=t,this.refs=ZA,this.updater=r||XA}var XP=YP.prototype=new JA;XP.constructor=YP;QA(XP,dh.prototype);XP.isPureReactComponent=!0;var K6=Array.isArray,eI=Object.prototype.hasOwnProperty,QP={current:null},tI={key:!0,ref:!0,__self:!0,__source:!0};function rI(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)eI.call(t,n)&&!tI.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1r=>Math.max(Math.min(r,t),e),Cg=e=>e%1?Number(e.toFixed(5)):e,av=/(-)?([\d]*\.?[\d])+/g,eC=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,oG=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function qv(e){return typeof e=="string"}const Yv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},JP=Object.assign(Object.assign({},Yv),{transform:iI(0,1)}),iG=Object.assign(Object.assign({},Yv),{default:1}),Xv=e=>({test:t=>qv(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),aG=Xv("deg"),wp=Xv("%"),lG=Xv("px"),sG=Xv("vh"),uG=Xv("vw"),cG=Object.assign(Object.assign({},wp),{parse:e=>wp.parse(e)/100,transform:e=>wp.transform(e*100)}),e3=(e,t)=>r=>!!(qv(r)&&oG.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),aI=(e,t,r)=>n=>{if(!qv(n))return n;const[o,i,a,l]=n.match(av);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},lg={test:e3("hsl","hue"),parse:aI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+wp.transform(Cg(t))+", "+wp.transform(Cg(r))+", "+Cg(JP.transform(n))+")"},dG=iI(0,255),kb=Object.assign(Object.assign({},Yv),{transform:e=>Math.round(dG(e))}),Jf={test:e3("rgb","red"),parse:aI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+kb.transform(e)+", "+kb.transform(t)+", "+kb.transform(r)+", "+Cg(JP.transform(n))+")"};function fG(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const tC={test:e3("#"),parse:fG,transform:Jf.transform},t3={test:e=>Jf.test(e)||tC.test(e)||lg.test(e),parse:e=>Jf.test(e)?Jf.parse(e):lg.test(e)?lg.parse(e):tC.parse(e),transform:e=>qv(e)?e:e.hasOwnProperty("red")?Jf.transform(e):lg.transform(e)},lI="${c}",sI="${n}";function pG(e){var t,r,n,o;return isNaN(e)&&qv(e)&&((r=(t=e.match(av))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(eC))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function uI(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(eC);n&&(r=n.length,e=e.replace(eC,lI),t.push(...n.map(t3.parse)));const o=e.match(av);return o&&(e=e.replace(av,sI),t.push(...o.map(Yv.parse))),{values:t,numColors:r,tokenised:e}}function cI(e){return uI(e).values}function dI(e){const{values:t,numColors:r,tokenised:n}=uI(e),o=t.length;return i=>{let a=n;for(let l=0;ltypeof e=="number"?0:e;function gG(e){const t=cI(e);return dI(e)(t.map(hG))}const fI={test:pG,parse:cI,createTransformer:dI,getAnimatableNone:gG},vG=new Set(["brightness","contrast","saturate","opacity"]);function mG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(av)||[];if(!n)return e;const o=r.replace(n,"");let i=vG.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const yG=/([a-z-]*)\(.*?\)/g,bG=Object.assign(Object.assign({},fI),{getAnimatableNone:e=>{const t=e.match(yG);return t?t.map(mG).join(" "):e}});bn.alpha=JP;bn.color=t3;bn.complex=fI;bn.degrees=aG;bn.filter=bG;bn.hex=tC;bn.hsla=lg;bn.number=Yv;bn.percent=wp;bn.progressPercentage=cG;bn.px=lG;bn.rgbUnit=kb;bn.rgba=Jf;bn.scale=iG;bn.vh=sG;bn.vw=uG;var lt={},Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const pI=1/60*1e3,wG=typeof performance<"u"?()=>performance.now():()=>Date.now(),hI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(wG()),pI);function _G(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,l={schedule:(s,d=!1,v=!1)=>{const b=v&&o,S=b?t:r;return d&&a.add(s),S.indexOf(s)===-1&&(S.push(s),b&&o&&(n=t.length)),s},cancel:s=>{const d=r.indexOf(s);d!==-1&&r.splice(d,1),a.delete(s)},process:s=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let d=0;d(e[t]=_G(()=>lv=!0),e),{}),SG=Qv.reduce((e,t)=>{const r=n2[t];return e[t]=(n,o=!1,i=!1)=>(lv||OG(),r.schedule(n,o,i)),e},{}),CG=Qv.reduce((e,t)=>(e[t]=n2[t].cancel,e),{}),PG=Qv.reduce((e,t)=>(e[t]=()=>n2[t].process(_p),e),{}),TG=e=>n2[e].process(_p),gI=e=>{lv=!1,_p.delta=rC?pI:Math.max(Math.min(e-_p.timestamp,xG),1),_p.timestamp=e,nC=!0,Qv.forEach(TG),nC=!1,lv&&(rC=!1,hI(gI))},OG=()=>{lv=!0,rC=!0,nC||hI(gI)},kG=()=>_p;Cd.cancelSync=CG;Cd.default=SG;Cd.flushSync=PG;Cd.getFrameData=kG;Object.defineProperty(lt,"__esModule",{value:!0});var vI=qA,Bp=oI,Aa=bn,o2=Cd;function EG(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var MG=EG(o2);const sv=(e,t,r)=>Math.min(Math.max(r,e),t),G_=.001,RG=.01,Y6=10,NG=.05,AG=1;function IG({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Bp.warning(e<=Y6*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=sv(NG,AG,a),e=sv(RG,Y6,e/1e3),a<1?(o=d=>{const v=d*a,b=v*e,S=v-r,w=oC(d,a),P=Math.exp(-b);return G_-S/w*P},i=d=>{const b=d*a*e,S=b*r+r,w=Math.pow(a,2)*Math.pow(d,2)*e,P=Math.exp(-b),y=oC(Math.pow(d,2),a);return(-o(d)+G_>0?-1:1)*((S-w)*P)/y}):(o=d=>{const v=Math.exp(-d*e),b=(d-r)*e+1;return-G_+v*b},i=d=>{const v=Math.exp(-d*e),b=(r-d)*(e*e);return v*b});const l=5/e,s=DG(o,i,l);if(e=e*1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(s,2)*n;return{stiffness:d,damping:a*2*Math.sqrt(n*d),duration:e}}}const LG=12;function DG(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function zG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!X6(e,jG)&&X6(e,FG)){const r=IG(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function i2(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=vI.__rest(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:l,damping:s,mass:d,velocity:v,duration:b,isResolvedFromDuration:S}=zG(i),w=Q6,P=Q6;function y(){const C=v?-(v/1e3):0,h=r-t,p=s/(2*Math.sqrt(l*d)),c=Math.sqrt(l/d)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),p<1){const g=oC(c,p);w=m=>{const _=Math.exp(-p*c*m);return r-_*((C+p*c*h)/g*Math.sin(g*m)+h*Math.cos(g*m))},P=m=>{const _=Math.exp(-p*c*m);return p*c*_*(Math.sin(g*m)*(C+p*c*h)/g+h*Math.cos(g*m))-_*(Math.cos(g*m)*(C+p*c*h)-g*h*Math.sin(g*m))}}else if(p===1)w=g=>r-Math.exp(-c*g)*(h+(C+c*h)*g);else{const g=c*Math.sqrt(p*p-1);w=m=>{const _=Math.exp(-p*c*m),T=Math.min(g*m,300);return r-_*((C+p*c*h)*Math.sinh(T)+g*h*Math.cosh(T))/g}}}return y(),{next:C=>{const h=w(C);if(S)a.done=C>=b;else{const p=P(C)*1e3,c=Math.abs(p)<=n,g=Math.abs(r-h)<=o;a.done=c&&g}return a.value=a.done?r:h,a},flipTarget:()=>{v=-v,[t,r]=[r,t],y()}}}i2.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Q6=e=>0,r3=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},a2=(e,t,r)=>-r*e+r*t+e;function K_(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Z6({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;o=K_(s,l,e+1/3),i=K_(s,l,e),a=K_(s,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const VG=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},BG=[Aa.hex,Aa.rgba,Aa.hsla],J6=e=>BG.find(t=>t.test(e)),ek=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,n3=(e,t)=>{let r=J6(e),n=J6(t);Bp.invariant(!!r,ek(e)),Bp.invariant(!!n,ek(t));let o=r.parse(e),i=n.parse(t);r===Aa.hsla&&(o=Z6(o),r=Aa.rgba),n===Aa.hsla&&(i=Z6(i),n=Aa.rgba);const a=Object.assign({},o);return l=>{for(const s in a)s!=="alpha"&&(a[s]=VG(o[s],i[s],l));return a.alpha=a2(o.alpha,i.alpha,l),r.transform(a)}},UG={x:0,y:0,z:0},iC=e=>typeof e=="number",HG=(e,t)=>r=>t(e(r)),o3=(...e)=>e.reduce(HG);function mI(e,t){return iC(e)?r=>a2(e,t,r):Aa.color.test(e)?n3(e,t):i3(e,t)}const yI=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>mI(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=mI(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function tk(e){const t=Aa.complex.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=Aa.complex.createTransformer(t),n=tk(e),o=tk(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?o3(yI(n.parsed,o.parsed),r):(Bp.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)},$G=(e,t)=>r=>a2(e,t,r);function GG(e){if(typeof e=="number")return $G;if(typeof e=="string")return Aa.color.test(e)?n3:i3;if(Array.isArray(e))return yI;if(typeof e=="object")return WG}function KG(e,t,r){const n=[],o=r||GG(e[0]),i=e.length-1;for(let a=0;ar(r3(e,t,n))}function YG(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let s=1;for(;so||s===n);s++);i=s-1}const l=r3(e[i],e[i+1],o);return t[i](l)}}function a3(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;Bp.invariant(i===t.length,"Both input and output ranges must be the same length"),Bp.invariant(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=KG(t,n,o),l=i===2?qG(e,a):YG(e,a);return r?s=>l(sv(e[0],e[i-1],s)):l}const Zv=e=>t=>1-e(1-t),l2=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bI=e=>t=>Math.pow(t,e),l3=e=>t=>t*t*((e+1)*t-e),wI=e=>{const t=l3(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},_I=1.525,XG=4/11,QG=8/11,ZG=9/10,xI=e=>e,s3=bI(2),JG=Zv(s3),SI=l2(s3),CI=e=>1-Math.sin(Math.acos(e)),PI=Zv(CI),eK=l2(PI),u3=l3(_I),tK=Zv(u3),rK=l2(u3),nK=wI(_I),oK=4356/361,iK=35442/1805,aK=16061/1805,I1=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-I1(1-e*2)):.5*I1(e*2-1)+.5;function uK(e,t){return e.map(()=>t||SI).splice(0,e.length-1)}function cK(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function dK(e,t){return e.map(r=>r*t)}function Pg({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],l=dK(n&&n.length===a.length?n:cK(a),o);function s(){return a3(l,a,{ease:Array.isArray(r)?r:uK(a,r)})}let d=s();return{next:v=>(i.value=d(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),d=s()}}}function TI({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let l=r*e;const s=t+l,d=i===void 0?s:i(s);return d!==s&&(l=d-t),{next:v=>{const b=-l*Math.exp(-v/n);return a.done=!(b>o||b<-o),a.value=a.done?d:d+b,a},flipTarget:()=>{}}}const rk={keyframes:Pg,spring:i2,decay:TI};function fK(e){if(Array.isArray(e.to))return Pg;if(rk[e.type])return rk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Pg:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?i2:Pg}function OI(e,t,r=0){return e-t-r}function pK(e,t,r=0,n=!0){return n?OI(t+-e,t,r):t-(e-t)+r}function hK(e,t,r,n){return n?e>=t+r:e<=-r}const gK=e=>{const t=({delta:r})=>e(r);return{start:()=>MG.default.update(t,!0),stop:()=>o2.cancelSync.update(t)}};function kI(e){var t,r,{from:n,autoplay:o=!0,driver:i=gK,elapsed:a=0,repeat:l=0,repeatType:s="loop",repeatDelay:d=0,onPlay:v,onStop:b,onComplete:S,onRepeat:w,onUpdate:P}=e,y=vI.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:C}=y,h,p=0,c=y.duration,g,m=!1,_=!0,T;const k=fK(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,C)&&(T=a3([0,100],[n,C],{clamp:!1}),n=0,C=100);const R=k(Object.assign(Object.assign({},y),{from:n,to:C}));function E(){p++,s==="reverse"?(_=p%2===0,a=pK(a,c,d,_)):(a=OI(a,c,d),s==="mirror"&&R.flipTarget()),m=!1,w&&w()}function A(){h.stop(),S&&S()}function F(B){if(_||(B=-B),a+=B,!m){const H=R.next(Math.max(0,a));g=H.value,T&&(g=T(g)),m=_?H.done:a<=0}P==null||P(g),m&&(p===0&&(c??(c=a)),p{b==null||b(),h.stop()}}}function EI(e,t){return t?e*(1e3/t):0}function vK({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:l=10,restDelta:s=1,modifyTarget:d,driver:v,onUpdate:b,onComplete:S,onStop:w}){let P;function y(c){return r!==void 0&&cn}function C(c){return r===void 0?n:n===void 0||Math.abs(r-c){var m;b==null||b(g),(m=c.onUpdate)===null||m===void 0||m.call(c,g)},onComplete:S,onStop:w}))}function p(c){h(Object.assign({type:"spring",stiffness:a,damping:l,restDelta:s},c))}if(y(e))p({from:e,velocity:t,to:C(e)});else{let c=o*t+e;typeof d<"u"&&(c=d(c));const g=C(c),m=g===r?-1:1;let _,T;const k=R=>{_=T,T=R,t=EI(R-_,o2.getFrameData().delta),(m===1&&R>g||m===-1&&RP==null?void 0:P.stop()}}const MI=e=>e*180/Math.PI,mK=(e,t=UG)=>MI(Math.atan2(t.y-e.y,t.x-e.x)),yK=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},bK=e=>e,c3=(e=bK)=>(t,r,n)=>{const o=r-n,i=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+i:r-i},wK=c3(),_K=c3(Math.sqrt),RI=e=>e*Math.PI/180,L1=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),aC=e=>L1(e)&&e.hasOwnProperty("z"),Ny=(e,t)=>Math.abs(e-t);function xK(e,t){if(iC(e)&&iC(t))return Ny(e,t);if(L1(e)&&L1(t)){const r=Ny(e.x,t.x),n=Ny(e.y,t.y),o=aC(e)&&aC(t)?Ny(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const SK=(e,t,r)=>(t=RI(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),NI=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),AI=(e,t,r,n=0)=>NI(e+r*(t-e)/Math.max(n,r)),CK=(e=50)=>{let t=0,r=0;return n=>{const o=o2.getFrameData().timestamp,i=o!==r?o-r:0,a=i?AI(t,n,i,e):t;return r=o,t=a,a}},PK=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return i;o=a}}}};function TK(e,t){return e/(1e3/t)}const OK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},II=(e,t)=>1-3*t+3*e,LI=(e,t)=>3*t-6*e,DI=e=>3*e,D1=(e,t,r)=>((II(t,r)*e+LI(t,r))*e+DI(t))*e,FI=(e,t,r)=>3*II(t,r)*e*e+2*LI(t,r)*e+DI(t),kK=1e-7,EK=10;function MK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=D1(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>kK&&++l=NK?AK(a,b,e,r):S===0?b:MK(a,l,l+Ay,e,r)}return a=>a===0||a===1?a:D1(i(a),t,n)}const LK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return sv(0,1,o/e)};lt.angle=mK;lt.animate=kI;lt.anticipate=nK;lt.applyOffset=yK;lt.attract=wK;lt.attractExpo=_K;lt.backIn=u3;lt.backInOut=rK;lt.backOut=tK;lt.bounceIn=lK;lt.bounceInOut=sK;lt.bounceOut=I1;lt.circIn=CI;lt.circInOut=eK;lt.circOut=PI;lt.clamp=sv;lt.createAnticipate=wI;lt.createAttractor=c3;lt.createBackIn=l3;lt.createExpoIn=bI;lt.cubicBezier=IK;lt.decay=TI;lt.degreesToRadians=RI;lt.distance=xK;lt.easeIn=s3;lt.easeInOut=SI;lt.easeOut=JG;lt.inertia=vK;lt.interpolate=a3;lt.isPoint=L1;lt.isPoint3D=aC;lt.keyframes=Pg;lt.linear=xI;lt.mirrorEasing=l2;lt.mix=a2;lt.mixColor=n3;lt.mixComplex=i3;lt.pipe=o3;lt.pointFromVector=SK;lt.progress=r3;lt.radiansToDegrees=MI;lt.reverseEasing=Zv;lt.smooth=CK;lt.smoothFrame=AI;lt.snap=PK;lt.spring=i2;lt.steps=LK;lt.toDecimal=NI;lt.velocityPerFrame=TK;lt.velocityPerSecond=EI;lt.wrap=OK;class DK{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const q_=new WeakMap;function d3(e){return q_.has(e)||q_.set(e,{transforms:[],values:new Map}),q_.get(e)}function FK(e,t){return e.has(t)||e.set(t,new DK),e.get(t)}function jI(e,t){e.indexOf(t)===-1&&e.push(t)}function zI(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const VI=(e,t,r)=>Math.min(Math.max(r,e),t),Go={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},ds=e=>typeof e=="number",uv=e=>Array.isArray(e)&&!ds(e[0]),jK=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function BI(e,t){return uv(e)?e[jK(0,e.length,t)]:e}const f3=(e,t,r)=>-r*e+r*t+e,p3=()=>{},rs=e=>e,s2=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function h3(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=s2(0,t,n);e.push(f3(r,1,o))}}function g3(e){const t=[0];return h3(t,e-1),t}function UI(e,t=g3(e.length),r=rs){const n=e.length,o=n-t.length;return o>0&&h3(t,o),i=>{let a=0;for(;aArray.isArray(e)&&ds(e[0]),F1=e=>typeof e=="object"&&!!e.createAnimation,zK=e=>typeof e=="function",v3=e=>typeof e=="string",Zc={ms:e=>e*1e3,s:e=>e/1e3};function WI(e,t){return t?e*(1e3/t):0}const VK=["","X","Y","Z"],BK=["translate","scale","rotate","skew"],Up={x:"translateX",y:"translateY",z:"translateZ"},nk={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},UK={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:nk,scale:{syntax:"",initialValue:1,toDefaultUnit:rs},skew:nk},Hp=new Map,u2=e=>`--motion-${e}`,j1=["x","y","z"];BK.forEach(e=>{VK.forEach(t=>{j1.push(e+t),Hp.set(u2(e+t),UK[e])})});const HK=(e,t)=>j1.indexOf(e)-j1.indexOf(t),WK=new Set(j1),c2=e=>WK.has(e),$K=(e,t)=>{Up[t]&&(t=Up[t]);const{transforms:r}=d3(e);jI(r,t),e.style.transform=$I(r)},$I=e=>e.sort(HK).reduce(GK,"").trim(),GK=(e,t)=>`${e} ${t}(var(${u2(t)}))`,lC=e=>e.startsWith("--"),ok=new Set;function KK(e){if(!ok.has(e)){ok.add(e);try{const{syntax:t,initialValue:r}=Hp.has(e)?Hp.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const GI=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,qK=1e-7,YK=12;function XK(e,t,r,n,o){let i,a,l=0;do a=t+(r-t)/2,i=GI(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>qK&&++lXK(i,0,1,e,r);return i=>i===0||i===1?i:GI(o(i),t,n)}const QK=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return VI(0,1,o/e)},ZK={ease:sg(.25,.1,.25,1),"ease-in":sg(.42,0,1,1),"ease-in-out":sg(.42,0,.58,1),"ease-out":sg(0,0,.58,1)},JK=/\((.*?)\)/;function sC(e){if(zK(e))return e;if(HI(e))return sg(...e);const t=ZK[e];if(t)return t;if(e.startsWith("steps")){const r=JK.exec(e);if(r){const n=r[1].split(",");return QK(parseFloat(n[0]),n[1].trim())}}return rs}let eq=class{constructor(t,r=[0,1],{easing:n,duration:o=Go.duration,delay:i=Go.delay,endDelay:a=Go.endDelay,repeat:l=Go.repeat,offset:s,direction:d="normal",autoplay:v=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=rs,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((S,w)=>{this.resolve=S,this.reject=w}),n=n||Go.easing,F1(n)){const S=n.createAnimation(r);n=S.easing,r=S.keyframes||r,o=S.duration||o}this.repeat=l,this.easing=uv(n)?rs:sC(n),this.updateDuration(o);const b=UI(r,s,uv(n)?n.map(sC):rs);this.tick=S=>{var w;i=i;let P=0;this.pauseTime!==void 0?P=this.pauseTime:P=(S-this.startTime)*this.rate,this.t=P,P/=1e3,P=Math.max(P-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(P=this.totalDuration);const y=P/this.duration;let C=Math.floor(y),h=y%1;!h&&y>=1&&(h=1),h===1&&C--;const p=C%2;(d==="reverse"||d==="alternate"&&p||d==="alternate-reverse"&&!p)&&(h=1-h);const c=P>=this.totalDuration?1:Math.min(h,1),g=b(this.easing(c));t(g),this.pauseTime===void 0&&(this.playState==="finished"||P>=this.totalDuration+a)?(this.playState="finished",(w=this.resolve)===null||w===void 0||w.call(this,g)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},v&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const ik=e=>HI(e)?tq(e):e,tq=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,ak=e=>document.createElement("div").animate(e,{duration:.001}),lk={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ak({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ak({opacity:[0,1]}).finished},Y_={},Mb={};for(const e in lk)Mb[e]=()=>(Y_[e]===void 0&&(Y_[e]=lk[e]()),Y_[e]);function rq(e,t){for(let r=0;rArray.isArray(e)?e:[e];function z1(e){return Up[e]&&(e=Up[e]),c2(e)?u2(e):e}const ep={get:(e,t)=>{t=z1(t);let r=lC(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Hp.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=z1(t),lC(t)?e.style.setProperty(t,r):e.style[t]=r}};function qI(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function nq(){return window.__MOTION_DEV_TOOLS_RECORD}function d2(e,t,r,n={}){const o=nq(),i=n.record!==!1&&o;let a,{duration:l=Go.duration,delay:s=Go.delay,endDelay:d=Go.endDelay,repeat:v=Go.repeat,easing:b=Go.easing,direction:S,offset:w,allowWebkitAcceleration:P=!1}=n;const y=d3(e);let C=Mb.waapi();const h=c2(t);h&&$K(e,t);const p=z1(t),c=FK(y.values,p),g=Hp.get(p);return qI(c.animation,!(F1(b)&&c.generator)&&n.record!==!1),()=>{const m=()=>{var T,k;return(k=(T=ep.get(e,p))!==null&&T!==void 0?T:g==null?void 0:g.initialValue)!==null&&k!==void 0?k:0};let _=rq(KI(r),m);if(F1(b)){const T=b.createAnimation(_,m,h,p,c);b=T.easing,T.keyframes!==void 0&&(_=T.keyframes),T.duration!==void 0&&(l=T.duration)}if(lC(p)&&(Mb.cssRegisterProperty()?KK(p):C=!1),C){g&&(_=_.map(R=>ds(R)?g.toDefaultUnit(R):R)),_.length===1&&(!Mb.partialKeyframes()||i)&&_.unshift(m());const T={delay:Zc.ms(s),duration:Zc.ms(l),endDelay:Zc.ms(d),easing:uv(b)?void 0:ik(b),direction:S,iterations:v+1,fill:"both"};a=e.animate({[p]:_,offset:w,easing:uv(b)?b.map(ik):void 0},T),a.finished||(a.finished=new Promise((R,E)=>{a.onfinish=R,a.oncancel=E}));const k=_[_.length-1];a.finished.then(()=>{ep.set(e,p,k),a.cancel()}).catch(p3),P||(a.playbackRate=1.000001)}else if(h){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(m()));const T=k=>{g&&(k=g.toDefaultUnit(k)),ep.set(e,p,k)};a=new eq(T,_,Object.assign(Object.assign({},n),{duration:l,easing:b}))}else{const T=_[_.length-1];ep.set(e,p,g&&ds(T)?g.toDefaultUnit(T):T)}return i&&o(e,t,_,{duration:l,delay:s,easing:b,repeat:v,offset:w},"motion-one"),c.setAnimation(a),a}}const m3=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function f2(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const oq=e=>e(),y3=(e,t,r=Go.duration)=>new Proxy({animations:e.map(oq).filter(Boolean),duration:r,options:t},aq),iq=e=>e.animations[0],aq={get:(e,t)=>{const r=iq(e);switch(t){case"duration":return e.duration;case"currentTime":return Zc.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(lq)).catch(p3)),e.finished;case"stop":return()=>{e.animations.forEach(n=>qI(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=Zc.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function sq(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,i)=>{const a=ds(r)?r:uq(r,i),l=Math.abs(a-o);let s=e*l;if(n){const d=i*e;s=sC(n)(s/d)*d}return t+s}}function uq(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function YI(e,t,r){return typeof e=="function"?e(t,r):e}function cq(e,t,r={}){e=f2(e);const n=e.length,o=[];for(let i=0;it&&o.atd2(...i)).filter(Boolean);return y3(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function gq(e,t={}){var{defaultOptions:r={}}=t,n=ch(t,["defaultOptions"]);const o=[],i=new Map,a={},l=new Map;let s=0,d=0,v=0;for(let b=0;b"0",ne);A=Q.easing,Q.keyframes!==void 0&&(k=Q.keyframes),Q.duration!==void 0&&(E=Q.duration)}const F=YI(y.delay,c,p)||0,V=d+F,B=V+E;let{offset:H=g3(k.length)}=R;H.length===1&&H[0]===0&&(H[1]=1);const q=length-k.length;q>0&&h3(H,q),k.length===1&&k.unshift(null),fq(T,k,A,H,V,B),C=Math.max(F+E,C),v=Math.max(B,v)}}s=d,d+=C}return i.forEach((b,S)=>{for(const w in b){const P=b[w];P.sort(pq);const y=[],C=[],h=[];for(let p=0;pt/(2*Math.sqrt(e*r));function wq(e,t,r){return e=t||e>t&&r<=t}const XI=({stiffness:e=xp.stiffness,damping:t=xp.damping,mass:r=xp.mass,from:n=0,to:o=1,velocity:i=0,restSpeed:a,restDistance:l}={})=>{i=i?Zc.s(i):0;const s={done:!1,hasReachedTarget:!1,current:n,target:o},d=o-n,v=Math.sqrt(e/r)/1e3,b=bq(e,t,r),S=Math.abs(d)<5;a||(a=S?.01:2),l||(l=S?.005:.5);let w;if(b<1){const P=v*Math.sqrt(1-b*b);w=y=>o-Math.exp(-b*v*y)*((-i+b*v*d)/P*Math.sin(P*y)+d*Math.cos(P*y))}else w=P=>o-Math.exp(-v*P)*(d+(-i+v*d)*P);return P=>{s.current=w(P);const y=P===0?i:b3(w,P,s.current),C=Math.abs(y)<=a,h=Math.abs(o-s.current)<=l;return s.done=C&&h,s.hasReachedTarget=wq(n,o,s.current),s}},_q=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:i,changeTarget:a,min:l,max:s,restDistance:d=.5,restSpeed:v})=>{n=Zc.ms(n);const b={hasReachedTarget:!1,done:!1,current:e,target:e},S=T=>l!==void 0&&Ts,w=T=>l===void 0?s:s===void 0||Math.abs(l-T)-P*Math.exp(-T/n),p=T=>C+h(T),c=T=>{const k=h(T),R=p(T);b.done=Math.abs(k)<=d,b.current=b.done?C:R};let g,m;const _=T=>{S(b.current)&&(g=T,m=XI({from:b.current,to:w(b.current),velocity:b3(p,T,b.current),damping:o,stiffness:i,restDistance:d,restSpeed:v}))};return _(0),T=>{let k=!1;return!m&&g===void 0&&(k=!0,c(T),_(T)),g!==void 0&&T>g?(b.hasReachedTarget=!0,m(T-g)):(b.hasReachedTarget=!1,!k&&c(T),b)}},X_=10,xq=1e4;function Sq(e,t=rs){let r,n=X_,o=e(0);const i=[t(o.current)];for(;!o.done&&n{const n=new Map,o=(a=0,l=100,s=0,d=!1)=>{const v=`${a}-${l}-${s}-${d}`;return n.has(v)||n.set(v,e(Object.assign({from:a,to:l,velocity:s,restSpeed:d?.05:2,restDistance:d?.01:.5},r))),n.get(v)},i=a=>(t.has(a)||t.set(a,Sq(a)),t.get(a));return{createAnimation:(a,l,s,d,v)=>{var b,S;let w;const P=a.length;if(s&&P<=2&&a.every(Cq)){const C=a[P-1],h=P===1?null:a[0];let p=0,c=0;const g=v==null?void 0:v.generator;if(g){const{animation:T,generatorStartTime:k}=v,R=(T==null?void 0:T.startTime)||k||0,E=(T==null?void 0:T.currentTime)||performance.now()-R,A=g(E).current;c=(b=h)!==null&&b!==void 0?b:A,(P===1||P===2&&a[0]===null)&&(p=b3(F=>g(F).current,E,A))}else c=(S=h)!==null&&S!==void 0?S:parseFloat(l());const m=o(c,C,p,d==null?void 0:d.includes("scale")),_=i(m);w=Object.assign(Object.assign({},_),{easing:"linear"}),v&&(v.generator=m,v.generatorStartTime=performance.now())}else w={easing:"ease",duration:i(o(0,100)).overshootDuration};return w}}}}const Cq=e=>typeof e!="string",Pq=QI(XI),Tq=QI(_q),Oq={any:0,all:1};function ZI(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const i=f2(e),a=new WeakMap,l=d=>{d.forEach(v=>{const b=a.get(v.target);if(v.isIntersecting!==!!b)if(v.isIntersecting){const S=t(v);typeof S=="function"?a.set(v.target,S):s.unobserve(v.target)}else b&&(b(v),a.delete(v.target))})},s=new IntersectionObserver(l,{root:r,rootMargin:n,threshold:typeof o=="number"?o:Oq[o]});return i.forEach(d=>s.observe(d)),()=>s.disconnect()}const Rb=new WeakMap;let qs;function kq(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function Eq({target:e,contentRect:t,borderBoxSize:r}){var n;(n=Rb.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return kq(e,r)}})})}function Mq(e){e.forEach(Eq)}function Rq(){typeof ResizeObserver>"u"||(qs=new ResizeObserver(Mq))}function Nq(e,t){qs||Rq();const r=f2(e);return r.forEach(n=>{let o=Rb.get(n);o||(o=new Set,Rb.set(n,o)),o.add(t),qs==null||qs.observe(n)}),()=>{r.forEach(n=>{const o=Rb.get(n);o==null||o.delete(t),o!=null&&o.size||qs==null||qs.unobserve(n)})}}const Nb=new Set;let Tg;function Aq(){Tg=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Nb.forEach(r=>r(t))},window.addEventListener("resize",Tg)}function Iq(e){return Nb.add(e),Tg||Aq(),()=>{Nb.delete(e),!Nb.size&&Tg&&(Tg=void 0)}}function JI(e,t){return typeof e=="function"?Iq(e):Nq(e,t)}const Lq=50,uk=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Dq=()=>({time:0,x:uk(),y:uk()}),Fq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function ck(e,t,r,n){const o=r[t],{length:i,position:a}=Fq[t],l=o.current,s=r.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=s2(0,o.scrollLength,o.current);const d=n-s;o.velocity=d>Lq?0:WI(o.current-l,d)}function jq(e,t,r){ck(e,"x",t,r),ck(e,"y",t,r),t.time=r}function zq(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:i}=n.getBBox();for(r.x+=i,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const eL={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},uC={start:0,center:.5,end:1};function dk(e,t,r=0){let n=0;if(uC[e]!==void 0&&(e=uC[e]),v3(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return ds(e)&&(n=t*e),r+n}const Vq=[0,0];function Bq(e,t,r,n){let o=Array.isArray(e)?e:Vq,i=0,a=0;return ds(e)?o=[e,e]:v3(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,uC[e]?e:"0"]),i=dk(o[0],r,n),a=dk(o[1],t),i-a}const Uq={x:0,y:0};function Hq(e,t,r){let{offset:n=eL.All}=r;const{target:o=e,axis:i="y"}=r,a=i==="y"?"height":"width",l=o!==e?zq(o,e):Uq,s=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},d={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let v=!t[i].interpolate;const b=n.length;for(let S=0;SWq(e,n.target,r),update:i=>{jq(e,r,i),(n.offset||n.target)&&Hq(e,r,n)},notify:typeof t=="function"?()=>t(r):Gq(t,r[o])}}function Gq(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,i;if(r.updateDuration)n||(r.easing=rs),r.updateDuration(1);else{const a={duration:1e3};n||(a.easing="linear"),(i=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||i===void 0||i.call(o,a)}}),()=>{e.currentTime=t.progress}}const V0=new WeakMap,fk=new WeakMap,Q_=new WeakMap,pk=e=>e===document.documentElement?window:e;function Kq(e,t={}){var{container:r=document.documentElement}=t,n=ch(t,["container"]);let o=Q_.get(r);o||(o=new Set,Q_.set(r,o));const i=Dq(),a=$q(r,e,i,n);if(o.add(a),!V0.has(r)){const d=()=>{const b=performance.now();for(const S of o)S.measure();for(const S of o)S.update(b);for(const S of o)S.notify()};V0.set(r,d);const v=pk(r);window.addEventListener("resize",d,{passive:!0}),r!==document.documentElement&&fk.set(r,JI(r,d)),v.addEventListener("scroll",d,{passive:!0})}const l=V0.get(r),s=requestAnimationFrame(l);return()=>{var d;typeof e!="function"&&e.stop(),cancelAnimationFrame(s);const v=Q_.get(r);if(!v||(v.delete(a),v.size))return;const b=V0.get(r);V0.delete(r),b&&(pk(r).removeEventListener("scroll",b),(d=fk.get(r))===null||d===void 0||d(),window.removeEventListener("resize",b))}}function qq(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!Yq(e,t):e!==t}function Yq(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),eY=e=>e.animateUpdates(),gk=e=>e.next(),vk=(e,t)=>new CustomEvent(e,{detail:{target:t}});function cC(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function mk(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const tY={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,i=ch(n,["once"]);return ZI(e,a=>{if(t(),mk(e,"viewenter",a),!o)return l=>{r(),mk(e,"viewleave",l)}},i)}},yk=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),cC(e,t,n))},rY={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=yk(e,"hoverstart",t),o=yk(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},nY={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=i=>{r(),cC(e,"pressend",i),window.removeEventListener("pointerup",n)},o=i=>{t(),cC(e,"pressstart",i),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},Ab={inView:tY,hover:rY,press:nY},bk=["initial","animate",...Object.keys(Ab),"exit"],dC=new WeakMap;function oY(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},i={},a={};for(const y of bk)a[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const l=e.initial===!1?"animate":"initial";let s=hk(e[l]||a[l],e.variants)||{},d=ch(s,["transition"]);const v=Object.assign({},d);function*b(){var y,C;const h=d;d={};const p={};for(const T of bk){if(!o[T])continue;const k=hk(e[T]);if(k)for(const R in k)R!=="transition"&&(d[R]=k[R],p[R]=m3((C=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&C!==void 0?C:{},R))}const c=new Set([...Object.keys(d),...Object.keys(h)]),g=[];c.forEach(T=>{var k;d[T]===void 0&&(d[T]=v[T]),qq(h[T],d[T])&&((k=v[T])!==null&&k!==void 0||(v[T]=ep.get(r,T)),g.push(d2(r,T,d[T],p[T])))}),yield;const m=g.map(T=>T()).filter(Boolean);if(!m.length)return;const _=d;r.dispatchEvent(vk("motionstart",_)),Promise.all(m.map(T=>T.finished)).then(()=>{r.dispatchEvent(vk("motioncomplete",_))}).catch(p3)}const S=(y,C)=>()=>{o[y]=C,Z_(P)},w=()=>{for(const y in Ab){const C=Ab[y].isActive(e),h=i[y];C&&!h?i[y]=Ab[y].subscribe(r,{enable:S(y,!0),disable:S(y,!1)},e):!C&&h&&(h(),delete i[y])}},P={update:y=>{r&&(e=y,w(),Z_(P))},setActive:(y,C)=>{r&&(o[y]=C,Z_(P))},animateUpdates:b,getDepth:()=>n,getTarget:()=>d,getOptions:()=>e,getContext:()=>a,mount:y=>(r=y,dC.set(r,P),w(),()=>{dC.delete(r),Zq(P);for(const C in i)i[C]()}),isMounted:()=>!!r};return P}function tL(e){const t={},r=[];for(let n in e){const o=e[n];c2(n)&&(Up[n]&&(n=Up[n]),r.push(n),n=u2(n));let i=Array.isArray(o)?o[0]:o;const a=Hp.get(n);a&&(i=ds(o)?a.toDefaultUnit(o):o),t[n]=i}return r.length&&(t.transform=$I(r)),t}const iY=e=>`-${e.toLowerCase()}`,aY=e=>e.replace(/[A-Z]/g,iY);function lY(e={}){const t=tL(e);let r="";for(const n in t)r+=n.startsWith("--")?n:aY(n),r+=`: ${t[n]}; `;return r}const sY=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:eL,animate:cq,animateStyle:d2,createMotionState:oY,createStyleString:lY,createStyles:tL,getAnimationData:d3,getStyleName:z1,glide:Tq,inView:ZI,mountedStates:dC,resize:JI,scroll:Kq,spring:Pq,stagger:sq,style:ep,timeline:hq,withControls:y3},Symbol.toStringTag,{value:"Module"})),uY=Dv(sY);function cY(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dY=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,fY=cY(function(e){return dY.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const pY=Object.freeze(Object.defineProperty({__proto__:null,default:fY},Symbol.toStringTag,{value:"Module"})),hY=Dv(pY);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=qA,r=tG,n=oI,o=bn,i=lt,a=Cd,l=uY;function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}function d(x){if(x&&x.__esModule)return x;var M=Object.create(null);return x&&Object.keys(x).forEach(function(I){if(I!=="default"){var D=Object.getOwnPropertyDescriptor(x,I);Object.defineProperty(M,I,D.get?D:{enumerable:!0,get:function(){return x[I]}})}}),M.default=x,Object.freeze(M)}var v=d(r),b=s(r),S=s(a),w=function(x){return{isEnabled:function(M){return x.some(function(I){return!!M[I]})}}},P={measureLayout:w(["layout","layoutId","drag"]),animation:w(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:w(["exit"]),drag:w(["drag","dragControls"]),focus:w(["whileFocus"]),hover:w(["whileHover","onHoverStart","onHoverEnd"]),tap:w(["whileTap","onTap","onTapStart","onTapCancel"]),pan:w(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:w(["whileInView","onViewportEnter","onViewportLeave"])};function y(x){for(var M in x)x[M]!==null&&(M==="projectionNodeConstructor"?P.projectionNodeConstructor=x[M]:P[M].Component=x[M])}var C=r.createContext({strict:!1}),h=Object.keys(P),p=h.length;function c(x,M,I){var D=[];if(r.useContext(C),!M)return null;for(var z=0;z"u")return M;var I=new Map;return new Proxy(M,{get:function(D,z){return I.has(z)||I.set(z,M(z)),I.get(z)}})}var gt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xt(x){return typeof x!="string"||x.includes("-")?!1:!!(gt.indexOf(x)>-1||/[A-Z]/.test(x))}var zt={};function Ht(x){Object.assign(zt,x)}var mt=["","X","Y","Z"],Ot=["translate","scale","rotate","skew"],Jt=["transformPerspective","x","y","z"];Ot.forEach(function(x){return mt.forEach(function(M){return Jt.push(x+M)})});function Dr(x,M){return Jt.indexOf(x)-Jt.indexOf(M)}var ln=new Set(Jt);function Qn(x){return ln.has(x)}var Ln=new Set(["originX","originY","originZ"]);function nr(x){return Ln.has(x)}function mo(x,M){var I=M.layout,D=M.layoutId;return Qn(x)||nr(x)||(I||D!==void 0)&&(!!zt[x]||x==="opacity")}var Yt=function(x){return!!(x!==null&&typeof x=="object"&&x.getVelocity)},yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qr(x,M,I,D){var z=x.transform,$=x.transformKeys,G=M.enableHardwareAcceleration,U=G===void 0?!0:G,ee=M.allowTransformNone,te=ee===void 0?!0:ee,ae="";$.sort(Dr);for(var de=!1,pe=$.length,me=0;me"u"?Y5:Nh;te(ee,U.current,M,G)}var q5={some:0,all:1};function Nh(x,M,I,D){var z=D.root,$=D.margin,G=D.amount,U=G===void 0?"some":G,ee=D.once;r.useEffect(function(){if(x){var te={root:z==null?void 0:z.current,rootMargin:$,threshold:typeof U=="number"?U:q5[U]},ae=function(de){var pe,me=de.isIntersecting;if(M.isInView!==me&&(M.isInView=me,!(ee&&!me&&M.hasEnteredView))){me&&(M.hasEnteredView=!0),(pe=I.animationState)===null||pe===void 0||pe.setActive(e.AnimationType.InView,me);var u=I.getProps(),f=me?u.onViewportEnter:u.onViewportLeave;f==null||f(de)}};return Jr(I.getInstance(),te,ae)}},[x,z,$,U])}function Y5(x,M,I,D){var z=D.fallback,$=z===void 0?!0:z;r.useEffect(function(){!x||!$||requestAnimationFrame(function(){var G;M.hasEnteredView=!0;var U=I.getProps().onViewportEnter;U==null||U(null),(G=I.animationState)===null||G===void 0||G.setActive(e.AnimationType.InView,!0)})},[x])}var ii=function(x){return function(M){return x(M),null}},ai={inView:ii(Rh),tap:ii($5),focus:ii(He),hover:ii(bm)},X5=0,Q5=function(){return X5++},jo=function(){return ue(Q5)};function li(){var x=r.useContext(T);if(x===null)return[!0,null];var M=x.isPresent,I=x.onExitComplete,D=x.register,z=jo();r.useEffect(function(){return D(z)},[]);var $=function(){return I==null?void 0:I(z)};return!M&&I?[!1,$]:[!0]}function Hd(){return Ah(r.useContext(T))}function Ah(x){return x===null?!0:x.isPresent}function Ih(x,M){if(!Array.isArray(M))return!1;var I=M.length;if(I!==x.length)return!1;for(var D=0;D-1&&x.splice(I,1)}function Yd(x,M,I){var D=t.__read(x),z=D.slice(0),$=M<0?z.length+M:M;if($>=0&&$L&&Rt,ve=Array.isArray(Ae)?Ae:[Ae],Pe=ve.reduce($,{});wt===!1&&(Pe={});var Be=Ve.prevResolvedValues,tt=Be===void 0?{}:Be,yt=t.__assign(t.__assign({},tt),Pe),ct=function(nt){_e=!0,O.delete(nt),Ve.needsAnimating[nt]=!0};for(var vt in yt){var ft=Pe[vt],Ne=tt[vt];N.hasOwnProperty(vt)||(ft!==Ne?bt(ft)&&bt(Ne)?!Ih(ft,Ne)||On?ct(vt):Ve.protectedKeys[vt]=!0:ft!==void 0?ct(vt):O.add(vt):ft!==void 0&&O.has(vt)?ct(vt):Ve.protectedKeys[vt]=!0)}Ve.prevProp=Ae,Ve.prevResolvedValues=Pe,Ve.isActive&&(N=t.__assign(t.__assign({},N),Pe)),z&&x.blockInitialAnimation&&(_e=!1),_e&&!er&&f.push.apply(f,t.__spreadArray([],t.__read(ve.map(function(nt){return{animation:nt,options:t.__assign({type:Ee},ae)}})),!1))},K=0;K=3;if(!(!me&&!u)){var f=pe.point,O=a.getFrameData().timestamp;z.history.push(t.__assign(t.__assign({},f),{timestamp:O}));var N=z.handlers,L=N.onStart,j=N.onMove;me||(L&&L(z.lastMoveEvent,pe),z.startEvent=z.lastMoveEvent),j&&j(z.lastMoveEvent,pe)}}},this.handlePointerMove=function(pe,me){if(z.lastMoveEvent=pe,z.lastMoveEventInfo=Vo(me,z.transformPagePoint),It(pe)&&pe.buttons===0){z.handlePointerUp(pe,me);return}S.default.update(z.updatePoint,!0)},this.handlePointerUp=function(pe,me){z.end();var u=z.handlers,f=u.onEnd,O=u.onSessionEnd,N=Ja(Vo(me,z.transformPagePoint),z.history);z.startEvent&&f&&f(pe,N),O&&O(pe,N)},!(at(M)&&M.touches.length>1)){this.handlers=I,this.transformPagePoint=G;var U=wo(M),ee=Vo(U,this.transformPagePoint),te=ee.point,ae=a.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},te),{timestamp:ae})];var de=I.onSessionStart;de&&de(M,Ja(ee,this.history)),this.removeListeners=i.pipe(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return x.prototype.updateHandlers=function(M){this.handlers=M},x.prototype.end=function(){this.removeListeners&&this.removeListeners(),a.cancelSync.update(this.updatePoint)},x})();function Vo(x,M){return M?{point:M(x.point)}:x}function ef(x,M){return{x:x.x-M.x,y:x.y-M.y}}function Ja(x,M){var I=x.point;return{point:I,delta:ef(I,tf(M)),offset:ef(I,Om(M)),velocity:fr(M,.1)}}function Om(x){return x[0]}function tf(x){return x[x.length-1]}function fr(x,M){if(x.length<2)return{x:0,y:0};for(var I=x.length-1,D=null,z=tf(x);I>=0&&(D=x[I],!(z.timestamp-D.timestamp>Wd(M)));)I--;if(!D)return{x:0,y:0};var $=(z.timestamp-D.timestamp)/1e3;if($===0)return{x:0,y:0};var G={x:(z.x-D.x)/$,y:(z.y-D.y)/$};return G.x===1/0&&(G.x=0),G.y===1/0&&(G.y=0),G}function Po(x){return x.max-x.min}function rf(x,M,I){return M===void 0&&(M=0),I===void 0&&(I=.01),i.distance(x,M)z&&(x=I?i.mix(z,x,I.max):Math.min(x,z)),x}function fc(x,M,I){return{min:M!==void 0?x.min+M:void 0,max:I!==void 0?x.max+I-(x.max-x.min):void 0}}function pc(x,M){var I=M.top,D=M.left,z=M.bottom,$=M.right;return{x:fc(x.x,D,$),y:fc(x.y,I,z)}}function Ls(x,M){var I,D=M.min-x.min,z=M.max-x.max;return M.max-M.minD?I=i.progress(M.min,M.max-D,x.min):D>z&&(I=i.progress(x.min,x.max-z,M.min)),i.clamp(0,1,I)}function Uh(x,M){var I={};return M.min!==void 0&&(I.min=M.min-x.min),M.max!==void 0&&(I.max=M.max-x.min),I}var hc=.35;function Hh(x){return x===void 0&&(x=hc),x===!1?x=0:x===!0&&(x=hc),{x:fi(x,"left","right"),y:fi(x,"top","bottom")}}function fi(x,M,I){return{min:To(x,M),max:To(x,I)}}function To(x,M){var I;return typeof x=="number"?x:(I=x[M])!==null&&I!==void 0?I:0}var Ds=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Il=function(){return{x:Ds(),y:Ds()}},af=function(){return{min:0,max:0}},Gr=function(){return{x:af(),y:af()}};function pi(x){return[x("x"),x("y")]}function Wh(x){var M=x.top,I=x.left,D=x.right,z=x.bottom;return{x:{min:I,max:D},y:{min:M,max:z}}}function km(x){var M=x.x,I=x.y;return{top:I.min,right:M.max,bottom:I.max,left:M.min}}function Em(x,M){if(!M)return x;var I=M({x:x.left,y:x.top}),D=M({x:x.right,y:x.bottom});return{top:I.y,left:I.x,bottom:D.y,right:D.x}}function lf(x){return x===void 0||x===1}function $h(x){var M=x.scale,I=x.scaleX,D=x.scaleY;return!lf(M)||!lf(I)||!lf(D)}function ma(x){return $h(x)||Fs(x.x)||Fs(x.y)||x.z||x.rotate||x.rotateX||x.rotateY}function Fs(x){return x&&x!=="0%"}function gc(x,M,I){var D=x-I,z=M*D;return I+z}function vc(x,M,I,D,z){return z!==void 0&&(x=gc(x,z,D)),gc(x,I,D)+M}function js(x,M,I,D,z){M===void 0&&(M=0),I===void 0&&(I=1),x.min=vc(x.min,M,I,D,z),x.max=vc(x.max,M,I,D,z)}function Gh(x,M){var I=M.x,D=M.y;js(x.x,I.translate,I.scale,I.originPoint),js(x.y,D.translate,D.scale,D.originPoint)}function Kh(x,M,I,D){var z,$;D===void 0&&(D=!1);var G=I.length;if(G){M.x=M.y=1;for(var U,ee,te=0;teM?I="y":Math.abs(x.x)>M&&(I="x"),I}function t_(x){var M=x.dragControls,I=x.visualElement,D=ue(function(){return new J5(I)});r.useEffect(function(){return M&&M.subscribe(D)},[D,M]),r.useEffect(function(){return D.addListeners()},[D])}function Im(x){var M=x.onPan,I=x.onPanStart,D=x.onPanEnd,z=x.onPanSessionStart,$=x.visualElement,G=M||I||D||z,U=r.useRef(null),ee=r.useContext(g).transformPagePoint,te={onSessionStart:z,onStart:I,onMove:M,onEnd:function(de,pe){U.current=null,D&&D(de,pe)}};r.useEffect(function(){U.current!==null&&U.current.updateHandlers(te)});function ae(de){U.current=new Nl(de,te,{transformPagePoint:ee})}Ol($,"pointerdown",G&&ae),Ya(function(){return U.current&&U.current.end()})}var Xh={pan:ii(Im),drag:ii(t_)},yc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function sf(){var x=yc.map(function(){return new ac}),M={},I={clearAllListeners:function(){return x.forEach(function(D){return D.clear()})},updatePropListeners:function(D){yc.forEach(function(z){var $,G="on"+z,U=D[G];($=M[z])===null||$===void 0||$.call(M),U&&(M[z]=I[G](U))})}};return x.forEach(function(D,z){I["on"+yc[z]]=function($){return D.add($)},I["notify"+yc[z]]=function(){for(var $=[],G=0;G=0?window.pageYOffset:null,te=Vm(M,x,U);return $.length&&$.forEach(function(ae){var de=t.__read(ae,2),pe=de[0],me=de[1];x.getValue(pe).set(me)}),x.syncRender(),ee!==null&&window.scrollTo({top:ee}),{target:te,transitionEnd:D}}else return{target:M,transitionEnd:D}};function Um(x,M,I,D){return Zh(M)?Bm(x,M,I,D):{target:M,transitionEnd:D}}var Hm=function(x,M,I,D){var z=Qh(x,M,D);return M=z.target,D=z.transitionEnd,Um(x,M,I,D)};function Wm(x){return window.getComputedStyle(x)}var ff={treeType:"dom",readValueFromInstance:function(x,M){if(Qn(M)){var I=$d(M);return I&&I.default||0}else{var D=Wm(x);return(da(M)?D.getPropertyValue(M):D[M])||0}},sortNodePosition:function(x,M){return x.compareDocumentPosition(M)&2?1:-1},getBaseTarget:function(x,M){var I;return(I=x.style)===null||I===void 0?void 0:I[M]},measureViewportBox:function(x,M){var I=M.transformPagePoint;return Yh(x,I)},resetTransform:function(x,M,I){var D=I.transformTemplate;M.style.transform=D?D({},""):"none",x.scheduleRender()},restoreTransform:function(x,M){x.style.transform=M.style.transform},removeValueFromRenderState:function(x,M){var I=M.vars,D=M.style;delete I[x],delete D[x]},makeTargetAnimatable:function(x,M,I,D){var z=I.transformValues;D===void 0&&(D=!0);var $=M.transition,G=M.transitionEnd,U=t.__rest(M,["transition","transitionEnd"]),ee=Co(U,$||{},x);if(z&&(G&&(G=z(G)),U&&(U=z(U)),ee&&(ee=z(ee))),D){cc(x,U,ee);var te=Hm(x,U,ee,G);G=te.transitionEnd,U=te.target}return t.__assign({transition:$,transitionEnd:G},U)},scrapeMotionValuesFromProps:kt,build:function(x,M,I,D,z){x.isVisible!==void 0&&(M.style.visibility=x.isVisible?"visible":"hidden"),sn(M,I,D,z.transformTemplate)},render:Ze},$m=uf(ff),r0=uf(t.__assign(t.__assign({},ff),{getBaseTarget:function(x,M){return x[M]},readValueFromInstance:function(x,M){var I;return Qn(M)?((I=$d(M))===null||I===void 0?void 0:I.default)||0:(M=$e.has(M)?M:je(M),x.getAttribute(M))},scrapeMotionValuesFromProps:Nt,build:function(x,M,I,D,z){he(M,I,D,z.transformTemplate)},render:Ge})),pf=function(x,M){return xt(x)?r0(M,{enableHardwareAcceleration:!1}):$m(M,{enableHardwareAcceleration:!0})};function n0(x,M){return M.max===M.min?0:x/(M.max-M.min)*100}var Ll={correct:function(x,M){if(!M.target)return x;if(typeof x=="string")if(o.px.test(x))x=parseFloat(x);else return x;var I=n0(x,M.target.x),D=n0(x,M.target.y);return"".concat(I,"% ").concat(D,"%")}},hf="_$css",Gm={correct:function(x,M){var I=M.treeScale,D=M.projectionDelta,z=x,$=x.includes("var("),G=[];$&&(x=x.replace(wc,function(f){return G.push(f),hf}));var U=o.complex.parse(x);if(U.length>5)return z;var ee=o.complex.createTransformer(x),te=typeof U[0]!="number"?1:0,ae=D.x.scale*I.x,de=D.y.scale*I.y;U[0+te]/=ae,U[1+te]/=de;var pe=i.mix(ae,de,.5);typeof U[2+te]=="number"&&(U[2+te]/=pe),typeof U[3+te]=="number"&&(U[3+te]/=pe);var me=ee(U);if($){var u=0;me=me.replace(hf,function(){var f=G[u];return u++,f})}return me}},o0=(function(x){t.__extends(M,x);function M(){return x!==null&&x.apply(this,arguments)||this}return M.prototype.componentDidMount=function(){var I=this,D=this.props,z=D.visualElement,$=D.layoutGroup,G=D.switchLayoutGroup,U=D.layoutId,ee=z.projection;Ht(o_),ee&&($!=null&&$.group&&$.group.add(ee),G!=null&&G.register&&U&&G.register(ee),ee.root.didUpdate(),ee.addEventListener("animationComplete",function(){I.safeToRemove()}),ee.setOptions(t.__assign(t.__assign({},ee.options),{onExitComplete:function(){return I.safeToRemove()}}))),Se.hasEverUpdated=!0},M.prototype.getSnapshotBeforeUpdate=function(I){var D=this,z=this.props,$=z.layoutDependency,G=z.visualElement,U=z.drag,ee=z.isPresent,te=G.projection;return te&&(te.isPresent=ee,U||I.layoutDependency!==$||$===void 0?te.willUpdate():this.safeToRemove(),I.isPresent!==ee&&(ee?te.promote():te.relegate()||S.default.postRender(function(){var ae;!((ae=te.getStack())===null||ae===void 0)&&ae.members.length||D.safeToRemove()}))),null},M.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},M.prototype.componentWillUnmount=function(){var I=this.props,D=I.visualElement,z=I.layoutGroup,$=I.switchLayoutGroup,G=D.projection;G&&(G.scheduleCheckAfterUnmount(),z!=null&&z.group&&z.group.remove(G),$!=null&&$.deregister&&$.deregister(G))},M.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},M.prototype.render=function(){return null},M})(b.default.Component);function gf(x){var M=t.__read(li(),2),I=M[0],D=M[1],z=r.useContext(Le);return b.default.createElement(o0,t.__assign({},x,{layoutGroup:z,switchLayoutGroup:r.useContext(Re),isPresent:I,safeToRemove:D}))}var o_={borderRadius:t.__assign(t.__assign({},Ll),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:Gm},i0={measureLayout:gf};function vf(x,M,I){I===void 0&&(I={});var D=Yt(x)?x:So(x);return Ms("",D,M,I),{stop:function(){return D.stop()},isAnimating:function(){return D.isAnimating()}}}var a0=["TopLeft","TopRight","BottomLeft","BottomRight"],mf=a0.length,Hi=function(x){return typeof x=="string"?parseFloat(x):x},Km=function(x){return typeof x=="number"||o.px.test(x)};function Wi(x,M,I,D,z,$){var G,U,ee,te;z?(x.opacity=i.mix(0,(G=I.opacity)!==null&&G!==void 0?G:1,xc(D)),x.opacityExit=i.mix((U=M.opacity)!==null&&U!==void 0?U:1,0,Sc(D))):$&&(x.opacity=i.mix((ee=M.opacity)!==null&&ee!==void 0?ee:1,(te=I.opacity)!==null&&te!==void 0?te:1,D));for(var ae=0;aeM?1:I(i.progress(x,M,D))}}function Pc(x,M){x.min=M.min,x.max=M.max}function Bo(x,M){Pc(x.x,M.x),Pc(x.y,M.y)}function Vs(x,M,I,D,z){return x-=M,x=gc(x,1/I,D),z!==void 0&&(x=gc(x,1/z,D)),x}function Tn(x,M,I,D,z,$,G){if(M===void 0&&(M=0),I===void 0&&(I=1),D===void 0&&(D=.5),$===void 0&&($=x),G===void 0&&(G=x),o.percent.test(M)){M=parseFloat(M);var U=i.mix(G.min,G.max,M/100);M=U-G.min}if(typeof M=="number"){var ee=i.mix($.min,$.max,D);x===$&&(ee-=M),x.min=Vs(x.min,M,I,ee,z),x.max=Vs(x.max,M,I,ee,z)}}function qm(x,M,I,D,z){var $=t.__read(I,3),G=$[0],U=$[1],ee=$[2];Tn(x,M[G],M[U],M[ee],M.scale,D,z)}var i_=["x","scaleX","originX"],yf=["y","scaleY","originY"];function dn(x,M,I,D){qm(x.x,M,i_,I==null?void 0:I.x,D==null?void 0:D.x),qm(x.y,M,yf,I==null?void 0:I.y,D==null?void 0:D.y)}function Ym(x){return x.translate===0&&x.scale===1}function We(x){return Ym(x.x)&&Ym(x.y)}function Dl(x,M){return x.x.min===M.x.min&&x.x.max===M.x.max&&x.y.min===M.y.min&&x.y.max===M.y.max}var s0=(function(){function x(){this.members=[]}return x.prototype.add=function(M){ic(this.members,M),M.scheduleRender()},x.prototype.remove=function(M){if(Lh(this.members,M),M===this.prevLead&&(this.prevLead=void 0),M===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},x.prototype.relegate=function(M){var I=this.members.findIndex(function(G){return M===G});if(I===0)return!1;for(var D,z=I;z>=0;z--){var $=this.members[z];if($.isPresent!==!1){D=$;break}}return D?(this.promote(D),!0):!1},x.prototype.promote=function(M,I){var D,z=this.lead;if(M!==z&&(this.prevLead=z,this.lead=M,M.show(),z)){z.instance&&z.scheduleRender(),M.scheduleRender(),M.resumeFrom=z,I&&(M.resumeFrom.preserveOpacity=!0),z.snapshot&&(M.snapshot=z.snapshot,M.snapshot.latestValues=z.animationValues||z.latestValues,M.snapshot.isShared=!0),!((D=M.root)===null||D===void 0)&&D.isUpdating&&(M.isLayoutDirty=!0);var $=M.options.crossfade;$===!1&&z.hide()}},x.prototype.exitAnimationComplete=function(){this.members.forEach(function(M){var I,D,z,$,G;(D=(I=M.options).onExitComplete)===null||D===void 0||D.call(I),(G=(z=M.resumingFrom)===null||z===void 0?void 0:($=z.options).onExitComplete)===null||G===void 0||G.call($)})},x.prototype.scheduleRender=function(){this.members.forEach(function(M){M.instance&&M.scheduleRender(!1)})},x.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},x})(),Xm="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Qm(x,M,I){var D=x.x.translate/M.x,z=x.y.translate/M.y,$="translate3d(".concat(D,"px, ").concat(z,"px, 0) ");if($+="scale(".concat(1/M.x,", ").concat(1/M.y,") "),I){var G=I.rotate,U=I.rotateX,ee=I.rotateY;G&&($+="rotate(".concat(G,"deg) ")),U&&($+="rotateX(".concat(U,"deg) ")),ee&&($+="rotateY(".concat(ee,"deg) "))}var te=x.x.scale*M.x,ae=x.y.scale*M.y;return $+="scale(".concat(te,", ").concat(ae,")"),$===Xm?"none":$}var Tc=function(x,M){return x.depth-M.depth},Oc=(function(){function x(){this.children=[],this.isDirty=!1}return x.prototype.add=function(M){ic(this.children,M),this.isDirty=!0},x.prototype.remove=function(M){Lh(this.children,M),this.isDirty=!0},x.prototype.forEach=function(M){this.isDirty&&this.children.sort(Tc),this.isDirty=!1,this.children.forEach(M)},x})(),bf=1e3;function u0(x){var M=x.attachResizeListener,I=x.defaultParent,D=x.measureScroll,z=x.checkIsScrollRoot,$=x.resetTransform;return(function(){function G(U,ee,te){var ae=this;ee===void 0&&(ee={}),te===void 0&&(te=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ae.isUpdating&&(ae.isUpdating=!1,ae.clearAllSnapshots())},this.updateProjection=function(){ae.nodes.forEach($i),ae.nodes.forEach(d0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=U,this.latestValues=ee,this.root=te?te.root||te:this,this.path=te?t.__spreadArray(t.__spreadArray([],t.__read(te.path),!1),[te],!1):[],this.parent=te,this.depth=te?te.depth+1:0,U&&this.root.registerPotentialNode(U,this);for(var de=0;de=0;D--)if(x.path[D].instance){I=x.path[D];break}var z=I&&I!==x.root?I.instance:document,$=z.querySelector('[data-projection-id="'.concat(M,'"]'));$&&x.mount($,!0)}function p0(x){x.min=Math.round(x.min),x.max=Math.round(x.max)}function kc(x){p0(x.x),p0(x.y)}var _f=u0({attachResizeListener:function(x,M){return Zr(x,"resize",M)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Gi={current:void 0},Bs=u0({measureScroll:function(x){return{x:x.scrollLeft,y:x.scrollTop}},defaultParent:function(){if(!Gi.current){var x=new _f(0,{});x.mount(window),x.setOptions({layoutScroll:!0}),Gi.current=x}return Gi.current},resetTransform:function(x,M){x.style.transform=M??"none"},checkIsScrollRoot:function(x){return window.getComputedStyle(x).position==="fixed"}}),Ec=t.__assign(t.__assign(t.__assign(t.__assign({},Rl),ai),Xh),i0),Fl=Mt(function(x,M){return un(x,M,Ec,pf,Bs)});function h0(x){return ze(un(x,{forwardMotionProps:!1},Ec,pf,Bs))}var g0=Mt(un);function xf(){var x=r.useRef(!1);return R(function(){return x.current=!0,function(){x.current=!1}},[]),x}function Mc(){var x=xf(),M=t.__read(r.useState(0),2),I=M[0],D=M[1],z=r.useCallback(function(){x.current&&D(I+1)},[I]),$=r.useCallback(function(){return S.default.postRender(z)},[z]);return[$,I]}var Rc=function(x){var M=x.children,I=x.initial,D=x.isPresent,z=x.onExitComplete,$=x.custom,G=x.presenceAffectsLayout,U=ue(l_),ee=jo(),te=r.useMemo(function(){return{id:ee,initial:I,isPresent:D,custom:$,onExitComplete:function(ae){var de,pe;U.set(ae,!0);try{for(var me=t.__values(U.values()),u=me.next();!u.done;u=me.next()){var f=u.value;if(!f)return}}catch(O){de={error:O}}finally{try{u&&!u.done&&(pe=me.return)&&pe.call(me)}finally{if(de)throw de.error}}z==null||z()},register:function(ae){return U.set(ae,!1),function(){return U.delete(ae)}}}},G?void 0:[D]);return r.useMemo(function(){U.forEach(function(ae,de){return U.set(de,!1)})},[D]),v.useEffect(function(){!D&&!U.size&&(z==null||z())},[D]),v.createElement(T.Provider,{value:te},M)};function l_(){return new Map}var ba=function(x){return x.key||""};function v0(x,M){x.forEach(function(I){var D=ba(I);M.set(D,I)})}function Pr(x){var M=[];return r.Children.forEach(x,function(I){r.isValidElement(I)&&M.push(I)}),M}var Ct=function(x){var M=x.children,I=x.custom,D=x.initial,z=D===void 0?!0:D,$=x.onExitComplete,G=x.exitBeforeEnter,U=x.presenceAffectsLayout,ee=U===void 0?!0:U,te=t.__read(Mc(),1),ae=te[0],de=r.useContext(Le).forceRender;de&&(ae=de);var pe=xf(),me=Pr(M),u=me,f=new Set,O=r.useRef(u),N=r.useRef(new Map).current,L=r.useRef(!0);if(R(function(){L.current=!1,v0(me,N),O.current=u}),Ya(function(){L.current=!0,N.clear(),f.clear()}),L.current)return v.createElement(v.Fragment,null,u.map(function(Ee){return v.createElement(Rc,{key:ba(Ee),isPresent:!0,initial:z?void 0:!1,presenceAffectsLayout:ee},Ee)}));u=t.__spreadArray([],t.__read(u),!1);for(var j=O.current.map(ba),K=me.map(ba),se=j.length,ye=0;ye0?1:-1,G=x[z+$];if(!G)return x;var U=x[z],ee=G.layout,te=i.mix(ee.min,ee.max,.5);return $===1&&U.layout.max+I>te||$===-1&&U.layout.min+I.001?1/x:p_},Ef=!1;function h_(x){var M=Ki(1),I=Ki(1),D=_();n.invariant(!!(x||D),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(Ef,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),Ef=!0,x?(M=x.scaleX||M,I=x.scaleY||I):D&&(M=D.getValue("scaleX",1),I=D.getValue("scaleY",1));var z=Vl(M,Oo),$=Vl(I,Oo);return{scaleX:z,scaleY:$}}e.AnimatePresence=Ct,e.AnimateSharedLayout=jl,e.DeprecatedLayoutGroupContext=Kr,e.DragControls=il,e.FlatTree=Oc,e.LayoutGroup=zr,e.LayoutGroupContext=Le,e.LazyMotion=m0,e.MotionConfig=Sf,e.MotionConfigContext=g,e.MotionContext=m,e.MotionValue=sc,e.PresenceContext=T,e.Reorder=ro,e.SwitchLayoutGroupContext=Re,e.addPointerEvent=Tl,e.addScaleCorrector=Ht,e.animate=vf,e.animateVisualElement=Bi,e.animationControls=Lc,e.animations=Rl,e.calcLength=Po,e.checkTargetForNewValues=cc,e.createBox=Gr,e.createDomMotionComponent=h0,e.createMotionComponent=ze,e.domAnimation=w0,e.domMax=_0,e.filterProps=ni,e.isBrowser=k,e.isDragActive=Mh,e.isMotionValue=Yt,e.isValidMotionProp=Dn,e.m=g0,e.makeUseVisualState=jn,e.motion=Fl,e.motionValue=So,e.resolveMotionValue=Fn,e.transform=_a,e.useAnimation=u_,e.useAnimationControls=ay,e.useAnimationFrame=C0,e.useCycle=ly,e.useDeprecatedAnimatedState=dy,e.useDeprecatedInvertedScale=h_,e.useDomEvent=At,e.useDragControls=Ul,e.useElementScroll=S0,e.useForceUpdate=Mc,e.useInView=sy,e.useInstantLayoutTransition=T0,e.useInstantTransition=d_,e.useIsPresent=Hd,e.useIsomorphicLayoutEffect=R,e.useMotionTemplate=x0,e.useMotionValue=Ki,e.usePresence=li,e.useReducedMotion=V,e.useReducedMotionConfig=B,e.useResetProjection=uy,e.useScroll=kf,e.useSpring=s_,e.useTime=P0,e.useTransform=Vl,e.useUnmountEffect=Ya,e.useVelocity=ol,e.useViewportScroll=Bl,e.useVisualElementContext=_,e.visualElement=uf,e.wrapHandler=qa})(An);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{AccordionBody:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=S(pt),i=S(Xn),a=S(et),l=Je,s=t2,d=Xe,v=Gv;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,s.useAccordion)(),T=_.open,k=_.animate,R=(0,d.useTheme)().accordion,E=R.styles.base;c=c??"";var A=(0,l.twMerge)((0,o.default)((0,a.default)(E.body)),c),F={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},V={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},B=(0,i.default)(F,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:B},r.default.createElement(n.m.div,b({},m,{ref:p,className:A,initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:V}),g)))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var C=y})(TA);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Accordion:function(){return C},AccordionHeader:function(){return d.AccordionHeader},AccordionBody:function(){return v.AccordionBody},useAccordion:function(){return l.useAccordion},default:function(){return h}});var r=w(Y),n=w(pt),o=Je,i=w(et),a=Xe,l=t2,s=Gv,d=PA,v=TA;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.open,m=p.icon,_=p.animate,T=p.className,k=p.disabled,R=p.children,E=P(p,["open","icon","animate","className","disabled","children"]),A=(0,a.useTheme)().accordion,F=A.defaultProps,V=A.styles.base;m=m??F.icon,_=_??F.animate,k=k??F.disabled,T=(0,o.twMerge)(F.className||"",T);var B=(0,o.twMerge)((0,n.default)((0,i.default)(V.container),b({},(0,i.default)(V.disabled),k)),T),H=r.default.useMemo(function(){return{open:g,icon:m,animate:_,disabled:k}},[g,m,_,k]);return r.default.createElement(l.AccordionContextProvider,{value:H},r.default.createElement("div",S({},E,{ref:c,className:B}),R))});C.propTypes={open:s.propTypesOpen,icon:s.propTypesIcon,animate:s.propTypesAnimate,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},C.displayName="MaterialTailwind.Accordion";var h=Object.assign(C,{Header:d.AccordionHeader,Body:v.AccordionBody})})(e7);var rL={},Sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,i){var a=n.findIndex(function(l){return l===o});return a>=0?o:i}var r=t})(Sr);var p2={},fh=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,i,a){return this.x=t-n>r/2?0:r,this.y=o-a>i/2?0:i,this.z=Math.hypot(this.x-(t-n),this.y-(o-a)),this.z}appyStyles(t,r,n,o,i){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=i.clientX-n.left-o+"px",t.style.top=i.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),i=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),a=document.createElement("span");this.appyStyles(a,r,o,i,t),this.applyAnimation(a),n.appendChild(a),setTimeout(()=>a.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{IconButton:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(fh),i=S(pt),a=Je,l=S(Sr),s=S(et),d=Xe,v=_d;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.ripple,T=h.className,k=h.children;h.fullWidth;var R=w(h,["variant","size","color","ripple","className","children","fullWidth"]),E=(0,d.useTheme)().iconButton,A=E.valid,F=E.defaultProps,V=E.styles,B=V.base,H=V.variants,q=V.sizes;c=c??F.variant,g=g??F.size,m=m??F.color,_=_??F.ripple,T=(0,a.twMerge)(F.className||"",T);var ne=_!==void 0&&new o.default,Q=(0,s.default)(B),W=(0,s.default)(H[(0,l.default)(A.variants,c,"filled")][(0,l.default)(A.colors,m,"gray")]),X=(0,s.default)(q[(0,l.default)(A.sizes,g,"md")]),re=(0,a.twMerge)((0,i.default)(Q,X,W),T);return r.default.createElement("button",b({},R,{ref:p,className:re,type:R.type||"button",onMouseDown:function(Z){var oe=R==null?void 0:R.onMouseDown;return _&&ne.create(Z,(c==="filled"||c==="gradient")&&m!=="white"?"light":"dark"),typeof oe=="function"&&oe(Z)}}),r.default.createElement("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform"},k))});y.propTypes={variant:n.default.oneOf(v.propTypesVariant),size:n.default.oneOf(v.propTypesSize),color:n.default.oneOf(v.propTypesColor),ripple:v.propTypesRipple,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var C=y})(p2);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Alert:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=AP,S=P(p2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.icon,k=c.open,R=c.action,E=c.onClose,A=c.animate,F=c.className,V=c.children,B=y(c,["variant","color","icon","open","action","onClose","animate","className","children"]),H=(0,v.useTheme)().alert,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.variants;m=m??q.variant,_=_??q.color,A=A??q.animate,k=k??q.open,R=R??q.action,E=E??q.onClose,F=(0,l.twMerge)(q.className||"",F);var re=(0,d.default)(W.alert),Z=(0,d.default)(W.action),oe=(0,d.default)(X[(0,s.default)(ne.variants,m,"filled")][(0,s.default)(ne.colors,_,"gray")]),fe=(0,l.twMerge)((0,i.default)(re,oe),F),ge=(0,i.default)(Z),ce={unmount:{opacity:0},mount:{opacity:1}},J=(0,a.default)(ce,A),ie=r.default.createElement("div",{className:"shrink-0"},T),ue=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ue,null,k&&r.default.createElement(o.m.div,w({},B,{ref:g,role:"alert",className:"".concat(fe," flex"),initial:"unmount",exit:"unmount",animate:k?"mount":"unmount",variants:J}),T&&ie,r.default.createElement("div",{className:"".concat(T?"ml-3":""," mr-12")},V),E&&!R&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?_:"white",className:ge},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"h-6 w-6",strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),R||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,action:b.propTypesAction,onClose:b.propTypesOnClose,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},h.displayName="MaterialTailwind.Alert";var p=h})(rL);var nL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Avatar:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=IP;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.className,_=h.color,T=h.withBorder,k=w(h,["variant","size","className","color","withBorder"]),R=(0,s.useTheme)().avatar,E=R.valid,A=R.defaultProps,F=R.styles,V=F.base,B=F.variants,H=F.sizes,q=F.borderColor;c=c??A.variant,g=g??A.size,T=T??A.withBorder,_=_??A.color,m=(0,i.twMerge)(A.className||"",m);var ne=(0,l.default)(B[(0,a.default)(E.variants,c,"rounded")]),Q=(0,l.default)(H[(0,a.default)(E.sizes,g,"md")]),W=(0,l.default)(q[(0,a.default)(E.colors,_,"gray")]),X,re=(0,i.twMerge)((0,o.default)((0,l.default)(V.initial),ne,Q,(X={},v(X,(0,l.default)(V.withBorder),T),v(X,W,T),X)),m);return r.default.createElement("img",b({},k,{ref:p,className:re}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),className:d.propTypesClassName,withBorder:d.propTypesWithBorder,color:n.default.oneOf(d.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var C=y})(nL);var oL={},iL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return i},propTypesClassName:function(){return a},propTypesChildren:function(){return l}});var r=n(ot);function n(s){return s&&s.__esModule?s:{default:s}}var o=r.default.node,i=r.default.bool,a=r.default.string,l=r.default.node.isRequired})(iL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Breadcrumbs:function(){return y},default:function(){return C}});var r=S(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=iL;function s(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function d(){return d=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=(0,r.forwardRef)(function(h,p){var c=h.separator,g=h.fullWidth,m=h.className,_=h.children,T=w(h,["separator","fullWidth","className","children"]),k=(0,a.useTheme)().breadcrumbs,R=k.defaultProps,E=k.styles.base;c=c??R.separator,g=g??R.fullWidth,m=(0,o.twMerge)(R.className||"",m);var A=(0,n.default)((0,i.default)(E.root.initial),s({},(0,i.default)(E.root.fullWidth),g)),F=(0,o.twMerge)((0,n.default)((0,i.default)(E.list)),m),V=(0,n.default)((0,i.default)(E.item.initial)),B=(0,n.default)((0,i.default)(E.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:A},r.default.createElement("ol",d({},T,{ref:p,className:F}),r.Children.map(_,function(H,q){if((0,r.isValidElement)(H)){var ne;return r.default.createElement("li",{className:(0,n.default)(V,s({},(0,i.default)(E.item.disabled),H==null||(ne=H.props)===null||ne===void 0?void 0:ne.disabled))},H,q!==r.Children.count(_)-1&&r.default.createElement("span",{className:B},c))}return null})))});y.propTypes={separator:l.propTypesSeparator,fullWidth:l.propTypesFullWidth,className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var C=y})(oL);var aL={},w3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Spinner:function(){return C},default:function(){return h}});var r=b(ot),n=w(Y),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=KP;function v(){return v=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=(0,n.forwardRef)(function(p,c){var g=p.color,m=p.className,_=P(p,["color","className"]),T=(0,s.useTheme)().spinner,k=T.defaultProps,R=T.valid,E=T.styles,A=E.base,F=E.colors;g=g??k.color,m=(0,i.twMerge)(k.className||"",m);var V=(0,l.default)(F[(0,a.default)(R.colors,g,"gray")]),B=(0,i.twMerge)((0,o.default)((0,l.default)(A)),m),H,q;return n.default.createElement("svg",v({},_,{ref:c,className:B,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(H=_==null?void 0:_.width)!==null&&H!==void 0?H:24,height:(q=_==null?void 0:_.height)!==null&&q!==void 0?q:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:V}))});C.propTypes={color:r.default.oneOf(d.propTypesColor),className:d.propTypesClassName},C.displayName="MaterialTailwind.Spinner";var h=C})(w3);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Button:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=P(fh),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=P(w3),b=_d;function S(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.fullWidth,R=c.ripple,E=c.className,A=c.children,F=c.loading,V=y(c,["variant","size","color","fullWidth","ripple","className","children","loading"]),B=(0,d.useTheme)().button,H=B.valid,q=B.defaultProps,ne=B.styles,Q=ne.base,W=ne.variants,X=ne.sizes;m=m??q.variant,_=_??q.size,T=T??q.color,k=k??q.fullWidth,R=R??q.ripple,E=(0,a.twMerge)(q.className||"",E);var re=R!==void 0&&new o.default,Z=(0,s.default)(Q.initial),oe=(0,s.default)(W[(0,l.default)(H.variants,m,"filled")][(0,l.default)(H.colors,T,"gray")]),fe=(0,s.default)(X[(0,l.default)(H.sizes,_,"md")]),ge=(0,a.twMerge)((0,i.default)(Z,fe,oe,S({},(0,s.default)(Q.fullWidth),k),{"flex items-center gap-2":F,"gap-3":_==="lg"}),E),ce=(0,a.twMerge)((0,i.default)({"w-4 h-4":!0,"w-5 h-5":_==="lg"})),J;return r.default.createElement("button",w({},V,{disabled:(J=V.disabled)!==null&&J!==void 0?J:F,ref:g,className:ge,type:V.type||"button",onMouseDown:function(ie){var ue=V==null?void 0:V.onMouseDown;return R&&re.create(ie,(m==="filled"||m==="gradient")&&T!=="white"?"light":"dark"),typeof ue=="function"&&ue(ie)}}),F&&r.default.createElement(v.default,{className:ce}),A)});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),fullWidth:b.propTypesFullWidth,ripple:b.propTypesRipple,className:b.propTypesClassName,children:b.propTypesChildren,loading:b.propTypesLoading},h.displayName="MaterialTailwind.Button";var p=h})(aL);var lL={},sL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{CardHeader:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=xd;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.shadow,_=h.floated,T=h.className,k=h.children,R=w(h,["variant","color","shadow","floated","className","children"]),E=(0,s.useTheme)().cardHeader,A=E.defaultProps,F=E.styles,V=E.valid,B=F.base,H=F.variants;c=c??A.variant,g=g??A.color,m=m??A.shadow,_=_??A.floated,T=(0,i.twMerge)(A.className||"",T);var q=(0,l.default)(B.initial),ne=(0,l.default)(H[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"white")]),Q=(0,i.twMerge)((0,o.default)(q,ne,v({},(0,l.default)(B.shadow),m),v({},(0,l.default)(B.floated),_)),T);return r.default.createElement("div",b({},R,{ref:p,className:Q}),k)});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),shadow:d.propTypesShadow,floated:d.propTypesFloated,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var C=y})(sL);var uL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{CardBody:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=xd;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().cardBody,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.CardBody";var w=S})(uL);var cL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{CardFooter:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=xd;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().cardFooter,_=m.defaultProps,T=m.styles.base;h=h??_.divider,p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.CardFooter";var P=w})(cL);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Card:function(){return p},CardHeader:function(){return d.CardHeader},CardBody:function(){return v.CardBody},CardFooter:function(){return b.CardFooter},default:function(){return c}});var r=y(Y),n=y(ot),o=y(pt),i=Je,a=y(Sr),l=y(et),s=Xe,d=sL,v=uL,b=cL,S=xd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.variant,T=g.color,k=g.shadow,R=g.className,E=g.children,A=C(g,["variant","color","shadow","className","children"]),F=(0,s.useTheme)().card,V=F.defaultProps,B=F.styles,H=F.valid,q=B.base,ne=B.variants;_=_??V.variant,T=T??V.color,k=k??V.shadow,R=(0,i.twMerge)(V.className||"",R);var Q=(0,l.default)(q.initial),W=(0,l.default)(ne[(0,a.default)(H.variants,_,"filled")][(0,a.default)(H.colors,T,"white")]),X=(0,i.twMerge)((0,o.default)(Q,W,w({},(0,l.default)(q.shadow),k)),R);return r.default.createElement("div",P({},A,{ref:m,className:X}),E)});p.propTypes={variant:n.default.oneOf(S.propTypesVariant),color:n.default.oneOf(S.propTypesColor),shadow:S.propTypesShadow,className:S.propTypesClassName,children:S.propTypesChildren},p.displayName="MaterialTailwind.Card";var c=Object.assign(p,{Header:d.CardHeader,Body:v.CardBody,Footer:b.CardFooter})})(lL);var dL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Checkbox:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().checkbox,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var Z=T!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,a.twMerge)((0,i.default)((0,s.default)(W.icon)),F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("label",S({},E,{className:fe,htmlFor:B.id||re,onMouseDown:function(ie){var ue=E==null?void 0:E.onMouseDown;return T&&Z.create(ie,"dark"),typeof ue=="function"&&ue(ie)}}),r.default.createElement("input",S({},B,{ref:V,type:"checkbox",disabled:R,className:ge,id:B.id||re})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Checkbox";var h=C})(dL);var fL={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Chip:function(){return h},default:function(){return p}});var r=P(Y),n=P(ot),o=An,i=P(pt),a=P(Xn),l=Je,s=P(Sr),d=P(et),v=Xe,b=BP,S=P(p2);function w(){return w=Object.assign||function(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.size,T=c.color,k=c.icon,R=c.open,E=c.onClose,A=c.action,F=c.animate,V=c.className,B=c.value,H=y(c,["variant","size","color","icon","open","onClose","action","animate","className","value"]),q=(0,v.useTheme)().chip,ne=q.defaultProps,Q=q.valid,W=q.styles,X=W.base,re=W.variants,Z=W.sizes;m=m??ne.variant,_=_??ne.size,T=T??ne.color,F=F??ne.animate,R=R??ne.open,A=A??ne.action,E=E??ne.onClose,V=(0,l.twMerge)(ne.className||"",V);var oe=(0,d.default)(X.chip),fe=(0,d.default)(X.action),ge=(0,d.default)(X.icon),ce=(0,d.default)(re[(0,s.default)(Q.variants,m,"filled")][(0,s.default)(Q.colors,T,"gray")]),J=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].chip),ie=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].action),ue=(0,d.default)(Z[(0,s.default)(Q.sizes,_,"md")].icon),Se=(0,l.twMerge)((0,i.default)(oe,ce,J),V),Ce=(0,i.default)(fe,ie),Me=(0,i.default)(ge,ue),Le=(0,i.default)({"ml-4":k&&_==="sm","ml-[18px]":k&&_==="md","ml-5":k&&_==="lg","mr-5":E}),Re={unmount:{opacity:0},mount:{opacity:1}},be=(0,a.default)(Re,F),ke=r.default.createElement("div",{className:Me},k),ze=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(ze,null,R&&r.default.createElement(o.m.div,w({},H,{ref:g,className:Se,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:be}),k&&ke,r.default.createElement("span",{className:Le},B),E&&!A&&r.default.createElement(S.default,{onClick:E,size:"sm",variant:"text",color:m==="outlined"||m==="ghost"?T:"white",className:Ce},r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:(0,i.default)({"h-3.5 w-3.5":_==="sm","h-4 w-4":_==="md","h-5 w-5":_==="lg"}),strokeWidth:2},r.default.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))),A||null)))});h.propTypes={variant:n.default.oneOf(b.propTypesVariant),size:n.default.oneOf(b.propTypesSize),color:n.default.oneOf(b.propTypesColor),icon:b.propTypesIcon,open:b.propTypesOpen,onClose:b.propTypesOnClose,action:b.propTypesAction,animate:b.propTypesAnimate,className:b.propTypesClassName,value:b.propTypesValue},h.displayName="MaterialTailwind.Chip";var p=h})(fL);var pL={},hL={exports:{}},jt={};/** * @license React * react.production.min.js * @@ -86,10 +86,10 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Jv=Symbol.for("react.element"),hY=Symbol.for("react.portal"),gY=Symbol.for("react.fragment"),vY=Symbol.for("react.strict_mode"),mY=Symbol.for("react.profiler"),yY=Symbol.for("react.provider"),bY=Symbol.for("react.context"),wY=Symbol.for("react.forward_ref"),_Y=Symbol.for("react.suspense"),xY=Symbol.for("react.memo"),SY=Symbol.for("react.lazy"),wk=Symbol.iterator;function CY(e){return e===null||typeof e!="object"?null:(e=wk&&e[wk]||e["@@iterator"],typeof e=="function"?e:null)}var hL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gL=Object.assign,vL={};function ph(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}ph.prototype.isReactComponent={};ph.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ph.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mL(){}mL.prototype=ph.prototype;function _3(e,t,r){this.props=e,this.context=t,this.refs=vL,this.updater=r||hL}var x3=_3.prototype=new mL;x3.constructor=_3;gL(x3,ph.prototype);x3.isPureReactComponent=!0;var _k=Array.isArray,yL=Object.prototype.hasOwnProperty,S3={current:null},bL={key:!0,ref:!0,__self:!0,__source:!0};function wL(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)yL.call(t,n)&&!bL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Ly=new WeakMap,Dy={},ex=0,xL=function(e){return e&&(e.host||xL(e.parentNode))},RY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=xL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},NY=function(e,t,r,n){var o=RY(t,Array.isArray(e)?e:[e]);Dy[r]||(Dy[r]=new WeakMap);var i=Dy[r],a=[],l=new Set,s=new Set(o),d=function(b){!b||l.has(b)||(l.add(b),d(b.parentNode))};o.forEach(d);var v=function(b){!b||s.has(b)||Array.prototype.forEach.call(b.children,function(S){if(l.has(S))v(S);else try{var w=S.getAttribute(n),P=w!==null&&w!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Ly.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(h){console.error("aria-hidden: cannot operate on ",S,h)}})};return v(t),l.clear(),ex++,function(){a.forEach(function(b){var S=Nf.get(b)-1,w=i.get(b)-1;Nf.set(b,S),i.set(b,w),S||(Ly.has(b)||b.removeAttribute(n),Ly.delete(b)),w||b.removeAttribute(r)}),ex--,ex||(Nf=new WeakMap,Nf=new WeakMap,Ly=new WeakMap,Dy={})}},AY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=MY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),NY(n,o,r,"aria-hidden")):function(){return null}};/*! + */var Jv=Symbol.for("react.element"),gY=Symbol.for("react.portal"),vY=Symbol.for("react.fragment"),mY=Symbol.for("react.strict_mode"),yY=Symbol.for("react.profiler"),bY=Symbol.for("react.provider"),wY=Symbol.for("react.context"),_Y=Symbol.for("react.forward_ref"),xY=Symbol.for("react.suspense"),SY=Symbol.for("react.memo"),CY=Symbol.for("react.lazy"),wk=Symbol.iterator;function PY(e){return e===null||typeof e!="object"?null:(e=wk&&e[wk]||e["@@iterator"],typeof e=="function"?e:null)}var gL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vL=Object.assign,mL={};function ph(e,t,r){this.props=e,this.context=t,this.refs=mL,this.updater=r||gL}ph.prototype.isReactComponent={};ph.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ph.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yL(){}yL.prototype=ph.prototype;function _3(e,t,r){this.props=e,this.context=t,this.refs=mL,this.updater=r||gL}var x3=_3.prototype=new yL;x3.constructor=_3;vL(x3,ph.prototype);x3.isPureReactComponent=!0;var _k=Array.isArray,bL=Object.prototype.hasOwnProperty,S3={current:null},wL={key:!0,ref:!0,__self:!0,__source:!0};function _L(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)bL.call(t,n)&&!wL.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nf=new WeakMap,Ly=new WeakMap,Dy={},ex=0,SL=function(e){return e&&(e.host||SL(e.parentNode))},NY=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=SL(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},AY=function(e,t,r,n){var o=NY(t,Array.isArray(e)?e:[e]);Dy[r]||(Dy[r]=new WeakMap);var i=Dy[r],a=[],l=new Set,s=new Set(o),d=function(b){!b||l.has(b)||(l.add(b),d(b.parentNode))};o.forEach(d);var v=function(b){!b||s.has(b)||Array.prototype.forEach.call(b.children,function(S){if(l.has(S))v(S);else try{var w=S.getAttribute(n),P=w!==null&&w!=="false",y=(Nf.get(S)||0)+1,C=(i.get(S)||0)+1;Nf.set(S,y),i.set(S,C),a.push(S),y===1&&P&&Ly.set(S,!0),C===1&&S.setAttribute(r,"true"),P||S.setAttribute(n,"true")}catch(h){console.error("aria-hidden: cannot operate on ",S,h)}})};return v(t),l.clear(),ex++,function(){a.forEach(function(b){var S=Nf.get(b)-1,w=i.get(b)-1;Nf.set(b,S),i.set(b,w),S||(Ly.has(b)||b.removeAttribute(n),Ly.delete(b)),w||b.removeAttribute(r)}),ex--,ex||(Nf=new WeakMap,Nf=new WeakMap,Ly=new WeakMap,Dy={})}},IY=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=RY(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),AY(n,o,r,"aria-hidden")):function(){return null}};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var IY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],fC=IY.join(","),SL=typeof Element>"u",cv=SL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,V1=!SL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},B1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},LY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},DY=function(t,r,n){if(B1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(fC));return r&&cv.call(t,fC)&&o.unshift(t),o=o.filter(n),o},FY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!B1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=cv.call(a,fC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var b=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!B1(b,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(b&&S){var w=e(b===!0?a.children:b.children,!0,n);n.flatten?o.push.apply(o,w):o.push({scopeParent:a,candidates:w})}else i.unshift.apply(i,a.children)}}return o},CL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},PL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||LY(t))&&!CL(t)?0:t.tabIndex},jY=function(t,r){var n=PL(t);return n<0&&r&&!CL(t)?0:n},zY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},TL=function(t){return t.tagName==="INPUT"},VY=function(t){return TL(t)&&t.type==="hidden"},BY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},UY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(cv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=V1(t);if(s&&!s.shadowRoot&&o(s)===!0)return Sk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if(GY(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Sk(t);return!1},qY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},QY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=jY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(zY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},U1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=FY([t],r.includeContainer,{filter:Ck.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:XY}):n=DY(t,r.includeContainer,Ck.bind(null,r)),QY(n)},OL={exports:{}},Ni={};/** +*/var LY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],fC=LY.join(","),CL=typeof Element>"u",cv=CL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,V1=!CL&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},B1=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),i=o===""||o==="true",a=i||r&&t&&e(t.parentNode);return a},DY=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},FY=function(t,r,n){if(B1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(fC));return r&&cv.call(t,fC)&&o.unshift(t),o=o.filter(n),o},jY=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!B1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,d=e(s,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else{var v=cv.call(a,fC);v&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var b=a.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(a),S=!B1(b,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(b&&S){var w=e(b===!0?a.children:b.children,!0,n);n.flatten?o.push.apply(o,w):o.push({scopeParent:a,candidates:w})}else i.unshift.apply(i,a.children)}}return o},PL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},TL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||DY(t))&&!PL(t)?0:t.tabIndex},zY=function(t,r){var n=TL(t);return n<0&&r&&!PL(t)?0:n},VY=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},OL=function(t){return t.tagName==="INPUT"},BY=function(t){return OL(t)&&t.type==="hidden"},UY=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},HY=function(t,r){for(var n=0;nsummary:first-of-type"),a=i?t.parentElement:t;if(cv.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var s=t.parentElement,d=V1(t);if(s&&!s.shadowRoot&&o(s)===!0)return Sk(t);t.assignedSlot?t=t.assignedSlot:!s&&d!==t.ownerDocument?t=d.host:t=s}t=l}if(KY(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Sk(t);return!1},YY=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},ZY=function e(t){var r=[],n=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,s=zY(l,a),d=a?e(o.candidates):l;s===0?a?r.push.apply(r,d):r.push(l):n.push({documentOrder:i,tabIndex:s,item:o,isScope:a,content:d})}),n.sort(VY).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(r)},U1=function(t,r){r=r||{};var n;return r.getShadowRoot?n=jY([t],r.includeContainer,{filter:Ck.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:QY}):n=FY(t,r.includeContainer,Ck.bind(null,r)),ZY(n)},kL={exports:{}},Ni={};/** * @license React * react-dom.production.min.js * @@ -97,18 +97,18 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kL=we,ki=pp;function Fe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pC=Object.prototype.hasOwnProperty,ZY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Pk={},Tk={};function JY(e){return pC.call(Tk,e)?!0:pC.call(Pk,e)?!1:ZY.test(e)?Tk[e]=!0:(Pk[e]=!0,!1)}function eX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tX(e,t,r,n){if(t===null||typeof t>"u"||eX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var P3=/[\-:]([a-z])/g;function T3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function O3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pC=Object.prototype.hasOwnProperty,JY=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Pk={},Tk={};function eX(e){return pC.call(Tk,e)?!0:pC.call(Pk,e)?!1:JY.test(e)?Tk[e]=!0:(Pk[e]=!0,!1)}function tX(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rX(e,t,r,n){if(t===null||typeof t>"u"||tX(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fo(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yn[e]=new Fo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yn[t]=new Fo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yn[e]=new Fo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Yn[e]=new Fo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yn[e]=new Fo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yn[e]=new Fo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yn[e]=new Fo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yn[e]=new Fo(e,5,!1,e.toLowerCase(),null,!1,!1)});var P3=/[\-:]([a-z])/g;function T3(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(P3,T3);Yn[t]=new Fo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!1,!1)});Yn.xlinkHref=new Fo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yn[e]=new Fo(e,1,!1,e.toLowerCase(),null,!0,!0)});function O3(e,t,r,n){var o=Yn.hasOwnProperty(t)?Yn[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{rx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ug(e):""}function rX(e){switch(e.tag){case 5:return ug(e.type);case 16:return ug("Lazy");case 13:return ug("Suspense");case 19:return ug("SuspenseList");case 0:case 2:case 15:return e=nx(e.type,!1),e;case 11:return e=nx(e.type.render,!1),e;case 1:return e=nx(e.type,!0),e;default:return""}}function mC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rp:return"Fragment";case tp:return"Portal";case hC:return"Profiler";case k3:return"StrictMode";case gC:return"Suspense";case vC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case RL:return(e.displayName||"Context")+".Consumer";case ML:return(e._context.displayName||"Context")+".Provider";case E3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M3:return t=e.displayName||null,t!==null?t:mC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return mC(e(t))}catch{}}return null}function nX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mC(t);case 8:return t===k3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oX(e){var t=AL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jy(e){e._valueTracker||(e._valueTracker=oX(e))}function IL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=AL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function H1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function kk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LL(e,t){t=t.checked,t!=null&&O3(e,"checked",t,!1)}function bC(e,t){LL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wC(e,t.type,r):t.hasOwnProperty("defaultValue")&&wC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ek(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function wC(e,t,r){(t!=="number"||H1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var cg=Array.isArray;function Sp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Og={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iX=["Webkit","ms","Moz","O"];Object.keys(Og).forEach(function(e){iX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Og[t]=Og[e]})});function zL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Og.hasOwnProperty(e)&&Og[e]?(""+t).trim():t+"px"}function VL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=zL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var aX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function SC(e,t){if(t){if(aX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Fe(62))}}function CC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var PC=null;function R3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var TC=null,Cp=null,Pp=null;function Nk(e){if(e=rm(e)){if(typeof TC!="function")throw Error(Fe(280));var t=e.stateNode;t&&(t=y2(t),TC(e.stateNode,e.type,t))}}function BL(e){Cp?Pp?Pp.push(e):Pp=[e]:Cp=e}function UL(){if(Cp){var e=Cp,t=Pp;if(Pp=Cp=null,Nk(e),t)for(e=0;e>>=0,e===0?32:31-(mX(e)/yX|0)|0}var Vy=64,By=4194304;function dg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function K1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=dg(l):(i&=a,i!==0&&(n=dg(i)))}else a=r&~o,a!==0?n=dg(a):i!==0&&(n=dg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function em(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function xX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Eg),Bk=" ",Uk=!1;function sD(e,t){switch(e){case"keyup":return XX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var np=!1;function ZX(e,t){switch(e){case"compositionend":return uD(t);case"keypress":return t.which!==32?null:(Uk=!0,Bk);case"textInput":return e=t.data,e===Bk&&Uk?null:e;default:return null}}function JX(e,t){if(np)return e==="compositionend"||!z3&&sD(e,t)?(e=aD(),Fb=D3=uu=null,np=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gk(r)}}function pD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hD(){for(var e=window,t=H1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=H1(e.document)}return t}function V3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sQ(e){var t=hD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&pD(r.ownerDocument.documentElement,r)){if(n!==null&&V3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Kk(r,i);var a=Kk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,op=null,NC=null,Rg=null,AC=!1;function qk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;AC||op==null||op!==H1(n)||(n=op,"selectionStart"in n&&V3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Rg&&yv(Rg,n)||(Rg=n,n=X1(NC,"onSelect"),0lp||(e.current=zC[lp],zC[lp]=null,lp--)}function cr(e,t){lp++,zC[lp]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function $p(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Z1(){yr(Jo),yr(go)}function t8(e,t,r){if(go.current!==Ru)throw Error(Fe(168));cr(go,t),cr(Jo,r)}function SD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Fe(108,nX(e)||"Unknown",o));return Ir({},r,n)}function J1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function r8(e,t,r){var n=e.stateNode;if(!n)throw Error(Fe(169));r?(e=SD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,b2=!1,mx=!1;function CD(e){Yl===null?Yl=[e]:Yl.push(e)}function wQ(e){b2=!0,CD(e)}function Hu(){if(!mx&&Yl!==null){mx=!0;var e=0,t=Qt;try{var r=Yl;for(Qt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return xr&&zc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),xr&&zc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===rp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Fy:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===rp){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&u8(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=G0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===rp?(p=ed(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=$b(c.type,c.key,c.props,null,h.mode,g),g.ref=G0(h,p,c),g.return=h,h=g)}return a(h);case tp:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=Px(c,h.mode,g),p.return=h,h=p}return a(h);case eu:return _=c._init,C(h,p,_(c._payload),g)}if(cg(c))return P(h,p,c,g);if(B0(c))return y(h,p,c,g);qy(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=Cx(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Kp=ND(!0),AD=ND(!1),nm={},yl=Uu(nm),xv=Uu(nm),Sv=Uu(nm);function Yc(e){if(e===nm)throw Error(Fe(174));return e}function Y3(e,t){switch(cr(Sv,t),cr(xv,e),cr(yl,nm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xC(t,e)}yr(yl),cr(yl,t)}function qp(){yr(yl),yr(xv),yr(Sv)}function ID(e){Yc(Sv.current);var t=Yc(yl.current),r=xC(t,e.type);t!==r&&(cr(xv,e),cr(yl,r))}function X3(e){xv.current===e&&(yr(yl),yr(xv))}var Er=Uu(0);function iw(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yx=[];function Q3(){for(var e=0;er?r:4,e(!0);var n=bx.transition;bx.transition={};try{e(!1),t()}finally{Qt=r,bx.transition=n}}function XD(){return ca().memoizedState}function CQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},QD(e))ZD(t,r);else if(r=kD(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),JD(r,t,n)}}function PQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(QD(e))ZD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,K3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=kD(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),JD(r,t,n))}}function QD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function ZD(e,t){Ng=aw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function JD(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,A3(e,r)}}var lw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},TQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:d8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bb(4194308,4,$D.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=CQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:c8,useDebugValue:rT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=c8(!1),t=e[0];return e=SQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=t(),Nn===null)throw Error(Fe(349));(ud&30)!==0||FD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,d8(zD.bind(null,n,i,e),[e]),n.flags|=2048,Tv(9,jD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Cv++,0")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{rx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ug(e):""}function nX(e){switch(e.tag){case 5:return ug(e.type);case 16:return ug("Lazy");case 13:return ug("Suspense");case 19:return ug("SuspenseList");case 0:case 2:case 15:return e=nx(e.type,!1),e;case 11:return e=nx(e.type.render,!1),e;case 1:return e=nx(e.type,!0),e;default:return""}}function mC(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rp:return"Fragment";case tp:return"Portal";case hC:return"Profiler";case k3:return"StrictMode";case gC:return"Suspense";case vC:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NL:return(e.displayName||"Context")+".Consumer";case RL:return(e._context.displayName||"Context")+".Provider";case E3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case M3:return t=e.displayName||null,t!==null?t:mC(e.type)||"Memo";case eu:t=e._payload,e=e._init;try{return mC(e(t))}catch{}}return null}function oX(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mC(t);case 8:return t===k3?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function IL(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iX(e){var t=IL(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jy(e){e._valueTracker||(e._valueTracker=iX(e))}function LL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=IL(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function H1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function yC(e,t){var r=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function kk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Mu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function DL(e,t){t=t.checked,t!=null&&O3(e,"checked",t,!1)}function bC(e,t){DL(e,t);var r=Mu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wC(e,t.type,r):t.hasOwnProperty("defaultValue")&&wC(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ek(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function wC(e,t,r){(t!=="number"||H1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var cg=Array.isArray;function Sp(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zy.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Og={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aX=["Webkit","ms","Moz","O"];Object.keys(Og).forEach(function(e){aX.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Og[t]=Og[e]})});function VL(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Og.hasOwnProperty(e)&&Og[e]?(""+t).trim():t+"px"}function BL(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=VL(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var lX=Ir({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function SC(e,t){if(t){if(lX[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Fe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Fe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Fe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Fe(62))}}function CC(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var PC=null;function R3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var TC=null,Cp=null,Pp=null;function Nk(e){if(e=rm(e)){if(typeof TC!="function")throw Error(Fe(280));var t=e.stateNode;t&&(t=y2(t),TC(e.stateNode,e.type,t))}}function UL(e){Cp?Pp?Pp.push(e):Pp=[e]:Cp=e}function HL(){if(Cp){var e=Cp,t=Pp;if(Pp=Cp=null,Nk(e),t)for(e=0;e>>=0,e===0?32:31-(yX(e)/bX|0)|0}var Vy=64,By=4194304;function dg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function K1(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=dg(l):(i&=a,i!==0&&(n=dg(i)))}else a=r&~o,a!==0?n=dg(a):i!==0&&(n=dg(i));if(n===0)return 0;if(t!==0&&t!==n&&(t&o)===0&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function em(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Da(t),e[t]=r}function SX(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Eg),Bk=" ",Uk=!1;function uD(e,t){switch(e){case"keyup":return QX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var np=!1;function JX(e,t){switch(e){case"compositionend":return cD(t);case"keypress":return t.which!==32?null:(Uk=!0,Bk);case"textInput":return e=t.data,e===Bk&&Uk?null:e;default:return null}}function eQ(e,t){if(np)return e==="compositionend"||!z3&&uD(e,t)?(e=lD(),Fb=D3=uu=null,np=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gk(r)}}function hD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gD(){for(var e=window,t=H1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=H1(e.document)}return t}function V3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uQ(e){var t=gD(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&hD(r.ownerDocument.documentElement,r)){if(n!==null&&V3(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Kk(r,i);var a=Kk(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,op=null,NC=null,Rg=null,AC=!1;function qk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;AC||op==null||op!==H1(n)||(n=op,"selectionStart"in n&&V3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Rg&&yv(Rg,n)||(Rg=n,n=X1(NC,"onSelect"),0lp||(e.current=zC[lp],zC[lp]=null,lp--)}function cr(e,t){lp++,zC[lp]=e.current,e.current=t}var Ru={},go=Uu(Ru),Jo=Uu(!1),ld=Ru;function $p(e,t){var r=e.type.contextTypes;if(!r)return Ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ei(e){return e=e.childContextTypes,e!=null}function Z1(){yr(Jo),yr(go)}function t8(e,t,r){if(go.current!==Ru)throw Error(Fe(168));cr(go,t),cr(Jo,r)}function CD(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Fe(108,oX(e)||"Unknown",o));return Ir({},r,n)}function J1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ru,ld=go.current,cr(go,e),cr(Jo,Jo.current),!0}function r8(e,t,r){var n=e.stateNode;if(!n)throw Error(Fe(169));r?(e=CD(e,t,ld),n.__reactInternalMemoizedMergedChildContext=e,yr(Jo),yr(go),cr(go,e)):yr(Jo),cr(Jo,r)}var Yl=null,b2=!1,mx=!1;function PD(e){Yl===null?Yl=[e]:Yl.push(e)}function _Q(e){b2=!0,PD(e)}function Hu(){if(!mx&&Yl!==null){mx=!0;var e=0,t=Qt;try{var r=Yl;for(Qt=1;e>=a,o-=a,Zl=1<<32-Da(t)+o|r<k?(R=T,T=null):R=T.sibling;var E=S(h,T,c[k],g);if(E===null){T===null&&(T=R);break}e&&T&&E.alternate===null&&t(h,T),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E,T=R}if(k===c.length)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;kk?(R=T,T=null):R=T.sibling;var A=S(h,T,E.value,g);if(A===null){T===null&&(T=R);break}e&&T&&A.alternate===null&&t(h,T),p=i(A,p,k),_===null?m=A:_.sibling=A,_=A,T=R}if(E.done)return r(h,T),xr&&zc(h,k),m;if(T===null){for(;!E.done;k++,E=c.next())E=b(h,E.value,g),E!==null&&(p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return xr&&zc(h,k),m}for(T=n(h,T);!E.done;k++,E=c.next())E=w(T,h,k,E.value,g),E!==null&&(e&&E.alternate!==null&&T.delete(E.key===null?k:E.key),p=i(E,p,k),_===null?m=E:_.sibling=E,_=E);return e&&T.forEach(function(F){return t(h,F)}),xr&&zc(h,k),m}function C(h,p,c,g){if(typeof c=="object"&&c!==null&&c.type===rp&&c.key===null&&(c=c.props.children),typeof c=="object"&&c!==null){switch(c.$$typeof){case Fy:e:{for(var m=c.key,_=p;_!==null;){if(_.key===m){if(m=c.type,m===rp){if(_.tag===7){r(h,_.sibling),p=o(_,c.props.children),p.return=h,h=p;break e}}else if(_.elementType===m||typeof m=="object"&&m!==null&&m.$$typeof===eu&&u8(m)===_.type){r(h,_.sibling),p=o(_,c.props),p.ref=G0(h,_,c),p.return=h,h=p;break e}r(h,_);break}else t(h,_);_=_.sibling}c.type===rp?(p=ed(c.props.children,h.mode,g,c.key),p.return=h,h=p):(g=$b(c.type,c.key,c.props,null,h.mode,g),g.ref=G0(h,p,c),g.return=h,h=g)}return a(h);case tp:e:{for(_=c.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===c.containerInfo&&p.stateNode.implementation===c.implementation){r(h,p.sibling),p=o(p,c.children||[]),p.return=h,h=p;break e}else{r(h,p);break}else t(h,p);p=p.sibling}p=Px(c,h.mode,g),p.return=h,h=p}return a(h);case eu:return _=c._init,C(h,p,_(c._payload),g)}if(cg(c))return P(h,p,c,g);if(B0(c))return y(h,p,c,g);qy(h,c)}return typeof c=="string"&&c!==""||typeof c=="number"?(c=""+c,p!==null&&p.tag===6?(r(h,p.sibling),p=o(p,c),p.return=h,h=p):(r(h,p),p=Cx(c,h.mode,g),p.return=h,h=p),a(h)):r(h,p)}return C}var Kp=AD(!0),ID=AD(!1),nm={},yl=Uu(nm),xv=Uu(nm),Sv=Uu(nm);function Yc(e){if(e===nm)throw Error(Fe(174));return e}function Y3(e,t){switch(cr(Sv,t),cr(xv,e),cr(yl,nm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xC(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xC(t,e)}yr(yl),cr(yl,t)}function qp(){yr(yl),yr(xv),yr(Sv)}function LD(e){Yc(Sv.current);var t=Yc(yl.current),r=xC(t,e.type);t!==r&&(cr(xv,e),cr(yl,r))}function X3(e){xv.current===e&&(yr(yl),yr(xv))}var Er=Uu(0);function iw(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yx=[];function Q3(){for(var e=0;er?r:4,e(!0);var n=bx.transition;bx.transition={};try{e(!1),t()}finally{Qt=r,bx.transition=n}}function QD(){return ca().memoizedState}function PQ(e,t,r){var n=Tu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ZD(e))JD(t,r);else if(r=ED(e,t,r,n),r!==null){var o=No();Fa(r,e,n,o),eF(r,t,n)}}function TQ(e,t,r){var n=Tu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ZD(e))JD(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,Ba(l,a)){var s=t.interleaved;s===null?(o.next=o,K3(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=ED(e,t,o,n),r!==null&&(o=No(),Fa(r,e,n,o),eF(r,t,n))}}function ZD(e){var t=e.alternate;return e===Nr||t!==null&&t===Nr}function JD(e,t){Ng=aw=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function eF(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,A3(e,r)}}var lw={readContext:ua,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useInsertionEffect:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useSyncExternalStore:io,useId:io,unstable_isNewReconciler:!1},OQ={readContext:ua,useCallback:function(e,t){return ul().memoizedState=[e,t===void 0?null:t],e},useContext:ua,useEffect:d8,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Bb(4194308,4,GD.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Bb(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bb(4,2,e,t)},useMemo:function(e,t){var r=ul();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ul();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=PQ.bind(null,Nr,e),[n.memoizedState,e]},useRef:function(e){var t=ul();return e={current:e},t.memoizedState=e},useState:c8,useDebugValue:rT,useDeferredValue:function(e){return ul().memoizedState=e},useTransition:function(){var e=c8(!1),t=e[0];return e=CQ.bind(null,e[1]),ul().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Nr,o=ul();if(xr){if(r===void 0)throw Error(Fe(407));r=r()}else{if(r=t(),Nn===null)throw Error(Fe(349));(ud&30)!==0||jD(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,d8(VD.bind(null,n,i,e),[e]),n.flags|=2048,Tv(9,zD.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=ul(),t=Nn.identifierPrefix;if(xr){var r=Jl,n=Zl;r=(n&~(1<<32-Da(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Cv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[_v]=n,sF(e,t,!1,!1),t.stateNode=e;e:{switch(a=CC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oXp&&(t.flags|=128,n=!0,K0(i,!1),t.lanes=4194304)}else{if(!n)if(e=iw(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),K0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Xp&&r!==1073741824&&(t.flags|=128,n=!0,K0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return sT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Fe(156,t.tag))}function IQ(e,t){switch(U3(t),t.tag){case 1:return ei(t.type)&&Z1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qp(),yr(Jo),yr(go),Q3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return X3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Fe(340));Gp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return qp(),null;case 10:return G3(t.type._context),null;case 22:case 23:return sT(),null;case 24:return null;default:return null}}var Xy=!1,fo=!1,LQ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function dp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function QC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var w8=!1;function DQ(e,t){if(IC=q1,e=hD(),V3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(LC={focusedElem:e,selectionRange:r},q1=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(g){Br(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return P=w8,w8=!1,P}function Ag(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&QC(t,r,i)}o=o.next}while(o!==n)}}function x2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ZC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function dF(e){var t=e.alternate;t!==null&&(e.alternate=null,dF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[_v],delete t[jC],delete t[yQ],delete t[bQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fF(e){return e.tag===5||e.tag===3||e.tag===4}function _8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function JC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Q1));else if(n!==4&&(e=e.child,e!==null))for(JC(e,t,r),e=e.sibling;e!==null;)JC(e,t,r),e=e.sibling}function e4(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(e4(e,t,r),e=e.sibling;e!==null;)e4(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)pF(e,t,r),r=r.sibling}function pF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(h2,r)}catch{}switch(r.tag){case 5:fo||dp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?vx(e.parentNode,r):e.nodeType===1&&vx(e,r),vv(e)):vx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&QC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(dp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function x8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new LQ),t.forEach(function(n){var o=$Q.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*jQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,cw=0,($t&6)!==0)throw Error(Fe(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-aT?Jc(e,0):iT|=r),ti(e,t)}function _F(e,t){t===0&&((e.mode&1)===0?t=1:(t=By,By<<=1,(By&130023424)===0&&(By=4194304)));var r=No();e=hs(e,t),e!==null&&(em(e,t,r),ti(e,r))}function WQ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),_F(e,r)}function $Q(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(t),_F(e,r)}var xF;xF=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,NQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&PD(t,tw,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ub(e,t),e=t.pendingProps;var o=$p(t,go.current);Op(t,r),o=J3(null,t,n,e,o,r);var i=eT();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,J1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,q3(t),o.updater=w2,t.stateNode=o,o._reactInternals=t,WC(t,n,e,r),t=KC(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&B3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ub(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=KQ(n),e=Oa(n,e),o){case 0:t=GC(null,t,n,e,r);break e;case 1:t=m8(null,t,n,e,r);break e;case 11:t=g8(null,t,n,e,r);break e;case 14:t=v8(null,t,n,Oa(n.type,e),r);break e}throw Error(Fe(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),GC(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),m8(e,t,n,o,r);case 3:e:{if(iF(t),e===null)throw Error(Fe(387));n=t.pendingProps,i=t.memoizedState,o=i.element,ED(e,t),ow(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yp(Error(Fe(423)),t),t=y8(e,t,n,r,o);break e}else if(n!==o){o=Yp(Error(Fe(424)),t),t=y8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=AD(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Gp(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return ID(t),e===null&&BC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,DC(n,o)?a=null:i!==null&&DC(n,i)&&(t.flags|=32),oF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&BC(t),null;case 13:return aF(e,t,r);case 4:return Y3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Kp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),g8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(rw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),UC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Fe(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),UC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Op(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),v8(e,t,n,o,r);case 15:return rF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Ub(e,t),t.tag=1,ei(n)?(e=!0,J1(t)):e=!1,Op(t,r),RD(t,n,o),WC(t,n,o,r),KC(null,t,n,!0,e,r);case 19:return lF(e,t,r);case 22:return nF(e,t,r)}throw Error(Fe(156,t.tag))};function SF(e,t){return YL(e,t)}function GQ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new GQ(e,t,r,n)}function cT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KQ(e){if(typeof e=="function")return cT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E3)return 11;if(e===M3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $b(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")cT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case rp:return ed(r.children,o,i,t);case k3:a=8,o|=8;break;case hC:return e=ra(12,r,t,o|2),e.elementType=hC,e.lanes=i,e;case gC:return e=ra(13,r,t,o),e.elementType=gC,e.lanes=i,e;case vC:return e=ra(19,r,t,o),e.elementType=vC,e.lanes=i,e;case NL:return C2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ML:a=10;break e;case RL:a=9;break e;case E3:a=11;break e;case M3:a=14;break e;case eu:a=16,n=null;break e}throw Error(Fe(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function C2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=NL,e.lanes=r,e.stateNode={isHidden:!1},e}function Cx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Px(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ix(0),this.expirationTimes=ix(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ix(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function dT(e,t,r,n,o,i,a,l,s){return e=new qQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},q3(i),e}function YQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OF)}catch(e){console.error(e)}}OF(),OL.exports=Ni;var Nu=OL.exports;const kF=["top","right","bottom","left"],M8=["start","end"],R8=kF.reduce((e,t)=>e.concat(t,t+"-"+M8[0],t+"-"+M8[1]),[]),Ua=Math.min,po=Math.max,pw=Math.round,Jy=Math.floor,Au=e=>({x:e,y:e}),eZ={left:"right",right:"left",bottom:"top",top:"bottom"},tZ={start:"end",end:"start"};function i4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function gT(e){return e==="x"?"y":"x"}function vT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function mT(e){return gT(vs(e))}function EF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=mT(e),i=vT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gw(a)),[a,gw(a)]}function rZ(e){const t=gw(e);return[hw(e),t,hw(t)]}function hw(e){return e.replace(/start|end/g,t=>tZ[t])}function nZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function oZ(e,t,r,n){const o=ja(e);let i=nZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(hw)))),i}function gw(e){return e.replace(/left|right|bottom|top/g,t=>eZ[t])}function iZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function yT(e){return typeof e!="number"?iZ(e):{top:e,right:e,bottom:e,left:e}}function Qp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function N8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=mT(t),l=vT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,b=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let w;switch(s){case"top":w={x:v,y:n.y-o.height};break;case"bottom":w={x:v,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:b};break;case"left":w={x:n.x-o.width,y:b};break;default:w={x:n.x,y:n.y}}switch(ja(t)){case"start":w[a]-=S*(r&&d?-1:1);break;case"end":w[a]+=S*(r&&d?-1:1);break}return w}const aZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:b}=N8(d,n,s),S=n,w={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const b=yT(v),S={x:r,y:n},w=mT(o),P=vT(w),y=await a.getDimensions(d),C=w==="y",h=C?"top":"left",p=C?"bottom":"right",c=C?"clientHeight":"clientWidth",g=i.reference[P]+i.reference[w]-S[w]-i.floating[P],m=S[w]-i.reference[w],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=_?_[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(_)))&&(T=l.floating[c]||i.floating[P]);const k=g/2-m/2,R=T/2-y[P]/2-1,E=Ua(b[h],R),A=Ua(b[p],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,H=i4(F,B,V),q=!s.arrow&&ja(o)!=null&&B!==H&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?hw(o)!==o:!1):!0)}const uZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:b,allowedPlacements:S=R8,autoAlignment:w=!0,...P}=Ha(e,t),y=b!==void 0||S===R8?sZ(b||null,w,S):S,C=await fd(t,P),h=((r=a.autoPlacement)==null?void 0:r.index)||0,p=y[h];if(p==null)return{};const c=EF(p,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==p)return{reset:{placement:y[0]}};const g=[C[Ei(p)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:p,overflows:g}],_=y[h+1];if(_)return{data:{index:h+1,overflows:m},reset:{placement:_}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:h+1,overflows:m},reset:{placement:R}}:{}}}},cZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const h=Ei(o),p=vs(l),c=Ei(l)===l,g=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[gw(l)]:rZ(l)),_=P!=="none";!S&&_&&m.push(...oZ(l,y,P,g));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[h]),b){const B=EF(o,a,g);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,H=T[B];if(H)return{data:{index:B,overflows:E},reset:{placement:H}};let q=(F=E.filter(ne=>ne.overflows[0]<=0).sort((ne,Q)=>ne.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!q)switch(w){case"bestFit":{var V;const ne=(V=E.filter(Q=>{if(_){const W=vs(Q.placement);return W===p||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,X)=>W+X,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];ne&&(q=ne);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function A8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I8(e){return kF.some(t=>e[t]>=0)}const dZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=A8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:I8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=A8(i,r.floating);return{data:{escapedOffsets:a,escaped:I8(a)}}}default:return{}}}}};function MF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function fZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Qp(MF(o)))}const pZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),b=fZ(v),S=Qp(MF(v)),w=yT(l);function P(){if(b.length===2&&b[0].left>b[1].right&&s!=null&&d!=null)return b.find(C=>s>C.left-w.left&&sC.top-w.top&&d=2){if(vs(r)==="y"){const E=b[0],A=b[b.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,H=F?E.left:A.left,q=F?E.right:A.right,ne=q-H,Q=B-V;return{top:V,bottom:B,left:H,right:q,width:ne,height:Q,x:H,y:V}}const C=Ei(r)==="left",h=po(...b.map(E=>E.right)),p=Ua(...b.map(E=>E.left)),c=b.filter(E=>C?E.left===p:E.right===h),g=c[0].top,m=c[c.length-1].bottom,_=p,T=h,k=T-_,R=m-g;return{top:g,bottom:m,left:_,right:T,width:k,height:R,x:_,y:g}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function hZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,b=Ha(t,e);let{mainAxis:S,crossAxis:w,alignmentAxis:P}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof P=="number"&&(w=l==="end"?P*-1:P),s?{x:w*v,y:S*d}:{x:S*d,y:w*v}}const gZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await hZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},vZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:h,y:p}=C;return{x:h,y:p}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),b=vs(Ei(o)),S=gT(b);let w=d[S],P=d[b];if(i){const C=S==="y"?"top":"left",h=S==="y"?"bottom":"right",p=w+v[C],c=w-v[h];w=i4(p,w,c)}if(a){const C=b==="y"?"top":"left",h=b==="y"?"bottom":"right",p=P+v[C],c=P-v[h];P=i4(p,P,c)}const y=l.fn({...t,[S]:w,[b]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[b]:a}}}}}},mZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},b=vs(o),S=gT(b);let w=v[S],P=v[b];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",g=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;wm&&(w=m)}if(d){var h,p;const c=S==="y"?"width":"height",g=["top","left"].includes(Ei(o)),m=i.reference[b]-i.floating[c]+(g&&((h=a.offset)==null?void 0:h[b])||0)+(g?0:C.crossAxis),_=i.reference[b]+i.reference[c]+(g?0:((p=a.offset)==null?void 0:p[b])||0)-(g?C.crossAxis:0);P_&&(P=_)}return{[S]:w,[b]:P}}}},yZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),b=Ei(o),S=ja(o),w=vs(o)==="y",{width:P,height:y}=i.floating;let C,h;b==="top"||b==="bottom"?(C=b,h=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=b,C=S==="end"?"top":"bottom");const p=y-v.top-v.bottom,c=P-v.left-v.right,g=Ua(y-v[C],p),m=Ua(P-v[h],c),_=!t.middlewareData.shift;let T=g,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=p),_&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);w?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function E2(){return typeof window<"u"}function vh(e){return RF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(RF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RF(e){return E2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return E2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return E2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function L8(e){return!E2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function om(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function bZ(e){return["table","td","th"].includes(vh(e))}function M2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bT(e){const t=wT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function wZ(e){let t=Iu(e);for(;wl(t)&&!Zp(t);){if(bT(t))return t;if(M2(t))return null;t=Iu(t)}return null}function wT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zp(e){return["html","body","#document"].includes(vh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function R2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(vh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||L8(e)&&e.host||_l(e);return L8(t)?t.host:t}function NF(e){const t=Iu(e);return Zp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&om(t)?t:NF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=NF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=a4(a);return t.concat(a,a.visualViewport||[],om(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function a4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=pw(r)!==i||pw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function _T(e){return Wa(e)?e:e.contextElement}function Ep(e){const t=_T(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=AF(t);let a=(i?pw(r.width):r.width)/n,l=(i?pw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _Z=Au(0);function IF(e){const t=Pi(e);return!wT()||!t.visualViewport?_Z:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=_T(e);let a=Au(1);t&&(n?Wa(n)&&(a=Ep(n)):a=Ep(e));const l=xZ(i,r,n)?IF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=Pi(i),w=n&&Wa(n)?Pi(n):n;let P=S,y=a4(P);for(;y&&n&&w!==P;){const C=Ep(y),h=y.getBoundingClientRect(),p=$a(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=Pi(y),y=a4(P)}}return Qp({width:v,height:b,x:s,y:d})}function SZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?M2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),b=wl(n);if((b||!b&&!i)&&((vh(n)!=="body"||om(a))&&(s=R2(n)),wl(n))){const S=pd(n);d=Ep(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function CZ(e){return Array.from(e.getClientRects())}function l4(e,t){const r=R2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function PZ(e){const t=_l(e),r=R2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+l4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function TZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=wT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function OZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?Ep(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function D8(e,t,r){let n;if(t==="viewport")n=TZ(e,r);else if(t==="document")n=PZ(_l(e));else if(Wa(t))n=OZ(t,r);else{const o=IF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Qp(n)}function LF(e,t){const r=Iu(e);return r===t||!Wa(r)||Zp(r)?!1:$a(r).position==="fixed"||LF(r,t)}function kZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&vh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Zp(a);){const l=$a(a),s=bT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||om(a)&&!s&&LF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function EZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?M2(t)?[]:kZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const b=D8(t,v,o);return d.top=po(b.top,d.top),d.right=Ua(b.right,d.right),d.bottom=Ua(b.bottom,d.bottom),d.left=po(b.left,d.left),d},D8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function MZ(e){const{width:t,height:r}=AF(e);return{width:t,height:r}}function RZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((vh(t)!=="body"||om(o))&&(l=R2(t)),n){const w=pd(t,!0,i,t);s.x=w.x+t.clientLeft,s.y=w.y+t.clientTop}else o&&(s.x=l4(o));let d=0,v=0;if(o&&!n&&!i){const w=o.getBoundingClientRect();v=w.top+l.scrollTop,d=w.left+l.scrollLeft-l4(o,w)}const b=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:b,y:S,width:a.width,height:a.height}}function Tx(e){return $a(e).position==="static"}function F8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function DF(e,t){const r=Pi(e);if(M2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Zp(o);){if(Wa(o)&&!Tx(o))return o;o=Iu(o)}return r}let n=F8(e,t);for(;n&&bZ(n)&&Tx(n);)n=F8(n,t);return n&&Zp(n)&&Tx(n)&&!bT(n)?r:n||wZ(e)||r}const NZ=async function(e){const t=this.getOffsetParent||DF,r=this.getDimensions,n=await r(e.floating);return{reference:RZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function AZ(e){return $a(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:SZ,getDocumentElement:_l,getClippingRect:EZ,getOffsetParent:DF,getElementRects:NZ,getClientRects:CZ,getDimensions:MZ,getScale:Ep,isElement:Wa,isRTL:AZ};function IZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:b,height:S}=e.getBoundingClientRect();if(l||t(),!b||!S)return;const w=Jy(v),P=Jy(o.clientWidth-(d+b)),y=Jy(o.clientHeight-(v+S)),C=Jy(d),p={rootMargin:-w+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function g(m){const _=m[0].intersectionRatio;if(_!==s){if(!c)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(g,p)}r.observe(e)}return a(!0),i}function LZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=_T(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?IZ(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const h=pd(e);y&&(h.x!==y.x||h.y!==y.y||h.width!==y.width||h.height!==y.height)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}const Gb=fd,jF=gZ,DZ=uZ,FZ=vZ,jZ=cZ,zZ=yZ,VZ=dZ,j8=lZ,BZ=pZ,UZ=mZ,zF=(e,t,r)=>{const n=new Map,o={platform:FF,...r},i={...o.platform,_c:n};return aZ(e,t,{...o,platform:i})},HZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?j8({element:t.current,padding:r}).fn(o):{}:t?j8({element:t,padding:r}).fn(o):{}}}};var Kb=typeof document<"u"?we.useLayoutEffect:we.useEffect;function vw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!vw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!vw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function z8(e){const t=we.useRef(e);return Kb(()=>{t.current=e}),t}function WZ(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=we.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=we.useState(n);vw(d,n)||v(n);const b=we.useRef(null),S=we.useRef(null),w=we.useRef(l),P=z8(i),y=z8(o),[C,h]=we.useState(null),[p,c]=we.useState(null),g=we.useCallback(E=>{b.current!==E&&(b.current=E,h(E))},[]),m=we.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),_=we.useCallback(()=>{if(!b.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),zF(b.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!vw(w.current,F)&&(w.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Kb(()=>{a===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=we.useRef(!1);Kb(()=>(T.current=!0,()=>{T.current=!1}),[]),Kb(()=>{if(C&&p){if(P.current)return P.current(C,p,_);_()}},[C,p,_,P]);const k=we.useMemo(()=>({reference:b,floating:S,setReference:g,setFloating:m}),[g,m]),R=we.useMemo(()=>({reference:C,floating:p}),[C,p]);return we.useMemo(()=>({...l,update:_,refs:k,elements:R,reference:g,floating:m}),[l,_,k,R,g,m])}var Mr=typeof document<"u"?we.useLayoutEffect:we.useEffect;let Ox=!1,$Z=0;const V8=()=>"floating-ui-"+$Z++;function GZ(){const[e,t]=we.useState(()=>Ox?V8():void 0);return Mr(()=>{e==null&&t(V8())},[]),we.useEffect(()=>{Ox||(Ox=!0)},[]),e}const KZ=_L.useId,kv=KZ||GZ;function VF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const BF=we.createContext(null),UF=we.createContext(null),mh=()=>{var e;return((e=we.useContext(BF))==null?void 0:e.id)||null},Od=()=>we.useContext(UF),qZ=e=>{const t=kv(),r=Od(),n=mh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},YZ=e=>{let{children:t,id:r}=e;const n=mh();return we.createElement(BF.Provider,{value:we.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},XZ=e=>{let{children:t}=e;const r=we.useRef([]),n=we.useCallback(a=>{r.current=[...r.current,a]},[]),o=we.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=we.useState(()=>VF())[0];return we.createElement(UF.Provider,{value:we.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function xT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function HF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function ST(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof ST(e).Element:!1}function hd(e){return e?e instanceof ST(e).HTMLElement:!1}function QZ(e){if(typeof ShadowRoot>"u")return!1;const t=ST(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WF(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(xT())||t.test(HF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $F(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function s4(){return/apple/i.test(navigator.vendor)}function GF(){return xT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function mw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=we.useRef(e);return Mr(()=>{t.current=e}),t}const B8="data-floating-ui-safe-polygon";function qb(e,t,r){return r&&!mw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const ZZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:b,elements:{domReference:S,floating:w},refs:P}=e,y=Od(),C=mh(),h=oa(o),p=oa(n),c=we.useRef(),g=we.useRef(),m=we.useRef(),_=we.useRef(),T=we.useRef(!0),k=we.useRef(!1),R=we.useRef(()=>{}),E=we.useCallback(()=>{var B;const H=(B=v.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"},[v]);we.useEffect(()=>{if(!r)return;function B(){clearTimeout(g.current),clearTimeout(_.current),T.current=!0}return b.on("dismiss",B),()=>{b.off("dismiss",B)}},[r,b]),we.useEffect(()=>{if(!r||!h.current||!s)return;function B(){E()&&d(!1)}const H=Yo(w).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[w,s,d,r,h,v,E]);const A=we.useCallback(function(B){B===void 0&&(B=!0);const H=qb(p.current,"close",c.current);H&&!m.current?(clearTimeout(g.current),g.current=setTimeout(()=>d(!1),H)):B&&(clearTimeout(g.current),d(!1))},[p,d]),F=we.useCallback(()=>{R.current(),m.current=void 0},[]),V=we.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(B8),k.current=!1}},[P]);return we.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function H(Q){if(clearTimeout(g.current),T.current=!1,i&&!mw(c.current)||a>0&&qb(p.current,"open")===0)return;v.current.openEvent=Q;const W=qb(p.current,"open",c.current);W?g.current=setTimeout(()=>{d(!0)},W):d(!0)}function q(Q){if(B())return;R.current();const W=Yo(w);if(clearTimeout(_.current),h.current){clearTimeout(g.current),m.current=h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const X=m.current;W.addEventListener("mousemove",X),R.current=()=>{W.removeEventListener("mousemove",X)};return}A()}function ne(Q){B()||h.current==null||h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",ne),w==null||w.addEventListener("mouseleave",ne),l&&Q.addEventListener("mousemove",H,{once:!0}),Q.addEventListener("mouseenter",H),Q.addEventListener("mouseleave",q),()=>{s&&Q.removeEventListener("mouseleave",ne),w==null||w.removeEventListener("mouseleave",ne),l&&Q.removeEventListener("mousemove",H),Q.removeEventListener("mouseenter",H),Q.removeEventListener("mouseleave",q)}}},[S,w,r,e,i,a,l,A,F,V,d,s,y,p,h,v]),Mr(()=>{var B;if(r&&s&&(B=h.current)!=null&&B.__options.blockPointerEvents&&E()){const ne=Yo(w).body;if(ne.setAttribute(B8,""),ne.style.pointerEvents="none",k.current=!0,na(S)&&w){var H,q;const Q=S,W=y==null||(H=y.nodesRef.current.find(X=>X.id===C))==null||(q=H.context)==null?void 0:q.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",w.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",w.style.pointerEvents=""}}}},[r,s,C,w,S,y,h,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),we.useEffect(()=>()=>{F(),clearTimeout(g.current),clearTimeout(_.current),V()},[r,F,V]),we.useMemo(()=>{if(!r)return{};function B(H){c.current=H.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(g.current)},onMouseLeave(){b.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[b,r,a,s,d,A])},KF=we.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),qF=()=>we.useContext(KF),JZ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=we.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=we.useRef(null),l=we.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),we.createElement(KF.Provider,{value:we.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},eJ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=qF();we.useEffect(()=>{i&&(s({delay:{open:1,close:qb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),we.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const b=window.setTimeout(v,d);return()=>{clearTimeout(b)}}else v()},[r,s,i,o,n,l,d]),we.useEffect(()=>{r&&a(o)},[r,a,o])};function Ev(){return Ev=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():U8=requestAnimationFrame(i)}function tJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Dg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function N2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const rJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function YF(e){return hd(e)&&e.matches(rJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const yw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function XF(e,t){const r=U1(e,yw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function QF(){return XF(document.body,"next")}function ZF(){return XF(document.body,"prev")}function Fg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function nJ(e){U1(e,yw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function oJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const iJ=_L.useInsertionEffect,aJ=iJ||(e=>e());function yh(e){const t=we.useRef(()=>{});return aJ(()=>{t.current=e}),we.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(s4()&&i("button"),document.addEventListener("keydown",H8),()=>{document.removeEventListener("keydown",H8)}),[]),we.createElement("span",Ev({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:CT,onFocus:a=>{s4()&&GF()&&!lJ(a)?(a.persist(),PT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),JF=we.createContext(null),ej=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=we.useState(null),i=kv(),a=tj();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},sJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=ej({id:r,enabled:!n}),[a,l]=we.useState(null),s=we.useRef(null),d=we.useRef(null),v=we.useRef(null),b=we.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return we.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function w(P){i&&Fg(P)&&(P.type==="focusin"?oJ:nJ)(i)}return i.addEventListener("focusin",w,!0),i.addEventListener("focusout",w,!0),()=>{i.removeEventListener("focusin",w,!0),i.removeEventListener("focusout",w,!0)}},[i,o,a==null?void 0:a.modal]),we.createElement(JF.Provider,{value:we.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:b,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&we.createElement(bw,{"data-type":"outside",ref:s,onFocus:w=>{if(Fg(w,i)){var P;(P=v.current)==null||P.focus()}else{const y=ZF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&we.createElement("span",{"aria-owns":i.id,style:CT}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&we.createElement(bw,{"data-type":"outside",ref:d,onFocus:w=>{if(Fg(w,i)){var P;(P=b.current)==null||P.focus()}else{const y=QF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},tj=()=>we.useContext(JF),uJ=we.forwardRef(function(t,r){return we.createElement("button",Ev({},t,{type:"button",ref:r,tabIndex:-1,style:CT}))});function cJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:b,onOpenChange:S,events:w,dataRef:P,elements:{domReference:y,floating:C}}=t,h=oa(n),p=Od(),c=tj(),[g,m]=we.useState(null),_=typeof i=="number"&&i<0,T=we.useRef(null),k=we.useRef(null),R=we.useRef(!1),E=we.useRef(null),A=we.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&YF(y),B=we.useCallback(function(Q){return Q===void 0&&(Q=C),Q?U1(Q,yw()):[]},[C]),H=we.useCallback(Q=>{const W=B(Q);return h.current.map(X=>y&&X==="reference"?y:C&&X==="floating"?C:W).filter(Boolean).flat()},[y,C,h,B]);we.useEffect(()=>{if(!l)return;function Q(X){if(X.key==="Tab"){B().length===0&&!V&&Xi(X);const re=H(),Z=N2(X);h.current[0]==="reference"&&Z===y&&(Xi(X),X.shiftKey?Ys(re[re.length-1]):Ys(re[1])),h.current[1]==="floating"&&Z===C&&X.shiftKey&&(Xi(X),Ys(re[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,h,v,V,B,H]),we.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(X){const re=X.relatedTarget,Z=!(Ho(y,re)||Ho(C,re)||Ho(re,C)||Ho(c==null?void 0:c.portalNode,re)||re!=null&&re.hasAttribute("data-floating-ui-focus-guard")||p&&(Dg(p.nodesRef.current,b).find(oe=>{var fe,ge;return Ho((fe=oe.context)==null?void 0:fe.elements.floating,re)||Ho((ge=oe.context)==null?void 0:ge.elements.domReference,re)})||tJ(p.nodesRef.current,b).find(oe=>{var fe,ge;return((fe=oe.context)==null?void 0:fe.elements.floating)===re||((ge=oe.context)==null?void 0:ge.elements.domReference)===re})));re&&Z&&!A.current&&re!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,b,p,c,S,d]),we.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function X(){return[T.current,k.current].filter(Boolean)}if(C&&l){const re=[C,...W,...X()],Z=AY(h.current.includes("reference")||V?re.concat(y||[]):re);return()=>{Z()}}},[y,C,l,h,c,V]),we.useEffect(()=>{if(l&&!o&&C){const Q=[],W=yw(),X=U1(Yo(C).body,W),re=H(),Z=X.filter(oe=>!re.includes(oe));return Z.forEach((oe,fe)=>{Q[fe]=oe.getAttribute("tabindex"),oe.setAttribute("tabindex","-1")}),()=>{Z.forEach((oe,fe)=>{const ge=Q[fe];ge==null?oe.removeAttribute("tabindex"):oe.setAttribute("tabindex",ge)})}}},[C,l,o,H]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,X=!1;const re=gd(Q),Z=P.current;E.current=re;const oe=H(C),fe=(typeof i=="number"?oe[i]:i.current)||C;!_&&Ys(fe,{preventScroll:fe===C});function ge(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const J=ce.data.returnFocus;typeof J=="object"?(W=!0,X=J.preventScroll):W=J}return w.on("dismiss",ge),()=>{if(w.off("dismiss",ge),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:X});else{var ce;Z.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:X}),setTimeout(()=>{delete Z.__syncReturnFocus})}}},[C,H,i,a,P,v,w,_]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(_||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,_,v]);const q=o&&(F||l)&&!V;function ne(Q){return s&&l?we.createElement(uJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return we.createElement(we.Fragment,null,q&&we.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const X=H();Ys(n[0]==="reference"?X[0]:X[X.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Fg(Q,c.portalNode)){const X=QF()||y;X==null||X.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:ne("start"),we.cloneElement(r,g===0||n.includes("floating")?{tabIndex:0}:{}),ne("end"),q&&we.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(H()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Fg(Q,c.portalNode)){const X=ZF()||y;X==null||X.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const eb="data-floating-ui-scroll-lock",dJ=we.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(eb))return;document.body.setAttribute(eb,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(xT()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(eb),Object.assign(document.body.style,{overflow:"",[d]:""})};const b=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,w=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(w-Math.floor(b))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(eb),window.scrollTo(w,P)}},[n]),we.createElement("div",Ev({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function W8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function $8(e){return YF(e)}const fJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const b=we.useRef();return we.useMemo(()=>a?{reference:{onPointerDown(S){b.current=S.pointerType},onMouseDown(S){S.button===0&&(mw(b.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&b.current){b.current=void 0;return}mw(b.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){b.current=void 0,v&&(W8(S)||(S.key===" "&&!$8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(W8(S)||$8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function Yb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const pJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},hJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},gJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},vJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:b=!0,outsidePress:S=!0,outsidePressEvent:w="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:h=!0}=t===void 0?{}:t;const p=Od(),c=mh()!=null,g=yh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?g:S,_=we.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=gJ(h);return we.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const H=p?Dg(p.nodesRef.current,i):[];if(H.length>0){let q=!0;if(H.forEach(ne=>{var Q;if((Q=ne.context)!=null&&Q.open&&!ne.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const H=_.current;if(_.current=!1,H||typeof m=="function"&&!m(B))return;const q=N2(B);if(hd(q)&&s){const W=s.ownerDocument.defaultView||window,X=q.scrollWidth>q.clientWidth,re=q.scrollHeight>q.clientHeight;let Z=re&&B.offsetX>q.clientWidth;if(re&&W.getComputedStyle(q).direction==="rtl"&&(Z=B.offsetX<=q.offsetWidth-q.clientWidth),Z||X&&B.offsetY>q.clientHeight)return}const ne=p&&Dg(p.nodesRef.current,i).some(W=>{var X;return Yb(B,(X=W.context)==null?void 0:X.elements.floating)});if(Yb(B,s)||Yb(B,l)||ne)return;const Q=p?Dg(p.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(X=>{var re;if((re=X.context)!=null&&re.open&&!X.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:WF(B)||$F(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);b&&F.addEventListener("keydown",R),m&&F.addEventListener(w,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var H;return B!==((H=F.defaultView)==null?void 0:H.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{b&&F.removeEventListener("keydown",R),m&&F.removeEventListener(w,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,b,m,w,o,p,i,r,n,C,v,T,k,c]),we.useEffect(()=>{_.current=!1},[m,w]),we.useMemo(()=>v?{reference:{[pJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[hJ[w]]:()=>{_.current=!0}}}:{},[v,o,P,w,y,n])},mJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const b=we.useRef(""),S=we.useRef(!1),w=we.useRef();return we.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),we.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),we.useEffect(()=>()=>{clearTimeout(w.current)},[]),we.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;b.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&Yb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";w.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let G8=!1;const TT="ArrowUp",A2="ArrowDown",Jp="ArrowLeft",im="ArrowRight";function tb(e,t,r){return Math.floor(e/t)!==r}function Y0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function I2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function K8(e,t){return I2(t,e===TT||e===A2,e===Jp||e===im)}function kx(e,t,r){return I2(t,e===A2,r?e===Jp:e===im)||e==="Enter"||e==" "||e===""}function yJ(e,t,r){return I2(t,r?e===Jp:e===im,e===A2)}function bJ(e,t,r){return I2(t,r?e===im:e===Jp,e===TT)}function Ex(e,t){return uo(e,{disabledIndices:t})}function q8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const wJ=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:b=!1,loop:S=!1,nested:w=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:h=!0,openOnArrowKeyDown:p=!0,disabledIndices:c=void 0,orientation:g="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=mh(),k=Od(),R=yh(s),E=we.useRef(C),A=we.useRef(v??-1),F=we.useRef(null),V=we.useRef(!0),B=we.useRef(R),H=we.useRef(r),q=we.useRef(!1),ne=we.useRef(!1),Q=oa(c),W=oa(r),X=oa(_),[re,Z]=we.useState(),oe=we.useCallback(function(ce,J,ie){ie===void 0&&(ie=!1);const ue=ce.current[J.current];y?Z(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:GF()&&s4()?G8||q.current:!1}),requestAnimationFrame(()=>{const Se=X.current;Se&&ue&&(ie||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,X]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return G8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(ne.current=!0,R(v)):H.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(q.current=!1,v!=null)return;H.current&&(A.current=-1,oe(a,A)),!H.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||kx(F.current,g,P)||w?Ex(a,Q.current):q8(a,Q.current),R(A.current))}else Y0(a,l)||(A.current=l,oe(a,A,ne.current),ne.current=!1)},[d,r,l,v,w,a,g,P,R,oe,Q]),Mr(()=>{if(d&&H.current&&!r){var ce,J;const ie=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(J=ce.context)==null?void 0:J.elements.floating;ie&&!Ho(ie,gd(Yo(ie)))&&ie.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,H.current=r});const fe=l!=null,ge=we.useMemo(()=>{function ce(ie){if(!r)return;const ue=a.current.indexOf(ie);ue!==-1&&R(ue)}return{onFocus(ie){let{currentTarget:ue}=ie;ce(ue)},onClick:ie=>{let{currentTarget:ue}=ie;return ue.focus({preventScroll:!0})},...h&&{onMouseMove(ie){let{currentTarget:ue}=ie;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,oe(a,A),Nu.flushSync(()=>R(null)),!y)){var ie;(ie=o.floating.current)==null||ie.focus({preventScroll:!0})}}}}},[r,o,oe,h,a,R,y]);return we.useMemo(()=>{if(!d)return{};const ce=Q.current;function J(Ce){if(V.current=!1,q.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(w&&bJ(Ce.key,g,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Me=A.current,Le=Ex(a,ce),Re=q8(a,ce);if(Ce.key==="Home"&&(A.current=Le,R(A.current)),Ce.key==="End"&&(A.current=Re,R(A.current)),m>1){const be=A.current;if(Ce.key===TT){if(Xi(Ce),be===-1)A.current=Re;else if(A.current=uo(a,{startingIndex:be,amount:m,decrement:!0,disabledIndices:ce}),S&&(be-mke?Ye:Ye-m}Y0(a,A.current)&&(A.current=be),R(A.current)}if(Ce.key===A2&&(Xi(Ce),be===-1?A.current=Le:(A.current=uo(a,{startingIndex:be,amount:m,disabledIndices:ce}),S&&be+m>Re&&(A.current=uo(a,{startingIndex:be%m-m,amount:m,disabledIndices:ce}))),Y0(a,A.current)&&(A.current=be),R(A.current)),g==="both"){const ke=Math.floor(be/m);Ce.key===im&&(Xi(Ce),be%m!==m-1?(A.current=uo(a,{startingIndex:be,disabledIndices:ce}),S&&tb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:be-be%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:be-be%m-1,disabledIndices:ce})),tb(A.current,m,ke)&&(A.current=be)),Ce.key===Jp&&(Xi(Ce),be%m!==0?(A.current=uo(a,{startingIndex:be,disabledIndices:ce,decrement:!0}),S&&tb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:be+(m-be%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:be+(m-be%m),decrement:!0,disabledIndices:ce})),tb(A.current,m,ke)&&(A.current=be));const ze=Math.floor(Re/m)===ke;Y0(a,A.current)&&(S&&ze?A.current=Ce.key===Jp?Re:uo(a,{startingIndex:be-be%m-1,disabledIndices:ce}):A.current=be),R(A.current);return}}if(K8(Ce.key,g)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=kx(Ce.key,g,P)?Le:Re,R(A.current);return}kx(Ce.key,g,P)?S?A.current=Me>=Re?b&&Me!==a.current.length?-1:Le:uo(a,{startingIndex:Me,disabledIndices:ce}):A.current=Math.min(Re,uo(a,{startingIndex:Me,disabledIndices:ce})):S?A.current=Me<=Le?b&&Me!==-1?a.current.length:Re:uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce}):A.current=Math.max(Le,uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce})),Y0(a,A.current)?R(null):R(A.current)}}function ie(Ce){C==="auto"&&WF(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&$F(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&fe&&{"aria-activedescendant":re};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Me=Ce.key.indexOf("Arrow")===0;if(y&&r)return J(Ce);if(!r&&!p&&Me)return;if((Me||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),w){yJ(Ce.key,g,P)&&(Xi(Ce),r?(A.current=Ex(a,ce),R(A.current)):n(!0));return}K8(Ce.key,g)&&(v!=null&&(A.current=v),Xi(Ce),!r&&p?n(!0):J(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:ie,onClick:ie},floating:{"aria-orientation":g==="both"?void 0:g,...Se,onKeyDown:J,onPointerMove(){V.current=!0}},item:ge}},[i,o,re,Q,W,a,d,g,P,y,r,fe,w,v,p,b,m,S,C,R,n,ge])};function _J(e){return we.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const xJ=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=kv(),a=kv();return we.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},Y8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function SJ(e,t){const[r,n]=we.useState(e);return e&&!r&&n(!0),we.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function rj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=we.useState(!1),[d,v]=we.useState("unmounted"),b=SJ(r,a);return Mr(()=>{l&&!b&&v("unmounted")},[l,b]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:b,status:d}}function CJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=we.useState({}),{isMounted:b,status:S}=rj(e,{duration:a}),w=oa(r),P=oa(n),y=oa(o),C=oa(i),h=typeof a=="number",p=(h?a:a.open)||0,c=(h?a:a.close)||0;return Mr(()=>{const g={side:s,placement:l},m=w.current,_=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(g):m,E=typeof _=="function"?_(g):_,A=typeof k=="function"?k(g):k,F=(typeof T=="function"?T(g):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(Y8).join(","),transitionDuration:p+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(Y8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,w,P,C,p,S]),{isMounted:b,styles:d}}const PJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:b=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const w=we.useRef(),P=we.useRef(""),y=we.useRef((r=S??a)!=null?r:-1),C=we.useRef(null),h=yh(l),p=oa(d),c=oa(b);return Mr(()=>{n&&(clearTimeout(w.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var g;y.current=(g=S??a)!=null?g:-1}},[n,S,a]),we.useMemo(()=>{if(!s)return{};function g(m){const _=N2(m.nativeEvent);if(na(_)&&(gd(Yo(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,H;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((H=V[1])==null?void 0:H.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(w.current),w.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=p.current?p.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(h(F),C.current=F)}return{reference:{onKeyDown:g},floating:{onKeyDown:g}}},[s,o,i,v,c,p,h])};function X8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const TJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:b,elements:{floating:S}}=t,w=r.current[a];if(!w)return{};const P={...t,...await jF(-w.offsetTop-b.reference.height/2-w.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await Gb(X8(P,y.scrollHeight),v),h=await Gb(P,{...v,elementContext:"reference"}),p=Math.max(0,C.top),c=P.y+p,g=Math.max(0,y.scrollHeight-p-Math.max(0,C.bottom));return y.style.maxHeight=g+"px",y.scrollTop=p,o&&(y.offsetHeight=-s||h.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await Gb(X8({...P,y:c},y.offsetHeight),v)),{y:c}}}),OJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=yh(l),d=we.useRef(!1),v=we.useRef(null),b=we.useRef(null);return we.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!w||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,h=i.current.bottom>=-.5,p=w.scrollHeight-w.clientHeight,c=y<0?-1:1,g=y<0?"max":"min";w.scrollHeight<=w.clientHeight||(!C&&y>0||!h&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[g](y,p*c))})):/firefox/i.test(HF())&&(w.scrollTop+=y))}const w=(a==null?void 0:a.current)||n.floating;if(r&&w)return w.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=w.scrollTop,i.current!=null&&(b.current={...i.current})}),()=>{v.current=null,b.current=null,w.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),we.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const w=S.scrollTop-v.current;(i.current.bottom<-.5&&w<-1||i.current.top<-.5&&w>1)&&Nu.flushSync(()=>s(P=>P+w))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function kJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=b>=n&&r<=(v-s)*(n-d)/(b-d)+s&&(o=!o)}return o}function EJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function MJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:b,elements:S,onClose:w,nodeId:P,tree:y}=s;return function(h){function p(){clearTimeout(o),w()}if(clearTimeout(o),!S.domReference||!S.floating||b==null||d==null||v==null)return;const{clientX:c,clientY:g}=h,m=[c,g],_=N2(h),T=h.type==="mouseleave",k=Ho(S.floating,_),R=Ho(S.domReference,_),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=b.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,H=EJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(h.relatedTarget)&&Ho(S.floating,h.relatedTarget)||y&&Dg(y.nodesRef.current,P).some(W=>{let{context:X}=W;return X==null?void 0:X.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return p();let q=[];switch(F){case"top":q=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&g>=A.top&&g<=E.top+1;break;case"bottom":q=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&g>=E.bottom-1&&g<=A.bottom;break;case"left":q=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&g>=A.top&&g<=A.bottom;break;case"right":q=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&g>=A.top&&g<=A.bottom;break}function ne(W){let[X,re]=W;const Z=A.width>E.width,oe=A.height>E.height;switch(F){case"top":{const fe=[Z?X+r/2:V?X+r*4:X-r*4,re+r+1],ge=[Z?X-r/2:V?X+r*4:X-r*4,re+r+1],ce=[[A.left,V||Z?A.bottom-r:A.top],[A.right,V?Z?A.bottom-r:A.top:A.bottom-r]];return[fe,ge,...ce]}case"bottom":{const fe=[Z?X+r/2:V?X+r*4:X-r*4,re-r],ge=[Z?X-r/2:V?X+r*4:X-r*4,re-r],ce=[[A.left,V||Z?A.top+r:A.bottom],[A.right,V?Z?A.top+r:A.bottom:A.top+r]];return[fe,ge,...ce]}case"left":{const fe=[X+r+1,oe?re+r/2:B?re+r*4:re-r*4],ge=[X+r+1,oe?re-r/2:B?re+r*4:re-r*4];return[...[[B||oe?A.right-r:A.left,A.top],[B?oe?A.right-r:A.left:A.right-r,A.bottom]],fe,ge]}case"right":{const fe=[X-r,oe?re+r/2:B?re+r*4:re-r*4],ge=[X-r,oe?re-r/2:B?re+r*4:re-r*4],ce=[[B||oe?A.left+r:A.right,A.top],[B?oe?A.left+r:A.right:A.left+r,A.bottom]];return[fe,ge,...ce]}}}const Q=i?q:ne([d,v]);if(!i){if(a&&!H)return p();kJ([c,g],Q)?t&&!a&&(o=setTimeout(p,t)):p()}}};return l.__options={blockPointerEvents:n},l}function RJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=WZ(e),i=Od(),a=we.useRef(null),l=we.useRef({}),s=we.useState(()=>VF())[0],[d,v]=we.useState(null),b=we.useCallback(h=>{const p=na(h)?{getBoundingClientRect:()=>h.getBoundingClientRect(),contextElement:h}:h;o.refs.setReference(p)},[o.refs]),S=we.useCallback(h=>{(na(h)||h===null)&&(a.current=h,v(h)),(na(o.refs.reference.current)||o.refs.reference.current===null||h!==null&&!na(h))&&o.refs.setReference(h)},[o.refs]),w=we.useMemo(()=>({...o.refs,setReference:S,setPositionReference:b,domReference:a}),[o.refs,S,b]),P=we.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=yh(r),C=we.useMemo(()=>({...o,refs:w,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,w,P]);return Mr(()=>{const h=i==null?void 0:i.nodesRef.current.find(p=>p.id===n);h&&(h.context=C)}),we.useMemo(()=>({...o,context:C,refs:w,reference:S,positionReference:b}),[o,w,C,S,b])}function Mx(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,b=arguments.length,S=new Array(b),w=0;wP(...S))}}}else o[l]=s}),o),{})}}const NJ=function(e){e===void 0&&(e=[]);const t=e,r=we.useCallback(i=>Mx(i,e,"reference"),t),n=we.useCallback(i=>Mx(i,e,"floating"),t),o=we.useCallback(i=>Mx(i,e,"item"),e.map(i=>i==null?void 0:i.item));return we.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},AJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:JZ,FloatingFocusManager:cJ,FloatingNode:YZ,FloatingOverlay:dJ,FloatingPortal:sJ,FloatingTree:XZ,arrow:HZ,autoPlacement:DZ,autoUpdate:LZ,computePosition:zF,detectOverflow:Gb,flip:jZ,getOverflowAncestors:os,hide:VZ,inline:BZ,inner:TJ,limitShift:UZ,offset:jF,platform:FF,safePolygon:MJ,shift:FZ,size:zZ,useClick:fJ,useDelayGroup:eJ,useDelayGroupContext:qF,useDismiss:vJ,useFloating:RJ,useFloatingNodeId:qZ,useFloatingParentNodeId:mh,useFloatingPortalNode:ej,useFloatingTree:Od,useFocus:mJ,useHover:ZZ,useId:kv,useInnerOffset:OJ,useInteractions:NJ,useListNavigation:wJ,useMergeRefs:_J,useRole:xJ,useTransitionStatus:rj,useTransitionStyles:CJ,useTypeahead:PJ},Symbol.toStringTag,{value:"Module"})),wn=Dv(AJ);var nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=uh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var w=S})(nj);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{DialogBody:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=uh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,_=m.defaultProps,T=m.styles.base;p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.DialogBody";var P=w})(oj);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=uh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var w=S})(ij);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return w.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=p(Y),n=p(ot),o=wn,i=An,a=p(pt),l=p(Xn),s=Je,d=p(Sr),v=p(et),b=Xe,S=uh,w=nj,P=oj,y=ij;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function h(){return h=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,H=E.dismiss,q=E.animate,ne=E.className,Q=E.children,W=_(E,["open","handler","size","dismiss","animate","className","children"]),X=(0,b.useTheme)().dialog,re=X.defaultProps,Z=X.valid,oe=X.styles,fe=oe.base,ge=oe.sizes;V=V??void 0,B=B??re.size,H=H??re.dismiss,q=q??re.animate,ne=(0,s.twMerge)(re.className||"",ne);var ce=(0,a.default)((0,v.default)(fe.backdrop)),J=(0,s.twMerge)((0,a.default)((0,v.default)(fe.container),(0,v.default)(ge[(0,d.default)(Z.sizes,B,"md")])),ne),ie={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(ie,q),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Me=Ce.floating,Le=Ce.context,Re=(0,o.useId)(),be="".concat(Re,"-label"),ke="".concat(Re,"-description"),ze=(0,o.useInteractions)([(0,o.useClick)(Le),(0,o.useRole)(Le),(0,o.useDismiss)(Le,H)]).getFloatingProps,Ye=(0,o.useMergeRefs)([A,Me]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Le},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,h({},ze(m(c({},W),{ref:Ye,className:J,"aria-labelledby":be,"aria-describedby":ke})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:w.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(fL);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Wv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.icon,E=h.containerProps,A=h.labelProps,F=h.className,V=h.shrink,B=h.inputRef,H=w(h,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),q=(0,l.useTheme)().input,ne=q.defaultProps,Q=q.valid,W=q.styles,X=W.base,re=W.variants;c=c??ne.variant,m=m??ne.size,g=g??ne.color,_=_??ne.label,A=A??ne.labelProps,E=E??ne.containerProps,V=V??ne.shrink,R=R??ne.icon,F=(0,d.twMerge)(ne.className||"",F);var Z=re[(0,i.default)(Q.variants,c,"outlined")],oe=Z.sizes[(0,i.default)(Q.sizes,m,"md")],fe=(0,a.default)(Z.error.input),ge=(0,a.default)(Z.success.input),ce=(0,a.default)(Z.shrink.input),J=(0,a.default)(Z.colors.input[(0,i.default)(Q.colors,g,"gray")]),ie=(0,a.default)(Z.error.label),ue=(0,a.default)(Z.success.label),Se=(0,a.default)(Z.shrink.label),Ce=(0,a.default)(Z.colors.label[(0,i.default)(Q.colors,g,"gray")]),Me=(0,o.default)((0,a.default)(X.container),(0,a.default)(oe.container),E==null?void 0:E.className),Le=(0,o.default)((0,a.default)(X.input),(0,a.default)(Z.base.input),(0,a.default)(oe.input),v({},(0,a.default)(Z.base.inputWithIcon),R),v({},J,!T&&!k),v({},fe,T),v({},ge,k),v({},ce,V),F),Re=(0,o.default)((0,a.default)(X.label),(0,a.default)(Z.base.label),(0,a.default)(oe.label),v({},Ce,!T&&!k),v({},ie,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),be=(0,o.default)((0,a.default)(X.icon),(0,a.default)(Z.base.icon),(0,a.default)(oe.icon)),ke=(0,o.default)((0,a.default)(X.asterisk));return r.default.createElement("div",b({},E,{ref:p,className:Me}),R&&r.default.createElement("div",{className:be},R),r.default.createElement("input",b({},H,{ref:B,className:Le,placeholder:(H==null?void 0:H.placeholder)||" "})),r.default.createElement("label",b({},A,{className:Re}),_," ",H.required?r.default.createElement("span",{className:ke},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(aj);var lj={},am={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,b=r.default.bool,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(Y),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(am);var sj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{MenuCore:function(){return C},default:function(){return h}});var r=b(Y),n=b(ot),o=wn,i=b(Xn),a=Xe,l=am,s=bh;function d(p,c){(c==null||c>p.length)&&(c=p.length);for(var g=0,m=new Array(c);g=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.useMenu)(),g=c.getReferenceProps,m=c.reference,_=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(s(v(s({},p),{ref:T,onClick:function(R){R.stopPropagation()}}),_&&{role:"menuitem"}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.MenuHandler";var P=w})(uj);var cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(Y),n=wn,o=An,i=S(pt),a=Je,l=S(et),s=Xe,d=am,v=bh;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.children,g=h.className,m=w(h,["children","className"]),_=(0,s.useTheme)().menu,T=_.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,H=k.listItemsRef,q=k.getFloatingProps,ne=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,X=k.context,re=k.activeIndex,Z=k.tree,oe=k.allowHover,fe=k.internalAllowHover,ge=k.setActiveIndex,ce=k.nested;g=g??"";var J=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),g),ie=(0,n.useMergeRefs)([p,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,b({},m,{ref:ie,style:{position:A,top:V??0,left:F??0},className:J},q({onKeyDown:function(Me){Me.key==="Tab"&&(E(!1),Me.shiftKey&&Me.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Me){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,ne({tabIndex:re===Me?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Re){H.current[Me]=Re},onClick:function(Re){if(Ce.props.onClick){var be,ke;(ke=(be=Ce.props).onClick)===null||ke===void 0||ke.call(be,Re)}Z==null||Z.events.emit("click")},onMouseEnter:function(){(oe&&R||fe&&R)&&ge(Me)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(cj);var dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{MenuItem:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=bh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.className,p=h===void 0?"":h,c=y.disabled,g=c===void 0?!1:c,m=y.children,_=b(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),g)),p);return r.default.createElement("button",d({},_,{ref:C,role:"menuitem",className:R}),m)});w.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},w.displayName="MaterialTailwind.MenuItem";var P=w})(dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return b},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(Y),n=wn,o=am,i=sj,a=uj,l=cj,s=dj;function d(){return d=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function xx(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function $C(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var MQ=typeof WeakMap=="function"?WeakMap:Map;function tF(e,t,r){r=ns(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){uw||(uw=!0,t4=n),$C(e,t)},r}function rF(e,t,r){r=ns(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){$C(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){$C(e,t),typeof n!="function"&&(Pu===null?Pu=new Set([this]):Pu.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function f8(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new MQ;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=WQ.bind(null,e,t,r),t.then(e,e))}function p8(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function h8(e,t,r,n,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ns(-1,1),t.tag=2,Cu(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var RQ=ws.ReactCurrentOwner,qo=!1;function Mo(e,t,r,n){t.child=e===null?ID(t,null,r,n):Kp(t,e.child,r,n)}function g8(e,t,r,n,o){r=r.render;var i=t.ref;return Op(t,o),n=J3(e,t,r,n,i,o),r=eT(),e!==null&&!qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,gs(e,t,o)):(xr&&r&&B3(t),t.flags|=1,Mo(e,t,n,o),t.child)}function v8(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!cT(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,nF(e,t,i,n,o)):(e=$b(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:yv,r(a,n)&&e.ref===t.ref)return gs(e,t,o)}return t.flags|=1,e=Ou(i,n),e.ref=t.ref,e.return=t,t.child=e}function nF(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(yv(i,n)&&e.ref===t.ref)if(qo=!1,t.pendingProps=n=i,(e.lanes&o)!==0)(e.flags&131072)!==0&&(qo=!0);else return t.lanes=e.lanes,gs(e,t,o)}return GC(e,t,r,n,o)}function oF(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},cr(fp,bi),bi|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,cr(fp,bi),bi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,cr(fp,bi),bi|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,cr(fp,bi),bi|=n;return Mo(e,t,o,r),t.child}function iF(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function GC(e,t,r,n,o){var i=ei(r)?ld:go.current;return i=$p(t,i),Op(t,o),r=J3(e,t,r,n,i,o),n=eT(),e!==null&&!qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,gs(e,t,o)):(xr&&n&&B3(t),t.flags|=1,Mo(e,t,r,o),t.child)}function m8(e,t,r,n,o){if(ei(r)){var i=!0;J1(t)}else i=!1;if(Op(t,o),t.stateNode===null)Ub(e,t),ND(t,r,n),WC(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,d=r.contextType;typeof d=="object"&&d!==null?d=ua(d):(d=ei(r)?ld:go.current,d=$p(t,d));var v=r.getDerivedStateFromProps,b=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function";b||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==n||s!==d)&&s8(t,a,n,d),tu=!1;var S=t.memoizedState;a.state=S,ow(t,n,a,o),s=t.memoizedState,l!==n||S!==s||Jo.current||tu?(typeof v=="function"&&(HC(t,r,v,n),s=t.memoizedState),(l=tu||l8(t,r,l,n,S,s,d))?(b||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=s),a.props=n,a.state=s,a.context=d,n=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,MD(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:Oa(t.type,l),a.props=d,b=t.pendingProps,S=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=ua(s):(s=ei(r)?ld:go.current,s=$p(t,s));var w=r.getDerivedStateFromProps;(v=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==b||S!==s)&&s8(t,a,n,s),tu=!1,S=t.memoizedState,a.state=S,ow(t,n,a,o);var P=t.memoizedState;l!==b||S!==P||Jo.current||tu?(typeof w=="function"&&(HC(t,r,w,n),P=t.memoizedState),(d=tu||l8(t,r,d,n,S,P,s)||!1)?(v||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,P,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,P,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=P),a.props=n,a.state=P,a.context=s,n=d):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),n=!1)}return KC(e,t,r,n,i,o)}function KC(e,t,r,n,o,i){iF(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&r8(t,r,!1),gs(e,t,i);n=t.stateNode,RQ.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=Kp(t,e.child,null,i),t.child=Kp(t,null,l,i)):Mo(e,t,l,i),t.memoizedState=n.state,o&&r8(t,r,!0),t.child}function aF(e){var t=e.stateNode;t.pendingContext?t8(e,t.pendingContext,t.pendingContext!==t.context):t.context&&t8(e,t.context,!1),Y3(e,t.containerInfo)}function y8(e,t,r,n,o){return Gp(),H3(o),t.flags|=256,Mo(e,t,r,n),t.child}var qC={dehydrated:null,treeContext:null,retryLane:0};function YC(e){return{baseLanes:e,cachePool:null,transitions:null}}function lF(e,t,r){var n=t.pendingProps,o=Er.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),cr(Er,o&1),e===null)return BC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=C2(a,n,0,null),e=ed(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=YC(r),t.memoizedState=qC,e):nT(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return NQ(e,t,a,n,l,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,l=o.sibling;var s={mode:"hidden",children:n.children};return(a&1)===0&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,t.deletions=null):(n=Ou(o,s),n.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Ou(l,i):(i=ed(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?YC(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=qC,n}return i=e.child,e=i.sibling,n=Ou(i,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function nT(e,t){return t=C2({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yy(e,t,r,n){return n!==null&&H3(n),Kp(t,e.child,null,r),e=nT(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function NQ(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=xx(Error(Fe(422))),Yy(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=C2({mode:"visible",children:n.children},o,0,null),i=ed(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,(t.mode&1)!==0&&Kp(t,e.child,null,a),t.child.memoizedState=YC(a),t.memoizedState=qC,i);if((t.mode&1)===0)return Yy(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var l=n.dgst;return n=l,i=Error(Fe(419)),n=xx(i,n,void 0),Yy(e,t,a,n)}if(l=(a&e.childLanes)!==0,qo||l){if(n=Nn,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,hs(e,o),Fa(n,e,o,-1))}return uT(),n=xx(Error(Fe(421))),Yy(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=$Q.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,xi=Su(o.nextSibling),Ci=t,xr=!0,Na=null,e!==null&&(Ji[ea++]=Zl,Ji[ea++]=Jl,Ji[ea++]=sd,Zl=e.id,Jl=e.overflow,sd=t),t=nT(t,n.children),t.flags|=4096,t)}function b8(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),UC(e.return,t,r)}function Sx(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function sF(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Mo(e,t,n.children,r),n=Er.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&b8(e,r,t);else if(e.tag===19)b8(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(cr(Er,n),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&iw(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Sx(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&iw(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Sx(t,!0,r,null,i);break;case"together":Sx(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ub(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),cd|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(Fe(153));if(t.child!==null){for(e=t.child,r=Ou(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ou(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function AQ(e,t,r){switch(t.tag){case 3:aF(t),Gp();break;case 5:LD(t);break;case 1:ei(t.type)&&J1(t);break;case 4:Y3(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;cr(rw,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(cr(Er,Er.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?lF(e,t,r):(cr(Er,Er.current&1),e=gs(e,t,r),e!==null?e.sibling:null);cr(Er,Er.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return sF(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),cr(Er,Er.current),n)break;return null;case 22:case 23:return t.lanes=0,oF(e,t,r)}return gs(e,t,r)}var uF,XC,cF,dF;uF=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};XC=function(){};cF=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Yc(yl.current);var i=null;switch(r){case"input":o=yC(e,o),n=yC(e,n),i=[];break;case"select":o=Ir({},o,{value:void 0}),n=Ir({},n,{value:void 0}),i=[];break;case"textarea":o=_C(e,o),n=_C(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Q1)}SC(r,n);var a;r=null;for(d in o)if(!n.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var l=o[d];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(dv.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in n){var s=n[d];if(l=o!=null?o[d]:void 0,n.hasOwnProperty(d)&&s!==l&&(s!=null||l!=null))if(d==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(d,r)),r=s;else d==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(d,s)):d==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(d,""+s):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(dv.hasOwnProperty(d)?(s!=null&&d==="onScroll"&&vr("scroll",e),i||l===s||(i=[])):(i=i||[]).push(d,s))}r&&(i=i||[]).push("style",r);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};dF=function(e,t,r,n){r!==n&&(t.flags|=4)};function K0(e,t){if(!xr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ao(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function IQ(e,t,r){var n=t.pendingProps;switch(U3(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ao(t),null;case 1:return ei(t.type)&&Z1(),ao(t),null;case 3:return n=t.stateNode,qp(),yr(Jo),yr(go),Q3(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ky(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Na!==null&&(o4(Na),Na=null))),XC(e,t),ao(t),null;case 5:X3(t);var o=Yc(Sv.current);if(r=t.type,e!==null&&t.stateNode!=null)cF(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Fe(166));return ao(t),null}if(e=Yc(yl.current),Ky(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[pl]=t,n[_v]=i,e=(t.mode&1)!==0,r){case"dialog":vr("cancel",n),vr("close",n);break;case"iframe":case"object":case"embed":vr("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[pl]=t,e[_v]=n,uF(e,t,!1,!1),t.stateNode=e;e:{switch(a=CC(r,n),r){case"dialog":vr("cancel",e),vr("close",e),o=n;break;case"iframe":case"object":case"embed":vr("load",e),o=n;break;case"video":case"audio":for(o=0;oXp&&(t.flags|=128,n=!0,K0(i,!1),t.lanes=4194304)}else{if(!n)if(e=iw(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),K0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xr)return ao(t),null}else 2*Yr()-i.renderingStartTime>Xp&&r!==1073741824&&(t.flags|=128,n=!0,K0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Yr(),t.sibling=null,r=Er.current,cr(Er,n?r&1|2:r&1),t):(ao(t),null);case 22:case 23:return sT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(bi&1073741824)!==0&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Fe(156,t.tag))}function LQ(e,t){switch(U3(t),t.tag){case 1:return ei(t.type)&&Z1(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qp(),yr(Jo),yr(go),Q3(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return X3(t),null;case 13:if(yr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Fe(340));Gp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(Er),null;case 4:return qp(),null;case 10:return G3(t.type._context),null;case 22:case 23:return sT(),null;case 24:return null;default:return null}}var Xy=!1,fo=!1,DQ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function dp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Br(e,t,n)}else r.current=null}function QC(e,t,r){try{r()}catch(n){Br(e,t,n)}}var w8=!1;function FQ(e,t){if(IC=q1,e=gD(),V3(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,d=0,v=0,b=e,S=null;t:for(;;){for(var w;b!==r||o!==0&&b.nodeType!==3||(l=a+o),b!==i||n!==0&&b.nodeType!==3||(s=a+n),b.nodeType===3&&(a+=b.nodeValue.length),(w=b.firstChild)!==null;)S=b,b=w;for(;;){if(b===e)break t;if(S===r&&++d===o&&(l=a),S===i&&++v===n&&(s=a),(w=b.nextSibling)!==null)break;b=S,S=b.parentNode}b=w}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(LC={focusedElem:e,selectionRange:r},q1=!1,qe=t;qe!==null;)if(t=qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qe=e;else for(;qe!==null;){t=qe;try{var P=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var y=P.memoizedProps,C=P.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Oa(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var c=t.stateNode.containerInfo;c.nodeType===1?c.textContent="":c.nodeType===9&&c.documentElement&&c.removeChild(c.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Fe(163))}}catch(g){Br(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,qe=e;break}qe=t.return}return P=w8,w8=!1,P}function Ag(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&QC(t,r,i)}o=o.next}while(o!==n)}}function x2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ZC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function fF(e){var t=e.alternate;t!==null&&(e.alternate=null,fF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pl],delete t[_v],delete t[jC],delete t[bQ],delete t[wQ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function pF(e){return e.tag===5||e.tag===3||e.tag===4}function _8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function JC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Q1));else if(n!==4&&(e=e.child,e!==null))for(JC(e,t,r),e=e.sibling;e!==null;)JC(e,t,r),e=e.sibling}function e4(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(e4(e,t,r),e=e.sibling;e!==null;)e4(e,t,r),e=e.sibling}var Wn=null,Ma=!1;function $s(e,t,r){for(r=r.child;r!==null;)hF(e,t,r),r=r.sibling}function hF(e,t,r){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(h2,r)}catch{}switch(r.tag){case 5:fo||dp(r,t);case 6:var n=Wn,o=Ma;Wn=null,$s(e,t,r),Wn=n,Ma=o,Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Wn.removeChild(r.stateNode));break;case 18:Wn!==null&&(Ma?(e=Wn,r=r.stateNode,e.nodeType===8?vx(e.parentNode,r):e.nodeType===1&&vx(e,r),vv(e)):vx(Wn,r.stateNode));break;case 4:n=Wn,o=Ma,Wn=r.stateNode.containerInfo,Ma=!0,$s(e,t,r),Wn=n,Ma=o;break;case 0:case 11:case 14:case 15:if(!fo&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&QC(r,t,a),o=o.next}while(o!==n)}$s(e,t,r);break;case 1:if(!fo&&(dp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Br(r,t,l)}$s(e,t,r);break;case 21:$s(e,t,r);break;case 22:r.mode&1?(fo=(n=fo)||r.memoizedState!==null,$s(e,t,r),fo=n):$s(e,t,r);break;default:$s(e,t,r)}}function x8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new DQ),t.forEach(function(n){var o=GQ.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Sa(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Yr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*zQ(n/1960))-n,10e?16:e,cu===null)var n=!1;else{if(e=cu,cu=null,cw=0,($t&6)!==0)throw Error(Fe(331));var o=$t;for($t|=4,qe=e.current;qe!==null;){var i=qe,a=i.child;if((qe.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;sYr()-aT?Jc(e,0):iT|=r),ti(e,t)}function xF(e,t){t===0&&((e.mode&1)===0?t=1:(t=By,By<<=1,(By&130023424)===0&&(By=4194304)));var r=No();e=hs(e,t),e!==null&&(em(e,t,r),ti(e,r))}function $Q(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),xF(e,r)}function GQ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Fe(314))}n!==null&&n.delete(t),xF(e,r)}var SF;SF=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jo.current)qo=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return qo=!1,AQ(e,t,r);qo=(e.flags&131072)!==0}else qo=!1,xr&&(t.flags&1048576)!==0&&TD(t,tw,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ub(e,t),e=t.pendingProps;var o=$p(t,go.current);Op(t,r),o=J3(null,t,n,e,o,r);var i=eT();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ei(n)?(i=!0,J1(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,q3(t),o.updater=w2,t.stateNode=o,o._reactInternals=t,WC(t,n,e,r),t=KC(null,t,n,!0,i,r)):(t.tag=0,xr&&i&&B3(t),Mo(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ub(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=qQ(n),e=Oa(n,e),o){case 0:t=GC(null,t,n,e,r);break e;case 1:t=m8(null,t,n,e,r);break e;case 11:t=g8(null,t,n,e,r);break e;case 14:t=v8(null,t,n,Oa(n.type,e),r);break e}throw Error(Fe(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),GC(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),m8(e,t,n,o,r);case 3:e:{if(aF(t),e===null)throw Error(Fe(387));n=t.pendingProps,i=t.memoizedState,o=i.element,MD(e,t),ow(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yp(Error(Fe(423)),t),t=y8(e,t,n,r,o);break e}else if(n!==o){o=Yp(Error(Fe(424)),t),t=y8(e,t,n,r,o);break e}else for(xi=Su(t.stateNode.containerInfo.firstChild),Ci=t,xr=!0,Na=null,r=ID(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Gp(),n===o){t=gs(e,t,r);break e}Mo(e,t,n,r)}t=t.child}return t;case 5:return LD(t),e===null&&BC(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,DC(n,o)?a=null:i!==null&&DC(n,i)&&(t.flags|=32),iF(e,t),Mo(e,t,a,r),t.child;case 6:return e===null&&BC(t),null;case 13:return lF(e,t,r);case 4:return Y3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Kp(t,null,n,r):Mo(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),g8(e,t,n,o,r);case 7:return Mo(e,t,t.pendingProps,r),t.child;case 8:return Mo(e,t,t.pendingProps.children,r),t.child;case 12:return Mo(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,cr(rw,n._currentValue),n._currentValue=a,i!==null)if(Ba(i.value,a)){if(i.children===o.children&&!Jo.current){t=gs(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=ns(-1,r&-r),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),UC(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Fe(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),UC(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Mo(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Op(t,r),o=ua(o),n=n(o),t.flags|=1,Mo(e,t,n,r),t.child;case 14:return n=t.type,o=Oa(n,t.pendingProps),o=Oa(n.type,o),v8(e,t,n,o,r);case 15:return nF(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Oa(n,o),Ub(e,t),t.tag=1,ei(n)?(e=!0,J1(t)):e=!1,Op(t,r),ND(t,n,o),WC(t,n,o,r),KC(null,t,n,!0,e,r);case 19:return sF(e,t,r);case 22:return oF(e,t,r)}throw Error(Fe(156,t.tag))};function CF(e,t){return XL(e,t)}function KQ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,r,n){return new KQ(e,t,r,n)}function cT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qQ(e){if(typeof e=="function")return cT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E3)return 11;if(e===M3)return 14}return 2}function Ou(e,t){var r=e.alternate;return r===null?(r=ra(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $b(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")cT(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case rp:return ed(r.children,o,i,t);case k3:a=8,o|=8;break;case hC:return e=ra(12,r,t,o|2),e.elementType=hC,e.lanes=i,e;case gC:return e=ra(13,r,t,o),e.elementType=gC,e.lanes=i,e;case vC:return e=ra(19,r,t,o),e.elementType=vC,e.lanes=i,e;case AL:return C2(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case RL:a=10;break e;case NL:a=9;break e;case E3:a=11;break e;case M3:a=14;break e;case eu:a=16,n=null;break e}throw Error(Fe(130,e==null?e:typeof e,""))}return t=ra(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function ed(e,t,r,n){return e=ra(7,e,n,t),e.lanes=r,e}function C2(e,t,r,n){return e=ra(22,e,n,t),e.elementType=AL,e.lanes=r,e.stateNode={isHidden:!1},e}function Cx(e,t,r){return e=ra(6,e,null,t),e.lanes=r,e}function Px(e,t,r){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function YQ(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ix(0),this.expirationTimes=ix(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ix(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function dT(e,t,r,n,o,i,a,l,s){return e=new YQ(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ra(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},q3(i),e}function XQ(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kF)}catch(e){console.error(e)}}kF(),kL.exports=Ni;var Nu=kL.exports;const EF=["top","right","bottom","left"],M8=["start","end"],R8=EF.reduce((e,t)=>e.concat(t,t+"-"+M8[0],t+"-"+M8[1]),[]),Ua=Math.min,po=Math.max,pw=Math.round,Jy=Math.floor,Au=e=>({x:e,y:e}),tZ={left:"right",right:"left",bottom:"top",top:"bottom"},rZ={start:"end",end:"start"};function i4(e,t,r){return po(e,Ua(t,r))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function ja(e){return e.split("-")[1]}function gT(e){return e==="x"?"y":"x"}function vT(e){return e==="y"?"height":"width"}function vs(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function mT(e){return gT(vs(e))}function MF(e,t,r){r===void 0&&(r=!1);const n=ja(e),o=mT(e),i=vT(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gw(a)),[a,gw(a)]}function nZ(e){const t=gw(e);return[hw(e),t,hw(t)]}function hw(e){return e.replace(/start|end/g,t=>rZ[t])}function oZ(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function iZ(e,t,r,n){const o=ja(e);let i=oZ(Ei(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(hw)))),i}function gw(e){return e.replace(/left|right|bottom|top/g,t=>tZ[t])}function aZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function yT(e){return typeof e!="number"?aZ(e):{top:e,right:e,bottom:e,left:e}}function Qp(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function N8(e,t,r){let{reference:n,floating:o}=e;const i=vs(t),a=mT(t),l=vT(a),s=Ei(t),d=i==="y",v=n.x+n.width/2-o.width/2,b=n.y+n.height/2-o.height/2,S=n[l]/2-o[l]/2;let w;switch(s){case"top":w={x:v,y:n.y-o.height};break;case"bottom":w={x:v,y:n.y+n.height};break;case"right":w={x:n.x+n.width,y:b};break;case"left":w={x:n.x-o.width,y:b};break;default:w={x:n.x,y:n.y}}switch(ja(t)){case"start":w[a]-=S*(r&&d?-1:1);break;case"end":w[a]+=S*(r&&d?-1:1);break}return w}const lZ=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,l=i.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:b}=N8(d,n,s),S=n,w={},P=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:d,padding:v=0}=Ha(e,t)||{};if(d==null)return{};const b=yT(v),S={x:r,y:n},w=mT(o),P=vT(w),y=await a.getDimensions(d),C=w==="y",h=C?"top":"left",p=C?"bottom":"right",c=C?"clientHeight":"clientWidth",g=i.reference[P]+i.reference[w]-S[w]-i.floating[P],m=S[w]-i.reference[w],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let T=_?_[c]:0;(!T||!await(a.isElement==null?void 0:a.isElement(_)))&&(T=l.floating[c]||i.floating[P]);const k=g/2-m/2,R=T/2-y[P]/2-1,E=Ua(b[h],R),A=Ua(b[p],R),F=E,V=T-y[P]-A,B=T/2-y[P]/2+k,H=i4(F,B,V),q=!s.arrow&&ja(o)!=null&&B!==H&&i.reference[P]/2-(Bja(o)===e),...r.filter(o=>ja(o)!==e)]:r.filter(o=>Ei(o)===o)).filter(o=>e?ja(o)===e||(t?hw(o)!==o:!1):!0)}const cZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:i,middlewareData:a,placement:l,platform:s,elements:d}=t,{crossAxis:v=!1,alignment:b,allowedPlacements:S=R8,autoAlignment:w=!0,...P}=Ha(e,t),y=b!==void 0||S===R8?uZ(b||null,w,S):S,C=await fd(t,P),h=((r=a.autoPlacement)==null?void 0:r.index)||0,p=y[h];if(p==null)return{};const c=MF(p,i,await(s.isRTL==null?void 0:s.isRTL(d.floating)));if(l!==p)return{reset:{placement:y[0]}};const g=[C[Ei(p)],C[c[0]],C[c[1]]],m=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:p,overflows:g}],_=y[h+1];if(_)return{data:{index:h+1,overflows:m},reset:{placement:_}};const T=m.map(E=>{const A=ja(E.placement);return[E.placement,A&&v?E.overflows.slice(0,2).reduce((F,V)=>F+V,0):E.overflows[0],E.overflows]}).sort((E,A)=>E[1]-A[1]),R=((o=T.filter(E=>E[2].slice(0,ja(E[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||T[0][0];return R!==l?{data:{index:h+1,overflows:m},reset:{placement:R}}:{}}}},dZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:d}=t,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:y=!0,...C}=Ha(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const h=Ei(o),p=vs(l),c=Ei(l)===l,g=await(s.isRTL==null?void 0:s.isRTL(d.floating)),m=S||(c||!y?[gw(l)]:nZ(l)),_=P!=="none";!S&&_&&m.push(...iZ(l,y,P,g));const T=[l,...m],k=await fd(t,C),R=[];let E=((n=i.flip)==null?void 0:n.overflows)||[];if(v&&R.push(k[h]),b){const B=MF(o,a,g);R.push(k[B[0]],k[B[1]])}if(E=[...E,{placement:o,overflows:R}],!R.every(B=>B<=0)){var A,F;const B=(((A=i.flip)==null?void 0:A.index)||0)+1,H=T[B];if(H)return{data:{index:B,overflows:E},reset:{placement:H}};let q=(F=E.filter(ne=>ne.overflows[0]<=0).sort((ne,Q)=>ne.overflows[1]-Q.overflows[1])[0])==null?void 0:F.placement;if(!q)switch(w){case"bestFit":{var V;const ne=(V=E.filter(Q=>{if(_){const W=vs(Q.placement);return W===p||W==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(W=>W>0).reduce((W,X)=>W+X,0)]).sort((Q,W)=>Q[1]-W[1])[0])==null?void 0:V[0];ne&&(q=ne);break}case"initialPlacement":q=l;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function A8(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I8(e){return EF.some(t=>e[t]>=0)}const fZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ha(e,t);switch(n){case"referenceHidden":{const i=await fd(t,{...o,elementContext:"reference"}),a=A8(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:I8(a)}}}case"escaped":{const i=await fd(t,{...o,altBoundary:!0}),a=A8(i,r.floating);return{data:{escapedOffsets:a,escaped:I8(a)}}}default:return{}}}}};function RF(e){const t=Ua(...e.map(i=>i.left)),r=Ua(...e.map(i=>i.top)),n=po(...e.map(i=>i.right)),o=po(...e.map(i=>i.bottom));return{x:t,y:r,width:n-t,height:o-r}}function pZ(e){const t=e.slice().sort((o,i)=>o.y-i.y),r=[];let n=null;for(let o=0;on.height/2?r.push([i]):r[r.length-1].push(i),n=i}return r.map(o=>Qp(RF(o)))}const hZ=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:d}=Ha(e,t),v=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(n.reference))||[]),b=pZ(v),S=Qp(RF(v)),w=yT(l);function P(){if(b.length===2&&b[0].left>b[1].right&&s!=null&&d!=null)return b.find(C=>s>C.left-w.left&&sC.top-w.top&&d=2){if(vs(r)==="y"){const E=b[0],A=b[b.length-1],F=Ei(r)==="top",V=E.top,B=A.bottom,H=F?E.left:A.left,q=F?E.right:A.right,ne=q-H,Q=B-V;return{top:V,bottom:B,left:H,right:q,width:ne,height:Q,x:H,y:V}}const C=Ei(r)==="left",h=po(...b.map(E=>E.right)),p=Ua(...b.map(E=>E.left)),c=b.filter(E=>C?E.left===p:E.right===h),g=c[0].top,m=c[c.length-1].bottom,_=p,T=h,k=T-_,R=m-g;return{top:g,bottom:m,left:_,right:T,width:k,height:R,x:_,y:g}}return S}const y=await i.getElementRects({reference:{getBoundingClientRect:P},floating:n.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}};async function gZ(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ei(r),l=ja(r),s=vs(r)==="y",d=["left","top"].includes(a)?-1:1,v=i&&s?-1:1,b=Ha(t,e);let{mainAxis:S,crossAxis:w,alignmentAxis:P}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof P=="number"&&(w=l==="end"?P*-1:P),s?{x:w*v,y:S*d}:{x:S*d,y:w*v}}const vZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await gZ(t,e);return a===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},mZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:C=>{let{x:h,y:p}=C;return{x:h,y:p}}},...s}=Ha(e,t),d={x:r,y:n},v=await fd(t,s),b=vs(Ei(o)),S=gT(b);let w=d[S],P=d[b];if(i){const C=S==="y"?"top":"left",h=S==="y"?"bottom":"right",p=w+v[C],c=w-v[h];w=i4(p,w,c)}if(a){const C=b==="y"?"top":"left",h=b==="y"?"bottom":"right",p=P+v[C],c=P-v[h];P=i4(p,P,c)}const y=l.fn({...t,[S]:w,[b]:P});return{...y,data:{x:y.x-r,y:y.y-n,enabled:{[S]:i,[b]:a}}}}}},yZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:d=!0}=Ha(e,t),v={x:r,y:n},b=vs(o),S=gT(b);let w=v[S],P=v[b];const y=Ha(l,t),C=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const c=S==="y"?"height":"width",g=i.reference[S]-i.floating[c]+C.mainAxis,m=i.reference[S]+i.reference[c]-C.mainAxis;wm&&(w=m)}if(d){var h,p;const c=S==="y"?"width":"height",g=["top","left"].includes(Ei(o)),m=i.reference[b]-i.floating[c]+(g&&((h=a.offset)==null?void 0:h[b])||0)+(g?0:C.crossAxis),_=i.reference[b]+i.reference[c]+(g?0:((p=a.offset)==null?void 0:p[b])||0)-(g?C.crossAxis:0);P_&&(P=_)}return{[S]:w,[b]:P}}}},bZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:l}=t,{apply:s=()=>{},...d}=Ha(e,t),v=await fd(t,d),b=Ei(o),S=ja(o),w=vs(o)==="y",{width:P,height:y}=i.floating;let C,h;b==="top"||b==="bottom"?(C=b,h=S===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=b,C=S==="end"?"top":"bottom");const p=y-v.top-v.bottom,c=P-v.left-v.right,g=Ua(y-v[C],p),m=Ua(P-v[h],c),_=!t.middlewareData.shift;let T=g,k=m;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=c),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=p),_&&!S){const E=po(v.left,0),A=po(v.right,0),F=po(v.top,0),V=po(v.bottom,0);w?k=P-2*(E!==0||A!==0?E+A:po(v.left,v.right)):T=y-2*(F!==0||V!==0?F+V:po(v.top,v.bottom))}await s({...t,availableWidth:k,availableHeight:T});const R=await a.getDimensions(l.floating);return P!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function E2(){return typeof window<"u"}function vh(e){return NF(e)?(e.nodeName||"").toLowerCase():"#document"}function Pi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _l(e){var t;return(t=(NF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function NF(e){return E2()?e instanceof Node||e instanceof Pi(e).Node:!1}function Wa(e){return E2()?e instanceof Element||e instanceof Pi(e).Element:!1}function wl(e){return E2()?e instanceof HTMLElement||e instanceof Pi(e).HTMLElement:!1}function L8(e){return!E2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pi(e).ShadowRoot}function om(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function wZ(e){return["table","td","th"].includes(vh(e))}function M2(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bT(e){const t=wT(),r=Wa(e)?$a(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function _Z(e){let t=Iu(e);for(;wl(t)&&!Zp(t);){if(bT(t))return t;if(M2(t))return null;t=Iu(t)}return null}function wT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zp(e){return["html","body","#document"].includes(vh(e))}function $a(e){return Pi(e).getComputedStyle(e)}function R2(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Iu(e){if(vh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||L8(e)&&e.host||_l(e);return L8(t)?t.host:t}function AF(e){const t=Iu(e);return Zp(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&om(t)?t:AF(t)}function os(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=AF(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Pi(o);if(i){const l=a4(a);return t.concat(a,a.visualViewport||[],om(o)?o:[],l&&r?os(l):[])}return t.concat(o,os(o,[],r))}function a4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function IF(e){const t=$a(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=wl(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=pw(r)!==i||pw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function _T(e){return Wa(e)?e:e.contextElement}function Ep(e){const t=_T(e);if(!wl(t))return Au(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=IF(t);let a=(i?pw(r.width):r.width)/n,l=(i?pw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xZ=Au(0);function LF(e){const t=Pi(e);return!wT()||!t.visualViewport?xZ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Pi(e)?!1:t}function pd(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=_T(e);let a=Au(1);t&&(n?Wa(n)&&(a=Ep(n)):a=Ep(e));const l=SZ(i,r,n)?LF(i):Au(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=Pi(i),w=n&&Wa(n)?Pi(n):n;let P=S,y=a4(P);for(;y&&n&&w!==P;){const C=Ep(y),h=y.getBoundingClientRect(),p=$a(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=Pi(y),y=a4(P)}}return Qp({width:v,height:b,x:s,y:d})}function CZ(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=_l(n),l=t?M2(t.floating):!1;if(n===a||l&&i)return r;let s={scrollLeft:0,scrollTop:0},d=Au(1);const v=Au(0),b=wl(n);if((b||!b&&!i)&&((vh(n)!=="body"||om(a))&&(s=R2(n)),wl(n))){const S=pd(n);d=Ep(n),v.x=S.x+n.clientLeft,v.y=S.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-s.scrollLeft*d.x+v.x,y:r.y*d.y-s.scrollTop*d.y+v.y}}function PZ(e){return Array.from(e.getClientRects())}function l4(e,t){const r=R2(e).scrollLeft;return t?t.left+r:pd(_l(e)).left+r}function TZ(e){const t=_l(e),r=R2(e),n=e.ownerDocument.body,o=po(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=po(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+l4(e);const l=-r.scrollTop;return $a(n).direction==="rtl"&&(a+=po(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:l}}function OZ(e,t){const r=Pi(e),n=_l(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const d=wT();(!d||d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}function kZ(e,t){const r=pd(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=wl(e)?Ep(e):Au(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,s=o*i.x,d=n*i.y;return{width:a,height:l,x:s,y:d}}function D8(e,t,r){let n;if(t==="viewport")n=OZ(e,r);else if(t==="document")n=TZ(_l(e));else if(Wa(t))n=kZ(t,r);else{const o=LF(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Qp(n)}function DF(e,t){const r=Iu(e);return r===t||!Wa(r)||Zp(r)?!1:$a(r).position==="fixed"||DF(r,t)}function EZ(e,t){const r=t.get(e);if(r)return r;let n=os(e,[],!1).filter(l=>Wa(l)&&vh(l)!=="body"),o=null;const i=$a(e).position==="fixed";let a=i?Iu(e):e;for(;Wa(a)&&!Zp(a);){const l=$a(a),s=bT(a);!s&&l.position==="fixed"&&(o=null),(i?!s&&!o:!s&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||om(a)&&!s&&DF(e,a))?n=n.filter(v=>v!==a):o=l,a=Iu(a)}return t.set(e,n),n}function MZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?M2(t)?[]:EZ(t,this._c):[].concat(r),n],l=a[0],s=a.reduce((d,v)=>{const b=D8(t,v,o);return d.top=po(b.top,d.top),d.right=Ua(b.right,d.right),d.bottom=Ua(b.bottom,d.bottom),d.left=po(b.left,d.left),d},D8(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function RZ(e){const{width:t,height:r}=IF(e);return{width:t,height:r}}function NZ(e,t,r){const n=wl(t),o=_l(t),i=r==="fixed",a=pd(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Au(0);if(n||!n&&!i)if((vh(t)!=="body"||om(o))&&(l=R2(t)),n){const w=pd(t,!0,i,t);s.x=w.x+t.clientLeft,s.y=w.y+t.clientTop}else o&&(s.x=l4(o));let d=0,v=0;if(o&&!n&&!i){const w=o.getBoundingClientRect();v=w.top+l.scrollTop,d=w.left+l.scrollLeft-l4(o,w)}const b=a.left+l.scrollLeft-s.x-d,S=a.top+l.scrollTop-s.y-v;return{x:b,y:S,width:a.width,height:a.height}}function Tx(e){return $a(e).position==="static"}function F8(e,t){if(!wl(e)||$a(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return _l(e)===r&&(r=r.ownerDocument.body),r}function FF(e,t){const r=Pi(e);if(M2(e))return r;if(!wl(e)){let o=Iu(e);for(;o&&!Zp(o);){if(Wa(o)&&!Tx(o))return o;o=Iu(o)}return r}let n=F8(e,t);for(;n&&wZ(n)&&Tx(n);)n=F8(n,t);return n&&Zp(n)&&Tx(n)&&!bT(n)?r:n||_Z(e)||r}const AZ=async function(e){const t=this.getOffsetParent||FF,r=this.getDimensions,n=await r(e.floating);return{reference:NZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function IZ(e){return $a(e).direction==="rtl"}const jF={convertOffsetParentRelativeRectToViewportRelativeRect:CZ,getDocumentElement:_l,getClippingRect:MZ,getOffsetParent:FF,getElementRects:AZ,getClientRects:PZ,getDimensions:RZ,getScale:Ep,isElement:Wa,isRTL:IZ};function LZ(e,t){let r=null,n;const o=_l(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const{left:d,top:v,width:b,height:S}=e.getBoundingClientRect();if(l||t(),!b||!S)return;const w=Jy(v),P=Jy(o.clientWidth-(d+b)),y=Jy(o.clientHeight-(v+S)),C=Jy(d),p={rootMargin:-w+"px "+-P+"px "+-y+"px "+-C+"px",threshold:po(0,Ua(1,s))||1};let c=!0;function g(m){const _=m[0].intersectionRatio;if(_!==s){if(!c)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}c=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(g,p)}r.observe(e)}return a(!0),i}function DZ(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=_T(e),v=o||i?[...d?os(d):[],...os(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?LZ(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?pd(e):null;s&&C();function C(){const h=pd(e);y&&(h.x!==y.x||h.y!==y.y||h.width!==y.width||h.height!==y.height)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}const Gb=fd,zF=vZ,FZ=cZ,jZ=mZ,zZ=dZ,VZ=bZ,BZ=fZ,j8=sZ,UZ=hZ,HZ=yZ,VF=(e,t,r)=>{const n=new Map,o={platform:jF,...r},i={...o.platform,_c:n};return lZ(e,t,{...o,platform:i})},WZ=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?j8({element:t.current,padding:r}).fn(o):{}:t?j8({element:t,padding:r}).fn(o):{}}}};var Kb=typeof document<"u"?we.useLayoutEffect:we.useEffect;function vw(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!vw(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!vw(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function z8(e){const t=we.useRef(e);return Kb(()=>{t.current=e}),t}function $Z(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:i,open:a}=e,[l,s]=we.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,v]=we.useState(n);vw(d,n)||v(n);const b=we.useRef(null),S=we.useRef(null),w=we.useRef(l),P=z8(i),y=z8(o),[C,h]=we.useState(null),[p,c]=we.useState(null),g=we.useCallback(E=>{b.current!==E&&(b.current=E,h(E))},[]),m=we.useCallback(E=>{S.current!==E&&(S.current=E,c(E))},[]),_=we.useCallback(()=>{if(!b.current||!S.current)return;const E={placement:t,strategy:r,middleware:d};y.current&&(E.platform=y.current),VF(b.current,S.current,E).then(A=>{const F={...A,isPositioned:!0};T.current&&!vw(w.current,F)&&(w.current=F,Nu.flushSync(()=>{s(F)}))})},[d,t,r,y]);Kb(()=>{a===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,s(E=>({...E,isPositioned:!1})))},[a]);const T=we.useRef(!1);Kb(()=>(T.current=!0,()=>{T.current=!1}),[]),Kb(()=>{if(C&&p){if(P.current)return P.current(C,p,_);_()}},[C,p,_,P]);const k=we.useMemo(()=>({reference:b,floating:S,setReference:g,setFloating:m}),[g,m]),R=we.useMemo(()=>({reference:C,floating:p}),[C,p]);return we.useMemo(()=>({...l,update:_,refs:k,elements:R,reference:g,floating:m}),[l,_,k,R,g,m])}var Mr=typeof document<"u"?we.useLayoutEffect:we.useEffect;let Ox=!1,GZ=0;const V8=()=>"floating-ui-"+GZ++;function KZ(){const[e,t]=we.useState(()=>Ox?V8():void 0);return Mr(()=>{e==null&&t(V8())},[]),we.useEffect(()=>{Ox||(Ox=!0)},[]),e}const qZ=xL.useId,kv=qZ||KZ;function BF(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const UF=we.createContext(null),HF=we.createContext(null),mh=()=>{var e;return((e=we.useContext(UF))==null?void 0:e.id)||null},Od=()=>we.useContext(HF),YZ=e=>{const t=kv(),r=Od(),n=mh(),o=e||n;return Mr(()=>{const i={id:t,parentId:o};return r==null||r.addNode(i),()=>{r==null||r.removeNode(i)}},[r,t,o]),t},XZ=e=>{let{children:t,id:r}=e;const n=mh();return we.createElement(UF.Provider,{value:we.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},QZ=e=>{let{children:t}=e;const r=we.useRef([]),n=we.useCallback(a=>{r.current=[...r.current,a]},[]),o=we.useCallback(a=>{r.current=r.current.filter(l=>l!==a)},[]),i=we.useState(()=>BF())[0];return we.createElement(HF.Provider,{value:we.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:i}),[r,n,o,i])},t)};function Yo(e){return(e==null?void 0:e.ownerDocument)||document}function xT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function WF(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function ST(e){return Yo(e).defaultView||window}function na(e){return e?e instanceof ST(e).Element:!1}function hd(e){return e?e instanceof ST(e).HTMLElement:!1}function ZZ(e){if(typeof ShadowRoot>"u")return!1;const t=ST(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $F(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(xT())||t.test(WF()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function GF(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function s4(){return/apple/i.test(navigator.vendor)}function KF(){return xT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function mw(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function oa(e){const t=we.useRef(e);return Mr(()=>{t.current=e}),t}const B8="data-floating-ui-safe-polygon";function qb(e,t,r){return r&&!mw(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const JZ=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:i=!1,restMs:a=0,move:l=!0}=t===void 0?{}:t;const{open:s,onOpenChange:d,dataRef:v,events:b,elements:{domReference:S,floating:w},refs:P}=e,y=Od(),C=mh(),h=oa(o),p=oa(n),c=we.useRef(),g=we.useRef(),m=we.useRef(),_=we.useRef(),T=we.useRef(!0),k=we.useRef(!1),R=we.useRef(()=>{}),E=we.useCallback(()=>{var B;const H=(B=v.current.openEvent)==null?void 0:B.type;return(H==null?void 0:H.includes("mouse"))&&H!=="mousedown"},[v]);we.useEffect(()=>{if(!r)return;function B(){clearTimeout(g.current),clearTimeout(_.current),T.current=!0}return b.on("dismiss",B),()=>{b.off("dismiss",B)}},[r,b]),we.useEffect(()=>{if(!r||!h.current||!s)return;function B(){E()&&d(!1)}const H=Yo(w).documentElement;return H.addEventListener("mouseleave",B),()=>{H.removeEventListener("mouseleave",B)}},[w,s,d,r,h,v,E]);const A=we.useCallback(function(B){B===void 0&&(B=!0);const H=qb(p.current,"close",c.current);H&&!m.current?(clearTimeout(g.current),g.current=setTimeout(()=>d(!1),H)):B&&(clearTimeout(g.current),d(!1))},[p,d]),F=we.useCallback(()=>{R.current(),m.current=void 0},[]),V=we.useCallback(()=>{if(k.current){const B=Yo(P.floating.current).body;B.style.pointerEvents="",B.removeAttribute(B8),k.current=!1}},[P]);return we.useEffect(()=>{if(!r)return;function B(){return v.current.openEvent?["click","mousedown"].includes(v.current.openEvent.type):!1}function H(Q){if(clearTimeout(g.current),T.current=!1,i&&!mw(c.current)||a>0&&qb(p.current,"open")===0)return;v.current.openEvent=Q;const W=qb(p.current,"open",c.current);W?g.current=setTimeout(()=>{d(!0)},W):d(!0)}function q(Q){if(B())return;R.current();const W=Yo(w);if(clearTimeout(_.current),h.current){clearTimeout(g.current),m.current=h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){V(),F(),A()}});const X=m.current;W.addEventListener("mousemove",X),R.current=()=>{W.removeEventListener("mousemove",X)};return}A()}function ne(Q){B()||h.current==null||h.current({...e,tree:y,x:Q.clientX,y:Q.clientY,onClose(){F(),A()}})(Q)}if(na(S)){const Q=S;return s&&Q.addEventListener("mouseleave",ne),w==null||w.addEventListener("mouseleave",ne),l&&Q.addEventListener("mousemove",H,{once:!0}),Q.addEventListener("mouseenter",H),Q.addEventListener("mouseleave",q),()=>{s&&Q.removeEventListener("mouseleave",ne),w==null||w.removeEventListener("mouseleave",ne),l&&Q.removeEventListener("mousemove",H),Q.removeEventListener("mouseenter",H),Q.removeEventListener("mouseleave",q)}}},[S,w,r,e,i,a,l,A,F,V,d,s,y,p,h,v]),Mr(()=>{var B;if(r&&s&&(B=h.current)!=null&&B.__options.blockPointerEvents&&E()){const ne=Yo(w).body;if(ne.setAttribute(B8,""),ne.style.pointerEvents="none",k.current=!0,na(S)&&w){var H,q;const Q=S,W=y==null||(H=y.nodesRef.current.find(X=>X.id===C))==null||(q=H.context)==null?void 0:q.elements.floating;return W&&(W.style.pointerEvents=""),Q.style.pointerEvents="auto",w.style.pointerEvents="auto",()=>{Q.style.pointerEvents="",w.style.pointerEvents=""}}}},[r,s,C,w,S,y,h,v,E]),Mr(()=>{s||(c.current=void 0,F(),V())},[s,F,V]),we.useEffect(()=>()=>{F(),clearTimeout(g.current),clearTimeout(_.current),V()},[r,F,V]),we.useMemo(()=>{if(!r)return{};function B(H){c.current=H.pointerType}return{reference:{onPointerDown:B,onPointerEnter:B,onMouseMove(){s||a===0||(clearTimeout(_.current),_.current=setTimeout(()=>{T.current||d(!0)},a))}},floating:{onMouseEnter(){clearTimeout(g.current)},onMouseLeave(){b.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),A(!1)}}}},[b,r,a,s,d,A])},qF=we.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),YF=()=>we.useContext(qF),eJ=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,i]=we.useReducer((s,d)=>({...s,...d}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),a=we.useRef(null),l=we.useCallback(s=>{i({currentId:s})},[]);return Mr(()=>{o.currentId?a.current===null?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)},[o.currentId]),we.createElement(qF.Provider,{value:we.useMemo(()=>({...o,setState:i,setCurrentId:l}),[o,i,l])},t)},tJ=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:d}=YF();we.useEffect(()=>{i&&(s({delay:{open:1,close:qb(l,"close")}}),i!==o&&n(!1))},[o,n,s,i,l]),we.useEffect(()=>{function v(){n(!1),s({delay:l,currentId:null})}if(!r&&i===o)if(d){const b=window.setTimeout(v,d);return()=>{clearTimeout(b)}}else v()},[r,s,i,o,n,l,d]),we.useEffect(()=>{r&&a(o)},[r,a,o])};function Ev(){return Ev=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?i():U8=requestAnimationFrame(i)}function rJ(e,t){var r;let n=[],o=(r=e.find(i=>i.id===t))==null?void 0:r.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function Dg(e,t){let r=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var i;return(i=n)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})})||[],r=r.concat(n);return r}function N2(e){return"composedPath"in e?e.composedPath()[0]:e.target}const nJ="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function XF(e){return hd(e)&&e.matches(nJ)}function Xi(e){e.preventDefault(),e.stopPropagation()}const yw=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function QF(e,t){const r=U1(e,yw());t==="prev"&&r.reverse();const n=r.indexOf(gd(Yo(e)));return r.slice(n+1)[0]}function ZF(){return QF(document.body,"next")}function JF(){return QF(document.body,"prev")}function Fg(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Ho(r,n)}function oJ(e){U1(e,yw()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function iJ(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const aJ=xL.useInsertionEffect,lJ=aJ||(e=>e());function yh(e){const t=we.useRef(()=>{});return lJ(()=>{t.current=e}),we.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(s4()&&i("button"),document.addEventListener("keydown",H8),()=>{document.removeEventListener("keydown",H8)}),[]),we.createElement("span",Ev({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:CT,onFocus:a=>{s4()&&KF()&&!sJ(a)?(a.persist(),PT=window.setTimeout(()=>{n(a)},50)):n(a)}}))}),ej=we.createContext(null),tj=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=we.useState(null),i=kv(),a=rj();return Mr(()=>{if(!r)return;const l=t?document.getElementById(t):null;if(l)l.setAttribute("data-floating-ui-portal",""),o(l);else{const s=document.createElement("div");t!==""&&(s.id=t||i),s.setAttribute("data-floating-ui-portal",""),o(s);const d=(a==null?void 0:a.portalNode)||document.body;return d.appendChild(s),()=>{d.removeChild(s)}}},[t,a,i,r]),n},uJ=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const i=tj({id:r,enabled:!n}),[a,l]=we.useState(null),s=we.useRef(null),d=we.useRef(null),v=we.useRef(null),b=we.useRef(null),S=!!a&&!a.modal&&!!(n||i)&&o;return we.useEffect(()=>{if(!i||!o||a!=null&&a.modal)return;function w(P){i&&Fg(P)&&(P.type==="focusin"?iJ:oJ)(i)}return i.addEventListener("focusin",w,!0),i.addEventListener("focusout",w,!0),()=>{i.removeEventListener("focusin",w,!0),i.removeEventListener("focusout",w,!0)}},[i,o,a==null?void 0:a.modal]),we.createElement(ej.Provider,{value:we.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:b,portalNode:i,setFocusManagerState:l}),[o,i])},S&&i&&we.createElement(bw,{"data-type":"outside",ref:s,onFocus:w=>{if(Fg(w,i)){var P;(P=v.current)==null||P.focus()}else{const y=JF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus()}}}),S&&i&&we.createElement("span",{"aria-owns":i.id,style:CT}),n?Nu.createPortal(t,n):i?Nu.createPortal(t,i):null,S&&i&&we.createElement(bw,{"data-type":"outside",ref:d,onFocus:w=>{if(Fg(w,i)){var P;(P=b.current)==null||P.focus()}else{const y=ZF()||(a==null?void 0:a.refs.domReference.current);y==null||y.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1))}}}))},rj=()=>we.useContext(ej),cJ=we.forwardRef(function(t,r){return we.createElement("button",Ev({},t,{type:"button",ref:r,tabIndex:-1,style:CT}))});function dJ(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:i=0,returnFocus:a=!0,modal:l=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e;const{refs:v,nodeId:b,onOpenChange:S,events:w,dataRef:P,elements:{domReference:y,floating:C}}=t,h=oa(n),p=Od(),c=rj(),[g,m]=we.useState(null),_=typeof i=="number"&&i<0,T=we.useRef(null),k=we.useRef(null),R=we.useRef(!1),E=we.useRef(null),A=we.useRef(!1),F=c!=null,V=y&&y.getAttribute("role")==="combobox"&&XF(y),B=we.useCallback(function(Q){return Q===void 0&&(Q=C),Q?U1(Q,yw()):[]},[C]),H=we.useCallback(Q=>{const W=B(Q);return h.current.map(X=>y&&X==="reference"?y:C&&X==="floating"?C:W).filter(Boolean).flat()},[y,C,h,B]);we.useEffect(()=>{if(!l)return;function Q(X){if(X.key==="Tab"){B().length===0&&!V&&Xi(X);const re=H(),Z=N2(X);h.current[0]==="reference"&&Z===y&&(Xi(X),X.shiftKey?Ys(re[re.length-1]):Ys(re[1])),h.current[1]==="floating"&&Z===C&&X.shiftKey&&(Xi(X),Ys(re[0]))}}const W=Yo(C);return W.addEventListener("keydown",Q),()=>{W.removeEventListener("keydown",Q)}},[y,C,l,h,v,V,B,H]),we.useEffect(()=>{if(!d)return;function Q(){A.current=!0,setTimeout(()=>{A.current=!1})}function W(X){const re=X.relatedTarget,Z=!(Ho(y,re)||Ho(C,re)||Ho(re,C)||Ho(c==null?void 0:c.portalNode,re)||re!=null&&re.hasAttribute("data-floating-ui-focus-guard")||p&&(Dg(p.nodesRef.current,b).find(oe=>{var fe,ge;return Ho((fe=oe.context)==null?void 0:fe.elements.floating,re)||Ho((ge=oe.context)==null?void 0:ge.elements.domReference,re)})||rJ(p.nodesRef.current,b).find(oe=>{var fe,ge;return((fe=oe.context)==null?void 0:fe.elements.floating)===re||((ge=oe.context)==null?void 0:ge.elements.domReference)===re})));re&&Z&&!A.current&&re!==E.current&&(R.current=!0,setTimeout(()=>S(!1)))}if(C&&hd(y))return y.addEventListener("focusout",W),y.addEventListener("pointerdown",Q),!l&&C.addEventListener("focusout",W),()=>{y.removeEventListener("focusout",W),y.removeEventListener("pointerdown",Q),!l&&C.removeEventListener("focusout",W)}},[y,C,l,b,p,c,S,d]),we.useEffect(()=>{var Q;const W=Array.from((c==null||(Q=c.portalNode)==null?void 0:Q.querySelectorAll("[data-floating-ui-portal]"))||[]);function X(){return[T.current,k.current].filter(Boolean)}if(C&&l){const re=[C,...W,...X()],Z=IY(h.current.includes("reference")||V?re.concat(y||[]):re);return()=>{Z()}}},[y,C,l,h,c,V]),we.useEffect(()=>{if(l&&!o&&C){const Q=[],W=yw(),X=U1(Yo(C).body,W),re=H(),Z=X.filter(oe=>!re.includes(oe));return Z.forEach((oe,fe)=>{Q[fe]=oe.getAttribute("tabindex"),oe.setAttribute("tabindex","-1")}),()=>{Z.forEach((oe,fe)=>{const ge=Q[fe];ge==null?oe.removeAttribute("tabindex"):oe.setAttribute("tabindex",ge)})}}},[C,l,o,H]),Mr(()=>{if(!C)return;const Q=Yo(C);let W=a,X=!1;const re=gd(Q),Z=P.current;E.current=re;const oe=H(C),fe=(typeof i=="number"?oe[i]:i.current)||C;!_&&Ys(fe,{preventScroll:fe===C});function ge(ce){if(ce.type==="escapeKey"&&v.domReference.current&&(E.current=v.domReference.current),["referencePress","escapeKey"].includes(ce.type))return;const J=ce.data.returnFocus;typeof J=="object"?(W=!0,X=J.preventScroll):W=J}return w.on("dismiss",ge),()=>{if(w.off("dismiss",ge),Ho(C,gd(Q))&&v.domReference.current&&(E.current=v.domReference.current),W&&hd(E.current)&&!R.current)if(!v.domReference.current||A.current)Ys(E.current,{cancelPrevious:!1,preventScroll:X});else{var ce;Z.__syncReturnFocus=!0,(ce=E.current)==null||ce.focus({preventScroll:X}),setTimeout(()=>{delete Z.__syncReturnFocus})}}},[C,H,i,a,P,v,w,_]),Mr(()=>{if(c)return c.setFocusManagerState({...t,modal:l,closeOnFocusOut:d}),()=>{c.setFocusManagerState(null)}},[c,l,d,t]),Mr(()=>{if(_||!C)return;function Q(){m(B().length)}if(Q(),typeof MutationObserver=="function"){const W=new MutationObserver(Q);return W.observe(C,{childList:!0,subtree:!0}),()=>{W.disconnect()}}},[C,B,_,v]);const q=o&&(F||l)&&!V;function ne(Q){return s&&l?we.createElement(cJ,{ref:Q==="start"?T:k,onClick:()=>S(!1)},typeof s=="string"?s:"Dismiss"):null}return we.createElement(we.Fragment,null,q&&we.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.beforeInsideRef,onFocus:Q=>{if(l){const X=H();Ys(n[0]==="reference"?X[0]:X[X.length-1])}else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!1,Fg(Q,c.portalNode)){const X=ZF()||y;X==null||X.focus()}else{var W;(W=c.beforeOutsideRef.current)==null||W.focus()}}}),V?null:ne("start"),we.cloneElement(r,g===0||n.includes("floating")?{tabIndex:0}:{}),ne("end"),q&&we.createElement(bw,{"data-type":"inside",ref:c==null?void 0:c.afterInsideRef,onFocus:Q=>{if(l)Ys(H()[0]);else if(c!=null&&c.preserveTabOrder&&c.portalNode)if(R.current=!0,Fg(Q,c.portalNode)){const X=JF()||y;X==null||X.focus()}else{var W;(W=c.afterOutsideRef.current)==null||W.focus()}}}))}const eb="data-floating-ui-scroll-lock",fJ=we.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Mr(()=>{var i,a;if(!n||document.body.hasAttribute(eb))return;document.body.setAttribute(eb,"");const d=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",v=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(xT()))return Object.assign(document.body.style,{overflow:"hidden",[d]:v+"px"}),()=>{document.body.removeAttribute(eb),Object.assign(document.body.style,{overflow:"",[d]:""})};const b=((i=window.visualViewport)==null?void 0:i.offsetLeft)||0,S=((a=window.visualViewport)==null?void 0:a.offsetTop)||0,w=window.pageXOffset,P=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(P-Math.floor(S))+"px",left:-(w-Math.floor(b))+"px",right:"0",[d]:v+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[d]:""}),document.body.removeAttribute(eb),window.scrollTo(w,P)}},[n]),we.createElement("div",Ev({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function W8(e){return hd(e.target)&&e.target.tagName==="BUTTON"}function $8(e){return XF(e)}const pJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:d=!1,keyboardHandlers:v=!0}=t===void 0?{}:t;const b=we.useRef();return we.useMemo(()=>a?{reference:{onPointerDown(S){b.current=S.pointerType},onMouseDown(S){S.button===0&&(mw(b.current,!0)&&d||l!=="click"&&(r?s&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(S.preventDefault(),n(!0)),o.current.openEvent=S.nativeEvent))},onClick(S){if(!o.current.__syncReturnFocus){if(l==="mousedown"&&b.current){b.current=void 0;return}mw(b.current,!0)&&d||(r?s&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=S.nativeEvent)}},onKeyDown(S){b.current=void 0,v&&(W8(S)||(S.key===" "&&!$8(i)&&S.preventDefault(),S.key==="Enter"&&(r?s&&n(!1):n(!0))))},onKeyUp(S){v&&(W8(S)||$8(i)||S.key===" "&&(r?s&&n(!1):n(!0)))}}}:{},[a,o,l,d,v,i,s,r,n])};function Yb(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const hJ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},gJ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},vJ=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},mJ=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:d}=e,{enabled:v=!0,escapeKey:b=!0,outsidePress:S=!0,outsidePressEvent:w="pointerdown",referencePress:P=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:h=!0}=t===void 0?{}:t;const p=Od(),c=mh()!=null,g=yh(typeof S=="function"?S:()=>!1),m=typeof S=="function"?g:S,_=we.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:k}=vJ(h);return we.useEffect(()=>{if(!r||!v)return;d.current.__escapeKeyBubbles=T,d.current.__outsidePressBubbles=k;function R(B){if(B.key==="Escape"){const H=p?Dg(p.nodesRef.current,i):[];if(H.length>0){let q=!0;if(H.forEach(ne=>{var Q;if((Q=ne.context)!=null&&Q.open&&!ne.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function E(B){const H=_.current;if(_.current=!1,H||typeof m=="function"&&!m(B))return;const q=N2(B);if(hd(q)&&s){const W=s.ownerDocument.defaultView||window,X=q.scrollWidth>q.clientWidth,re=q.scrollHeight>q.clientHeight;let Z=re&&B.offsetX>q.clientWidth;if(re&&W.getComputedStyle(q).direction==="rtl"&&(Z=B.offsetX<=q.offsetWidth-q.clientWidth),Z||X&&B.offsetY>q.clientHeight)return}const ne=p&&Dg(p.nodesRef.current,i).some(W=>{var X;return Yb(B,(X=W.context)==null?void 0:X.elements.floating)});if(Yb(B,s)||Yb(B,l)||ne)return;const Q=p?Dg(p.nodesRef.current,i):[];if(Q.length>0){let W=!0;if(Q.forEach(X=>{var re;if((re=X.context)!=null&&re.open&&!X.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:c?{preventScroll:!0}:$F(B)||GF(B)}}),n(!1)}function A(){n(!1)}const F=Yo(s);b&&F.addEventListener("keydown",R),m&&F.addEventListener(w,E);let V=[];return C&&(na(l)&&(V=os(l)),na(s)&&(V=V.concat(os(s))),!na(a)&&a&&a.contextElement&&(V=V.concat(os(a.contextElement)))),V=V.filter(B=>{var H;return B!==((H=F.defaultView)==null?void 0:H.visualViewport)}),V.forEach(B=>{B.addEventListener("scroll",A,{passive:!0})}),()=>{b&&F.removeEventListener("keydown",R),m&&F.removeEventListener(w,E),V.forEach(B=>{B.removeEventListener("scroll",A)})}},[d,s,l,a,b,m,w,o,p,i,r,n,C,v,T,k,c]),we.useEffect(()=>{_.current=!1},[m,w]),we.useMemo(()=>v?{reference:{[hJ[y]]:()=>{P&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[gJ[w]]:()=>{_.current=!0}}}:{},[v,o,P,w,y,n])},yJ=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:d=!0,keyboardOnly:v=!0}=t===void 0?{}:t;const b=we.useRef(""),S=we.useRef(!1),w=we.useRef();return we.useEffect(()=>{if(!d)return;const y=Yo(l).defaultView||window;function C(){!r&&hd(s)&&s===gd(Yo(s))&&(S.current=!0)}return y.addEventListener("blur",C),()=>{y.removeEventListener("blur",C)}},[l,s,r,d]),we.useEffect(()=>{if(!d)return;function P(y){(y.type==="referencePress"||y.type==="escapeKey")&&(S.current=!0)}return i.on("dismiss",P),()=>{i.off("dismiss",P)}},[i,d]),we.useEffect(()=>()=>{clearTimeout(w.current)},[]),we.useMemo(()=>d?{reference:{onPointerDown(P){let{pointerType:y}=P;b.current=y,S.current=!!(y&&v)},onMouseLeave(){S.current=!1},onFocus(P){var y;S.current||P.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&Yb(o.current.openEvent,s)||(o.current.openEvent=P.nativeEvent,n(!0))},onBlur(P){S.current=!1;const y=P.relatedTarget,C=na(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";w.current=setTimeout(()=>{Ho(a.floating.current,y)||Ho(s,y)||C||n(!1)})}}}:{},[d,v,s,a,o,n])};let G8=!1;const TT="ArrowUp",A2="ArrowDown",Jp="ArrowLeft",im="ArrowRight";function tb(e,t,r){return Math.floor(e/t)!==r}function Y0(e,t){return t<0||t>=e.current.length}function uo(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const a=e.current;let l=r;do{var s,d;l=l+(n?-i:i)}while(l>=0&&l<=a.length-1&&(o?o.includes(l):a[l]==null||(s=a[l])!=null&&s.hasAttribute("disabled")||((d=a[l])==null?void 0:d.getAttribute("aria-disabled"))==="true"));return l}function I2(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function K8(e,t){return I2(t,e===TT||e===A2,e===Jp||e===im)}function kx(e,t,r){return I2(t,e===A2,r?e===Jp:e===im)||e==="Enter"||e==" "||e===""}function bJ(e,t,r){return I2(t,r?e===Jp:e===im,e===A2)}function wJ(e,t,r){return I2(t,r?e===im:e===Jp,e===TT)}function Ex(e,t){return uo(e,{disabledIndices:t})}function q8(e,t){return uo(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const _J=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:i}}=e,{listRef:a,activeIndex:l,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:b=!1,loop:S=!1,nested:w=!1,rtl:P=!1,virtual:y=!1,focusItemOnOpen:C="auto",focusItemOnHover:h=!0,openOnArrowKeyDown:p=!0,disabledIndices:c=void 0,orientation:g="vertical",cols:m=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const T=mh(),k=Od(),R=yh(s),E=we.useRef(C),A=we.useRef(v??-1),F=we.useRef(null),V=we.useRef(!0),B=we.useRef(R),H=we.useRef(r),q=we.useRef(!1),ne=we.useRef(!1),Q=oa(c),W=oa(r),X=oa(_),[re,Z]=we.useState(),oe=we.useCallback(function(ce,J,ie){ie===void 0&&(ie=!1);const ue=ce.current[J.current];y?Z(ue==null?void 0:ue.id):Ys(ue,{preventScroll:!0,sync:KF()&&s4()?G8||q.current:!1}),requestAnimationFrame(()=>{const Se=X.current;Se&&ue&&(ie||!V.current)&&(ue.scrollIntoView==null||ue.scrollIntoView(typeof Se=="boolean"?{block:"nearest",inline:"nearest"}:Se))})},[y,X]);Mr(()=>{document.createElement("div").focus({get preventScroll(){return G8=!0,!1}})},[]),Mr(()=>{d&&(r?E.current&&v!=null&&(ne.current=!0,R(v)):H.current&&(A.current=-1,B.current(null)))},[d,r,v,R]),Mr(()=>{if(d&&r)if(l==null){if(q.current=!1,v!=null)return;H.current&&(A.current=-1,oe(a,A)),!H.current&&E.current&&(F.current!=null||E.current===!0&&F.current==null)&&(A.current=F.current==null||kx(F.current,g,P)||w?Ex(a,Q.current):q8(a,Q.current),R(A.current))}else Y0(a,l)||(A.current=l,oe(a,A,ne.current),ne.current=!1)},[d,r,l,v,w,a,g,P,R,oe,Q]),Mr(()=>{if(d&&H.current&&!r){var ce,J;const ie=k==null||(ce=k.nodesRef.current.find(ue=>ue.id===T))==null||(J=ce.context)==null?void 0:J.elements.floating;ie&&!Ho(ie,gd(Yo(ie)))&&ie.focus({preventScroll:!0})}},[d,r,k,T]),Mr(()=>{F.current=null,B.current=R,H.current=r});const fe=l!=null,ge=we.useMemo(()=>{function ce(ie){if(!r)return;const ue=a.current.indexOf(ie);ue!==-1&&R(ue)}return{onFocus(ie){let{currentTarget:ue}=ie;ce(ue)},onClick:ie=>{let{currentTarget:ue}=ie;return ue.focus({preventScroll:!0})},...h&&{onMouseMove(ie){let{currentTarget:ue}=ie;ce(ue)},onPointerLeave(){if(V.current&&(A.current=-1,oe(a,A),Nu.flushSync(()=>R(null)),!y)){var ie;(ie=o.floating.current)==null||ie.focus({preventScroll:!0})}}}}},[r,o,oe,h,a,R,y]);return we.useMemo(()=>{if(!d)return{};const ce=Q.current;function J(Ce){if(V.current=!1,q.current=!0,!W.current&&Ce.currentTarget===o.floating.current)return;if(w&&wJ(Ce.key,g,P)){Xi(Ce),n(!1),hd(i)&&i.focus();return}const Me=A.current,Le=Ex(a,ce),Re=q8(a,ce);if(Ce.key==="Home"&&(A.current=Le,R(A.current)),Ce.key==="End"&&(A.current=Re,R(A.current)),m>1){const be=A.current;if(Ce.key===TT){if(Xi(Ce),be===-1)A.current=Re;else if(A.current=uo(a,{startingIndex:be,amount:m,decrement:!0,disabledIndices:ce}),S&&(be-mke?Ye:Ye-m}Y0(a,A.current)&&(A.current=be),R(A.current)}if(Ce.key===A2&&(Xi(Ce),be===-1?A.current=Le:(A.current=uo(a,{startingIndex:be,amount:m,disabledIndices:ce}),S&&be+m>Re&&(A.current=uo(a,{startingIndex:be%m-m,amount:m,disabledIndices:ce}))),Y0(a,A.current)&&(A.current=be),R(A.current)),g==="both"){const ke=Math.floor(be/m);Ce.key===im&&(Xi(Ce),be%m!==m-1?(A.current=uo(a,{startingIndex:be,disabledIndices:ce}),S&&tb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:be-be%m-1,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:be-be%m-1,disabledIndices:ce})),tb(A.current,m,ke)&&(A.current=be)),Ce.key===Jp&&(Xi(Ce),be%m!==0?(A.current=uo(a,{startingIndex:be,disabledIndices:ce,decrement:!0}),S&&tb(A.current,m,ke)&&(A.current=uo(a,{startingIndex:be+(m-be%m),decrement:!0,disabledIndices:ce}))):S&&(A.current=uo(a,{startingIndex:be+(m-be%m),decrement:!0,disabledIndices:ce})),tb(A.current,m,ke)&&(A.current=be));const ze=Math.floor(Re/m)===ke;Y0(a,A.current)&&(S&&ze?A.current=Ce.key===Jp?Re:uo(a,{startingIndex:be-be%m-1,disabledIndices:ce}):A.current=be),R(A.current);return}}if(K8(Ce.key,g)){if(Xi(Ce),r&&!y&&gd(Ce.currentTarget.ownerDocument)===Ce.currentTarget){A.current=kx(Ce.key,g,P)?Le:Re,R(A.current);return}kx(Ce.key,g,P)?S?A.current=Me>=Re?b&&Me!==a.current.length?-1:Le:uo(a,{startingIndex:Me,disabledIndices:ce}):A.current=Math.min(Re,uo(a,{startingIndex:Me,disabledIndices:ce})):S?A.current=Me<=Le?b&&Me!==-1?a.current.length:Re:uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce}):A.current=Math.max(Le,uo(a,{startingIndex:Me,decrement:!0,disabledIndices:ce})),Y0(a,A.current)?R(null):R(A.current)}}function ie(Ce){C==="auto"&&$F(Ce.nativeEvent)&&(E.current=!0)}function ue(Ce){E.current=C,C==="auto"&&GF(Ce.nativeEvent)&&(E.current=!0)}const Se=y&&r&&fe&&{"aria-activedescendant":re};return{reference:{...Se,onKeyDown(Ce){V.current=!1;const Me=Ce.key.indexOf("Arrow")===0;if(y&&r)return J(Ce);if(!r&&!p&&Me)return;if((Me||Ce.key==="Enter"||Ce.key===" "||Ce.key==="")&&(F.current=Ce.key),w){bJ(Ce.key,g,P)&&(Xi(Ce),r?(A.current=Ex(a,ce),R(A.current)):n(!0));return}K8(Ce.key,g)&&(v!=null&&(A.current=v),Xi(Ce),!r&&p?n(!0):J(Ce),r&&R(A.current))},onFocus(){r&&R(null)},onPointerDown:ue,onMouseDown:ie,onClick:ie},floating:{"aria-orientation":g==="both"?void 0:g,...Se,onKeyDown:J,onPointerMove(){V.current=!0}},item:ge}},[i,o,re,Q,W,a,d,g,P,y,r,fe,w,v,p,b,m,S,C,R,n,ge])};function xJ(e){return we.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const SJ=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const i=kv(),a=kv();return we.useMemo(()=>{const l={id:i,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?i:void 0},floating:l}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:a}},floating:{...l,...o==="menu"&&{"aria-labelledby":a}}}:{}},[n,o,r,i,a])},Y8=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function CJ(e,t){const[r,n]=we.useState(e);return e&&!r&&n(!0),we.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function nj(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const a=(typeof o=="number"?o:o.close)||0,[l,s]=we.useState(!1),[d,v]=we.useState("unmounted"),b=CJ(r,a);return Mr(()=>{l&&!b&&v("unmounted")},[l,b]),Mr(()=>{if(n)if(r){v("initial");const S=requestAnimationFrame(()=>{v("open")});return()=>{cancelAnimationFrame(S)}}else s(!0),v("close")},[r,n]),{isMounted:b,status:d}}function PJ(e,t){let{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t===void 0?{}:t;const l=e.placement,s=l.split("-")[0],[d,v]=we.useState({}),{isMounted:b,status:S}=nj(e,{duration:a}),w=oa(r),P=oa(n),y=oa(o),C=oa(i),h=typeof a=="number",p=(h?a:a.open)||0,c=(h?a:a.close)||0;return Mr(()=>{const g={side:s,placement:l},m=w.current,_=y.current,T=P.current,k=C.current,R=typeof m=="function"?m(g):m,E=typeof _=="function"?_(g):_,A=typeof k=="function"?k(g):k,F=(typeof T=="function"?T(g):T)||Object.keys(R).reduce((V,B)=>(V[B]="",V),{});if(S==="initial"&&v(V=>({transitionProperty:V.transitionProperty,...A,...R})),S==="open"&&v({transitionProperty:Object.keys(F).map(Y8).join(","),transitionDuration:p+"ms",...A,...F}),S==="close"){const V=E||R;v({transitionProperty:Object.keys(V).map(Y8).join(","),transitionDuration:c+"ms",...A,...V})}},[s,l,c,y,w,P,C,p,S]),{isMounted:b,styles:d}}const TJ=function(e,t){var r;let{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l=()=>{},enabled:s=!0,findMatch:d=null,resetMs:v=1e3,ignoreKeys:b=[],selectedIndex:S=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const w=we.useRef(),P=we.useRef(""),y=we.useRef((r=S??a)!=null?r:-1),C=we.useRef(null),h=yh(l),p=oa(d),c=oa(b);return Mr(()=>{n&&(clearTimeout(w.current),C.current=null,P.current="")},[n]),Mr(()=>{if(n&&P.current===""){var g;y.current=(g=S??a)!=null?g:-1}},[n,S,a]),we.useMemo(()=>{if(!s)return{};function g(m){const _=N2(m.nativeEvent);if(na(_)&&(gd(Yo(_))!==m.currentTarget&&_.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==m.currentTarget))return;P.current.length>0&&P.current[0]!==" "&&(o.current.typing=!0,m.key===" "&&Xi(m));const T=i.current;if(T==null||c.current.includes(m.key)||m.key.length!==1||m.ctrlKey||m.metaKey||m.altKey)return;T.every(V=>{var B,H;return V?((B=V[0])==null?void 0:B.toLocaleLowerCase())!==((H=V[1])==null?void 0:H.toLocaleLowerCase()):!0})&&P.current===m.key&&(P.current="",y.current=C.current),P.current+=m.key,clearTimeout(w.current),w.current=setTimeout(()=>{P.current="",y.current=C.current,o.current.typing=!1},v);const R=y.current,E=[...T.slice((R||0)+1),...T.slice(0,(R||0)+1)],A=p.current?p.current(E,P.current):E.find(V=>(V==null?void 0:V.toLocaleLowerCase().indexOf(P.current.toLocaleLowerCase()))===0),F=A?T.indexOf(A):-1;F!==-1&&(h(F),C.current=F)}return{reference:{onKeyDown:g},floating:{onKeyDown:g}}},[s,o,i,v,c,p,h])};function X8(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const OJ=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:d,...v}=e,{rects:b,elements:{floating:S}}=t,w=r.current[a];if(!w)return{};const P={...t,...await zF(-w.offsetTop-b.reference.height/2-w.offsetHeight/2-i).fn(t)},y=(d==null?void 0:d.current)||S,C=await Gb(X8(P,y.scrollHeight),v),h=await Gb(P,{...v,elementContext:"reference"}),p=Math.max(0,C.top),c=P.y+p,g=Math.max(0,y.scrollHeight-p-Math.max(0,C.bottom));return y.style.maxHeight=g+"px",y.scrollTop=p,o&&(y.offsetHeight=-s||h.bottom>=-s?Nu.flushSync(()=>o(!0)):Nu.flushSync(()=>o(!1))),n&&(n.current=await Gb(X8({...P,y:c},y.offsetHeight),v)),{y:c}}}),kJ=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t;const s=yh(l),d=we.useRef(!1),v=we.useRef(null),b=we.useRef(null);return we.useEffect(()=>{if(!o)return;function S(P){if(P.ctrlKey||!w||i.current==null)return;const y=P.deltaY,C=i.current.top>=-.5,h=i.current.bottom>=-.5,p=w.scrollHeight-w.clientHeight,c=y<0?-1:1,g=y<0?"max":"min";w.scrollHeight<=w.clientHeight||(!C&&y>0||!h&&y<0?(P.preventDefault(),Nu.flushSync(()=>{s(m=>m+Math[g](y,p*c))})):/firefox/i.test(WF())&&(w.scrollTop+=y))}const w=(a==null?void 0:a.current)||n.floating;if(r&&w)return w.addEventListener("wheel",S),requestAnimationFrame(()=>{v.current=w.scrollTop,i.current!=null&&(b.current={...i.current})}),()=>{v.current=null,b.current=null,w.removeEventListener("wheel",S)}},[o,r,n.floating,i,a,s]),we.useMemo(()=>o?{floating:{onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const S=(a==null?void 0:a.current)||n.floating;if(!(!i.current||!S||!d.current)){if(v.current!==null){const w=S.scrollTop-v.current;(i.current.bottom<-.5&&w<-1||i.current.top<-.5&&w>1)&&Nu.flushSync(()=>s(P=>P+w))}requestAnimationFrame(()=>{v.current=S.scrollTop})}}}}:{},[o,i,n.floating,a,s])};function EJ(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a=n!=b>=n&&r<=(v-s)*(n-d)/(b-d)+s&&(o=!o)}return o}function MJ(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function RJ(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,i=!1,a=!1;const l=s=>{let{x:d,y:v,placement:b,elements:S,onClose:w,nodeId:P,tree:y}=s;return function(h){function p(){clearTimeout(o),w()}if(clearTimeout(o),!S.domReference||!S.floating||b==null||d==null||v==null)return;const{clientX:c,clientY:g}=h,m=[c,g],_=N2(h),T=h.type==="mouseleave",k=Ho(S.floating,_),R=Ho(S.domReference,_),E=S.domReference.getBoundingClientRect(),A=S.floating.getBoundingClientRect(),F=b.split("-")[0],V=d>A.right-A.width/2,B=v>A.bottom-A.height/2,H=MJ(m,E);if(k&&(a=!0),R&&(a=!1),R&&!T){a=!0;return}if(T&&na(h.relatedTarget)&&Ho(S.floating,h.relatedTarget)||y&&Dg(y.nodesRef.current,P).some(W=>{let{context:X}=W;return X==null?void 0:X.open}))return;if(F==="top"&&v>=E.bottom-1||F==="bottom"&&v<=E.top+1||F==="left"&&d>=E.right-1||F==="right"&&d<=E.left+1)return p();let q=[];switch(F){case"top":q=[[A.left,E.top+1],[A.left,A.bottom-1],[A.right,A.bottom-1],[A.right,E.top+1]],i=c>=A.left&&c<=A.right&&g>=A.top&&g<=E.top+1;break;case"bottom":q=[[A.left,A.top+1],[A.left,E.bottom-1],[A.right,E.bottom-1],[A.right,A.top+1]],i=c>=A.left&&c<=A.right&&g>=E.bottom-1&&g<=A.bottom;break;case"left":q=[[A.right-1,A.bottom],[A.right-1,A.top],[E.left+1,A.top],[E.left+1,A.bottom]],i=c>=A.left&&c<=E.left+1&&g>=A.top&&g<=A.bottom;break;case"right":q=[[E.right-1,A.bottom],[E.right-1,A.top],[A.left+1,A.top],[A.left+1,A.bottom]],i=c>=E.right-1&&c<=A.right&&g>=A.top&&g<=A.bottom;break}function ne(W){let[X,re]=W;const Z=A.width>E.width,oe=A.height>E.height;switch(F){case"top":{const fe=[Z?X+r/2:V?X+r*4:X-r*4,re+r+1],ge=[Z?X-r/2:V?X+r*4:X-r*4,re+r+1],ce=[[A.left,V||Z?A.bottom-r:A.top],[A.right,V?Z?A.bottom-r:A.top:A.bottom-r]];return[fe,ge,...ce]}case"bottom":{const fe=[Z?X+r/2:V?X+r*4:X-r*4,re-r],ge=[Z?X-r/2:V?X+r*4:X-r*4,re-r],ce=[[A.left,V||Z?A.top+r:A.bottom],[A.right,V?Z?A.top+r:A.bottom:A.top+r]];return[fe,ge,...ce]}case"left":{const fe=[X+r+1,oe?re+r/2:B?re+r*4:re-r*4],ge=[X+r+1,oe?re-r/2:B?re+r*4:re-r*4];return[...[[B||oe?A.right-r:A.left,A.top],[B?oe?A.right-r:A.left:A.right-r,A.bottom]],fe,ge]}case"right":{const fe=[X-r,oe?re+r/2:B?re+r*4:re-r*4],ge=[X-r,oe?re-r/2:B?re+r*4:re-r*4],ce=[[B||oe?A.left+r:A.right,A.top],[B?oe?A.left+r:A.right:A.left+r,A.bottom]];return[fe,ge,...ce]}}}const Q=i?q:ne([d,v]);if(!i){if(a&&!H)return p();EJ([c,g],Q)?t&&!a&&(o=setTimeout(p,t)):p()}}};return l.__options={blockPointerEvents:n},l}function NJ(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=$Z(e),i=Od(),a=we.useRef(null),l=we.useRef({}),s=we.useState(()=>BF())[0],[d,v]=we.useState(null),b=we.useCallback(h=>{const p=na(h)?{getBoundingClientRect:()=>h.getBoundingClientRect(),contextElement:h}:h;o.refs.setReference(p)},[o.refs]),S=we.useCallback(h=>{(na(h)||h===null)&&(a.current=h,v(h)),(na(o.refs.reference.current)||o.refs.reference.current===null||h!==null&&!na(h))&&o.refs.setReference(h)},[o.refs]),w=we.useMemo(()=>({...o.refs,setReference:S,setPositionReference:b,domReference:a}),[o.refs,S,b]),P=we.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=yh(r),C=we.useMemo(()=>({...o,refs:w,elements:P,dataRef:l,nodeId:n,events:s,open:t,onOpenChange:y}),[o,n,s,t,y,w,P]);return Mr(()=>{const h=i==null?void 0:i.nodesRef.current.find(p=>p.id===n);h&&(h.context=C)}),we.useMemo(()=>({...o,context:C,refs:w,reference:S,positionReference:b}),[o,w,C,S,b])}function Mx(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(a=>{let[l,s]=a;if(l.indexOf("on")===0){if(n.has(l)||n.set(l,[]),typeof s=="function"){var d;(d=n.get(l))==null||d.push(s),o[l]=function(){for(var v,b=arguments.length,S=new Array(b),w=0;wP(...S))}}}else o[l]=s}),o),{})}}const AJ=function(e){e===void 0&&(e=[]);const t=e,r=we.useCallback(i=>Mx(i,e,"reference"),t),n=we.useCallback(i=>Mx(i,e,"floating"),t),o=we.useCallback(i=>Mx(i,e,"item"),e.map(i=>i==null?void 0:i.item));return we.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},IJ=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:eJ,FloatingFocusManager:dJ,FloatingNode:XZ,FloatingOverlay:fJ,FloatingPortal:uJ,FloatingTree:QZ,arrow:WZ,autoPlacement:FZ,autoUpdate:DZ,computePosition:VF,detectOverflow:Gb,flip:zZ,getOverflowAncestors:os,hide:BZ,inline:UZ,inner:OJ,limitShift:HZ,offset:zF,platform:jF,safePolygon:RJ,shift:jZ,size:VZ,useClick:pJ,useDelayGroup:tJ,useDelayGroupContext:YF,useDismiss:mJ,useFloating:NJ,useFloatingNodeId:YZ,useFloatingParentNodeId:mh,useFloatingPortalNode:tj,useFloatingTree:Od,useFocus:yJ,useHover:JZ,useId:kv,useInnerOffset:kJ,useInteractions:AJ,useListNavigation:_J,useMergeRefs:xJ,useRole:SJ,useTransitionStatus:nj,useTransitionStyles:PJ,useTypeahead:TJ},Symbol.toStringTag,{value:"Module"})),wn=Dv(IJ);var oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogHeader:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=uh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogHeader,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogHeader";var w=S})(oj);var ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{DialogBody:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=uh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.divider,p=y.className,c=y.children,g=b(y,["divider","className","children"]),m=(0,a.useTheme)().dialogBody,_=m.defaultProps,T=m.styles.base;p=(0,o.twMerge)(_.className||"",p);var k=(0,o.twMerge)((0,n.default)((0,i.default)(T.initial),s({},(0,i.default)(T.divider),h)),p);return r.default.createElement("div",d({},g,{ref:C,className:k}),c)});w.propTypes={divider:l.propTypesDivider,className:l.propTypesClassName,children:l.propTypesChildren},w.displayName="MaterialTailwind.DialogBody";var P=w})(ij);var aj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{DialogFooter:function(){return S},default:function(){return w}});var r=d(Y),n=d(pt),o=Je,i=d(et),a=Xe,l=uh;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,a.useTheme)().dialogFooter,g=c.defaultProps,m=c.styles.base;C=(0,o.twMerge)(g.className||"",C);var _=(0,o.twMerge)((0,n.default)((0,i.default)(m)),C);return r.default.createElement("div",s({},p,{ref:y,className:_}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.DialogFooter";var w=S})(aj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return w.DialogHeader},DialogBody:function(){return P.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return R}});var r=p(Y),n=p(ot),o=wn,i=An,a=p(pt),l=p(Xn),s=Je,d=p(Sr),v=p(et),b=Xe,S=uh,w=oj,P=ij,y=aj;function C(E,A,F){return A in E?Object.defineProperty(E,A,{value:F,enumerable:!0,configurable:!0,writable:!0}):E[A]=F,E}function h(){return h=Object.assign||function(E){for(var A=1;A=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function T(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}var k=r.default.forwardRef(function(E,A){var F=E.open,V=E.handler,B=E.size,H=E.dismiss,q=E.animate,ne=E.className,Q=E.children,W=_(E,["open","handler","size","dismiss","animate","className","children"]),X=(0,b.useTheme)().dialog,re=X.defaultProps,Z=X.valid,oe=X.styles,fe=oe.base,ge=oe.sizes;V=V??void 0,B=B??re.size,H=H??re.dismiss,q=q??re.animate,ne=(0,s.twMerge)(re.className||"",ne);var ce=(0,a.default)((0,v.default)(fe.backdrop)),J=(0,s.twMerge)((0,a.default)((0,v.default)(fe.container),(0,v.default)(ge[(0,d.default)(Z.sizes,B,"md")])),ne),ie={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ue={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},Se=(0,l.default)(ie,q),Ce=(0,o.useFloating)({open:F,onOpenChange:V}),Me=Ce.floating,Le=Ce.context,Re=(0,o.useId)(),be="".concat(Re,"-label"),ke="".concat(Re,"-description"),ze=(0,o.useInteractions)([(0,o.useClick)(Le),(0,o.useRole)(Le),(0,o.useDismiss)(Le,H)]).getFloatingProps,Ye=(0,o.useMergeRefs)([A,Me]),Mt=i.AnimatePresence;return r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(Mt,null,F&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Le},r.default.createElement(i.m.div,{className:B==="xxl"?"":ce,initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:ue,transition:{duration:.2}},r.default.createElement(i.m.div,h({},ze(m(c({},W),{ref:Ye,className:J,"aria-labelledby":be,"aria-describedby":ke})),{initial:"unmount",exit:"unmount",animate:F?"mount":"unmount",variants:Se}),Q)))))))});k.propTypes={open:S.propTypesOpen,handler:S.propTypesHandler,size:n.default.oneOf(S.propTypesSize),dismiss:S.propTypesDismiss,animate:S.propTypesAnimate,className:S.propTypesClassName,children:S.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var R=Object.assign(k,{Header:w.DialogHeader,Body:P.DialogBody,Footer:y.DialogFooter})})(pL);var lj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Input:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Wv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.icon,E=h.containerProps,A=h.labelProps,F=h.className,V=h.shrink,B=h.inputRef,H=w(h,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),q=(0,l.useTheme)().input,ne=q.defaultProps,Q=q.valid,W=q.styles,X=W.base,re=W.variants;c=c??ne.variant,m=m??ne.size,g=g??ne.color,_=_??ne.label,A=A??ne.labelProps,E=E??ne.containerProps,V=V??ne.shrink,R=R??ne.icon,F=(0,d.twMerge)(ne.className||"",F);var Z=re[(0,i.default)(Q.variants,c,"outlined")],oe=Z.sizes[(0,i.default)(Q.sizes,m,"md")],fe=(0,a.default)(Z.error.input),ge=(0,a.default)(Z.success.input),ce=(0,a.default)(Z.shrink.input),J=(0,a.default)(Z.colors.input[(0,i.default)(Q.colors,g,"gray")]),ie=(0,a.default)(Z.error.label),ue=(0,a.default)(Z.success.label),Se=(0,a.default)(Z.shrink.label),Ce=(0,a.default)(Z.colors.label[(0,i.default)(Q.colors,g,"gray")]),Me=(0,o.default)((0,a.default)(X.container),(0,a.default)(oe.container),E==null?void 0:E.className),Le=(0,o.default)((0,a.default)(X.input),(0,a.default)(Z.base.input),(0,a.default)(oe.input),v({},(0,a.default)(Z.base.inputWithIcon),R),v({},J,!T&&!k),v({},fe,T),v({},ge,k),v({},ce,V),F),Re=(0,o.default)((0,a.default)(X.label),(0,a.default)(Z.base.label),(0,a.default)(oe.label),v({},Ce,!T&&!k),v({},ie,T),v({},ue,k),v({},Se,V),A==null?void 0:A.className),be=(0,o.default)((0,a.default)(X.icon),(0,a.default)(Z.base.icon),(0,a.default)(oe.icon)),ke=(0,o.default)((0,a.default)(X.asterisk));return r.default.createElement("div",b({},E,{ref:p,className:Me}),R&&r.default.createElement("div",{className:be},R),r.default.createElement("input",b({},H,{ref:B,className:Le,placeholder:(H==null?void 0:H.placeholder)||" "})),r.default.createElement("label",b({},A,{className:Re}),_," ",H.required?r.default.createElement("span",{className:ke},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,icon:s.propTypesIcon,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Input";var C=y})(lj);var sj={},am={},bh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesLockScroll:function(){return b},propTypesDisabled:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=r.default.shape({itemPress:r.default.bool,enabled:r.default.bool,escapeKey:r.default.bool,referencePress:r.default.bool,referencePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),outsidePress:r.default.oneOfType([r.default.bool,r.default.func]),outsidePressEvent:r.default.oneOf(["pointerdown","mousedown","click"]),ancestorScroll:r.default.bool,bubbles:r.default.oneOfType([r.default.bool,r.default.shape({escapeKey:r.default.bool,outsidePress:r.default.bool})])}),v=n.propTypesAnimation,b=r.default.bool,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,handler:r.default.func.isRequired,setInternalOpen:r.default.func.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number.isRequired,y:r.default.number.isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,listItemsRef:r.default.instanceOf(Object).isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,getItemProps:r.default.func.isRequired,appliedAnimation:v.isRequired,lockScroll:r.default.bool.isRequired,context:r.default.instanceOf(Object).isRequired,tree:r.default.any.isRequired,allowHover:r.default.bool.isRequired,activeIndex:r.default.number.isRequired,setActiveIndex:r.default.func.isRequired,nested:r.default.bool.isRequired})})(bh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{MenuContext:function(){return i},useMenu:function(){return a},MenuContextProvider:function(){return l}});var r=o(Y),n=bh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.MenuContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("useMenu() must be used within a Menu. It happens when you use MenuCore, MenuHandler, MenuItem or MenuList components outside the Menu component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.prototypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.MenuContextProvider"})(am);var uj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{MenuCore:function(){return C},default:function(){return h}});var r=b(Y),n=b(ot),o=wn,i=b(Xn),a=Xe,l=am,s=bh;function d(p,c){(c==null||c>p.length)&&(c=p.length);for(var g=0,m=new Array(c);g=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.useMenu)(),g=c.getReferenceProps,m=c.reference,_=c.nested,T=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(s(v(s({},p),{ref:T,onClick:function(R){R.stopPropagation()}}),_&&{role:"menuitem"}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.MenuHandler";var P=w})(cj);var dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{MenuList:function(){return y},default:function(){return C}});var r=S(Y),n=wn,o=An,i=S(pt),a=Je,l=S(et),s=Xe,d=am,v=bh;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.children,g=h.className,m=w(h,["children","className"]),_=(0,s.useTheme)().menu,T=_.styles.base,k=(0,d.useMenu)(),R=k.open,E=k.handler,A=k.strategy,F=k.x,V=k.y,B=k.floating,H=k.listItemsRef,q=k.getFloatingProps,ne=k.getItemProps,Q=k.appliedAnimation,W=k.lockScroll,X=k.context,re=k.activeIndex,Z=k.tree,oe=k.allowHover,fe=k.internalAllowHover,ge=k.setActiveIndex,ce=k.nested;g=g??"";var J=(0,a.twMerge)((0,i.default)((0,l.default)(T.menu)),g),ie=(0,n.useMergeRefs)([p,B]),ue=o.AnimatePresence,Se=r.default.createElement(o.m.div,b({},m,{ref:ie,style:{position:A,top:V??0,left:F??0},className:J},q({onKeyDown:function(Me){Me.key==="Tab"&&(E(!1),Me.shiftKey&&Me.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Q}),r.default.Children.map(c,function(Ce,Me){return r.default.isValidElement(Ce)&&r.default.cloneElement(Ce,ne({tabIndex:re===Me?0:-1,role:"menuitem",className:Ce.props.className,ref:function(Re){H.current[Me]=Re},onClick:function(Re){if(Ce.props.onClick){var be,ke;(ke=(be=Ce.props).onClick)===null||ke===void 0||ke.call(be,Re)}Z==null||Z.events.emit("click")},onMouseEnter:function(){(oe&&R||fe&&R)&&ge(Me)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ue,null,R&&r.default.createElement(r.default.Fragment,null,W?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)):r.default.createElement(n.FloatingFocusManager,{context:X,modal:!ce,initialFocus:ce?-1:0,returnFocus:!ce,visuallyHiddenDismiss:!0},Se)))))});y.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var C=y})(dj);var fj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{MenuItem:function(){return w},default:function(){return P}});var r=v(Y),n=v(pt),o=Je,i=v(et),a=Xe,l=bh;function s(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function d(){return d=Object.assign||function(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.className,p=h===void 0?"":h,c=y.disabled,g=c===void 0?!1:c,m=y.children,_=b(y,["className","disabled","children"]),T=(0,a.useTheme)().menu,k=T.styles.base,R=(0,o.twMerge)((0,n.default)((0,i.default)(k.item.initial),s({},(0,i.default)(k.item.disabled),g)),p);return r.default.createElement("button",d({},_,{ref:C,role:"menuitem",className:R}),m)});w.propTypes={className:l.propTypesClassName,disabled:l.propTypesDisabled,children:l.propTypesChildren},w.displayName="MaterialTailwind.MenuItem";var P=w})(fj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Menu:function(){return b},MenuHandler:function(){return a.MenuHandler},MenuList:function(){return l.MenuList},MenuItem:function(){return s.MenuItem},useMenu:function(){return o.useMenu},default:function(){return S}});var r=v(Y),n=wn,o=am,i=uj,a=cj,l=dj,s=fj;function d(){return d=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. More details: https://www.material-tailwind.com/docs/react/collapse - `);var R=r.default.useRef(null),E=(0,d.useTheme)().navbar,A=E.styles,F=A.base.mobileNav;g=g??{},m=m??"";var V=(0,l.twMerge)((0,a.default)((0,s.default)(F)),m),B={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=R.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},H=(0,i.default)(B,g),q=n.AnimatePresence,ne=(0,o.useMergeRefs)([p,R]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(q,null,r.default.createElement(n.m.div,b({},T,{ref:ne,className:V,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:H}),_)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(pj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Navbar:function(){return C},MobileNav:function(){return d.MobileNav},default:function(){return h}});var r=w(Y),n=w(ot),o=w(pt),i=Je,a=w(Sr),l=w(et),s=Xe,d=pj,v=e2;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.variant,m=p.color,_=p.shadow,T=p.blurred,k=p.fullWidth,R=p.className,E=p.children,A=P(p,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,H=F.styles,q=H.base,ne=H.variants;g=g??V.variant,m=m??V.color,_=_??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(q.navbar.initial),(Q={},b(Q,(0,l.default)(q.navbar.shadow),_),b(Q,(0,l.default)(q.navbar.blurred),T&&m==="white"),b(Q,(0,l.default)(q.navbar.fullWidth),k),Q)),X=(0,o.default)((0,l.default)(ne[(0,a.default)(B.variants,g,"filled")][(0,a.default)(B.colors,m,"white")])),re=(0,i.twMerge)((0,o.default)(W,X),R);return r.default.createElement("nav",S({},A,{ref:c,className:re}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var h=Object.assign(C,{MobileNav:d.MobileNav})})(fj);var hj={},L2={},wh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return b},propTypesInteractive:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,b=r.default.node,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(wh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(Y),n=wh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(L2);var gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{PopoverHandler:function(){return w},default:function(){return P}});var r=l(Y),n=wn,o=L2,i=wh;function a(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.usePopover)(),g=c.getReferenceProps,m=c.reference,_=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(v(s({},p),{ref:_}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.PopoverHandler";var P=w})(gj);var vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{PopoverContent:function(){return c},default:function(){return g}});var r=w(Y),n=wn,o=An,i=w(pt),a=Je,l=w(et),s=Xe,d=L2,v=wh;function b(m,_,T){return _ in m?Object.defineProperty(m,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[_]=T,m}function S(){return S=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function p(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,_){var T=m.children,k=m.className,R=h(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,H=V.strategy,q=V.x,ne=V.y,Q=V.context,W=V.floating,X=V.getFloatingProps,re=V.appliedAnimation,Z=V.labelId,oe=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var fe=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),ge=(0,n.useMergeRefs)([_,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},X(C(P({},R),{ref:ge,className:fe,style:{position:H,top:ne??"",left:q??""},"aria-labelledby":Z,"aria-describedby":oe})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:re}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var g=c})(vj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return p},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=w(Y),n=w(ot),o=wn,i=w(Xn),a=Xe,l=L2,s=wh,d=gj,v=vj;function b(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.value,T=h.label,k=h.className,R=h.barProps,E=w(h,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,H=B.base,q=B.variants,ne=B.sizes;c=c??F.variant,g=g??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(q[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"gray")]),W=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].container.initial),X=(0,o.default)((0,l.default)(H.container.initial),W),re=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].container.withLabel),Z=(0,o.default)((0,l.default)(H.container.withLabel),re),oe=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].bar),fe=(0,o.default)((0,l.default)(H.bar),oe),ge=(0,i.twMerge)((0,o.default)(X,v({},Z,T)),k),ce=(0,i.twMerge)((0,o.default)(fe,Q),R==null?void 0:R.className);return r.default.createElement("div",b({},E,{ref:p,className:ge}),r.default.createElement("div",b({},R,{className:ce,style:{width:"".concat(_,"%")}}),T&&"".concat(_,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(mj);var yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Radio:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().radio,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var Z=T!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,i.default)((0,i.default)((0,s.default)(W.icon)),X[(0,l.default)(ne.colors,g,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("label",S({},E,{className:fe,htmlFor:B.id||re,onMouseDown:function(ie){var ue=E==null?void 0:E.onMouseDown;return T&&Z.create(ie,"dark"),typeof ue=="function"&&ue(ie)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:ge,id:B.id||re})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var h=C})(yj);var bj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,b){for(var S in b)Object.defineProperty(v,S,{enumerable:!0,get:b[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(Y),n=An,o=$v;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var b=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){b.current=v},[v]),b.current}var d=function(v){var b=v.value,S=v.children;return r.default.createElement(a.Provider,{value:b},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(OT);var wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=Xe,l=OT,s=$v;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=function(C){var h=function(){Q(_),re(g),X(!1),oe(null)},p=function(Me){(Me.key==="Enter"||Me.key===" "&&!ge.current.typing)&&(Me.preventDefault(),h())},c=C.value,g=c===void 0?"":c,m=C.index,_=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,H=B.base,q=(0,l.useSelect)(),ne=q.selectedIndex,Q=q.setSelectedIndex,W=q.listRef,X=q.setOpen,re=q.onChange,Z=q.activeIndex,oe=q.setActiveIndex,fe=q.getItemProps,ge=q.dataRef,ce=(0,i.default)(H.option.initial),J=(0,i.default)(H.option.active),ie=(0,i.default)(H.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,J,ne===_),d(ue,ie,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[_]=Ce},className:Se,disabled:k,tabIndex:Z===_?0:1,"aria-selected":Z===_&&ne===_,"data-selected":ne===_},fe({onClick:function(Ce){var Me=F==null?void 0:F.onClick;typeof Me=="function"&&(Me(Ce),h()),h()},onKeyDown:function(Ce){var Me=F==null?void 0:F.onKeyDown;typeof Me=="function"&&(Me(Ce),p(Ce)),p(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(wj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,X){for(var re in X)Object.defineProperty(W,re,{enumerable:!0,get:X[re]})}t(e,{Select:function(){return ne},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=g(Y),n=g(ot),o=wn,i=An,a=g(pt),l=Je,s=g(Xn),d=g(Sr),v=g(et),b=Xe,S=OT,w=$v,P=wj;function y(W,X){(X==null||X>W.length)&&(X=W.length);for(var re=0,Z=new Array(X);re=0)&&Object.prototype.propertyIsEnumerable.call(W,Z)&&(re[Z]=W[Z])}return re}function V(W,X){if(W==null)return{};var re={},Z=Object.keys(W),oe,fe;for(fe=0;fe=0)&&(re[oe]=W[oe]);return re}function B(W,X){return C(W)||_(W,X)||q(W,X)||T()}function H(W){return h(W)||m(W)||q(W)||k()}function q(W,X){if(W){if(typeof W=="string")return y(W,X);var re=Object.prototype.toString.call(W).slice(8,-1);if(re==="Object"&&W.constructor&&(re=W.constructor.name),re==="Map"||re==="Set")return Array.from(re);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return y(W,X)}}var ne=r.default.forwardRef(function(W,X){var re=W.variant,Z=W.color,oe=W.size,fe=W.label,ge=W.error,ce=W.success,J=W.arrow,ie=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Me=W.dismiss,Le=W.animate,Re=W.lockScroll,be=W.labelProps,ke=W.menuProps,ze=W.className,Ye=W.disabled,Mt=W.name,gt=W.children,xt=W.containerProps,zt=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Ht,mt=(0,b.useTheme)().select,Ot=mt.defaultProps,Jt=mt.valid,Dr=mt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),nr=Ln[0],mo=Ln[1];re=re??Ot.variant,Z=Z??Ot.color,oe=oe??Ot.size,fe=fe??Ot.label,ge=ge??Ot.error,ce=ce??Ot.success,J=J??Ot.arrow,ie=ie??Ot.value,ue=ue??Ot.onChange,Se=Se??Ot.selected,Ce=Ce??Ot.offset,Me=Me??Ot.dismiss,Le=Le??Ot.animate,be=be??Ot.labelProps,ke=ke??Ot.menuProps;var Yt;xt=(Yt=(0,s.default)(xt,(Ot==null?void 0:Ot.containerProps)||{}))!==null&&Yt!==void 0?Yt:Ot.containerProps,ze=(0,l.twMerge)(Ot.className||"",ze),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(H((Qr=r.default.Children.map(gt,function(at){var rt=at.props;return rt==null?void 0:rt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(rt){var St=rt.rects,cn=rt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(St==null||(wo=St.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,le=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(ie)+1))},[ie]);var he=ga.floating,xe=(0,o.useInteractions)([(0,o.useClick)(le),(0,o.useRole)(le,{role:"listbox"}),(0,o.useDismiss)(le,R({},Me)),(0,o.useListNavigation)(le,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(le,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Oe=xe.getReferenceProps,Ue=xe.getFloatingProps,Qe=xe.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=he.current;if(Sn&&pa&&at){var rt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(rt&&Fi!=null){var St,cn,wr=(cn=(St=yo.current[Fi])===null||St===void 0?void 0:St.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=rt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Qe,dataRef:le.dataRef}},[$r,ue,sn,Qe,le.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&ie?"withValue":"close")},[Sn,ie,$r,Se]);var je=Qn[(0,d.default)(Jt.variants,re,"outlined")],Ze=je.sizes[(0,d.default)(Jt.sizes,oe,"md")],$e=je.error.select,Ge=je.success.select,kt=je.colors.select[(0,d.default)(Jt.colors,Z,"gray")],Nt=je.error.label,Ut=je.success.label,bt=je.colors.label[(0,d.default)(Jt.colors,Z,"gray")],dr=je.states[nr],or=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Ze.container),xt==null?void 0:xt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(je.base.select),(0,v.default)(dr.select),(0,v.default)(Ze.select),p({},(0,v.default)(kt[nr]),!ge&&!ce),p({},(0,v.default)($e.initial),ge),p({},(0,v.default)($e.states[nr]),ge),p({},(0,v.default)(Ge.initial),ce),p({},(0,v.default)(Ge.states[nr]),ce)),ze),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(je.base.label),(0,v.default)(dr.label),(0,v.default)(Ze.label.initial),(0,v.default)(Ze.label.states[nr]),p({},(0,v.default)(bt[nr]),!ge&&!ce),p({},(0,v.default)(Nt.initial),ge),p({},(0,v.default)(Nt.states[nr]),ge),p({},(0,v.default)(Ut.initial),ce),p({},(0,v.default)(Ut.states[nr]),ce)),(Fr=be.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),p({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=ke.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",re==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},At=(0,s.default)(Zr,Le),He=i.AnimatePresence;r.default.useEffect(function(){ie&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[ie,ue]);var It=r.default.createElement(o.FloatingFocusManager,{context:le,modal:!1},r.default.createElement(i.m.ul,c({},Ue(A(R({},ke),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(rt){var St=ke==null?void 0:ke.onPointerEnter;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onPointerMove:function(rt){var St=ke==null?void 0:ke.onPointerMove;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onKeyDown:function(rt){var St=ke==null?void 0:ke.onKeyDown;typeof St=="function"&&(St(rt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:At}),r.default.Children.map(gt,function(at,rt){var St;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((St=at.props)===null||St===void 0?void 0:St.index)||rt+1,id:"material-tailwind-select-".concat(rt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},xt,{ref:X,className:or}),r.default.createElement("button",c({type:"button"},Oe(A(R({},zt),{ref:ga.setReference,className:Fn,disabled:Ye,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):ie&&!ue?r.default.createElement("span",{className:un},ie):r.default.createElement("span",c({},(Ht=gt[$r-1])===null||Ht===void 0?void 0:Ht.props,{className:un})),r.default.createElement("div",{className:Zn},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},be,{className:jn}),fe),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(He,null,Sn&&r.default.createElement(r.default.Fragment,null,Re?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},It):It)))))});ne.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),size:n.default.oneOf(w.propTypesSize),label:w.propTypesLabel,error:w.propTypesError,success:w.propTypesSuccess,arrow:w.propTypesArrow,value:w.propTypesValue,onChange:w.propTypesOnChange,selected:w.propTypesSelected,offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,lockScroll:w.propTypesLockScroll,labelProps:w.propTypesLabelProps,menuProps:w.propTypesMenuProps,className:w.propTypesClassName,disabled:w.propTypesDisabled,name:w.propTypesName,children:w.propTypesChildren,containerProps:w.propTypesContainerProps},ne.displayName="MaterialTailwind.Select";var Q=Object.assign(ne,{Option:P.SelectOption})})(bj);var _j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Switch:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.ripple,T=p.className,k=p.disabled,R=p.containerProps,E=p.circleProps,A=p.labelProps,F=p.inputRef,V=P(p,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),H=B.switch,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,_=_??q.ripple,k=k??q.disabled,R=R??q.containerProps,A=A??q.labelProps,E=E??q.circleProps,T=(0,a.twMerge)(q.className||"",T);var Z=_!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),k)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),X[(0,l.default)(ne.colors,g,"gray")].circle,X[(0,l.default)(ne.colors,g,"gray")].before),E==null?void 0:E.className),J=(0,i.default)((0,s.default)(W.ripple)),ie=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("div",S({},R,{className:fe}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||re,className:ge})),r.default.createElement("label",S({},E,{htmlFor:V.id||re,className:ce}),_&&r.default.createElement("div",{className:J,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return _&&Z.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||re,className:ie}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var h=C})(_j);var xj={},_h={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return b},propTypesChildren:function(){return S}});var r=o(ot),n=br;function o(w){return w&&w.__esModule?w:{default:w}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),b=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return h},TabsContextProvider:function(){return p},setId:function(){return c},setActive:function(){return g},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(Y),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.value,g=h.className,m=h.activeClassName,_=h.disabled,T=h.children,k=w(h,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,H=V.dispatch,q=B.id,ne=B.active,Q=B.indicatorProps;_=_??A.disabled,g=(0,i.twMerge)(A.className||"",g),m=(0,i.twMerge)(A.activeClassName||"",m);var W,X=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),_),v(W,m,ne===c),W)),g),re,Z=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(re=Q==null?void 0:Q.className)!==null&&re!==void 0?re:"");return r.default.createElement("li",b({},k,{ref:p,role:"tab",className:X,onClick:function(oe){var fe=k==null?void 0:k.onClick;typeof fe=="function"&&((0,s.setActive)(H,c),(0,s.setIsInitial)(H,!1),fe(oe)),(0,s.setIsInitial)(H,!1),(0,s.setActive)(H,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),ne===c&&r.default.createElement(n.motion.div,b({},Q,{transition:{duration:.5},className:Z,layoutId:q})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(Sj);var Cj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=S(Xn),i=S(pt),a=Je,l=S(et),s=Xe,d=_h,v=kd;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.animate,g=h.className,m=h.children,_=w(h,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,g=(0,a.twMerge)(k.className||"",g);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),g),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",b({},_,{ref:p,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=Xe,l=_h,s=kd;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.indicatorProps,c=C.className,g=C.children,m=S(C,["indicatorProps","className","children"]),_=(0,a.useTheme)().tabsHeader,T=_.defaultProps,k=_.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,p)},[A,p]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:h,role:"tablist",className:V}),g))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Pj);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=b(Y),n=An,o=b(pt),i=Je,a=b(et),l=Xe,s=_h,d=kd;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.value,c=C.className,g=C.children,m=S(C,["value","className","children"]),_=(0,l.useTheme)().tabPanel,T=_.defaultProps,k=_.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:h,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===p?"mount":F?"initial":"unmount",variants:A,"data-value":p}),g)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Tj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return p},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return b.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(Y),n=y(pt),o=Je,i=y(et),a=Xe,l=_h,s=Sj,d=Cj,v=Pj,b=Tj,S=kd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.value,T=g.className,k=g.orientation,R=g.children,E=C(g,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var H=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),w({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:_,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:H}),R))});p.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},p.displayName="MaterialTailwind.Tabs";var c=Object.assign(p,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:b.TabPanel})})(xj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Wv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.resize,E=h.labelProps,A=h.containerProps,F=h.shrink,V=h.className,B=w(h,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),H=(0,l.useTheme)().textarea,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.variants;c=c??q.variant,m=m??q.size,g=g??q.color,_=_??q.label,E=E??q.labelProps,A=A??q.containerProps,F=F??q.shrink,V=(0,d.twMerge)(q.className||"",V);var re=X[(0,i.default)(ne.variants,c,"outlined")],Z=(0,a.default)(re.error.textarea),oe=(0,a.default)(re.success.textarea),fe=(0,a.default)(re.shrink.textarea),ge=(0,a.default)(re.colors.textarea[(0,i.default)(ne.colors,g,"gray")]),ce=(0,a.default)(re.error.label),J=(0,a.default)(re.success.label),ie=(0,a.default)(re.shrink.label),ue=(0,a.default)(re.colors.label[(0,i.default)(ne.colors,g,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(re.base.textarea),(0,a.default)(re.sizes[(0,i.default)(ne.sizes,m,"md")].textarea),v({},ge,!T&&!k),v({},Z,T),v({},oe,k),v({},fe,F),R?"":"!resize-none",V),Me=(0,o.default)((0,a.default)(W.label),(0,a.default)(re.base.label),(0,a.default)(re.sizes[(0,i.default)(ne.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},J,k),v({},ie,F),E==null?void 0:E.className),Le=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:p,className:Se},r.default.createElement("textarea",b({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Me},_," ",B.required?r.default.createElement("span",{className:Le},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(Oj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(Y),n=C(ot),o=wn,i=An,a=C(pt),l=Je,s=C(Xn),d=C(et),v=Xe,b=wh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,H=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,H)&&(B[H]=F[H])}return B}function T(F,V){if(F==null)return{};var B={},H=Object.keys(F),q,ne;for(ne=0;ne=0)&&(B[q]=F[q]);return B}function k(F,V){return w(F)||h(F,V)||R(F,V)||p()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,H=F.handler,q=F.content,ne=F.interactive,Q=F.placement,W=F.offset,X=F.dismiss,re=F.animate,Z=F.className,oe=F.children,fe=_(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),ge=(0,v.useTheme)().tooltip,ce=ge.defaultProps,J=ge.styles.base,ie=k(r.default.useState(!1),2),ue=ie[0],Se=ie[1];B=B??ue,H=H??Se,ne=ne??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,X=X??ce.dismiss,re=re??ce.animate,Z=(0,l.twMerge)(ce.className||"",Z);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(J)),Z),Me={unmount:{opacity:0},mount:{opacity:1}},Le=(0,s.default)(Me,re),Re=(0,o.useFloating)({open:B,onOpenChange:H,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),be=Re.x,ke=Re.y,ze=Re.reference,Ye=Re.floating,Mt=Re.strategy,gt=Re.refs,xt=Re.update,zt=Re.context,Ht=(0,o.useInteractions)([(0,o.useClick)(zt,{enabled:ne}),(0,o.useFocus)(zt),(0,o.useHover)(zt),(0,o.useRole)(zt,{role:"tooltip"}),(0,o.useDismiss)(zt,X)]),mt=Ht.getReferenceProps,Ot=Ht.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,xt)},[B,xt,gt.reference,gt.floating]);var Jt=(0,o.useMergeRefs)([V,Ye]),Dr=(0,o.useMergeRefs)([V,ze]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof oe=="string"?r.default.createElement("span",y({},mt({ref:Dr})),oe):r.default.cloneElement(oe,c({},mt(m(c({},oe==null?void 0:oe.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Ot(m(c({},fe),{ref:Jt,className:Ce,style:{position:Mt,top:ke??"",left:be??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:Le}),q)))))});E.propTypes={open:b.propTypesOpen,handler:b.propTypesHandler,content:b.propTypesContent,interactive:b.propTypesInteractive,placement:n.default.oneOf(b.propTypesPlacement),offset:b.propTypesOffset,dismiss:b.propTypesDismiss,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(kj);var Ej={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Typography:function(){return h},default:function(){return p}});var r=b(Y),n=b(ot),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=HP;function v(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function b(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,H=F.styles,q=H.variants,ne=H.colors,Q=H.textGradient;m=m??V.variant,_=_??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(q[(0,a.default)(B.variants,m,"paragraph")]),X=ne[(0,a.default)(B.colors,_,"inherit")],re=(0,l.default)(Q),Z=(0,i.twMerge)((0,o.default)(W,v({},X.color,!T),v({},re,T),v({},X.gradient,T)),R),oe;switch(m){case"h1":oe=r.default.createElement(k||"h1",P(S({},A),{ref:g,className:Z}),E);break;case"h2":oe=r.default.createElement(k||"h2",P(S({},A),{ref:g,className:Z}),E);break;case"h3":oe=r.default.createElement(k||"h3",P(S({},A),{ref:g,className:Z}),E);break;case"h4":oe=r.default.createElement(k||"h4",P(S({},A),{ref:g,className:Z}),E);break;case"h5":oe=r.default.createElement(k||"h5",P(S({},A),{ref:g,className:Z}),E);break;case"h6":oe=r.default.createElement(k||"h6",P(S({},A),{ref:g,className:Z}),E);break;case"lead":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;case"paragraph":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;case"small":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;default:oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break}return oe});h.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},h.displayName="MaterialTailwind.Typography";var p=h})(Ej);var Mj={},Rj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(ot),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Rj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=wn,i=S(Xn),a=S(pt),l=Je,s=S(et),d=Xe,v=Rj;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;g=g??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,g),H=n.AnimatePresence,q=(0,o.useMergeRefs)([p,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(H,null,r.default.createElement(n.m.div,b({},T,{ref:q,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Mj);var Nj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(lm);var Aj={},kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return w}});var r=d(Y),n=Xe,o=d(pt),i=Je,a=d(et),l=lm;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemPrefix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var w=S})(kT);var ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return w}});var r=d(Y),n=Xe,o=d(pt),i=Je,a=d(et),l=lm;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemSuffix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var w=S})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return h}});var r=w(Y),n=Xe,o=w(fh),i=w(pt),a=Je,l=w(et),s=lm,d=kT,v=ET;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.disabled,_=p.selected,T=p.ripple,k=p.children,R=P(p,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,H=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},b(B,(0,l.default)(F.item.disabled),m),b(B,(0,l.default)(F.item.selected),_&&!m),B)),g);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:H,onMouseDown:function(q){var ne=R==null?void 0:R.onMouseDown;return T&&V.create(q,"dark"),typeof ne=="function"&&ne(q)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var h=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Aj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(Y),n=Xe,o=S(pt),i=Je,a=S(et),l=lm,s=Aj,d=kT,v=ET;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,n.useTheme)().list,T=_.defaultProps,k=_.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",b({},m,{ref:p,className:R}),g)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Nj);var Ij={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=_d;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.fullWidth,T=h.ripple,k=h.className,R=h.children,E=w(h,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,H=V.base,q=V.dividerColor;c=c??F.variant,g=g??F.size,m=m??F.color,T=T??F.ripple,_=_??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var ne,Q=(0,i.twMerge)((0,o.default)((0,l.default)(H.initial),(ne={},v(ne,(0,l.default)(H.fullWidth),_),v(ne,"divide-x",c!=="outlined"),v(ne,(0,l.default)(q[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),ne)),k);return r.default.createElement("div",b({},E,{ref:p,className:Q}),r.default.Children.map(R,function(W,X){var re;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:g,color:m,ripple:T,fullWidth:_,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":X!==r.default.Children.count(R)-1,"border-r-0":X!==r.default.Children.count(R)-1,"rounded-l-none":X!==0}),(re=W.props)===null||re===void 0?void 0:re.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Ij);var Lj={},Dj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return b},propTypesChildren:function(){return S},propTypesSlideRef:function(){return w}});var r=n(ot);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,b=r.default.bool,S=r.default.node.isRequired,w=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,T){for(var k in T)Object.defineProperty(_,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return g},default:function(){return m}});var r=w(Y),n=An,o=wn,i=w(pt),a=Je,l=w(et),s=Xe,d=Dj;function v(_,T){(T==null||T>_.length)&&(T=_.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(k[R]=_[R])}return k}function h(_,T){if(_==null)return{};var k={},R=Object.keys(_),E,A;for(A=0;A=0)&&(k[E]=_[E]);return k}function p(_,T){return b(_)||P(_,T)||c(_,T)||y()}function c(_,T){if(_){if(typeof _=="string")return v(_,T);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(_,T)}}var g=r.default.forwardRef(function(_,T){var k=_.children,R=_.prevArrow,E=_.nextArrow,A=_.navigation,F=_.autoplay,V=_.autoplayDelay,B=_.transition,H=_.loop,q=_.className,ne=_.slideRef,Q=C(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,X=W.defaultProps,re=W.styles.base,Z=(0,n.useMotionValue)(0),oe=r.default.useRef(null),fe=p(r.default.useState(0),2),ge=fe[0],ce=fe[1],J=r.default.Children.toArray(k);R=R??X.prevArrow,E=E??X.nextArrow,A=A??X.navigation,F=F??X.autoplay,V=V??X.autoplayDelay,B=B??X.transition,H=H??X.loop,q=(0,a.twMerge)(X.className||"",q);var ie=(0,a.twMerge)((0,i.default)((0,l.default)(re.carousel)),q),ue=(0,a.twMerge)((0,i.default)((0,l.default)(re.slide))),Se=r.default.useCallback(function(){var Re;return-ge*(((Re=oe.current)===null||Re===void 0?void 0:Re.clientWidth)||0)},[ge]),Ce=r.default.useCallback(function(){var Re=H?0:ge;ce(ge+1===J.length?Re:ge+1)},[ge,H,J.length]),Me=function(){var Re=H?J.length-1:0;ce(ge-1<0?Re:ge-1)};r.default.useEffect(function(){var Re=(0,n.animate)(Z,Se(),B);return Re.stop},[Se,ge,Z,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(Z,Se(),B)})},[Se,B,Z]),r.default.useEffect(function(){if(F){var Re=setInterval(function(){return Ce()},V);return function(){return clearInterval(Re)}}},[F,Ce,V]);var Le=(0,o.useMergeRefs)([oe,T]);return r.default.createElement("div",S({},Q,{ref:Le,className:ie}),J.map(function(Re,be){return r.default.createElement(n.LazyMotion,{key:be,features:n.domAnimation},r.default.createElement(n.m.div,{ref:ne,className:ue,style:{x:Z,left:"".concat(be*100,"%"),right:"".concat(be*100,"%")}},Re))}),R&&R({loop:H,handlePrev:Me,activeIndex:ge,firstIndex:ge===0}),E&&E({loop:H,handleNext:Ce,activeIndex:ge,lastIndex:ge===J.length-1}),A&&A({setActiveIndex:ce,activeIndex:ge,length:J.length}))});g.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},g.displayName="MaterialTailwind.Carousel";var m=g})(Lj);var Fj={},jj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return b},propTypesOnClose:function(){return S},propTypesDismiss:function(){return w},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,b=r.default.string,S=r.default.func,w=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(jj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return p},default:function(){return c}});var r=P(Y),n=P(ot),o=An,i=wn,a=P(Xn),l=P(pt),s=Je,d=P(et),v=Xe,b=jj;function S(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function w(){return w=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.open,T=g.size,k=g.overlay,R=g.children,E=g.placement,A=g.overlayProps,F=g.className,V=g.onClose,B=g.dismiss,H=g.transition,q=g.overlayRef,ne=C(g,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,X=Q.styles.base,re=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var Z;B=(Z=(0,a.default)(W.dismiss,B||{}))!==null&&Z!==void 0?Z:W.dismiss,H=H??W.transition,F=(0,s.twMerge)(W.className||"",F);var oe=(0,s.twMerge)((0,l.default)((0,d.default)(X.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),fe=(0,s.twMerge)((0,l.default)((0,d.default)(X.overlay)),A==null?void 0:A.className),ge=(0,i.useFloating)({open:_,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(ge,B)]).getFloatingProps;r.default.useEffect(function(){re.start(_?"open":"close")},[_,re,E]);var J={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},ie={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:q,className:fe,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:ie,transition:{duration:.3}})),r.default.createElement(o.m.div,w({},ce(y({ref:m},ne)),{className:oe,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:re,variants:J,transition:H}),R)))});p.propTypes={open:b.propTypesOpen,size:b.propTypesSize,overlay:b.propTypesOverlay,children:b.propTypesChildren,placement:n.default.oneOf(b.propTypesPlacement),overlayProps:b.propTypesOverlayProps,className:b.propTypesClassName,onClose:b.propTypesOnClose,dismiss:b.propTypesDismiss,transition:b.propTypesTransition,overlayRef:b.propTypesOverlayRef},p.displayName="MaterialTailwind.Drawer";var c=p})(Fj);var zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Badge:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(Xn),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=WP;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.invisible,_=p.withBorder,T=p.overlap,k=p.placement,R=p.className,E=p.content,A=p.children,F=p.containerProps,V=p.containerRef,B=P(p,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),H=(0,d.useTheme)().badge,q=H.valid,ne=H.defaultProps,Q=H.styles,W=Q.base,X=Q.placements,re=Q.colors;g=g??ne.color,m=m??ne.invisible,_=_??ne.withBorder,T=T??ne.overlap,k=k??ne.placement,R=(0,a.twMerge)(ne.className||"",R);var Z;F=(Z=(0,o.default)(F,ne.containerProps||{}))!==null&&Z!==void 0?Z:ne.containerProps;var oe=(0,s.default)(W.badge.initial),fe=(0,s.default)(W.badge.withBorder),ge=(0,s.default)(W.badge.withContent),ce=(0,s.default)(re[(0,l.default)(q.colors,g,"red")]),J=(0,s.default)(X[(0,l.default)(q.placements,k,"top-end")][(0,l.default)(q.overlaps,T,"square")]),ie,ue=(0,a.twMerge)((0,i.default)(oe,J,ce,(ie={},b(ie,fe,_),b(ie,ge,E),ie)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var h=C})(zj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(Y),n=P(ot),o=P(pt),i=Je,a=P(Sr),l=P(et),s=Xe,d=$P;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function g(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}function m(E,A){return b(E)||C(E,A)||T(E,A)||h()}function _(E){return S(E)||y(E)||T(E)||p()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,H=E.unratedIcon,q=E.ratedColor,ne=E.unratedColor,Q=E.className,W=E.onChange,X=E.readonly,re=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),Z,oe,fe=(0,s.useTheme)().rating,ge=fe.valid,ce=fe.defaultProps,J=fe.styles,ie=J.base,ue=J.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,H=H??ce.unratedIcon,q=q??ce.ratedColor,ne=ne??ce.unratedColor,W=W??ce.onChange,X=X??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return _(Array(V).fill("rated")).concat(_(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Me=Se[1],Le=m(r.default.useState(function(){return _(Array(F).fill("un_rated"))}),2),Re=Le[0],be=Le[1],ke=m(r.default.useState(!1),2),ze=ke[0],Ye=ke[1],Mt=(0,l.default)(ue[(0,a.default)(ge.colors,q,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(ge.colors,ne,"blue-gray")]),xt=(0,i.twMerge)((0,o.default)((0,l.default)(ie.rating),Q)),zt=(0,l.default)(ie.icon),Ht=B,mt=H,Ot=r.default.isValidElement(B)&&r.default.cloneElement(Ht,{className:(0,i.twMerge)((0,o.default)(zt,Mt,Ht==null||(Z=Ht.props)===null||Z===void 0?void 0:Z.className))}),Jt=r.default.isValidElement(B)&&r.default.cloneElement(mt,{className:(0,i.twMerge)((0,o.default)(zt,gt,mt==null||(oe=mt.props)===null||oe===void 0?void 0:oe.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(zt,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(H,{className:(0,i.twMerge)((0,o.default)(zt,gt))}),Qn=function(Ln){return Ln.map(function(nr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!X){var Yt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Me(Yt),W&&typeof W=="function"&&W(Yt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!X){var Yt=Re.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Ye(!0),be(Yt)}},onMouseLeave:function(){return!X&&Ye(!1)}},r.default.isValidElement(nr==="rated"?B:H)?nr==="rated"?Ot:Jt:nr==="rated"?Dr:ln)})};return r.default.createElement("div",w({},re,{ref:A,className:xt}),Qn(ze?Re:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(Vj);var Bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=P(Y),n=P(ot),o=P(Xn),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=GP;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,H=T.value,q=T.defaultValue,ne=T.onChange,Q=T.min,W=T.max,X=T.step,re=T.inputRef,Z=T.inputProps,oe=h(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),fe=(0,d.useTheme)().slider,ge=fe.valid,ce=fe.defaultProps,J=fe.styles,ie=J.base,ue=J.sizes,Se=J.colors,Ce=c(r.default.useState(q||0),2),Me=Ce[0],Le=Ce[1];r.default.useMemo(function(){q&&Le(q)},[q]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,X=X??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Re;V=(Re=(0,i.default)(ce.thumbClassName,V))!==null&&Re!==void 0?Re:ce.thumbClassName;var be;F=(be=(0,i.default)(ce.trackClassName,F))!==null&&be!==void 0?be:ce.trackClassName;var ke;B=(ke=(0,i.default)(ce.barClassName,B))!==null&&ke!==void 0?ke:ce.barClassName;var ze;Z=(ze=(0,o.default)(Z,(ce==null?void 0:ce.inputProps)||{}))!==null&&ze!==void 0?ze:ce.inputProps;var Ye=(0,a.twMerge)((0,i.default)((0,s.default)(ie.container),(0,s.default)(Se[(0,l.default)(ge.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(ie.bar),B)),gt=(0,i.default)((0,s.default)(ie.track),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].track)),xt=(0,i.default)((0,s.default)(ie.thumb),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].thumb)),zt=(0,i.default)((0,s.default)(ie.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(xt,V));return r.default.createElement("div",w({},oe,{ref:k,className:Ye}),r.default.createElement("label",{className:Mt,style:{width:"".concat(H||Me,"%")}}),r.default.createElement("input",w({ref:re,type:"range",max:W,min:Q,step:X,className:zt},H?{value:H}:null,{defaultValue:q,onChange:function(Ht){return ne?ne(Ht):Le(Number(Ht.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(Bj);var Uj={},sm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{useTimelineItem:function(){return p},TimelineItem:function(){return c},default:function(){return g}});var r=v(Y),n=Je,o=v(et),i=Xe,a=bs;function l(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function s(m){if(Array.isArray(m))return m}function d(){return d=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,_){return s(m)||b(m,_)||C(m,_)||S()}function C(m,_){if(m){if(typeof m=="string")return l(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,_)}}var h=r.default.createContext(0);h.displayName="MaterialTailwind.TimelineItemContext";function p(){var m=r.default.useContext(h);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,_){var T=m.className,k=m.children,R=w(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],H=V[1],q=r.default.useMemo(function(){return[B,H]},[B,H]),ne=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(h.Provider,{value:q},r.default.createElement("li",d({ref:_},R,{className:ne}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var g=c})(sm);var Hj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=P(Y),n=P(ot),o=wn,i=Je,a=P(Sr),l=P(et),s=Xe,d=sm,v=bs;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=h(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,H=B.styles,q=B.valid,ne=H.base,Q=H.variants,W=c((0,d.useTimelineItem)(),2),X=W[1],re=r.default.useRef(null),Z=(0,o.useMergeRefs)([k,re]);r.default.useEffect(function(){var ge=re.current;if(ge){var ce=ge.getBoundingClientRect().width;return X(ce),function(){X(0)}}},[X,A,F]);var oe=(0,l.default)(Q[(0,a.default)(q.variants,E,"filled")][(0,a.default)(q.colors,R,"gray")]),fe=(0,i.twMerge)((0,l.default)(ne),oe,A);return r.default.createElement("span",w({ref:Z},V,{className:fe}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(Hj);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return p},default:function(){return c}});var r=b(Y),n=Je,o=b(et),i=Xe,a=sm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),_);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var c=p})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return b},default:function(){return S}});var r=s(Y),n=Je,o=s(et),i=Xe,a=bs;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,i.useTheme)().timelineHeader,c=p.styles,g=c.base,m=(0,n.twMerge)((0,o.default)(g),y);return r.default.createElement("div",l({},h,{ref:P,className:m}),C)});b.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},b.displayName="MaterialTailwind.TimelineHeader";var S=b})($j);var Gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return p},default:function(){return c}});var r=b(Y),n=Je,o=b(et),i=Xe,a=sm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],H=(0,o.default)(F.line),q=(0,n.twMerge)((0,o.default)(F.container),_);return r.default.createElement("span",v({},k,{ref:m,className:q,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(H,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:H}))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineConnector";var c=p})(Gj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return b.default},default:function(){return h}});var r=w(Y),n=Je,o=w(et),i=Xe,a=bs,l=w(sm),s=w(Hj),d=w(Wj),v=w($j),b=w(Gj);function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.children,_=P(p,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),g);return r.default.createElement("ul",S({ref:c},_,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var h=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:b.default})})(Uj);var Kj={},qj={},MT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(MT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return b},default:function(){return S}});var r=s(Y),n=Je,o=s(et),i=Xe,a=MT;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className;w.activeClassName,w.completedClassName;var C=w.children,h=d(w,["className","activeClassName","completedClassName","children"]),p=(0,i.useTheme)().step,c=p.styles.base,g=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},h,{ref:P,className:g}),C)});b.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},b.displayName="MaterialTailwind.Step";var S=b})(qj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=w(Y),n=wn,o=Je,i=w(et),a=Xe,l=w(qj),s=MT;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function g(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||_(R,E)||y()}function _(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,H=R.lineClassName,q=R.activeLineClassName,ne=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),X=W.stepper,re=W.step,Z=X.styles.base,oe=re.styles,fe=oe.base,ge=r.default.useRef(null),ce=m(r.default.useState(0),2),J=ce[0],ie=ce[1],ue=A===0,Se=Array.isArray(ne)&&A===ne.length-1,Ce=Array.isArray(ne)&&A>ne.length-1;r.default.useEffect(function(){if(ge.current){var Ye=ne,Mt=ge.current.getBoundingClientRect().width,gt=Mt/(Ye.length-1);ie(gt)}},[ne]);var Me=r.default.useMemo(function(){if(!Ce)return J*A},[A,Ce,J]);(0,n.useMergeRefs)([E,ge]);var Le=(0,o.twMerge)((0,i.default)(Z.stepper),B),Re=(0,o.twMerge)((0,i.default)(Z.line.initial),H),be=(0,o.twMerge)(Re,(0,i.default)(Z.line.active),q),ke=(0,i.default)(fe.active),ze=(0,i.default)(fe.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:ge,className:Le}),r.default.createElement("div",{className:Re}),r.default.createElement("div",{className:be,style:{width:"".concat(Me,"px")}}),Array.isArray(ne)?ne.map(function(Ye,Mt){var gt,xt;return r.default.cloneElement(Ye,p(C({key:Mt},Ye.props),{className:(0,o.twMerge)(Ye.props.className,Mt===A?(0,o.twMerge)(ke,(gt=Ye.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=S(C,["children"]),g,m=(0,o.useSpeedDial)(),_=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([h,T.setReference]);return r.default.cloneElement(p,d({},_(b(d({},c),{ref:k,className:(0,i.twMerge)(p==null||(g=p.props)===null||g===void 0?void 0:g.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Nx)),Nx}var Ax={},Z8;function LJ(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=b(Y),n=An,o=wn,i=RT(),a=Xe,l=Je,s=b(et),d=um;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=C.className,g=S(C,["children","className"]),m=(0,a.useTheme)(),_=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,H=(0,o.useMergeRefs)([h,E.setFloating]),q=(0,l.twMerge)((0,s.default)(_),c),ne=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(ne,null,A&&r.default.createElement("div",v({},g,{ref:H,className:q,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(p,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Ax)),Ax}var Yj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return b},default:function(){return S}});var r=s(Y),n=Xe,o=Je,i=s(et),a=um;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,n.useTheme)(),c=p.speedDialAction.styles,g=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},h,{ref:P,className:g}),C)});b.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},b.displayName="SpeedDialAction";var S=b})(Yj);var J8;function RT(){return J8||(J8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{SpeedDialContext:function(){return h},useSpeedDial:function(){return p},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return g}});var r=S(Y),n=wn,o=Xe,i=S(Xn),a=um,l=S(IJ()),s=S(LJ()),d=S(Yj);function v(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function b(m){if(Array.isArray(m))return m}function S(m){return m&&m.__esModule?m:{default:m}}function w(m,_){var T=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(T!=null){var k=[],R=!0,E=!1,A,F;try{for(T=T.call(m);!(R=(A=T.next()).done)&&(k.push(A.value),!(_&&k.length===_));R=!0);}catch(V){E=!0,F=V}finally{try{!R&&T.return!=null&&T.return()}finally{if(E)throw F}}return k}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(m,_){return b(m)||w(m,_)||C(m,_)||P()}function C(m,_){if(m){if(typeof m=="string")return v(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return v(m,_)}}var h=r.default.createContext(null);function p(){var m=r.default.useContext(h);if(!m)throw new Error("useSpeedDial must be used within a .");return m}function c(m){var _=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,H=y(r.default.useState(!1),2),q=H[0],ne=H[1];_=_??q,T=T??ne,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),X=(0,n.useFloatingNodeId)(),re=(0,n.useFloating)({open:_,nodeId:X,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),Z=re.x,oe=re.y,fe=re.strategy,ge=re.refs,ce=re.context,J=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),ie=J.getReferenceProps,ue=J.getFloatingProps,Se=r.default.useMemo(function(){return{x:Z,y:oe,strategy:fe,refs:ge,open:_,context:ce,getReferenceProps:ie,getFloatingProps:ue,animation:W}},[ce,ue,ie,ge,fe,Z,oe,_,W]);return r.default.createElement(h.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:X},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var g=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Rx)),Rx}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(JR,e),t(tL,e),t(rL,e),t(nL,e),t(iL,e),t(aL,e),t(cL,e),t(dL,e),t(fL,e),t(p2,e),t(aj,e),t(lj,e),t(fj,e),t(hj,e),t(mj,e),t(yj,e),t(bj,e),t(_j,e),t(xj,e),t(Oj,e),t(kj,e),t(Ej,e),t(Mj,e),t(Nj,e),t(Ij,e),t(Lj,e),t(Fj,e),t(zj,e),t(Vj,e),t(Bj,e),t(w3,e),t(Uj,e),t(Kj,e),t(RT(),e),t(Xe,e),t(NP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(QW);function DJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var NT={exports:{}},D2={},ww={},Tt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof uO<"u"?uO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Tt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Tt;class r{constructor(g=[1,0,0,1,0,0]){this.dirty=!1,this.m=g&&g.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(g){g.m[0]=this.m[0],g.m[1]=this.m[1],g.m[2]=this.m[2],g.m[3]=this.m[3],g.m[4]=this.m[4],g.m[5]=this.m[5]}point(g){const m=this.m;return{x:m[0]*g.x+m[2]*g.y+m[4],y:m[1]*g.x+m[3]*g.y+m[5]}}translate(g,m){return this.m[4]+=this.m[0]*g+this.m[2]*m,this.m[5]+=this.m[1]*g+this.m[3]*m,this}scale(g,m){return this.m[0]*=g,this.m[1]*=g,this.m[2]*=m,this.m[3]*=m,this}rotate(g){const m=Math.cos(g),_=Math.sin(g),T=this.m[0]*m+this.m[2]*_,k=this.m[1]*m+this.m[3]*_,R=this.m[0]*-_+this.m[2]*m,E=this.m[1]*-_+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(g,m){const _=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*g,R=this.m[3]+this.m[1]*g;return this.m[0]=_,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(g){const m=this.m[0]*g.m[0]+this.m[2]*g.m[1],_=this.m[1]*g.m[0]+this.m[3]*g.m[1],T=this.m[0]*g.m[2]+this.m[2]*g.m[3],k=this.m[1]*g.m[2]+this.m[3]*g.m[3],R=this.m[0]*g.m[4]+this.m[2]*g.m[5]+this.m[4],E=this.m[1]*g.m[4]+this.m[3]*g.m[5]+this.m[5];return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const g=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*g,_=-this.m[1]*g,T=-this.m[2]*g,k=this.m[0]*g,R=g*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=g*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const g=this.m[0],m=this.m[1],_=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=g*T-m*_,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(g!=0||m!=0){const F=Math.sqrt(g*g+m*m);A.rotation=m>0?Math.acos(g/F):-Math.acos(g/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(g*_+m*T)/E,A.skewY=0}else if(_!=0||T!=0){const F=Math.sqrt(_*_+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-_/F):-Math.acos(_/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(g*_+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",b="0",S="Konva warning: ",w="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let h=[];const p=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const g=c[0];return g==="#"||g==="."||g===g.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){h.push(c),h.length===1&&p(function(){const g=h;h=[],g.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,g){const m=e.Util.createImageElement();m.onload=function(){g(m)},m.src=c},_rgbToHex(c,g,m){return((1<<24)+(c<<16)+(g<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const g=parseInt(c,16);return{r:g>>16&255,g:g>>8&255,b:g&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=b+c;return d+c},getRGB(c){let g;return c in y?(g=y[c],{r:g[0],g:g[1],b:g[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(g=C.exec(c.replace(/ /g,"")),{r:parseInt(g[1],10),g:parseInt(g[2],10),b:parseInt(g[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const g=y[c.toLowerCase()];return g?{r:g[0],g:g[1],b:g[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const g=c.split(/ *, */).map(Number);return{r:g[0],g:g[1],b:g[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const g=c.split(/ *, */).map((m,_)=>m.slice(-1)==="%"?_===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:g[0],g:g[1],b:g[2],a:g[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[g,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),_=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=_+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,g){return!(g.x>c.x+c.width||g.x+g.widthc.y+c.height||g.y+g.height1?(R=m,E=_,A=(m-T)*(m-T)+(_-k)*(_-k)):(R=c+V*(m-c),E=g+V*(_-g),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,g,m){const _=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return g.forEach(function(k,R){if(!m&&R===g.length-1)return;const E=g[(R+1)%g.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bg.length){const R=g;g=c,c=R}for(let R=0;R{g.width=0,g.height=0})},drawRoundedRectPath(c,g,m,_){let T=0,k=0,R=0,E=0;typeof _=="number"?T=k=R=E=Math.min(_,g/2,m/2):(T=Math.min(_[0]||0,g/2,m/2),k=Math.min(_[1]||0,g/2,m/2),E=Math.min(_[2]||0,g/2,m/2),R=Math.min(_[3]||0,g/2,m/2)),c.moveTo(T,0),c.lineTo(g-k,0),c.arc(g-k,k,k,Math.PI*3/2,0,!1),c.lineTo(g,m-E),c.arc(g-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},Et={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=FJ;ht.alphaComponent=jJ;ht.getNumberValidator=zJ;ht.getNumberOrArrayOfNumbersValidator=VJ;ht.getNumberOrAutoValidator=BJ;ht.getStringValidator=UJ;ht.getStringOrGradientValidator=HJ;ht.getFunctionValidator=WJ;ht.getNumberArrayValidator=$J;ht.getBooleanValidator=GJ;ht.getComponentValidator=KJ;const _s=Tt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function FJ(e){return e>255?255:e<0?0:Math.round(e)}function jJ(e){return e>1?1:e<1e-4?1e-4:e}function zJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function VJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function BJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function GJ(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function KJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,b=t.Util._capitalize,S=n+b(a),w=o+b(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+b(h),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const b=this.attrs[a];return b===void 0?l:b},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),b=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[b]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(Et);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Xj=Lr,qJ=Tt;function YJ(e){const t=[],r=e.length,n=Xj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=XJ+d.join(eE)+QJ)):(i+=l.property,t||(i+=ree+l.val)),i+=eee;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=oee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,b=this._context;v.length===3?b.drawImage(t,r,n):v.length===5?b.drawImage(t,r,n,o,i):v.length===9&&b.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=tE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=YJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(z2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,cm=Et,X0=za,Gs=Tt,qi=z2,Xr=ht,Xb="absoluteOpacity",nb="allEventListeners",$l="absoluteTransform",rE="absoluteScale",Dc="canvas",fee="Change",pee="children",hee="konva",c4="listening",nE="mouseenter",oE="mouseleave",iE="set",aE="Shape",Qb=" ",lE="stage",Xs="transform",gee="Stage",d4="visible",vee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Qb);let mee=1,_t=class f4{constructor(t){this._id=mee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Qb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,b=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,w=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+w,l-=d,s-=d;const P=new X0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new X0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new X0.HitCanvas({pixelRatio:b,width:o,height:i}),h=P.getContext(),p=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),h.save(),p.save(),h.translate(-l,-s),p.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Xb),this._clearSelfAndDescendantCache(rE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,h.restore(),p.restore(),v&&(h.save(),h.beginPath(),h.rect(0,0,o,i),h.closePath(),h.setAttr("strokeStyle","red"),h.setAttr("lineWidth",5),h.stroke(),h.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==pee&&(n=iE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(c4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(d4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==gee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Xb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=f4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Ix.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Ix.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,b=n===this;if(v){a.save();const w=this.getAbsoluteTransform(n);let P=w.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),h=this.clipY();a.rect(C||0,h||0,l,s)}a.clip.apply(a,y),P=w.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!b&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(w){w[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(w){if(!w.visible())return;const P=w.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const b=this.find("Shape");let S=!1;for(let w=0;wce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",Z=ce=>{const J=re(ce);if(J==="pointer")return o.Konva.pointerEventsEnabled&&X.pointer;if(J==="touch")return X.touch;if(J==="mouse")return X.mouse};function oe(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const fe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class ge extends n.Container{constructor(J){super(oe(J)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{oe(this.attrs)}),this._checkVisibility()}_validateAdd(J){const ie=J.getType()==="Layer",ue=J.getType()==="FastLayer";ie||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const J=this.visible()?"":"none";this.content.style.display=J}setContainer(J){if(typeof J===v){if(J.charAt(0)==="."){const ue=J.slice(1);J=document.getElementsByClassName(ue)[0]}else{var ie;J.charAt(0)!=="#"?ie=J:ie=J.slice(1),J=document.getElementById(ie)}if(!J)throw"Can not find container in document with id "+ie}return this._setAttr("container",J),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),J.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const J=this.children,ie=J.length;for(let ue=0;ue-1&&e.stages.splice(ie,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const J=this._pointerPositions[0]||this._changedPointerPositions[0];return J?{x:J.x,y:J.y}:(t.Util.warn(fe),null)}_getPointerById(J){return this._pointerPositions.find(ie=>ie.id===J)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(J){J=J||{},J.x=J.x||0,J.y=J.y||0,J.width=J.width||this.width(),J.height=J.height||this.height();const ie=new i.SceneCanvas({width:J.width,height:J.height,pixelRatio:J.pixelRatio||1}),ue=ie.getContext()._context,Se=this.children;return(J.x||J.y)&&ue.translate(-1*J.x,-1*J.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Me=Ce._toKonvaCanvas(J);ue.drawImage(Me._canvas,J.x,J.y,Me.getWidth()/Me.getPixelRatio(),Me.getHeight()/Me.getPixelRatio())}),ie}getIntersection(J){if(!J)return null;const ie=this.children,ue=ie.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Me=ie[Ce].getIntersection(J);if(Me)return Me}return null}_resizeDOM(){const J=this.width(),ie=this.height();this.content&&(this.content.style.width=J+b,this.content.style.height=ie+b),this.bufferCanvas.setSize(J,ie),this.bufferHitCanvas.setSize(J,ie),this.children.forEach(ue=>{ue.setSize({width:J,height:ie}),ue.draw()})}add(J,...ie){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),J.setSize({width:this.width(),height:this.height()}),J.draw(),o.Konva.isBrowser&&this.content.appendChild(J.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(J){return s.hasPointerCapture(J,this)}setPointerCapture(J){s.setPointerCapture(J,this)}releaseCapture(J){s.releaseCapture(J,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([J,ie])=>{this.content.addEventListener(J,ue=>{this[ie](ue)},{passive:!1})})}_pointerenter(J){this.setPointersPositions(J);const ie=Z(J.type);ie&&this._fire(ie.pointerenter,{evt:J,target:this,currentTarget:this})}_pointerover(J){this.setPointersPositions(J);const ie=Z(J.type);ie&&this._fire(ie.pointerover,{evt:J,target:this,currentTarget:this})}_getTargetShape(J){let ie=this[J+"targetShape"];return ie&&!ie.getStage()&&(ie=null),ie}_pointerleave(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(ie.pointerout,{evt:J}),Se._fireAndBubble(ie.pointerleave,{evt:J}),this._fire(ie.pointerleave,{evt:J,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(ie.pointerleave,{evt:J,target:this,currentTarget:this}),this._fire(ie.pointerout,{evt:J,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Me=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Me||!Me.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Me.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Me,Me._fireAndBubble(ie.pointerdown,{evt:J,pointerId:Ce.id}),Se=!0;const Le=J.type.indexOf("touch")>=0;Me.preventDefault()&&J.cancelable&&Le&&J.preventDefault()}),Se||this._fire(ie.pointerdown,{evt:J,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(J){const ie=Z(J.type),ue=re(J.type);if(!ie||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&J.cancelable&&J.preventDefault(),this.setPointersPositions(J),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Me=!1;const Le=this._getTargetShape(ue);this._changedPointerPositions.forEach(Re=>{const be=s.getCapturedShape(Re.id)||this.getIntersection(Re),ke=Re.id,ze={evt:J,pointerId:ke},Ye=Le!==be;if(Ye&&Le&&(Le._fireAndBubble(ie.pointerout,{...ze},be),Le._fireAndBubble(ie.pointerleave,{...ze},be)),be){if(Ce[be._id])return;Ce[be._id]=!0}be&&be.isListening()?(Me=!0,Ye&&(be._fireAndBubble(ie.pointerover,{...ze},Le),be._fireAndBubble(ie.pointerenter,{...ze},Le),this[ue+"targetShape"]=be),be._fireAndBubble(ie.pointermove,{...ze})):Le&&(this._fire(ie.pointerover,{evt:J,target:this,currentTarget:this,pointerId:ke}),this[ue+"targetShape"]=null)}),Me||this._fire(ie.pointermove,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Me={};let Le=!1;this._changedPointerPositions.forEach(Re=>{const be=s.getCapturedShape(Re.id)||this.getIntersection(Re);if(be){if(be.releaseCapture(Re.id),Me[be._id])return;Me[be._id]=!0}const ke=Re.id,ze={evt:J,pointerId:ke};let Ye=!1;o.Konva["_"+ue+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),be&&be.isListening()?(Le=!0,this[ue+"ClickEndShape"]=be,be._fireAndBubble(ie.pointerup,{...ze}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===be&&(be._fireAndBubble(ie.pointerclick,{...ze}),Ye&&Ce&&Ce===be&&be._fireAndBubble(ie.pointerdblclick,{...ze}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(ie.pointerclick,{evt:J,target:this,currentTarget:this,pointerId:ke}),Ye&&this._fire(ie.pointerdblclick,{evt:J,target:this,currentTarget:this,pointerId:ke}))}),Le||this._fire(ie.pointerup,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,J.cancelable&&ue!=="touch"&&ue!=="pointer"&&J.preventDefault()}_contextmenu(J){this.setPointersPositions(J);const ie=this.getIntersection(this.getPointerPosition());ie&&ie.isListening()?ie._fireAndBubble(F,{evt:J}):this._fire(F,{evt:J,target:this,currentTarget:this})}_wheel(J){this.setPointersPositions(J);const ie=this.getIntersection(this.getPointerPosition());ie&&ie.isListening()?ie._fireAndBubble(ne,{evt:J}):this._fire(ne,{evt:J,target:this,currentTarget:this})}_pointercancel(J){this.setPointersPositions(J);const ie=s.getCapturedShape(J.pointerId)||this.getIntersection(this.getPointerPosition());ie&&ie._fireAndBubble(m,s.createEvent(J)),s.releaseCapture(J.pointerId)}_lostpointercapture(J){s.releaseCapture(J.pointerId)}setPointersPositions(J){const ie=this._getContentPosition();let ue=null,Se=null;J=J||window.event,J.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(J.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-ie.left)/ie.scaleX,y:(Ce.clientY-ie.top)/ie.scaleY})}),Array.prototype.forEach.call(J.changedTouches||J.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-ie.left)/ie.scaleX,y:(Ce.clientY-ie.top)/ie.scaleY})})):(ue=(J.clientX-ie.left)/ie.scaleX,Se=(J.clientY-ie.top)/ie.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}])}_setPointerPosition(J){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(J)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const J=this.content.getBoundingClientRect();return{top:J.top,left:J.left,scaleX:J.width/this.content.clientWidth||1,scaleY:J.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const J=this.container();if(!J)throw"Stage has no container. A container is required.";J.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),J.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(J){J.batchDraw()}),this}}e.Stage=ge,ge.prototype.nodeType=d,(0,l._registerNode)(ge),r.Factory.addGetterSetter(ge,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(Jj);var dm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Tt,r=Lr,n=Et,o=Cr,i=ht,a=Tt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",b="linearGradient",S="radialGradient";let w;function P(){return w||(w=r.Util.createCanvasElement().getContext("2d"),w)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function h(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function p(R){R.stroke()}function c(){this._clearCache(s)}function g(){this._clearCache(d)}function m(){this._clearCache(v)}function _(){this._clearCache(b)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(b,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let H=0;Hthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),H=this.getAbsoluteOpacity()!==1;if(V&&B&&H)return!0;const q=this.hasShadow(),ne=this.shadowForStrokeEnabled();return!!(V&&B&&q&&ne)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,H=this.getSelfRect(),ne=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=H.width+ne,W=H.height+ne,X=!E.skipShadow&&this.hasShadow(),re=X?this.shadowOffsetX():0,Z=X?this.shadowOffsetY():0,oe=Q+Math.abs(re),fe=W+Math.abs(Z),ge=X&&this.shadowBlur()||0,ce=oe+ge*2,J=fe+ge*2,ie={width:ce,height:J,x:-(ne/2+ge)+Math.min(re,0)+H.x,y:-(ne/2+ge)+Math.min(Z,0)+H.y};return V?ie:this._transformedRect(ie,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),H=B.getContext(),q=this._getCanvasCache(),ne=this.getSceneFunc(),Q=this.hasShadow(),W,X;const re=B.isCache,Z=A===this;if(!this.isVisible()&&!Z)return this;if(q){H.save();const fe=this.getAbsoluteTransform(A).getMatrix();return H.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5]),this._drawCachedSceneCanvas(H),H.restore(),this}if(!ne)return this;if(H.save(),this._useBufferCanvas()&&!re){W=this.getStage();const fe=F||W.bufferCanvas;X=fe.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var oe=this.getAbsoluteTransform(A).getMatrix();X.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),ne.call(this,X,this),X.restore();const ge=fe.pixelRatio;Q&&H._applyShadow(this),H._applyOpacity(this),H._applyGlobalCompositeOperation(this),H.drawImage(fe._canvas,0,0,fe.width/ge,fe.height/ge)}else{if(H._applyLineJoin(this),!Z){var oe=this.getAbsoluteTransform(A).getMatrix();H.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),H._applyOpacity(this),H._applyGlobalCompositeOperation(this)}Q&&H._applyShadow(this),ne.call(this,H,this)}return H.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,H=B&&B.getContext(),q=this.hitFunc()||this.sceneFunc(),ne=this._getCanvasCache(),Q=ne&&ne.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){H.save();const X=this.getAbsoluteTransform(A).getMatrix();return H.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(H),H.restore(),this}if(!q)return this;if(H.save(),H._applyLineJoin(this),!(this===A)){const X=this.getAbsoluteTransform(A).getMatrix();H.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return q.call(this,H,this),H.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),H=V.getWidth(),q=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,H,q);try{const ne=B.getImageData(0,0,H,q),Q=ne.data,W=Q.length,X=r.Util._hexToRgb(this.colorKey);for(let re=0;reE?(Q[re]=X.r,Q[re+1]=X.g,Q[re+2]=X.b,Q[re+3]=255):Q[re+3]=0;B.putImageData(ne,0,0)}catch(ne){r.Util.error("Unable to draw hit graph from cached scene canvas. "+ne.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=h,k.prototype._strokeFuncHit=p,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",g),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",_),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(dm,"__esModule",{value:!0});dm.Layer=void 0;const Hl=Lr,Lx=Ed,If=Cr,IT=Et,sE=za,xee=ht,See=_n,Cee=Tt,Pee="#",Tee="beforeDraw",Oee="draw",rz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],kee=rz.length;let Sh=class extends Lx.Container{constructor(t){super(t),this.canvas=new sE.SceneCanvas,this.hitCanvas=new sE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Tee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Lx.Container.prototype.drawScene.call(this,o,r),this._fire(Oee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Lx.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};dm.Layer=Sh;Sh.prototype.nodeType="Layer";(0,Cee._registerNode)(Sh);IT.Factory.addGetterSetter(Sh,"imageSmoothingEnabled",!0);IT.Factory.addGetterSetter(Sh,"clearBeforeDraw",!0);IT.Factory.addGetterSetter(Sh,"hitGraphEnabled",!0,(0,xee.getBooleanValidator)());var B2={};Object.defineProperty(B2,"__esModule",{value:!0});B2.FastLayer=void 0;const Eee=Lr,Mee=dm,Ree=Tt;class LT extends Mee.Layer{constructor(t){super(t),this.listening(!1),Eee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}B2.FastLayer=LT;LT.prototype.nodeType="FastLayer";(0,Ree._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Group=void 0;const Nee=Lr,Aee=Ed,Iee=Tt;let DT=class extends Aee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Nee.Util.throw("You may only add groups and shapes to groups.")}};Ch.Group=DT;DT.prototype.nodeType="Group";(0,Iee._registerNode)(DT);var Ph={};Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Animation=void 0;const Dx=Tt,uE=Lr,Fx=(function(){return Dx.glob.performance&&Dx.glob.performance.now?function(){return Dx.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Fx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,h=C._id,p=P.easing||e.Easings.Linear,c=!!P.yoyo;let g,m;typeof P.duration>"u"?g=.3:P.duration===0?g=.001:g=P.duration,this.node=C,this._id=v++;const _=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);_||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},_),this.tween=new b(m,function(T){y._tweenFunc(T)},p,0,1,g*1e3,c),this._addListeners(),S.attrs[h]||(S.attrs[h]={}),S.attrs[h][this._id]||(S.attrs[h][this._id]={}),S.tweens[h]||(S.tweens[h]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,h=C._id;let p,c,g,m,_;const T=S.tweens[h][P];T&&delete S.attrs[h][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(p=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(g=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const h in C)delete S.tweens[P][h];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(w){const P=w.onFinish;w.node=this,w.onFinish=function(){this.destroy(),P&&P()},new S(w).play()},e.Easings={BackEaseIn(w,P,y,C){return y*(w/=C)*w*((1.70158+1)*w-1.70158)+P},BackEaseOut(w,P,y,C){return y*((w=w/C-1)*w*((1.70158+1)*w+1.70158)+1)+P},BackEaseInOut(w,P,y,C){let h=1.70158;return(w/=C/2)<1?y/2*(w*w*(((h*=1.525)+1)*w-h))+P:y/2*((w-=2)*w*(((h*=1.525)+1)*w+h)+2)+P},ElasticEaseIn(w,P,y,C,h,p){let c=0;return w===0?P:(w/=C)===1?P+y:(p||(p=C*.3),!h||h0?t:r),v=a*r,b=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:b,width:v-d,height:S-b}}}U2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Dee._registerNode)(Ss);H2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"angle",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,W2.getBooleanValidator)());var $2={},fm={};Object.defineProperty(fm,"__esModule",{value:!0});fm.Line=void 0;const G2=Et,Fee=Tt,jee=_n,oz=ht;function p4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),b=r-d*(o-e),S=n-d*(i-t),w=r+v*(o-e),P=n+v*(i-t);return[b,S,w,P]}function dE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let w=0;w<20;w++)v=S*e.tValues[20][w]+S,d+=e.cValues[20][w]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],b=2*a[1]-2*a[0],S=2*l[1]-2*l[0],w=4*(d*d+v*v),P=4*(d*b+v*S),y=b*b+S*S;if(w===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*w),h=y/w,p=s+C,c=h-C*C,g=p*p+c>0?Math.sqrt(p*p+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,_=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((p+g)/(C+m))):0;return Math.sqrt(w)/2*(p*g-C*m+_)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),b=d*d+v*v;return Math.sqrt(b)}const o=(a,l,s)=>{const d=s.length-1;let v,b;if(d===0)return 0;if(a===0){b=0;for(let S=0;S<=d;S++)b+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return b}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,b=(a-s(v))/l,S=0;for(;d>.001;){const w=s(v+b),P=Math.abs(a-w)/l;if(P500)break}return v};e.t2length=i})(iz);Object.defineProperty(Th,"__esModule",{value:!0});Th.Path=void 0;const zee=Et,Vee=_n,Bee=Tt,Lf=iz;class hn extends Vee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,w=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(w,P),t.arc(0,0,S,s,s+d,1-b),t.scale(1/w,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],b=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-b)b;w-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],w,0);t.push(P.x,P.y)}else for(let w=d+S;wr[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],b=l[3],S=l[4],w=l[5],P=l[6];return S+=w*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,b,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,w,P,y,C,h,p,c,g,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var _=E.shift(),T=E.shift();if(s+=_,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let H=a.length-2;H>=0;H--)if(a[H].command==="M"){s=a[H].points[0]+_,d=a[H].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(w,P,s,d);break;case"t":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(w,P,s,d);break;case"A":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break;case"a":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],b=o[5],S=o[4]+b,w=Math.PI/180;if(Math.abs(v-S)S;s-=w)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+w;s1&&(l*=Math.sqrt(w),s*=Math.sqrt(w));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(b*b))/(l*l*(S*S)+s*s*(b*b)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*b/l,h=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,p=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},g=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[h,p,l,s,_,R,v,a]}}Th.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Bee._registerNode)(hn);zee.Factory.addGetterSetter(hn,"data");Object.defineProperty($2,"__esModule",{value:!0});$2.Arrow=void 0;const K2=Et,Uee=fm,az=ht,Hee=Tt,fE=Th;class Rd extends Uee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],w=fE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=fE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/w),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,b=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}$2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Hee._registerNode)(Rd);K2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,az.getNumberValidator)());K2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,az.getNumberValidator)());K2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);K2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Circle=void 0;const Wee=Et,$ee=_n,Gee=ht,Kee=Tt;let Oh=class extends $ee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};q2.Circle=Oh;Oh.prototype._centroid=!0;Oh.prototype.className="Circle";Oh.prototype._attrsAffectingSize=["radius"];(0,Kee._registerNode)(Oh);Wee.Factory.addGetterSetter(Oh,"radius",0,(0,Gee.getNumberValidator)());var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.Ellipse=void 0;const FT=Et,qee=_n,lz=ht,Yee=Tt;class Gu extends qee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}Y2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Yee._registerNode)(Gu);FT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);FT.Factory.addGetterSetter(Gu,"radiusX",0,(0,lz.getNumberValidator)());FT.Factory.addGetterSetter(Gu,"radiusY",0,(0,lz.getNumberValidator)());var X2={};Object.defineProperty(X2,"__esModule",{value:!0});X2.Image=void 0;const jx=Lr,Nd=Et,Xee=_n,Qee=Tt,pm=ht;let xl=class sz extends Xee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?jx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?jx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=jx.Util.createImageElement();o.onload=function(){const i=new sz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};X2.Image=xl;xl.prototype.className="Image";(0,Qee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,pm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,pm.getNumberValidator)());var eh={};Object.defineProperty(eh,"__esModule",{value:!0});eh.Tag=eh.Label=void 0;const Q2=Et,Zee=_n,Jee=Ch,jT=ht,uz=Tt,cz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],ete="Change.konva",tte="none",h4="up",g4="right",v4="down",m4="left",rte=cz.length;class zT extends Jee.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}J2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,ute._registerNode)(Id);dz.Factory.addGetterSetter(Id,"radius",0,(0,fz.getNumberValidator)());dz.Factory.addGetterSetter(Id,"sides",0,(0,fz.getNumberValidator)());var e5={};Object.defineProperty(e5,"__esModule",{value:!0});e5.Ring=void 0;const pz=Et,cte=_n,hz=ht,dte=Tt,pE=Math.PI*2;class Ld extends cte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,pE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),pE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}e5.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,dte._registerNode)(Ld);pz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,hz.getNumberValidator)());pz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,hz.getNumberValidator)());var t5={};Object.defineProperty(t5,"__esModule",{value:!0});t5.Sprite=void 0;const Dd=Et,fte=_n,pte=Ph,gz=ht,hte=Tt;class Sl extends fte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new pte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],b=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),b)if(a){const S=a[r],w=n*2;t.drawImage(b,l,s,d,v,S[w+0],S[w+1],d,v)}else t.drawImage(b,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",bte="center",vz="inherit",Q0="justify",wte="Change.konva",_te="2d",hE="-",mz="left",xte="text",Ste="Text",Cte="top",Pte="bottom",gE="middle",yz="normal",Tte="px ",ob=" ",Ote="right",vE="rtl",kte="word",Ete="char",mE="none",Vx="…",bz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Mte=bz.length;function Rte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ib;function Bx(){return ib||(ib=y4.Util.createCanvasElement().getContext(_te),ib)}function Nte(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Ate(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Ite(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends mte.Shape{constructor(t){super(Ite(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(p+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=y4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(xte,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return y4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,b,S;let w=Bx(),P=this.fontSize(),y;w.save(),w.font=this._getContextFont(),y=w.measureText(t),w.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(b=y.hangingBaseline)!==null&&b!==void 0?b:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+ob+this.fontVariant()+ob+(this.fontSize()+Tte)+Rte(this.fontFamily())}_addTextLine(t){this.align()===Q0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return Bx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` -`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,b=a-d*2,S=0,w=this.wrap(),P=w!==mE,y=w!==Ete&&P,C=this.ellipsis();this.textArr=[],Bx().font=this._getContextFont();const h=C?this._getTextWidth(Vx):0;for(let p=0,c=t.length;pv)for(;g.length>0;){let _=0,T=Bc(g).length,k="",R=0;for(;_>>1,A=Bc(g),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+h;V<=v?(_=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(g),V=Bc(k),B=F[V.length],H=B===ob||B===hE;let q;if(H&&R<=v)q=V.length;else{const ne=V.lastIndexOf(ob),Q=V.lastIndexOf(hE);q=Math.max(ne,Q)+1}q>0&&(_=q,k=F.slice(0,_).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(g=Bc(g).slice(_).join("").trimLeft(),g.length>0&&(m=this._getTextWidth(g),m<=v)){this._addTextLine(g),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(g),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&pb)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==mE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+Vx)r?null:Z0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Z0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Cz}`).join(" "),wE="nodesRect",Ute=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Hte={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},Wte="ontouchstart"in Pa.Konva._global;function $te(e,t,r){if(e==="rotater")return r;t+=tr.Util.degToRad(Hte[e]||0);const n=(tr.Util.radToDeg(t)%360+360)%360;return tr.Util._inRange(n,315+22.5,360)||tr.Util._inRange(n,0,22.5)?"ns-resize":tr.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":tr.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":tr.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":tr.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":tr.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":tr.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":tr.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(tr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const xw=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Gte(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Pz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function Kte(e,t){const r=Gte(e);return Pz(e,t,r)}function qte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(tr.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Ute.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(wE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(wE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Pz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),b=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();b.forEach(function(w){const P=S.point(w);r.push(P)})});const n=new tr.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),xw.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new zte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:Wte?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=$te(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new jte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*tr.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},b4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let _=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(_-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+_,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=qte(this.rotationSnaps(),k,R)-m.rotation,F=Kte(m,A);this._fitNodesInto(F,t);return}const b=this.shiftBehavior();let S;b==="inverted"?S=this.keepRatio()&&!t.shiftKey:b==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var h=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-left").x()>w.x?-1:1,y=this.findOne(".top-left").y()>w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(w.x-r),this.findOne(".top-left").y(w.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-w.x,2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-right").x()w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(w.x+r),this.findOne(".top-right").y(w.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(i.y()-w.y,2));var P=w.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(tr.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tr.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new tr.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:tr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new tr.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new tr.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const b=s.multiply(l.invert());this._nodes.forEach(S=>{var w;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new tr.Transform;C.multiply(P.copy().invert()).multiply(b).multiply(P).multiply(y);const h=C.decompose();S.setAttrs(h),(w=S.getLayer())===null||w===void 0||w.batchDraw()}),this.rotation(tr.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(tr.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(b=>{b.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*tr.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(b=>{v(b)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),bE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return yE.Node.prototype.toObject.call(this)}clone(t){return yE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}o5.Transformer=Bt;Bt.isTransforming=()=>b4>0;function Yte(e){return e instanceof Array||tr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){xw.indexOf(t)===-1&&tr.Util.warn("Unknown anchor name: "+t+". Available names are: "+xw.join(", "))}),e||[]}Bt.prototype.className="Transformer";(0,Vte._registerNode)(Bt);qt.Factory.addGetterSetter(Bt,"enabledAnchors",xw,Yte);qt.Factory.addGetterSetter(Bt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());qt.Factory.addGetterSetter(Bt,"resizeEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorSize",10,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateEnabled",!0);qt.Factory.addGetterSetter(Bt,"rotateLineVisible",!0);qt.Factory.addGetterSetter(Bt,"rotationSnaps",[]);qt.Factory.addGetterSetter(Bt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateAnchorCursor","crosshair");qt.Factory.addGetterSetter(Bt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"anchorFill","white");qt.Factory.addGetterSetter(Bt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderDash");qt.Factory.addGetterSetter(Bt,"keepRatio",!0);qt.Factory.addGetterSetter(Bt,"shiftBehavior","default");qt.Factory.addGetterSetter(Bt,"centeredScaling",!1);qt.Factory.addGetterSetter(Bt,"ignoreStroke",!1);qt.Factory.addGetterSetter(Bt,"padding",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"nodes");qt.Factory.addGetterSetter(Bt,"node");qt.Factory.addGetterSetter(Bt,"boundBoxFunc");qt.Factory.addGetterSetter(Bt,"anchorDragBoundFunc");qt.Factory.addGetterSetter(Bt,"anchorStyleFunc");qt.Factory.addGetterSetter(Bt,"shouldOverdrawWholeArea",!1);qt.Factory.addGetterSetter(Bt,"useSingleNodeRotation",!0);qt.Factory.backCompat(Bt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var i5={};Object.defineProperty(i5,"__esModule",{value:!0});i5.Wedge=void 0;const a5=Et,Xte=_n,Qte=Tt,Tz=ht,Zte=Tt;class Cs extends Xte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Qte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}i5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Zte._registerNode)(Cs);a5.Factory.addGetterSetter(Cs,"radius",0,(0,Tz.getNumberValidator)());a5.Factory.addGetterSetter(Cs,"angle",0,(0,Tz.getNumberValidator)());a5.Factory.addGetterSetter(Cs,"clockwise",!1);a5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var l5={};Object.defineProperty(l5,"__esModule",{value:!0});l5.Blur=void 0;const _E=Et,Jte=Cr,ere=ht;function xE(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const tre=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],rre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function nre(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,b,S,w,P,y,C,h,p,c,g,m,_,T,k,R,E,A,F;const V=t+t+1,B=n-1,H=o-1,q=t+1,ne=q*(q+1)/2,Q=new xE,W=tre[t],X=rre[t];let re=null,Z=Q,oe=null,fe=null;for(l=1;l>X,A!==0?(A=255/A,r[v]=(S*W>>X)*A,r[v+1]=(w*W>>X)*A,r[v+2]=(P*W>>X)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,w-=h,P-=p,y-=c,C-=oe.r,h-=oe.g,p-=oe.b,c-=oe.a,s=b+((s=i+t+1)>X,A>0?(A=255/A,r[s]=(S*W>>X)*A,r[s+1]=(w*W>>X)*A,r[s+2]=(P*W>>X)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,w-=h,P-=p,y-=c,C-=oe.r,h-=oe.g,p-=oe.b,c-=oe.a,s=i+((s=a+q)0&&nre(t,r)};l5.Blur=ore;_E.Factory.addGetterSetter(Jte.Node,"blurRadius",0,(0,ere.getNumberValidator)(),_E.Factory.afterSetFilter);var s5={};Object.defineProperty(s5,"__esModule",{value:!0});s5.Brighten=void 0;const SE=Et,ire=Cr,are=ht,lre=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};u5.Contrast=cre;CE.Factory.addGetterSetter(sre.Node,"contrast",0,(0,ure.getNumberValidator)(),CE.Factory.afterSetFilter);var c5={};Object.defineProperty(c5,"__esModule",{value:!0});c5.Emboss=void 0;const Lu=Et,d5=Cr,dre=Lr,Oz=ht,fre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,b=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:dre.Util.error("Unknown emboss direction: "+n)}do{const S=(b-1)*s;let w=d;b+w<1&&(w=0),b+w>l&&(w=0);const P=(b-1+w)*a*4;let y=a;do{const C=S+(y-1)*4;let h=v;y+h<1&&(h=0),y+h>a&&(h=0);const p=P+(y-1+h)*4,c=i[C]-i[p],g=i[C+1]-i[p+1],m=i[C+2]-i[p+2];let _=c;const T=_>0?_:-_,k=g>0?g:-g,R=m>0?m:-m;if(k>T&&(_=g),R>T&&(_=m),_*=t,o){const E=i[C]+_,A=i[C+1]+_,F=i[C+2]+_;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-_;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--b)};c5.Emboss=fre;Lu.Factory.addGetterSetter(d5.Node,"embossStrength",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossWhiteLevel",.5,(0,Oz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var f5={};Object.defineProperty(f5,"__esModule",{value:!0});f5.Enhance=void 0;const PE=Et,pre=Cr,hre=ht;function Wx(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const gre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,b;const S=this.enhance();if(S===0)return;for(let _=0;_o&&(o=i),s=t[_+1],sl&&(l=s),b=t[_+2],bv&&(v=b);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let w,P,y,C,h,p,c,g,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),h=l+S*(255-l),p=a-S*(a-0),g=v+S*(255-v),m=d-S*(d-0)):(w=(o+n)*.5,P=o+S*(o-w),y=n+S*(n-w),C=(l+a)*.5,h=l+S*(l-C),p=a+S*(a-C),c=(v+d)*.5,g=v+S*(v-c),m=d+S*(d-c));for(let _=0;_d?S:d;const w=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const w=a,P=i,y=0;let C,h;for(v=0;vt&&(g=c,m=0,_=-1),o=0;o=0&&w=0&&P=0&&w=0&&P=1020?255:0}return a}function Mre(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&w=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=g[a+0],s+=g[a+1],d+=g[a+2],v+=g[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=w;o=r))for(i=y;i=n||(a=(r*i+o)*4,g[a+0]=l,g[a+1]=s,g[a+2]=d,g[a+3]=v)}};w5.Pixelate=jre;EE.Factory.addGetterSetter(Dre.Node,"pixelSize",8,(0,Fre.getNumberValidator)(),EE.Factory.afterSetFilter);var _5={};Object.defineProperty(_5,"__esModule",{value:!0});_5.Posterize=void 0;const ME=Et,zre=Cr,Vre=ht,Bre=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter(GT.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter(GT.Node,"blue",0,Ure.RGBComponent,Cw.Factory.afterSetFilter);var S5={};Object.defineProperty(S5,"__esModule",{value:!0});S5.RGBA=void 0;const Rv=Et,C5=Cr,Wre=ht,$re=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Rv.Factory.addGetterSetter(C5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Rv.Factory.addGetterSetter(C5.Node,"blue",0,Wre.RGBComponent,Rv.Factory.afterSetFilter);Rv.Factory.addGetterSetter(C5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var P5={};Object.defineProperty(P5,"__esModule",{value:!0});P5.Sepia=void 0;const Gre=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),b>127&&(b=255-b),t[s]=d,t[s+1]=v,t[s+2]=b}while(--l)}while(--i)};T5.Solarize=Kre;var O5={};Object.defineProperty(O5,"__esModule",{value:!0});O5.Threshold=void 0;const RE=Et,qre=Cr,Yre=ht,Xre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.variant,m=p.color,_=p.shadow,T=p.blurred,k=p.fullWidth,R=p.className,E=p.children,A=P(p,["variant","color","shadow","blurred","fullWidth","className","children"]),F=(0,s.useTheme)().navbar,V=F.defaultProps,B=F.valid,H=F.styles,q=H.base,ne=H.variants;g=g??V.variant,m=m??V.color,_=_??V.shadow,T=T??V.blurred,k=k??V.fullWidth,R=(0,i.twMerge)(V.className||"",R);var Q,W=(0,o.default)((0,l.default)(q.navbar.initial),(Q={},b(Q,(0,l.default)(q.navbar.shadow),_),b(Q,(0,l.default)(q.navbar.blurred),T&&m==="white"),b(Q,(0,l.default)(q.navbar.fullWidth),k),Q)),X=(0,o.default)((0,l.default)(ne[(0,a.default)(B.variants,g,"filled")][(0,a.default)(B.colors,m,"white")])),re=(0,i.twMerge)((0,o.default)(W,X),R);return r.default.createElement("nav",S({},A,{ref:c,className:re}),E)});C.propTypes={variant:n.default.oneOf(v.propTypesVariant),color:n.default.oneOf(v.propTypesColor),shadow:v.propTypesShadow,blurred:v.propTypesBlurred,fullWidth:v.propTypesFullWidth,className:v.propTypesClassName,children:v.propTypesChildren},C.displayName="MaterialTailwind.Navbar";var h=Object.assign(C,{MobileNav:d.MobileNav})})(pj);var gj={},L2={},wh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesHandler:function(){return a},propTypesPlacement:function(){return l},propTypesOffset:function(){return s},propTypesDismiss:function(){return d},propTypesAnimate:function(){return v},propTypesContent:function(){return b},propTypesInteractive:function(){return S},propTypesClassName:function(){return w},propTypesChildren:function(){return P},propTypesContextValue:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool,a=r.default.func,l=n.propTypesPlacements,s=n.propTypesOffsetType,d=n.propTypesDismissType,v=n.propTypesAnimation,b=r.default.node,S=r.default.bool,w=r.default.string,P=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:v.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(wh);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,d){for(var v in d)Object.defineProperty(s,v,{enumerable:!0,get:d[v]})}t(e,{PopoverContext:function(){return i},usePopover:function(){return a},PopoverContextProvider:function(){return l}});var r=o(Y),n=wh;function o(s){return s&&s.__esModule?s:{default:s}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.PopoverContext";function a(){var s=r.default.useContext(i);if(!s)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return s}var l=function(s){var d=s.value,v=s.children;return r.default.createElement(i.Provider,{value:d},v)};l.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},l.displayName="MaterialTailwind.PopoverContextProvider"})(L2);var vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,C){for(var h in C)Object.defineProperty(y,h,{enumerable:!0,get:C[h]})}t(e,{PopoverHandler:function(){return w},default:function(){return P}});var r=l(Y),n=wn,o=L2,i=wh;function a(y,C,h){return C in y?Object.defineProperty(y,C,{value:h,enumerable:!0,configurable:!0,writable:!0}):y[C]=h,y}function l(y){return y&&y.__esModule?y:{default:y}}function s(y){for(var C=1;C=0)&&Object.prototype.propertyIsEnumerable.call(y,p)&&(h[p]=y[p])}return h}function S(y,C){if(y==null)return{};var h={},p=Object.keys(y),c,g;for(g=0;g=0)&&(h[c]=y[c]);return h}var w=r.default.forwardRef(function(y,C){var h=y.children,p=b(y,["children"]),c=(0,o.usePopover)(),g=c.getReferenceProps,m=c.reference,_=(0,n.useMergeRefs)([C,m]);return r.default.cloneElement(h,s({},g(v(s({},p),{ref:_}))))});w.propTypes={children:i.propTypesChildren},w.displayName="MaterialTailwind.PopoverHandler";var P=w})(vj);var mj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{PopoverContent:function(){return c},default:function(){return g}});var r=w(Y),n=wn,o=An,i=w(pt),a=Je,l=w(et),s=Xe,d=L2,v=wh;function b(m,_,T){return _ in m?Object.defineProperty(m,_,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[_]=T,m}function S(){return S=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function p(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}var c=r.default.forwardRef(function(m,_){var T=m.children,k=m.className,R=h(m,["children","className"]),E=(0,s.useTheme)().popover,A=E.defaultProps,F=E.styles.base,V=(0,d.usePopover)(),B=V.open,H=V.strategy,q=V.x,ne=V.y,Q=V.context,W=V.floating,X=V.getFloatingProps,re=V.appliedAnimation,Z=V.labelId,oe=V.descriptionId;k=(0,a.twMerge)(A.className||"",k);var fe=(0,a.twMerge)((0,i.default)((0,l.default)(F)),k),ge=(0,n.useMergeRefs)([_,W]),ce=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ce,null,B&&r.default.createElement(n.FloatingFocusManager,{context:Q},r.default.createElement(o.m.div,S({},X(C(P({},R),{ref:ge,className:fe,style:{position:H,top:ne??"",left:q??""},"aria-labelledby":Z,"aria-describedby":oe})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:re}),T)))))});c.propTypes={className:v.propTypesClassName,children:v.propTypesChildren},c.displayName="MaterialTailwind.PopoverContent";var g=c})(mj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Popover:function(){return p},PopoverHandler:function(){return d.PopoverHandler},PopoverContent:function(){return v.PopoverContent},usePopover:function(){return l.usePopover},default:function(){return c}});var r=w(Y),n=w(ot),o=wn,i=w(Xn),a=Xe,l=L2,s=wh,d=vj,v=mj;function b(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.value,T=h.label,k=h.className,R=h.barProps,E=w(h,["variant","color","size","value","label","className","barProps"]),A=(0,s.useTheme)().progress,F=A.defaultProps,V=A.valid,B=A.styles,H=B.base,q=B.variants,ne=B.sizes;c=c??F.variant,g=g??F.color,m=m??F.size,T=T??F.label,R=R??F.barProps,k=(0,i.twMerge)(F.className||"",k);var Q=(0,l.default)(q[(0,a.default)(V.variants,c,"filled")][(0,a.default)(V.colors,g,"gray")]),W=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].container.initial),X=(0,o.default)((0,l.default)(H.container.initial),W),re=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].container.withLabel),Z=(0,o.default)((0,l.default)(H.container.withLabel),re),oe=(0,l.default)(ne[(0,a.default)(V.sizes,m,"md")].bar),fe=(0,o.default)((0,l.default)(H.bar),oe),ge=(0,i.twMerge)((0,o.default)(X,v({},Z,T)),k),ce=(0,i.twMerge)((0,o.default)(fe,Q),R==null?void 0:R.className);return r.default.createElement("div",b({},E,{ref:p,className:ge}),r.default.createElement("div",b({},R,{className:ce,style:{width:"".concat(_,"%")}}),T&&"".concat(_,"% ").concat(typeof T=="string"?T:"")))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),size:n.default.oneOf(d.propTypesSize),value:d.propTypesValue,label:d.propTypesLabel,barProps:d.propTypesBarProps,className:d.propTypesClassName},y.displayName="MaterialTailwind.Progress";var C=y})(yj);var bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Radio:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.icon,T=p.ripple,k=p.className,R=p.disabled,E=p.containerProps,A=p.labelProps,F=p.iconProps,V=p.inputRef,B=P(p,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),H=(0,d.useTheme)().radio,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,m=m??q.label,_=_??q.icon,T=T??q.ripple,R=R??q.disabled,E=E??q.containerProps,A=A??q.labelProps,F=F??q.iconProps,k=(0,a.twMerge)(q.className||"",k);var Z=T!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),R)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),E==null?void 0:E.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),k),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className),J=(0,i.default)((0,i.default)((0,s.default)(W.icon)),X[(0,l.default)(ne.colors,g,"gray")].color,F==null?void 0:F.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("label",S({},E,{className:fe,htmlFor:B.id||re,onMouseDown:function(ie){var ue=E==null?void 0:E.onMouseDown;return T&&Z.create(ie,"dark"),typeof ue=="function"&&ue(ie)}}),r.default.createElement("input",S({},B,{ref:V,type:"radio",disabled:R,className:ge,id:B.id||re})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),m&&r.default.createElement("label",S({},A,{className:ce,htmlFor:B.id||re}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,icon:v.propTypesIcon,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject},C.displayName="MaterialTailwind.Radio";var h=C})(bj);var wj={},OT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,b){for(var S in b)Object.defineProperty(v,S,{enumerable:!0,get:b[S]})}t(e,{SelectContext:function(){return a},useSelect:function(){return l},usePrevious:function(){return s},SelectContextProvider:function(){return d}});var r=i(Y),n=An,o=$v;function i(v){return v&&v.__esModule?v:{default:v}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.SelectContext";function l(){var v=r.default.useContext(a);if(v===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return v}function s(v){var b=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){b.current=v},[v]),b.current}var d=function(v){var b=v.value,S=v.children;return r.default.createElement(a.Provider,{value:b},S)};d.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},d.displayName="MaterialTailwind.SelectContextProvider"})(OT);var _j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SelectOption:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=Xe,l=OT,s=$v;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=function(C){var h=function(){Q(_),re(g),X(!1),oe(null)},p=function(Me){(Me.key==="Enter"||Me.key===" "&&!ge.current.typing)&&(Me.preventDefault(),h())},c=C.value,g=c===void 0?"":c,m=C.index,_=m===void 0?0:m,T=C.disabled,k=T===void 0?!1:T,R=C.className,E=R===void 0?"":R,A=C.children,F=S(C,["value","index","disabled","className","children"]),V=(0,a.useTheme)().select,B=V.styles,H=B.base,q=(0,l.useSelect)(),ne=q.selectedIndex,Q=q.setSelectedIndex,W=q.listRef,X=q.setOpen,re=q.onChange,Z=q.activeIndex,oe=q.setActiveIndex,fe=q.getItemProps,ge=q.dataRef,ce=(0,i.default)(H.option.initial),J=(0,i.default)(H.option.active),ie=(0,i.default)(H.option.disabled),ue,Se=(0,o.twMerge)((0,n.default)(ce,(ue={},d(ue,J,ne===_),d(ue,ie,k),ue)),E??"");return r.default.createElement("li",v({},F,{role:"option",ref:function(Ce){return W.current[_]=Ce},className:Se,disabled:k,tabIndex:Z===_?0:1,"aria-selected":Z===_&&ne===_,"data-selected":ne===_},fe({onClick:function(Ce){var Me=F==null?void 0:F.onClick;typeof Me=="function"&&(Me(Ce),h()),h()},onKeyDown:function(Ce){var Me=F==null?void 0:F.onKeyDown;typeof Me=="function"&&(Me(Ce),p(Ce)),p(Ce)}})),A)};P.propTypes={value:s.propTypesValue,index:s.propTypesIndex,disabled:s.propTypesDisabled,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.SelectOption";var y=P})(_j);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(W,X){for(var re in X)Object.defineProperty(W,re,{enumerable:!0,get:X[re]})}t(e,{Select:function(){return ne},Option:function(){return P.SelectOption},useSelect:function(){return S.useSelect},usePrevious:function(){return S.usePrevious},default:function(){return Q}});var r=g(Y),n=g(ot),o=wn,i=An,a=g(pt),l=Je,s=g(Xn),d=g(Sr),v=g(et),b=Xe,S=OT,w=$v,P=_j;function y(W,X){(X==null||X>W.length)&&(X=W.length);for(var re=0,Z=new Array(X);re=0)&&Object.prototype.propertyIsEnumerable.call(W,Z)&&(re[Z]=W[Z])}return re}function V(W,X){if(W==null)return{};var re={},Z=Object.keys(W),oe,fe;for(fe=0;fe=0)&&(re[oe]=W[oe]);return re}function B(W,X){return C(W)||_(W,X)||q(W,X)||T()}function H(W){return h(W)||m(W)||q(W)||k()}function q(W,X){if(W){if(typeof W=="string")return y(W,X);var re=Object.prototype.toString.call(W).slice(8,-1);if(re==="Object"&&W.constructor&&(re=W.constructor.name),re==="Map"||re==="Set")return Array.from(re);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return y(W,X)}}var ne=r.default.forwardRef(function(W,X){var re=W.variant,Z=W.color,oe=W.size,fe=W.label,ge=W.error,ce=W.success,J=W.arrow,ie=W.value,ue=W.onChange,Se=W.selected,Ce=W.offset,Me=W.dismiss,Le=W.animate,Re=W.lockScroll,be=W.labelProps,ke=W.menuProps,ze=W.className,Ye=W.disabled,Mt=W.name,gt=W.children,xt=W.containerProps,zt=F(W,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),Ht,mt=(0,b.useTheme)().select,Ot=mt.defaultProps,Jt=mt.valid,Dr=mt.styles,ln=Dr.base,Qn=Dr.variants,Ln=B(r.default.useState("close"),2),nr=Ln[0],mo=Ln[1];re=re??Ot.variant,Z=Z??Ot.color,oe=oe??Ot.size,fe=fe??Ot.label,ge=ge??Ot.error,ce=ce??Ot.success,J=J??Ot.arrow,ie=ie??Ot.value,ue=ue??Ot.onChange,Se=Se??Ot.selected,Ce=Ce??Ot.offset,Me=Me??Ot.dismiss,Le=Le??Ot.animate,be=be??Ot.labelProps,ke=ke??Ot.menuProps;var Yt;xt=(Yt=(0,s.default)(xt,(Ot==null?void 0:Ot.containerProps)||{}))!==null&&Yt!==void 0?Yt:Ot.containerProps,ze=(0,l.twMerge)(Ot.className||"",ze),gt=Array.isArray(gt)?gt:[gt];var yo=r.default.useRef([]),Qr,Cl=r.default.useRef(H((Qr=r.default.Children.map(gt,function(at){var rt=at.props;return rt==null?void 0:rt.value}))!==null&&Qr!==void 0?Qr:[])),da=B(r.default.useState(!1),2),Sn=da[0],Pl=da[1],Ka=B(r.default.useState(null),2),sn=Ka[0],Li=Ka[1],fa=B(r.default.useState(0),2),$r=fa[0],Di=fa[1],Ts=B(r.default.useState(!1),2),pa=Ts[0],Dn=Ts[1],Fi=(0,S.usePrevious)(sn),bo=(0,o.useFloating)({placement:"bottom-start",open:Sn,onOpenChange:Pl,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(rt){var St=rt.rects,cn=rt.elements,wr,wo;Object.assign(cn==null||(wr=cn.floating)===null||wr===void 0?void 0:wr.style,{width:"".concat(St==null||(wo=St.reference)===null||wo===void 0?void 0:wo.width,"px"),zIndex:99})},padding:20})]}),ni=bo.x,ha=bo.y,Os=bo.strategy,ga=bo.refs,le=bo.context;r.default.useEffect(function(){Di(Math.max(0,Cl.current.indexOf(ie)+1))},[ie]);var he=ga.floating,xe=(0,o.useInteractions)([(0,o.useClick)(le),(0,o.useRole)(le,{role:"listbox"}),(0,o.useDismiss)(le,R({},Me)),(0,o.useListNavigation)(le,{listRef:yo,activeIndex:sn,selectedIndex:$r,onNavigate:Li,loop:!0}),(0,o.useTypeahead)(le,{listRef:Cl,activeIndex:sn,selectedIndex:$r,onMatch:Sn?Li:Di})]),Oe=xe.getReferenceProps,Ue=xe.getFloatingProps,Qe=xe.getItemProps;(0,i.useIsomorphicLayoutEffect)(function(){var at=he.current;if(Sn&&pa&&at){var rt=sn!=null?yo.current[sn]:$r!=null?yo.current[$r]:null;if(rt&&Fi!=null){var St,cn,wr=(cn=(St=yo.current[Fi])===null||St===void 0?void 0:St.offsetHeight)!==null&&cn!==void 0?cn:0,wo=at.offsetHeight,qa=rt.offsetTop,Qu=qa+wr;qawo+at.scrollTop&&(at.scrollTop+=Qu-wo-at.scrollTop+5)}}},[Sn,pa,Fi,sn]);var ut=r.default.useMemo(function(){return{selectedIndex:$r,setSelectedIndex:Di,listRef:yo,setOpen:Pl,onChange:ue||function(){},activeIndex:sn,setActiveIndex:Li,getItemProps:Qe,dataRef:le.dataRef}},[$r,ue,sn,Qe,le.dataRef]);r.default.useEffect(function(){mo(Sn?"open":!Sn&&$r||!Sn&&ie?"withValue":"close")},[Sn,ie,$r,Se]);var je=Qn[(0,d.default)(Jt.variants,re,"outlined")],Ze=je.sizes[(0,d.default)(Jt.sizes,oe,"md")],$e=je.error.select,Ge=je.success.select,kt=je.colors.select[(0,d.default)(Jt.colors,Z,"gray")],Nt=je.error.label,Ut=je.success.label,bt=je.colors.label[(0,d.default)(Jt.colors,Z,"gray")],dr=je.states[nr],or=(0,a.default)((0,v.default)(ln.container),(0,v.default)(Ze.container),xt==null?void 0:xt.className),Fn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.select),(0,v.default)(je.base.select),(0,v.default)(dr.select),(0,v.default)(Ze.select),p({},(0,v.default)(kt[nr]),!ge&&!ce),p({},(0,v.default)($e.initial),ge),p({},(0,v.default)($e.states[nr]),ge),p({},(0,v.default)(Ge.initial),ce),p({},(0,v.default)(Ge.states[nr]),ce)),ze),Fr,jn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.label),(0,v.default)(je.base.label),(0,v.default)(dr.label),(0,v.default)(Ze.label.initial),(0,v.default)(Ze.label.states[nr]),p({},(0,v.default)(bt[nr]),!ge&&!ce),p({},(0,v.default)(Nt.initial),ge),p({},(0,v.default)(Nt.states[nr]),ge),p({},(0,v.default)(Ut.initial),ce),p({},(0,v.default)(Ut.states[nr]),ce)),(Fr=be.className)!==null&&Fr!==void 0?Fr:""),Zn=(0,a.default)((0,v.default)(ln.arrow.initial),p({},(0,v.default)(ln.arrow.active),Sn)),ji,zn=(0,l.twMerge)((0,a.default)((0,v.default)(ln.menu)),(ji=ke.className)!==null&&ji!==void 0?ji:""),un=(0,a.default)("absolute top-2/4 -translate-y-2/4",re==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),Zr={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},At=(0,s.default)(Zr,Le),He=i.AnimatePresence;r.default.useEffect(function(){ie&&!ue&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[ie,ue]);var It=r.default.createElement(o.FloatingFocusManager,{context:le,modal:!1},r.default.createElement(i.m.ul,c({},Ue(A(R({},ke),{ref:ga.setFloating,role:"listbox",className:zn,style:{position:Os,top:ha??0,left:ni??0,overflow:"auto"},onPointerEnter:function(rt){var St=ke==null?void 0:ke.onPointerEnter;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onPointerMove:function(rt){var St=ke==null?void 0:ke.onPointerMove;typeof St=="function"&&(St(rt),Dn(!1)),Dn(!1)},onKeyDown:function(rt){var St=ke==null?void 0:ke.onKeyDown;typeof St=="function"&&(St(rt),Dn(!0)),Dn(!0)}})),{initial:"unmount",exit:"unmount",animate:Sn?"mount":"unmount",variants:At}),r.default.Children.map(gt,function(at,rt){var St;return r.default.isValidElement(at)&&r.default.cloneElement(at,A(R({},at.props),{index:((St=at.props)===null||St===void 0?void 0:St.index)||rt+1,id:"material-tailwind-select-".concat(rt)}))})));return r.default.createElement(S.SelectContextProvider,{value:ut},r.default.createElement("div",c({},xt,{ref:X,className:or}),r.default.createElement("button",c({type:"button"},Oe(A(R({},zt),{ref:ga.setReference,className:Fn,disabled:Ye,name:Mt}))),typeof Se=="function"?r.default.createElement("span",{className:un},Se(gt[$r-1],$r-1)):ie&&!ue?r.default.createElement("span",{className:un},ie):r.default.createElement("span",c({},(Ht=gt[$r-1])===null||Ht===void 0?void 0:Ht.props,{className:un})),r.default.createElement("div",{className:Zn},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",c({},be,{className:jn}),fe),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(He,null,Sn&&r.default.createElement(r.default.Fragment,null,Re?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},It):It)))))});ne.propTypes={variant:n.default.oneOf(w.propTypesVariant),color:n.default.oneOf(w.propTypesColor),size:n.default.oneOf(w.propTypesSize),label:w.propTypesLabel,error:w.propTypesError,success:w.propTypesSuccess,arrow:w.propTypesArrow,value:w.propTypesValue,onChange:w.propTypesOnChange,selected:w.propTypesSelected,offset:w.propTypesOffset,dismiss:w.propTypesDismiss,animate:w.propTypesAnimate,lockScroll:w.propTypesLockScroll,labelProps:w.propTypesLabelProps,menuProps:w.propTypesMenuProps,className:w.propTypesClassName,disabled:w.propTypesDisabled,name:w.propTypesName,children:w.propTypesChildren,containerProps:w.propTypesContainerProps},ne.displayName="MaterialTailwind.Select";var Q=Object.assign(ne,{Option:P.SelectOption})})(wj);var xj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Switch:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(fh),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=Sd;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.label,_=p.ripple,T=p.className,k=p.disabled,R=p.containerProps,E=p.circleProps,A=p.labelProps,F=p.inputRef,V=P(p,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),B=(0,d.useTheme)(),H=B.switch,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.colors,re=r.default.useId();g=g??q.color,_=_??q.ripple,k=k??q.disabled,R=R??q.containerProps,A=A??q.labelProps,E=E??q.circleProps,T=(0,a.twMerge)(q.className||"",T);var Z=_!==void 0&&new o.default,oe=(0,i.default)((0,s.default)(W.root),b({},(0,s.default)(W.disabled),k)),fe=(0,a.twMerge)((0,i.default)((0,s.default)(W.container)),R==null?void 0:R.className),ge=(0,a.twMerge)((0,i.default)((0,s.default)(W.input),(0,s.default)(X[(0,l.default)(ne.colors,g,"gray")])),T),ce=(0,a.twMerge)((0,i.default)((0,s.default)(W.circle),X[(0,l.default)(ne.colors,g,"gray")].circle,X[(0,l.default)(ne.colors,g,"gray")].before),E==null?void 0:E.className),J=(0,i.default)((0,s.default)(W.ripple)),ie=(0,a.twMerge)((0,i.default)((0,s.default)(W.label)),A==null?void 0:A.className);return r.default.createElement("div",{ref:c,className:oe},r.default.createElement("div",S({},R,{className:fe}),r.default.createElement("input",S({},V,{ref:F,type:"checkbox",disabled:k,id:V.id||re,className:ge})),r.default.createElement("label",S({},E,{htmlFor:V.id||re,className:ce}),_&&r.default.createElement("div",{className:J,onMouseDown:function(ue){var Se=R==null?void 0:R.onMouseDown;return _&&Z.create(ue,"dark"),typeof Se=="function"&&Se(ue)}}))),m&&r.default.createElement("label",S({},A,{htmlFor:V.id||re,className:ie}),m))});C.propTypes={color:n.default.oneOf(v.propTypesColor),label:v.propTypesLabel,ripple:v.propTypesRipple,className:v.propTypesClassName,disabled:v.propTypesDisabled,containerProps:v.propTypesObject,labelProps:v.propTypesObject,circleProps:v.propTypesObject},C.displayName="MaterialTailwind.Switch";var h=C})(xj);var Sj={},_h={},kd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{propTypesId:function(){return i},propTypesValue:function(){return a},propTypesAnimate:function(){return l},propTypesDisabled:function(){return s},propTypesClassName:function(){return d},propTypesOrientation:function(){return v},propTypesIndicator:function(){return b},propTypesChildren:function(){return S}});var r=o(ot),n=br;function o(w){return w&&w.__esModule?w:{default:w}}var i=r.default.string,a=r.default.oneOfType([r.default.string,r.default.number]).isRequired,l=n.propTypesAnimation,s=r.default.bool,d=r.default.string,v=r.default.oneOf(["horizontal","vertical"]),b=r.default.instanceOf(Object),S=r.default.node.isRequired})(kd);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{TabsContext:function(){return C},useTabs:function(){return h},TabsContextProvider:function(){return p},setId:function(){return c},setActive:function(){return g},setAnimation:function(){return m},setIndicator:function(){return _},setIsInitial:function(){return T},setOrientation:function(){return k}});var r=l(Y),n=kd;function o(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.value,g=h.className,m=h.activeClassName,_=h.disabled,T=h.children,k=w(h,["value","className","activeClassName","disabled","children"]),R=(0,l.useTheme)(),E=R.tab,A=E.defaultProps,F=E.styles.base,V=(0,s.useTabs)(),B=V.state,H=V.dispatch,q=B.id,ne=B.active,Q=B.indicatorProps;_=_??A.disabled,g=(0,i.twMerge)(A.className||"",g),m=(0,i.twMerge)(A.activeClassName||"",m);var W,X=(0,i.twMerge)((0,o.default)((0,a.default)(F.tab.initial),(W={},v(W,(0,a.default)(F.tab.disabled),_),v(W,m,ne===c),W)),g),re,Z=(0,i.twMerge)((0,o.default)((0,a.default)(F.indicator)),(re=Q==null?void 0:Q.className)!==null&&re!==void 0?re:"");return r.default.createElement("li",b({},k,{ref:p,role:"tab",className:X,onClick:function(oe){var fe=k==null?void 0:k.onClick;typeof fe=="function"&&((0,s.setActive)(H,c),(0,s.setIsInitial)(H,!1),fe(oe)),(0,s.setIsInitial)(H,!1),(0,s.setActive)(H,c)},"data-value":c}),r.default.createElement("div",{className:"z-20 text-inherit"},T),ne===c&&r.default.createElement(n.motion.div,b({},Q,{transition:{duration:.5},className:Z,layoutId:q})))});y.propTypes={value:d.propTypesValue,className:d.propTypesClassName,disabled:d.propTypesDisabled,children:d.propTypesChildren},y.displayName="MaterialTailwind.Tab";var C=y})(Cj);var Pj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{TabsBody:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=S(Xn),i=S(pt),a=Je,l=S(et),s=Xe,d=_h,v=kd;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.animate,g=h.className,m=h.children,_=w(h,["animate","className","children"]),T=(0,s.useTheme)().tabsBody,k=T.defaultProps,R=T.styles.base,E=(0,d.useTabs)().dispatch;c=c??k.animate,g=(0,a.twMerge)(k.className||"",g);var A=(0,a.twMerge)((0,i.default)((0,l.default)(R)),g),F=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),V=r.default.useMemo(function(){return(0,o.default)(F,c)},[c,F]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,d.setAnimation)(E,V)},[V,E]),r.default.createElement("div",b({},_,{ref:p,className:A}),m)});y.propTypes={animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var C=y})(Pj);var Tj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabsHeader:function(){return P},default:function(){return y}});var r=b(Y),n=b(pt),o=Je,i=b(et),a=Xe,l=_h,s=kd;function d(C,h,p){return h in C?Object.defineProperty(C,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):C[h]=p,C}function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.indicatorProps,c=C.className,g=C.children,m=S(C,["indicatorProps","className","children"]),_=(0,a.useTheme)().tabsHeader,T=_.defaultProps,k=_.styles,R=(0,l.useTabs)(),E=R.state,A=R.dispatch,F=E.orientation;r.default.useEffect(function(){(0,l.setIndicator)(A,p)},[A,p]),c=(0,o.twMerge)(T.className||"",c);var V=(0,o.twMerge)((0,n.default)((0,i.default)(k.base),d({},k[F]&&(0,i.default)(k[F]),F)),c);return r.default.createElement("nav",null,r.default.createElement("ul",v({},m,{ref:h,role:"tablist",className:V}),g))});P.propTypes={indicatorProps:s.propTypesIndicator,className:s.propTypesClassName,children:s.propTypesChildren},P.displayName="MaterialTailwind.TabsHeader";var y=P})(Tj);var Oj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{TabPanel:function(){return P},default:function(){return y}});var r=b(Y),n=An,o=b(pt),i=Je,a=b(et),l=Xe,s=_h,d=kd;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.value,c=C.className,g=C.children,m=S(C,["value","className","children"]),_=(0,l.useTheme)().tabPanel,T=_.defaultProps,k=_.styles.base,R=(0,s.useTabs)().state,E=R.active,A=R.appliedAnimation,F=R.isInitial;c=(0,i.twMerge)(T.className||"",c);var V=(0,i.twMerge)((0,o.default)((0,a.default)(k)),c),B=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,{exitBeforeEnter:!0},r.default.createElement(n.m.div,v({},m,{ref:h,role:"tabpanel",className:V,initial:"unmount",exit:"unmount",animate:E===p?"mount":F?"initial":"unmount",variants:A,"data-value":p}),g)))});P.propTypes={value:d.propTypesValue,className:d.propTypesClassName,children:d.propTypesChildren},P.displayName="MaterialTailwind.TabPanel";var y=P})(Oj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Tabs:function(){return p},Tab:function(){return s.Tab},TabsBody:function(){return d.TabsBody},TabsHeader:function(){return v.TabsHeader},TabPanel:function(){return b.TabPanel},useTabs:function(){return l.useTabs},default:function(){return c}});var r=y(Y),n=y(pt),o=Je,i=y(et),a=Xe,l=_h,s=Cj,d=Pj,v=Tj,b=Oj,S=kd;function w(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function P(){return P=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.value,T=g.className,k=g.orientation,R=g.children,E=C(g,["value","className","orientation","children"]),A=(0,a.useTheme)().tabs,F=A.defaultProps,V=A.styles,B=r.default.useId();k=k??F.orientation,T=(0,o.twMerge)(F.className||"",T);var H=(0,o.twMerge)((0,n.default)((0,i.default)(V.base),w({},V[k]&&(0,i.default)(V[k]),k)),T);return r.default.createElement(l.TabsContextProvider,{id:B,value:_,orientation:k},r.default.createElement("div",P({},E,{ref:m,className:H}),R))});p.propTypes={id:S.propTypesId,value:S.propTypesValue,className:S.propTypesClassName,orientation:S.propTypesOrientation,children:S.propTypesChildren},p.displayName="MaterialTailwind.Tabs";var c=Object.assign(p,{Tab:s.Tab,Body:d.TabsBody,Header:v.TabsHeader,Panel:b.TabPanel})})(Sj);var kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Textarea:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=S(Sr),a=S(et),l=Xe,s=Wv,d=Je;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.color,m=h.size,_=h.label,T=h.error,k=h.success,R=h.resize,E=h.labelProps,A=h.containerProps,F=h.shrink,V=h.className,B=w(h,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),H=(0,l.useTheme)().textarea,q=H.defaultProps,ne=H.valid,Q=H.styles,W=Q.base,X=Q.variants;c=c??q.variant,m=m??q.size,g=g??q.color,_=_??q.label,E=E??q.labelProps,A=A??q.containerProps,F=F??q.shrink,V=(0,d.twMerge)(q.className||"",V);var re=X[(0,i.default)(ne.variants,c,"outlined")],Z=(0,a.default)(re.error.textarea),oe=(0,a.default)(re.success.textarea),fe=(0,a.default)(re.shrink.textarea),ge=(0,a.default)(re.colors.textarea[(0,i.default)(ne.colors,g,"gray")]),ce=(0,a.default)(re.error.label),J=(0,a.default)(re.success.label),ie=(0,a.default)(re.shrink.label),ue=(0,a.default)(re.colors.label[(0,i.default)(ne.colors,g,"gray")]),Se=(0,o.default)((0,a.default)(W.container),A==null?void 0:A.className),Ce=(0,o.default)((0,a.default)(W.textarea),(0,a.default)(re.base.textarea),(0,a.default)(re.sizes[(0,i.default)(ne.sizes,m,"md")].textarea),v({},ge,!T&&!k),v({},Z,T),v({},oe,k),v({},fe,F),R?"":"!resize-none",V),Me=(0,o.default)((0,a.default)(W.label),(0,a.default)(re.base.label),(0,a.default)(re.sizes[(0,i.default)(ne.sizes,m,"md")].label),v({},ue,!T&&!k),v({},ce,T),v({},J,k),v({},ie,F),E==null?void 0:E.className),Le=(0,o.default)((0,a.default)(W.asterisk));return r.default.createElement("div",{ref:p,className:Se},r.default.createElement("textarea",b({},B,{className:Ce,placeholder:(B==null?void 0:B.placeholder)||" "})),r.default.createElement("label",{className:Me},_," ",B.required?r.default.createElement("span",{className:Le},"*"):""))});y.propTypes={variant:n.default.oneOf(s.propTypesVariant),size:n.default.oneOf(s.propTypesSize),color:n.default.oneOf(s.propTypesColor),label:s.propTypesLabel,error:s.propTypesError,success:s.propTypesSuccess,resize:s.propTypesResize,labelProps:s.propTypesLabelProps,containerProps:s.propTypesContainerProps,shrink:s.propTypesShrink,className:s.propTypesClassName},y.displayName="MaterialTailwind.Textarea";var C=y})(kj);var Ej={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(F,V){for(var B in V)Object.defineProperty(F,B,{enumerable:!0,get:V[B]})}t(e,{Tooltip:function(){return E},default:function(){return A}});var r=C(Y),n=C(ot),o=wn,i=An,a=C(pt),l=Je,s=C(Xn),d=C(et),v=Xe,b=wh;function S(F,V){(V==null||V>F.length)&&(V=F.length);for(var B=0,H=new Array(V);B=0)&&Object.prototype.propertyIsEnumerable.call(F,H)&&(B[H]=F[H])}return B}function T(F,V){if(F==null)return{};var B={},H=Object.keys(F),q,ne;for(ne=0;ne=0)&&(B[q]=F[q]);return B}function k(F,V){return w(F)||h(F,V)||R(F,V)||p()}function R(F,V){if(F){if(typeof F=="string")return S(F,V);var B=Object.prototype.toString.call(F).slice(8,-1);if(B==="Object"&&F.constructor&&(B=F.constructor.name),B==="Map"||B==="Set")return Array.from(B);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return S(F,V)}}var E=r.default.forwardRef(function(F,V){var B=F.open,H=F.handler,q=F.content,ne=F.interactive,Q=F.placement,W=F.offset,X=F.dismiss,re=F.animate,Z=F.className,oe=F.children,fe=_(F,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),ge=(0,v.useTheme)().tooltip,ce=ge.defaultProps,J=ge.styles.base,ie=k(r.default.useState(!1),2),ue=ie[0],Se=ie[1];B=B??ue,H=H??Se,ne=ne??ce.interactive,Q=Q??ce.placement,W=W??ce.offset,X=X??ce.dismiss,re=re??ce.animate,Z=(0,l.twMerge)(ce.className||"",Z);var Ce=(0,l.twMerge)((0,a.default)((0,d.default)(J)),Z),Me={unmount:{opacity:0},mount:{opacity:1}},Le=(0,s.default)(Me,re),Re=(0,o.useFloating)({open:B,onOpenChange:H,middleware:[(0,o.offset)(W),(0,o.flip)(),(0,o.shift)()],placement:Q}),be=Re.x,ke=Re.y,ze=Re.reference,Ye=Re.floating,Mt=Re.strategy,gt=Re.refs,xt=Re.update,zt=Re.context,Ht=(0,o.useInteractions)([(0,o.useClick)(zt,{enabled:ne}),(0,o.useFocus)(zt),(0,o.useHover)(zt),(0,o.useRole)(zt,{role:"tooltip"}),(0,o.useDismiss)(zt,X)]),mt=Ht.getReferenceProps,Ot=Ht.getFloatingProps;r.default.useEffect(function(){if(gt.reference.current&>.floating.current&&B)return(0,o.autoUpdate)(gt.reference.current,gt.floating.current,xt)},[B,xt,gt.reference,gt.floating]);var Jt=(0,o.useMergeRefs)([V,Ye]),Dr=(0,o.useMergeRefs)([V,ze]),ln=i.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof oe=="string"?r.default.createElement("span",y({},mt({ref:Dr})),oe):r.default.cloneElement(oe,c({},mt(m(c({},oe==null?void 0:oe.props),{ref:Dr})))),r.default.createElement(i.LazyMotion,{features:i.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(ln,null,B&&r.default.createElement(i.m.div,y({},Ot(m(c({},fe),{ref:Jt,className:Ce,style:{position:Mt,top:ke??"",left:be??""}})),{initial:"unmount",exit:"unmount",animate:B?"mount":"unmount",variants:Le}),q)))))});E.propTypes={open:b.propTypesOpen,handler:b.propTypesHandler,content:b.propTypesContent,interactive:b.propTypesInteractive,placement:n.default.oneOf(b.propTypesPlacement),offset:b.propTypesOffset,dismiss:b.propTypesDismiss,animate:b.propTypesAnimate,className:b.propTypesClassName,children:b.propTypesChildren},E.displayName="MaterialTailwind.Tooltip";var A=E})(Ej);var Mj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,g){for(var m in g)Object.defineProperty(c,m,{enumerable:!0,get:g[m]})}t(e,{Typography:function(){return h},default:function(){return p}});var r=b(Y),n=b(ot),o=b(pt),i=Je,a=b(Sr),l=b(et),s=Xe,d=HP;function v(c,g,m){return g in c?Object.defineProperty(c,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[g]=m,c}function b(c){return c&&c.__esModule?c:{default:c}}function S(c){for(var g=1;g=0)&&Object.prototype.propertyIsEnumerable.call(c,_)&&(m[_]=c[_])}return m}function C(c,g){if(c==null)return{};var m={},_=Object.keys(c),T,k;for(k=0;k<_.length;k++)T=_[k],!(g.indexOf(T)>=0)&&(m[T]=c[T]);return m}var h=r.default.forwardRef(function(c,g){var m=c.variant,_=c.color,T=c.textGradient,k=c.as,R=c.className,E=c.children,A=y(c,["variant","color","textGradient","as","className","children"]),F=(0,s.useTheme)().typography,V=F.defaultProps,B=F.valid,H=F.styles,q=H.variants,ne=H.colors,Q=H.textGradient;m=m??V.variant,_=_??V.color,T=T||V.textGradient,k=k??void 0,R=(0,i.twMerge)(V.className||"",R);var W=(0,l.default)(q[(0,a.default)(B.variants,m,"paragraph")]),X=ne[(0,a.default)(B.colors,_,"inherit")],re=(0,l.default)(Q),Z=(0,i.twMerge)((0,o.default)(W,v({},X.color,!T),v({},re,T),v({},X.gradient,T)),R),oe;switch(m){case"h1":oe=r.default.createElement(k||"h1",P(S({},A),{ref:g,className:Z}),E);break;case"h2":oe=r.default.createElement(k||"h2",P(S({},A),{ref:g,className:Z}),E);break;case"h3":oe=r.default.createElement(k||"h3",P(S({},A),{ref:g,className:Z}),E);break;case"h4":oe=r.default.createElement(k||"h4",P(S({},A),{ref:g,className:Z}),E);break;case"h5":oe=r.default.createElement(k||"h5",P(S({},A),{ref:g,className:Z}),E);break;case"h6":oe=r.default.createElement(k||"h6",P(S({},A),{ref:g,className:Z}),E);break;case"lead":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;case"paragraph":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;case"small":oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break;default:oe=r.default.createElement(k||"p",P(S({},A),{ref:g,className:Z}),E);break}return oe});h.propTypes={variant:n.default.oneOf(d.propTypesVariant),color:n.default.oneOf(d.propTypesColor),as:d.propTypesAs,textGradient:d.propTypesTextGradient,className:d.propTypesClassName,children:d.propTypesChildren},h.displayName="MaterialTailwind.Typography";var p=h})(Mj);var Rj={},Nj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return i},propTypesChildren:function(){return a},propTypesOpen:function(){return l},propTypesAnimate:function(){return s}});var r=o(ot),n=br;function o(d){return d&&d.__esModule?d:{default:d}}var i=r.default.string,a=r.default.node.isRequired,l=r.default.bool.isRequired,s=n.propTypesAnimation})(Nj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{Collapse:function(){return y},default:function(){return C}});var r=S(Y),n=An,o=wn,i=S(Xn),a=S(pt),l=Je,s=S(et),d=Xe,v=Nj;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.open,g=h.animate,m=h.className,_=h.children,T=w(h,["open","animate","className","children"]),k=r.default.useRef(null),R=(0,d.useTheme)().collapse,E=R.styles,A=E.base;g=g??{},m=m??"";var F=(0,l.twMerge)((0,a.default)((0,s.default)(A)),m),V={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},B=(0,i.default)(V,g),H=n.AnimatePresence,q=(0,o.useMergeRefs)([p,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(H,null,r.default.createElement(n.m.div,b({},T,{ref:q,className:F,initial:"unmount",exit:"unmount",animate:c?"mount":"unmount",variants:B}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:v.propTypesOpen,animate:v.propTypesAnimate,className:v.propTypesClassName,children:v.propTypesChildren};var C=y})(Rj);var Aj={},lm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return i},propTypesSelected:function(){return a},propTypesRipple:function(){return l},propTypesChildren:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.string,i=r.default.bool,a=r.default.bool,l=r.default.bool,s=r.default.node.isRequired})(lm);var Ij={},kT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemPrefix:function(){return S},default:function(){return w}});var r=d(Y),n=Xe,o=d(pt),i=Je,a=d(et),l=lm;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemPrefix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemPrefix";var w=S})(kT);var ET={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{ListItemSuffix:function(){return S},default:function(){return w}});var r=d(Y),n=Xe,o=d(pt),i=Je,a=d(et),l=lm;function s(){return s=Object.assign||function(P){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(P,h)&&(C[h]=P[h])}return C}function b(P,y){if(P==null)return{};var C={},h=Object.keys(P),p,c;for(c=0;c=0)&&(C[p]=P[p]);return C}var S=r.default.forwardRef(function(P,y){var C=P.className,h=P.children,p=v(P,["className","children"]),c=(0,n.useTheme)().list,g=c.styles.base,m=(0,i.twMerge)((0,o.default)((0,a.default)(g.itemSuffix)),C);return r.default.createElement("div",s({},p,{ref:y,className:m}),h)});S.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},S.displayName="MaterialTailwind.ListItemSuffix";var w=S})(ET);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{ListItem:function(){return C},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return h}});var r=w(Y),n=Xe,o=w(fh),i=w(pt),a=Je,l=w(et),s=lm,d=kT,v=ET;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.disabled,_=p.selected,T=p.ripple,k=p.children,R=P(p,["className","disabled","selected","ripple","children"]),E=(0,n.useTheme)().list,A=E.defaultProps,F=E.styles.base;T=T??A.ripple;var V=T!==void 0&&new o.default,B,H=(0,a.twMerge)((0,i.default)((0,l.default)(F.item.initial),(B={},b(B,(0,l.default)(F.item.disabled),m),b(B,(0,l.default)(F.item.selected),_&&!m),B)),g);return r.default.createElement("div",S({},R,{ref:c,role:"button",tabIndex:0,className:H,onMouseDown:function(q){var ne=R==null?void 0:R.onMouseDown;return T&&V.create(q,"dark"),typeof ne=="function"&&ne(q)}}),k)});C.propTypes={className:s.propTypesClassName,selected:s.propTypesSelected,disabled:s.propTypesDisabled,ripple:s.propTypesRipple,children:s.propTypesChildren},C.displayName="MaterialTailwind.ListItem";var h=Object.assign(C,{Prefix:d.ListItemPrefix,Suffix:v.ListItemSuffix})})(Ij);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{List:function(){return y},ListItem:function(){return s.ListItem},ListItemPrefix:function(){return d.ListItemPrefix},ListItemSuffix:function(){return v.ListItemSuffix},default:function(){return C}});var r=S(Y),n=Xe,o=S(pt),i=Je,a=S(et),l=lm,s=Ij,d=kT,v=ET;function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.className,g=h.children,m=w(h,["className","children"]),_=(0,n.useTheme)().list,T=_.defaultProps,k=_.styles.base;c=(0,i.twMerge)(T.className||"",c);var R=(0,i.twMerge)((0,o.default)((0,a.default)(k.list)),c);return r.default.createElement("nav",b({},m,{ref:p,className:R}),g)});y.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},y.displayName="MaterialTailwind.List";var C=Object.assign(y,{Item:s.ListItem,ItemPrefix:d.ListItemPrefix,ItemSuffix:v.ListItemSuffix})})(Aj);var Lj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,p){for(var c in p)Object.defineProperty(h,c,{enumerable:!0,get:p[c]})}t(e,{ButtonGroup:function(){return y},default:function(){return C}});var r=S(Y),n=S(ot),o=S(pt),i=Je,a=S(Sr),l=S(et),s=Xe,d=_d;function v(h,p,c){return p in h?Object.defineProperty(h,p,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[p]=c,h}function b(){return b=Object.assign||function(h){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(h,g)&&(c[g]=h[g])}return c}function P(h,p){if(h==null)return{};var c={},g=Object.keys(h),m,_;for(_=0;_=0)&&(c[m]=h[m]);return c}var y=r.default.forwardRef(function(h,p){var c=h.variant,g=h.size,m=h.color,_=h.fullWidth,T=h.ripple,k=h.className,R=h.children,E=w(h,["variant","size","color","fullWidth","ripple","className","children"]),A=(0,s.useTheme)().buttonGroup,F=A.defaultProps,V=A.styles,B=A.valid,H=V.base,q=V.dividerColor;c=c??F.variant,g=g??F.size,m=m??F.color,T=T??F.ripple,_=_??F.fullWidth,k=(0,i.twMerge)(F.className||"",k);var ne,Q=(0,i.twMerge)((0,o.default)((0,l.default)(H.initial),(ne={},v(ne,(0,l.default)(H.fullWidth),_),v(ne,"divide-x",c!=="outlined"),v(ne,(0,l.default)(q[(0,a.default)(B.colors,m,"gray")]),c!=="outlined"),ne)),k);return r.default.createElement("div",b({},E,{ref:p,className:Q}),r.default.Children.map(R,function(W,X){var re;return r.default.isValidElement(W)&&r.default.cloneElement(W,{variant:c,size:g,color:m,ripple:T,fullWidth:_,className:(0,i.twMerge)((0,o.default)({"rounded-r-none":X!==r.default.Children.count(R)-1,"border-r-0":X!==r.default.Children.count(R)-1,"rounded-l-none":X!==0}),(re=W.props)===null||re===void 0?void 0:re.className)})}))});y.propTypes={variant:n.default.oneOf(d.propTypesVariant),size:n.default.oneOf(d.propTypesSize),color:n.default.oneOf(d.propTypesColor),fullWidth:d.propTypesFullWidth,ripple:d.propTypesRipple,className:d.propTypesClassName,children:d.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var C=y})(Lj);var Dj={},Fj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,y){for(var C in y)Object.defineProperty(P,C,{enumerable:!0,get:y[C]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return i},propTypesNextArrow:function(){return a},propTypesNavigation:function(){return l},propTypesAutoplay:function(){return s},propTypesAutoplayDelay:function(){return d},propTypesTransition:function(){return v},propTypesLoop:function(){return b},propTypesChildren:function(){return S},propTypesSlideRef:function(){return w}});var r=n(ot);function n(P){return P&&P.__esModule?P:{default:P}}var o=r.default.string,i=r.default.func,a=r.default.func,l=r.default.func,s=r.default.bool,d=r.default.number,v=r.default.object,b=r.default.bool,S=r.default.node.isRequired,w=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(Fj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,T){for(var k in T)Object.defineProperty(_,k,{enumerable:!0,get:T[k]})}t(e,{Carousel:function(){return g},default:function(){return m}});var r=w(Y),n=An,o=wn,i=w(pt),a=Je,l=w(et),s=Xe,d=Fj;function v(_,T){(T==null||T>_.length)&&(T=_.length);for(var k=0,R=new Array(T);k=0)&&Object.prototype.propertyIsEnumerable.call(_,R)&&(k[R]=_[R])}return k}function h(_,T){if(_==null)return{};var k={},R=Object.keys(_),E,A;for(A=0;A=0)&&(k[E]=_[E]);return k}function p(_,T){return b(_)||P(_,T)||c(_,T)||y()}function c(_,T){if(_){if(typeof _=="string")return v(_,T);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return v(_,T)}}var g=r.default.forwardRef(function(_,T){var k=_.children,R=_.prevArrow,E=_.nextArrow,A=_.navigation,F=_.autoplay,V=_.autoplayDelay,B=_.transition,H=_.loop,q=_.className,ne=_.slideRef,Q=C(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),W=(0,s.useTheme)().carousel,X=W.defaultProps,re=W.styles.base,Z=(0,n.useMotionValue)(0),oe=r.default.useRef(null),fe=p(r.default.useState(0),2),ge=fe[0],ce=fe[1],J=r.default.Children.toArray(k);R=R??X.prevArrow,E=E??X.nextArrow,A=A??X.navigation,F=F??X.autoplay,V=V??X.autoplayDelay,B=B??X.transition,H=H??X.loop,q=(0,a.twMerge)(X.className||"",q);var ie=(0,a.twMerge)((0,i.default)((0,l.default)(re.carousel)),q),ue=(0,a.twMerge)((0,i.default)((0,l.default)(re.slide))),Se=r.default.useCallback(function(){var Re;return-ge*(((Re=oe.current)===null||Re===void 0?void 0:Re.clientWidth)||0)},[ge]),Ce=r.default.useCallback(function(){var Re=H?0:ge;ce(ge+1===J.length?Re:ge+1)},[ge,H,J.length]),Me=function(){var Re=H?J.length-1:0;ce(ge-1<0?Re:ge-1)};r.default.useEffect(function(){var Re=(0,n.animate)(Z,Se(),B);return Re.stop},[Se,ge,Z,B]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(Z,Se(),B)})},[Se,B,Z]),r.default.useEffect(function(){if(F){var Re=setInterval(function(){return Ce()},V);return function(){return clearInterval(Re)}}},[F,Ce,V]);var Le=(0,o.useMergeRefs)([oe,T]);return r.default.createElement("div",S({},Q,{ref:Le,className:ie}),J.map(function(Re,be){return r.default.createElement(n.LazyMotion,{key:be,features:n.domAnimation},r.default.createElement(n.m.div,{ref:ne,className:ue,style:{x:Z,left:"".concat(be*100,"%"),right:"".concat(be*100,"%")}},Re))}),R&&R({loop:H,handlePrev:Me,activeIndex:ge,firstIndex:ge===0}),E&&E({loop:H,handleNext:Ce,activeIndex:ge,lastIndex:ge===J.length-1}),A&&A({setActiveIndex:ce,activeIndex:ge,length:J.length}))});g.propTypes={className:d.propTypesClassName,children:d.propTypesChildren,nextArrow:d.propTypesNextArrow,prevArrow:d.propTypesPrevArrow,navigation:d.propTypesNavigation,autoplay:d.propTypesAutoplay,autoplayDelay:d.propTypesAutoplayDelay,transition:d.propTypesTransition,loop:d.propTypesLoop,slideRef:d.propTypesSlideRef},g.displayName="MaterialTailwind.Carousel";var m=g})(Dj);var jj={},zj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{propTypesOpen:function(){return i},propTypesSize:function(){return a},propTypesOverlay:function(){return l},propTypesChildren:function(){return s},propTypesPlacement:function(){return d},propTypesOverlayProps:function(){return v},propTypesClassName:function(){return b},propTypesOnClose:function(){return S},propTypesDismiss:function(){return w},propTypesTransition:function(){return P},propTypesOverlayRef:function(){return y}});var r=o(ot),n=br;function o(C){return C&&C.__esModule?C:{default:C}}var i=r.default.bool.isRequired,a=r.default.number,l=r.default.bool,s=r.default.node.isRequired,d=["top","right","bottom","left"],v=r.default.object,b=r.default.string,S=r.default.func,w=n.propTypesDismissType,P=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(zj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{Drawer:function(){return p},default:function(){return c}});var r=P(Y),n=P(ot),o=An,i=wn,a=P(Xn),l=P(pt),s=Je,d=P(et),v=Xe,b=zj;function S(g,m,_){return m in g?Object.defineProperty(g,m,{value:_,enumerable:!0,configurable:!0,writable:!0}):g[m]=_,g}function w(){return w=Object.assign||function(g){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function h(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}var p=r.default.forwardRef(function(g,m){var _=g.open,T=g.size,k=g.overlay,R=g.children,E=g.placement,A=g.overlayProps,F=g.className,V=g.onClose,B=g.dismiss,H=g.transition,q=g.overlayRef,ne=C(g,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),Q=(0,v.useTheme)().drawer,W=Q.defaultProps,X=Q.styles.base,re=(0,o.useAnimation)();T=T??W.size,k=k??W.overlay,E=E??W.placement,A=A??W.overlayProps,V=V??W.onClose;var Z;B=(Z=(0,a.default)(W.dismiss,B||{}))!==null&&Z!==void 0?Z:W.dismiss,H=H??W.transition,F=(0,s.twMerge)(W.className||"",F);var oe=(0,s.twMerge)((0,l.default)((0,d.default)(X.drawer),{"top-0 right-0":E==="right","bottom-0 left-0":E==="bottom","top-0 left-0":E==="top"||E==="left"}),F),fe=(0,s.twMerge)((0,l.default)((0,d.default)(X.overlay)),A==null?void 0:A.className),ge=(0,i.useFloating)({open:_,onOpenChange:V}).context,ce=(0,i.useInteractions)([(0,i.useDismiss)(ge,B)]).getFloatingProps;r.default.useEffect(function(){re.start(_?"open":"close")},[_,re,E]);var J={open:{x:0,y:0},close:{x:E==="left"?-T:E==="right"?T:0,y:E==="top"?-T:E==="bottom"?T:0}},ie={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:q,className:fe,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:ie,transition:{duration:.3}})),r.default.createElement(o.m.div,w({},ce(y({ref:m},ne)),{className:oe,style:{maxWidth:E==="left"||E==="right"?T:"100%",maxHeight:E==="top"||E==="bottom"?T:"100%",height:E==="left"||E==="right"?"100vh":"100%"},initial:"close",animate:re,variants:J,transition:H}),R)))});p.propTypes={open:b.propTypesOpen,size:b.propTypesSize,overlay:b.propTypesOverlay,children:b.propTypesChildren,placement:n.default.oneOf(b.propTypesPlacement),overlayProps:b.propTypesOverlayProps,className:b.propTypesClassName,onClose:b.propTypesOnClose,dismiss:b.propTypesDismiss,transition:b.propTypesTransition,overlayRef:b.propTypesOverlayRef},p.displayName="MaterialTailwind.Drawer";var c=p})(jj);var Vj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Badge:function(){return C},default:function(){return h}});var r=w(Y),n=w(ot),o=w(Xn),i=w(pt),a=Je,l=w(Sr),s=w(et),d=Xe,v=WP;function b(p,c,g){return c in p?Object.defineProperty(p,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):p[c]=g,p}function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.color,m=p.invisible,_=p.withBorder,T=p.overlap,k=p.placement,R=p.className,E=p.content,A=p.children,F=p.containerProps,V=p.containerRef,B=P(p,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),H=(0,d.useTheme)().badge,q=H.valid,ne=H.defaultProps,Q=H.styles,W=Q.base,X=Q.placements,re=Q.colors;g=g??ne.color,m=m??ne.invisible,_=_??ne.withBorder,T=T??ne.overlap,k=k??ne.placement,R=(0,a.twMerge)(ne.className||"",R);var Z;F=(Z=(0,o.default)(F,ne.containerProps||{}))!==null&&Z!==void 0?Z:ne.containerProps;var oe=(0,s.default)(W.badge.initial),fe=(0,s.default)(W.badge.withBorder),ge=(0,s.default)(W.badge.withContent),ce=(0,s.default)(re[(0,l.default)(q.colors,g,"red")]),J=(0,s.default)(X[(0,l.default)(q.placements,k,"top-end")][(0,l.default)(q.overlaps,T,"square")]),ie,ue=(0,a.twMerge)((0,i.default)(oe,J,ce,(ie={},b(ie,fe,_),b(ie,ge,E),ie)),R),Se=(0,a.twMerge)((0,i.default)((0,s.default)(W.container),F==null?void 0:F.className));return r.default.createElement("div",S({ref:V},F,{className:Se}),A,!m&&r.default.createElement("span",S({},B,{ref:c,className:ue}),E))});C.propTypes={color:n.default.oneOf(v.propTypesColor),invisible:v.propTypesInvisible,withBorder:v.propTypesWithBorder,overlap:n.default.oneOf(v.propTypesOverlap),className:v.propTypesClassName,content:v.propTypesContent,children:v.propTypesChildren,placement:n.default.oneOf(v.propTypesPlacement),containerProps:v.propTypesContainerProps,containerRef:v.propTypesContainerRef},C.displayName="MaterialTailwind.Badge";var h=C})(Vj);var Bj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,A){for(var F in A)Object.defineProperty(E,F,{enumerable:!0,get:A[F]})}t(e,{Rating:function(){return k},default:function(){return R}});var r=P(Y),n=P(ot),o=P(pt),i=Je,a=P(Sr),l=P(et),s=Xe,d=$P;function v(E,A){(A==null||A>E.length)&&(A=E.length);for(var F=0,V=new Array(A);F=0)&&Object.prototype.propertyIsEnumerable.call(E,V)&&(F[V]=E[V])}return F}function g(E,A){if(E==null)return{};var F={},V=Object.keys(E),B,H;for(H=0;H=0)&&(F[B]=E[B]);return F}function m(E,A){return b(E)||C(E,A)||T(E,A)||h()}function _(E){return S(E)||y(E)||T(E)||p()}function T(E,A){if(E){if(typeof E=="string")return v(E,A);var F=Object.prototype.toString.call(E).slice(8,-1);if(F==="Object"&&E.constructor&&(F=E.constructor.name),F==="Map"||F==="Set")return Array.from(F);if(F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F))return v(E,A)}}var k=r.default.forwardRef(function(E,A){var F=E.count,V=E.value,B=E.ratedIcon,H=E.unratedIcon,q=E.ratedColor,ne=E.unratedColor,Q=E.className,W=E.onChange,X=E.readonly,re=c(E,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),Z,oe,fe=(0,s.useTheme)().rating,ge=fe.valid,ce=fe.defaultProps,J=fe.styles,ie=J.base,ue=J.colors;F=F??ce.count,V=V??ce.value,B=B??ce.ratedIcon,B=B??ce.ratedIcon,H=H??ce.unratedIcon,q=q??ce.ratedColor,ne=ne??ce.unratedColor,W=W??ce.onChange,X=X??ce.readonly,Q=(0,i.twMerge)(ce.className||"",Q);var Se=m(r.default.useState(function(){return _(Array(V).fill("rated")).concat(_(Array(F-V).fill("un_rated")))}),2),Ce=Se[0],Me=Se[1],Le=m(r.default.useState(function(){return _(Array(F).fill("un_rated"))}),2),Re=Le[0],be=Le[1],ke=m(r.default.useState(!1),2),ze=ke[0],Ye=ke[1],Mt=(0,l.default)(ue[(0,a.default)(ge.colors,q,"yellow")]),gt=(0,l.default)(ue[(0,a.default)(ge.colors,ne,"blue-gray")]),xt=(0,i.twMerge)((0,o.default)((0,l.default)(ie.rating),Q)),zt=(0,l.default)(ie.icon),Ht=B,mt=H,Ot=r.default.isValidElement(B)&&r.default.cloneElement(Ht,{className:(0,i.twMerge)((0,o.default)(zt,Mt,Ht==null||(Z=Ht.props)===null||Z===void 0?void 0:Z.className))}),Jt=r.default.isValidElement(B)&&r.default.cloneElement(mt,{className:(0,i.twMerge)((0,o.default)(zt,gt,mt==null||(oe=mt.props)===null||oe===void 0?void 0:oe.className))}),Dr=!r.default.isValidElement(B)&&r.default.createElement(B,{className:(0,i.twMerge)((0,o.default)(zt,Mt))}),ln=!r.default.isValidElement(B)&&r.default.createElement(H,{className:(0,i.twMerge)((0,o.default)(zt,gt))}),Qn=function(Ln){return Ln.map(function(nr,mo){return r.default.createElement("span",{key:mo,onClick:function(){if(!X){var Yt=Ce.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Me(Yt),W&&typeof W=="function"&&W(Yt.filter(function(yo){return yo==="rated"}).length)}},onMouseEnter:function(){if(!X){var Yt=Re.map(function(yo,Qr){return Qr<=mo?"rated":"un_rated"});Ye(!0),be(Yt)}},onMouseLeave:function(){return!X&&Ye(!1)}},r.default.isValidElement(nr==="rated"?B:H)?nr==="rated"?Ot:Jt:nr==="rated"?Dr:ln)})};return r.default.createElement("div",w({},re,{ref:A,className:xt}),Qn(ze?Re:Ce))});k.propTypes={count:d.propTypesCount,value:d.propTypesValue,ratedIcon:d.propTypesRatedIcon,unratedIcon:d.propTypesUnratedIcon,ratedColor:n.default.oneOf(d.propTypesColor),unratedColor:n.default.oneOf(d.propTypesColor),className:d.propTypesClassName,onChange:d.propTypesOnChange,readonly:d.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var R=k})(Bj);var Uj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{Slider:function(){return m},default:function(){return _}});var r=P(Y),n=P(ot),o=P(Xn),i=P(pt),a=Je,l=P(Sr),s=P(et),d=Xe,v=GP;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.size,A=T.className,F=T.trackClassName,V=T.thumbClassName,B=T.barClassName,H=T.value,q=T.defaultValue,ne=T.onChange,Q=T.min,W=T.max,X=T.step,re=T.inputRef,Z=T.inputProps,oe=h(T,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),fe=(0,d.useTheme)().slider,ge=fe.valid,ce=fe.defaultProps,J=fe.styles,ie=J.base,ue=J.sizes,Se=J.colors,Ce=c(r.default.useState(q||0),2),Me=Ce[0],Le=Ce[1];r.default.useMemo(function(){q&&Le(q)},[q]),R=R??ce.color,E=E??ce.size,Q=Q??ce.min,W=W??ce.max,X=X??ce.step,A=(0,a.twMerge)(ce.className||"",A);var Re;V=(Re=(0,i.default)(ce.thumbClassName,V))!==null&&Re!==void 0?Re:ce.thumbClassName;var be;F=(be=(0,i.default)(ce.trackClassName,F))!==null&&be!==void 0?be:ce.trackClassName;var ke;B=(ke=(0,i.default)(ce.barClassName,B))!==null&&ke!==void 0?ke:ce.barClassName;var ze;Z=(ze=(0,o.default)(Z,(ce==null?void 0:ce.inputProps)||{}))!==null&&ze!==void 0?ze:ce.inputProps;var Ye=(0,a.twMerge)((0,i.default)((0,s.default)(ie.container),(0,s.default)(Se[(0,l.default)(ge.colors,R,"gray")]),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].container),A)),Mt=(0,a.twMerge)((0,i.default)((0,s.default)(ie.bar),B)),gt=(0,i.default)((0,s.default)(ie.track),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].track)),xt=(0,i.default)((0,s.default)(ie.thumb),(0,s.default)(ue[(0,l.default)(ge.sizes,E,"md")].thumb)),zt=(0,i.default)((0,s.default)(ie.slider),(0,a.twMerge)(gt,F),(0,a.twMerge)(xt,V));return r.default.createElement("div",w({},oe,{ref:k,className:Ye}),r.default.createElement("label",{className:Mt,style:{width:"".concat(H||Me,"%")}}),r.default.createElement("input",w({ref:re,type:"range",max:W,min:Q,step:X,className:zt},H?{value:H}:null,{defaultValue:q,onChange:function(Ht){return ne?ne(Ht):Le(Number(Ht.target.value))}})))});m.propTypes={color:n.default.oneOf(v.propTypesColor),size:n.default.oneOf(v.propTypesSize),className:v.propTypesClassName,trackClassName:v.propTypesTrackClassName,thumbClassName:v.propTypesThumbClassName,barClassName:v.propTypesBarClassName,defaultValue:v.propTypesDefaultValue,value:v.propTypesValue,onChange:v.propTypesOnChange,min:v.propTypesMin,max:v.propTypesMax,step:v.propTypesStep,inputRef:v.propTypesInputRef,inputProps:v.propTypesInputProps},m.displayName="MaterialTailwind.Slider";var _=m})(Uj);var Hj={},sm={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{useTimelineItem:function(){return p},TimelineItem:function(){return c},default:function(){return g}});var r=v(Y),n=Je,o=v(et),i=Xe,a=bs;function l(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function s(m){if(Array.isArray(m))return m}function d(){return d=Object.assign||function(m){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(m,k)&&(T[k]=m[k])}return T}function P(m,_){if(m==null)return{};var T={},k=Object.keys(m),R,E;for(E=0;E=0)&&(T[R]=m[R]);return T}function y(m,_){return s(m)||b(m,_)||C(m,_)||S()}function C(m,_){if(m){if(typeof m=="string")return l(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return l(m,_)}}var h=r.default.createContext(0);h.displayName="MaterialTailwind.TimelineItemContext";function p(){var m=r.default.useContext(h);if(!m)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return m}var c=r.default.forwardRef(function(m,_){var T=m.className,k=m.children,R=w(m,["className","children"]),E=(0,i.useTheme)().timelineItem,A=E.styles,F=A.base,V=y(r.default.useState(0),2),B=V[0],H=V[1],q=r.default.useMemo(function(){return[B,H]},[B,H]),ne=(0,n.twMerge)((0,o.default)(F),T);return r.default.createElement(h.Provider,{value:q},r.default.createElement("li",d({ref:_},R,{className:ne}),k))});c.propTypes={className:a.propTypeClassName,children:a.propTypeChildren.isRequired},c.displayName="MaterialTailwind.TimelineItem";var g=c})(sm);var Wj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(T,k){for(var R in k)Object.defineProperty(T,R,{enumerable:!0,get:k[R]})}t(e,{TimelineIcon:function(){return m},default:function(){return _}});var r=P(Y),n=P(ot),o=wn,i=Je,a=P(Sr),l=P(et),s=Xe,d=sm,v=bs;function b(T,k){(k==null||k>T.length)&&(k=T.length);for(var R=0,E=new Array(k);R=0)&&Object.prototype.propertyIsEnumerable.call(T,E)&&(R[E]=T[E])}return R}function p(T,k){if(T==null)return{};var R={},E=Object.keys(T),A,F;for(F=0;F=0)&&(R[A]=T[A]);return R}function c(T,k){return S(T)||y(T,k)||g(T,k)||C()}function g(T,k){if(T){if(typeof T=="string")return b(T,k);var R=Object.prototype.toString.call(T).slice(8,-1);if(R==="Object"&&T.constructor&&(R=T.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return b(T,k)}}var m=r.default.forwardRef(function(T,k){var R=T.color,E=T.variant,A=T.className,F=T.children,V=h(T,["color","variant","className","children"]),B=(0,s.useTheme)().timelineIcon,H=B.styles,q=B.valid,ne=H.base,Q=H.variants,W=c((0,d.useTimelineItem)(),2),X=W[1],re=r.default.useRef(null),Z=(0,o.useMergeRefs)([k,re]);r.default.useEffect(function(){var ge=re.current;if(ge){var ce=ge.getBoundingClientRect().width;return X(ce),function(){X(0)}}},[X,A,F]);var oe=(0,l.default)(Q[(0,a.default)(q.variants,E,"filled")][(0,a.default)(q.colors,R,"gray")]),fe=(0,i.twMerge)((0,l.default)(ne),oe,A);return r.default.createElement("span",w({ref:Z},V,{className:fe}),F)});m.propTypes={children:v.propTypeChildren,className:v.propTypeClassName,color:n.default.oneOf(v.propTypeColor),variant:n.default.oneOf(v.propTypeVariant)},m.displayName="MaterialTailwind.TimelineIcon";var _=m})(Wj);var $j={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineHeader:function(){return p},default:function(){return c}});var r=b(Y),n=Je,o=b(et),i=Xe,a=sm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R=(0,i.useTheme)().timelineBody,E=R.styles,A=E.base,F=C((0,a.useTimelineItem)(),1),V=F[0],B=(0,n.twMerge)((0,o.default)(A),_);return r.default.createElement("div",v({},k,{ref:m,className:B}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(V,"px")}}),r.default.createElement("div",null,T))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var c=p})($j);var Gj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{TimelineHeader:function(){return b},default:function(){return S}});var r=s(Y),n=Je,o=s(et),i=Xe,a=bs;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,i.useTheme)().timelineHeader,c=p.styles,g=c.base,m=(0,n.twMerge)((0,o.default)(g),y);return r.default.createElement("div",l({},h,{ref:P,className:m}),C)});b.propTypes={children:a.propTypeChildren,className:a.propTypeClassName},b.displayName="MaterialTailwind.TimelineHeader";var S=b})(Gj);var Kj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,m){for(var _ in m)Object.defineProperty(g,_,{enumerable:!0,get:m[_]})}t(e,{TimelineConnector:function(){return p},default:function(){return c}});var r=b(Y),n=Je,o=b(et),i=Xe,a=sm,l=bs;function s(g,m){(m==null||m>g.length)&&(m=g.length);for(var _=0,T=new Array(m);_=0)&&Object.prototype.propertyIsEnumerable.call(g,T)&&(_[T]=g[T])}return _}function y(g,m){if(g==null)return{};var _={},T=Object.keys(g),k,R;for(R=0;R=0)&&(_[k]=g[k]);return _}function C(g,m){return d(g)||S(g,m)||h(g,m)||w()}function h(g,m){if(g){if(typeof g=="string")return s(g,m);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return s(g,m)}}var p=r.default.forwardRef(function(g,m){var _=g.className,T=g.children,k=P(g,["className","children"]),R,E=(0,i.useTheme)().timelineConnector,A=E.styles,F=A.base,V=C((0,a.useTimelineItem)(),1),B=V[0],H=(0,o.default)(F.line),q=(0,n.twMerge)((0,o.default)(F.container),_);return r.default.createElement("span",v({},k,{ref:m,className:q,style:{top:"".concat(B,"px"),width:"".concat(B,"px"),opacity:B?1:0,height:"calc(100% - ".concat(B,"px)")}}),T&&r.default.isValidElement(T)?r.default.cloneElement(T,{className:(0,n.twMerge)(H,(R=T.props)===null||R===void 0?void 0:R.className)}):r.default.createElement("span",{className:H}))});p.propTypes={children:l.propTypeChildren,className:l.propTypeClassName},p.displayName="MaterialTailwind.TimelineConnector";var c=p})(Kj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,c){for(var g in c)Object.defineProperty(p,g,{enumerable:!0,get:c[g]})}t(e,{Timeline:function(){return C},TimelineItem:function(){return l.default},TimelineIcon:function(){return s.default},TimelineBody:function(){return d.default},TimelineHeader:function(){return v.default},TimelineConnector:function(){return b.default},default:function(){return h}});var r=w(Y),n=Je,o=w(et),i=Xe,a=bs,l=w(sm),s=w(Wj),d=w($j),v=w(Gj),b=w(Kj);function S(){return S=Object.assign||function(p){for(var c=1;c=0)&&Object.prototype.propertyIsEnumerable.call(p,m)&&(g[m]=p[m])}return g}function y(p,c){if(p==null)return{};var g={},m=Object.keys(p),_,T;for(T=0;T=0)&&(g[_]=p[_]);return g}var C=r.default.forwardRef(function(p,c){var g=p.className,m=p.children,_=P(p,["className","children"]),T=(0,i.useTheme)().timeline,k=T.styles,R=k.base,E=(0,n.twMerge)((0,o.default)(R),g);return r.default.createElement("ul",S({ref:c},_,{className:E}),m)});C.propTypes={className:a.propTypeClassName,children:a.propTypeChildren},C.displayName="MaterialTailwind.Timeline";var h=Object.assign(C,{Item:l.default,Icon:s.default,Header:v.default,Body:d.default,Connector:b.default})})(Hj);var qj={},Yj={},MT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,v){for(var b in v)Object.defineProperty(d,b,{enumerable:!0,get:v[b]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return i},propTypesIsFirstStep:function(){return a},propTypesChildren:function(){return l},propTypesClassName:function(){return s}});var r=n(ot);function n(d){return d&&d.__esModule?d:{default:d}}var o=r.default.number,i=r.default.func,a=r.default.func,l=r.default.node,s=r.default.string})(MT);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{Step:function(){return b},default:function(){return S}});var r=s(Y),n=Je,o=s(et),i=Xe,a=MT;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className;w.activeClassName,w.completedClassName;var C=w.children,h=d(w,["className","activeClassName","completedClassName","children"]),p=(0,i.useTheme)().step,c=p.styles.base,g=(0,n.twMerge)((0,o.default)(c.initial),y);return r.default.createElement("div",l({},h,{ref:P,className:g}),C)});b.propTypes={className:a.propTypesClassName,activeClassName:a.propTypesClassName,completedClassName:a.propTypesClassName,children:a.propTypesChildren},b.displayName="MaterialTailwind.Step";var S=b})(Yj);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,E){for(var A in E)Object.defineProperty(R,A,{enumerable:!0,get:E[A]})}t(e,{Stepper:function(){return T},Step:function(){return l.default},default:function(){return k}});var r=w(Y),n=wn,o=Je,i=w(et),a=Xe,l=w(Yj),s=MT;function d(R,E){(E==null||E>R.length)&&(E=R.length);for(var A=0,F=new Array(E);A=0)&&Object.prototype.propertyIsEnumerable.call(R,F)&&(A[F]=R[F])}return A}function g(R,E){if(R==null)return{};var A={},F=Object.keys(R),V,B;for(B=0;B=0)&&(A[V]=R[V]);return A}function m(R,E){return v(R)||P(R,E)||_(R,E)||y()}function _(R,E){if(R){if(typeof R=="string")return d(R,E);var A=Object.prototype.toString.call(R).slice(8,-1);if(A==="Object"&&R.constructor&&(A=R.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return d(R,E)}}var T=r.default.forwardRef(function(R,E){var A=R.activeStep,F=R.isFirstStep,V=R.isLastStep,B=R.className,H=R.lineClassName,q=R.activeLineClassName,ne=R.children,Q=c(R,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),W=(0,a.useTheme)(),X=W.stepper,re=W.step,Z=X.styles.base,oe=re.styles,fe=oe.base,ge=r.default.useRef(null),ce=m(r.default.useState(0),2),J=ce[0],ie=ce[1],ue=A===0,Se=Array.isArray(ne)&&A===ne.length-1,Ce=Array.isArray(ne)&&A>ne.length-1;r.default.useEffect(function(){if(ge.current){var Ye=ne,Mt=ge.current.getBoundingClientRect().width,gt=Mt/(Ye.length-1);ie(gt)}},[ne]);var Me=r.default.useMemo(function(){if(!Ce)return J*A},[A,Ce,J]);(0,n.useMergeRefs)([E,ge]);var Le=(0,o.twMerge)((0,i.default)(Z.stepper),B),Re=(0,o.twMerge)((0,i.default)(Z.line.initial),H),be=(0,o.twMerge)(Re,(0,i.default)(Z.line.active),q),ke=(0,i.default)(fe.active),ze=(0,i.default)(fe.completed);return r.default.useEffect(function(){V&&typeof V=="function"&&V(Se),F&&typeof F=="function"&&F(ue)},[F,ue,V,Se]),r.default.createElement("div",S({},Q,{ref:ge,className:Le}),r.default.createElement("div",{className:Re}),r.default.createElement("div",{className:be,style:{width:"".concat(Me,"px")}}),Array.isArray(ne)?ne.map(function(Ye,Mt){var gt,xt;return r.default.cloneElement(Ye,p(C({key:Mt},Ye.props),{className:(0,o.twMerge)(Ye.props.className,Mt===A?(0,o.twMerge)(ke,(gt=Ye.props)===null||gt===void 0?void 0:gt.activeClassName):Mt=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=S(C,["children"]),g,m=(0,o.useSpeedDial)(),_=m.getReferenceProps,T=m.refs,k=(0,n.useMergeRefs)([h,T.setReference]);return r.default.cloneElement(p,d({},_(b(d({},c),{ref:k,className:(0,i.twMerge)(p==null||(g=p.props)===null||g===void 0?void 0:g.className,c==null?void 0:c.className)}))))});P.propTypes={children:a.propTypesChildren},P.displayName="MaterialTailwind.SpeedDialHandler";var y=P})(Nx)),Nx}var Ax={},Z8;function DJ(){return Z8||(Z8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(C,h){for(var p in h)Object.defineProperty(C,p,{enumerable:!0,get:h[p]})}t(e,{SpeedDialContent:function(){return P},default:function(){return y}});var r=b(Y),n=An,o=wn,i=RT(),a=Xe,l=Je,s=b(et),d=um;function v(){return v=Object.assign||function(C){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(C,c)&&(p[c]=C[c])}return p}function w(C,h){if(C==null)return{};var p={},c=Object.keys(C),g,m;for(m=0;m=0)&&(p[g]=C[g]);return p}var P=r.default.forwardRef(function(C,h){var p=C.children,c=C.className,g=S(C,["children","className"]),m=(0,a.useTheme)(),_=m.speedDialContent.styles,T=(0,i.useSpeedDial)(),k=T.x,R=T.y,E=T.refs,A=T.open,F=T.strategy,V=T.getFloatingProps,B=T.animation,H=(0,o.useMergeRefs)([h,E.setFloating]),q=(0,l.twMerge)((0,s.default)(_),c),ne=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(ne,null,A&&r.default.createElement("div",v({},g,{ref:H,className:q,style:{position:F,top:R??0,left:k??0}},V()),r.default.Children.map(p,function(Q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:A?"mount":"unmount",variants:B},Q)}))))});P.propTypes={children:d.propTypesChildren,className:d.propTypesClassName},P.displayName="MaterialTailwind.SpeedDialContent";var y=P})(Ax)),Ax}var Xj={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,P){for(var y in P)Object.defineProperty(w,y,{enumerable:!0,get:P[y]})}t(e,{SpeedDialAction:function(){return b},default:function(){return S}});var r=s(Y),n=Xe,o=Je,i=s(et),a=um;function l(){return l=Object.assign||function(w){for(var P=1;P=0)&&Object.prototype.propertyIsEnumerable.call(w,C)&&(y[C]=w[C])}return y}function v(w,P){if(w==null)return{};var y={},C=Object.keys(w),h,p;for(p=0;p=0)&&(y[h]=w[h]);return y}var b=r.default.forwardRef(function(w,P){var y=w.className,C=w.children,h=d(w,["className","children"]),p=(0,n.useTheme)(),c=p.speedDialAction.styles,g=(0,o.twMerge)((0,i.default)(c),y);return r.default.createElement("button",l({},h,{ref:P,className:g}),C)});b.propTypes={children:a.propTypesChildren,className:a.propTypesClassName},b.displayName="SpeedDialAction";var S=b})(Xj);var J8;function RT(){return J8||(J8=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,_){for(var T in _)Object.defineProperty(m,T,{enumerable:!0,get:_[T]})}t(e,{SpeedDialContext:function(){return h},useSpeedDial:function(){return p},SpeedDial:function(){return c},SpeedDialHandler:function(){return l.default},SpeedDialContent:function(){return s.default},SpeedDialAction:function(){return d.default},default:function(){return g}});var r=S(Y),n=wn,o=Xe,i=S(Xn),a=um,l=S(LJ()),s=S(DJ()),d=S(Xj);function v(m,_){(_==null||_>m.length)&&(_=m.length);for(var T=0,k=new Array(_);T<_;T++)k[T]=m[T];return k}function b(m){if(Array.isArray(m))return m}function S(m){return m&&m.__esModule?m:{default:m}}function w(m,_){var T=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(T!=null){var k=[],R=!0,E=!1,A,F;try{for(T=T.call(m);!(R=(A=T.next()).done)&&(k.push(A.value),!(_&&k.length===_));R=!0);}catch(V){E=!0,F=V}finally{try{!R&&T.return!=null&&T.return()}finally{if(E)throw F}}return k}}function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(m,_){return b(m)||w(m,_)||C(m,_)||P()}function C(m,_){if(m){if(typeof m=="string")return v(m,_);var T=Object.prototype.toString.call(m).slice(8,-1);if(T==="Object"&&m.constructor&&(T=m.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return v(m,_)}}var h=r.default.createContext(null);function p(){var m=r.default.useContext(h);if(!m)throw new Error("useSpeedDial must be used within a .");return m}function c(m){var _=m.open,T=m.handler,k=m.placement,R=m.offset,E=m.dismiss,A=m.animate,F=m.children,V=(0,o.useTheme)(),B=V.speedDial.defaultProps,H=y(r.default.useState(!1),2),q=H[0],ne=H[1];_=_??q,T=T??ne,k=k??B.placement,R=R??B.offset,E=E??B.dismiss,A=A??B.animate;var Q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},W=(0,i.default)(Q,A),X=(0,n.useFloatingNodeId)(),re=(0,n.useFloating)({open:_,nodeId:X,placement:k,onOpenChange:T,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(R),(0,n.flip)(),(0,n.shift)()]}),Z=re.x,oe=re.y,fe=re.strategy,ge=re.refs,ce=re.context,J=(0,n.useInteractions)([(0,n.useHover)(ce,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(ce,E)]),ie=J.getReferenceProps,ue=J.getFloatingProps,Se=r.default.useMemo(function(){return{x:Z,y:oe,strategy:fe,refs:ge,open:_,context:ce,getReferenceProps:ie,getFloatingProps:ue,animation:W}},[ce,ue,ie,ge,fe,Z,oe,_,W]);return r.default.createElement(h.Provider,{value:Se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:X},F)))}c.propTypes={open:a.propTypesOpen,handler:a.propTypesHanlder,placement:a.propTypesPlacement,offset:a.propTypesOffset,dismiss:a.propTypesDismiss,className:a.propTypesClassName,children:a.propTypesChildren,animate:a.propTypesAnimate},c.displayName="MaterialTailwind.SpeedDial";var g=Object.assign(c,{Handler:l.default,Content:s.default,Action:d.default})})(Rx)),Rx}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(e7,e),t(rL,e),t(nL,e),t(oL,e),t(aL,e),t(lL,e),t(dL,e),t(fL,e),t(pL,e),t(p2,e),t(lj,e),t(sj,e),t(pj,e),t(gj,e),t(yj,e),t(bj,e),t(wj,e),t(xj,e),t(Sj,e),t(kj,e),t(Ej,e),t(Mj,e),t(Rj,e),t(Aj,e),t(Lj,e),t(Dj,e),t(jj,e),t(Vj,e),t(Bj,e),t(Uj,e),t(w3,e),t(Hj,e),t(qj,e),t(RT(),e),t(Xe,e),t(NP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(ZW);function FJ(e,t){var n;const r=new Set;for(const o of e){const i=o.owner,a=((n=t[i])==null?void 0:n.prettyName)??i;a&&r.add(a)}return Array.from(r).sort((o,i)=>o.localeCompare(i))}var NT={exports:{}},D2={},ww={},Tt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function r(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof uO<"u"?uO:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},e.Konva={_global:e.glob,version:"9.3.18",isBrowser:r(),isUnminified:/param/.test((function(o){}).toString()),dblClickWindow:400,getAngle(o){return e.Konva.angleDeg?o*t:o},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var o;return(o=e.Konva.Transformer)===null||o===void 0?void 0:o.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(o){e.glob.Konva=o}};const n=o=>{e.Konva[o.prototype.getClassName()]=o};e._registerNode=n,e.Konva._injectGlobal(e.Konva)})(Tt);var Lr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Tt;class r{constructor(g=[1,0,0,1,0,0]){this.dirty=!1,this.m=g&&g.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new r(this.m)}copyInto(g){g.m[0]=this.m[0],g.m[1]=this.m[1],g.m[2]=this.m[2],g.m[3]=this.m[3],g.m[4]=this.m[4],g.m[5]=this.m[5]}point(g){const m=this.m;return{x:m[0]*g.x+m[2]*g.y+m[4],y:m[1]*g.x+m[3]*g.y+m[5]}}translate(g,m){return this.m[4]+=this.m[0]*g+this.m[2]*m,this.m[5]+=this.m[1]*g+this.m[3]*m,this}scale(g,m){return this.m[0]*=g,this.m[1]*=g,this.m[2]*=m,this.m[3]*=m,this}rotate(g){const m=Math.cos(g),_=Math.sin(g),T=this.m[0]*m+this.m[2]*_,k=this.m[1]*m+this.m[3]*_,R=this.m[0]*-_+this.m[2]*m,E=this.m[1]*-_+this.m[3]*m;return this.m[0]=T,this.m[1]=k,this.m[2]=R,this.m[3]=E,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(g,m){const _=this.m[0]+this.m[2]*m,T=this.m[1]+this.m[3]*m,k=this.m[2]+this.m[0]*g,R=this.m[3]+this.m[1]*g;return this.m[0]=_,this.m[1]=T,this.m[2]=k,this.m[3]=R,this}multiply(g){const m=this.m[0]*g.m[0]+this.m[2]*g.m[1],_=this.m[1]*g.m[0]+this.m[3]*g.m[1],T=this.m[0]*g.m[2]+this.m[2]*g.m[3],k=this.m[1]*g.m[2]+this.m[3]*g.m[3],R=this.m[0]*g.m[4]+this.m[2]*g.m[5]+this.m[4],E=this.m[1]*g.m[4]+this.m[3]*g.m[5]+this.m[5];return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}invert(){const g=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),m=this.m[3]*g,_=-this.m[1]*g,T=-this.m[2]*g,k=this.m[0]*g,R=g*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),E=g*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=m,this.m[1]=_,this.m[2]=T,this.m[3]=k,this.m[4]=R,this.m[5]=E,this}getMatrix(){return this.m}decompose(){const g=this.m[0],m=this.m[1],_=this.m[2],T=this.m[3],k=this.m[4],R=this.m[5],E=g*T-m*_,A={x:k,y:R,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(g!=0||m!=0){const F=Math.sqrt(g*g+m*m);A.rotation=m>0?Math.acos(g/F):-Math.acos(g/F),A.scaleX=F,A.scaleY=E/F,A.skewX=(g*_+m*T)/E,A.skewY=0}else if(_!=0||T!=0){const F=Math.sqrt(_*_+T*T);A.rotation=Math.PI/2-(T>0?Math.acos(-_/F):-Math.acos(_/F)),A.scaleX=E/F,A.scaleY=F,A.skewX=0,A.skewY=(g*_+m*T)/E}return A.rotation=e.Util._getRotation(A.rotation),A}}e.Transform=r;const n="[object Array]",o="[object Number]",i="[object String]",a="[object Boolean]",l=Math.PI/180,s=180/Math.PI,d="#",v="",b="0",S="Konva warning: ",w="Konva error: ",P="rgb(",y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},C=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let h=[];const p=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(c){setTimeout(c,60)};e.Util={_isElement(c){return!!(c&&c.nodeType==1)},_isFunction(c){return!!(c&&c.constructor&&c.call&&c.apply)},_isPlainObject(c){return!!c&&c.constructor===Object},_isArray(c){return Object.prototype.toString.call(c)===n},_isNumber(c){return Object.prototype.toString.call(c)===o&&!isNaN(c)&&isFinite(c)},_isString(c){return Object.prototype.toString.call(c)===i},_isBoolean(c){return Object.prototype.toString.call(c)===a},isObject(c){return c instanceof Object},isValidSelector(c){if(typeof c!="string")return!1;const g=c[0];return g==="#"||g==="."||g===g.toUpperCase()},_sign(c){return c===0||c>0?1:-1},requestAnimFrame(c){h.push(c),h.length===1&&p(function(){const g=h;h=[],g.forEach(function(m){m()})})},createCanvasElement(){const c=document.createElement("canvas");try{c.style=c.style||{}}catch{}return c},createImageElement(){return document.createElement("img")},_isInDocument(c){for(;c=c.parentNode;)if(c==document)return!0;return!1},_urlToImage(c,g){const m=e.Util.createImageElement();m.onload=function(){g(m)},m.src=c},_rgbToHex(c,g,m){return((1<<24)+(c<<16)+(g<<8)+m).toString(16).slice(1)},_hexToRgb(c){c=c.replace(d,v);const g=parseInt(c,16);return{r:g>>16&255,g:g>>8&255,b:g&255}},getRandomColor(){let c=(Math.random()*16777215<<0).toString(16);for(;c.length<6;)c=b+c;return d+c},getRGB(c){let g;return c in y?(g=y[c],{r:g[0],g:g[1],b:g[2]}):c[0]===d?this._hexToRgb(c.substring(1)):c.substr(0,4)===P?(g=C.exec(c.replace(/ /g,"")),{r:parseInt(g[1],10),g:parseInt(g[2],10),b:parseInt(g[3],10)}):{r:0,g:0,b:0}},colorToRGBA(c){return c=c||"black",e.Util._namedColorToRBA(c)||e.Util._hex3ColorToRGBA(c)||e.Util._hex4ColorToRGBA(c)||e.Util._hex6ColorToRGBA(c)||e.Util._hex8ColorToRGBA(c)||e.Util._rgbColorToRGBA(c)||e.Util._rgbaColorToRGBA(c)||e.Util._hslColorToRGBA(c)},_namedColorToRBA(c){const g=y[c.toLowerCase()];return g?{r:g[0],g:g[1],b:g[2],a:1}:null},_rgbColorToRGBA(c){if(c.indexOf("rgb(")===0){c=c.match(/rgb\(([^)]+)\)/)[1];const g=c.split(/ *, */).map(Number);return{r:g[0],g:g[1],b:g[2],a:1}}},_rgbaColorToRGBA(c){if(c.indexOf("rgba(")===0){c=c.match(/rgba\(([^)]+)\)/)[1];const g=c.split(/ *, */).map((m,_)=>m.slice(-1)==="%"?_===3?parseInt(m)/100:parseInt(m)/100*255:Number(m));return{r:g[0],g:g[1],b:g[2],a:g[3]}}},_hex8ColorToRGBA(c){if(c[0]==="#"&&c.length===9)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:parseInt(c.slice(7,9),16)/255}},_hex6ColorToRGBA(c){if(c[0]==="#"&&c.length===7)return{r:parseInt(c.slice(1,3),16),g:parseInt(c.slice(3,5),16),b:parseInt(c.slice(5,7),16),a:1}},_hex4ColorToRGBA(c){if(c[0]==="#"&&c.length===5)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:parseInt(c[4]+c[4],16)/255}},_hex3ColorToRGBA(c){if(c[0]==="#"&&c.length===4)return{r:parseInt(c[1]+c[1],16),g:parseInt(c[2]+c[2],16),b:parseInt(c[3]+c[3],16),a:1}},_hslColorToRGBA(c){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(c)){const[g,...m]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(c),_=Number(m[0])/360,T=Number(m[1])/100,k=Number(m[2])/100;let R,E,A;if(T===0)return A=k*255,{r:Math.round(A),g:Math.round(A),b:Math.round(A),a:1};k<.5?R=k*(1+T):R=k+T-k*T;const F=2*k-R,V=[0,0,0];for(let B=0;B<3;B++)E=_+1/3*-(B-1),E<0&&E++,E>1&&E--,6*E<1?A=F+(R-F)*6*E:2*E<1?A=R:3*E<2?A=F+(R-F)*(2/3-E)*6:A=F,V[B]=A*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(c,g){return!(g.x>c.x+c.width||g.x+g.widthc.y+c.height||g.y+g.height1?(R=m,E=_,A=(m-T)*(m-T)+(_-k)*(_-k)):(R=c+V*(m-c),E=g+V*(_-g),A=(R-T)*(R-T)+(E-k)*(E-k))}return[R,E,A]},_getProjectionToLine(c,g,m){const _=e.Util.cloneObject(c);let T=Number.MAX_VALUE;return g.forEach(function(k,R){if(!m&&R===g.length-1)return;const E=g[(R+1)%g.length],A=e.Util._getProjectionToSegment(k.x,k.y,E.x,E.y,c.x,c.y),F=A[0],V=A[1],B=A[2];Bg.length){const R=g;g=c,c=R}for(let R=0;R{g.width=0,g.height=0})},drawRoundedRectPath(c,g,m,_){let T=0,k=0,R=0,E=0;typeof _=="number"?T=k=R=E=Math.min(_,g/2,m/2):(T=Math.min(_[0]||0,g/2,m/2),k=Math.min(_[1]||0,g/2,m/2),E=Math.min(_[2]||0,g/2,m/2),R=Math.min(_[3]||0,g/2,m/2)),c.moveTo(T,0),c.lineTo(g-k,0),c.arc(g-k,k,k,Math.PI*3/2,0,!1),c.lineTo(g,m-E),c.arc(g-E,m-E,E,0,Math.PI/2,!1),c.lineTo(R,m),c.arc(R,m-R,R,Math.PI/2,Math.PI,!1),c.lineTo(0,T),c.arc(T,T,T,Math.PI,Math.PI*3/2,!1)}}})(Lr);var Cr={},Et={},ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.RGBComponent=jJ;ht.alphaComponent=zJ;ht.getNumberValidator=VJ;ht.getNumberOrArrayOfNumbersValidator=BJ;ht.getNumberOrAutoValidator=UJ;ht.getStringValidator=HJ;ht.getStringOrGradientValidator=WJ;ht.getFunctionValidator=$J;ht.getNumberArrayValidator=GJ;ht.getBooleanValidator=KJ;ht.getComponentValidator=qJ;const _s=Tt,Ur=Lr;function xs(e){return Ur.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Ur.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function jJ(e){return e>255?255:e<0?0:Math.round(e)}function zJ(e){return e>1?1:e<1e-4?1e-4:e}function VJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isNumber(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function BJ(e){if(_s.Konva.isUnminified)return function(t,r){let n=Ur.Util._isNumber(t),o=Ur.Util._isArray(t)&&t.length==e;return!n&&!o&&Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be a number or Array('+e+")"),t}}function UJ(){if(_s.Konva.isUnminified)return function(e,t){var r=Ur.Util._isNumber(e),n=e==="auto";return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function HJ(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isString(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function WJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Ur.Util._isString(e),n=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return r||n||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function $J(){if(_s.Konva.isUnminified)return function(e,t){return Ur.Util._isFunction(e)||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function GJ(){if(_s.Konva.isUnminified)return function(e,t){const r=Int8Array?Object.getPrototypeOf(Int8Array):null;return r&&e instanceof r||(Ur.Util._isArray(e)?e.forEach(function(n){Ur.Util._isNumber(n)||Ur.Util.warn('"'+t+'" attribute has non numeric element '+n+". Make sure that all elements are numbers.")}):Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function KJ(){if(_s.Konva.isUnminified)return function(e,t){var r=e===!0||e===!1;return r||Ur.Util.warn(xs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function qJ(e){if(_s.Konva.isUnminified)return function(t,r){return t==null||Ur.Util.isObject(t)||Ur.Util.warn(xs(t)+' is a not valid value for "'+r+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Lr,r=ht,n="get",o="set";e.Factory={addGetterSetter(i,a,l,s,d){e.Factory.addGetter(i,a,l),e.Factory.addSetter(i,a,s,d),e.Factory.addOverloadedGetterSetter(i,a)},addGetter(i,a,l){var s=n+t.Util._capitalize(a);i.prototype[s]=i.prototype[s]||function(){const d=this.attrs[a];return d===void 0?l:d}},addSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]||e.Factory.overWriteSetter(i,a,l,s)},overWriteSetter(i,a,l,s){var d=o+t.Util._capitalize(a);i.prototype[d]=function(v){return l&&v!==void 0&&v!==null&&(v=l.call(this,v,a)),this._setAttr(a,v),s&&s.call(this),this}},addComponentsGetterSetter(i,a,l,s,d){const v=l.length,b=t.Util._capitalize,S=n+b(a),w=o+b(a);i.prototype[S]=function(){const y={};for(let C=0;C{this._setAttr(a+b(h),void 0)}),this._fireChangeEvent(a,C,y),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(i,a)},addOverloadedGetterSetter(i,a){var l=t.Util._capitalize(a),s=o+l,d=n+l;i.prototype[a]=function(){return arguments.length?(this[s](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(i,a,l,s){t.Util.error("Adding deprecated "+a);const d=n+t.Util._capitalize(a),v=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";i.prototype[d]=function(){t.Util.error(v);const b=this.attrs[a];return b===void 0?l:b},e.Factory.addSetter(i,a,s,function(){t.Util.error(v)}),e.Factory.addOverloadedGetterSetter(i,a)},backCompat(i,a){t.Util.each(a,function(l,s){const d=i.prototype[s],v=n+t.Util._capitalize(l),b=o+t.Util._capitalize(l);function S(){d.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+s+'" instead.')}i.prototype[l]=S,i.prototype[v]=S,i.prototype[b]=S})},afterSetFilter(){this._filterUpToDate=!1}}})(Et);var za={},is={};Object.defineProperty(is,"__esModule",{value:!0});is.HitContext=is.SceneContext=is.Context=void 0;const Qj=Lr,YJ=Tt;function XJ(e){const t=[],r=e.length,n=Qj.Util;for(let o=0;otypeof v=="number"?Math.floor(v):v)),i+=QJ+d.join(eE)+ZJ)):(i+=l.property,t||(i+=nee+l.val)),i+=tee;return i}clearTrace(){this.traceArr=[]}_trace(t){let r=this.traceArr,n;r.push(t),n=r.length,n>=iee&&r.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const r=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,r.getWidth()/r.pixelRatio,r.getHeight()/r.pixelRatio)}_applyLineCap(t){const r=t.attrs.lineCap;r&&this.setAttr("lineCap",r)}_applyOpacity(t){const r=t.getAbsoluteOpacity();r!==1&&this.setAttr("globalAlpha",r)}_applyLineJoin(t){const r=t.attrs.lineJoin;r&&this.setAttr("lineJoin",r)}setAttr(t,r){this._context[t]=r}arc(t,r,n,o,i,a){this._context.arc(t,r,n,o,i,a)}arcTo(t,r,n,o,i){this._context.arcTo(t,r,n,o,i)}beginPath(){this._context.beginPath()}bezierCurveTo(t,r,n,o,i,a){this._context.bezierCurveTo(t,r,n,o,i,a)}clearRect(t,r,n,o){this._context.clearRect(t,r,n,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,r){const n=arguments;if(n.length===2)return this._context.createImageData(t,r);if(n.length===1)return this._context.createImageData(t)}createLinearGradient(t,r,n,o){return this._context.createLinearGradient(t,r,n,o)}createPattern(t,r){return this._context.createPattern(t,r)}createRadialGradient(t,r,n,o,i,a){return this._context.createRadialGradient(t,r,n,o,i,a)}drawImage(t,r,n,o,i,a,l,s,d){const v=arguments,b=this._context;v.length===3?b.drawImage(t,r,n):v.length===5?b.drawImage(t,r,n,o,i):v.length===9&&b.drawImage(t,r,n,o,i,a,l,s,d)}ellipse(t,r,n,o,i,a,l,s){this._context.ellipse(t,r,n,o,i,a,l,s)}isPointInPath(t,r,n,o){return n?this._context.isPointInPath(n,t,r,o):this._context.isPointInPath(t,r,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,r,n,o){this._context.fillRect(t,r,n,o)}strokeRect(t,r,n,o){this._context.strokeRect(t,r,n,o)}fillText(t,r,n,o){o?this._context.fillText(t,r,n,o):this._context.fillText(t,r,n)}measureText(t){return this._context.measureText(t)}getImageData(t,r,n,o){return this._context.getImageData(t,r,n,o)}lineTo(t,r){this._context.lineTo(t,r)}moveTo(t,r){this._context.moveTo(t,r)}rect(t,r,n,o){this._context.rect(t,r,n,o)}roundRect(t,r,n,o,i){this._context.roundRect(t,r,n,o,i)}putImageData(t,r,n){this._context.putImageData(t,r,n)}quadraticCurveTo(t,r,n,o){this._context.quadraticCurveTo(t,r,n,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,r){this._context.scale(t,r)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,r,n,o,i,a){this._context.setTransform(t,r,n,o,i,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,r,n,o){this._context.strokeText(t,r,n,o)}transform(t,r,n,o,i,a){this._context.transform(t,r,n,o,i,a)}translate(t,r){this._context.translate(t,r)}_enableTrace(){let t=this,r=tE.length,n=this.setAttr,o,i;const a=function(l){let s=t[l],d;t[l]=function(){return i=XJ(Array.prototype.slice.call(arguments,0)),d=s.apply(t,arguments),t._trace({method:l,args:i}),d}};for(o=0;o{o.dragStatus==="dragging"&&(n=!0)}),n},justDragged:!1,get node(){let n;return e.DD._dragElements.forEach(o=>{n=o.node}),n},_dragElements:new Map,_drag(n){const o=[];e.DD._dragElements.forEach((i,a)=>{const{node:l}=i,s=l.getStage();s.setPointersPositions(n),i.pointerId===void 0&&(i.pointerId=r.Util._getFirstPointerId(n));const d=s._changedPointerPositions.find(v=>v.id===i.pointerId);if(d){if(i.dragStatus!=="dragging"){const v=l.dragDistance();if(Math.max(Math.abs(d.x-i.startPointerPos.x),Math.abs(d.y-i.startPointerPos.y)){i.fire("dragmove",{type:"dragmove",target:i,evt:n},!0)})},_endDragBefore(n){const o=[];e.DD._dragElements.forEach(i=>{const{node:a}=i,l=a.getStage();if(n&&l.setPointersPositions(n),!l._changedPointerPositions.find(v=>v.id===i.pointerId))return;(i.dragStatus==="dragging"||i.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,i.dragStatus="stopped");const d=i.node.getLayer()||i.node instanceof t.Konva.Stage&&i.node;d&&o.indexOf(d)===-1&&o.push(d)}),o.forEach(i=>{i.draw()})},_endDragAfter(n){e.DD._dragElements.forEach((o,i)=>{o.dragStatus==="stopped"&&o.node.fire("dragend",{type:"dragend",target:o.node,evt:n},!0),o.dragStatus!=="dragging"&&e.DD._dragElements.delete(i)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(z2);Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Node=void 0;const Dt=Lr,cm=Et,X0=za,Gs=Tt,qi=z2,Xr=ht,Xb="absoluteOpacity",nb="allEventListeners",$l="absoluteTransform",rE="absoluteScale",Dc="canvas",pee="Change",hee="children",gee="konva",c4="listening",nE="mouseenter",oE="mouseleave",iE="set",aE="Shape",Qb=" ",lE="stage",Xs="transform",vee="Stage",d4="visible",mee=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Qb);let yee=1,_t=class f4{constructor(t){this._id=yee++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Xs||t===$l)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,r){let n=this._cache.get(t);return(n===void 0||(t===Xs||t===$l)&&n.dirty===!0)&&(n=r.call(this),this._cache.set(t,n)),n}_calculate(t,r,n){if(!this._attachedDepsListeners.get(t)){const o=r.map(i=>i+"Change.konva").join(Qb);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,n)}_getCanvasCache(){return this._cache.get(Dc)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===$l&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Dc)){const{scene:t,filter:r,hit:n}=this._cache.get(Dc);Dt.Util.releaseCanvas(t,r,n),this._cache.delete(Dc)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const r=t||{};let n={};(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)&&(n=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(r.width||n.width),i=Math.ceil(r.height||n.height),a=r.pixelRatio,l=r.x===void 0?Math.floor(n.x):r.x,s=r.y===void 0?Math.floor(n.y):r.y,d=r.offset||0,v=r.drawBorder||!1,b=r.hitCanvasPixelRatio||1;if(!o||!i){Dt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const S=Math.abs(Math.round(n.x)-l)>.5?1:0,w=Math.abs(Math.round(n.y)-s)>.5?1:0;o+=d*2+S,i+=d*2+w,l-=d,s-=d;const P=new X0.SceneCanvas({pixelRatio:a,width:o,height:i}),y=new X0.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),C=new X0.HitCanvas({pixelRatio:b,width:o,height:i}),h=P.getContext(),p=C.getContext();return C.isCache=!0,P.isCache=!0,this._cache.delete(Dc),this._filterUpToDate=!1,r.imageSmoothingEnabled===!1&&(P.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),h.save(),p.save(),h.translate(-l,-s),p.translate(-l,-s),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Xb),this._clearSelfAndDescendantCache(rE),this.drawScene(P,this),this.drawHit(C,this),this._isUnderCache=!1,h.restore(),p.restore(),v&&(h.save(),h.beginPath(),h.rect(0,0,o,i),h.closePath(),h.setAttr("strokeStyle","red"),h.setAttr("lineWidth",5),h.stroke(),h.restore()),this._cache.set(Dc,{scene:P,filter:y,hit:C,x:l,y:s}),this._requestDraw(),this}isCached(){return this._cache.has(Dc)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,r){const n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,i=1/0,a=-1/0,l=-1/0;const s=this.getAbsoluteTransform(r);return n.forEach(function(d){const v=s.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),{x:o,y:i,width:a-o,height:l-i}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const r=this._getCanvasCache();t.translate(r.x,r.y);const n=this._getCachedSceneCanvas(),o=n.pixelRatio;t.drawImage(n._canvas,0,0,n.width/o,n.height/o),t.restore()}_drawCachedHitCanvas(t){const r=this._getCanvasCache(),n=r.hit;t.save(),t.translate(r.x,r.y),t.drawImage(n._canvas,0,0,n.width/n.pixelRatio,n.height/n.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),r=this._getCanvasCache(),n=r.scene,o=r.filter,i=o.getContext(),a,l,s,d;if(t){if(!this._filterUpToDate){const v=n.pixelRatio;o.setSize(n.width/n.pixelRatio,n.height/n.pixelRatio);try{for(a=t.length,i.clear(),i.drawImage(n._canvas,0,0,n.getWidth()/v,n.getHeight()/v),l=i.getImageData(0,0,o.getWidth(),o.getHeight()),s=0;s{let r,n;if(!t)return this;for(r in t)r!==hee&&(n=iE+Dt.Util._capitalize(r),Dt.Util._isFunction(this[n])?this[n](t[r]):this._setAttr(r,t[r]))}),this}isListening(){return this._getCache(c4,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(d4,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,r=!1){if(t)return this._isVisible(t)&&this._isListening(t);const n=this.getLayer();let o=!1;qi.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===n)&&(o=!0)});const i=!r&&!Gs.Konva.hitOnDragEnabled&&(o||Gs.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!i}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),r=this,n=0,o,i,a,l;function s(v){for(o=[],i=v.length,a=0;a0&&o[0].getDepth()<=t&&s(o)}const d=this.getStage();return r.nodeType!==vee&&d&&s(d.getChildren()),n}getDepth(){let t=0,r=this.parent;for(;r;)t++,r=r.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Xs),this._clearSelfAndDescendantCache($l)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const r=t.getPointerPosition();if(!r)return null;const n=this.getAbsoluteTransform().copy();return n.invert(),n.point(r)}getAbsolutePosition(t){let r=!1,n=this.parent;for(;n;){if(n.isCached()){r=!0;break}n=n.parent}r&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),i=new Dt.Transform,a=this.offset();return i.m=o.slice(),i.translate(a.x,a.y),i.getTranslation()}setAbsolutePosition(t){const{x:r,y:n,...o}=this._clearTransform();this.attrs.x=r,this.attrs.y=n,this._clearCache(Xs);const i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Xs),this._clearSelfAndDescendantCache($l),this}_setTransform(t){let r;for(r in t)this.attrs[r]=t[r]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let r=t.x,n=t.y,o=this.x(),i=this.y();return r!==void 0&&(o+=r),n!==void 0&&(i+=n),this.setPosition({x:o,y:i}),this}_eachAncestorReverse(t,r){let n=[],o=this.getParent(),i,a;if(!(r&&r._id===this._id)){for(n.unshift(this);o&&(!r||o._id!==r._id);)n.unshift(o),o=o.parent;for(i=n.length,a=0;a0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Dt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Dt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Dt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const r=this.index;return this.parent.children.splice(r,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Xb,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const r=this.getParent();return r&&!r._isUnderCache&&(t*=r.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),r,n,o,i,a;const l={attrs:{},className:this.getClassName()};for(r in t)n=t[r],a=Dt.Util.isObject(n)&&!Dt.Util._isPlainObject(n)&&!Dt.Util._isArray(n),!a&&(o=typeof this[r]=="function"&&this[r],delete t[r],i=o?o.call(this):null,t[r]=n,i!==n&&(l.attrs[r]=n));return Dt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,r,n){const o=[];r&&this._isMatch(t)&&o.push(this);let i=this.parent;for(;i;){if(i===n)return o;i._isMatch(t)&&o.push(i),i=i.parent}return o}isAncestorOf(t){return!1}findAncestor(t,r,n){return this.findAncestors(t,r,n)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let r=t.replace(/ /g,"").split(","),n=r.length,o,i;for(o=0;o{try{const o=t==null?void 0:t.callback;o&&delete t.callback,Dt.Util._urlToImage(this.toDataURL(t),function(i){r(i),o==null||o(i)})}catch(o){n(o)}})}toBlob(t){return new Promise((r,n)=>{try{const o=t==null?void 0:t.callback;o&&delete t.callback,this.toCanvas(t).toBlob(i=>{r(i),o==null||o(i)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(o){n(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Gs.Konva.dragDistance}_off(t,r,n){let o=this.eventListeners[t],i,a,l;for(i=0;i=0)||this.isDragging())return;let o=!1;qi.DD._dragElements.forEach(i=>{this.isAncestorOf(i.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const r=qi.DD._dragElements.get(this._id),n=r&&r.dragStatus==="dragging",o=r&&r.dragStatus==="ready";n?this.stopDrag():o&&qi.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const r=this.getStage();if(!r)return!1;const n={x:-t.x,y:-t.y,width:r.width()+2*t.x,height:r.height()+2*t.y};return Dt.Util.haveIntersection(n,this.getClientRect())}static create(t,r){return Dt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,r)}static _createNode(t,r){let n=f4.prototype.getClassName.call(t),o=t.children,i,a,l;r&&(t.attrs.container=r),Gs.Konva[n]||(Dt.Util.warn('Can not find a node with class name "'+n+'". Fallback to "Shape".'),n="Shape");const s=Gs.Konva[n];if(i=new s(t.attrs),o)for(a=o.length,l=0;l0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let n=0;n0?r[0]:void 0}_generalFind(t,r){const n=[];return this._descendants(o=>{const i=o._isMatch(t);return i&&n.push(o),!!(i&&r)}),n}_descendants(t){let r=!1;const n=this.getChildren();for(const o of n){if(r=t(o),r)return!0;if(o.hasChildren()&&(r=o._descendants(t),r))return!0}return!1}toObject(){const t=Ix.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(r=>{t.children.push(r.toObject())}),t}isAncestorOf(t){let r=t.getParent();for(;r;){if(r._id===this._id)return!0;r=r.getParent()}return!1}clone(t){const r=Ix.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(n){r.add(n.clone())}),r}getAllIntersections(t){const r=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(t)&&r.push(n)}),r}_clearSelfAndDescendantCache(t){var r;super._clearSelfAndDescendantCache(t),!this.isCached()&&((r=this.children)===null||r===void 0||r.forEach(function(n){n._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(r,n){r.index=n}),this._requestDraw()}drawScene(t,r,n){const o=this.getLayer(),i=t||o&&o.getCanvas(),a=i&&i.getContext(),l=this._getCanvasCache(),s=l&&l.scene,d=i&&i.isCache;if(!this.isVisible()&&!d)return this;if(s){a.save();const v=this.getAbsoluteTransform(r).getMatrix();a.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,r,n);return this}drawHit(t,r){if(!this.shouldDrawHit(r))return this;const n=this.getLayer(),o=t||n&&n.hitCanvas,i=o&&o.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const s=this.getAbsoluteTransform(r).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",o,r);return this}_drawChildren(t,r,n,o){var i;const a=r&&r.getContext(),l=this.clipWidth(),s=this.clipHeight(),d=this.clipFunc(),v=typeof l=="number"&&typeof s=="number"||d,b=n===this;if(v){a.save();const w=this.getAbsoluteTransform(n);let P=w.getMatrix();a.transform(P[0],P[1],P[2],P[3],P[4],P[5]),a.beginPath();let y;if(d)y=d.call(this,a,this);else{const C=this.clipX(),h=this.clipY();a.rect(C||0,h||0,l,s)}a.clip.apply(a,y),P=w.copy().invert().getMatrix(),a.transform(P[0],P[1],P[2],P[3],P[4],P[5])}const S=!b&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";S&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(w){w[t](r,n,o)}),S&&a.restore(),v&&a.restore()}getClientRect(t={}){var r;const n=t.skipTransform,o=t.relativeTo;let i,a,l,s,d={x:1/0,y:1/0,width:0,height:0};const v=this;(r=this.children)===null||r===void 0||r.forEach(function(w){if(!w.visible())return;const P=w.getClientRect({relativeTo:v,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(i===void 0?(i=P.x,a=P.y,l=P.x+P.width,s=P.y+P.height):(i=Math.min(i,P.x),a=Math.min(a,P.y),l=Math.max(l,P.x+P.width),s=Math.max(s,P.y+P.height)))});const b=this.find("Shape");let S=!1;for(let w=0;wce.indexOf("pointer")>=0?"pointer":ce.indexOf("touch")>=0?"touch":"mouse",Z=ce=>{const J=re(ce);if(J==="pointer")return o.Konva.pointerEventsEnabled&&X.pointer;if(J==="touch")return X.touch;if(J==="mouse")return X.mouse};function oe(ce={}){return(ce.clipFunc||ce.clipWidth||ce.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),ce}const fe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class ge extends n.Container{constructor(J){super(oe(J)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{oe(this.attrs)}),this._checkVisibility()}_validateAdd(J){const ie=J.getType()==="Layer",ue=J.getType()==="FastLayer";ie||ue||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const J=this.visible()?"":"none";this.content.style.display=J}setContainer(J){if(typeof J===v){if(J.charAt(0)==="."){const ue=J.slice(1);J=document.getElementsByClassName(ue)[0]}else{var ie;J.charAt(0)!=="#"?ie=J:ie=J.slice(1),J=document.getElementById(ie)}if(!J)throw"Can not find container in document with id "+ie}return this._setAttr("container",J),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),J.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const J=this.children,ie=J.length;for(let ue=0;ue-1&&e.stages.splice(ie,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const J=this._pointerPositions[0]||this._changedPointerPositions[0];return J?{x:J.x,y:J.y}:(t.Util.warn(fe),null)}_getPointerById(J){return this._pointerPositions.find(ie=>ie.id===J)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(J){J=J||{},J.x=J.x||0,J.y=J.y||0,J.width=J.width||this.width(),J.height=J.height||this.height();const ie=new i.SceneCanvas({width:J.width,height:J.height,pixelRatio:J.pixelRatio||1}),ue=ie.getContext()._context,Se=this.children;return(J.x||J.y)&&ue.translate(-1*J.x,-1*J.y),Se.forEach(function(Ce){if(!Ce.isVisible())return;const Me=Ce._toKonvaCanvas(J);ue.drawImage(Me._canvas,J.x,J.y,Me.getWidth()/Me.getPixelRatio(),Me.getHeight()/Me.getPixelRatio())}),ie}getIntersection(J){if(!J)return null;const ie=this.children,ue=ie.length,Se=ue-1;for(let Ce=Se;Ce>=0;Ce--){const Me=ie[Ce].getIntersection(J);if(Me)return Me}return null}_resizeDOM(){const J=this.width(),ie=this.height();this.content&&(this.content.style.width=J+b,this.content.style.height=ie+b),this.bufferCanvas.setSize(J,ie),this.bufferHitCanvas.setSize(J,ie),this.children.forEach(ue=>{ue.setSize({width:J,height:ie}),ue.draw()})}add(J,...ie){if(arguments.length>1){for(let Se=0;SeQ&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),J.setSize({width:this.width(),height:this.height()}),J.draw(),o.Konva.isBrowser&&this.content.appendChild(J.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(J){return s.hasPointerCapture(J,this)}setPointerCapture(J){s.setPointerCapture(J,this)}releaseCapture(J){s.releaseCapture(J,this)}getLayers(){return this.children}_bindContentEvents(){o.Konva.isBrowser&&W.forEach(([J,ie])=>{this.content.addEventListener(J,ue=>{this[ie](ue)},{passive:!1})})}_pointerenter(J){this.setPointersPositions(J);const ie=Z(J.type);ie&&this._fire(ie.pointerenter,{evt:J,target:this,currentTarget:this})}_pointerover(J){this.setPointersPositions(J);const ie=Z(J.type);ie&&this._fire(ie.pointerover,{evt:J,target:this,currentTarget:this})}_getTargetShape(J){let ie=this[J+"targetShape"];return ie&&!ie.getStage()&&(ie=null),ie}_pointerleave(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);const Se=this._getTargetShape(ue),Ce=!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled;Se&&Ce?(Se._fireAndBubble(ie.pointerout,{evt:J}),Se._fireAndBubble(ie.pointerleave,{evt:J}),this._fire(ie.pointerleave,{evt:J,target:this,currentTarget:this}),this[ue+"targetShape"]=null):Ce&&(this._fire(ie.pointerleave,{evt:J,target:this,currentTarget:this}),this._fire(ie.pointerout,{evt:J,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);let Se=!1;this._changedPointerPositions.forEach(Ce=>{const Me=this.getIntersection(Ce);if(a.DD.justDragged=!1,o.Konva["_"+ue+"ListenClick"]=!0,!Me||!Me.isListening()){this[ue+"ClickStartShape"]=void 0;return}o.Konva.capturePointerEventsEnabled&&Me.setPointerCapture(Ce.id),this[ue+"ClickStartShape"]=Me,Me._fireAndBubble(ie.pointerdown,{evt:J,pointerId:Ce.id}),Se=!0;const Le=J.type.indexOf("touch")>=0;Me.preventDefault()&&J.cancelable&&Le&&J.preventDefault()}),Se||this._fire(ie.pointerdown,{evt:J,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(J){const ie=Z(J.type),ue=re(J.type);if(!ie||(o.Konva.isDragging()&&a.DD.node.preventDefault()&&J.cancelable&&J.preventDefault(),this.setPointersPositions(J),!(!(o.Konva.isDragging()||o.Konva.isTransforming())||o.Konva.hitOnDragEnabled)))return;const Ce={};let Me=!1;const Le=this._getTargetShape(ue);this._changedPointerPositions.forEach(Re=>{const be=s.getCapturedShape(Re.id)||this.getIntersection(Re),ke=Re.id,ze={evt:J,pointerId:ke},Ye=Le!==be;if(Ye&&Le&&(Le._fireAndBubble(ie.pointerout,{...ze},be),Le._fireAndBubble(ie.pointerleave,{...ze},be)),be){if(Ce[be._id])return;Ce[be._id]=!0}be&&be.isListening()?(Me=!0,Ye&&(be._fireAndBubble(ie.pointerover,{...ze},Le),be._fireAndBubble(ie.pointerenter,{...ze},Le),this[ue+"targetShape"]=be),be._fireAndBubble(ie.pointermove,{...ze})):Le&&(this._fire(ie.pointerover,{evt:J,target:this,currentTarget:this,pointerId:ke}),this[ue+"targetShape"]=null)}),Me||this._fire(ie.pointermove,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(J){const ie=Z(J.type),ue=re(J.type);if(!ie)return;this.setPointersPositions(J);const Se=this[ue+"ClickStartShape"],Ce=this[ue+"ClickEndShape"],Me={};let Le=!1;this._changedPointerPositions.forEach(Re=>{const be=s.getCapturedShape(Re.id)||this.getIntersection(Re);if(be){if(be.releaseCapture(Re.id),Me[be._id])return;Me[be._id]=!0}const ke=Re.id,ze={evt:J,pointerId:ke};let Ye=!1;o.Konva["_"+ue+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ue+"DblTimeout"])):a.DD.justDragged||(o.Konva["_"+ue+"InDblClickWindow"]=!0,clearTimeout(this[ue+"DblTimeout"])),this[ue+"DblTimeout"]=setTimeout(function(){o.Konva["_"+ue+"InDblClickWindow"]=!1},o.Konva.dblClickWindow),be&&be.isListening()?(Le=!0,this[ue+"ClickEndShape"]=be,be._fireAndBubble(ie.pointerup,{...ze}),o.Konva["_"+ue+"ListenClick"]&&Se&&Se===be&&(be._fireAndBubble(ie.pointerclick,{...ze}),Ye&&Ce&&Ce===be&&be._fireAndBubble(ie.pointerdblclick,{...ze}))):(this[ue+"ClickEndShape"]=null,o.Konva["_"+ue+"ListenClick"]&&this._fire(ie.pointerclick,{evt:J,target:this,currentTarget:this,pointerId:ke}),Ye&&this._fire(ie.pointerdblclick,{evt:J,target:this,currentTarget:this,pointerId:ke}))}),Le||this._fire(ie.pointerup,{evt:J,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),o.Konva["_"+ue+"ListenClick"]=!1,J.cancelable&&ue!=="touch"&&ue!=="pointer"&&J.preventDefault()}_contextmenu(J){this.setPointersPositions(J);const ie=this.getIntersection(this.getPointerPosition());ie&&ie.isListening()?ie._fireAndBubble(F,{evt:J}):this._fire(F,{evt:J,target:this,currentTarget:this})}_wheel(J){this.setPointersPositions(J);const ie=this.getIntersection(this.getPointerPosition());ie&&ie.isListening()?ie._fireAndBubble(ne,{evt:J}):this._fire(ne,{evt:J,target:this,currentTarget:this})}_pointercancel(J){this.setPointersPositions(J);const ie=s.getCapturedShape(J.pointerId)||this.getIntersection(this.getPointerPosition());ie&&ie._fireAndBubble(m,s.createEvent(J)),s.releaseCapture(J.pointerId)}_lostpointercapture(J){s.releaseCapture(J.pointerId)}setPointersPositions(J){const ie=this._getContentPosition();let ue=null,Se=null;J=J||window.event,J.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(J.touches,Ce=>{this._pointerPositions.push({id:Ce.identifier,x:(Ce.clientX-ie.left)/ie.scaleX,y:(Ce.clientY-ie.top)/ie.scaleY})}),Array.prototype.forEach.call(J.changedTouches||J.touches,Ce=>{this._changedPointerPositions.push({id:Ce.identifier,x:(Ce.clientX-ie.left)/ie.scaleX,y:(Ce.clientY-ie.top)/ie.scaleY})})):(ue=(J.clientX-ie.left)/ie.scaleX,Se=(J.clientY-ie.top)/ie.scaleY,this.pointerPos={x:ue,y:Se},this._pointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}],this._changedPointerPositions=[{x:ue,y:Se,id:t.Util._getFirstPointerId(J)}])}_setPointerPosition(J){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(J)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const J=this.content.getBoundingClientRect();return{top:J.top,left:J.left,scaleX:J.width/this.content.clientWidth||1,scaleY:J.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new i.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new i.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!o.Konva.isBrowser)return;const J=this.container();if(!J)throw"Stage has no container. A container is required.";J.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),J.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(J){J.batchDraw()}),this}}e.Stage=ge,ge.prototype.nodeType=d,(0,l._registerNode)(ge),r.Factory.addGetterSetter(ge,"container"),o.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(ce=>{ce.batchDraw()})})})(ez);var dm={},_n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Tt,r=Lr,n=Et,o=Cr,i=ht,a=Tt,l=Wu,s="hasShadow",d="shadowRGBA",v="patternImage",b="linearGradient",S="radialGradient";let w;function P(){return w||(w=r.Util.createCanvasElement().getContext("2d"),w)}e.shapes={};function y(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function C(R){R.stroke()}function h(R){const E=this.attrs.fillRule;E?R.fill(E):R.fill()}function p(R){R.stroke()}function c(){this._clearCache(s)}function g(){this._clearCache(d)}function m(){this._clearCache(v)}function _(){this._clearCache(b)}function T(){this._clearCache(S)}class k extends o.Node{constructor(E){super(E);let A;for(;A=r.Util.getRandomColor(),!(A&&!(A in e.shapes)););this.colorKey=A,e.shapes[A]=this}getContext(){return r.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return r.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(s,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(v,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const A=P().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(A&&A.setTransform){const F=new r.Transform;F.translate(this.fillPatternX(),this.fillPatternY()),F.rotate(t.Konva.getAngle(this.fillPatternRotation())),F.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),F.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=F.getMatrix(),B=typeof DOMMatrix>"u"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);A.setTransform(B)}return A}}_getLinearGradient(){return this._getCache(b,this.__getLinearGradient)}__getLinearGradient(){const E=this.fillLinearGradientColorStops();if(E){const A=P(),F=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),B=A.createLinearGradient(F.x,F.y,V.x,V.y);for(let H=0;Hthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const E=this.hitStrokeWidth();return E==="auto"?this.hasStroke():this.strokeEnabled()&&!!E}intersects(E){const A=this.getStage();if(!A)return!1;const F=A.bufferHitCanvas;return F.getContext().clear(),this.drawHit(F,void 0,!0),F.context.getImageData(Math.round(E.x),Math.round(E.y),1,1).data[3]>0}destroy(){return o.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(E){var A;if(!((A=this.attrs.perfectDrawEnabled)!==null&&A!==void 0?A:!0))return!1;const V=E||this.hasFill(),B=this.hasStroke(),H=this.getAbsoluteOpacity()!==1;if(V&&B&&H)return!0;const q=this.hasShadow(),ne=this.shadowForStrokeEnabled();return!!(V&&B&&q&&ne)}setStrokeHitEnabled(E){r.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),E?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const E=this.size();return{x:this._centroid?-E.width/2:0,y:this._centroid?-E.height/2:0,width:E.width,height:E.height}}getClientRect(E={}){let A=!1,F=this.getParent();for(;F;){if(F.isCached()){A=!0;break}F=F.getParent()}const V=E.skipTransform,B=E.relativeTo||A&&this.getStage()||void 0,H=this.getSelfRect(),ne=!E.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=H.width+ne,W=H.height+ne,X=!E.skipShadow&&this.hasShadow(),re=X?this.shadowOffsetX():0,Z=X?this.shadowOffsetY():0,oe=Q+Math.abs(re),fe=W+Math.abs(Z),ge=X&&this.shadowBlur()||0,ce=oe+ge*2,J=fe+ge*2,ie={width:ce,height:J,x:-(ne/2+ge)+Math.min(re,0)+H.x,y:-(ne/2+ge)+Math.min(Z,0)+H.y};return V?ie:this._transformedRect(ie,B)}drawScene(E,A,F){const V=this.getLayer();let B=E||V.getCanvas(),H=B.getContext(),q=this._getCanvasCache(),ne=this.getSceneFunc(),Q=this.hasShadow(),W,X;const re=B.isCache,Z=A===this;if(!this.isVisible()&&!Z)return this;if(q){H.save();const fe=this.getAbsoluteTransform(A).getMatrix();return H.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5]),this._drawCachedSceneCanvas(H),H.restore(),this}if(!ne)return this;if(H.save(),this._useBufferCanvas()&&!re){W=this.getStage();const fe=F||W.bufferCanvas;X=fe.getContext(),X.clear(),X.save(),X._applyLineJoin(this);var oe=this.getAbsoluteTransform(A).getMatrix();X.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),ne.call(this,X,this),X.restore();const ge=fe.pixelRatio;Q&&H._applyShadow(this),H._applyOpacity(this),H._applyGlobalCompositeOperation(this),H.drawImage(fe._canvas,0,0,fe.width/ge,fe.height/ge)}else{if(H._applyLineJoin(this),!Z){var oe=this.getAbsoluteTransform(A).getMatrix();H.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),H._applyOpacity(this),H._applyGlobalCompositeOperation(this)}Q&&H._applyShadow(this),ne.call(this,H,this)}return H.restore(),this}drawHit(E,A,F=!1){if(!this.shouldDrawHit(A,F))return this;const V=this.getLayer(),B=E||V.hitCanvas,H=B&&B.getContext(),q=this.hitFunc()||this.sceneFunc(),ne=this._getCanvasCache(),Q=ne&&ne.hit;if(this.colorKey||r.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){H.save();const X=this.getAbsoluteTransform(A).getMatrix();return H.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(H),H.restore(),this}if(!q)return this;if(H.save(),H._applyLineJoin(this),!(this===A)){const X=this.getAbsoluteTransform(A).getMatrix();H.transform(X[0],X[1],X[2],X[3],X[4],X[5])}return q.call(this,H,this),H.restore(),this}drawHitFromCache(E=0){const A=this._getCanvasCache(),F=this._getCachedSceneCanvas(),V=A.hit,B=V.getContext(),H=V.getWidth(),q=V.getHeight();B.clear(),B.drawImage(F._canvas,0,0,H,q);try{const ne=B.getImageData(0,0,H,q),Q=ne.data,W=Q.length,X=r.Util._hexToRgb(this.colorKey);for(let re=0;reE?(Q[re]=X.r,Q[re+1]=X.g,Q[re+2]=X.b,Q[re+3]=255):Q[re+3]=0;B.putImageData(ne,0,0)}catch(ne){r.Util.error("Unable to draw hit graph from cached scene canvas. "+ne.message)}return this}hasPointerCapture(E){return l.hasPointerCapture(E,this)}setPointerCapture(E){l.setPointerCapture(E,this)}releaseCapture(E){l.releaseCapture(E,this)}}e.Shape=k,k.prototype._fillFunc=y,k.prototype._strokeFunc=C,k.prototype._fillFuncHit=h,k.prototype._strokeFuncHit=p,k.prototype._centroid=!1,k.prototype.nodeType="Shape",(0,a._registerNode)(k),k.prototype.eventListeners={},k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",c),k.prototype.on.call(k.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",g),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",m),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",_),k.prototype.on.call(k.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",T),n.Factory.addGetterSetter(k,"stroke",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"strokeWidth",2,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillAfterStrokeEnabled",!1),n.Factory.addGetterSetter(k,"hitStrokeWidth","auto",(0,i.getNumberOrAutoValidator)()),n.Factory.addGetterSetter(k,"strokeHitEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"perfectDrawEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"shadowForStrokeEnabled",!0,(0,i.getBooleanValidator)()),n.Factory.addGetterSetter(k,"lineJoin"),n.Factory.addGetterSetter(k,"lineCap"),n.Factory.addGetterSetter(k,"sceneFunc"),n.Factory.addGetterSetter(k,"hitFunc"),n.Factory.addGetterSetter(k,"dash"),n.Factory.addGetterSetter(k,"dashOffset",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowColor",void 0,(0,i.getStringValidator)()),n.Factory.addGetterSetter(k,"shadowBlur",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOpacity",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"shadowOffset",["x","y"]),n.Factory.addGetterSetter(k,"shadowOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"shadowOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternImage"),n.Factory.addGetterSetter(k,"fill",void 0,(0,i.getStringOrGradientValidator)()),n.Factory.addGetterSetter(k,"fillPatternX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternY",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillLinearGradientColorStops"),n.Factory.addGetterSetter(k,"strokeLinearGradientColorStops"),n.Factory.addGetterSetter(k,"fillRadialGradientStartRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndRadius",0),n.Factory.addGetterSetter(k,"fillRadialGradientColorStops"),n.Factory.addGetterSetter(k,"fillPatternRepeat","repeat"),n.Factory.addGetterSetter(k,"fillEnabled",!0),n.Factory.addGetterSetter(k,"strokeEnabled",!0),n.Factory.addGetterSetter(k,"shadowEnabled",!0),n.Factory.addGetterSetter(k,"dashEnabled",!0),n.Factory.addGetterSetter(k,"strokeScaleEnabled",!0),n.Factory.addGetterSetter(k,"fillPriority","color"),n.Factory.addComponentsGetterSetter(k,"fillPatternOffset",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternOffsetX",0,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternOffsetY",0,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillPatternScale",["x","y"]),n.Factory.addGetterSetter(k,"fillPatternScaleX",1,(0,i.getNumberValidator)()),n.Factory.addGetterSetter(k,"fillPatternScaleY",1,(0,i.getNumberValidator)()),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientStartPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientStartPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillLinearGradientEndPoint",["x","y"]),n.Factory.addComponentsGetterSetter(k,"strokeLinearGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillLinearGradientEndPointY",0),n.Factory.addGetterSetter(k,"strokeLinearGradientEndPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientStartPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientStartPointY",0),n.Factory.addComponentsGetterSetter(k,"fillRadialGradientEndPoint",["x","y"]),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointX",0),n.Factory.addGetterSetter(k,"fillRadialGradientEndPointY",0),n.Factory.addGetterSetter(k,"fillPatternRotation",0),n.Factory.addGetterSetter(k,"fillRule",void 0,(0,i.getStringValidator)()),n.Factory.backCompat(k,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(_n);Object.defineProperty(dm,"__esModule",{value:!0});dm.Layer=void 0;const Hl=Lr,Lx=Ed,If=Cr,IT=Et,sE=za,See=ht,Cee=_n,Pee=Tt,Tee="#",Oee="beforeDraw",kee="draw",nz=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],Eee=nz.length;let Sh=class extends Lx.Container{constructor(t){super(t),this.canvas=new sE.SceneCanvas,this.hitCanvas=new sE.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const r=this.getStage();return r&&r.content&&(r.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let r=1,n=!1;for(;;){for(let o=0;o0)return{antialiased:!0};return{}}drawScene(t,r){const n=this.getLayer(),o=t||n&&n.getCanvas();return this._fire(Oee,{node:this}),this.clearBeforeDraw()&&o.getContext().clear(),Lx.Container.prototype.drawScene.call(this,o,r),this._fire(kee,{node:this}),this}drawHit(t,r){const n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Lx.Container.prototype.drawHit.call(this,o,r),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return Hl.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return Hl.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};dm.Layer=Sh;Sh.prototype.nodeType="Layer";(0,Pee._registerNode)(Sh);IT.Factory.addGetterSetter(Sh,"imageSmoothingEnabled",!0);IT.Factory.addGetterSetter(Sh,"clearBeforeDraw",!0);IT.Factory.addGetterSetter(Sh,"hitGraphEnabled",!0,(0,See.getBooleanValidator)());var B2={};Object.defineProperty(B2,"__esModule",{value:!0});B2.FastLayer=void 0;const Mee=Lr,Ree=dm,Nee=Tt;class LT extends Ree.Layer{constructor(t){super(t),this.listening(!1),Mee.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}B2.FastLayer=LT;LT.prototype.nodeType="FastLayer";(0,Nee._registerNode)(LT);var Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});Ch.Group=void 0;const Aee=Lr,Iee=Ed,Lee=Tt;let DT=class extends Iee.Container{_validateAdd(t){const r=t.getType();r!=="Group"&&r!=="Shape"&&Aee.Util.throw("You may only add groups and shapes to groups.")}};Ch.Group=DT;DT.prototype.nodeType="Group";(0,Lee._registerNode)(DT);var Ph={};Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Animation=void 0;const Dx=Tt,uE=Lr,Fx=(function(){return Dx.glob.performance&&Dx.glob.performance.now?function(){return Dx.glob.performance.now()}:function(){return new Date().getTime()}})();class hl{constructor(t,r){this.id=hl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:Fx(),frameRate:0},this.func=t,this.setLayers(r)}setLayers(t){let r=[];return t&&(r=Array.isArray(t)?t:[t]),this.layers=r,this}getLayers(){return this.layers}addLayer(t){const r=this.layers,n=r.length;for(let o=0;othis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():P<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=P,this.update())}getTime(){return this._time}setPosition(P){this.prevPos=this._pos,this.propFunc(P),this._pos=P}getPosition(P){return P===void 0&&(P=this._time),this.func(P,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=s,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(P){this.pause(),this._time=P,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const P=this.getTimer()-this._startTime;this.state===l?this.setTime(P):this.state===s&&this.setTime(this.duration-P)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class S{constructor(P){const y=this,C=P.node,h=C._id,p=P.easing||e.Easings.Linear,c=!!P.yoyo;let g,m;typeof P.duration>"u"?g=.3:P.duration===0?g=.001:g=P.duration,this.node=C,this._id=v++;const _=C.getLayer()||(C instanceof o.Konva.Stage?C.getLayers():null);_||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation(function(){y.tween.onEnterFrame()},_),this.tween=new b(m,function(T){y._tweenFunc(T)},p,0,1,g*1e3,c),this._addListeners(),S.attrs[h]||(S.attrs[h]={}),S.attrs[h][this._id]||(S.attrs[h][this._id]={}),S.tweens[h]||(S.tweens[h]={});for(m in P)i[m]===void 0&&this._addAttr(m,P[m]);this.reset(),this.onFinish=P.onFinish,this.onReset=P.onReset,this.onUpdate=P.onUpdate}_addAttr(P,y){const C=this.node,h=C._id;let p,c,g,m,_;const T=S.tweens[h][P];T&&delete S.attrs[h][T][P];let k=C.getAttr(P);if(t.Util._isArray(y))if(p=[],c=Math.max(y.length,k.length),P==="points"&&y.length!==k.length&&(y.length>k.length?(m=k,k=t.Util._prepareArrayForTween(k,y,C.closed())):(g=y,y=t.Util._prepareArrayForTween(y,k,C.closed()))),P.indexOf("fill")===0)for(let R=0;R{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueEnd&&P.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const P=this.node,y=S.attrs[P._id][this._id];y.points&&y.points.trueStart&&P.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(P){return this.tween.seek(P*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const P=this.node._id,y=this._id,C=S.tweens[P];this.pause();for(const h in C)delete S.tweens[P][h];delete S.attrs[P][y]}}e.Tween=S,S.attrs={},S.tweens={},n.Node.prototype.to=function(w){const P=w.onFinish;w.node=this,w.onFinish=function(){this.destroy(),P&&P()},new S(w).play()},e.Easings={BackEaseIn(w,P,y,C){return y*(w/=C)*w*((1.70158+1)*w-1.70158)+P},BackEaseOut(w,P,y,C){return y*((w=w/C-1)*w*((1.70158+1)*w+1.70158)+1)+P},BackEaseInOut(w,P,y,C){let h=1.70158;return(w/=C/2)<1?y/2*(w*w*(((h*=1.525)+1)*w-h))+P:y/2*((w-=2)*w*(((h*=1.525)+1)*w+h)+2)+P},ElasticEaseIn(w,P,y,C,h,p){let c=0;return w===0?P:(w/=C)===1?P+y:(p||(p=C*.3),!h||h0?t:r),v=a*r,b=l*(l>0?t:r),S=s*(s>0?r:t);return{x:d,y:n?-1*S:b,width:v-d,height:S-b}}}U2.Arc=Ss;Ss.prototype._centroid=!0;Ss.prototype.className="Arc";Ss.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,Fee._registerNode)(Ss);H2.Factory.addGetterSetter(Ss,"innerRadius",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"outerRadius",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"angle",0,(0,W2.getNumberValidator)());H2.Factory.addGetterSetter(Ss,"clockwise",!1,(0,W2.getBooleanValidator)());var $2={},fm={};Object.defineProperty(fm,"__esModule",{value:!0});fm.Line=void 0;const G2=Et,jee=Tt,zee=_n,iz=ht;function p4(e,t,r,n,o,i,a){const l=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-t,2)),s=Math.sqrt(Math.pow(o-r,2)+Math.pow(i-n,2)),d=a*l/(l+s),v=a*s/(l+s),b=r-d*(o-e),S=n-d*(i-t),w=r+v*(o-e),P=n+v*(i-t);return[b,S,w,P]}function dE(e,t){const r=e.length,n=[];for(let o=2;o4){for(l=this.getTensionPoints(),s=l.length,d=i?0:4,i||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d{let d,v;const S=s/2;d=0;for(let w=0;w<20;w++)v=S*e.tValues[20][w]+S,d+=e.cValues[20][w]*n(a,l,v);return S*d};e.getCubicArcLength=t;const r=(a,l,s)=>{s===void 0&&(s=1);const d=a[0]-2*a[1]+a[2],v=l[0]-2*l[1]+l[2],b=2*a[1]-2*a[0],S=2*l[1]-2*l[0],w=4*(d*d+v*v),P=4*(d*b+v*S),y=b*b+S*S;if(w===0)return s*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const C=P/(2*w),h=y/w,p=s+C,c=h-C*C,g=p*p+c>0?Math.sqrt(p*p+c):0,m=C*C+c>0?Math.sqrt(C*C+c):0,_=C+Math.sqrt(C*C+c)!==0?c*Math.log(Math.abs((p+g)/(C+m))):0;return Math.sqrt(w)/2*(p*g-C*m+_)};e.getQuadraticArcLength=r;function n(a,l,s){const d=o(1,s,a),v=o(1,s,l),b=d*d+v*v;return Math.sqrt(b)}const o=(a,l,s)=>{const d=s.length-1;let v,b;if(d===0)return 0;if(a===0){b=0;for(let S=0;S<=d;S++)b+=e.binomialCoefficients[d][S]*Math.pow(1-l,d-S)*Math.pow(l,S)*s[S];return b}else{v=new Array(d);for(let S=0;S{let d=1,v=a/l,b=(a-s(v))/l,S=0;for(;d>.001;){const w=s(v+b),P=Math.abs(a-w)/l;if(P500)break}return v};e.t2length=i})(az);Object.defineProperty(Th,"__esModule",{value:!0});Th.Path=void 0;const Vee=Et,Bee=_n,Uee=Tt,Lf=az;class hn extends Bee.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=hn.parsePathData(this.data()),this.pathLength=hn.getPathLength(this.dataArray)}_sceneFunc(t){const r=this.dataArray;t.beginPath();let n=!1;for(let y=0;yl?a:l,w=a>l?1:a/l,P=a>l?l/a:1;t.translate(o,i),t.rotate(v),t.scale(w,P),t.arc(0,0,S,s,s+d,1-b),t.scale(1/w,1/P),t.rotate(-v),t.translate(-o,-i);break;case"z":n=!0,t.closePath();break}}!n&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(s){if(s.command==="A"){const d=s.points[4],v=s.points[5],b=s.points[4]+v;let S=Math.PI/180;if(Math.abs(d-b)b;w-=S){const P=hn.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],w,0);t.push(P.x,P.y)}else for(let w=d+S;wr[o].pathLength;)t-=r[o].pathLength,++o;if(o===i)return n=r[o-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=r[o].points.slice(0,2),{x:n[0],y:n[1]};const a=r[o],l=a.points;switch(a.command){case"L":return hn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return hn.getPointOnCubicBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return hn.getPointOnQuadraticBezier((0,Lf.t2length)(t,hn.getPathLength(r),y=>(0,Lf.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var s=l[0],d=l[1],v=l[2],b=l[3],S=l[4],w=l[5],P=l[6];return S+=w*t/a.pathLength,hn.getPointOnEllipticalArc(s,d,v,b,S,P)}return null}static getPointOnLine(t,r,n,o,i,a,l){a=a??r,l=l??n;const s=this.getLineLength(r,n,o,i);if(s<1e-10)return{x:r,y:n};if(o===r)return{x:a,y:l+(i>n?t:-t)};const d=(i-n)/(o-r),v=Math.sqrt(t*t/(1+d*d))*(o0&&!isNaN(E[0]);){let A="",F=[];const V=s,B=d;var S,w,P,y,C,h,p,c,g,m;switch(R){case"l":s+=E.shift(),d+=E.shift(),A="L",F.push(s,d);break;case"L":s=E.shift(),d=E.shift(),F.push(s,d);break;case"m":var _=E.shift(),T=E.shift();if(s+=_,d+=T,A="M",a.length>2&&a[a.length-1].command==="z"){for(let H=a.length-2;H>=0;H--)if(a[H].command==="M"){s=a[H].points[0]+_,d=a[H].points[1]+T;break}}F.push(s,d),R="l";break;case"M":s=E.shift(),d=E.shift(),A="M",F.push(s,d),R="L";break;case"h":s+=E.shift(),A="L",F.push(s,d);break;case"H":s=E.shift(),A="L",F.push(s,d);break;case"v":d+=E.shift(),A="L",F.push(s,d);break;case"V":d=E.shift(),A="L",F.push(s,d);break;case"C":F.push(E.shift(),E.shift(),E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"c":F.push(s+E.shift(),d+E.shift(),s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"S":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,E.shift(),E.shift()),s=E.shift(),d=E.shift(),A="C",F.push(s,d);break;case"s":w=s,P=d,S=a[a.length-1],S.command==="C"&&(w=s+(s-S.points[2]),P=d+(d-S.points[3])),F.push(w,P,s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="C",F.push(s,d);break;case"Q":F.push(E.shift(),E.shift()),s=E.shift(),d=E.shift(),F.push(s,d);break;case"q":F.push(s+E.shift(),d+E.shift()),s+=E.shift(),d+=E.shift(),A="Q",F.push(s,d);break;case"T":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s=E.shift(),d=E.shift(),A="Q",F.push(w,P,s,d);break;case"t":w=s,P=d,S=a[a.length-1],S.command==="Q"&&(w=s+(s-S.points[0]),P=d+(d-S.points[1])),s+=E.shift(),d+=E.shift(),A="Q",F.push(w,P,s,d);break;case"A":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s=E.shift(),d=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break;case"a":y=E.shift(),C=E.shift(),h=E.shift(),p=E.shift(),c=E.shift(),g=s,m=d,s+=E.shift(),d+=E.shift(),A="A",F=this.convertEndpointToCenterParameterization(g,m,s,d,p,c,y,C,h);break}a.push({command:A||R,points:F,start:{x:V,y:B},pathLength:this.calcLength(V,B,A||R,F)})}(R==="z"||R==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,r,n,o){let i,a,l,s;const d=hn;switch(n){case"L":return d.getLineLength(t,r,o[0],o[1]);case"C":return(0,Lf.getCubicArcLength)([t,o[0],o[2],o[4]],[r,o[1],o[3],o[5]],1);case"Q":return(0,Lf.getQuadraticArcLength)([t,o[0],o[2]],[r,o[1],o[3]],1);case"A":i=0;var v=o[4],b=o[5],S=o[4]+b,w=Math.PI/180;if(Math.abs(v-S)S;s-=w)l=d.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),i+=d.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(s=v+w;s1&&(l*=Math.sqrt(w),s*=Math.sqrt(w));let P=Math.sqrt((l*l*(s*s)-l*l*(S*S)-s*s*(b*b))/(l*l*(S*S)+s*s*(b*b)));i===a&&(P*=-1),isNaN(P)&&(P=0);const y=P*l*S/s,C=P*-s*b/l,h=(t+n)/2+Math.cos(v)*y-Math.sin(v)*C,p=(r+o)/2+Math.sin(v)*y+Math.cos(v)*C,c=function(E){return Math.sqrt(E[0]*E[0]+E[1]*E[1])},g=function(E,A){return(E[0]*A[0]+E[1]*A[1])/(c(E)*c(A))},m=function(E,A){return(E[0]*A[1]=1&&(R=0),a===0&&R>0&&(R=R-2*Math.PI),a===1&&R<0&&(R=R+2*Math.PI),[h,p,l,s,_,R,v,a]}}Th.Path=hn;hn.prototype.className="Path";hn.prototype._attrsAffectingSize=["data"];(0,Uee._registerNode)(hn);Vee.Factory.addGetterSetter(hn,"data");Object.defineProperty($2,"__esModule",{value:!0});$2.Arrow=void 0;const K2=Et,Hee=fm,lz=ht,Wee=Tt,fE=Th;class Rd extends Hee.Line{_sceneFunc(t){super._sceneFunc(t);const r=Math.PI*2,n=this.points();let o=n;const i=this.tension()!==0&&n.length>4;i&&(o=this.getTensionPoints());const a=this.pointerLength(),l=n.length;let s,d;if(i){const S=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],n[l-2],n[l-1]],w=fE.Path.calcLength(o[o.length-4],o[o.length-3],"C",S),P=fE.Path.getPointOnQuadraticBezier(Math.min(1,1-a/w),S[0],S[1],S[2],S[3],S[4],S[5]);s=n[l-2]-P.x,d=n[l-1]-P.y}else s=n[l-2]-n[l-4],d=n[l-1]-n[l-3];const v=(Math.atan2(d,s)+r)%r,b=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(n[l-2],n[l-1]),t.rotate(v),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(n[0],n[1]),i?(s=(o[0]+o[2])/2-n[0],d=(o[1]+o[3])/2-n[1]):(s=n[2]-n[0],d=n[3]-n[1]),t.rotate((Math.atan2(-d,-s)+r)%r),t.moveTo(0,0),t.lineTo(-a,b/2),t.lineTo(-a,-b/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const r=this.dashEnabled();r&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),r&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),r=this.pointerWidth()/2;return{x:t.x,y:t.y-r,width:t.width,height:t.height+r*2}}}$2.Arrow=Rd;Rd.prototype.className="Arrow";(0,Wee._registerNode)(Rd);K2.Factory.addGetterSetter(Rd,"pointerLength",10,(0,lz.getNumberValidator)());K2.Factory.addGetterSetter(Rd,"pointerWidth",10,(0,lz.getNumberValidator)());K2.Factory.addGetterSetter(Rd,"pointerAtBeginning",!1);K2.Factory.addGetterSetter(Rd,"pointerAtEnding",!0);var q2={};Object.defineProperty(q2,"__esModule",{value:!0});q2.Circle=void 0;const $ee=Et,Gee=_n,Kee=ht,qee=Tt;let Oh=class extends Gee.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};q2.Circle=Oh;Oh.prototype._centroid=!0;Oh.prototype.className="Circle";Oh.prototype._attrsAffectingSize=["radius"];(0,qee._registerNode)(Oh);$ee.Factory.addGetterSetter(Oh,"radius",0,(0,Kee.getNumberValidator)());var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.Ellipse=void 0;const FT=Et,Yee=_n,sz=ht,Xee=Tt;class Gu extends Yee.Shape{_sceneFunc(t){const r=this.radiusX(),n=this.radiusY();t.beginPath(),t.save(),r!==n&&t.scale(1,n/r),t.arc(0,0,r,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}Y2.Ellipse=Gu;Gu.prototype.className="Ellipse";Gu.prototype._centroid=!0;Gu.prototype._attrsAffectingSize=["radiusX","radiusY"];(0,Xee._registerNode)(Gu);FT.Factory.addComponentsGetterSetter(Gu,"radius",["x","y"]);FT.Factory.addGetterSetter(Gu,"radiusX",0,(0,sz.getNumberValidator)());FT.Factory.addGetterSetter(Gu,"radiusY",0,(0,sz.getNumberValidator)());var X2={};Object.defineProperty(X2,"__esModule",{value:!0});X2.Image=void 0;const jx=Lr,Nd=Et,Qee=_n,Zee=Tt,pm=ht;let xl=class uz extends Qee.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),r=this.hasShadow();return t&&r?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const r=this.getWidth(),n=this.getHeight(),o=this.cornerRadius(),i=this.attrs.image;let a;if(i){const l=this.attrs.cropWidth,s=this.attrs.cropHeight;l&&s?a=[i,this.cropX(),this.cropY(),l,s,0,0,r,n]:a=[i,0,0,r,n]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?jx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)),i&&(o&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){const r=this.width(),n=this.height(),o=this.cornerRadius();t.beginPath(),o?jx.Util.drawRoundedRectPath(t,r,n,o):t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,r;return(t=this.attrs.width)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.width}getHeight(){var t,r;return(t=this.attrs.height)!==null&&t!==void 0?t:(r=this.image())===null||r===void 0?void 0:r.height}static fromURL(t,r,n=null){const o=jx.Util.createImageElement();o.onload=function(){const i=new uz({image:o});r(i)},o.onerror=n,o.crossOrigin="Anonymous",o.src=t}};X2.Image=xl;xl.prototype.className="Image";(0,Zee._registerNode)(xl);Nd.Factory.addGetterSetter(xl,"cornerRadius",0,(0,pm.getNumberOrArrayOfNumbersValidator)(4));Nd.Factory.addGetterSetter(xl,"image");Nd.Factory.addComponentsGetterSetter(xl,"crop",["x","y","width","height"]);Nd.Factory.addGetterSetter(xl,"cropX",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropY",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropWidth",0,(0,pm.getNumberValidator)());Nd.Factory.addGetterSetter(xl,"cropHeight",0,(0,pm.getNumberValidator)());var eh={};Object.defineProperty(eh,"__esModule",{value:!0});eh.Tag=eh.Label=void 0;const Q2=Et,Jee=_n,ete=Ch,jT=ht,cz=Tt,dz=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],tte="Change.konva",rte="none",h4="up",g4="right",v4="down",m4="left",nte=dz.length;class zT extends ete.Group{constructor(t){super(t),this.on("add.konva",function(r){this._addListeners(r.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let r=this,n;const o=function(){r._sync()};for(n=0;n{r=Math.min(r,a.x),n=Math.max(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.y)}),{x:r,y:o,width:n-r,height:i-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}J2.RegularPolygon=Id;Id.prototype.className="RegularPolygon";Id.prototype._centroid=!0;Id.prototype._attrsAffectingSize=["radius"];(0,cte._registerNode)(Id);fz.Factory.addGetterSetter(Id,"radius",0,(0,pz.getNumberValidator)());fz.Factory.addGetterSetter(Id,"sides",0,(0,pz.getNumberValidator)());var e5={};Object.defineProperty(e5,"__esModule",{value:!0});e5.Ring=void 0;const hz=Et,dte=_n,gz=ht,fte=Tt,pE=Math.PI*2;class Ld extends dte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,pE,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),pE,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}e5.Ring=Ld;Ld.prototype.className="Ring";Ld.prototype._centroid=!0;Ld.prototype._attrsAffectingSize=["innerRadius","outerRadius"];(0,fte._registerNode)(Ld);hz.Factory.addGetterSetter(Ld,"innerRadius",0,(0,gz.getNumberValidator)());hz.Factory.addGetterSetter(Ld,"outerRadius",0,(0,gz.getNumberValidator)());var t5={};Object.defineProperty(t5,"__esModule",{value:!0});t5.Sprite=void 0;const Dd=Et,pte=_n,hte=Ph,vz=ht,gte=Tt;class Sl extends pte.Shape{constructor(t){super(t),this._updated=!0,this.anim=new hte.Animation(()=>{const r=this._updated;return this._updated=!1,r}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+0],s=i[o+1],d=i[o+2],v=i[o+3],b=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,v),t.closePath(),t.fillStrokeShape(this)),b)if(a){const S=a[r],w=n*2;t.drawImage(b,l,s,d,v,S[w+0],S[w+1],d,v)}else t.drawImage(b,l,s,d,v,0,0,d,v)}_hitFunc(t){const r=this.animation(),n=this.frameIndex(),o=n*4,i=this.animations()[r],a=this.frameOffsets(),l=i[o+2],s=i[o+3];if(t.beginPath(),a){const d=a[r],v=n*2;t.rect(d[v+0],d[v+1],l,s)}else t.rect(0,0,l,s);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),r=this.animation(),n=this.animations(),o=n[r],i=o.length/4;t{if(new RegExp("\\p{Emoji}","u").test(r)){const i=o[n+1];i&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(i)?(t.push(r+i),o[n+1]=""):t.push(r)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(r+(o[n+1]||""))?t.push(r+o[n+1]):n>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(r)?t[t.length-1]+=r:r&&t.push(r);return t},[])}const Df="auto",wte="center",mz="inherit",Q0="justify",_te="Change.konva",xte="2d",hE="-",yz="left",Ste="text",Cte="Text",Pte="top",Tte="bottom",gE="middle",bz="normal",Ote="px ",ob=" ",kte="right",vE="rtl",Ete="word",Mte="char",mE="none",Vx="…",wz=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],Rte=wz.length;function Nte(e){return e.split(",").map(t=>{t=t.trim();const r=t.indexOf(" ")>=0,n=t.indexOf('"')>=0||t.indexOf("'")>=0;return r&&!n&&(t=`"${t}"`),t}).join(", ")}let ib;function Bx(){return ib||(ib=y4.Util.createCanvasElement().getContext(xte),ib)}function Ate(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function Ite(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function Lte(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let Wr=class extends yte.Shape{constructor(t){super(Lte(t)),this._partialTextX=0,this._partialTextY=0;for(let r=0;r1&&(p+=a)}}_hitFunc(t){const r=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,r,n),t.closePath(),t.fillStrokeShape(this)}setText(t){const r=y4.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(Ste,r),this}getWidth(){return this.attrs.width===Df||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Df||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return y4.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var r,n,o,i,a,l,s,d,v,b,S;let w=Bx(),P=this.fontSize(),y;w.save(),w.font=this._getContextFont(),y=w.measureText(t),w.restore();const C=P/100;return{actualBoundingBoxAscent:(r=y.actualBoundingBoxAscent)!==null&&r!==void 0?r:71.58203125*C,actualBoundingBoxDescent:(n=y.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(o=y.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*C,actualBoundingBoxRight:(i=y.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*C,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*C,emHeightDescent:(s=y.emHeightDescent)!==null&&s!==void 0?s:-20*C,fontBoundingBoxAscent:(d=y.fontBoundingBoxAscent)!==null&&d!==void 0?d:91*C,fontBoundingBoxDescent:(v=y.fontBoundingBoxDescent)!==null&&v!==void 0?v:21*C,hangingBaseline:(b=y.hangingBaseline)!==null&&b!==void 0?b:72.80000305175781*C,ideographicBaseline:(S=y.ideographicBaseline)!==null&&S!==void 0?S:-21*C,width:y.width,height:P}}_getContextFont(){return this.fontStyle()+ob+this.fontVariant()+ob+(this.fontSize()+Ote)+Nte(this.fontFamily())}_addTextLine(t){this.align()===Q0&&(t=t.trim());const n=this._getTextWidth(t);return this.textArr.push({text:t,width:n,lastInParagraph:!1})}_getTextWidth(t){const r=this.letterSpacing(),n=t.length;return Bx().measureText(t).width+r*n}_setTextData(){let t=this.text().split(` +`),r=+this.fontSize(),n=0,o=this.lineHeight()*r,i=this.attrs.width,a=this.attrs.height,l=i!==Df&&i!==void 0,s=a!==Df&&a!==void 0,d=this.padding(),v=i-d*2,b=a-d*2,S=0,w=this.wrap(),P=w!==mE,y=w!==Mte&&P,C=this.ellipsis();this.textArr=[],Bx().font=this._getContextFont();const h=C?this._getTextWidth(Vx):0;for(let p=0,c=t.length;pv)for(;g.length>0;){let _=0,T=Bc(g).length,k="",R=0;for(;_>>1,A=Bc(g),F=A.slice(0,E+1).join(""),V=this._getTextWidth(F)+h;V<=v?(_=E+1,k=F,R=V):T=E}if(k){if(y){const F=Bc(g),V=Bc(k),B=F[V.length],H=B===ob||B===hE;let q;if(H&&R<=v)q=V.length;else{const ne=V.lastIndexOf(ob),Q=V.lastIndexOf(hE);q=Math.max(ne,Q)+1}q>0&&(_=q,k=F.slice(0,_).join(""),R=this._getTextWidth(k))}if(k=k.trimRight(),this._addTextLine(k),n=Math.max(n,R),S+=o,this._shouldHandleEllipsis(S)){this._tryToAddEllipsisToLastLine();break}if(g=Bc(g).slice(_).join("").trimLeft(),g.length>0&&(m=this._getTextWidth(g),m<=v)){this._addTextLine(g),S+=o,n=Math.max(n,m);break}}else break}else this._addTextLine(g),S+=o,n=Math.max(n,m),this._shouldHandleEllipsis(S)&&pb)break}this.textHeight=r,this.textWidth=n}_shouldHandleEllipsis(t){const r=+this.fontSize(),n=this.lineHeight()*r,o=this.attrs.height,i=o!==Df&&o!==void 0,a=this.padding(),l=o-a*2;return!(this.wrap()!==mE)||i&&t+n>l}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,r=t!==Df&&t!==void 0,n=this.padding(),o=t-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(r&&(this._getTextWidth(a.text+Vx)r?null:Z0.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Z0.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const r=this.textDecoration(),n=this.fill(),o=this.fontSize(),i=this.glyphInfo;r==="underline"&&t.beginPath();for(let a=0;a=1){const n=r[0].p0;t.moveTo(n.x,n.y)}for(let n=0;ne+`.${Pz}`).join(" "),wE="nodesRect",Hte=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],Wte={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},$te="ontouchstart"in Pa.Konva._global;function Gte(e,t,r){if(e==="rotater")return r;t+=tr.Util.degToRad(Wte[e]||0);const n=(tr.Util.radToDeg(t)%360+360)%360;return tr.Util._inRange(n,315+22.5,360)||tr.Util._inRange(n,0,22.5)?"ns-resize":tr.Util._inRange(n,45-22.5,45+22.5)?"nesw-resize":tr.Util._inRange(n,90-22.5,90+22.5)?"ew-resize":tr.Util._inRange(n,135-22.5,135+22.5)?"nwse-resize":tr.Util._inRange(n,180-22.5,180+22.5)?"ns-resize":tr.Util._inRange(n,225-22.5,225+22.5)?"nesw-resize":tr.Util._inRange(n,270-22.5,270+22.5)?"ew-resize":tr.Util._inRange(n,315-22.5,315+22.5)?"nwse-resize":(tr.Util.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}const xw=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Kte(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function Tz(e,t,r){const n=r.x+(e.x-r.x)*Math.cos(t)-(e.y-r.y)*Math.sin(t),o=r.y+(e.x-r.x)*Math.sin(t)+(e.y-r.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:n,y:o}}function qte(e,t){const r=Kte(e);return Tz(e,t,r)}function Yte(e,t,r){let n=t;for(let o=0;oo.isAncestorOf(this)?(tr.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=r,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=o._attrsAffectingSize.map(l=>l+"Change."+this._getEventNamespace()).join(" ");o.on(a,i),o.on(Hte.map(l=>l+`.${this._getEventNamespace()}`).join(" "),i),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let r;t.on(`dragstart.${this._getEventNamespace()}`,n=>{r=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(n,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!r)return;const o=t.getAbsolutePosition(),i=o.x-r.x,a=o.y-r.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const s=l.getAbsolutePosition();l.setAbsolutePosition({x:s.x+i,y:s.y+a}),l.startDrag(n)}),r=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(wE),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(wE,this.__getNodeRect)}__getNodeShape(t,r=this.rotation(),n){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=t.getAbsoluteScale(n),a=t.getAbsolutePosition(n),l=o.x*i.x-t.offsetX()*i.x,s=o.y*i.y-t.offsetY()*i.y,d=(Pa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),v={x:a.x+l*Math.cos(d)+s*Math.sin(-d),y:a.y+s*Math.cos(d)+l*Math.sin(d),width:o.width*i.x,height:o.height*i.y,rotation:d};return Tz(v,-Pa.Konva.getAngle(r),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const r=[];this.nodes().map(d=>{const v=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),b=[{x:v.x,y:v.y},{x:v.x+v.width,y:v.y},{x:v.x+v.width,y:v.y+v.height},{x:v.x,y:v.y+v.height}],S=d.getAbsoluteTransform();b.forEach(function(w){const P=S.point(w);r.push(P)})});const n=new tr.Transform;n.rotate(-Pa.Konva.getAngle(this.rotation()));let o=1/0,i=1/0,a=-1/0,l=-1/0;r.forEach(function(d){const v=n.point(d);o===void 0&&(o=a=v.x,i=l=v.y),o=Math.min(o,v.x),i=Math.min(i,v.y),a=Math.max(a,v.x),l=Math.max(l,v.y)}),n.invert();const s=n.point({x:o,y:i});return{x:s.x,y:s.y,width:a-o,height:l-i,rotation:Pa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),xw.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const r=new Vte.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:$te?10:"auto"}),n=this;r.on("mousedown touchstart",function(o){n._handleMouseDown(o)}),r.on("dragstart",o=>{r.stopDrag(),o.cancelBubble=!0}),r.on("dragend",o=>{o.cancelBubble=!0}),r.on("mouseenter",()=>{const o=Pa.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=Gte(t,o,i);r.getStage().content&&(r.getStage().content.style.cursor=a),this._cursorChange=!0}),r.on("mouseout",()=>{r.getStage().content&&(r.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(r)}_createBack(){const t=new zte.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(r,n){const o=n.getParent(),i=o.padding();r.beginPath(),r.rect(-i,-i,n.width()+i*2,n.height()+i*2),r.moveTo(n.width()/2,-i),o.rotateEnabled()&&o.rotateLineVisible()&&r.lineTo(n.width()/2,-o.rotateAnchorOffset()*tr.Util._sign(n.height())-i),r.fillStrokeShape(n)},hitFunc:(r,n)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();r.beginPath(),r.rect(-o,-o,n.width()+o*2,n.height()+o*2),r.fillStrokeShape(n)}});this.add(t),this._proxyDrag(t),t.on("dragstart",r=>{r.cancelBubble=!0}),t.on("dragmove",r=>{r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),this.on("dragmove",r=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const r=this._getNodeRect(),n=r.width,o=r.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(o,2));this.sin=Math.abs(o/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-a.x,y:l.y-a.y},b4++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:t.evt,target:s})})}_handleMouseMove(t){let r,n,o;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(t);const l=a.getPointerPosition();let s={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(d,s,t)),i.setAbsolutePosition(s);const v=i.getAbsolutePosition();if(d.x===v.x&&d.y===v.y)return;if(this._movingAnchorName==="rotater"){const m=this._getNodeRect();r=i.x()-m.width/2,n=-i.y()+m.height/2;let _=Math.atan2(-n,r)+Math.PI/2;m.height<0&&(_-=Math.PI);const k=Pa.Konva.getAngle(this.rotation())+_,R=Pa.Konva.getAngle(this.rotationSnapTolerance()),A=Yte(this.rotationSnaps(),k,R)-m.rotation,F=qte(m,A);this._fitNodesInto(F,t);return}const b=this.shiftBehavior();let S;b==="inverted"?S=this.keepRatio()&&!t.shiftKey:b==="none"?S=this.keepRatio():S=this.keepRatio()||t.shiftKey;var h=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-left").x()>w.x?-1:1,y=this.findOne(".top-left").y()>w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-left").x(w.x-r),this.findOne(".top-left").y(w.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(i.x()-w.x,2)+Math.pow(w.y-i.y(),2));var P=this.findOne(".top-right").x()w.y?-1:1;r=o*this.cos*P,n=o*this.sin*y,this.findOne(".top-right").x(w.x+r),this.findOne(".top-right").y(w.y-n)}var C=i.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(S){var w=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(w.x-i.x(),2)+Math.pow(i.y()-w.y,2));var P=w.x{var i;o._fire("transformend",{evt:t,target:o}),(i=o.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,r){const n=this._getNodeRect(),o=1;if(tr.Util._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tr.Util._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const i=new tr.Transform;if(i.rotate(Pa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const S=i.point({x:-this.padding()*2,y:0});t.x+=S.x,t.y+=S.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const S=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const S=i.point({x:0,y:-this.padding()*2});t.x+=S.x,t.y+=S.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const S=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=S.x,this._anchorDragOffset.y-=S.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const S=this.boundBoxFunc()(n,t);S?t=S:tr.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,l=new tr.Transform;l.translate(n.x,n.y),l.rotate(n.rotation),l.scale(n.width/a,n.height/a);const s=new tr.Transform,d=t.width/a,v=t.height/a;this.flipEnabled()===!1?(s.translate(t.x,t.y),s.rotate(t.rotation),s.translate(t.width<0?t.width:0,t.height<0?t.height:0),s.scale(Math.abs(d),Math.abs(v))):(s.translate(t.x,t.y),s.rotate(t.rotation),s.scale(d,v));const b=s.multiply(l.invert());this._nodes.forEach(S=>{var w;const P=S.getParent().getAbsoluteTransform(),y=S.getTransform().copy();y.translate(S.offsetX(),S.offsetY());const C=new tr.Transform;C.multiply(P.copy().invert()).multiply(b).multiply(P).multiply(y);const h=C.decompose();S.setAttrs(h),(w=S.getLayer())===null||w===void 0||w.batchDraw()}),this.rotation(tr.Util._getRotation(t.rotation)),this._nodes.forEach(S=>{this._fire("transform",{evt:r,target:S}),S._fire("transform",{evt:r,target:S})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,r){this.findOne(t).setAttrs(r)}update(){var t;const r=this._getNodeRect();this.rotation(tr.Util._getRotation(r.rotation));const n=r.width,o=r.height,i=this.enabledAnchors(),a=this.resizeEnabled(),l=this.padding(),s=this.anchorSize(),d=this.find("._anchor");d.forEach(b=>{b.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+l,offsetY:s/2+l,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+l,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-l,offsetY:s/2+l,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:s/2+l,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:o/2,offsetX:s/2-l,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:s/2+l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:o,offsetY:s/2-l,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:o,offsetX:s/2-l,offsetY:s/2-l,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*tr.Util._sign(o)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const v=this.anchorStyleFunc();v&&d.forEach(b=>{v(b)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),bE.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return yE.Node.prototype.toObject.call(this)}clone(t){return yE.Node.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}o5.Transformer=Bt;Bt.isTransforming=()=>b4>0;function Xte(e){return e instanceof Array||tr.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){xw.indexOf(t)===-1&&tr.Util.warn("Unknown anchor name: "+t+". Available names are: "+xw.join(", "))}),e||[]}Bt.prototype.className="Transformer";(0,Bte._registerNode)(Bt);qt.Factory.addGetterSetter(Bt,"enabledAnchors",xw,Xte);qt.Factory.addGetterSetter(Bt,"flipEnabled",!0,(0,Yu.getBooleanValidator)());qt.Factory.addGetterSetter(Bt,"resizeEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorSize",10,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateEnabled",!0);qt.Factory.addGetterSetter(Bt,"rotateLineVisible",!0);qt.Factory.addGetterSetter(Bt,"rotationSnaps",[]);qt.Factory.addGetterSetter(Bt,"rotateAnchorOffset",50,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"rotateAnchorCursor","crosshair");qt.Factory.addGetterSetter(Bt,"rotationSnapTolerance",5,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderEnabled",!0);qt.Factory.addGetterSetter(Bt,"anchorStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"anchorStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"anchorFill","white");qt.Factory.addGetterSetter(Bt,"anchorCornerRadius",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderStroke","rgb(0, 161, 255)");qt.Factory.addGetterSetter(Bt,"borderStrokeWidth",1,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"borderDash");qt.Factory.addGetterSetter(Bt,"keepRatio",!0);qt.Factory.addGetterSetter(Bt,"shiftBehavior","default");qt.Factory.addGetterSetter(Bt,"centeredScaling",!1);qt.Factory.addGetterSetter(Bt,"ignoreStroke",!1);qt.Factory.addGetterSetter(Bt,"padding",0,(0,Yu.getNumberValidator)());qt.Factory.addGetterSetter(Bt,"nodes");qt.Factory.addGetterSetter(Bt,"node");qt.Factory.addGetterSetter(Bt,"boundBoxFunc");qt.Factory.addGetterSetter(Bt,"anchorDragBoundFunc");qt.Factory.addGetterSetter(Bt,"anchorStyleFunc");qt.Factory.addGetterSetter(Bt,"shouldOverdrawWholeArea",!1);qt.Factory.addGetterSetter(Bt,"useSingleNodeRotation",!0);qt.Factory.backCompat(Bt,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var i5={};Object.defineProperty(i5,"__esModule",{value:!0});i5.Wedge=void 0;const a5=Et,Qte=_n,Zte=Tt,Oz=ht,Jte=Tt;class Cs extends Qte.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Zte.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}i5.Wedge=Cs;Cs.prototype.className="Wedge";Cs.prototype._centroid=!0;Cs.prototype._attrsAffectingSize=["radius"];(0,Jte._registerNode)(Cs);a5.Factory.addGetterSetter(Cs,"radius",0,(0,Oz.getNumberValidator)());a5.Factory.addGetterSetter(Cs,"angle",0,(0,Oz.getNumberValidator)());a5.Factory.addGetterSetter(Cs,"clockwise",!1);a5.Factory.backCompat(Cs,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var l5={};Object.defineProperty(l5,"__esModule",{value:!0});l5.Blur=void 0;const _E=Et,ere=Cr,tre=ht;function xE(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const rre=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],nre=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function ore(e,t){const r=e.data,n=e.width,o=e.height;let i,a,l,s,d,v,b,S,w,P,y,C,h,p,c,g,m,_,T,k,R,E,A,F;const V=t+t+1,B=n-1,H=o-1,q=t+1,ne=q*(q+1)/2,Q=new xE,W=rre[t],X=nre[t];let re=null,Z=Q,oe=null,fe=null;for(l=1;l>X,A!==0?(A=255/A,r[v]=(S*W>>X)*A,r[v+1]=(w*W>>X)*A,r[v+2]=(P*W>>X)*A):r[v]=r[v+1]=r[v+2]=0,S-=C,w-=h,P-=p,y-=c,C-=oe.r,h-=oe.g,p-=oe.b,c-=oe.a,s=b+((s=i+t+1)>X,A>0?(A=255/A,r[s]=(S*W>>X)*A,r[s+1]=(w*W>>X)*A,r[s+2]=(P*W>>X)*A):r[s]=r[s+1]=r[s+2]=0,S-=C,w-=h,P-=p,y-=c,C-=oe.r,h-=oe.g,p-=oe.b,c-=oe.a,s=i+((s=a+q)0&&ore(t,r)};l5.Blur=ire;_E.Factory.addGetterSetter(ere.Node,"blurRadius",0,(0,tre.getNumberValidator)(),_E.Factory.afterSetFilter);var s5={};Object.defineProperty(s5,"__esModule",{value:!0});s5.Brighten=void 0;const SE=Et,are=Cr,lre=ht,sre=function(e){const t=this.brightness()*255,r=e.data,n=r.length;for(let o=0;o255?255:o,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,r[l]=o,r[l+1]=i,r[l+2]=a};u5.Contrast=dre;CE.Factory.addGetterSetter(ure.Node,"contrast",0,(0,cre.getNumberValidator)(),CE.Factory.afterSetFilter);var c5={};Object.defineProperty(c5,"__esModule",{value:!0});c5.Emboss=void 0;const Lu=Et,d5=Cr,fre=Lr,kz=ht,pre=function(e){const t=this.embossStrength()*10,r=this.embossWhiteLevel()*255,n=this.embossDirection(),o=this.embossBlend(),i=e.data,a=e.width,l=e.height,s=a*4;let d=0,v=0,b=l;switch(n){case"top-left":d=-1,v=-1;break;case"top":d=-1,v=0;break;case"top-right":d=-1,v=1;break;case"right":d=0,v=1;break;case"bottom-right":d=1,v=1;break;case"bottom":d=1,v=0;break;case"bottom-left":d=1,v=-1;break;case"left":d=0,v=-1;break;default:fre.Util.error("Unknown emboss direction: "+n)}do{const S=(b-1)*s;let w=d;b+w<1&&(w=0),b+w>l&&(w=0);const P=(b-1+w)*a*4;let y=a;do{const C=S+(y-1)*4;let h=v;y+h<1&&(h=0),y+h>a&&(h=0);const p=P+(y-1+h)*4,c=i[C]-i[p],g=i[C+1]-i[p+1],m=i[C+2]-i[p+2];let _=c;const T=_>0?_:-_,k=g>0?g:-g,R=m>0?m:-m;if(k>T&&(_=g),R>T&&(_=m),_*=t,o){const E=i[C]+_,A=i[C+1]+_,F=i[C+2]+_;i[C]=E>255?255:E<0?0:E,i[C+1]=A>255?255:A<0?0:A,i[C+2]=F>255?255:F<0?0:F}else{let E=r-_;E<0?E=0:E>255&&(E=255),i[C]=i[C+1]=i[C+2]=E}}while(--y)}while(--b)};c5.Emboss=pre;Lu.Factory.addGetterSetter(d5.Node,"embossStrength",.5,(0,kz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossWhiteLevel",.5,(0,kz.getNumberValidator)(),Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossDirection","top-left",void 0,Lu.Factory.afterSetFilter);Lu.Factory.addGetterSetter(d5.Node,"embossBlend",!1,void 0,Lu.Factory.afterSetFilter);var f5={};Object.defineProperty(f5,"__esModule",{value:!0});f5.Enhance=void 0;const PE=Et,hre=Cr,gre=ht;function Wx(e,t,r,n,o){const i=r-t,a=o-n;if(i===0)return n+a/2;if(a===0)return n;let l=(e-t)/i;return l=a*l+n,l}const vre=function(e){const t=e.data,r=t.length;let n=t[0],o=n,i,a=t[1],l=a,s,d=t[2],v=d,b;const S=this.enhance();if(S===0)return;for(let _=0;_o&&(o=i),s=t[_+1],sl&&(l=s),b=t[_+2],bv&&(v=b);o===n&&(o=255,n=0),l===a&&(l=255,a=0),v===d&&(v=255,d=0);let w,P,y,C,h,p,c,g,m;S>0?(P=o+S*(255-o),y=n-S*(n-0),h=l+S*(255-l),p=a-S*(a-0),g=v+S*(255-v),m=d-S*(d-0)):(w=(o+n)*.5,P=o+S*(o-w),y=n+S*(n-w),C=(l+a)*.5,h=l+S*(l-C),p=a+S*(a-C),c=(v+d)*.5,g=v+S*(v-c),m=d+S*(d-c));for(let _=0;_d?S:d;const w=a,P=i,y=360/P*Math.PI/180;for(let C=0;Cd?S:d;const w=a,P=i,y=0;let C,h;for(v=0;vt&&(g=c,m=0,_=-1),o=0;o=0&&w=0&&P=0&&w=0&&P=1020?255:0}return a}function Rre(e,t,r){const n=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(n.length)),i=Math.floor(o/2),a=[];for(let l=0;l=0&&w=0&&P=r))for(i=y;i=n||(a=(r*i+o)*4,l+=g[a+0],s+=g[a+1],d+=g[a+2],v+=g[a+3],c+=1);for(l=l/c,s=s/c,d=d/c,v=v/c,o=w;o=r))for(i=y;i=n||(a=(r*i+o)*4,g[a+0]=l,g[a+1]=s,g[a+2]=d,g[a+3]=v)}};w5.Pixelate=zre;EE.Factory.addGetterSetter(Fre.Node,"pixelSize",8,(0,jre.getNumberValidator)(),EE.Factory.afterSetFilter);var _5={};Object.defineProperty(_5,"__esModule",{value:!0});_5.Posterize=void 0;const ME=Et,Vre=Cr,Bre=ht,Ure=function(e){const t=Math.round(this.levels()*254)+1,r=e.data,n=r.length,o=255/t;for(let i=0;i255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter(GT.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Cw.Factory.addGetterSetter(GT.Node,"blue",0,Hre.RGBComponent,Cw.Factory.afterSetFilter);var S5={};Object.defineProperty(S5,"__esModule",{value:!0});S5.RGBA=void 0;const Rv=Et,C5=Cr,$re=ht,Gre=function(e){const t=e.data,r=t.length,n=this.red(),o=this.green(),i=this.blue(),a=this.alpha();for(let l=0;l255?255:e<0?0:Math.round(e)});Rv.Factory.addGetterSetter(C5.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)});Rv.Factory.addGetterSetter(C5.Node,"blue",0,$re.RGBComponent,Rv.Factory.afterSetFilter);Rv.Factory.addGetterSetter(C5.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var P5={};Object.defineProperty(P5,"__esModule",{value:!0});P5.Sepia=void 0;const Kre=function(e){const t=e.data,r=t.length;for(let n=0;n127&&(d=255-d),v>127&&(v=255-v),b>127&&(b=255-b),t[s]=d,t[s+1]=v,t[s+2]=b}while(--l)}while(--i)};T5.Solarize=qre;var O5={};Object.defineProperty(O5,"__esModule",{value:!0});O5.Threshold=void 0;const RE=Et,Yre=Cr,Xre=ht,Qre=function(e){const t=this.threshold()*255,r=e.data,n=r.length;for(let o=0;ose||L[K]!==j[se]){var ye=` @@ -126,7 +126,7 @@ Error generating stack: `+j.message+` `+(N.join(" > ")+` No matching component was found for: - `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return q(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:pe,findFiberByHostInstance:u.findFiberByHostInstance||me,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)u=!0;else{try{ii=f.inject(u),ai=f}catch{}u=!!f.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,f,O,N){if(!gt)throw Error(a(363));u=Rc(u,f);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,f){var O=f._getVersion;O=O(f._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[f,O]:u.mutableSourceEagerHydrationData.push(f,O)},r.runWithPriority=function(u,f){var O=Vt;try{return Vt=u,f()}finally{Vt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,f,O,N){var L=f.current,j=pn(),K=nl(L);return O=ee(O),f.context===null?f.context=O:f.pendingContext=O,f=ci(j,K),f.payload={element:u},N=N===void 0?null:N,N!==null&&(f.callback=N),u=Za(L,f,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Mz.exports=Dne;var Fne=Mz.exports;const jne=oh(Fne);var Rz={exports:{}},Fd={};/** + `)+u.join(" > ")}return null},r.getPublicRootInstance=function(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return q(u.child.stateNode);default:return u.child.stateNode}},r.injectIntoDevTools=function(u){if(u={bundleType:u.bundleType,version:u.version,rendererPackageName:u.rendererPackageName,rendererConfig:u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:pe,findFiberByHostInstance:u.findFiberByHostInstance||me,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")u=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)u=!0;else{try{ii=f.inject(u),ai=f}catch{}u=!!f.checkDCE}}return u},r.isAlreadyRendering=function(){return!1},r.observeVisibleRects=function(u,f,O,N){if(!gt)throw Error(a(363));u=Rc(u,f);var L=Dr(u,O,N).disconnect;return{disconnect:function(){L()}}},r.registerMutableSourceForHydration=function(u,f){var O=f._getVersion;O=O(f._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[f,O]:u.mutableSourceEagerHydrationData.push(f,O)},r.runWithPriority=function(u,f){var O=Vt;try{return Vt=u,f()}finally{Vt=O}},r.shouldError=function(){return null},r.shouldSuspend=function(){return!1},r.updateContainer=function(u,f,O,N){var L=f.current,j=pn(),K=nl(L);return O=ee(O),f.context===null?f.context=O:f.pendingContext=O,f=ci(j,K),f.payload={element:u},N=N===void 0?null:N,N!==null&&(f.callback=N),u=Za(L,f,K),u!==null&&(Uo(u,L,K,j),Zd(u,L,K)),K},r};Rz.exports=Fne;var jne=Rz.exports;const zne=oh(jne);var Nz={exports:{}},Fd={};/** * @license React * react-reconciler-constants.production.min.js * @@ -134,56 +134,56 @@ No matching component was found for: * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Rz.exports=Fd;var Nz=Rz.exports;const IE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let LE=!1,DE=!1;const KT=".react-konva-event",zne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. + */Fd.ConcurrentRoot=1;Fd.ContinuousEventPriority=4;Fd.DefaultEventPriority=16;Fd.DiscreteEventPriority=1;Fd.IdleEventPriority=536870912;Fd.LegacyRoot=0;Nz.exports=Fd;var Az=Nz.exports;const IE={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let LE=!1,DE=!1;const KT=".react-konva-event",Vne=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. Position of a node will be changed during drag&drop, so you should update state of the react app as well. Consider to add onDragMove or onDragEnd events. For more info see: https://github.com/konvajs/react-konva/issues/256 -`,Vne=`ReactKonva: You are using "zIndex" attribute for a Konva node. +`,Bne=`ReactKonva: You are using "zIndex" attribute for a Konva node. react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. For more info see: https://github.com/konvajs/react-konva/issues/194 -`,Bne={};function k5(e,t,r=Bne){if(!LE&&"zIndex"in t&&(console.warn(Vne),LE=!0),!DE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(zne),DE=!0)}for(var i in r)if(!IE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,b={},S=!1;const w={};for(var i in t)if(!IE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(w[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,b[i]=t[i])}S&&(e.setAttrs(b),Xu(e));for(var s in w)e.on(s+KT,w[s])}function Xu(e){if(!Tt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Az={},Une={};Nv.Node.prototype._applyProps=k5;function Hne(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function Wne(e,t,r){let n=Nv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Nv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return k5(s,i),s}function $ne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Gne(e,t,r){return!1}function Kne(e){return e}function qne(){return null}function Yne(){return null}function Xne(e,t,r,n){return Une}function Qne(){}function Zne(e){}function Jne(e,t){return!1}function eoe(){return Az}function toe(){return Az}const roe=setTimeout,noe=clearTimeout,ooe=-1;function ioe(e,t){return!1}const aoe=!1,loe=!0,soe=!0;function uoe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function coe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Iz(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function doe(e,t,r){Iz(e,t,r)}function foe(e,t){t.destroy(),t.off(KT),Xu(e)}function poe(e,t){t.destroy(),t.off(KT),Xu(e)}function hoe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function goe(e,t,r){}function voe(e,t,r,n,o){k5(e,o,n)}function moe(e){e.hide(),Xu(e)}function yoe(e){}function boe(e,t){(t.visible==null||t.visible)&&e.show()}function woe(e,t){}function _oe(e){}function xoe(){}const Soe=()=>Nz.DefaultEventPriority,Coe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:uoe,appendChildToContainer:coe,appendInitialChild:Hne,cancelTimeout:noe,clearContainer:_oe,commitMount:goe,commitTextUpdate:hoe,commitUpdate:voe,createInstance:Wne,createTextInstance:$ne,detachDeletedInstance:xoe,finalizeInitialChildren:Gne,getChildHostContext:toe,getCurrentEventPriority:Soe,getPublicInstance:Kne,getRootHostContext:eoe,hideInstance:moe,hideTextInstance:yoe,idlePriority:pp.unstable_IdlePriority,insertBefore:Iz,insertInContainerBefore:doe,isPrimaryRenderer:aoe,noTimeout:ooe,now:pp.unstable_now,prepareForCommit:qne,preparePortalMount:Yne,prepareUpdate:Xne,removeChild:foe,removeChildFromContainer:poe,resetAfterCommit:Qne,resetTextContent:Zne,run:pp.unstable_runWithPriority,scheduleTimeout:roe,shouldDeprioritizeSubtree:Jne,shouldSetTextContent:ioe,supportsMutation:soe,unhideInstance:boe,unhideTextInstance:woe,warnsIfNotActing:loe},Symbol.toStringTag,{value:"Module"}));var Poe=Object.defineProperty,Toe=Object.defineProperties,Ooe=Object.getOwnPropertyDescriptors,FE=Object.getOwnPropertySymbols,koe=Object.prototype.hasOwnProperty,Eoe=Object.prototype.propertyIsEnumerable,jE=(e,t,r)=>t in e?Poe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))koe.call(t,r)&&jE(e,r,t[r]);if(FE)for(var r of FE(t))Eoe.call(t,r)&&jE(e,r,t[r]);return e},Moe=(e,t)=>Toe(e,Ooe(t)),VE,BE;typeof window<"u"&&((VE=window.document)!=null&&VE.createElement||((BE=window.navigator)==null?void 0:BE.product)==="ReactNative")?Y.useLayoutEffect:Y.useEffect;function Lz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Lz(n,t,r);if(o)return o;n=n.sibling}}function Dz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const UE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=UE;return}return UE.apply(this,arguments)};const qT=Dz(Y.createContext(null));class Fz extends Y.Component{render(){return Y.createElement(qT.Provider,{value:this._reactInternals},this.props.children)}}function Roe(){const e=Y.useContext(qT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=Y.useId();return Y.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Lz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Noe(){const e=Roe(),[t]=Y.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==qT&&!t.has(o)&&t.set(o,Y.useContext(Dz(o)))}r=r.return}return t}function Aoe(){const e=Noe();return Y.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>Y.createElement(t,null,Y.createElement(r.Provider,Moe(zE({},n),{value:e.get(r)}))),t=>Y.createElement(Fz,zE({},t))),[e])}function Ioe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Loe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Ioe(e),i=Aoe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Nv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=pg.createContainer(r.current,Nz.LegacyRoot,!1,null),pg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Nv.isBrowser&&(a(null),pg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),k5(r.current,e,o),pg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},$x="Layer",HE="Group",Doe="Rect",Ff="Circle",Foe="Line",joe="Image",WE="Text",pg=jne(Coe);pg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const zoe=Or.forwardRef((e,t)=>Or.createElement(Fz,{},Or.createElement(Loe,{...e,forwardedRef:t})));function Voe(e){window.open(e,"_blank","noreferrer")}function _4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Boe(e,t){return t.includes(e)}const jg="https://roguewar.org",Uoe=2.5,Hoe=1,Woe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{var re;const v=e.isCapital?Uoe:Hoe,b=(Z,oe)=>[...Z].sort((fe,ge)=>ge.control-fe.control).map(fe=>{const ge=_4(fe.Name,oe);return{name:(ge==null?void 0:ge.prettyName)||fe.Name,control:fe.control,players:fe.ActivePlayers}}),S=Z=>`${Z.name} ${Z.control}% · P${Z.players}`,w=e.factions.some(Z=>Z.ActivePlayers>0),P=!!((re=e.state)!=null&&re.isInsurrect),y=n.flashActivePlayes&&w,C=y?1.25:1,h=(s?v*3:v)*C/t,p=Number(e.posX),c=-Number(e.posY),g=y?Math.min(1,d+.25):d,m=h*2.5,_=Math.min(.34,g*.4),T=Math.min(.4,g*.4),k=h*.45,R=Math.min(.42,g*.45),E=h*.35,A=`rgba(255,255,255,${R})`,F="rgba(255,255,255,0)",V=h*3.3,B=Math.min(.22,g*.26),H=h*2.1,q=Y.useRef(null),ne=Y.useRef(null);Y.useEffect(()=>{if(!P||!q.current)return;const Z=q.current,oe=Math.min(.22,g*.25),fe=new Pw.Animation(ge=>{if(!ge)return;const ce=(Math.sin(ge.time*.004)+1)/2,J=.86+ce*.72,ie=Math.min(.5,oe+ce*.24);Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]),Y.useEffect(()=>{if(!P||!ne.current)return;const Z=ne.current,oe=g,fe=new Pw.Animation(ge=>{if(!ge)return;const ce=Math.sin(ge.time*.0045),J=1+ce*.2,ie=Math.max(.3,Math.min(1,oe+ce*.24));Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]);const Q=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",W=Z=>{if(!Z)return"None";const fe=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([ge])=>Z[ge]).map(([,ge])=>ge);return fe.length?fe.join(", "):"None"},X=(Z=!1)=>{var ue;const oe=((ue=_4(e.owner,r))==null?void 0:ue.prettyName)||"Unknown",fe=b(e.factions,r),ge=fe.slice(0,3),ce=Math.max(0,fe.length-ge.length),J=W(e.state),ie=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${oe}`,"Control:",...ge.map(S),...ce>0?[`+${ce} more`]:[],`Damage: ${Q}`];return J!=="None"&&ie.push(`State: ${J}`),Z&&ie.push("[Tap to open]"),{text:ie.join(` -`),controlItems:fe}};return Ie.jsxs(Ie.Fragment,{children:[P&&Ie.jsx(Ff,{x:p,y:c,radius:V,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:V,fillRadialGradientColorStops:[0,`rgba(168,85,247,${Math.min(.32,B+.06)})`,.6,`rgba(168,85,247,${B})`,1,"rgba(168,85,247,0)"],listening:!1}),P&&Ie.jsx(Ff,{ref:q,x:p,y:c,radius:H,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:H,fillRadialGradientColorStops:[0,"rgba(192,132,252,0.34)",1,"rgba(192,132,252,0)"],listening:!1}),y&&Ie.jsx(Ff,{x:p,y:c,fill:e.factionColour,radius:m,opacity:_,listening:!1}),y&&Ie.jsx(Ff,{x:p,y:c,radius:h,stroke:"#ffffff",strokeWidth:Math.max(.2,h*.14),opacity:T,listening:!1}),Ie.jsx(Ff,{ref:ne,x:p,y:c,fill:e.factionColour,radius:h,hitStrokeWidth:3,opacity:g,onClick:Z=>{Z.cancelBubble=!0,e.sysUrl&&Voe(`${jg}${e.sysUrl}`)},onMouseEnter:Z=>{const oe=Z.target.getStage();if(!oe)return;const fe=oe.getPointerPosition();if(!fe)return;const ge=X();o(ge.text,fe.x,fe.y,oe.x(),oe.y(),void 0,ge.controlItems)},onMouseLeave:i,onTouchStart:Z=>{if(Z.evt.touches.length===1){Z.evt.preventDefault();const oe=Z.target.getStage();if(!oe)return;const fe=oe.getRelativePointerPosition();if(!fe)return;if(a.current&&l.current===e.name){window.location.href=`${jg}${e.sysUrl}`;return}const ge=X(!0);o(ge.text,fe.x,fe.y,void 0,void 0,()=>{window.location.href=`${jg}${e.sysUrl}`},ge.controlItems),l.current=e.name}}}),y&&Ie.jsx(Ff,{x:p-E,y:c-E,radius:k,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:k,fillRadialGradientColorStops:[0,A,1,F],listening:!1})]})},$oe=Y.memo(Woe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Goe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jz(e){var t=Goe(e,"string");return vd(t)=="symbol"?t:t+""}function hg(e,t,r){return(t=jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(Eh,--ri):0,nh--,nn===10&&(nh=1,M5--),nn}function Ti(){return nn=ri2||Iv(nn)>3?"":" "}function _ie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return gm(e,Zb()+(t<6&&bl()==32&&Ti()==32))}function P4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&P4(nn);break;case 40:e===41&&P4(e);break;case 92:Ti();break}return ri}function xie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+gm(t,ri-1)+"*"+E5(e===47?e:Ti())}function Sie(e){for(;!Iv(bl());)Ti();return gm(e,ri)}function Cie(e){return Gz(e1("",null,null,null,[""],e=$z(e),0,[0],e))}function e1(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,b=a,S=0,w=0,P=0,y=1,C=1,h=1,p=0,c="",g=o,m=i,_=n,T=c;C;)switch(P=p,p=Ti()){case 40:if(P!=108&&$n(T,b-1)==58){C4(T+=Kt(Jb(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:T+=Jb(p);break;case 9:case 10:case 13:case 32:T+=wie(P);break;case 92:T+=_ie(Zb()-1,7);continue;case 47:switch(bl()){case 42:case 47:lb(Pie(xie(Ti(),Zb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*h;case 125*y:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+v:h==-1&&(T=Kt(T,/\f/g,"")),w>0&&cl(T)-b&&lb(w>32?qE(T+";",n,r,b-1):qE(Kt(T," ","")+";",n,r,b-2),s);break;case 59:T+=";";default:if(lb(_=KE(T,t,r,d,v,o,l,c,g=[],m=[],b),i),p===123)if(v===0)e1(T,t,_,_,g,i,b,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:e1(e,_,_,n&&lb(KE(e,_,_,0,0,o,l,c,o,g=[],b),m),o,m,b,l,n?g:m);break;default:e1(T,_,_,_,[""],m,0,l,m)}}d=v=w=0,y=h=1,c=T="",b=a;break;case 58:b=1+cl(T),w=P;default:if(y<1){if(p==123)--y;else if(p==125&&y++==0&&bie()==125)continue}switch(T+=E5(p),p*y){case 38:h=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*h,h=1;break;case 64:bl()===45&&(T+=Jb(Ti())),S=bl(),v=b=cl(c=T+=Sie(Zb())),p++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function KE(e,t,r,n,o,i,a,l,s,d,v){for(var b=o-1,S=o===0?i:[""],w=ZT(S),P=0,y=0,C=0;P0?S[h]+" "+p:Kt(p,/&\f/g,S[h])))&&(s[C++]=c);return R5(e,t,r,o===0?XT:l,s,d,v)}function Pie(e,t,r){return R5(e,t,r,Bz,E5(yie()),Av(e,2,-2),0)}function qE(e,t,r,n){return R5(e,t,r,QT,Av(e,0,n),Av(e,n+1,-1),n)}function Mp(e,t){for(var r="",n=ZT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Kt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+Ow+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~C4(e,"stretch")?Kz(Kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~C4(e,"!important")&&10))){case 107:return Kt(e,":",":"+Gt)+e;case 101:return Kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+($n(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+so+e+e}return e}var Lie=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case QT:t.return=Kz(t.value,t.length);break;case Uz:return Mp([eg(t,{value:Kt(t.value,"@","@"+Gt)})],o);case XT:if(t.length)return mie(t.props,function(i){switch(vie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mp([eg(t,{props:[Kt(i,/:(read-\w+)/,":"+Ow+"$1")]})],o);case"::placeholder":return Mp([eg(t,{props:[Kt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),eg(t,{props:[Kt(i,/:(plac\w+)/,":"+Ow+"$1")]}),eg(t,{props:[Kt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Die=[Lie],Fie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Die,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),h=1;hAz.DefaultEventPriority,Poe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:coe,appendChildToContainer:doe,appendInitialChild:Wne,cancelTimeout:ooe,clearContainer:xoe,commitMount:voe,commitTextUpdate:goe,commitUpdate:moe,createInstance:$ne,createTextInstance:Gne,detachDeletedInstance:Soe,finalizeInitialChildren:Kne,getChildHostContext:roe,getCurrentEventPriority:Coe,getPublicInstance:qne,getRootHostContext:toe,hideInstance:yoe,hideTextInstance:boe,idlePriority:pp.unstable_IdlePriority,insertBefore:Lz,insertInContainerBefore:foe,isPrimaryRenderer:loe,noTimeout:ioe,now:pp.unstable_now,prepareForCommit:Yne,preparePortalMount:Xne,prepareUpdate:Qne,removeChild:poe,removeChildFromContainer:hoe,resetAfterCommit:Zne,resetTextContent:Jne,run:pp.unstable_runWithPriority,scheduleTimeout:noe,shouldDeprioritizeSubtree:eoe,shouldSetTextContent:aoe,supportsMutation:uoe,unhideInstance:woe,unhideTextInstance:_oe,warnsIfNotActing:soe},Symbol.toStringTag,{value:"Module"}));var Toe=Object.defineProperty,Ooe=Object.defineProperties,koe=Object.getOwnPropertyDescriptors,FE=Object.getOwnPropertySymbols,Eoe=Object.prototype.hasOwnProperty,Moe=Object.prototype.propertyIsEnumerable,jE=(e,t,r)=>t in e?Toe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))Eoe.call(t,r)&&jE(e,r,t[r]);if(FE)for(var r of FE(t))Moe.call(t,r)&&jE(e,r,t[r]);return e},Roe=(e,t)=>Ooe(e,koe(t)),VE,BE;typeof window<"u"&&((VE=window.document)!=null&&VE.createElement||((BE=window.navigator)==null?void 0:BE.product)==="ReactNative")?Y.useLayoutEffect:Y.useEffect;function Dz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Dz(n,t,r);if(o)return o;n=n.sibling}}function Fz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const UE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=UE;return}return UE.apply(this,arguments)};const qT=Fz(Y.createContext(null));class jz extends Y.Component{render(){return Y.createElement(qT.Provider,{value:this._reactInternals},this.props.children)}}function Noe(){const e=Y.useContext(qT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=Y.useId();return Y.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Dz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Aoe(){const e=Noe(),[t]=Y.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==qT&&!t.has(o)&&t.set(o,Y.useContext(Fz(o)))}r=r.return}return t}function Ioe(){const e=Aoe();return Y.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>Y.createElement(t,null,Y.createElement(r.Provider,Roe(zE({},n),{value:e.get(r)}))),t=>Y.createElement(jz,zE({},t))),[e])}function Loe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Doe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Loe(e),i=Ioe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Nv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=pg.createContainer(r.current,Az.LegacyRoot,!1,null),pg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Nv.isBrowser&&(a(null),pg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),k5(r.current,e,o),pg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},$x="Layer",HE="Group",Foe="Rect",Ff="Circle",joe="Line",zoe="Image",WE="Text",pg=zne(Poe);pg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const Voe=Or.forwardRef((e,t)=>Or.createElement(jz,{},Or.createElement(Doe,{...e,forwardedRef:t})));function Boe(e){window.open(e,"_blank","noreferrer")}function _4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Uoe(e,t){return t.includes(e)}const jg="https://roguewar.org",Hoe=2.5,Woe=1,$oe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{var re;const v=e.isCapital?Hoe:Woe,b=(Z,oe)=>[...Z].sort((fe,ge)=>ge.control-fe.control).map(fe=>{const ge=_4(fe.Name,oe);return{name:(ge==null?void 0:ge.prettyName)||fe.Name,control:fe.control,players:fe.ActivePlayers}}),S=Z=>`${Z.name} ${Z.control}% · P${Z.players}`,w=e.factions.some(Z=>Z.ActivePlayers>0),P=!!((re=e.state)!=null&&re.isInsurrect),y=n.flashActivePlayes&&w,C=y?1.25:1,h=(s?v*3:v)*C/t,p=Number(e.posX),c=-Number(e.posY),g=y?Math.min(1,d+.25):d,m=h*2.5,_=Math.min(.34,g*.4),T=Math.min(.4,g*.4),k=h*.45,R=Math.min(.42,g*.45),E=h*.35,A=`rgba(255,255,255,${R})`,F="rgba(255,255,255,0)",V=h*3.3,B=Math.min(.22,g*.26),H=h*2.1,q=Y.useRef(null),ne=Y.useRef(null);Y.useEffect(()=>{if(!P||!q.current)return;const Z=q.current,oe=Math.min(.22,g*.25),fe=new Pw.Animation(ge=>{if(!ge)return;const ce=(Math.sin(ge.time*.004)+1)/2,J=.86+ce*.72,ie=Math.min(.5,oe+ce*.24);Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]),Y.useEffect(()=>{if(!P||!ne.current)return;const Z=ne.current,oe=g,fe=new Pw.Animation(ge=>{if(!ge)return;const ce=Math.sin(ge.time*.0045),J=1+ce*.2,ie=Math.max(.3,Math.min(1,oe+ce*.24));Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]);const Q=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",W=Z=>{if(!Z)return"None";const fe=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([ge])=>Z[ge]).map(([,ge])=>ge);return fe.length?fe.join(", "):"None"},X=(Z=!1)=>{var ue;const oe=((ue=_4(e.owner,r))==null?void 0:ue.prettyName)||"Unknown",fe=b(e.factions,r),ge=fe.slice(0,3),ce=Math.max(0,fe.length-ge.length),J=W(e.state),ie=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${oe}`,"Control:",...ge.map(S),...ce>0?[`+${ce} more`]:[],`Damage: ${Q}`];return J!=="None"&&ie.push(`State: ${J}`),Z&&ie.push("[Tap to open]"),{text:ie.join(` +`),controlItems:fe}};return Ie.jsxs(Ie.Fragment,{children:[P&&Ie.jsx(Ff,{x:p,y:c,radius:V,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:V,fillRadialGradientColorStops:[0,`rgba(168,85,247,${Math.min(.32,B+.06)})`,.6,`rgba(168,85,247,${B})`,1,"rgba(168,85,247,0)"],listening:!1}),P&&Ie.jsx(Ff,{ref:q,x:p,y:c,radius:H,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:H,fillRadialGradientColorStops:[0,"rgba(192,132,252,0.34)",1,"rgba(192,132,252,0)"],listening:!1}),y&&Ie.jsx(Ff,{x:p,y:c,fill:e.factionColour,radius:m,opacity:_,listening:!1}),y&&Ie.jsx(Ff,{x:p,y:c,radius:h,stroke:"#ffffff",strokeWidth:Math.max(.2,h*.14),opacity:T,listening:!1}),Ie.jsx(Ff,{ref:ne,x:p,y:c,fill:e.factionColour,radius:h,hitStrokeWidth:3,opacity:g,onClick:Z=>{Z.cancelBubble=!0,e.sysUrl&&Boe(`${jg}${e.sysUrl}`)},onMouseEnter:Z=>{const oe=Z.target.getStage();if(!oe)return;const fe=oe.getPointerPosition();if(!fe)return;const ge=X();o(ge.text,fe.x,fe.y,oe.x(),oe.y(),void 0,ge.controlItems)},onMouseLeave:i,onTouchStart:Z=>{if(Z.evt.touches.length===1){Z.evt.preventDefault();const oe=Z.target.getStage();if(!oe)return;const fe=oe.getRelativePointerPosition();if(!fe)return;if(a.current&&l.current===e.name){window.location.href=`${jg}${e.sysUrl}`;return}const ge=X(!0);o(ge.text,fe.x,fe.y,void 0,void 0,()=>{window.location.href=`${jg}${e.sysUrl}`},ge.controlItems),l.current=e.name}}}),y&&Ie.jsx(Ff,{x:p-E,y:c-E,radius:k,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:k,fillRadialGradientColorStops:[0,A,1,F],listening:!1})]})},Goe=Y.memo($oe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Koe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zz(e){var t=Koe(e,"string");return vd(t)=="symbol"?t:t+""}function hg(e,t,r){return(t=zz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(Eh,--ri):0,nh--,nn===10&&(nh=1,M5--),nn}function Ti(){return nn=ri<$z?$n(Eh,ri++):0,nh++,nn===10&&(nh=1,M5++),nn}function bl(){return $n(Eh,ri)}function Zb(){return ri}function gm(e,t){return Av(Eh,e,t)}function Iv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gz(e){return M5=nh=1,$z=cl(Eh=e),ri=0,[]}function Kz(e){return Eh="",e}function Jb(e){return Wz(gm(ri-1,P4(e===91?e+2:e===40?e+1:e)))}function _ie(e){for(;(nn=bl())&&nn<33;)Ti();return Iv(e)>2||Iv(nn)>3?"":" "}function xie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return gm(e,Zb()+(t<6&&bl()==32&&Ti()==32))}function P4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&P4(nn);break;case 40:e===41&&P4(e);break;case 92:Ti();break}return ri}function Sie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+gm(t,ri-1)+"*"+E5(e===47?e:Ti())}function Cie(e){for(;!Iv(bl());)Ti();return gm(e,ri)}function Pie(e){return Kz(e1("",null,null,null,[""],e=Gz(e),0,[0],e))}function e1(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,b=a,S=0,w=0,P=0,y=1,C=1,h=1,p=0,c="",g=o,m=i,_=n,T=c;C;)switch(P=p,p=Ti()){case 40:if(P!=108&&$n(T,b-1)==58){C4(T+=Kt(Jb(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:T+=Jb(p);break;case 9:case 10:case 13:case 32:T+=_ie(P);break;case 92:T+=xie(Zb()-1,7);continue;case 47:switch(bl()){case 42:case 47:lb(Tie(Sie(Ti(),Zb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*h;case 125*y:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+v:h==-1&&(T=Kt(T,/\f/g,"")),w>0&&cl(T)-b&&lb(w>32?qE(T+";",n,r,b-1):qE(Kt(T," ","")+";",n,r,b-2),s);break;case 59:T+=";";default:if(lb(_=KE(T,t,r,d,v,o,l,c,g=[],m=[],b),i),p===123)if(v===0)e1(T,t,_,_,g,i,b,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:e1(e,_,_,n&&lb(KE(e,_,_,0,0,o,l,c,o,g=[],b),m),o,m,b,l,n?g:m);break;default:e1(T,_,_,_,[""],m,0,l,m)}}d=v=w=0,y=h=1,c=T="",b=a;break;case 58:b=1+cl(T),w=P;default:if(y<1){if(p==123)--y;else if(p==125&&y++==0&&wie()==125)continue}switch(T+=E5(p),p*y){case 38:h=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*h,h=1;break;case 64:bl()===45&&(T+=Jb(Ti())),S=bl(),v=b=cl(c=T+=Cie(Zb())),p++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function KE(e,t,r,n,o,i,a,l,s,d,v){for(var b=o-1,S=o===0?i:[""],w=ZT(S),P=0,y=0,C=0;P0?S[h]+" "+p:Kt(p,/&\f/g,S[h])))&&(s[C++]=c);return R5(e,t,r,o===0?XT:l,s,d,v)}function Tie(e,t,r){return R5(e,t,r,Uz,E5(bie()),Av(e,2,-2),0)}function qE(e,t,r,n){return R5(e,t,r,QT,Av(e,0,n),Av(e,n+1,-1),n)}function Mp(e,t){for(var r="",n=ZT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Kt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+Ow+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~C4(e,"stretch")?qz(Kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~C4(e,"!important")&&10))){case 107:return Kt(e,":",":"+Gt)+e;case 101:return Kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+($n(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+so+e+e}return e}var Die=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case QT:t.return=qz(t.value,t.length);break;case Hz:return Mp([eg(t,{value:Kt(t.value,"@","@"+Gt)})],o);case XT:if(t.length)return yie(t.props,function(i){switch(mie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mp([eg(t,{props:[Kt(i,/:(read-\w+)/,":"+Ow+"$1")]})],o);case"::placeholder":return Mp([eg(t,{props:[Kt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),eg(t,{props:[Kt(i,/:(plac\w+)/,":"+Ow+"$1")]}),eg(t,{props:[Kt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Fie=[Die],jie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Fie,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),h=1;h=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Xie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qie=/[A-Z]|^ms/g,Zie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jz=function(t){return t.charCodeAt(1)===45},XE=function(t){return t!=null&&typeof t!="boolean"},Gx=Eie(function(e){return Jz(e)?e:e.replace(Qie,"-$&").toLowerCase()}),QE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Zie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Xie[t]!==1&&!Jz(t)&&typeof r=="number"&&r!==0?r+"px":r};function Lv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return Jie(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Lv(e,t,d)}break}}var v=r;return v}function Jie(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function pae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function U5(){return typeof window<"u"}function rV(e){return oV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nV(e){var t;return(t=(oV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oV(e){return U5()?e instanceof Node||e instanceof ms(e).Node:!1}function hae(e){return U5()?e instanceof Element||e instanceof ms(e).Element:!1}function oO(e){return U5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function JE(e){return!U5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const gae=new Set(["inline","contents"]);function iV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=iO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!gae.has(o)}function vae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mae=new Set(["html","body","#document"]);function yae(e){return mae.has(rV(e))}function iO(e){return ms(e).getComputedStyle(e)}function bae(e){if(rV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JE(e)&&e.host||nV(e);return JE(t)?t.host:t}function aV(e){const t=bae(e);return yae(t)?e.ownerDocument?e.ownerDocument.body:e.body:oO(t)&&iV(t)?t:aV(t)}function Mw(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=aV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=O4(a);return t.concat(a,a.visualViewport||[],iV(o)?o:[],l&&r?Mw(l):[])}return t.concat(o,Mw(o,[],r))}function O4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wae(e){const t=iO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=oO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=kw(r)!==i||kw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function aO(e){return hae(e)?e:e.contextElement}function e9(e){const t=aO(e);if(!oO(t))return Ew(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=wae(t);let a=(i?kw(r.width):r.width)/n,l=(i?kw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const _ae=Ew(0);function xae(e){const t=ms(e);return!vae()||!t.visualViewport?_ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sae(e,t,r){return!1}function t9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=aO(e);let a=Ew(1);t&&(a=e9(e));const l=Sae()?xae(i):Ew(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=ms(i),w=n;let P=S,y=O4(P);for(;y&&n&&w!==P;){const C=e9(y),h=y.getBoundingClientRect(),p=iO(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=ms(y),y=O4(P)}}return pae({width:v,height:b,x:s,y:d})}function lV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cae(e,t){let r=null,n;const o=nV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:b,width:S,height:w}=d;if(l||t(),!S||!w)return;const P=sb(b),y=sb(o.clientWidth-(v+S)),C=sb(o.clientHeight-(b+w)),h=sb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-h+"px",threshold:fae(0,dae(1,s))||1};let g=!0;function m(_){const T=_[0].intersectionRatio;if(T!==s){if(!g)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!lV(d,e.getBoundingClientRect())&&a(),g=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Pae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=aO(e),v=o||i?[...d?Mw(d):[],...Mw(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?Cae(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?t9(e):null;s&&C();function C(){const h=t9(e);y&&!lV(y,h)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}var k4=Y.useLayoutEffect,Tae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Rw=function(){};function Oae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function kae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Eae(e){return H5(e)?window.innerHeight:e.clientHeight}function uV(e){return H5(e)?window.pageYOffset:e.scrollTop}function Nw(e,t){if(H5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Mae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Rae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function ub(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Rw,o=uV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Rae(l,o,i,r);Nw(e,d),lr.bottom?Nw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&ub(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&ub(s,E,F);var V=a?T-g:R-g;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,H=a?_:k;return H>=n&&(B=Math.min(H-g-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Nw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&ub(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&_>=n){var q=t;return(!a&&k>=n||a&&_>=n)&&(q=a?_-m:k-m),i&&ub(s,A,F),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Uae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dV=function(t){return t==="auto"?"bottom":t},Hae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},hg(n,Uae(o),"100%"),hg(n,"position","absolute"),hg(n,"width","100%"),hg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},fV=Y.createContext(null),Wae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=Y.useContext(fV)||{},v=d.setPortalPlacement,b=Y.useRef(null),S=Y.useState(o),w=as(S,2),P=w[0],y=w[1],C=Y.useState(null),h=as(C,2),p=h[0],c=h[1],g=s.spacing.controlHeight;return k4(function(){var m=b.current;if(m){var _=a==="fixed",T=l&&!_,k=Bae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:_,controlHeight:g});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,g]),r({ref:b,placerProps:st(st({},t),{},{placement:p||dV(i),maxHeight:P})})},$ae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return it("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Gae=$ae,Kae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},qae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return it("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},pV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Yae=pV,Xae=pV,Qae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,zae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Zae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Vae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},Jae=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},ele=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=Y.useRef(null),d=Y.useRef(null),v=Y.useState(dV(a)),b=as(v,2),S=b[0],w=b[1],P=Y.useMemo(function(){return{setPortalPlacement:w}},[]),y=Y.useState(null),C=as(y,2),h=C[0],p=C[1],c=Y.useCallback(function(){if(o){var T=Nae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(h==null?void 0:h.offset)||T.left!==(h==null?void 0:h.rect.left)||T.width!==(h==null?void 0:h.rect.width))&&p({offset:R,rect:T})}},[o,l,S,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);k4(function(){c()},[c]);var g=Y.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Pae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);k4(function(){g()},[g]);var m=Y.useCallback(function(T){s.current=T,g()},[g]);if(!r&&l!=="fixed"||!h)return null;var _=it("div",dt({ref:m},Hr(st(st({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(fV.Provider,{value:P},r?Xw.createPortal(_,r):_)},tle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},rle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return it("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},nle=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ole=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return it("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ile=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},ale=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},i9,lle=["size"],sle=["innerProps","isRtl","size"],ule={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hV=function(t){var r=t.size,n=Ps(t,lle);return it("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ule},n))},lO=function(t){return it(hV,dt({size:20},t),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gV=function(t){return it(hV,dt({size:20},t),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},cle=vV,dle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||it(gV,null))},fle=vV,ple=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||it(lO,null))},hle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},gle=function(t){var r=t.innerProps;return it("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},vle=uae(i9||(i9=cae([` + */var In=typeof Symbol=="function"&&Symbol.for,JT=In?Symbol.for("react.element"):60103,eO=In?Symbol.for("react.portal"):60106,N5=In?Symbol.for("react.fragment"):60107,A5=In?Symbol.for("react.strict_mode"):60108,I5=In?Symbol.for("react.profiler"):60114,L5=In?Symbol.for("react.provider"):60109,D5=In?Symbol.for("react.context"):60110,tO=In?Symbol.for("react.async_mode"):60111,F5=In?Symbol.for("react.concurrent_mode"):60111,j5=In?Symbol.for("react.forward_ref"):60112,z5=In?Symbol.for("react.suspense"):60113,zie=In?Symbol.for("react.suspense_list"):60120,V5=In?Symbol.for("react.memo"):60115,B5=In?Symbol.for("react.lazy"):60116,Vie=In?Symbol.for("react.block"):60121,Bie=In?Symbol.for("react.fundamental"):60117,Uie=In?Symbol.for("react.responder"):60118,Hie=In?Symbol.for("react.scope"):60119;function Ii(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case JT:switch(e=e.type,e){case tO:case F5:case N5:case I5:case A5:case z5:return e;default:switch(e=e&&e.$$typeof,e){case D5:case j5:case B5:case V5:case L5:return e;default:return t}}case eO:return t}}}function Xz(e){return Ii(e)===F5}Zt.AsyncMode=tO;Zt.ConcurrentMode=F5;Zt.ContextConsumer=D5;Zt.ContextProvider=L5;Zt.Element=JT;Zt.ForwardRef=j5;Zt.Fragment=N5;Zt.Lazy=B5;Zt.Memo=V5;Zt.Portal=eO;Zt.Profiler=I5;Zt.StrictMode=A5;Zt.Suspense=z5;Zt.isAsyncMode=function(e){return Xz(e)||Ii(e)===tO};Zt.isConcurrentMode=Xz;Zt.isContextConsumer=function(e){return Ii(e)===D5};Zt.isContextProvider=function(e){return Ii(e)===L5};Zt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===JT};Zt.isForwardRef=function(e){return Ii(e)===j5};Zt.isFragment=function(e){return Ii(e)===N5};Zt.isLazy=function(e){return Ii(e)===B5};Zt.isMemo=function(e){return Ii(e)===V5};Zt.isPortal=function(e){return Ii(e)===eO};Zt.isProfiler=function(e){return Ii(e)===I5};Zt.isStrictMode=function(e){return Ii(e)===A5};Zt.isSuspense=function(e){return Ii(e)===z5};Zt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===N5||e===F5||e===I5||e===A5||e===z5||e===zie||typeof e=="object"&&e!==null&&(e.$$typeof===B5||e.$$typeof===V5||e.$$typeof===L5||e.$$typeof===D5||e.$$typeof===j5||e.$$typeof===Bie||e.$$typeof===Uie||e.$$typeof===Hie||e.$$typeof===Vie)};Zt.typeOf=Ii;Yz.exports=Zt;var Wie=Yz.exports,Qz=Wie,$ie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gie={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zz={};Zz[Qz.ForwardRef]=$ie;Zz[Qz.Memo]=Gie;var Kie=!0;function qie(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Jz=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Kie===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Yie=function(t,r,n){Jz(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Xie(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zie=/[A-Z]|^ms/g,Jie=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eV=function(t){return t.charCodeAt(1)===45},XE=function(t){return t!=null&&typeof t!="boolean"},Gx=Mie(function(e){return eV(e)?e:e.replace(Zie,"-$&").toLowerCase()}),QE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Jie,function(n,o,i){return dl={name:o,styles:i,next:dl},o})}return Qie[t]!==1&&!eV(t)&&typeof r=="number"&&r!==0?r+"px":r};function Lv(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return dl={name:o.name,styles:o.styles,next:dl},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dl={name:a.name,styles:a.styles,next:dl},a=a.next;var l=i.styles+";";return l}return eae(e,t,r)}case"function":{if(e!==void 0){var s=dl,d=r(e);return dl=s,Lv(e,t,d)}break}}var v=r;return v}function eae(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o({x:e,y:e});function hae(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function U5(){return typeof window<"u"}function nV(e){return iV(e)?(e.nodeName||"").toLowerCase():"#document"}function ms(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oV(e){var t;return(t=(iV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iV(e){return U5()?e instanceof Node||e instanceof ms(e).Node:!1}function gae(e){return U5()?e instanceof Element||e instanceof ms(e).Element:!1}function oO(e){return U5()?e instanceof HTMLElement||e instanceof ms(e).HTMLElement:!1}function JE(e){return!U5()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ms(e).ShadowRoot}const vae=new Set(["inline","contents"]);function aV(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=iO(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!vae.has(o)}function mae(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const yae=new Set(["html","body","#document"]);function bae(e){return yae.has(nV(e))}function iO(e){return ms(e).getComputedStyle(e)}function wae(e){if(nV(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JE(e)&&e.host||oV(e);return JE(t)?t.host:t}function lV(e){const t=wae(e);return bae(t)?e.ownerDocument?e.ownerDocument.body:e.body:oO(t)&&aV(t)?t:lV(t)}function Mw(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=lV(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=ms(o);if(i){const l=O4(a);return t.concat(a,a.visualViewport||[],aV(o)?o:[],l&&r?Mw(l):[])}return t.concat(o,Mw(o,[],r))}function O4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _ae(e){const t=iO(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=oO(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,l=kw(r)!==i||kw(n)!==a;return l&&(r=i,n=a),{width:r,height:n,$:l}}function aO(e){return gae(e)?e:e.contextElement}function e9(e){const t=aO(e);if(!oO(t))return Ew(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=_ae(t);let a=(i?kw(r.width):r.width)/n,l=(i?kw(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const xae=Ew(0);function Sae(e){const t=ms(e);return!mae()||!t.visualViewport?xae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cae(e,t,r){return!1}function t9(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=aO(e);let a=Ew(1);t&&(a=e9(e));const l=Cae()?Sae(i):Ew(0);let s=(o.left+l.x)/a.x,d=(o.top+l.y)/a.y,v=o.width/a.x,b=o.height/a.y;if(i){const S=ms(i),w=n;let P=S,y=O4(P);for(;y&&n&&w!==P;){const C=e9(y),h=y.getBoundingClientRect(),p=iO(y),c=h.left+(y.clientLeft+parseFloat(p.paddingLeft))*C.x,g=h.top+(y.clientTop+parseFloat(p.paddingTop))*C.y;s*=C.x,d*=C.y,v*=C.x,b*=C.y,s+=c,d+=g,P=ms(y),y=O4(P)}}return hae({width:v,height:b,x:s,y:d})}function sV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pae(e,t){let r=null,n;const o=oV(e);function i(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),i();const d=e.getBoundingClientRect(),{left:v,top:b,width:S,height:w}=d;if(l||t(),!S||!w)return;const P=sb(b),y=sb(o.clientWidth-(v+S)),C=sb(o.clientHeight-(b+w)),h=sb(v),c={rootMargin:-P+"px "+-y+"px "+-C+"px "+-h+"px",threshold:pae(0,fae(1,s))||1};let g=!0;function m(_){const T=_[0].intersectionRatio;if(T!==s){if(!g)return a();T?a(!1,T):n=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!sV(d,e.getBoundingClientRect())&&a(),g=!1}try{r=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,c)}r.observe(e)}return a(!0),i}function Tae(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,d=aO(e),v=o||i?[...d?Mw(d):[],...Mw(t)]:[];v.forEach(h=>{o&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const b=d&&l?Pae(d,r):null;let S=-1,w=null;a&&(w=new ResizeObserver(h=>{let[p]=h;p&&p.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var c;(c=w)==null||c.observe(t)})),r()}),d&&!s&&w.observe(d),w.observe(t));let P,y=s?t9(e):null;s&&C();function C(){const h=t9(e);y&&!sV(y,h)&&r(),y=h,P=requestAnimationFrame(C)}return r(),()=>{var h;v.forEach(p=>{o&&p.removeEventListener("scroll",r),i&&p.removeEventListener("resize",r)}),b==null||b(),(h=w)==null||h.disconnect(),w=null,s&&cancelAnimationFrame(P)}}var k4=Y.useLayoutEffect,Oae=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Rw=function(){};function kae(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Eae(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o-1}function Mae(e){return H5(e)?window.innerHeight:e.clientHeight}function cV(e){return H5(e)?window.pageYOffset:e.scrollTop}function Nw(e,t){if(H5(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Rae(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function Nae(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function ub(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Rw,o=cV(e),i=t-o,a=10,l=0;function s(){l+=a;var d=Nae(l,o,i,r);Nw(e,d),lr.bottom?Nw(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o1?r-1:0),o=1;o=P)return{placement:"bottom",maxHeight:t};if(R>=P&&!a)return i&&ub(s,E,F),{placement:"bottom",maxHeight:t};if(!a&&R>=n||a&&T>=n){i&&ub(s,E,F);var V=a?T-g:R-g;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var B=t,H=a?_:k;return H>=n&&(B=Math.min(H-g-l,t)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&Nw(s,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=P)return{placement:"top",maxHeight:t};if(k>=P&&!a)return i&&ub(s,A,F),{placement:"top",maxHeight:t};if(!a&&k>=n||a&&_>=n){var q=t;return(!a&&k>=n||a&&_>=n)&&(q=a?_-m:k-m),i&&ub(s,A,F),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return d}function Hae(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var fV=function(t){return t==="auto"?"bottom":t},Wae=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,l=i.spacing,s=i.colors;return st((n={label:"menu"},hg(n,Hae(o),"100%"),hg(n,"position","absolute"),hg(n,"width","100%"),hg(n,"zIndex",1),n),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},pV=Y.createContext(null),$ae=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,d=Y.useContext(pV)||{},v=d.setPortalPlacement,b=Y.useRef(null),S=Y.useState(o),w=as(S,2),P=w[0],y=w[1],C=Y.useState(null),h=as(C,2),p=h[0],c=h[1],g=s.spacing.controlHeight;return k4(function(){var m=b.current;if(m){var _=a==="fixed",T=l&&!_,k=Uae({maxHeight:o,menuEl:m,minHeight:n,placement:i,shouldScroll:T,isFixedPosition:_,controlHeight:g});y(k.maxHeight),c(k.placement),v==null||v(k.placement)}},[o,i,a,l,n,v,g]),r({ref:b,placerProps:st(st({},t),{},{placement:p||fV(i),maxHeight:P})})},Gae=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return it("div",dt({},Hr(t,"menu",{menu:!0}),{ref:n},o),r)},Kae=Gae,qae=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return st({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},Yae=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return it("div",dt({},Hr(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},hV=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return st({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},Xae=hV,Qae=hV,Zae=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=Ps(t,Vae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},Jae=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=Ps(t,Bae);return it("div",dt({},Hr(st(st({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},ele=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},tle=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,l=t.menuPosition,s=Y.useRef(null),d=Y.useRef(null),v=Y.useState(fV(a)),b=as(v,2),S=b[0],w=b[1],P=Y.useMemo(function(){return{setPortalPlacement:w}},[]),y=Y.useState(null),C=as(y,2),h=C[0],p=C[1],c=Y.useCallback(function(){if(o){var T=Aae(o),k=l==="fixed"?0:window.pageYOffset,R=T[S]+k;(R!==(h==null?void 0:h.offset)||T.left!==(h==null?void 0:h.rect.left)||T.width!==(h==null?void 0:h.rect.width))&&p({offset:R,rect:T})}},[o,l,S,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);k4(function(){c()},[c]);var g=Y.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),o&&s.current&&(d.current=Tae(o,s.current,c,{elementResize:"ResizeObserver"in window}))},[o,c]);k4(function(){g()},[g]);var m=Y.useCallback(function(T){s.current=T,g()},[g]);if(!r&&l!=="fixed"||!h)return null;var _=it("div",dt({ref:m},Hr(st(st({},t),{},{offset:h.offset,position:l,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(pV.Provider,{value:P},r?Xw.createPortal(_,r):_)},rle=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},nle=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return it("div",dt({},Hr(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},ole=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return st({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},ile=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return it("div",dt({},Hr(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},ale=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},lle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"indicatorsContainer",{indicators:!0}),n),r)},i9,sle=["size"],ule=["innerProps","isRtl","size"],cle={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},gV=function(t){var r=t.size,n=Ps(t,sle);return it("svg",dt({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cle},n))},lO=function(t){return it(gV,dt({size:20},t),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},vV=function(t){return it(gV,dt({size:20},t),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},mV=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},dle=mV,fle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||it(vV,null))},ple=mV,hle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||it(lO,null))},gle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return st({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},vle=function(t){var r=t.innerProps;return it("span",dt({},r,Hr(t,"indicatorSeparator",{"indicator-separator":!0})))},mle=cae(i9||(i9=dae([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),mle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},Kx=function(t){var r=t.delay,n=t.offset;return it("span",{css:nO({animation:"".concat(vle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yle=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,sle);return it("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),it(Kx,{delay:0,offset:n}),it(Kx,{delay:160,offset:!0}),it(Kx,{delay:320,offset:!n}))},ble=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return it("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},_le=wle,xle=["data"],Sle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Cle=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,b=t.selectProps;return it("div",dt({},Hr(t,"group",{group:!0}),s),it(a,dt({},l,{selectProps:b,theme:v,getStyles:o,getClassNames:i,cx:n}),d),it("div",null,r))},Ple=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Tle=function(t){var r=sV(t);r.data;var n=Ps(r,xle);return it("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},Ole=Cle,kle=["innerRef","isDisabled","isHidden","inputClassName"],Ele=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Mle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},mV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mV)},Rle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},mV)},Nle=function(t){var r=t.cx,n=t.value,o=sV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,kle);return it("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),it("input",dt({className:r({input:!0},s),ref:i,style:Rle(l),disabled:a},d)))},Ale=Nle,Ile=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Lle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Dle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},yV=function(t){var r=t.children,n=t.innerProps;return it("div",n,r)},Fle=yV,jle=yV;function zle(e){var t=e.children,r=e.innerProps;return it("div",dt({role:"button"},r),t||it(lO,{size:14}))}var Vle=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,b=n.Remove;return it(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},it(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),it(b,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ble=Vle,Ule=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Hle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return it("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},Wle=Hle,$le=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Gle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},Kle=Gle,qle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Yle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return it("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Xle=Yle,Qle={ClearIndicator:ple,Control:_le,DropdownIndicator:dle,DownChevron:gV,CrossIcon:lO,Group:Ole,GroupHeading:Tle,IndicatorsContainer:ale,IndicatorSeparator:gle,Input:Ale,LoadingIndicator:yle,Menu:Gae,MenuList:qae,MenuPortal:ele,LoadingMessage:Zae,NoOptionsMessage:Qae,MultiValue:Ble,MultiValueContainer:Fle,MultiValueLabel:jle,MultiValueRemove:zle,Option:Wle,Placeholder:Kle,SelectContainer:rle,SingleValue:Xle,ValueContainer:ole},Zle=function(t){return st(st({},Qle),t.components)},a9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Jle(e,t){return!!(e===t||a9(e)&&a9(t))}function ese(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,b=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(b(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",w="".concat(d?" selected":"").concat(S);return"".concat(a).concat(w,", ").concat(b(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ise=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,b=s.ariaLiveMessages,S=s.getOptionLabel,w=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,h=s.menuIsOpen,p=s.options,c=s.screenReaderStatus,g=s.tabSelectsValue,m=s.isLoading,_=s["aria-label"],T=s["aria-live"],k=Y.useMemo(function(){return st(st({},ose),b||{})},[b]),R=Y.useMemo(function(){var H="";if(r&&k.onChange){var q=r.option,ne=r.options,Q=r.removedValue,W=r.removedValues,X=r.value,re=function(ie){return Array.isArray(ie)?null:ie},Z=Q||q||re(X),oe=Z?S(Z):"",fe=ne||W||void 0,ge=fe?fe.map(S):[],ce=st({isDisabled:Z&&y(Z,l),label:oe,labels:ge},r);H=k.onChange(ce)}return H},[r,k,y,l,S]),E=Y.useMemo(function(){var H="",q=n||o,ne=!!(n&&l&&l.includes(n));if(q&&k.onFocus){var Q={focused:q,label:S(q),isDisabled:y(q,l),isSelected:ne,options:i,context:q===n?"menu":"value",selectValue:l,isAppleDevice:v};H=k.onFocus(Q)}return H},[n,o,S,y,k,i,l,v]),A=Y.useMemo(function(){var H="";if(h&&p.length&&!m&&k.onFilter){var q=c({count:i.length});H=k.onFilter({inputValue:w,resultsMessage:q})}return H},[i,w,h,k,p,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=Y.useMemo(function(){var H="";if(k.guidance){var q=o?"value":h?"menu":"input";H=k.guidance({"aria-label":_,context:q,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:g,isInitialFocus:F})}return H},[_,n,o,P,y,C,h,k,l,g,F]),B=it(Y.Fragment,null,it("span",{id:"aria-selection"},R),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},A),it("span",{id:"aria-guidance"},V));return it(Y.Fragment,null,it(l9,{id:d},F&&B),it(l9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},ase=ise,E4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],lse=new RegExp("["+E4.map(function(e){return e.letters}).join("")+"]","g"),bV={};for(var qx=0;qx-1}},dse=["innerRef"];function fse(e){var t=e.innerRef,r=Ps(e,dse),n=jae(r,"onExited","in","enter","exit","appear");return it("input",dt({ref:t},n,{css:nO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var pse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function hse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=Y.useRef(!1),l=Y.useRef(!1),s=Y.useRef(0),d=Y.useRef(null),v=Y.useCallback(function(C,h){if(d.current!==null){var p=d.current,c=p.scrollTop,g=p.scrollHeight,m=p.clientHeight,_=d.current,T=h>0,k=g-m-c,R=!1;k>h&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&h>k?(r&&!a.current&&r(C),_.scrollTop=g,R=!0,a.current=!0):!T&&-h>c&&(o&&!l.current&&o(C),_.scrollTop=0,R=!0,l.current=!0),R&&pse(C)}},[r,n,o,i]),b=Y.useCallback(function(C){v(C,C.deltaY)},[v]),S=Y.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),w=Y.useCallback(function(C){var h=s.current-C.changedTouches[0].clientY;v(C,h)},[v]),P=Y.useCallback(function(C){if(C){var h=Lae?{passive:!1}:!1;C.addEventListener("wheel",b,h),C.addEventListener("touchstart",S,h),C.addEventListener("touchmove",w,h)}},[w,S,b]),y=Y.useCallback(function(C){C&&(C.removeEventListener("wheel",b,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",w,!1))},[w,S,b]);return Y.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var u9=["boxSizing","height","overflow","paddingRight","position"],c9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function d9(e){e.cancelable&&e.preventDefault()}function f9(e){e.stopPropagation()}function p9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function h9(){return"ontouchstart"in window||navigator.maxTouchPoints}var g9=!!(typeof window<"u"&&window.document&&window.document.createElement),tg=0,jf={capture:!1,passive:!1};function gse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=Y.useRef({}),i=Y.useRef(null),a=Y.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;if(n&&u9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&tg<1){var b=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,w=window.innerWidth-S+b||0;Object.keys(c9).forEach(function(P){var y=c9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(w,"px"))}d&&h9()&&(d.addEventListener("touchmove",d9,jf),s&&(s.addEventListener("touchstart",p9,jf),s.addEventListener("touchmove",f9,jf))),tg+=1}},[n]),l=Y.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;tg=Math.max(tg-1,0),n&&tg<1&&u9.forEach(function(b){var S=o.current[b];v&&(v[b]=S)}),d&&h9()&&(d.removeEventListener("touchmove",d9,jf),s&&(s.removeEventListener("touchstart",p9,jf),s.removeEventListener("touchmove",f9,jf)))}},[n]);return Y.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var vse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},mse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=hse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=gse({isEnabled:r}),b=function(w){d(w),v(w)};return it(Y.Fragment,null,r&&it("div",{onClick:vse,css:mse}),t(b))}var bse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},wse=function(t){var r=t.name,n=t.onFocus;return it("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:bse,value:"",onChange:function(){}})},_se=wse;function sO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xse(){return sO(/^iPhone/i)}function _V(){return sO(/^Mac/i)}function Sse(){return sO(/^iPad/i)||_V()&&navigator.maxTouchPoints>1}function Cse(){return xse()||Sse()}function Pse(){return _V()||Cse()}var Tse=function(t){return t.label},Ose=function(t){return t.label},kse=function(t){return t.value},Ese=function(t){return!!t.isDisabled},Mse={clearIndicator:fle,container:tle,control:ble,dropdownIndicator:cle,group:Sle,groupHeading:Ple,indicatorsContainer:ile,indicatorSeparator:hle,input:Ele,loadingIndicator:mle,loadingMessage:Xae,menu:Hae,menuList:Kae,menuPortal:Jae,multiValue:Ile,multiValueLabel:Lle,multiValueRemove:Dle,noOptionsMessage:Yae,option:Ule,placeholder:$le,singleValue:qle,valueContainer:nle},Rse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Nse=4,xV=4,Ase=38,Ise=xV*2,Lse={baseUnit:xV,controlHeight:Ase,menuGutter:Ise},Qx={borderRadius:Nse,colors:Rse,spacing:Lse},Dse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:o9(),captureMenuScroll:!o9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cse(),formatGroupLabel:Tse,getOptionLabel:Ose,getOptionValue:kse,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ese,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Aae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function v9(e,t,r,n){var o=PV(e,t,r),i=TV(e,t,r),a=CV(e,t),l=Aw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function t1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return v9(e,a,t,l)}).filter(function(a){return y9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=v9(e,r,t,n);return y9(e,i)?i:void 0}).filter(Dae)}function SV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,YT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function m9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,YT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function Fse(e,t){return SV(t1(e,t))}function y9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!kV(e)||!i)&&OV(e,{label:a,value:l,data:o},n)}function jse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Zx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},CV=function(t,r){return t.getOptionLabel(r)},Aw=function(t,r){return t.getOptionValue(r)};function PV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function TV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Aw(e,t);return r.some(function(o){return Aw(e,o)===n})}function OV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var kV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Vse=1,EV=(function(e){tie(r,e);var t=oie(r);function r(n){var o;if(Joe(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,b=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),b(s,d)},o.setValue=function(s,d,v){var b=o.props,S=b.closeMenuOnSelect,w=b.isMulti,P=b.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!w}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,b=d.isMulti,S=d.name,w=o.state.selectValue,P=b&&o.isOptionSelected(s,w),y=o.isOptionDisabled(s,w);if(P){var C=o.getOptionValue(s);o.setValue(w.filter(function(h){return o.getOptionValue(h)!==C}),"deselect-option",s)}else if(!y)b?o.setValue([].concat(YT(w),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,b=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==b}),w=db(d,S,S[0]||null);o.onChange(w,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(db(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],b=d.slice(0,d.length-1),S=db(s,b,b[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Zx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return m9(t1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;vw||S>w}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return kV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,b=d.backspaceRemovesValue,S=d.escapeClearsValue,w=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,h=d.onKeyDown,p=d.tabSelectsValue,c=d.openMenuOnFocus,g=o.state,m=g.focusedOption,_=g.focusedValue,T=g.selectValue;if(!y&&!(typeof h=="function"&&(h(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||w)return;o.focusValue("previous");break;case"ArrowRight":if(!v||w)return;o.focusValue("next");break;case"Delete":case"Backspace":if(w)return;if(_)o.removeValue(_);else{if(!b)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!p||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:w}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(w)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Vse),o.state.selectValue=r9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Zx(i,a[l])}return o}return eie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&n9(this.menuListRef,this.focusedOptionRef),Pse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(n9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var b=d.indexOf(l[0]);b>-1&&(v=b)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Qx):st(st({},Qx),this.props.theme):Qx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,b=this.props,S=b.isMulti,w=b.isRtl,P=b.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:w,options:P,selectOption:d,selectProps:b,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return PV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return TV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return OV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,b=o.menuIsOpen,S=o.required,w=this.getComponents(),P=w.Input,y=this.state,C=y.inputIsHidden,h=y.ariaSelection,p=this.commonProps,c=l||this.getElementId("input"),g=st(st(st({"aria-autocomplete":"list","aria-expanded":b,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},b&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Y.createElement(P,dt({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},g)):Y.createElement(fse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Rw,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},g))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,b=i.Placeholder,S=this.commonProps,w=this.props,P=w.controlShouldRenderValue,y=w.isDisabled,C=w.isMulti,h=w.inputValue,p=w.placeholder,c=this.state,g=c.selectValue,m=c.focusedValue,_=c.isFocused;if(!this.hasValue()||!P)return h?null:Y.createElement(b,dt({},S,{key:"placeholder",isDisabled:y,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),p);if(C)return g.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return Y.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(h)return null;var T=g[0];return Y.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var b={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:b,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var b={"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:b,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return Y.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,b=i.LoadingMessage,S=i.NoOptionsMessage,w=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,h=C.captureMenuScroll,p=C.inputValue,c=C.isLoading,g=C.loadingMessage,m=C.minMenuHeight,_=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,H=C.onMenuScrollToBottom;if(!T)return null;var q=function(oe,fe){var ge=oe.type,ce=oe.data,J=oe.isDisabled,ie=oe.isSelected,ue=oe.label,Se=oe.value,Ce=y===ce,Me=J?void 0:function(){return o.onOptionHover(ce)},Le=J?void 0:function(){return o.selectOption(ce)},Re="".concat(o.getElementId("option"),"-").concat(fe),be={id:Re,onClick:Le,onMouseMove:Me,onMouseOver:Me,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:ie};return Y.createElement(w,dt({},P,{innerProps:be,data:ce,isDisabled:J,isSelected:ie,key:Re,label:ue,type:ge,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(oe.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var oe=Z.data,fe=Z.options,ge=Z.index,ce="".concat(o.getElementId("group"),"-").concat(ge),J="".concat(ce,"-heading");return Y.createElement(a,dt({},P,{key:ce,data:oe,options:fe,Heading:l,headingProps:{id:J,data:Z.data},label:o.formatGroupLabel(Z.data)}),Z.options.map(function(ie){return q(ie,"".concat(ge,"-").concat(ie.index))}))}else if(Z.type==="option")return q(Z,"".concat(Z.index))});else if(c){var Q=g({inputValue:p});if(Q===null)return null;ne=Y.createElement(b,P,Q)}else{var W=V({inputValue:p});if(W===null)return null;ne=Y.createElement(S,P,W)}var X={minMenuHeight:m,maxMenuHeight:_,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},re=Y.createElement(Wae,dt({},P,X),function(Z){var oe=Z.ref,fe=Z.placerProps,ge=fe.placement,ce=fe.maxHeight;return Y.createElement(s,dt({},P,X,{innerRef:oe,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:ge}),Y.createElement(yse,{captureEnabled:h,onTopArrive:B,onBottomArrive:H,lockEnabled:A},function(J){return Y.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),J(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),ne)}))});return E||R==="fixed"?Y.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),re):re}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,b=this.state.selectValue;if(v&&!this.hasValue()&&!l)return Y.createElement(_se,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=b.map(function(y){return o.getOptionValue(y)}).join(a);return Y.createElement("input",{name:d,type:"hidden",value:S})}else{var w=b.length>0?b.map(function(y,C){return Y.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):Y.createElement("input",{name:d,type:"hidden",value:""});return Y.createElement("div",null,w)}else{var P=b[0]?this.getOptionValue(b[0]):"";return Y.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,b=this.getFocusableOptions();return Y.createElement(ase,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:b,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,b=d.id,S=d.isDisabled,w=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return Y.createElement(l,dt({},y,{className:v,innerProps:{id:b,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),Y.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:w}),Y.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),Y.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,b=i.prevWasFocused,S=i.instancePrefix,w=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,h=o.isMulti,p=r9(P),c={};if(a&&(P!==a.value||w!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var g=y?Fse(o,p):[],m=y?m9(t1(o,p),"".concat(S,"-option")):[],_=l?jse(i,p):null,T=zse(i,g),k=Zx(m,T);c={selectValue:p,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:_,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&b;return v&&!A&&(E={value:db(h,p,p[0]||null),options:p,action:"initial-input-focus"},A=!b),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(Y.Component);EV.defaultProps=Dse;var Bse=Y.forwardRef(function(e,t){var r=Zoe(e);return Y.createElement(EV,dt({ref:t},r))}),Use=Bse;/** +`]))),yle=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,l=i.spacing.baseUnit;return st({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:l*2})},Kx=function(t){var r=t.delay,n=t.offset;return it("span",{css:nO({animation:"".concat(mle," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ble=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=Ps(t,ule);return it("div",dt({},Hr(st(st({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),it(Kx,{delay:0,offset:n}),it(Kx,{delay:160,offset:!0}),it(Kx,{delay:320,offset:!n}))},wle=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,l=i.borderRadius,s=i.spacing;return st({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},_le=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return it("div",dt({ref:i},Hr(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),r)},xle=_le,Sle=["data"],Cle=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},Ple=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,l=t.headingProps,s=t.innerProps,d=t.label,v=t.theme,b=t.selectProps;return it("div",dt({},Hr(t,"group",{group:!0}),s),it(a,dt({},l,{selectProps:b,theme:v,getStyles:o,getClassNames:i,cx:n}),d),it("div",null,r))},Tle=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return st({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Ole=function(t){var r=uV(t);r.data;var n=Ps(r,Sle);return it("div",dt({},Hr(t,"groupHeading",{"group-heading":!0}),n))},kle=Ple,Ele=["innerRef","isDisabled","isHidden","inputClassName"],Mle=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,l=i.colors;return st(st({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Rle),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},yV={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Rle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":st({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},yV)},Nle=function(t){return st({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},yV)},Ale=function(t){var r=t.cx,n=t.value,o=uV(t),i=o.innerRef,a=o.isDisabled,l=o.isHidden,s=o.inputClassName,d=Ps(o,Ele);return it("div",dt({},Hr(t,"input",{"input-container":!0}),{"data-value":n||""}),it("input",dt({className:r({input:!0},s),ref:i,style:Nle(l),disabled:a},d)))},Ile=Ale,Lle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return st({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Dle=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return st({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Fle=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,l=t.isFocused;return st({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},bV=function(t){var r=t.children,n=t.innerProps;return it("div",n,r)},jle=bV,zle=bV;function Vle(e){var t=e.children,r=e.innerProps;return it("div",dt({role:"button"},r),t||it(lO,{size:14}))}var Ble=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,l=t.removeProps,s=t.selectProps,d=n.Container,v=n.Label,b=n.Remove;return it(d,{data:o,innerProps:st(st({},Hr(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},it(v,{data:o,innerProps:st({},Hr(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),it(b,{data:o,innerProps:st(st({},Hr(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Ule=Ble,Hle=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,l=a.spacing,s=a.colors;return st({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Wle=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,l=t.innerProps;return it("div",dt({},Hr(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},l),r)},$le=Wle,Gle=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return st({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Kle=function(t){var r=t.children,n=t.innerProps;return it("div",dt({},Hr(t,"placeholder",{placeholder:!0}),n),r)},qle=Kle,Yle=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return st({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Xle=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return it("div",dt({},Hr(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Qle=Xle,Zle={ClearIndicator:hle,Control:xle,DropdownIndicator:fle,DownChevron:vV,CrossIcon:lO,Group:kle,GroupHeading:Ole,IndicatorsContainer:lle,IndicatorSeparator:vle,Input:Ile,LoadingIndicator:ble,Menu:Kae,MenuList:Yae,MenuPortal:tle,LoadingMessage:Jae,NoOptionsMessage:Zae,MultiValue:Ule,MultiValueContainer:jle,MultiValueLabel:zle,MultiValueRemove:Vle,Option:$le,Placeholder:qle,SelectContainer:nle,SingleValue:Qle,ValueContainer:ile},Jle=function(t){return st(st({},Zle),t.components)},a9=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ese(e,t){return!!(e===t||a9(e)&&a9(t))}function tse(e,t){if(e.length!==t.length)return!1;for(var r=0;r1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,l=t.selectValue,s=t.isDisabled,d=t.isSelected,v=t.isAppleDevice,b=function(y,C){return y&&y.length?"".concat(y.indexOf(C)+1," of ").concat(y.length):""};if(r==="value"&&l)return"value ".concat(a," focused, ").concat(b(l,n),".");if(r==="menu"&&v){var S=s?" disabled":"",w="".concat(d?" selected":"").concat(S);return"".concat(a).concat(w,", ").concat(b(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ase=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,l=t.selectValue,s=t.selectProps,d=t.id,v=t.isAppleDevice,b=s.ariaLiveMessages,S=s.getOptionLabel,w=s.inputValue,P=s.isMulti,y=s.isOptionDisabled,C=s.isSearchable,h=s.menuIsOpen,p=s.options,c=s.screenReaderStatus,g=s.tabSelectsValue,m=s.isLoading,_=s["aria-label"],T=s["aria-live"],k=Y.useMemo(function(){return st(st({},ise),b||{})},[b]),R=Y.useMemo(function(){var H="";if(r&&k.onChange){var q=r.option,ne=r.options,Q=r.removedValue,W=r.removedValues,X=r.value,re=function(ie){return Array.isArray(ie)?null:ie},Z=Q||q||re(X),oe=Z?S(Z):"",fe=ne||W||void 0,ge=fe?fe.map(S):[],ce=st({isDisabled:Z&&y(Z,l),label:oe,labels:ge},r);H=k.onChange(ce)}return H},[r,k,y,l,S]),E=Y.useMemo(function(){var H="",q=n||o,ne=!!(n&&l&&l.includes(n));if(q&&k.onFocus){var Q={focused:q,label:S(q),isDisabled:y(q,l),isSelected:ne,options:i,context:q===n?"menu":"value",selectValue:l,isAppleDevice:v};H=k.onFocus(Q)}return H},[n,o,S,y,k,i,l,v]),A=Y.useMemo(function(){var H="";if(h&&p.length&&!m&&k.onFilter){var q=c({count:i.length});H=k.onFilter({inputValue:w,resultsMessage:q})}return H},[i,w,h,k,p,c,m]),F=(r==null?void 0:r.action)==="initial-input-focus",V=Y.useMemo(function(){var H="";if(k.guidance){var q=o?"value":h?"menu":"input";H=k.guidance({"aria-label":_,context:q,isDisabled:n&&y(n,l),isMulti:P,isSearchable:C,tabSelectsValue:g,isInitialFocus:F})}return H},[_,n,o,P,y,C,h,k,l,g,F]),B=it(Y.Fragment,null,it("span",{id:"aria-selection"},R),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},A),it("span",{id:"aria-guidance"},V));return it(Y.Fragment,null,it(l9,{id:d},F&&B),it(l9,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!F&&B))},lse=ase,E4=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sse=new RegExp("["+E4.map(function(e){return e.letters}).join("")+"]","g"),wV={};for(var qx=0;qx-1}},fse=["innerRef"];function pse(e){var t=e.innerRef,r=Ps(e,fse),n=zae(r,"onExited","in","enter","exit","appear");return it("input",dt({ref:t},n,{css:nO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function gse(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=Y.useRef(!1),l=Y.useRef(!1),s=Y.useRef(0),d=Y.useRef(null),v=Y.useCallback(function(C,h){if(d.current!==null){var p=d.current,c=p.scrollTop,g=p.scrollHeight,m=p.clientHeight,_=d.current,T=h>0,k=g-m-c,R=!1;k>h&&a.current&&(n&&n(C),a.current=!1),T&&l.current&&(i&&i(C),l.current=!1),T&&h>k?(r&&!a.current&&r(C),_.scrollTop=g,R=!0,a.current=!0):!T&&-h>c&&(o&&!l.current&&o(C),_.scrollTop=0,R=!0,l.current=!0),R&&hse(C)}},[r,n,o,i]),b=Y.useCallback(function(C){v(C,C.deltaY)},[v]),S=Y.useCallback(function(C){s.current=C.changedTouches[0].clientY},[]),w=Y.useCallback(function(C){var h=s.current-C.changedTouches[0].clientY;v(C,h)},[v]),P=Y.useCallback(function(C){if(C){var h=Dae?{passive:!1}:!1;C.addEventListener("wheel",b,h),C.addEventListener("touchstart",S,h),C.addEventListener("touchmove",w,h)}},[w,S,b]),y=Y.useCallback(function(C){C&&(C.removeEventListener("wheel",b,!1),C.removeEventListener("touchstart",S,!1),C.removeEventListener("touchmove",w,!1))},[w,S,b]);return Y.useEffect(function(){if(t){var C=d.current;return P(C),function(){y(C)}}},[t,P,y]),function(C){d.current=C}}var u9=["boxSizing","height","overflow","paddingRight","position"],c9={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function d9(e){e.cancelable&&e.preventDefault()}function f9(e){e.stopPropagation()}function p9(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function h9(){return"ontouchstart"in window||navigator.maxTouchPoints}var g9=!!(typeof window<"u"&&window.document&&window.document.createElement),tg=0,jf={capture:!1,passive:!1};function vse(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=Y.useRef({}),i=Y.useRef(null),a=Y.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;if(n&&u9.forEach(function(P){var y=v&&v[P];o.current[P]=y}),n&&tg<1){var b=parseInt(o.current.paddingRight,10)||0,S=document.body?document.body.clientWidth:0,w=window.innerWidth-S+b||0;Object.keys(c9).forEach(function(P){var y=c9[P];v&&(v[P]=y)}),v&&(v.paddingRight="".concat(w,"px"))}d&&h9()&&(d.addEventListener("touchmove",d9,jf),s&&(s.addEventListener("touchstart",p9,jf),s.addEventListener("touchmove",f9,jf))),tg+=1}},[n]),l=Y.useCallback(function(s){if(g9){var d=document.body,v=d&&d.style;tg=Math.max(tg-1,0),n&&tg<1&&u9.forEach(function(b){var S=o.current[b];v&&(v[b]=S)}),d&&h9()&&(d.removeEventListener("touchmove",d9,jf),s&&(s.removeEventListener("touchstart",p9,jf),s.removeEventListener("touchmove",f9,jf)))}},[n]);return Y.useEffect(function(){if(t){var s=i.current;return a(s),function(){l(s)}}},[t,a,l]),function(s){i.current=s}}var mse=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},yse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function bse(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,s=e.onTopLeave,d=gse({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:l,onTopLeave:s}),v=vse({isEnabled:r}),b=function(w){d(w),v(w)};return it(Y.Fragment,null,r&&it("div",{onClick:mse,css:yse}),t(b))}var wse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},_se=function(t){var r=t.name,n=t.onFocus;return it("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:wse,value:"",onChange:function(){}})},xse=_se;function sO(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Sse(){return sO(/^iPhone/i)}function xV(){return sO(/^Mac/i)}function Cse(){return sO(/^iPad/i)||xV()&&navigator.maxTouchPoints>1}function Pse(){return Sse()||Cse()}function Tse(){return xV()||Pse()}var Ose=function(t){return t.label},kse=function(t){return t.label},Ese=function(t){return t.value},Mse=function(t){return!!t.isDisabled},Rse={clearIndicator:ple,container:rle,control:wle,dropdownIndicator:dle,group:Cle,groupHeading:Tle,indicatorsContainer:ale,indicatorSeparator:gle,input:Mle,loadingIndicator:yle,loadingMessage:Qae,menu:Wae,menuList:qae,menuPortal:ele,multiValue:Lle,multiValueLabel:Dle,multiValueRemove:Fle,noOptionsMessage:Xae,option:Hle,placeholder:Gle,singleValue:Yle,valueContainer:ole},Nse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Ase=4,SV=4,Ise=38,Lse=SV*2,Dse={baseUnit:SV,controlHeight:Ise,menuGutter:Lse},Qx={borderRadius:Ase,colors:Nse,spacing:Dse},Fse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:o9(),captureMenuScroll:!o9(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:dse(),formatGroupLabel:Ose,getOptionLabel:kse,getOptionValue:Ese,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Mse,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Iae(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function v9(e,t,r,n){var o=TV(e,t,r),i=OV(e,t,r),a=PV(e,t),l=Aw(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:l,index:n}}function t1(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,l){return v9(e,a,t,l)}).filter(function(a){return y9(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=v9(e,r,t,n);return y9(e,i)?i:void 0}).filter(Fae)}function CV(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,YT(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function m9(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,YT(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function jse(e,t){return CV(t1(e,t))}function y9(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!EV(e)||!i)&&kV(e,{label:a,value:l,data:o},n)}function zse(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o-1?r:t[0]}var Zx=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},PV=function(t,r){return t.getOptionLabel(r)},Aw=function(t,r){return t.getOptionValue(r)};function TV(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function OV(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=Aw(e,t);return r.some(function(o){return Aw(e,o)===n})}function kV(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var EV=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Bse=1,MV=(function(e){rie(r,e);var t=iie(r);function r(n){var o;if(eie(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,d){var v=o.props,b=v.onChange,S=v.name;d.name=S,o.ariaOnChange(s,d),b(s,d)},o.setValue=function(s,d,v){var b=o.props,S=b.closeMenuOnSelect,w=b.isMulti,P=b.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:P}),S&&(o.setState({inputIsHiddenAfterUpdate:!w}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:d,option:v})},o.selectOption=function(s){var d=o.props,v=d.blurInputOnSelect,b=d.isMulti,S=d.name,w=o.state.selectValue,P=b&&o.isOptionSelected(s,w),y=o.isOptionDisabled(s,w);if(P){var C=o.getOptionValue(s);o.setValue(w.filter(function(h){return o.getOptionValue(h)!==C}),"deselect-option",s)}else if(!y)b?o.setValue([].concat(YT(w),[s]),"select-option",s):o.setValue(s,"select-option");else{o.ariaOnChange(s,{action:"select-option",option:s,name:S});return}v&&o.blurInput()},o.removeValue=function(s){var d=o.props.isMulti,v=o.state.selectValue,b=o.getOptionValue(s),S=v.filter(function(P){return o.getOptionValue(P)!==b}),w=db(d,S,S[0]||null);o.onChange(w,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(db(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,d=o.state.selectValue,v=d[d.length-1],b=d.slice(0,d.length-1),S=db(s,b,b[0]||null);v&&o.onChange(S,{action:"pop-value",removedValue:v})},o.getFocusedOptionId=function(s){return Zx(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return m9(t1(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,d=new Array(s),v=0;vw||S>w}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var d=o.props.inputValue,v=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(v,{action:"input-change",prevInputValue:d}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var d=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:d}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var d=o.getFocusableOptions(),v=d.indexOf(s);o.setState({focusedOption:s,focusedOptionId:v>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return EV(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var d=o.props,v=d.isMulti,b=d.backspaceRemovesValue,S=d.escapeClearsValue,w=d.inputValue,P=d.isClearable,y=d.isDisabled,C=d.menuIsOpen,h=d.onKeyDown,p=d.tabSelectsValue,c=d.openMenuOnFocus,g=o.state,m=g.focusedOption,_=g.focusedValue,T=g.selectValue;if(!y&&!(typeof h=="function"&&(h(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!v||w)return;o.focusValue("previous");break;case"ArrowRight":if(!v||w)return;o.focusValue("next");break;case"Delete":case"Backspace":if(w)return;if(_)o.removeValue(_);else{if(!b)return;v?o.popValue():P&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!C||!p||!m||c&&o.isOptionSelected(m,T))return;o.selectOption(m);break;case"Enter":if(s.keyCode===229)break;if(C){if(!m||o.isComposing)return;o.selectOption(m);break}return;case"Escape":C?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:w}),o.onMenuClose()):P&&S&&o.clearValue();break;case" ":if(w)return;if(!C){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":C?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":C?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!C)return;o.focusOption("pageup");break;case"PageDown":if(!C)return;o.focusOption("pagedown");break;case"Home":if(!C)return;o.focusOption("first");break;case"End":if(!C)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Bse),o.state.selectValue=r9(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[l],o.state.focusedOptionId=Zx(i,a[l])}return o}return tie(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&n9(this.menuListRef,this.focusedOptionRef),Tse()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,l=i.menuIsOpen,s=this.state.isFocused;(s&&!a&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(n9(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,l=a.selectValue,s=a.isFocused,d=this.buildFocusableOptions(),v=o==="first"?0:d.length-1;if(!this.props.isMulti){var b=d.indexOf(l[0]);b>-1&&(v=b)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[v],focusedOptionId:this.getFocusedOptionId(d[v])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(l);l||(s=-1);var d=a.length-1,v=-1;if(a.length){switch(o){case"previous":s===0?v=0:s===-1?v=d:v=s-1;break;case"next":s>-1&&s0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,d=l.indexOf(a);a||(d=-1),o==="up"?s=d>0?d-1:l.length-1:o==="down"?s=(d+1)%l.length:o==="pageup"?(s=d-i,s<0&&(s=0)):o==="pagedown"?(s=d+i,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Qx):st(st({},Qx),this.props.theme):Qx})},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,l=this.getClassNames,s=this.getValue,d=this.selectOption,v=this.setValue,b=this.props,S=b.isMulti,w=b.isRtl,P=b.options,y=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:l,getValue:s,hasValue:y,isMulti:S,isRtl:w,options:P,selectOption:d,selectProps:b,setValue:v,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return TV(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return OV(this.props,o,i)}},{key:"filterOption",value:function(o,i){return kV(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,l=o.inputId,s=o.inputValue,d=o.tabIndex,v=o.form,b=o.menuIsOpen,S=o.required,w=this.getComponents(),P=w.Input,y=this.state,C=y.inputIsHidden,h=y.ariaSelection,p=this.commonProps,c=l||this.getElementId("input"),g=st(st(st({"aria-autocomplete":"list","aria-expanded":b,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":S,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},b&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?Y.createElement(P,dt({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:i,isHidden:C,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:v,type:"text",value:s},g)):Y.createElement(pse,dt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Rw,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:v,value:""},g))})},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,l=i.MultiValueContainer,s=i.MultiValueLabel,d=i.MultiValueRemove,v=i.SingleValue,b=i.Placeholder,S=this.commonProps,w=this.props,P=w.controlShouldRenderValue,y=w.isDisabled,C=w.isMulti,h=w.inputValue,p=w.placeholder,c=this.state,g=c.selectValue,m=c.focusedValue,_=c.isFocused;if(!this.hasValue()||!P)return h?null:Y.createElement(b,dt({},S,{key:"placeholder",isDisabled:y,isFocused:_,innerProps:{id:this.getElementId("placeholder")}}),p);if(C)return g.map(function(k,R){var E=k===m,A="".concat(o.getOptionLabel(k),"-").concat(o.getOptionValue(k));return Y.createElement(a,dt({},S,{components:{Container:l,Label:s,Remove:d},isFocused:E,isDisabled:y,key:A,index:R,removeProps:{onClick:function(){return o.removeValue(k)},onTouchEnd:function(){return o.removeValue(k)},onMouseDown:function(V){V.preventDefault()}},data:k}),o.formatOptionLabel(k,"value"))});if(h)return null;var T=g[0];return Y.createElement(v,dt({},S,{data:T,isDisabled:y}),this.formatOptionLabel(T,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!this.isClearable()||!i||s||!this.hasValue()||d)return null;var b={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:b,isFocused:v}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,l=this.props,s=l.isDisabled,d=l.isLoading,v=this.state.isFocused;if(!i||!d)return null;var b={"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:b,isDisabled:s,isFocused:v}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var l=this.commonProps,s=this.props.isDisabled,d=this.state.isFocused;return Y.createElement(a,dt({},l,{isDisabled:s,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(i,dt({},a,{innerProps:d,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,l=i.GroupHeading,s=i.Menu,d=i.MenuList,v=i.MenuPortal,b=i.LoadingMessage,S=i.NoOptionsMessage,w=i.Option,P=this.commonProps,y=this.state.focusedOption,C=this.props,h=C.captureMenuScroll,p=C.inputValue,c=C.isLoading,g=C.loadingMessage,m=C.minMenuHeight,_=C.maxMenuHeight,T=C.menuIsOpen,k=C.menuPlacement,R=C.menuPosition,E=C.menuPortalTarget,A=C.menuShouldBlockScroll,F=C.menuShouldScrollIntoView,V=C.noOptionsMessage,B=C.onMenuScrollToTop,H=C.onMenuScrollToBottom;if(!T)return null;var q=function(oe,fe){var ge=oe.type,ce=oe.data,J=oe.isDisabled,ie=oe.isSelected,ue=oe.label,Se=oe.value,Ce=y===ce,Me=J?void 0:function(){return o.onOptionHover(ce)},Le=J?void 0:function(){return o.selectOption(ce)},Re="".concat(o.getElementId("option"),"-").concat(fe),be={id:Re,onClick:Le,onMouseMove:Me,onMouseOver:Me,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:ie};return Y.createElement(w,dt({},P,{innerProps:be,data:ce,isDisabled:J,isSelected:ie,key:Re,label:ue,type:ge,value:Se,isFocused:Ce,innerRef:Ce?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(oe.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(Z){if(Z.type==="group"){var oe=Z.data,fe=Z.options,ge=Z.index,ce="".concat(o.getElementId("group"),"-").concat(ge),J="".concat(ce,"-heading");return Y.createElement(a,dt({},P,{key:ce,data:oe,options:fe,Heading:l,headingProps:{id:J,data:Z.data},label:o.formatGroupLabel(Z.data)}),Z.options.map(function(ie){return q(ie,"".concat(ge,"-").concat(ie.index))}))}else if(Z.type==="option")return q(Z,"".concat(Z.index))});else if(c){var Q=g({inputValue:p});if(Q===null)return null;ne=Y.createElement(b,P,Q)}else{var W=V({inputValue:p});if(W===null)return null;ne=Y.createElement(S,P,W)}var X={minMenuHeight:m,maxMenuHeight:_,menuPlacement:k,menuPosition:R,menuShouldScrollIntoView:F},re=Y.createElement($ae,dt({},P,X),function(Z){var oe=Z.ref,fe=Z.placerProps,ge=fe.placement,ce=fe.maxHeight;return Y.createElement(s,dt({},P,X,{innerRef:oe,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:c,placement:ge}),Y.createElement(bse,{captureEnabled:h,onTopArrive:B,onBottomArrive:H,lockEnabled:A},function(J){return Y.createElement(d,dt({},P,{innerRef:function(ue){o.getMenuListRef(ue),J(ue)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:o.getElementId("listbox")},isLoading:c,maxHeight:ce,focusedOption:y}),ne)}))});return E||R==="fixed"?Y.createElement(v,dt({},P,{appendTo:E,controlElement:this.controlRef,menuPlacement:k,menuPosition:R}),re):re}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,l=i.isDisabled,s=i.isMulti,d=i.name,v=i.required,b=this.state.selectValue;if(v&&!this.hasValue()&&!l)return Y.createElement(xse,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(s)if(a){var S=b.map(function(y){return o.getOptionValue(y)}).join(a);return Y.createElement("input",{name:d,type:"hidden",value:S})}else{var w=b.length>0?b.map(function(y,C){return Y.createElement("input",{key:"i-".concat(C),name:d,type:"hidden",value:o.getOptionValue(y)})}):Y.createElement("input",{name:d,type:"hidden",value:""});return Y.createElement("div",null,w)}else{var P=b[0]?this.getOptionValue(b[0]):"";return Y.createElement("input",{name:d,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,l=i.focusedOption,s=i.focusedValue,d=i.isFocused,v=i.selectValue,b=this.getFocusableOptions();return Y.createElement(lse,dt({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:s,isFocused:d,selectValue:v,focusableOptions:b,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,d=this.props,v=d.className,b=d.id,S=d.isDisabled,w=d.menuIsOpen,P=this.state.isFocused,y=this.commonProps=this.getCommonProps();return Y.createElement(l,dt({},y,{className:v,innerProps:{id:b,onKeyDown:this.onKeyDown},isDisabled:S,isFocused:P}),this.renderLiveRegion(),Y.createElement(i,dt({},y,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:S,isFocused:P,menuIsOpen:w}),Y.createElement(s,dt({},y,{isDisabled:S}),this.renderPlaceholderOrValue(),this.renderInput()),Y.createElement(a,dt({},y,{isDisabled:S}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l=i.clearFocusValueOnUpdate,s=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,v=i.isFocused,b=i.prevWasFocused,S=i.instancePrefix,w=o.options,P=o.value,y=o.menuIsOpen,C=o.inputValue,h=o.isMulti,p=r9(P),c={};if(a&&(P!==a.value||w!==a.options||y!==a.menuIsOpen||C!==a.inputValue)){var g=y?jse(o,p):[],m=y?m9(t1(o,p),"".concat(S,"-option")):[],_=l?zse(i,p):null,T=Vse(i,g),k=Zx(m,T);c={selectValue:p,focusedOption:T,focusedOptionId:k,focusableOptionsWithIds:m,focusedValue:_,clearFocusValueOnUpdate:!1}}var R=s!=null&&o!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},E=d,A=v&&b;return v&&!A&&(E={value:db(h,p,p[0]||null),options:p,action:"initial-input-focus"},A=!b),(d==null?void 0:d.action)==="initial-input-focus"&&(E=null),st(st(st({},c),R),{},{prevProps:o,ariaSelection:E,prevWasFocused:A})}}]),r})(Y.Component);MV.defaultProps=Fse;var Use=Y.forwardRef(function(e,t){var r=Joe(e);return Y.createElement(MV,dt({ref:t},r))}),Hse=Use;/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Hse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wse=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),b9=e=>{const t=Wse(e);return t.charAt(0).toUpperCase()+t.slice(1)},MV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),$se=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** + */const Wse=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$se=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),b9=e=>{const t=$se(e);return t.charAt(0).toUpperCase()+t.slice(1)},RV=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Gse=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Gse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + */var Kse={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Kse=Y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>Y.createElement("svg",{ref:s,...Gse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:MV("lucide",o),...!i&&!$se(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>Y.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** + */const qse=Y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...l},s)=>Y.createElement("svg",{ref:s,...Kse,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:RV("lucide",o),...!i&&!Gse(l)&&{"aria-hidden":"true"},...l},[...a.map(([d,v])=>Y.createElement(d,v)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const RV=(e,t)=>{const r=Y.forwardRef(({className:n,...o},i)=>Y.createElement(Kse,{ref:i,iconNode:t,className:MV(`lucide-${Hse(b9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=b9(e),r};/** + */const NV=(e,t)=>{const r=Y.forwardRef(({className:n,...o},i)=>Y.createElement(qse,{ref:i,iconNode:t,className:RV(`lucide-${Wse(b9(e))}`,`lucide-${e}`,n),...o}));return r.displayName=b9(e),r};/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const qse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Yse=RV("chevrons-down",qse);/** + */const Yse=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],Xse=NV("chevrons-down",Yse);/** * @license lucide-react v0.515.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Xse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Qse=RV("chevrons-up",Xse),Zse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=Y.useState(!1),[l,s]=Y.useState(typeof window<"u"&&window.innerWidth>=768);Y.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),b=c=>o(c.map(g=>g.value)),S=c=>o(n.filter(g=>g!==c)),w=Y.useRef(null),[P,y]=Y.useState("32px"),[C,h]=Y.useState(!1);Y.useEffect(()=>{const c=w.current;if(!c)return;const g=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${g}px`,requestAnimationFrame(()=>{const _=Math.max(m,125);y(`${i?_:32}px`)})})},[i,n]);const p={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return Ie.jsxs("div",{ref:w,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[Ie.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?Ie.jsx(Yse,{size:24}):Ie.jsx(Qse,{size:24})}),i&&Ie.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[Ie.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:Ie.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),Ie.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:Ie.jsxs("div",{style:{width:l?"50%":"100%"},children:[Ie.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Ie.jsx("div",{style:{flexGrow:1},children:Ie.jsx(Use,{isMulti:!0,options:d,value:v,onChange:b,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,g)=>({...c,color:"black",backgroundColor:g.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),Ie.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&h(!0),onMouseLeave:()=>l&&h(!1),onClick:()=>!l&&h(c=>!c),children:["i",C&&Ie.jsx("div",{style:p,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&Ie.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>Ie.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,Ie.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},Jse=e=>{const[t,r]=Y.useState({visible:!1,text:"",x:0,y:0}),n=Y.useCallback((i,a,l,s,d,v,b)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:b})},[e]),o=Y.useCallback(()=>{r(i=>({...i,visible:!1}))},[]);return{tooltip:t,showTooltip:n,hideTooltip:o}},eue=e=>e,tue=()=>{const[e,t]=Y.useState([]),[r,n]=Y.useState({}),[o,i]=Y.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${jg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${jg}/api/v1/starmap/warmap`).then(d=>d.json());t(eue(s))}catch(s){console.error("Failed to fetch data:",s)}}}},rue={flashActivePlayes:!0},nue=()=>{const[e,t]=Y.useState(rue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},oue=()=>{const[e,t]=Y.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=tue(),{settings:l,setFlashActive:s}=nue(),d=Y.useCallback(v=>v.map(b=>{const S=_4(b.owner,n),w=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...b,isCapital:Boe(b.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:w}}),[o,n]);return Y.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function iue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=Y.useRef(null),o=Y.useRef(1),i=Y.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=Y.useState(1),s=Y.useRef(!1),d=Y.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=Y.useRef(0),b=Y.useCallback(P=>{const y=performance.now();if(y-v.current0?c/p:c*p;g=Math.max(e,Math.min(t,g));const m={x:(h.x-C.x())/c,y:(h.y-C.y())/c};o.current=g,i.current={x:h.x-m.x*g,y:h.y-m.y*g},C.scale({x:g,y:g}),C.position(i.current),d(C),l(g)},[t,e,d,r]),S=Y.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),w=Y.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:w,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:b,onDragMove:S}}}function aue(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function lue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=Y.useState(!1),v=Y.useRef(0),b=Y.useRef(null),S=Y.useRef(!1),w=Y.useRef(null),P=Y.useCallback(h=>{if(h.evt.touches.length===1){const p=h.target.className==="Circle",c=h.target.findAncestor("Label",!0);!p&&!c&&(i==null||i())}h.evt.touches.length===2&&(d(!0),v.current=aue(h.evt.touches[0],h.evt.touches[1]))},[i]),y=Y.useCallback(h=>{if(h.evt.touches.length!==2||!s)return;h.evt.preventDefault();const[p,c]=h.evt.touches;w.current={touch1:{clientX:p.clientX,clientY:p.clientY},touch2:{clientX:c.clientX,clientY:c.clientY}},!S.current&&(S.current=!0,b.current=requestAnimationFrame(()=>{S.current=!1;const g=w.current;if(!g)return;const m=Math.hypot(g.touch2.clientX-g.touch1.clientX,g.touch2.clientY-g.touch1.clientY);if(!v.current){v.current=m;return}const _=e.current;if(!_)return;let T=m/v.current;if(Math.abs(1-T)<.02)return;T=Math.max(.9,Math.min(1.1,T));const k=t.current??1,R=Math.max(a,Math.min(l,k*T)),E=_.getPosition(),A=_.scaleX(),F={x:(g.touch1.clientX+g.touch2.clientX)/2,y:(g.touch1.clientY+g.touch2.clientY)/2},V={x:(F.x-E.x)/A,y:(F.y-E.y)/A},B={x:F.x-V.x*R,y:F.y-V.y*R};t.current=R,r.current=B,_.scale({x:R,y:R}),_.position(B),n(_),v.current=m}))},[s,l,a,r,n,t,o,e]),C=Y.useCallback(h=>{h.evt.touches.length<2&&(d(!1),o(t.current),w.current=null,b.current!==null&&(cancelAnimationFrame(b.current),b.current=null),S.current=!1)},[]);return{isPinching:s,handlers:{onTouchStart:P,onTouchMove:y,onTouchEnd:C}}}const sue=.2,uue=25,cue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=oue(),[a,l]=Y.useState(!1);return Y.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?Ie.jsx(due,{systems:e,factions:t,settings:i}):null},due=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:b}}=iue(),[S,w]=Y.useState(""),[P,y]=Y.useState(!1),C=S.trim().toLowerCase(),h=C.length>=2,[p,c]=Y.useState([]),{tooltip:g,showTooltip:m,hideTooltip:_}=Jse(o),T=Y.useRef(!1),k=Y.useRef(null),{isPinching:R,handlers:{onTouchStart:E,onTouchMove:A,onTouchEnd:F}}=lue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:_,minScale:sue,maxScale:uue}),[V,B]=Y.useState({width:window.innerWidth,height:window.innerHeight});Y.useEffect(()=>{const be=Ye=>{Ye.touches.length>1&&Ye.preventDefault()},ke=Ye=>{Ye.preventDefault()},ze={passive:!1};return document.addEventListener("touchmove",be,ze),document.addEventListener("gesturestart",ke,ze),document.addEventListener("gesturechange",ke,ze),document.addEventListener("gestureend",ke,ze),()=>{document.removeEventListener("touchmove",be,ze),document.removeEventListener("gesturestart",ke,ze),document.removeEventListener("gesturechange",ke,ze),document.removeEventListener("gestureend",ke,ze)}},[]),Y.useEffect(()=>{const be=ke=>ke.preventDefault();return window.addEventListener("gesturestart",be,{passive:!1}),window.addEventListener("gesturechange",be,{passive:!1}),window.addEventListener("gestureend",be,{passive:!1}),()=>{window.removeEventListener("gesturestart",be),window.removeEventListener("gesturechange",be),window.removeEventListener("gestureend",be)}},[]),Y.useEffect(()=>{const be=()=>{B({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]);const[H,q]=Y.useState(null),[ne,Q]=Y.useState(!1);Y.useEffect(()=>{const be=new window.Image,ze=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";be.src="/"+ze,be.onload=()=>{q(be),Q(!0)}},[]),Y.useEffect(()=>{const be=n.current;if(!be)return;const ke=be.container(),ze=Ye=>{Ye.cancelable&&Ye.preventDefault()};return ke.addEventListener("gesturestart",ze,{passive:!1}),ke.addEventListener("gesturechange",ze,{passive:!1}),ke.addEventListener("gestureend",ze,{passive:!1}),ke.addEventListener("touchmove",ze,{passive:!1}),()=>{ke.removeEventListener("gesturestart",ze),ke.removeEventListener("gesturechange",ze),ke.removeEventListener("gestureend",ze),ke.removeEventListener("touchmove",ze)}},[]);const W=window.innerWidth<768,X=W?1.5/a.scale:2/a.scale,re=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,Z=6,oe=10,fe=12,ge=re*1.12,ce=re*.92,J=ge*1.2,ie=(be,ke)=>{if(ke===0)return[{text:be,fontStyle:"bold",fontSize:ge}];const ze=be.match(/^(Owner:|Damage:)\s*(.*)$/);if(ze){const[,Ye,Mt]=ze;return[{text:`${Ye} `,fontStyle:"bold",fontSize:ce},{text:Mt,fontStyle:"normal",fontSize:ce}]}return[{text:be,fontStyle:/^(Control|State):/.test(be)?"bold":"normal",fontSize:ce}]},ue=Y.useMemo(()=>(g.text||"").split(` + */const Qse=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],Zse=NV("chevrons-up",Qse),Jse=({searchTerm:e,setSearchTerm:t,factions:r,selectedFactions:n,setSelectedFactions:o})=>{const[i,a]=Y.useState(!1),[l,s]=Y.useState(typeof window<"u"&&window.innerWidth>=768);Y.useEffect(()=>{const c=()=>s(window.innerWidth>=768);return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]);const d=r.map(c=>({value:c,label:c})),v=d.filter(c=>n.includes(c.value)),b=c=>o(c.map(g=>g.value)),S=c=>o(n.filter(g=>g!==c)),w=Y.useRef(null),[P,y]=Y.useState("32px"),[C,h]=Y.useState(!1);Y.useEffect(()=>{const c=w.current;if(!c)return;const g=c.offsetHeight;c.style.transition="none",c.style.height="auto";const m=c.scrollHeight;requestAnimationFrame(()=>{c.style.transition="height 0.5s ease",c.style.height=`${g}px`,requestAnimationFrame(()=>{const _=Math.max(m,125);y(`${i?_:32}px`)})})},[i,n]);const p={position:"absolute",backgroundColor:"#333",color:"#fff",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"normal",width:"max-content",display:"inline-block",maxWidth:l?"220px":"90vw",zIndex:1e4,...l?{bottom:22,left:0}:{bottom:28,right:8,left:"auto",transform:"none"}};return Ie.jsxs("div",{ref:w,style:{height:P,minHeight:"32px",position:"fixed",bottom:0,left:l?"200px":0,right:0,zIndex:9999,background:"rgba(40, 40, 40, 0.85)",color:"white",padding:"0.5rem 1rem",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",backdropFilter:"blur(6px)",overflowY:"hidden",transition:"height 0.5s ease, opacity 0.3s ease",opacity:i?1:.5},children:[Ie.jsx("div",{style:{display:"flex",justifyContent:"center",cursor:"pointer",marginBottom:i?"0.75rem":0},onClick:()=>a(!i),children:i?Ie.jsx(Xse,{size:24}):Ie.jsx(Zse,{size:24})}),i&&Ie.jsxs("div",{style:{display:"flex",alignItems:"flex-start",height:"100%"},children:[Ie.jsx("div",{style:{flex:1,paddingRight:"0.75rem"},children:Ie.jsx("input",{type:"text",placeholder:"Search systems…",value:e,onChange:c=>t(c.target.value),style:{width:l?"50%":"100%",padding:"6px 10px",fontSize:"16px",borderRadius:"6px",border:"1px solid #ccc",outline:"none",backgroundColor:"white",color:"black",margin:"0 0.25rem 0.5rem"}})}),Ie.jsx("div",{style:{flex:1,paddingLeft:"0.75rem",borderLeft:"1px solid #555"},children:Ie.jsxs("div",{style:{width:l?"50%":"100%"},children:[Ie.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[Ie.jsx("div",{style:{flexGrow:1},children:Ie.jsx(Hse,{isMulti:!0,options:d,value:v,onChange:b,menuPortalTarget:document.body,menuPlacement:"top",placeholder:"Filter factions…",components:{MultiValue:()=>null},styles:{control:c=>({...c,color:"black",width:"100%"}),input:c=>({...c,color:"black"}),singleValue:c=>({...c,color:"black"}),multiValueLabel:c=>({...c,color:"black"}),option:(c,g)=>({...c,color:"black",backgroundColor:g.isFocused?"#e6e6e6":"white"}),menuPortal:c=>({...c,zIndex:9999})}})}),Ie.jsxs("div",{style:{position:"relative",display:"inline-block",cursor:"pointer",width:"18px",height:"18px",borderRadius:"50%",backgroundColor:"#888",color:"white",fontSize:"12px",textAlign:"center",lineHeight:"18px"},onMouseEnter:()=>l&&h(!0),onMouseLeave:()=>l&&h(!1),onClick:()=>!l&&h(c=>!c),children:["i",C&&Ie.jsx("div",{style:p,children:"Only factions that currently have systems on the map will appear here."})]})]}),n.length>0&&Ie.jsx("div",{style:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap",gap:"4px"},children:n.map(c=>Ie.jsxs("span",{style:{display:"flex",alignItems:"center",color:"white",fontSize:"14px",background:"rgba(255,255,255,0.15)",padding:"2px 6px",borderRadius:"4px"},children:[c,Ie.jsx("span",{onClick:()=>S(c),style:{marginLeft:"4px",cursor:"pointer",fontWeight:"bold",lineHeight:1},children:"x"})]},c))})]})})]})]})},eue=e=>{const[t,r]=Y.useState({visible:!1,text:"",x:0,y:0}),n=Y.useCallback((i,a,l,s,d,v,b)=>{const S=e.current||1;r({visible:!0,text:i,x:s!==void 0?(a-s)/S:a,y:d!==void 0?(l-d)/S:l,onTouch:v,controlItems:b})},[e]),o=Y.useCallback(()=>{r(i=>({...i,visible:!1}))},[]);return{tooltip:t,showTooltip:n,hideTooltip:o}},tue="stateTest",rue="statePreset",nue="warMapDevStateTest",oue="warMapDevStatePreset",iue="warMapDevStateOverrides",aue=["Terra","Altair","Asta","Bryant","Caph","Dieron","Epsilon Eridani","Fomalhaut","Keid","New Home","New Stevens","Saffel"],w9=e=>{if(!e)return!1;const t=e.trim().toLowerCase();return t!=="0"&&t!=="false"&&t!=="off"},lue=e=>!e||typeof e!="object"?!1:Object.values(e).every(t=>{if(!t||typeof t!="object")return!1;const r=t;return(r.isInsurrect===void 0||typeof r.isInsurrect=="boolean")&&(r.hasPirateRaid===void 0||typeof r.hasPirateRaid=="boolean")&&(r.hasCaptureEvent===void 0||typeof r.hasCaptureEvent=="boolean")&&(r.hasHoldTheLineEvent===void 0||typeof r.hasHoldTheLineEvent=="boolean")}),sue=e=>{const r=[...e].sort((d,v)=>d.name.localeCompare(v.name)).slice(0,5),[n,o,i,a,l]=r,s={};return n&&(s[n.name]={isInsurrect:!0}),o&&(s[o.name]={hasPirateRaid:!0}),i&&(s[i.name]={hasCaptureEvent:!0}),a&&(s[a.name]={hasHoldTheLineEvent:!0}),l&&(s[l.name]={hasPirateRaid:!0,hasCaptureEvent:!0}),s},uue=e=>{const r=[...e].sort((o,i)=>o.name.localeCompare(i.name)).slice(0,12),n={};return r.forEach((o,i)=>{const a=i%4;a===0&&(n[o.name]={isInsurrect:!0}),a===1&&(n[o.name]={hasPirateRaid:!0}),a===2&&(n[o.name]={hasCaptureEvent:!0}),a===3&&(n[o.name]={hasHoldTheLineEvent:!0})}),n},cue=()=>{const e=window.localStorage.getItem(iue);if(!e)return null;try{const t=JSON.parse(e);if(lue(t))return t}catch(t){console.warn("Invalid dev state override JSON in localStorage.",t)}return null},due=e=>{const t=new Map(e.map(n=>[n.name.toLowerCase(),n.name])),r={};return aue.forEach(n=>{const o=t.get(n.toLowerCase());o&&(r[o]={isInsurrect:!0})}),r},fue=e=>{if(typeof window>"u")return e;const t=new URLSearchParams(window.location.search);if(!(w9(t.get(tue))||w9(window.localStorage.getItem(nue))))return e;const n=t.get(rue)||window.localStorage.getItem(oue)||"sample",o=cue(),i=due(e),l={...n==="dense"?uue(e):sue(e),...i,...o};return Object.keys(l).length?e.map(s=>{const d=l[s.name];return d?{...s,state:{...s.state,...d}}:s}):e},pue=()=>{const[e,t]=Y.useState([]),[r,n]=Y.useState({}),[o,i]=Y.useState([]);return{rawSystems:e,factions:r,capitals:o,fetchFactionData:async()=>{try{const s=await fetch(`${jg}/api/v1/factions/warmap`).then(v=>v.json());s.NoFaction={colour:"gray",prettyName:"Unaffiliated"},n(s);const d=[];Object.keys(s).forEach(v=>{s[v].capital&&d.push(s[v].capital)}),i(d)}catch(s){console.error("Failed to fetch data:",s)}},fetchSystemData:async()=>{try{const s=await fetch(`${jg}/api/v1/starmap/warmap`).then(d=>d.json());t(fue(s))}catch(s){console.error("Failed to fetch data:",s)}}}},hue={flashActivePlayes:!0},gue=()=>{const[e,t]=Y.useState(hue);return{settings:e,setFlashActive:n=>{t({...e,flashActivePlayes:n})}}},vue=()=>{const[e,t]=Y.useState([]),{rawSystems:r,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a}=pue(),{settings:l,setFlashActive:s}=gue(),d=Y.useCallback(v=>v.map(b=>{const S=_4(b.owner,n),w=(S==null?void 0:S.prettyName)??"Unknown Faction";return{...b,isCapital:Uoe(b.name,o),factionColour:S&&S.colour?S.colour:"gray",factionName:w}}),[o,n]);return Y.useEffect(()=>{const v=d(r);t(v)},[r,o,n,d]),{displaySystems:e,projectSystemData:d,factions:n,capitals:o,fetchFactionData:i,fetchSystemData:a,settings:l,setFlashActive:s}};function mue({minScale:e=.2,maxScale:t=25,wheelThrottleMs:r=50}={}){const n=Y.useRef(null),o=Y.useRef(1),i=Y.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),[a,l]=Y.useState(1),s=Y.useRef(!1),d=Y.useCallback(P=>{s.current||(s.current=!0,requestAnimationFrame(()=>{P.batchDraw(),s.current=!1}))},[]),v=Y.useRef(0),b=Y.useCallback(P=>{const y=performance.now();if(y-v.current0?c/p:c*p;g=Math.max(e,Math.min(t,g));const m={x:(h.x-C.x())/c,y:(h.y-C.y())/c};o.current=g,i.current={x:h.x-m.x*g,y:h.y-m.y*g},C.scale({x:g,y:g}),C.position(i.current),d(C),l(g)},[t,e,d,r]),S=Y.useCallback(P=>{i.current={x:P.target.x(),y:P.target.y()}},[]),w=Y.useMemo(()=>({scale:o.current,position:i.current}),[a]);return{stageRef:n,scaleRef:o,positionRef:i,view:w,zoomScaleFactor:a,requestBatchDraw:d,setZoomScaleFactor:l,handlers:{onWheel:b,onDragMove:S}}}function yue(e,t){const r=e.clientX-t.clientX,n=e.clientY-t.clientY;return Math.sqrt(r*r+n*n)}function bue({stageRef:e,scaleRef:t,positionRef:r,requestBatchDraw:n,setZoomScaleFactor:o,hideTooltip:i,minScale:a=.2,maxScale:l=25}){const[s,d]=Y.useState(!1),v=Y.useRef(0),b=Y.useRef(null),S=Y.useRef(!1),w=Y.useRef(null),P=Y.useCallback(h=>{if(h.evt.touches.length===1){const p=h.target.className==="Circle",c=h.target.findAncestor("Label",!0);!p&&!c&&(i==null||i())}h.evt.touches.length===2&&(d(!0),v.current=yue(h.evt.touches[0],h.evt.touches[1]))},[i]),y=Y.useCallback(h=>{if(h.evt.touches.length!==2||!s)return;h.evt.preventDefault();const[p,c]=h.evt.touches;w.current={touch1:{clientX:p.clientX,clientY:p.clientY},touch2:{clientX:c.clientX,clientY:c.clientY}},!S.current&&(S.current=!0,b.current=requestAnimationFrame(()=>{S.current=!1;const g=w.current;if(!g)return;const m=Math.hypot(g.touch2.clientX-g.touch1.clientX,g.touch2.clientY-g.touch1.clientY);if(!v.current){v.current=m;return}const _=e.current;if(!_)return;let T=m/v.current;if(Math.abs(1-T)<.02)return;T=Math.max(.9,Math.min(1.1,T));const k=t.current??1,R=Math.max(a,Math.min(l,k*T)),E=_.getPosition(),A=_.scaleX(),F={x:(g.touch1.clientX+g.touch2.clientX)/2,y:(g.touch1.clientY+g.touch2.clientY)/2},V={x:(F.x-E.x)/A,y:(F.y-E.y)/A},B={x:F.x-V.x*R,y:F.y-V.y*R};t.current=R,r.current=B,_.scale({x:R,y:R}),_.position(B),n(_),v.current=m}))},[s,l,a,r,n,t,o,e]),C=Y.useCallback(h=>{h.evt.touches.length<2&&(d(!1),o(t.current),w.current=null,b.current!==null&&(cancelAnimationFrame(b.current),b.current=null),S.current=!1)},[]);return{isPinching:s,handlers:{onTouchStart:P,onTouchMove:y,onTouchEnd:C}}}const wue=.2,_ue=25,xue=()=>{const{displaySystems:e,factions:t,capitals:r,fetchFactionData:n,fetchSystemData:o,settings:i}=vue(),[a,l]=Y.useState(!1);return Y.useEffect(()=>{a||(console.log("Loading data..."),n(),o(),l(!0));const s=setInterval(()=>{console.log("API Data Refreshing at",new Date().toLocaleTimeString()),o()},3e5);return()=>clearInterval(s)},[t,r,n,o,a]),e&&e.length>0&&t&&r&&r.length>0?Ie.jsx(Sue,{systems:e,factions:t,settings:i}):null},Sue=({systems:e,factions:t,settings:r})=>{const{stageRef:n,scaleRef:o,positionRef:i,view:a,zoomScaleFactor:l,requestBatchDraw:s,setZoomScaleFactor:d,handlers:{onWheel:v,onDragMove:b}}=mue(),[S,w]=Y.useState(""),[P,y]=Y.useState(!1),C=S.trim().toLowerCase(),h=C.length>=2,[p,c]=Y.useState([]),{tooltip:g,showTooltip:m,hideTooltip:_}=eue(o),T=Y.useRef(!1),k=Y.useRef(null),{isPinching:R,handlers:{onTouchStart:E,onTouchMove:A,onTouchEnd:F}}=bue({stageRef:n,scaleRef:o,positionRef:i,requestBatchDraw:s,setZoomScaleFactor:d,hideTooltip:_,minScale:wue,maxScale:_ue}),[V,B]=Y.useState({width:window.innerWidth,height:window.innerHeight});Y.useEffect(()=>{const be=Ye=>{Ye.touches.length>1&&Ye.preventDefault()},ke=Ye=>{Ye.preventDefault()},ze={passive:!1};return document.addEventListener("touchmove",be,ze),document.addEventListener("gesturestart",ke,ze),document.addEventListener("gesturechange",ke,ze),document.addEventListener("gestureend",ke,ze),()=>{document.removeEventListener("touchmove",be,ze),document.removeEventListener("gesturestart",ke,ze),document.removeEventListener("gesturechange",ke,ze),document.removeEventListener("gestureend",ke,ze)}},[]),Y.useEffect(()=>{const be=ke=>ke.preventDefault();return window.addEventListener("gesturestart",be,{passive:!1}),window.addEventListener("gesturechange",be,{passive:!1}),window.addEventListener("gestureend",be,{passive:!1}),()=>{window.removeEventListener("gesturestart",be),window.removeEventListener("gesturechange",be),window.removeEventListener("gestureend",be)}},[]),Y.useEffect(()=>{const be=()=>{B({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]);const[H,q]=Y.useState(null),[ne,Q]=Y.useState(!1);Y.useEffect(()=>{const be=new window.Image,ze=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent)?"galaxyBackground2.webp":"galaxyBackground2.svg";be.src="/"+ze,be.onload=()=>{q(be),Q(!0)}},[]),Y.useEffect(()=>{const be=n.current;if(!be)return;const ke=be.container(),ze=Ye=>{Ye.cancelable&&Ye.preventDefault()};return ke.addEventListener("gesturestart",ze,{passive:!1}),ke.addEventListener("gesturechange",ze,{passive:!1}),ke.addEventListener("gestureend",ze,{passive:!1}),ke.addEventListener("touchmove",ze,{passive:!1}),()=>{ke.removeEventListener("gesturestart",ze),ke.removeEventListener("gesturechange",ze),ke.removeEventListener("gestureend",ze),ke.removeEventListener("touchmove",ze)}},[]);const W=window.innerWidth<768,X=W?1.5/a.scale:2/a.scale,re=parseFloat(getComputedStyle(document.documentElement).fontSize)*.85,Z=6,oe=10,fe=12,ge=re*1.12,ce=re*.92,J=ge*1.2,ie=(be,ke)=>{if(ke===0)return[{text:be,fontStyle:"bold",fontSize:ge}];const ze=be.match(/^(Owner:|Damage:)\s*(.*)$/);if(ze){const[,Ye,Mt]=ze;return[{text:`${Ye} `,fontStyle:"bold",fontSize:ce},{text:Mt,fontStyle:"normal",fontSize:ce}]}return[{text:be,fontStyle:/^(Control|State):/.test(be)?"bold":"normal",fontSize:ce}]},ue=Y.useMemo(()=>(g.text||"").split(` `).map(be=>be.trimEnd()),[g.text]),Se=Y.useMemo(()=>{const be=ue.length?ue:[""],ke=be.map((gt,xt)=>ie(gt,xt).reduce((zt,Ht)=>{const mt=new Pw.Text({text:Ht.text,fontFamily:"Roboto Mono, monospace",fontSize:Ht.fontSize,fontStyle:Ht.fontStyle}),Ot=mt.width();return mt.destroy(),zt+Ot},0)),Ye=(ke.length?Math.max(...ke):0)+Z*2,Mt=be.length*J+Z*2;return{lines:be,boxWidth:Ye,boxHeight:Mt}},[ue,re,J]);Y.useEffect(()=>{g.visible&&y(!1)},[g.visible,g.text]),Y.useEffect(()=>{T.current=g.visible,g.visible||(k.current=null)},[g.visible]);const Ce=Y.useMemo(()=>{var zt,Ht;const be=(zt=g.text)==null?void 0:zt.trim();if(!be)return{title:"",subtitle:"",details:[]};const ke=be.split(` -`).map(mt=>mt.trim()).filter(mt=>mt&&mt!=="[Tap to open]"),ze=ke[0]??"",Ye=(Ht=ke[1])!=null&&Ht.startsWith("(")?ke[1]:"",Mt=ke.slice(Ye?2:1),gt=[];let xt=!1;for(const mt of Mt){if(mt==="Control:"){xt=!0;continue}if(xt){if(!/^[A-Za-z ]+:\s/.test(mt))continue;xt=!1}gt.push(mt)}return{title:ze,subtitle:Ye,details:gt}},[g.text]),Me=Y.useMemo(()=>[...g.controlItems||[]].sort((be,ke)=>ke.control-be.control),[g.controlItems]),Le=P?Me:Me.slice(0,3),Re=Math.max(0,Me.length-3);return Ie.jsxs(Ie.Fragment,{children:[Ie.jsxs(zoe,{width:V.width,height:V.height,draggable:!R,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:b,onTouchStart:E,onTouchMove:A,onTouchEnd:F,children:[Ie.jsx($x,{cache:!0,children:ne&&H?Ie.jsx(joe,{image:H,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):Ie.jsx(WE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),Ie.jsx($x,{children:e.map((be,ke)=>{var xt;const ze=((xt=t[be.owner])==null?void 0:xt.prettyName)??be.owner;if(!(!p.length||p.includes(ze)))return null;const Mt=be.name.toLowerCase().includes(C),gt=h?Mt?1:.2:1;return Ie.jsx($oe,{zoomScaleFactor:l<1?l:1,system:be,factions:t,settings:r,showTooltip:m,hideTooltip:_,tooltipVisibleRef:T,touchedSystemNameRef:k,highlighted:h&&Mt,opacity:gt},be.name||ke)})}),Ie.jsx($x,{children:g.visible&&!W&&Ie.jsxs(HE,{x:g.x,y:g.y,opacity:.75,scaleX:X,scaleY:X,children:[Ie.jsx(Doe,{x:-Se.boxWidth/2,y:-(Se.boxHeight+oe),width:Se.boxWidth,height:Se.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),Ie.jsx(Foe,{points:[-fe/2,-oe,0,0,fe/2,-oe],fill:"white",closed:!0}),Se.lines.map((be,ke)=>(()=>{const ze=ie(be,ke);return Ie.jsx(HE,{x:-Se.boxWidth/2+Z,y:-(Se.boxHeight+oe-Z-ke*J),listening:!1,children:ze.map((Ye,Mt)=>{const gt=ze.slice(0,Mt).reduce((xt,zt)=>{const Ht=new Pw.Text({text:zt.text,fontFamily:"Roboto Mono, monospace",fontSize:zt.fontSize,fontStyle:zt.fontStyle}),mt=Ht.width();return Ht.destroy(),xt+mt},0);return Ie.jsx(WE,{x:gt,y:0,text:Ye.text,fontFamily:"Roboto Mono, monospace",fontSize:Ye.fontSize,fontStyle:Ye.fontStyle,fill:"black",listening:!1},`${Ye.text}-${Mt}`)})},`${be}-${ke}`)})())]})})]}),W&&g.visible&&Ie.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[Ie.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:Ce.title}),Ce.subtitle&&Ie.jsx("div",{style:{marginTop:"2px",opacity:.8},children:Ce.subtitle}),Ie.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:Ce.details.map((be,ke)=>Ie.jsx("div",{children:be},`${be}-${ke}`))}),Me.length>0&&Ie.jsxs("div",{style:{marginTop:"10px"},children:[Ie.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),Ie.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Le.map(be=>Ie.jsx("div",{children:`${be.name} ${be.control}% · P${be.players}`},`${be.name}-${be.control}-${be.players}`))}),Re>0&&Ie.jsx("button",{type:"button",onClick:()=>y(be=>!be),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),Ie.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[g.onTouch&&Ie.jsx("button",{type:"button",onClick:()=>{var be;return(be=g.onTouch)==null?void 0:be.call(g)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),Ie.jsx("button",{type:"button",onClick:_,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),Ie.jsx(Zse,{searchTerm:S,setSearchTerm:w,factions:Y.useMemo(()=>DJ(e,t),[e,t]),selectedFactions:p,setSelectedFactions:c})]})},w9=cue;function fue(e){return Jw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function pue(){return Ie.jsx(XW,{children:Ie.jsx(hue,{})})}function hue(){const e=XR();return Uv(e)?Ie.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",Ie.jsx(k1,{to:"/",children:Ie.jsxs("div",{className:"flex",children:[Ie.jsx(fue,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?Ie.jsxs("div",{id:"error-page",children:[Ie.jsx("h1",{children:"Oops! Unexpected Error"}),Ie.jsx("p",{children:"Something went wrong."}),Ie.jsx("p",{children:Ie.jsx("i",{children:e.message})})]}):Ie.jsx(Ie.Fragment,{children:"Unknown error"})}const gue="/",vue=CW(YS(Ie.jsxs(Ie.Fragment,{children:[Ie.jsx(qS,{path:"/",element:Ie.jsx(w9,{}),errorElement:Ie.jsx(pue,{})}),Ie.jsx(qS,{index:!0,element:Ie.jsx(w9,{})})]})),{basename:gue});function mue(){return Ie.jsx(AW,{router:vue})}AR(document.getElementById("react-root")).render(Ie.jsx(Y.StrictMode,{children:Ie.jsx(mue,{})})); +`).map(mt=>mt.trim()).filter(mt=>mt&&mt!=="[Tap to open]"),ze=ke[0]??"",Ye=(Ht=ke[1])!=null&&Ht.startsWith("(")?ke[1]:"",Mt=ke.slice(Ye?2:1),gt=[];let xt=!1;for(const mt of Mt){if(mt==="Control:"){xt=!0;continue}if(xt){if(!/^[A-Za-z ]+:\s/.test(mt))continue;xt=!1}gt.push(mt)}return{title:ze,subtitle:Ye,details:gt}},[g.text]),Me=Y.useMemo(()=>[...g.controlItems||[]].sort((be,ke)=>ke.control-be.control),[g.controlItems]),Le=P?Me:Me.slice(0,3),Re=Math.max(0,Me.length-3);return Ie.jsxs(Ie.Fragment,{children:[Ie.jsxs(Voe,{width:V.width,height:V.height,draggable:!R,scaleX:a.scale,scaleY:a.scale,x:a.position.x,y:a.position.y,ref:n,onWheel:v,onDragMove:b,onTouchStart:E,onTouchMove:A,onTouchEnd:F,children:[Ie.jsx($x,{cache:!0,children:ne&&H?Ie.jsx(zoe,{image:H,x:-4800,y:-2700,width:9600,height:5400,opacity:.2}):Ie.jsx(WE,{text:"Loading Background...",x:window.innerWidth/2,y:window.innerHeight/2,fontSize:24,fill:"white",align:"center"})}),Ie.jsx($x,{children:e.map((be,ke)=>{var xt;const ze=((xt=t[be.owner])==null?void 0:xt.prettyName)??be.owner;if(!(!p.length||p.includes(ze)))return null;const Mt=be.name.toLowerCase().includes(C),gt=h?Mt?1:.2:1;return Ie.jsx(Goe,{zoomScaleFactor:l<1?l:1,system:be,factions:t,settings:r,showTooltip:m,hideTooltip:_,tooltipVisibleRef:T,touchedSystemNameRef:k,highlighted:h&&Mt,opacity:gt},be.name||ke)})}),Ie.jsx($x,{children:g.visible&&!W&&Ie.jsxs(HE,{x:g.x,y:g.y,opacity:.75,scaleX:X,scaleY:X,children:[Ie.jsx(Foe,{x:-Se.boxWidth/2,y:-(Se.boxHeight+oe),width:Se.boxWidth,height:Se.boxHeight,fill:"white",cornerRadius:8,shadowColor:"gray",shadowBlur:10,shadowOffset:{x:10,y:10},shadowOpacity:.2}),Ie.jsx(joe,{points:[-fe/2,-oe,0,0,fe/2,-oe],fill:"white",closed:!0}),Se.lines.map((be,ke)=>(()=>{const ze=ie(be,ke);return Ie.jsx(HE,{x:-Se.boxWidth/2+Z,y:-(Se.boxHeight+oe-Z-ke*J),listening:!1,children:ze.map((Ye,Mt)=>{const gt=ze.slice(0,Mt).reduce((xt,zt)=>{const Ht=new Pw.Text({text:zt.text,fontFamily:"Roboto Mono, monospace",fontSize:zt.fontSize,fontStyle:zt.fontStyle}),mt=Ht.width();return Ht.destroy(),xt+mt},0);return Ie.jsx(WE,{x:gt,y:0,text:Ye.text,fontFamily:"Roboto Mono, monospace",fontSize:Ye.fontSize,fontStyle:Ye.fontStyle,fill:"black",listening:!1},`${Ye.text}-${Mt}`)})},`${be}-${ke}`)})())]})})]}),W&&g.visible&&Ie.jsxs("div",{style:{position:"fixed",left:"12px",right:"12px",bottom:"calc(84px + env(safe-area-inset-bottom))",maxHeight:"45vh",overflowY:"auto",background:"rgba(255, 255, 255, 0.94)",color:"#111",borderRadius:"14px",padding:"12px 14px",boxShadow:"0 10px 30px rgba(0, 0, 0, 0.28)",zIndex:30,fontFamily:"Roboto Mono, monospace"},children:[Ie.jsx("div",{style:{fontSize:"1.05rem",fontWeight:700},children:Ce.title}),Ce.subtitle&&Ie.jsx("div",{style:{marginTop:"2px",opacity:.8},children:Ce.subtitle}),Ie.jsx("div",{style:{marginTop:"8px",display:"grid",rowGap:"4px"},children:Ce.details.map((be,ke)=>Ie.jsx("div",{children:be},`${be}-${ke}`))}),Me.length>0&&Ie.jsxs("div",{style:{marginTop:"10px"},children:[Ie.jsx("div",{style:{fontWeight:700,marginBottom:"4px"},children:"Control"}),Ie.jsx("div",{style:{display:"grid",rowGap:"2px"},children:Le.map(be=>Ie.jsx("div",{children:`${be.name} ${be.control}% · P${be.players}`},`${be.name}-${be.control}-${be.players}`))}),Re>0&&Ie.jsx("button",{type:"button",onClick:()=>y(be=>!be),style:{border:"none",background:"transparent",color:"#1f2937",textDecoration:"underline",padding:0,marginTop:"4px"},children:P?"Show less":`Show all (${Re} more)`})]}),Ie.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"12px"},children:[g.onTouch&&Ie.jsx("button",{type:"button",onClick:()=>{var be;return(be=g.onTouch)==null?void 0:be.call(g)},style:{border:"none",borderRadius:"8px",padding:"8px 12px",background:"#111",color:"#fff"},children:"Open System"}),Ie.jsx("button",{type:"button",onClick:_,style:{border:"1px solid #999",borderRadius:"8px",padding:"8px 12px",background:"transparent",color:"#111"},children:"Close"})]})]}),Ie.jsx(Jse,{searchTerm:S,setSearchTerm:w,factions:Y.useMemo(()=>FJ(e,t),[e,t]),selectedFactions:p,setSelectedFactions:c})]})},_9=xue;function Cue(e){return Jw({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"},child:[]}]})(e)}function Pue(){return Ie.jsx(QW,{children:Ie.jsx(Tue,{})})}function Tue(){const e=QR();return Uv(e)?Ie.jsxs("div",{id:"error-page",children:["If you came to this page from a link, please contact Rogue War on the Discord Server",Ie.jsx(k1,{to:"/",children:Ie.jsxs("div",{className:"flex",children:[Ie.jsx(Cue,{className:"inline-block w-6 h-6 mr-2 -mt-2"}),"Click here to return Home"]})})]}):e instanceof Error?Ie.jsxs("div",{id:"error-page",children:[Ie.jsx("h1",{children:"Oops! Unexpected Error"}),Ie.jsx("p",{children:"Something went wrong."}),Ie.jsx("p",{children:Ie.jsx("i",{children:e.message})})]}):Ie.jsx(Ie.Fragment,{children:"Unknown error"})}const Oue="/",kue=PW(YS(Ie.jsxs(Ie.Fragment,{children:[Ie.jsx(qS,{path:"/",element:Ie.jsx(_9,{}),errorElement:Ie.jsx(Pue,{})}),Ie.jsx(qS,{index:!0,element:Ie.jsx(_9,{})})]})),{basename:Oue});function Eue(){return Ie.jsx(IW,{router:kue})}IR(document.getElementById("react-root")).render(Ie.jsx(Y.StrictMode,{children:Ie.jsx(Eue,{})})); diff --git a/map/index.html b/map/index.html index 80ad902..2e83c39 100644 --- a/map/index.html +++ b/map/index.html @@ -5,7 +5,7 @@ RogueTech - + diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index 3b6bffc..9c731de 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -93,9 +93,9 @@ const StarSystem: React.FC = ({ const shineOffset = radius * 0.35; const shineCenterColor = `rgba(255,255,255,${shineOpacity})`; const shineEdgeColor = 'rgba(255,255,255,0)'; - const insurrectGlowRadius = radius * 3.3; - const insurrectGlowOpacity = Math.min(0.22, circleOpacity * 0.26); - const insurrectPulseRadius = radius * 2.1; + const insurrectGlowRadius = radius * 4.125; + const insurrectGlowOpacity = Math.min(0.275, circleOpacity * 0.325); + const insurrectPulseRadius = radius * 2.625; const insurrectPulseRef = useRef(null); const systemCircleRef = useRef(null); From c2c3afb72ce807ce69699bb107e2633239cd24a6 Mon Sep 17 00:00:00 2001 From: GrolDBT Date: Thu, 26 Feb 2026 10:58:36 -0800 Subject: [PATCH 17/28] Increase purple halo pulse, remove system pulse --- .../{index-C_23djxc.js => index-D0wiYNS2.js} | 2 +- map/index.html | 2 +- src/components/hooks/types/StarSystemState.ts | 4 +- src/components/ui/StarSystem.tsx | 83 ++++++++----------- 4 files changed, 39 insertions(+), 52 deletions(-) rename map/assets/{index-C_23djxc.js => index-D0wiYNS2.js} (99%) diff --git a/map/assets/index-C_23djxc.js b/map/assets/index-D0wiYNS2.js similarity index 99% rename from map/assets/index-C_23djxc.js rename to map/assets/index-D0wiYNS2.js index d15a363..e09973b 100644 --- a/map/assets/index-C_23djxc.js +++ b/map/assets/index-D0wiYNS2.js @@ -141,7 +141,7 @@ For more info see: https://github.com/konvajs/react-konva/issues/256 `,Bne=`ReactKonva: You are using "zIndex" attribute for a Konva node. react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. For more info see: https://github.com/konvajs/react-konva/issues/194 -`,Une={};function k5(e,t,r=Une){if(!LE&&"zIndex"in t&&(console.warn(Bne),LE=!0),!DE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(Vne),DE=!0)}for(var i in r)if(!IE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,b={},S=!1;const w={};for(var i in t)if(!IE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(w[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,b[i]=t[i])}S&&(e.setAttrs(b),Xu(e));for(var s in w)e.on(s+KT,w[s])}function Xu(e){if(!Tt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Iz={},Hne={};Nv.Node.prototype._applyProps=k5;function Wne(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function $ne(e,t,r){let n=Nv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Nv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return k5(s,i),s}function Gne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Kne(e,t,r){return!1}function qne(e){return e}function Yne(){return null}function Xne(){return null}function Qne(e,t,r,n){return Hne}function Zne(){}function Jne(e){}function eoe(e,t){return!1}function toe(){return Iz}function roe(){return Iz}const noe=setTimeout,ooe=clearTimeout,ioe=-1;function aoe(e,t){return!1}const loe=!1,soe=!0,uoe=!0;function coe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function doe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Lz(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function foe(e,t,r){Lz(e,t,r)}function poe(e,t){t.destroy(),t.off(KT),Xu(e)}function hoe(e,t){t.destroy(),t.off(KT),Xu(e)}function goe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function voe(e,t,r){}function moe(e,t,r,n,o){k5(e,o,n)}function yoe(e){e.hide(),Xu(e)}function boe(e){}function woe(e,t){(t.visible==null||t.visible)&&e.show()}function _oe(e,t){}function xoe(e){}function Soe(){}const Coe=()=>Az.DefaultEventPriority,Poe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:coe,appendChildToContainer:doe,appendInitialChild:Wne,cancelTimeout:ooe,clearContainer:xoe,commitMount:voe,commitTextUpdate:goe,commitUpdate:moe,createInstance:$ne,createTextInstance:Gne,detachDeletedInstance:Soe,finalizeInitialChildren:Kne,getChildHostContext:roe,getCurrentEventPriority:Coe,getPublicInstance:qne,getRootHostContext:toe,hideInstance:yoe,hideTextInstance:boe,idlePriority:pp.unstable_IdlePriority,insertBefore:Lz,insertInContainerBefore:foe,isPrimaryRenderer:loe,noTimeout:ioe,now:pp.unstable_now,prepareForCommit:Yne,preparePortalMount:Xne,prepareUpdate:Qne,removeChild:poe,removeChildFromContainer:hoe,resetAfterCommit:Zne,resetTextContent:Jne,run:pp.unstable_runWithPriority,scheduleTimeout:noe,shouldDeprioritizeSubtree:eoe,shouldSetTextContent:aoe,supportsMutation:uoe,unhideInstance:woe,unhideTextInstance:_oe,warnsIfNotActing:soe},Symbol.toStringTag,{value:"Module"}));var Toe=Object.defineProperty,Ooe=Object.defineProperties,koe=Object.getOwnPropertyDescriptors,FE=Object.getOwnPropertySymbols,Eoe=Object.prototype.hasOwnProperty,Moe=Object.prototype.propertyIsEnumerable,jE=(e,t,r)=>t in e?Toe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))Eoe.call(t,r)&&jE(e,r,t[r]);if(FE)for(var r of FE(t))Moe.call(t,r)&&jE(e,r,t[r]);return e},Roe=(e,t)=>Ooe(e,koe(t)),VE,BE;typeof window<"u"&&((VE=window.document)!=null&&VE.createElement||((BE=window.navigator)==null?void 0:BE.product)==="ReactNative")?Y.useLayoutEffect:Y.useEffect;function Dz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Dz(n,t,r);if(o)return o;n=n.sibling}}function Fz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const UE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=UE;return}return UE.apply(this,arguments)};const qT=Fz(Y.createContext(null));class jz extends Y.Component{render(){return Y.createElement(qT.Provider,{value:this._reactInternals},this.props.children)}}function Noe(){const e=Y.useContext(qT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=Y.useId();return Y.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Dz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Aoe(){const e=Noe(),[t]=Y.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==qT&&!t.has(o)&&t.set(o,Y.useContext(Fz(o)))}r=r.return}return t}function Ioe(){const e=Aoe();return Y.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>Y.createElement(t,null,Y.createElement(r.Provider,Roe(zE({},n),{value:e.get(r)}))),t=>Y.createElement(jz,zE({},t))),[e])}function Loe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Doe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Loe(e),i=Ioe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Nv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=pg.createContainer(r.current,Az.LegacyRoot,!1,null),pg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Nv.isBrowser&&(a(null),pg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),k5(r.current,e,o),pg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},$x="Layer",HE="Group",Foe="Rect",Ff="Circle",joe="Line",zoe="Image",WE="Text",pg=zne(Poe);pg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const Voe=Or.forwardRef((e,t)=>Or.createElement(jz,{},Or.createElement(Doe,{...e,forwardedRef:t})));function Boe(e){window.open(e,"_blank","noreferrer")}function _4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Uoe(e,t){return t.includes(e)}const jg="https://roguewar.org",Hoe=2.5,Woe=1,$oe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{var re;const v=e.isCapital?Hoe:Woe,b=(Z,oe)=>[...Z].sort((fe,ge)=>ge.control-fe.control).map(fe=>{const ge=_4(fe.Name,oe);return{name:(ge==null?void 0:ge.prettyName)||fe.Name,control:fe.control,players:fe.ActivePlayers}}),S=Z=>`${Z.name} ${Z.control}% · P${Z.players}`,w=e.factions.some(Z=>Z.ActivePlayers>0),P=!!((re=e.state)!=null&&re.isInsurrect),y=n.flashActivePlayes&&w,C=y?1.25:1,h=(s?v*3:v)*C/t,p=Number(e.posX),c=-Number(e.posY),g=y?Math.min(1,d+.25):d,m=h*2.5,_=Math.min(.34,g*.4),T=Math.min(.4,g*.4),k=h*.45,R=Math.min(.42,g*.45),E=h*.35,A=`rgba(255,255,255,${R})`,F="rgba(255,255,255,0)",V=h*3.3,B=Math.min(.22,g*.26),H=h*2.1,q=Y.useRef(null),ne=Y.useRef(null);Y.useEffect(()=>{if(!P||!q.current)return;const Z=q.current,oe=Math.min(.22,g*.25),fe=new Pw.Animation(ge=>{if(!ge)return;const ce=(Math.sin(ge.time*.004)+1)/2,J=.86+ce*.72,ie=Math.min(.5,oe+ce*.24);Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]),Y.useEffect(()=>{if(!P||!ne.current)return;const Z=ne.current,oe=g,fe=new Pw.Animation(ge=>{if(!ge)return;const ce=Math.sin(ge.time*.0045),J=1+ce*.2,ie=Math.max(.3,Math.min(1,oe+ce*.24));Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]);const Q=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",W=Z=>{if(!Z)return"None";const fe=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([ge])=>Z[ge]).map(([,ge])=>ge);return fe.length?fe.join(", "):"None"},X=(Z=!1)=>{var ue;const oe=((ue=_4(e.owner,r))==null?void 0:ue.prettyName)||"Unknown",fe=b(e.factions,r),ge=fe.slice(0,3),ce=Math.max(0,fe.length-ge.length),J=W(e.state),ie=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${oe}`,"Control:",...ge.map(S),...ce>0?[`+${ce} more`]:[],`Damage: ${Q}`];return J!=="None"&&ie.push(`State: ${J}`),Z&&ie.push("[Tap to open]"),{text:ie.join(` +`,Une={};function k5(e,t,r=Une){if(!LE&&"zIndex"in t&&(console.warn(Bne),LE=!0),!DE&&t.draggable){var n=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;n&&!o&&(console.warn(Vne),DE=!0)}for(var i in r)if(!IE[i]){var a=i.slice(0,2)==="on",l=r[i]!==t[i];if(a&&l){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),e.off(s,r[i])}var d=!t.hasOwnProperty(i);d&&e.setAttr(i,void 0)}var v=t._useStrictMode,b={},S=!1;const w={};for(var i in t)if(!IE[i]){var a=i.slice(0,2)==="on",P=r[i]!==t[i];if(a&&P){var s=i.substr(2).toLowerCase();s.substr(0,7)==="content"&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),t[i]&&(w[s]=t[i])}!a&&(t[i]!==r[i]||v&&t[i]!==e.getAttr(i))&&(S=!0,b[i]=t[i])}S&&(e.setAttrs(b),Xu(e));for(var s in w)e.on(s+KT,w[s])}function Xu(e){if(!Tt.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const Iz={},Hne={};Nv.Node.prototype._applyProps=k5;function Wne(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Xu(e)}function $ne(e,t,r){let n=Nv[e];n||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=Nv.Group);const o={},i={};for(var a in t){var l=a.slice(0,2)==="on";l?i[a]=t[a]:o[a]=t[a]}const s=new n(o);return k5(s,i),s}function Gne(e,t,r){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function Kne(e,t,r){return!1}function qne(e){return e}function Yne(){return null}function Xne(){return null}function Qne(e,t,r,n){return Hne}function Zne(){}function Jne(e){}function eoe(e,t){return!1}function toe(){return Iz}function roe(){return Iz}const noe=setTimeout,ooe=clearTimeout,ioe=-1;function aoe(e,t){return!1}const loe=!1,soe=!0,uoe=!0;function coe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function doe(e,t){t.parent===e?t.moveToTop():e.add(t),Xu(e)}function Lz(e,t,r){t._remove(),e.add(t),t.setZIndex(r.getZIndex()),Xu(e)}function foe(e,t,r){Lz(e,t,r)}function poe(e,t){t.destroy(),t.off(KT),Xu(e)}function hoe(e,t){t.destroy(),t.off(KT),Xu(e)}function goe(e,t,r){console.error(`Text components are not yet supported in ReactKonva. You text is: "${r}"`)}function voe(e,t,r){}function moe(e,t,r,n,o){k5(e,o,n)}function yoe(e){e.hide(),Xu(e)}function boe(e){}function woe(e,t){(t.visible==null||t.visible)&&e.show()}function _oe(e,t){}function xoe(e){}function Soe(){}const Coe=()=>Az.DefaultEventPriority,Poe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:coe,appendChildToContainer:doe,appendInitialChild:Wne,cancelTimeout:ooe,clearContainer:xoe,commitMount:voe,commitTextUpdate:goe,commitUpdate:moe,createInstance:$ne,createTextInstance:Gne,detachDeletedInstance:Soe,finalizeInitialChildren:Kne,getChildHostContext:roe,getCurrentEventPriority:Coe,getPublicInstance:qne,getRootHostContext:toe,hideInstance:yoe,hideTextInstance:boe,idlePriority:pp.unstable_IdlePriority,insertBefore:Lz,insertInContainerBefore:foe,isPrimaryRenderer:loe,noTimeout:ioe,now:pp.unstable_now,prepareForCommit:Yne,preparePortalMount:Xne,prepareUpdate:Qne,removeChild:poe,removeChildFromContainer:hoe,resetAfterCommit:Zne,resetTextContent:Jne,run:pp.unstable_runWithPriority,scheduleTimeout:noe,shouldDeprioritizeSubtree:eoe,shouldSetTextContent:aoe,supportsMutation:uoe,unhideInstance:woe,unhideTextInstance:_oe,warnsIfNotActing:soe},Symbol.toStringTag,{value:"Module"}));var Toe=Object.defineProperty,Ooe=Object.defineProperties,koe=Object.getOwnPropertyDescriptors,FE=Object.getOwnPropertySymbols,Eoe=Object.prototype.hasOwnProperty,Moe=Object.prototype.propertyIsEnumerable,jE=(e,t,r)=>t in e?Toe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zE=(e,t)=>{for(var r in t||(t={}))Eoe.call(t,r)&&jE(e,r,t[r]);if(FE)for(var r of FE(t))Moe.call(t,r)&&jE(e,r,t[r]);return e},Roe=(e,t)=>Ooe(e,koe(t)),VE,BE;typeof window<"u"&&((VE=window.document)!=null&&VE.createElement||((BE=window.navigator)==null?void 0:BE.product)==="ReactNative")?Y.useLayoutEffect:Y.useEffect;function Dz(e,t,r){if(!e)return;if(r(e)===!0)return e;let n=e.child;for(;n;){const o=Dz(n,t,r);if(o)return o;n=n.sibling}}function Fz(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const UE=console.error;console.error=function(){const e=[...arguments].join("");if(e!=null&&e.startsWith("Warning:")&&e.includes("useContext")){console.error=UE;return}return UE.apply(this,arguments)};const qT=Fz(Y.createContext(null));class jz extends Y.Component{render(){return Y.createElement(qT.Provider,{value:this._reactInternals},this.props.children)}}function Noe(){const e=Y.useContext(qT);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=Y.useId();return Y.useMemo(()=>{for(const n of[e,e==null?void 0:e.alternate]){if(!n)continue;const o=Dz(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(o)return o}},[e,t])}function Aoe(){const e=Noe(),[t]=Y.useState(()=>new Map);t.clear();let r=e;for(;r;){if(r.type&&typeof r.type=="object"){const o=r.type._context===void 0&&r.type.Provider===r.type?r.type:r.type._context;o&&o!==qT&&!t.has(o)&&t.set(o,Y.useContext(Fz(o)))}r=r.return}return t}function Ioe(){const e=Aoe();return Y.useMemo(()=>Array.from(e.keys()).reduce((t,r)=>n=>Y.createElement(t,null,Y.createElement(r.Provider,Roe(zE({},n),{value:e.get(r)}))),t=>Y.createElement(jz,zE({},t))),[e])}function Loe(e){const t=Or.useRef({});return Or.useLayoutEffect(()=>{t.current=e}),Or.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Doe=e=>{const t=Or.useRef(),r=Or.useRef(),n=Or.useRef(),o=Loe(e),i=Ioe(),a=l=>{const{forwardedRef:s}=e;s&&(typeof s=="function"?s(l):s.current=l)};return Or.useLayoutEffect(()=>(r.current=new Nv.Stage({width:e.width,height:e.height,container:t.current}),a(r.current),n.current=pg.createContainer(r.current,Az.LegacyRoot,!1,null),pg.updateContainer(Or.createElement(i,{},e.children),n.current),()=>{Nv.isBrowser&&(a(null),pg.updateContainer(null,n.current,null),r.current.destroy())}),[]),Or.useLayoutEffect(()=>{a(r.current),k5(r.current,e,o),pg.updateContainer(Or.createElement(i,{},e.children),n.current,null)}),Or.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},$x="Layer",HE="Group",Foe="Rect",Ff="Circle",joe="Line",zoe="Image",WE="Text",pg=zne(Poe);pg.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:Or.version,rendererPackageName:"react-konva"});const Voe=Or.forwardRef((e,t)=>Or.createElement(jz,{},Or.createElement(Doe,{...e,forwardedRef:t})));function Boe(e){window.open(e,"_blank","noreferrer")}function _4(e,t){const r=Object.entries(t).find(([o])=>o===e);return r==null?void 0:r[1]}function Uoe(e,t){return t.includes(e)}const jg="https://roguewar.org",Hoe=2.5,Woe=1,$oe=({system:e,zoomScaleFactor:t,factions:r,settings:n,showTooltip:o,hideTooltip:i,tooltipVisibleRef:a,touchedSystemNameRef:l,highlighted:s=!1,opacity:d=1})=>{var re;const v=e.isCapital?Hoe:Woe,b=(Z,oe)=>[...Z].sort((fe,ge)=>ge.control-fe.control).map(fe=>{const ge=_4(fe.Name,oe);return{name:(ge==null?void 0:ge.prettyName)||fe.Name,control:fe.control,players:fe.ActivePlayers}}),S=Z=>`${Z.name} ${Z.control}% · P${Z.players}`,w=e.factions.some(Z=>Z.ActivePlayers>0),P=!!((re=e.state)!=null&&re.isInsurrect),y=n.flashActivePlayes&&w,C=y?1.25:1,h=(s?v*3:v)*C/t,p=Number(e.posX),c=-Number(e.posY),g=y?Math.min(1,d+.25):d,m=h*2.5,_=Math.min(.34,g*.4),T=Math.min(.4,g*.4),k=h*.45,R=Math.min(.42,g*.45),E=h*.35,A=`rgba(255,255,255,${R})`,F="rgba(255,255,255,0)",V=h*4.125,B=Math.min(.275,g*.325),H=h*2.625,q=Y.useRef(null),ne=Y.useRef(null);Y.useEffect(()=>{if(!P||!q.current)return;const Z=q.current,oe=Math.min(.22,g*.25),fe=new Pw.Animation(ge=>{if(!ge)return;const ce=(Math.sin(ge.time*.004)+1)/2,J=.86+ce*.72,ie=Math.min(.5,oe+ce*.24);Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]),Y.useEffect(()=>{if(!P||!ne.current)return;const Z=ne.current,oe=g,fe=new Pw.Animation(ge=>{if(!ge)return;const ce=Math.sin(ge.time*.0045),J=1+ce*.2,ie=Math.max(.3,Math.min(1,oe+ce*.24));Z.scale({x:J,y:J}),Z.opacity(ie)},Z.getLayer());return fe.start(),()=>{fe.stop(),Z.scale({x:1,y:1}),Z.opacity(oe)}},[P,g]);const Q=e.damageLevel!==void 0&&e.damageLevel!==null&&`${e.damageLevel}`.trim()!==""?`${e.damageLevel}`:"Unknown",W=Z=>{if(!Z)return"None";const fe=[["isInsurrect","Insurrection"],["hasPirateRaid","Pirate Raid"],["hasCaptureEvent","Capture Event"],["hasHoldTheLineEvent","Hold The Line Event"]].filter(([ge])=>Z[ge]).map(([,ge])=>ge);return fe.length?fe.join(", "):"None"},X=(Z=!1)=>{var ue;const oe=((ue=_4(e.owner,r))==null?void 0:ue.prettyName)||"Unknown",fe=b(e.factions,r),ge=fe.slice(0,3),ce=Math.max(0,fe.length-ge.length),J=W(e.state),ie=[e.name,`(${e.posX}, ${e.posY})`,`Owner: ${oe}`,"Control:",...ge.map(S),...ce>0?[`+${ce} more`]:[],`Damage: ${Q}`];return J!=="None"&&ie.push(`State: ${J}`),Z&&ie.push("[Tap to open]"),{text:ie.join(` `),controlItems:fe}};return Ie.jsxs(Ie.Fragment,{children:[P&&Ie.jsx(Ff,{x:p,y:c,radius:V,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:V,fillRadialGradientColorStops:[0,`rgba(168,85,247,${Math.min(.32,B+.06)})`,.6,`rgba(168,85,247,${B})`,1,"rgba(168,85,247,0)"],listening:!1}),P&&Ie.jsx(Ff,{ref:q,x:p,y:c,radius:H,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:H,fillRadialGradientColorStops:[0,"rgba(192,132,252,0.34)",1,"rgba(192,132,252,0)"],listening:!1}),y&&Ie.jsx(Ff,{x:p,y:c,fill:e.factionColour,radius:m,opacity:_,listening:!1}),y&&Ie.jsx(Ff,{x:p,y:c,radius:h,stroke:"#ffffff",strokeWidth:Math.max(.2,h*.14),opacity:T,listening:!1}),Ie.jsx(Ff,{ref:ne,x:p,y:c,fill:e.factionColour,radius:h,hitStrokeWidth:3,opacity:g,onClick:Z=>{Z.cancelBubble=!0,e.sysUrl&&Boe(`${jg}${e.sysUrl}`)},onMouseEnter:Z=>{const oe=Z.target.getStage();if(!oe)return;const fe=oe.getPointerPosition();if(!fe)return;const ge=X();o(ge.text,fe.x,fe.y,oe.x(),oe.y(),void 0,ge.controlItems)},onMouseLeave:i,onTouchStart:Z=>{if(Z.evt.touches.length===1){Z.evt.preventDefault();const oe=Z.target.getStage();if(!oe)return;const fe=oe.getRelativePointerPosition();if(!fe)return;if(a.current&&l.current===e.name){window.location.href=`${jg}${e.sysUrl}`;return}const ge=X(!0);o(ge.text,fe.x,fe.y,void 0,void 0,()=>{window.location.href=`${jg}${e.sysUrl}`},ge.controlItems),l.current=e.name}}}),y&&Ie.jsx(Ff,{x:p-E,y:c-E,radius:k,fillRadialGradientStartPoint:{x:0,y:0},fillRadialGradientStartRadius:0,fillRadialGradientEndPoint:{x:0,y:0},fillRadialGradientEndRadius:k,fillRadialGradientColorStops:[0,A,1,F],listening:!1})]})},Goe=Y.memo($oe);function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function Koe(e,t){if(vd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zz(e){var t=Koe(e,"string");return vd(t)=="symbol"?t:t+""}function hg(e,t,r){return(t=zz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function st(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?$n(Eh,--ri):0,nh--,nn===10&&(nh=1,M5--),nn}function Ti(){return nn=ri<$z?$n(Eh,ri++):0,nh++,nn===10&&(nh=1,M5++),nn}function bl(){return $n(Eh,ri)}function Zb(){return ri}function gm(e,t){return Av(Eh,e,t)}function Iv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gz(e){return M5=nh=1,$z=cl(Eh=e),ri=0,[]}function Kz(e){return Eh="",e}function Jb(e){return Wz(gm(ri-1,P4(e===91?e+2:e===40?e+1:e)))}function _ie(e){for(;(nn=bl())&&nn<33;)Ti();return Iv(e)>2||Iv(nn)>3?"":" "}function xie(e,t){for(;--t&&Ti()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return gm(e,Zb()+(t<6&&bl()==32&&Ti()==32))}function P4(e){for(;Ti();)switch(nn){case e:return ri;case 34:case 39:e!==34&&e!==39&&P4(nn);break;case 40:e===41&&P4(e);break;case 92:Ti();break}return ri}function Sie(e,t){for(;Ti()&&e+nn!==57;)if(e+nn===84&&bl()===47)break;return"/*"+gm(t,ri-1)+"*"+E5(e===47?e:Ti())}function Cie(e){for(;!Iv(bl());)Ti();return gm(e,ri)}function Pie(e){return Kz(e1("",null,null,null,[""],e=Gz(e),0,[0],e))}function e1(e,t,r,n,o,i,a,l,s){for(var d=0,v=0,b=a,S=0,w=0,P=0,y=1,C=1,h=1,p=0,c="",g=o,m=i,_=n,T=c;C;)switch(P=p,p=Ti()){case 40:if(P!=108&&$n(T,b-1)==58){C4(T+=Kt(Jb(p),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:T+=Jb(p);break;case 9:case 10:case 13:case 32:T+=_ie(P);break;case 92:T+=xie(Zb()-1,7);continue;case 47:switch(bl()){case 42:case 47:lb(Tie(Sie(Ti(),Zb()),t,r),s);break;default:T+="/"}break;case 123*y:l[d++]=cl(T)*h;case 125*y:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+v:h==-1&&(T=Kt(T,/\f/g,"")),w>0&&cl(T)-b&&lb(w>32?qE(T+";",n,r,b-1):qE(Kt(T," ","")+";",n,r,b-2),s);break;case 59:T+=";";default:if(lb(_=KE(T,t,r,d,v,o,l,c,g=[],m=[],b),i),p===123)if(v===0)e1(T,t,_,_,g,i,b,l,m);else switch(S===99&&$n(T,3)===110?100:S){case 100:case 108:case 109:case 115:e1(e,_,_,n&&lb(KE(e,_,_,0,0,o,l,c,o,g=[],b),m),o,m,b,l,n?g:m);break;default:e1(T,_,_,_,[""],m,0,l,m)}}d=v=w=0,y=h=1,c=T="",b=a;break;case 58:b=1+cl(T),w=P;default:if(y<1){if(p==123)--y;else if(p==125&&y++==0&&wie()==125)continue}switch(T+=E5(p),p*y){case 38:h=v>0?1:(T+="\f",-1);break;case 44:l[d++]=(cl(T)-1)*h,h=1;break;case 64:bl()===45&&(T+=Jb(Ti())),S=bl(),v=b=cl(c=T+=Cie(Zb())),p++;break;case 45:P===45&&cl(T)==2&&(y=0)}}return i}function KE(e,t,r,n,o,i,a,l,s,d,v){for(var b=o-1,S=o===0?i:[""],w=ZT(S),P=0,y=0,C=0;P0?S[h]+" "+p:Kt(p,/&\f/g,S[h])))&&(s[C++]=c);return R5(e,t,r,o===0?XT:l,s,d,v)}function Tie(e,t,r){return R5(e,t,r,Uz,E5(bie()),Av(e,2,-2),0)}function qE(e,t,r,n){return R5(e,t,r,QT,Av(e,0,n),Av(e,n+1,-1),n)}function Mp(e,t){for(var r="",n=ZT(e),o=0;o6)switch($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Kt(e,/(.+:)(.+)-([^]+)/,"$1"+Gt+"$2-$3$1"+Ow+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~C4(e,"stretch")?qz(Kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,cl(e)-3-(~C4(e,"!important")&&10))){case 107:return Kt(e,":",":"+Gt)+e;case 101:return Kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gt+($n(e,14)===45?"inline-":"")+"box$3$1"+Gt+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gt+e+so+Kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gt+e+so+e+e}return e}var Die=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case QT:t.return=qz(t.value,t.length);break;case Hz:return Mp([eg(t,{value:Kt(t.value,"@","@"+Gt)})],o);case XT:if(t.length)return yie(t.props,function(i){switch(mie(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mp([eg(t,{props:[Kt(i,/:(read-\w+)/,":"+Ow+"$1")]})],o);case"::placeholder":return Mp([eg(t,{props:[Kt(i,/:(plac\w+)/,":"+Gt+"input-$1")]}),eg(t,{props:[Kt(i,/:(plac\w+)/,":"+Ow+"$1")]}),eg(t,{props:[Kt(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Fie=[Die],jie=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Fie,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),h=1;hnLdHOt{*M2I$*eNi`| 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 M=o-OlwC_Ltf4(BXB>(^b diff --git a/map/rticon.ico b/map/rticon.ico deleted file mode 100644 index 7b838a01d3d1d5f464f081cf65886f3b74d53663..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4430 zcmb`K2~bpZ9LFChY8ohFfXZQ(im4;VE<&gf;4LJWrjco53S*;bnKhL{qk|1-T3X3u zBcSDo2Rf+3v2XWr263$1=W^fYqNbq0_WeC~oyWGDl>M2{{{Gkd|GxbG?|(doF~FbQ zGzPyj7#CB9F=rUYPK^kb>h&d+O2us6p2iqEN&X9q@SFu$2G)bqzzs|WV}OC7slPtg zOmlNHL;jxyuTLc9^^KbH?lX11Xn&LX7y(l-3fKZia1uBGs&_CEam@dw&q-p5F%7^v z;0`1p5yXM3AOHxpo1tt7$Q}WE!S`SbZ~>=)Cm5p%AmTI*oCI+?a6+BVSgPlj;z9o2 z0l{Dps04%~FVttJF0X}60@0u!Tm#L3VtE)$7U&xb4cS0fT8TF9 z$@?E=wNG_r`FC*PGFf}Pq^<$&#o#gs*tI|NXK3N|n}{Se$kX~=10vA>{*BwU^_e+s z?U<7}0)3P5tiGgA-*h}+1&)CDtlah*Nm`r2#V@r1eup#~V&fFQqdgzw);HdZMr>&< z@cQO?a|Os(g3X{41e8}P9kS$|a=g>CpHts7_?!zOKx!h_R4GYmkp~^f>4Kl9`Yv25 z{|)VD`}zh7j(&TG+IVf#T-b^Q%eYee6&$VAU%)rUj)}Am4LZB~+$5>3W1mx>CVs9M zbHlG!s-tfu)<-SzJtF1 zX~x(wo(TxdaNf8hL%6^Em-(f+wFIQo?_z9C;+LWFbd3gq{Ra6qL0L7=OV+s5KUEfX zx_F13hx9G9nZ#VHd=cYJ0An|7Pq&}r#o@$#l2B(1{_Xxk^E(w-4-5{y9QbJtw{w3s z?YI2=X{>maEK-x#w$7_$)uNTMP}Eys9Qr@KfPVtlyfrne?IkUJMQGEN^sNulX9KLe zyC2#v@<|T%*_xr$*04V~FH5^lN4dk!oh3hFusl7xecPq$)n)>Hv_F@EKA@fS=_75V z(X6k3z{>6oX{rvtD$n)F=XBNUsOt+mAzzL0mgE(5`40`L#tZaKM7;v!fI%Qk`t;G< zniJXb_E}c1v$Ym3!_PL-u<3*JcjJ@l&aqrW)}^bJH7hoz(Ep)*Mn6Pd|3oJVhw&D~ z+^F?~73!n)Q3dLN5(tw%ePi>BI%g(vO|z7D`zwRlmkm_+qfv0PTZsgC!wH z^XSeXd{0|ZegrxqFO=H;_)Dob&Y}r|_>sOI&<#3(FzM50n84OsM?{so9zR`ZKS{)& zr$V26p5^KTFqj!w40eP0h$r2jgne63Zl1H0WrOzp?oeFT9oX1(Z$0{YfH%MjFa+qV zysOT`@aZ%BdTQZ@vT@+P%&A`-&hz;$qS#})D_g4eIc)AikICtNM(dOI@^wITBusul zppWLZ31oZub9uMot3C1Vg@Io5rF0L_`FJ1H1BxSQ{ioD|Myr(c#_{1l6q|>hC|skS zUtvr%`8{6#$&nuGxS#eM$c)+&l+K!o`MK1z7eO2Cn|b!$(vtjwwpTDV#riQI9dv%D zgGSH~Myik2F5MA~A|lI{S}m5=;(o`$kH#-=omX=gwCl9Wbccxoe@w<55aW#lF8~&h zKB54W09v~PU?lM)Z8jBEJ*J0_$}OGOCf{~gAtOJ-^x+J8lvi z0E`ElfF{w|(F%0!f0{l*OY=J;QCcq!+@HO@TiI{5*q6IBNh}$5H-*okSKXy_e;=k< zt4!~nFPMWd4b|}X1mqKdCehr|oR1`tzL`1lc5(Qr!i|L`UG5IcWnbgm?;+o~pXZw| zVyoWVl6vN|kep+iccfo&^W~y&|3AObTl%w!lO*!JT^WhE&mTwsmB0vSG*SHc?>AW5 zW0wi=7UYHX+Ie^MTYEOTY<1YFBL6#uov#;`bXq&EpF2I>AV zACMpNYXnBC^M?3V5q>uf%l{AGm*SH09&g0X7XD0I+8)?&X-%|`8kbcnCso(>zJ|NK z6}16+-$@@I8`xo5D0bRBx4t1v2R3-s09?XyR?IeAver*5vV8g3cC@+qiHs Wl4PLn^g_s!OfavT8AZ`zn7;s-HZJY} diff --git a/map/rticon.png b/map/rticon.png deleted file mode 100644 index cdc0331feafa75981005b50909dbaf6cfbacc5de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 58676 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 pI-=0CMYk(PjN@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/shield.svg b/src/assets/shield.svg new file mode 100644 index 0000000..a618d7f --- /dev/null +++ b/src/assets/shield.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/helpers/devStateInjector.ts b/src/components/helpers/devStateInjector.ts index 3031489..ee36138 100644 --- a/src/components/helpers/devStateInjector.ts +++ b/src/components/helpers/devStateInjector.ts @@ -41,6 +41,7 @@ const DEV_PIRATE_RAID_SYSTEMS = [ 'Tianamon', 'Yangtze', ]; +const DEV_HOLD_THE_LINE_SYSTEMS = ['Alnadal']; type StateOverrideMap = Record; @@ -156,6 +157,23 @@ const buildNamedPirateRaidOverrides = ( return overrides; }; +const buildNamedHoldTheLineOverrides = ( + systems: StarSystemType[] +): StateOverrideMap => { + const systemNameLookup = new Map( + systems.map((system) => [system.name.toLowerCase(), system.name]) + ); + const overrides: StateOverrideMap = {}; + + DEV_HOLD_THE_LINE_SYSTEMS.forEach((targetName) => { + const canonicalName = systemNameLookup.get(targetName.toLowerCase()); + if (!canonicalName) return; + overrides[canonicalName] = { hasHoldTheLineEvent: true }; + }); + + return overrides; +}; + export const applyDevStateInjection = ( systems: StarSystemType[] ): StarSystemType[] => { @@ -177,6 +195,7 @@ export const applyDevStateInjection = ( const customOverrides = readOverridesFromStorage(); const namedInsurrectionOverrides = buildNamedInsurrectionOverrides(systems); const namedPirateRaidOverrides = buildNamedPirateRaidOverrides(systems); + const namedHoldTheLineOverrides = buildNamedHoldTheLineOverrides(systems); const presetOverrides = preset === 'dense' @@ -186,6 +205,7 @@ export const applyDevStateInjection = ( ...presetOverrides, ...namedInsurrectionOverrides, ...namedPirateRaidOverrides, + ...namedHoldTheLineOverrides, ...customOverrides, }; diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index 22394ef..23e9098 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -186,7 +186,6 @@ const GalaxyMapRender = ({ const isFirefox = typeof navigator !== 'undefined' && /firefox/i.test(navigator.userAgent); - const imagePath = isFirefox ? 'galaxyBackground2.webp' : 'galaxyBackground2.svg'; @@ -252,15 +251,25 @@ const GalaxyMapRender = ({ if (match) { const [, label, value] = match; return [ - { text: `${label} `, fontStyle: 'bold' as const, fontSize: desktopBodyFontSize }, - { text: value, fontStyle: 'normal' as const, fontSize: desktopBodyFontSize }, + { + text: `${label} `, + fontStyle: 'bold' as const, + fontSize: desktopBodyFontSize, + }, + { + text: value, + fontStyle: 'normal' as const, + fontSize: desktopBodyFontSize, + }, ]; } return [ { text: line, - fontStyle: /^(Control|State):/.test(line) ? ('bold' as const) : ('normal' as const), + fontStyle: /^(Control|State):/.test(line) + ? ('bold' as const) + : ('normal' as const), fontSize: desktopBodyFontSize, }, ]; @@ -289,7 +298,8 @@ const GalaxyMapRender = ({ const contentWidth = widths.length ? Math.max(...widths) : 0; const boxWidth = contentWidth + desktopTooltipPadding * 2; - const boxHeight = lines.length * desktopLineHeight + desktopTooltipPadding * 2; + const boxHeight = + lines.length * desktopLineHeight + desktopTooltipPadding * 2; return { lines, boxWidth, boxHeight }; }, [desktopTooltipLines, tooltipFontSize, desktopLineHeight]); @@ -426,88 +436,91 @@ const GalaxyMapRender = ({ {tooltip.visible && !isMobile && ( - - - - {desktopTooltipLayout.lines.map((line, index) => ( - (() => { - const segments = getDesktopLineSegments(line, index); - return ( - - {segments.map((segment, segmentIndex) => { - const segmentOffset = segments - .slice(0, segmentIndex) - .reduce((sum, previousSegment) => { - const measure = new Konva.Text({ - text: previousSegment.text, - fontFamily: 'Roboto Mono, monospace', - fontSize: previousSegment.fontSize, - fontStyle: previousSegment.fontStyle, - }); - const width = measure.width(); - measure.destroy(); - return sum + width; - }, 0); - - return ( - - ); - })} - - ); - })() - ))} - + + + + {desktopTooltipLayout.lines.map((line, index) => + (() => { + const segments = getDesktopLineSegments(line, index); + return ( + + {segments.map((segment, segmentIndex) => { + const segmentOffset = segments + .slice(0, segmentIndex) + .reduce((sum, previousSegment) => { + const measure = new Konva.Text({ + text: previousSegment.text, + fontFamily: 'Roboto Mono, monospace', + fontSize: previousSegment.fontSize, + fontStyle: previousSegment.fontStyle, + }); + const width = measure.width(); + measure.destroy(); + return sum + width; + }, 0); + + return ( + + ); + })} + + ); + })() + )} + )} @@ -544,7 +557,9 @@ const GalaxyMapRender = ({

    3{3Z9hl? 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

3{3Z9hl? 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

{controlItems.length > 0 && (
-
Control
+
+ Control +
{visibleControlItems.map((item) => (
- {showAllControl ? 'Show less' : `Show all (${hiddenControlCount} more)`} + {showAllControl + ? 'Show less' + : `Show all (${hiddenControlCount} more)`} )}
diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index f2804e1..d66cb4a 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -3,6 +3,7 @@ import { Circle, Image as KonvaImage } from 'react-konva'; import Konva from 'konva'; import { findFaction, openInNewTab } from '../helpers'; import pirateIconUrl from '../../assets/joli-rouge-icon.svg'; +import holdTheLineIconUrl from '../../assets/shield.svg'; import { DisplayStarSystemType, FactionDataType, @@ -17,6 +18,8 @@ const CAPITAL_RADIUS = 2.5; const PLANET_RADIUS = 1; let pirateIconImageCache: HTMLImageElement | null = null; let pirateIconImagePromise: Promise | null = null; +let holdTheLineIconImageCache: HTMLImageElement | null = null; +let holdTheLineIconImagePromise: Promise | null = null; const loadPirateIconImage = (): Promise => { if (pirateIconImageCache) return Promise.resolve(pirateIconImageCache); @@ -37,6 +40,25 @@ const loadPirateIconImage = (): Promise => { return pirateIconImagePromise; }; +const loadHoldTheLineIconImage = (): Promise => { + if (holdTheLineIconImageCache) return Promise.resolve(holdTheLineIconImageCache); + if (holdTheLineIconImagePromise) return holdTheLineIconImagePromise; + + holdTheLineIconImagePromise = new Promise((resolve, reject) => { + const image = new window.Image(); + image.src = holdTheLineIconUrl; + image.onload = () => { + holdTheLineIconImageCache = image; + resolve(image); + }; + image.onerror = () => { + reject(new Error('Failed to load hold the line icon.')); + }; + }); + + return holdTheLineIconImagePromise; +}; + interface StarSystemProps { system: DisplayStarSystemType; factions: FactionDataType; @@ -97,6 +119,9 @@ const StarSystem: React.FC = ({ ); const isInsurrect = !!system.state?.isInsurrect; const hasPirateRaid = !!system.state?.hasPirateRaid; + const hasHoldTheLineEvent = !!system.state?.hasHoldTheLineEvent; + const isInsurrectionLike = isInsurrect || hasHoldTheLineEvent; + const shouldPulseSize = hasPirateRaid || hasHoldTheLineEvent; const showActivePlayerIndicator = settings.flashActivePlayes && hasActivePlayers; const activePlayerRadiusMultiplier = showActivePlayerIndicator ? 1.25 : 1; @@ -117,16 +142,30 @@ const StarSystem: React.FC = ({ const shineOffset = radius * 0.35; const shineCenterColor = `rgba(255,255,255,${shineOpacity})`; const shineEdgeColor = 'rgba(255,255,255,0)'; - const insurrectGlowRadius = radius * 5; + const insurrectGlowRadius = hasHoldTheLineEvent ? radius * 6.5 : radius * 5; const insurrectGlowOpacity = Math.min(0.34, circleOpacity * 0.4); - const insurrectPulseRadius = radius * 2.625; + const insurrectPulseRadius = hasHoldTheLineEvent + ? radius * 3.25 + : radius * 2.625; + const insurrectGlowColor = hasHoldTheLineEvent + ? [0, 200, 255] + : [168, 85, 247]; + const insurrectPulseColor = hasHoldTheLineEvent + ? [0, 200, 255] + : [192, 132, 252]; + const makeRgba = (color: number[], alpha: number) => + `rgba(${color[0]}, ${color[1]}, ${color[2]}, ${alpha})`; const insurrectGlowRef = useRef(null); const insurrectPulseRef = useRef(null); const systemCircleRef = useRef(null); const pirateIconRef = useRef(null); + const holdTheLineIconRef = useRef(null); const [pirateIconImage, setPirateIconImage] = useState( null ); + const [holdTheLineIconImage, setHoldTheLineIconImage] = useState< + HTMLImageElement | null + >(null); const pirateIconSize = radius * 2.4; useEffect(() => { @@ -151,7 +190,32 @@ const StarSystem: React.FC = ({ }, [hasPirateRaid]); useEffect(() => { - if (!isInsurrect || !insurrectGlowRef.current || !insurrectPulseRef.current) + if (!hasHoldTheLineEvent) return; + if (holdTheLineIconImageCache) { + setHoldTheLineIconImage(holdTheLineIconImageCache); + return; + } + + let cancelled = false; + loadHoldTheLineIconImage() + .then((image) => { + if (!cancelled) setHoldTheLineIconImage(image); + }) + .catch(() => { + if (!cancelled) setHoldTheLineIconImage(null); + }); + + return () => { + cancelled = true; + }; + }, [hasHoldTheLineEvent]); + + useEffect(() => { + if ( + !isInsurrectionLike || + !insurrectGlowRef.current || + !insurrectPulseRef.current + ) return; const glowNode = insurrectGlowRef.current; @@ -177,13 +241,14 @@ const StarSystem: React.FC = ({ pulseNode.scale({ x: 1, y: 1 }); pulseNode.opacity(0); }; - }, [isInsurrect, circleOpacity]); + }, [isInsurrectionLike, circleOpacity]); useEffect(() => { - if (!hasPirateRaid || !systemCircleRef.current) return; + if (!shouldPulseSize || !systemCircleRef.current) return; const systemNode = systemCircleRef.current; const pirateIconNode = pirateIconRef.current; + const holdTheLineIconNode = holdTheLineIconRef.current; const animation = new Konva.Animation((frame) => { if (!frame) return; @@ -192,6 +257,7 @@ const StarSystem: React.FC = ({ systemNode.scale({ x: scale, y: scale }); if (pirateIconNode) pirateIconNode.scale({ x: scale, y: scale }); + if (holdTheLineIconNode) holdTheLineIconNode.scale({ x: scale, y: scale }); }, systemNode.getLayer()); animation.start(); @@ -200,8 +266,9 @@ const StarSystem: React.FC = ({ animation.stop(); systemNode.scale({ x: 1, y: 1 }); if (pirateIconNode) pirateIconNode.scale({ x: 1, y: 1 }); + if (holdTheLineIconNode) holdTheLineIconNode.scale({ x: 1, y: 1 }); }; - }, [hasPirateRaid, pirateIconImage]); + }, [shouldPulseSize, pirateIconImage, holdTheLineIconImage]); const damageLevelText = system.damageLevel !== undefined && @@ -264,7 +331,7 @@ const StarSystem: React.FC = ({ return ( <> - {isInsurrect && ( + {isInsurrectionLike && ( = ({ fillRadialGradientEndRadius={insurrectGlowRadius} fillRadialGradientColorStops={[ 0, - `rgba(168,85,247,${Math.min(0.32, insurrectGlowOpacity + 0.03375)})`, + makeRgba( + insurrectGlowColor, + Math.min(0.32, insurrectGlowOpacity + 0.03375) + ), 0.6, - `rgba(168,85,247,${insurrectGlowOpacity})`, + makeRgba(insurrectGlowColor, insurrectGlowOpacity), 1, - 'rgba(168,85,247,0)', + makeRgba(insurrectGlowColor, 0), ]} listening={false} /> )} - {isInsurrect && ( + {isInsurrectionLike && ( = ({ fillRadialGradientEndRadius={insurrectPulseRadius} fillRadialGradientColorStops={[ 0, - 'rgba(192,132,252,0.7)', + makeRgba(insurrectPulseColor, 0.7), 1, - 'rgba(192,132,252,0)', + makeRgba(insurrectPulseColor, 0), ]} listening={false} /> @@ -405,6 +475,22 @@ const StarSystem: React.FC = ({ listening={false} /> )} + {hasHoldTheLineEvent && holdTheLineIconImage && ( + + )} {showActivePlayerIndicator && ( Date: Mon, 9 Mar 2026 18:51:16 -0700 Subject: [PATCH 20/28] Capture event graphic --- src/assets/crosshairs.svg | 12 ++++ src/components/helpers/devStateInjector.ts | 20 ++++++ src/components/ui/StarSystem.tsx | 84 ++++++++++++++++++++-- 3 files changed, 110 insertions(+), 6 deletions(-) create mode 100644 src/assets/crosshairs.svg diff --git a/src/assets/crosshairs.svg b/src/assets/crosshairs.svg new file mode 100644 index 0000000..f9ad04a --- /dev/null +++ b/src/assets/crosshairs.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/helpers/devStateInjector.ts b/src/components/helpers/devStateInjector.ts index ee36138..40f452e 100644 --- a/src/components/helpers/devStateInjector.ts +++ b/src/components/helpers/devStateInjector.ts @@ -42,6 +42,7 @@ const DEV_PIRATE_RAID_SYSTEMS = [ 'Yangtze', ]; const DEV_HOLD_THE_LINE_SYSTEMS = ['Alnadal']; +const DEV_CAPTURE_EVENT_SYSTEMS = ['Rowe']; type StateOverrideMap = Record; @@ -174,6 +175,23 @@ const buildNamedHoldTheLineOverrides = ( return overrides; }; +const buildNamedCaptureEventOverrides = ( + systems: StarSystemType[] +): StateOverrideMap => { + const systemNameLookup = new Map( + systems.map((system) => [system.name.toLowerCase(), system.name]) + ); + const overrides: StateOverrideMap = {}; + + DEV_CAPTURE_EVENT_SYSTEMS.forEach((targetName) => { + const canonicalName = systemNameLookup.get(targetName.toLowerCase()); + if (!canonicalName) return; + overrides[canonicalName] = { hasCaptureEvent: true }; + }); + + return overrides; +}; + export const applyDevStateInjection = ( systems: StarSystemType[] ): StarSystemType[] => { @@ -196,6 +214,7 @@ export const applyDevStateInjection = ( const namedInsurrectionOverrides = buildNamedInsurrectionOverrides(systems); const namedPirateRaidOverrides = buildNamedPirateRaidOverrides(systems); const namedHoldTheLineOverrides = buildNamedHoldTheLineOverrides(systems); + const namedCaptureEventOverrides = buildNamedCaptureEventOverrides(systems); const presetOverrides = preset === 'dense' @@ -206,6 +225,7 @@ export const applyDevStateInjection = ( ...namedInsurrectionOverrides, ...namedPirateRaidOverrides, ...namedHoldTheLineOverrides, + ...namedCaptureEventOverrides, ...customOverrides, }; diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index d66cb4a..61b6d9b 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -4,6 +4,7 @@ import Konva from 'konva'; import { findFaction, openInNewTab } from '../helpers'; import pirateIconUrl from '../../assets/joli-rouge-icon.svg'; import holdTheLineIconUrl from '../../assets/shield.svg'; +import captureEventIconUrl from '../../assets/crosshairs.svg'; import { DisplayStarSystemType, FactionDataType, @@ -20,6 +21,8 @@ let pirateIconImageCache: HTMLImageElement | null = null; let pirateIconImagePromise: Promise | null = null; let holdTheLineIconImageCache: HTMLImageElement | null = null; let holdTheLineIconImagePromise: Promise | null = null; +let captureEventIconImageCache: HTMLImageElement | null = null; +let captureEventIconImagePromise: Promise | null = null; const loadPirateIconImage = (): Promise => { if (pirateIconImageCache) return Promise.resolve(pirateIconImageCache); @@ -59,6 +62,25 @@ const loadHoldTheLineIconImage = (): Promise => { return holdTheLineIconImagePromise; }; +const loadCaptureEventIconImage = (): Promise => { + if (captureEventIconImageCache) return Promise.resolve(captureEventIconImageCache); + if (captureEventIconImagePromise) return captureEventIconImagePromise; + + captureEventIconImagePromise = new Promise((resolve, reject) => { + const image = new window.Image(); + image.src = captureEventIconUrl; + image.onload = () => { + captureEventIconImageCache = image; + resolve(image); + }; + image.onerror = () => { + reject(new Error('Failed to load capture event icon.')); + }; + }); + + return captureEventIconImagePromise; +}; + interface StarSystemProps { system: DisplayStarSystemType; factions: FactionDataType; @@ -111,7 +133,7 @@ const StarSystem: React.FC = ({ }; const formatControlLine = (item: TooltipControlItem) => { - return `${item.name} ${item.control}% · P${item.players}`; + return `${item.name} ${item.control}% · ${item.players}`; }; const hasActivePlayers = system.factions.some( @@ -120,8 +142,9 @@ const StarSystem: React.FC = ({ const isInsurrect = !!system.state?.isInsurrect; const hasPirateRaid = !!system.state?.hasPirateRaid; const hasHoldTheLineEvent = !!system.state?.hasHoldTheLineEvent; - const isInsurrectionLike = isInsurrect || hasHoldTheLineEvent; - const shouldPulseSize = hasPirateRaid || hasHoldTheLineEvent; + const hasCaptureEvent = !!system.state?.hasCaptureEvent; + const isInsurrectionLike = isInsurrect || hasHoldTheLineEvent || hasCaptureEvent; + const shouldPulseSize = hasPirateRaid || hasHoldTheLineEvent || hasCaptureEvent; const showActivePlayerIndicator = settings.flashActivePlayes && hasActivePlayers; const activePlayerRadiusMultiplier = showActivePlayerIndicator ? 1.25 : 1; @@ -147,10 +170,14 @@ const StarSystem: React.FC = ({ const insurrectPulseRadius = hasHoldTheLineEvent ? radius * 3.25 : radius * 2.625; - const insurrectGlowColor = hasHoldTheLineEvent + const insurrectGlowColor = hasCaptureEvent + ? [255, 115, 0] + : hasHoldTheLineEvent ? [0, 200, 255] : [168, 85, 247]; - const insurrectPulseColor = hasHoldTheLineEvent + const insurrectPulseColor = hasCaptureEvent + ? [255, 115, 0] + : hasHoldTheLineEvent ? [0, 200, 255] : [192, 132, 252]; const makeRgba = (color: number[], alpha: number) => @@ -160,12 +187,16 @@ const StarSystem: React.FC = ({ const systemCircleRef = useRef(null); const pirateIconRef = useRef(null); const holdTheLineIconRef = useRef(null); + const captureEventIconRef = useRef(null); const [pirateIconImage, setPirateIconImage] = useState( null ); const [holdTheLineIconImage, setHoldTheLineIconImage] = useState< HTMLImageElement | null >(null); + const [captureEventIconImage, setCaptureEventIconImage] = useState< + HTMLImageElement | null + >(null); const pirateIconSize = radius * 2.4; useEffect(() => { @@ -210,6 +241,27 @@ const StarSystem: React.FC = ({ }; }, [hasHoldTheLineEvent]); + useEffect(() => { + if (!hasCaptureEvent) return; + if (captureEventIconImageCache) { + setCaptureEventIconImage(captureEventIconImageCache); + return; + } + + let cancelled = false; + loadCaptureEventIconImage() + .then((image) => { + if (!cancelled) setCaptureEventIconImage(image); + }) + .catch(() => { + if (!cancelled) setCaptureEventIconImage(null); + }); + + return () => { + cancelled = true; + }; + }, [hasCaptureEvent]); + useEffect(() => { if ( !isInsurrectionLike || @@ -249,6 +301,7 @@ const StarSystem: React.FC = ({ const systemNode = systemCircleRef.current; const pirateIconNode = pirateIconRef.current; const holdTheLineIconNode = holdTheLineIconRef.current; + const captureEventIconNode = captureEventIconRef.current; const animation = new Konva.Animation((frame) => { if (!frame) return; @@ -258,6 +311,8 @@ const StarSystem: React.FC = ({ systemNode.scale({ x: scale, y: scale }); if (pirateIconNode) pirateIconNode.scale({ x: scale, y: scale }); if (holdTheLineIconNode) holdTheLineIconNode.scale({ x: scale, y: scale }); + if (captureEventIconNode) + captureEventIconNode.scale({ x: scale, y: scale }); }, systemNode.getLayer()); animation.start(); @@ -267,8 +322,9 @@ const StarSystem: React.FC = ({ systemNode.scale({ x: 1, y: 1 }); if (pirateIconNode) pirateIconNode.scale({ x: 1, y: 1 }); if (holdTheLineIconNode) holdTheLineIconNode.scale({ x: 1, y: 1 }); + if (captureEventIconNode) captureEventIconNode.scale({ x: 1, y: 1 }); }; - }, [shouldPulseSize, pirateIconImage, holdTheLineIconImage]); + }, [shouldPulseSize, pirateIconImage, holdTheLineIconImage, captureEventIconImage]); const damageLevelText = system.damageLevel !== undefined && @@ -491,6 +547,22 @@ const StarSystem: React.FC = ({ listening={false} /> )} + {hasCaptureEvent && captureEventIconImage && ( + + )} {showActivePlayerIndicator && ( Date: Tue, 10 Mar 2026 21:25:14 -0700 Subject: [PATCH 21/28] Comments cleanup --- src/App.tsx | 6 +++- src/components/GalaxyMap/gm.types.ts | 10 +++--- .../hooks/types/StarSystemWithState.ts | 1 - src/components/hooks/useGalaxyViewport.ts | 20 ++++++------ src/components/hooks/usePinchZoom.ts | 10 +++--- src/components/pages/Error.tsx | 8 +---- src/components/pages/GalaxyMap.tsx | 12 +++---- src/components/ui/BottomFilterPanel.tsx | 31 ++++++++++--------- 8 files changed, 48 insertions(+), 50 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 99c8a47..b35b520 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,9 +5,11 @@ import { RouterProvider, } from 'react-router-dom'; import { Map } from './components/pages/'; +// Keep this import commented until the legacy home route is restored. // import { Home, Map } from './components/pages/'; import ErrorPage from './components/pages/Error'; import { BASE_ROUTE } from './components/helpers/RouteHelper.ts'; +// Kept for later route re-introduction when the Terms-of-Service view is restored. // import { ToS } from './components/pages/ToS'; const router = createBrowserRouter( @@ -16,6 +18,7 @@ const router = createBrowserRouter( } errorElement={} /> } /> + {/* Parking legacy routes while main route handling is stabilized. */} {/* } /> */} {/* } /> */} @@ -26,7 +29,8 @@ export default function App() { return ( } + // Uncomment this with when adding a shared app-wide fallback screen. + // fallbackElement={} /> ); } diff --git a/src/components/GalaxyMap/gm.types.ts b/src/components/GalaxyMap/gm.types.ts index 6f0ee37..43010db 100644 --- a/src/components/GalaxyMap/gm.types.ts +++ b/src/components/GalaxyMap/gm.types.ts @@ -6,13 +6,13 @@ import type { export type Point = { x: number; y: number }; -/** Stage (canvas) size used by React-Konva */ +/** Stage viewport dimensions passed to and updated when the browser resizes. */ export interface StageSize { width: number; height: number; } -/** Tooltip shape as consumed by GalaxyMap.tsx */ +/** Tooltip payload shape read by GalaxyMap and rendered in both desktop and mobile views. */ export interface TooltipData { visible: boolean; x: number; @@ -28,11 +28,11 @@ export interface TooltipControlItem { players: number; } -/** View transform pieces GalaxyMap manages internally */ +/** Camera transform snapshot for the map viewport. */ export interface ViewTransform { - /** Current zoom scale (e.g., 0.2 .. 25) */ + /** Current zoom level, where 1 is normal scale and bounds are enforced by the viewport hook. */ scale: number; - /** Stage position (screen-space) */ + /** Stage translation in screen coordinates after pan/drag and zoom operations. */ position: Point; } diff --git a/src/components/hooks/types/StarSystemWithState.ts b/src/components/hooks/types/StarSystemWithState.ts index 09eb443..2a0e84a 100644 --- a/src/components/hooks/types/StarSystemWithState.ts +++ b/src/components/hooks/types/StarSystemWithState.ts @@ -2,6 +2,5 @@ import type { StarSystemType } from './StarSystemType'; import type { StarSystemState } from './StarSystemState'; export type StarSystemWithState = StarSystemType & { - //damageLevel?: string; state?: StarSystemState; }; diff --git a/src/components/hooks/useGalaxyViewport.ts b/src/components/hooks/useGalaxyViewport.ts index 6e05529..a8b99bf 100644 --- a/src/components/hooks/useGalaxyViewport.ts +++ b/src/components/hooks/useGalaxyViewport.ts @@ -13,7 +13,7 @@ export function useGalaxyViewport({ maxScale = 25, wheelThrottleMs = 50, }: UseGalaxyViewportArgs = {}) { - // Expose these so other hooks (tooltip) can consume them. + // Shared refs let the tooltip/pinch hooks coordinate with the same stage instance. const stageRef = useRef(null); const scaleRef = useRef(1); @@ -22,10 +22,10 @@ export function useGalaxyViewport({ y: window.innerHeight / 2, }); - // Used by StarSystem sizing logic already in your component. + // Exposes current scale to React consumers that need rerenders (like star node sizing). const [zoomScaleFactor, setZoomScaleFactor] = useState(1); - // ---- batched draw (fixed: must persist across renders) + // Batch draw calls per animation frame to avoid a Konva redraw storm during drag/zoom. const frameRequestedRef = useRef(false); const requestBatchDraw = useCallback((stage: Konva.Stage) => { if (frameRequestedRef.current) return; @@ -37,7 +37,7 @@ export function useGalaxyViewport({ }); }, []); - // ---- wheel throttle + // Throttle wheel events so each move doesn't enqueue unbounded zoom updates. const lastWheelTimeRef = useRef(0); const onWheel = useCallback( @@ -60,20 +60,20 @@ export function useGalaxyViewport({ let newScale = e.evt.deltaY > 0 ? oldScale / scaleBy : oldScale * scaleBy; newScale = Math.max(minScale, Math.min(maxScale, newScale)); - // World coords under pointer before zoom + // Capture map coordinates under the pointer before changing scale so zoom is centered. const mousePointTo = { x: (pointer.x - stage.x()) / oldScale, y: (pointer.y - stage.y()) / oldScale, }; - // Update refs + // Update internal transform state for future gesture calculations. scaleRef.current = newScale; positionRef.current = { x: pointer.x - mousePointTo.x * newScale, y: pointer.y - mousePointTo.y * newScale, }; - // Apply to stage (imperative — avoids rerender dependency) + // Apply transform directly to Konva instance to keep interaction feel snappy. stage.scale({ x: newScale, y: newScale }); stage.position(positionRef.current); @@ -88,14 +88,14 @@ export function useGalaxyViewport({ positionRef.current = { x: e.target.x(), y: e.target.y() }; }, []); - // This view object is useful for Stage props & tooltip scaling. - // Note: it only updates on React re-renders (wheel triggers one via zoomScaleFactor). + // Build a memoized snapshot consumed by Stage props and tooltip scaling. + // It intentionally updates only on React render so we avoid excess calculations. const view: ViewTransform = useMemo( () => ({ scale: scaleRef.current, position: positionRef.current, }), - // re-render triggers recompute; refs don't cause renders + // Re-render is required here because refs update without triggering React by design. [zoomScaleFactor] ); diff --git a/src/components/hooks/usePinchZoom.ts b/src/components/hooks/usePinchZoom.ts index d916364..5a1973d 100644 --- a/src/components/hooks/usePinchZoom.ts +++ b/src/components/hooks/usePinchZoom.ts @@ -8,7 +8,7 @@ type UsePinchZoomArgs = { scaleRef: React.MutableRefObject; positionRef: React.MutableRefObject; - // from useGalaxyViewport (temporarily exposed) + // Shared from useGalaxyViewport so this hook can force a batched Konva redraw after math updates. requestBatchDraw: (stage: Konva.Stage) => void; setZoomScaleFactor: React.Dispatch>; @@ -39,14 +39,14 @@ export function usePinchZoom({ const onTouchStart = useCallback( (e: Konva.KonvaEventObject) => { - // Single touch: hide tooltip if tapped background (same behavior as your current code) + // Hide tooltip when a single-touch tap lands on background, matching existing click behavior. if (e.evt.touches.length === 1) { const isCircle = e.target.className === 'Circle'; const isTooltip = e.target.findAncestor('Label', true); if (!isCircle && !isTooltip) hideTooltip?.(); } - // Two-finger pinch start + // Two fingers means a pinch gesture is starting; record baseline distance for scaling delta. if (e.evt.touches.length === 2) { setIsPinching(true); lastDistance.current = getDistance(e.evt.touches[0], e.evt.touches[1]); @@ -90,10 +90,10 @@ export function usePinchZoom({ let scaleBy = newDistance / lastDistance.current; - // Prevent jitter and dead zone on Firefox + // Ignore tiny scale deltas to avoid jitter and accidental no-op zoom updates. if (Math.abs(1 - scaleBy) < 0.02) return; - // Clamp to avoid huge jumps + // Clamp per-frame scale change so one frame cannot cause an abrupt zoom jump. scaleBy = Math.max(0.9, Math.min(1.1, scaleBy)); const oldScale = scaleRef.current ?? 1; diff --git a/src/components/pages/Error.tsx b/src/components/pages/Error.tsx index 7281f70..6c073b2 100644 --- a/src/components/pages/Error.tsx +++ b/src/components/pages/Error.tsx @@ -16,13 +16,7 @@ function ErrorPageContent() { if (isRouteErrorResponse(error)) { return (
- {/*

Oops! {error.status}

-

{error.statusText}

- {error.data?.message && ( -

- {error.data.message} -

- )} */} + {/* For route-level errors, show a concise helper message with a home fallback. */} If you came to this page from a link, please contact Rogue War on the Discord Server diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index 23e9098..e39d42a 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -90,7 +90,7 @@ const GalaxyMapRender = ({ const normalizedSearch = searchTerm.trim().toLowerCase(); const shouldFilter = normalizedSearch.length >= 2; - /* faction filter */ + /* Empty means "all factions"; when populated, only matching owners are rendered. */ const [selectedFactions, setSelectedFactions] = useState([]); const { tooltip, showTooltip, hideTooltip } = useTooltip(scaleRef) as { @@ -120,7 +120,7 @@ const GalaxyMapRender = ({ height: window.innerHeight, }); - // Block Firefox pinch-to-zoom at document level + // Block native Firefox pinch zoom at the document level so the custom map handler stays in control. useEffect(() => { const preventZoomTouch = (e: TouchEvent) => { if (e.touches.length > 1) { @@ -151,7 +151,7 @@ const GalaxyMapRender = ({ }; }, []); - // extra locking gesture handling for Firefox + // Keep an additional window-level gesture lock for Firefox variants that skip document events. useEffect(() => { const lockScale = (e: Event) => e.preventDefault(); @@ -365,7 +365,7 @@ const GalaxyMapRender = ({ return ( <> - {/* Konva Stage */} + {/* Render interactive map stage and layers using React-Konva. */} {systems.map((system, index) => { - /* resolve owner’s display name the same way allFactionNames() did */ + /* Resolve owner display name via faction metadata for consistent filter matching and labels. */ const ownerPretty = factions[system.owner]?.prettyName ?? system.owner; const factionMatch = @@ -625,7 +625,7 @@ const GalaxyMapRender = ({
)} - {/* bottom sliding filter panel */} + {/* Render slide-up filters that control search and faction matching. */} { const [isOpen, setIsOpen] = useState(false); - /* ───────────── desktop breakpoint helper ───────────── */ + /* Desktop/mobile layout mode is driven by viewport width and updated on resize. */ const [isDesktop, setIsDesktop] = useState( typeof window !== 'undefined' && window.innerWidth >= 768 ); @@ -27,7 +27,7 @@ const BottomFilterPanel = ({ return () => window.removeEventListener('resize', onResize); }, []); - /* react-select helpers */ + /* Build react-select option/value pairs from faction names for stable controlled input state. */ const options = factions.map((f) => ({ value: f, label: f })); const selectedOpts = options.filter((o) => selectedFactions.includes(o.value) @@ -48,21 +48,22 @@ const BottomFilterPanel = ({ const panel = panelRef.current; if (!panel) return; - // Get the current height before the change + // Measure the current height so height animation starts from an exact frame. const startHeight = panel.offsetHeight; - // Temporarily disable transitions to get new height + // Disable transitions temporarily so we can snapshot the target height without an + // intermediate animated jump. panel.style.transition = 'none'; panel.style.height = 'auto'; const targetHeight = panel.scrollHeight; - // Re-enable transitions + // Re-enable transition and restore the measured start height before animating. requestAnimationFrame(() => { panel.style.transition = 'height 0.5s ease'; panel.style.height = `${startHeight}px`; - // Then trigger the new height + // Apply the final target height in the next frame to trigger a clean transition. requestAnimationFrame(() => { const expandedHeight = Math.max(targetHeight, 125); setHeight(`${isOpen ? expandedHeight : 32}px`); @@ -83,8 +84,8 @@ const BottomFilterPanel = ({ maxWidth: isDesktop ? '220px' : '90vw', zIndex: 10000, ...(isDesktop - ? { bottom: 22, left: 0 } // desktop: below/right of icon - : { bottom: 28, right: 8, left: 'auto', transform: 'none' }), // mobile: centered below icon + ? { bottom: 22, left: 0 } // Desktop tooltip aligns under the help icon. + : { bottom: 28, right: 8, left: 'auto', transform: 'none' }), // Mobile tooltip floats centered under the icon. }; return ( @@ -109,7 +110,7 @@ const BottomFilterPanel = ({ opacity: isOpen ? 1 : 0.5, }} > - {/* chevron toggle */} + {/* Header trigger lets users expand/collapse the bottom filter panel. */}
: }
- {/* two-column layout */} + {/* Open state uses two columns: left = search, right = faction filters. */} {isOpen && (
- {/* LEFT column — system search */} + {/* Left column: system search field */}
setSearchTerm(e.target.value)} style={{ - width: isDesktop ? '50%' : '100%', // ← half width on desktop + width: isDesktop ? '50%' : '100%', // Desktop keeps a compact search field width. padding: '6px 10px', fontSize: '16px', borderRadius: '6px', @@ -147,12 +148,12 @@ const BottomFilterPanel = ({ outline: 'none', backgroundColor: 'white', color: 'black', - margin: '0 0.25rem 0.5rem', // side + bottom space + margin: '0 0.25rem 0.5rem', // Add spacing so pills and controls are not crowded. }} />
- {/* RIGHT column — faction select */} + {/* Right column: faction selector controls */}
- {/* chosen factions shown under the search bar */} + {/* Selected factions appear as removable chips for quick feedback and edits. */} {selectedFactions.length > 0 && (
Date: Fri, 20 Mar 2026 13:45:50 -0700 Subject: [PATCH 22/28] fix: stabilize GalaxyMap data refresh flow and improve robustness --- public/galaxyBackground3.svg | 253 ----------------------------- src/components/pages/GalaxyMap.tsx | 98 +++++++---- 2 files changed, 63 insertions(+), 288 deletions(-) delete mode 100644 public/galaxyBackground3.svg diff --git a/public/galaxyBackground3.svg b/public/galaxyBackground3.svg deleted file mode 100644 index 74488c7..0000000 --- a/public/galaxyBackground3.svg +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index e39d42a..d2a1341 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -1,6 +1,5 @@ import { StageSize, - TooltipData, GalaxyMapRenderProps, } from '../GalaxyMap/gm.types'; import { buildFactionFilterOptions } from '../GalaxyMap/gm.selectors'; @@ -17,6 +16,25 @@ import { usePinchZoom } from '../hooks/usePinchZoom'; const MIN_SCALE = 0.2; const MAX_SCALE = 25; +const getViewportSize = () => { + if (typeof window === 'undefined') { + return { width: 0, height: 0 }; + } + + return { + width: window.innerWidth, + height: window.innerHeight, + }; +}; + +const getTooltipFontSize = () => { + if (typeof document === 'undefined') { + return 16 * 0.85; + } + + return parseFloat(getComputedStyle(document.documentElement).fontSize) * 0.85; +}; + const GalaxyMap = () => { const { displaySystems, @@ -27,29 +45,24 @@ const GalaxyMap = () => { settings, } = useFiltering(); - const [initialDataLoaded, setInitialDataLoaded] = useState(false); + const fetchFactionDataRef = useRef(fetchFactionData); + const fetchSystemDataRef = useRef(fetchSystemData); useEffect(() => { - if (!initialDataLoaded) { - console.log('Loading data...'); - fetchFactionData(); - fetchSystemData(); - setInitialDataLoaded(true); - } + fetchFactionDataRef.current = fetchFactionData; + fetchSystemDataRef.current = fetchSystemData; + }, [fetchFactionData, fetchSystemData]); + + useEffect(() => { + fetchFactionDataRef.current(); + fetchSystemDataRef.current(); const interval = setInterval(() => { - console.log('API Data Refreshing at', new Date().toLocaleTimeString()); - fetchSystemData(); + fetchSystemDataRef.current(); }, 300_000); return () => clearInterval(interval); - }, [ - factions, - capitals, - fetchFactionData, - fetchSystemData, - initialDataLoaded, - ]); + }, []); if ( displaySystems && @@ -93,11 +106,7 @@ const GalaxyMapRender = ({ /* Empty means "all factions"; when populated, only matching owners are rendered. */ const [selectedFactions, setSelectedFactions] = useState([]); - const { tooltip, showTooltip, hideTooltip } = useTooltip(scaleRef) as { - tooltip: TooltipData; - showTooltip: (...args: any[]) => void; - hideTooltip: () => void; - }; + const { tooltip, showTooltip, hideTooltip } = useTooltip(scaleRef); const tooltipVisibleRef = useRef(false); const touchedSystemNameRef = useRef(null); @@ -115,13 +124,14 @@ const GalaxyMapRender = ({ maxScale: MAX_SCALE, }); - const [stageSize, setStageSize] = useState({ - width: window.innerWidth, - height: window.innerHeight, - }); + const [stageSize, setStageSize] = useState(getViewportSize()); // Block native Firefox pinch zoom at the document level so the custom map handler stays in control. useEffect(() => { + if (typeof document === 'undefined') { + return undefined; + } + const preventZoomTouch = (e: TouchEvent) => { if (e.touches.length > 1) { e.preventDefault(); @@ -153,6 +163,10 @@ const GalaxyMapRender = ({ // Keep an additional window-level gesture lock for Firefox variants that skip document events. useEffect(() => { + if (typeof window === 'undefined' || typeof document === 'undefined') { + return undefined; + } + const lockScale = (e: Event) => e.preventDefault(); window.addEventListener('gesturestart', lockScale, { passive: false }); @@ -167,6 +181,10 @@ const GalaxyMapRender = ({ }, []); useEffect(() => { + if (typeof window === 'undefined') { + return undefined; + } + const handleResize = () => { setStageSize({ width: window.innerWidth, @@ -180,8 +198,13 @@ const GalaxyMapRender = ({ const [background, setBackground] = useState(null); const [bgLoaded, setBgLoaded] = useState(false); + const [bgLoadError, setBgLoadError] = useState(false); useEffect(() => { + if (typeof window === 'undefined') { + return undefined; + } + const img = new window.Image(); const isFirefox = @@ -195,11 +218,17 @@ const GalaxyMapRender = ({ setBackground(img); setBgLoaded(true); }; + + img.onerror = () => { + setBgLoadError(true); + setBgLoaded(true); + }; }, []); useEffect(() => { const stage = stageRef.current; if (!stage) return; + if (typeof stage.container !== 'function') return; const container = stage.container(); const preventDefault = (e: Event) => { @@ -225,10 +254,9 @@ const GalaxyMapRender = ({ }; }, []); - const isMobile = window.innerWidth < 768; + const isMobile = stageSize.width > 0 && stageSize.width < 768; const tooltipScale = isMobile ? 1.5 / view.scale : 2 / view.scale; - const tooltipFontSize = - parseFloat(getComputedStyle(document.documentElement).fontSize) * 0.85; + const tooltipFontSize = getTooltipFontSize(); const desktopTooltipPadding = 6; const desktopPointerHeight = 10; const desktopPointerWidth = 12; @@ -383,7 +411,7 @@ const GalaxyMapRender = ({ onTouchEnd={onTouchEnd} > - {bgLoaded && background ? ( + {bgLoaded && background && !bgLoadError ? ( ) : ( - {systems.map((system, index) => { + {systems.map((system) => { /* Resolve owner display name via faction metadata for consistent filter matching and labels. */ const ownerPretty = factions[system.owner]?.prettyName ?? system.owner; @@ -419,7 +447,7 @@ const GalaxyMapRender = ({ const opacity = shouldFilter ? (isMatch ? 1 : 0.2) : 1; return ( Date: Fri, 20 Mar 2026 13:53:32 -0700 Subject: [PATCH 23/28] security patches --- package.json | 14 +- yarn.lock | 992 ++++++++++++++++++++++++++++++++------------------- 2 files changed, 630 insertions(+), 376 deletions(-) diff --git a/package.json b/package.json index 42fd1f2..29c30cc 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@material-tailwind/react": "^2.1.10", - "axios": "^1.13.2", + "axios": "^1.13.5", "konva": "^9.3.18", "localforage": "^1.10.0", "lucide-react": "^0.515.0", @@ -22,7 +22,7 @@ "react-dom": "^18.3.1", "react-icons": "^5.3.0", "react-konva": "18", - "react-router-dom": "^6.26.2", + "react-router-dom": "^6.30.3", "react-select": "^5.10.1", "swr": "^2.2.5" }, @@ -41,11 +41,17 @@ "tailwindcss": "^3.4.12", "typescript": "^5.9.3", "typescript-eslint": "^8.0.1", - "vite": "^5.4.1", + "vite": "^8.0.1", "vitest": "^4.0.8" }, "resolutions": { - "esbuild": "0.27.0" + "minimatch": "^3.1.3", + "rollup": "^4.59.0", + "ajv": "6.14.0", + "flatted": "3.4.2", + "@remix-run/router": "1.23.2", + "react-router": "6.30.3", + "glob": "^10.5.0" }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" } diff --git a/yarn.lock b/yarn.lock index e36943f..75f7c0e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -92,6 +92,28 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.28.5" +"@emnapi/core@^1.7.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@emnapi/core/-/core-1.9.1.tgz#2143069c744ca2442074f8078462e51edd63c7bd" + integrity sha512-mukuNALVsoix/w1BJwFzwXBN/dHeejQtuVzcDsfOEsdpCumXb/E9j8w11h5S54tT1xhifGfbbSm/ICrObRb3KA== + dependencies: + "@emnapi/wasi-threads" "1.2.0" + tslib "^2.4.0" + +"@emnapi/runtime@^1.7.1": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@emnapi/runtime/-/runtime-1.9.1.tgz#115ff2a0d589865be6bd8e9d701e499c473f2a8d" + integrity sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA== + dependencies: + tslib "^2.4.0" + +"@emnapi/wasi-threads@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz#a19d9772cc3d195370bf6e2a805eec40aa75e18e" + integrity sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg== + dependencies: + tslib "^2.4.0" + "@emotion/babel-plugin@^11.13.5": version "11.13.5" resolved "https://registry.yarnpkg.com/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz#eab8d65dbded74e0ecfd28dc218e75607c4e7bc0" @@ -192,135 +214,135 @@ resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz#5e13fac887f08c44f76b0ccaf3370eb00fec9bb6" integrity sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg== -"@esbuild/aix-ppc64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.27.0.tgz#1d8be43489a961615d49e037f1bfa0f52a773737" - integrity sha512-KuZrd2hRjz01y5JK9mEBSD3Vj3mbCvemhT466rSuJYeE/hjuBrHfjjcjMdTm/sz7au+++sdbJZJmuBwQLuw68A== - -"@esbuild/android-arm64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.27.0.tgz#bd1763194aad60753fa3338b1ba9bda974b58724" - integrity sha512-CC3vt4+1xZrs97/PKDkl0yN7w8edvU2vZvAFGD16n9F0Cvniy5qvzRXjfO1l94efczkkQE6g1x0i73Qf5uthOQ== - -"@esbuild/android-arm@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.27.0.tgz#69c7b57f02d3b3618a5ba4f82d127b57665dc397" - integrity sha512-j67aezrPNYWJEOHUNLPj9maeJte7uSMM6gMoxfPC9hOg8N02JuQi/T7ewumf4tNvJadFkvLZMlAq73b9uwdMyQ== - -"@esbuild/android-x64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.27.0.tgz#6ea22b5843acb23243d0126c052d7d3b6a11ca90" - integrity sha512-wurMkF1nmQajBO1+0CJmcN17U4BP6GqNSROP8t0X/Jiw2ltYGLHpEksp9MpoBqkrFR3kv2/te6Sha26k3+yZ9Q== - -"@esbuild/darwin-arm64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.27.0.tgz#5ad7c02bc1b1a937a420f919afe40665ba14ad1e" - integrity sha512-uJOQKYCcHhg07DL7i8MzjvS2LaP7W7Pn/7uA0B5S1EnqAirJtbyw4yC5jQ5qcFjHK9l6o/MX9QisBg12kNkdHg== - -"@esbuild/darwin-x64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.27.0.tgz#48470c83c5fd6d1fc7c823c2c603aeee96e101c9" - integrity sha512-8mG6arH3yB/4ZXiEnXof5MK72dE6zM9cDvUcPtxhUZsDjESl9JipZYW60C3JGreKCEP+p8P/72r69m4AZGJd5g== - -"@esbuild/freebsd-arm64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.0.tgz#d5a8effd8b0be7be613cd1009da34d629d4c2457" - integrity sha512-9FHtyO988CwNMMOE3YIeci+UV+x5Zy8fI2qHNpsEtSF83YPBmE8UWmfYAQg6Ux7Gsmd4FejZqnEUZCMGaNQHQw== - -"@esbuild/freebsd-x64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.27.0.tgz#9bde638bda31aa244d6d64dbafafb41e6e799bcc" - integrity sha512-zCMeMXI4HS/tXvJz8vWGexpZj2YVtRAihHLk1imZj4efx1BQzN76YFeKqlDr3bUWI26wHwLWPd3rwh6pe4EV7g== - -"@esbuild/linux-arm64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.27.0.tgz#96008c3a207d8ca495708db714c475ea5bf7e2af" - integrity sha512-AS18v0V+vZiLJyi/4LphvBE+OIX682Pu7ZYNsdUHyUKSoRwdnOsMf6FDekwoAFKej14WAkOef3zAORJgAtXnlQ== - -"@esbuild/linux-arm@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.27.0.tgz#9b47cb0f222e567af316e978c7f35307db97bc0e" - integrity sha512-t76XLQDpxgmq2cNXKTVEB7O7YMb42atj2Re2Haf45HkaUpjM2J0UuJZDuaGbPbamzZ7bawyGFUkodL+zcE+jvQ== - -"@esbuild/linux-ia32@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.27.0.tgz#d1e1e38d406cbdfb8a49f4eca0c25bbc344e18cc" - integrity sha512-Mz1jxqm/kfgKkc/KLHC5qIujMvnnarD9ra1cEcrs7qshTUSksPihGrWHVG5+osAIQ68577Zpww7SGapmzSt4Nw== - -"@esbuild/linux-loong64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.27.0.tgz#c13bc6a53e3b69b76f248065bebee8415b44dfce" - integrity sha512-QbEREjdJeIreIAbdG2hLU1yXm1uu+LTdzoq1KCo4G4pFOLlvIspBm36QrQOar9LFduavoWX2msNFAAAY9j4BDg== - -"@esbuild/linux-mips64el@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.27.0.tgz#05f8322eb0a96ce1bfbc59691abe788f71e2d217" - integrity sha512-sJz3zRNe4tO2wxvDpH/HYJilb6+2YJxo/ZNbVdtFiKDufzWq4JmKAiHy9iGoLjAV7r/W32VgaHGkk35cUXlNOg== - -"@esbuild/linux-ppc64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.27.0.tgz#6fc5e7af98b4fb0c6a7f0b73ba837ce44dc54980" - integrity sha512-z9N10FBD0DCS2dmSABDBb5TLAyF1/ydVb+N4pi88T45efQ/w4ohr/F/QYCkxDPnkhkp6AIpIcQKQ8F0ANoA2JA== - -"@esbuild/linux-riscv64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.27.0.tgz#508afa9f69a3f97368c0bf07dd894a04af39d86e" - integrity sha512-pQdyAIZ0BWIC5GyvVFn5awDiO14TkT/19FTmFcPdDec94KJ1uZcmFs21Fo8auMXzD4Tt+diXu1LW1gHus9fhFQ== - -"@esbuild/linux-s390x@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.27.0.tgz#21fda656110ee242fc64f87a9e0b0276d4e4ec5b" - integrity sha512-hPlRWR4eIDDEci953RI1BLZitgi5uqcsjKMxwYfmi4LcwyWo2IcRP+lThVnKjNtk90pLS8nKdroXYOqW+QQH+w== - -"@esbuild/linux-x64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.27.0.tgz#1758a85dcc09b387fd57621643e77b25e0ccba59" - integrity sha512-1hBWx4OUJE2cab++aVZ7pObD6s+DK4mPGpemtnAORBvb5l/g5xFGk0vc0PjSkrDs0XaXj9yyob3d14XqvnQ4gw== - -"@esbuild/netbsd-arm64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.0.tgz#a0131159f4db6e490da35cc4bb51ef0d03b7848a" - integrity sha512-6m0sfQfxfQfy1qRuecMkJlf1cIzTOgyaeXaiVaaki8/v+WB+U4hc6ik15ZW6TAllRlg/WuQXxWj1jx6C+dfy3w== - -"@esbuild/netbsd-x64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.27.0.tgz#6f4877d7c2ba425a2b80e4330594e0b43caa2d7d" - integrity sha512-xbbOdfn06FtcJ9d0ShxxvSn2iUsGd/lgPIO2V3VZIPDbEaIj1/3nBBe1AwuEZKXVXkMmpr6LUAgMkLD/4D2PPA== - -"@esbuild/openbsd-arm64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.0.tgz#cbefbd4c2f375cebeb4f965945be6cf81331bd01" - integrity sha512-fWgqR8uNbCQ/GGv0yhzttj6sU/9Z5/Sv/VGU3F5OuXK6J6SlriONKrQ7tNlwBrJZXRYk5jUhuWvF7GYzGguBZQ== - -"@esbuild/openbsd-x64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.27.0.tgz#31fa9e8649fc750d7c2302c8b9d0e1547f57bc84" - integrity sha512-aCwlRdSNMNxkGGqQajMUza6uXzR/U0dIl1QmLjPtRbLOx3Gy3otfFu/VjATy4yQzo9yFDGTxYDo1FfAD9oRD2A== - -"@esbuild/openharmony-arm64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.0.tgz#03727780f1fdf606e7b56193693a715d9f1ee001" - integrity sha512-nyvsBccxNAsNYz2jVFYwEGuRRomqZ149A39SHWk4hV0jWxKM0hjBPm3AmdxcbHiFLbBSwG6SbpIcUbXjgyECfA== - -"@esbuild/sunos-x64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.27.0.tgz#866a35f387234a867ced35af8906dfffb073b9ff" - integrity sha512-Q1KY1iJafM+UX6CFEL+F4HRTgygmEW568YMqDA5UV97AuZSm21b7SXIrRJDwXWPzr8MGr75fUZPV67FdtMHlHA== - -"@esbuild/win32-arm64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.27.0.tgz#53de43a9629b8a34678f28cd56cc104db1b67abb" - integrity sha512-W1eyGNi6d+8kOmZIwi/EDjrL9nxQIQ0MiGqe/AWc6+IaHloxHSGoeRgDRKHFISThLmsewZ5nHFvGFWdBYlgKPg== - -"@esbuild/win32-ia32@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.27.0.tgz#924d2aed8692fea5d27bfb6500f9b8b9c1a34af4" - integrity sha512-30z1aKL9h22kQhilnYkORFYt+3wp7yZsHWus+wSKAJR8JtdfI76LJ4SBdMsCopTR3z/ORqVu5L1vtnHZWVj4cQ== - -"@esbuild/win32-x64@0.27.0": - version "0.27.0" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.27.0.tgz#64995295227e001f2940258617c6674efb3ac48d" - integrity sha512-aIitBcjQeyOhMTImhLZmtxfdOcuNRpwlPNmlFKPcHQYPhEssw75Cl1TSXJXpMkzaua9FUetx/4OQKq7eJul5Cg== +"@esbuild/aix-ppc64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz#80fcbe36130e58b7670511e888b8e88a259ed76c" + integrity sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA== + +"@esbuild/android-arm64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz#8aa4965f8d0a7982dc21734bf6601323a66da752" + integrity sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg== + +"@esbuild/android-arm@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.25.12.tgz#300712101f7f50f1d2627a162e6e09b109b6767a" + integrity sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg== + +"@esbuild/android-x64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.25.12.tgz#87dfb27161202bdc958ef48bb61b09c758faee16" + integrity sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg== + +"@esbuild/darwin-arm64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz#79197898ec1ff745d21c071e1c7cc3c802f0c1fd" + integrity sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg== + +"@esbuild/darwin-x64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz#146400a8562133f45c4d2eadcf37ddd09718079e" + integrity sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA== + +"@esbuild/freebsd-arm64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz#1c5f9ba7206e158fd2b24c59fa2d2c8bb47ca0fe" + integrity sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg== + +"@esbuild/freebsd-x64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz#ea631f4a36beaac4b9279fa0fcc6ca29eaeeb2b3" + integrity sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ== + +"@esbuild/linux-arm64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz#e1066bce58394f1b1141deec8557a5f0a22f5977" + integrity sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ== + +"@esbuild/linux-arm@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz#452cd66b20932d08bdc53a8b61c0e30baf4348b9" + integrity sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw== + +"@esbuild/linux-ia32@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz#b24f8acc45bcf54192c7f2f3be1b53e6551eafe0" + integrity sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA== + +"@esbuild/linux-loong64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz#f9cfffa7fc8322571fbc4c8b3268caf15bd81ad0" + integrity sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng== + +"@esbuild/linux-mips64el@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz#575a14bd74644ffab891adc7d7e60d275296f2cd" + integrity sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw== + +"@esbuild/linux-ppc64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz#75b99c70a95fbd5f7739d7692befe60601591869" + integrity sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA== + +"@esbuild/linux-riscv64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz#2e3259440321a44e79ddf7535c325057da875cd6" + integrity sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w== + +"@esbuild/linux-s390x@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz#17676cabbfe5928da5b2a0d6df5d58cd08db2663" + integrity sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg== + +"@esbuild/linux-x64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz#0583775685ca82066d04c3507f09524d3cd7a306" + integrity sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw== + +"@esbuild/netbsd-arm64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz#f04c4049cb2e252fe96b16fed90f70746b13f4a4" + integrity sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg== + +"@esbuild/netbsd-x64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz#77da0d0a0d826d7c921eea3d40292548b258a076" + integrity sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ== + +"@esbuild/openbsd-arm64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz#6296f5867aedef28a81b22ab2009c786a952dccd" + integrity sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A== + +"@esbuild/openbsd-x64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz#f8d23303360e27b16cf065b23bbff43c14142679" + integrity sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw== + +"@esbuild/openharmony-arm64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz#49e0b768744a3924be0d7fd97dd6ce9b2923d88d" + integrity sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg== + +"@esbuild/sunos-x64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz#a6ed7d6778d67e528c81fb165b23f4911b9b13d6" + integrity sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w== + +"@esbuild/win32-arm64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz#9ac14c378e1b653af17d08e7d3ce34caef587323" + integrity sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg== + +"@esbuild/win32-ia32@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz#918942dcbbb35cc14fca39afb91b5e6a3d127267" + integrity sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ== + +"@esbuild/win32-x64@0.25.12": + version "0.25.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz#9bdad8176be7811ad148d1f8772359041f46c6c5" + integrity sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA== "@eslint-community/eslint-utils@^4.4.0": version "4.4.0" @@ -592,6 +614,15 @@ hey-listen "^1.0.8" tslib "^2.3.1" +"@napi-rs/wasm-runtime@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz#c3705ab549d176b8dc5172723d6156c3dc426af2" + integrity sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A== + dependencies: + "@emnapi/core" "^1.7.1" + "@emnapi/runtime" "^1.7.1" + "@tybys/wasm-util" "^0.10.1" + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -613,125 +644,227 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" +"@oxc-project/types@=0.120.0": + version "0.120.0" + resolved "https://registry.yarnpkg.com/@oxc-project/types/-/types-0.120.0.tgz#af521b0e689dd0eaa04fe4feef9b68d98b74783d" + integrity sha512-k1YNu55DuvAip/MGE1FTsIuU3FUCn6v/ujG9V7Nq5Df/kX2CWb13hhwD0lmJGMGqE+bE1MXvv9SZVnMzEXlWcg== + "@pkgjs/parseargs@^0.11.0": version "0.11.0" resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== -"@remix-run/router@1.19.2": - version "1.19.2" - resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.19.2.tgz#0c896535473291cb41f152c180bedd5680a3b273" - integrity sha512-baiMx18+IMuD1yyvOGaHM9QrVUPGGG0jC+z+IPHnRJWUAUvaKuWKyE8gjDj2rzv3sz9zOGoRSPgeBVHRhZnBlA== - -"@rollup/rollup-android-arm-eabi@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.53.2.tgz#7131f3d364805067fd5596302aad9ebef1434b32" - integrity sha512-yDPzwsgiFO26RJA4nZo8I+xqzh7sJTZIWQOxn+/XOdPE31lAvLIYCKqjV+lNH/vxE2L2iH3plKxDCRK6i+CwhA== - -"@rollup/rollup-android-arm64@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.53.2.tgz#7ede14d7fcf7c57821a2731c04b29ccc03145d82" - integrity sha512-k8FontTxIE7b0/OGKeSN5B6j25EuppBcWM33Z19JoVT7UTXFSo3D9CdU39wGTeb29NO3XxpMNauh09B+Ibw+9g== - -"@rollup/rollup-darwin-arm64@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.53.2.tgz#d59bf9ed582b38838e86a17f91720c17db6575b9" - integrity sha512-A6s4gJpomNBtJ2yioj8bflM2oogDwzUiMl2yNJ2v9E7++sHrSrsQ29fOfn5DM/iCzpWcebNYEdXpaK4tr2RhfQ== - -"@rollup/rollup-darwin-x64@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.53.2.tgz#a76278d9b9da9f84ea7909a14d93b915d5bbe01e" - integrity sha512-e6XqVmXlHrBlG56obu9gDRPW3O3hLxpwHpLsBJvuI8qqnsrtSZ9ERoWUXtPOkY8c78WghyPHZdmPhHLWNdAGEw== - -"@rollup/rollup-freebsd-arm64@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.53.2.tgz#1a94821a1f565b9eaa74187632d482e4c59a1707" - integrity sha512-v0E9lJW8VsrwPux5Qe5CwmH/CF/2mQs6xU1MF3nmUxmZUCHazCjLgYvToOk+YuuUqLQBio1qkkREhxhc656ViA== - -"@rollup/rollup-freebsd-x64@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.53.2.tgz#aad2274680106b2b6549b1e35e5d3a7a9f1f16af" - integrity sha512-ClAmAPx3ZCHtp6ysl4XEhWU69GUB1D+s7G9YjHGhIGCSrsg00nEGRRZHmINYxkdoJehde8VIsDC5t9C0gb6yqA== - -"@rollup/rollup-linux-arm-gnueabihf@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.53.2.tgz#100fe4306399ffeec47318a3c9b8c0e5e8b07ddb" - integrity sha512-EPlb95nUsz6Dd9Qy13fI5kUPXNSljaG9FiJ4YUGU1O/Q77i5DYFW5KR8g1OzTcdZUqQQ1KdDqsTohdFVwCwjqg== - -"@rollup/rollup-linux-arm-musleabihf@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.53.2.tgz#b84634952604b950e18fa11fddebde898c5928d8" - integrity sha512-BOmnVW+khAUX+YZvNfa0tGTEMVVEerOxN0pDk2E6N6DsEIa2Ctj48FOMfNDdrwinocKaC7YXUZ1pHlKpnkja/Q== - -"@rollup/rollup-linux-arm64-gnu@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.53.2.tgz#dad6f2fb41c2485f29a98e40e9bd78253255dbf3" - integrity sha512-Xt2byDZ+6OVNuREgBXr4+CZDJtrVso5woFtpKdGPhpTPHcNG7D8YXeQzpNbFRxzTVqJf7kvPMCub/pcGUWgBjA== - -"@rollup/rollup-linux-arm64-musl@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.53.2.tgz#0f3f77c8ce9fbf982f8a8378b70a73dc6704a706" - integrity sha512-+LdZSldy/I9N8+klim/Y1HsKbJ3BbInHav5qE9Iy77dtHC/pibw1SR/fXlWyAk0ThnpRKoODwnAuSjqxFRDHUQ== - -"@rollup/rollup-linux-loong64-gnu@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.53.2.tgz#870bb94e9dad28bb3124ba49bd733deaa6aa2635" - integrity sha512-8ms8sjmyc1jWJS6WdNSA23rEfdjWB30LH8Wqj0Cqvv7qSHnvw6kgMMXRdop6hkmGPlyYBdRPkjJnj3KCUHV/uQ== - -"@rollup/rollup-linux-ppc64-gnu@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.53.2.tgz#188427d11abefc6c9926e3870b3e032170f5577c" - integrity sha512-3HRQLUQbpBDMmzoxPJYd3W6vrVHOo2cVW8RUo87Xz0JPJcBLBr5kZ1pGcQAhdZgX9VV7NbGNipah1omKKe23/g== - -"@rollup/rollup-linux-riscv64-gnu@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.53.2.tgz#9dec6eadbbb5abd3b76fe624dc4f006913ff4a7f" - integrity sha512-fMjKi+ojnmIvhk34gZP94vjogXNNUKMEYs+EDaB/5TG/wUkoeua7p7VCHnE6T2Tx+iaghAqQX8teQzcvrYpaQA== - -"@rollup/rollup-linux-riscv64-musl@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.53.2.tgz#b26ba1c80b6f104dc5bd83ed83181fc0411a0c38" - integrity sha512-XuGFGU+VwUUV5kLvoAdi0Wz5Xbh2SrjIxCtZj6Wq8MDp4bflb/+ThZsVxokM7n0pcbkEr2h5/pzqzDYI7cCgLQ== - -"@rollup/rollup-linux-s390x-gnu@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.53.2.tgz#dc83647189b68ad8d56a956a6fcaa4ee9c728190" - integrity sha512-w6yjZF0P+NGzWR3AXWX9zc0DNEGdtvykB03uhonSHMRa+oWA6novflo2WaJr6JZakG2ucsyb+rvhrKac6NIy+w== - -"@rollup/rollup-linux-x64-gnu@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.2.tgz#42c3b8c94e9de37bd103cb2e26fb715118ef6459" - integrity sha512-yo8d6tdfdeBArzC7T/PnHd7OypfI9cbuZzPnzLJIyKYFhAQ8SvlkKtKBMbXDxe1h03Rcr7u++nFS7tqXz87Gtw== - -"@rollup/rollup-linux-x64-musl@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.53.2.tgz#d0e216ee1ea16bfafe35681b899b6a05258988e5" - integrity sha512-ah59c1YkCxKExPP8O9PwOvs+XRLKwh/mV+3YdKqQ5AMQ0r4M4ZDuOrpWkUaqO7fzAHdINzV9tEVu8vNw48z0lA== - -"@rollup/rollup-openharmony-arm64@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.53.2.tgz#3acd0157cb8976f659442bfd8a99aca46f8a2931" - integrity sha512-4VEd19Wmhr+Zy7hbUsFZ6YXEiP48hE//KPLCSVNY5RMGX2/7HZ+QkN55a3atM1C/BZCGIgqN+xrVgtdak2S9+A== - -"@rollup/rollup-win32-arm64-msvc@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.53.2.tgz#3eb9e7d4d0e1d2e0850c4ee9aa2d0ddf89a8effa" - integrity sha512-IlbHFYc/pQCgew/d5fslcy1KEaYVCJ44G8pajugd8VoOEI8ODhtb/j8XMhLpwHCMB3yk2J07ctup10gpw2nyMA== - -"@rollup/rollup-win32-ia32-msvc@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.53.2.tgz#d69280bc6680fe19e0956e965811946d542f6365" - integrity sha512-lNlPEGgdUfSzdCWU176ku/dQRnA7W+Gp8d+cWv73jYrb8uT7HTVVxq62DUYxjbaByuf1Yk0RIIAbDzp+CnOTFg== - -"@rollup/rollup-win32-x64-gnu@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.53.2.tgz#d182ce91e342bad9cbb8b284cf33ac542b126ead" - integrity sha512-S6YojNVrHybQis2lYov1sd+uj7K0Q05NxHcGktuMMdIQ2VixGwAfbJ23NnlvvVV1bdpR2m5MsNBViHJKcA4ADw== - -"@rollup/rollup-win32-x64-msvc@4.53.2": - version "4.53.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.2.tgz#d9ab606437fd072b2cb7df7e54bcdc7f1ccbe8b4" - integrity sha512-k+/Rkcyx//P6fetPoLMb8pBeqJBNGx81uuf7iljX9++yNBVRDQgD04L+SVXmXmh5ZP4/WOp4mWF0kmi06PW2tA== +"@remix-run/router@1.23.2": + version "1.23.2" + resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.23.2.tgz#156c4b481c0bee22a19f7924728a67120de06971" + integrity sha512-Ic6m2U/rMjTkhERIa/0ZtXJP17QUi2CbWE7cqx4J58M8aA3QTfW+2UlQ4psvTX9IO1RfNVhK3pcpdjej7L+t2w== + +"@rolldown/binding-android-arm64@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.10.tgz#0bbd3380f49a6d0dc96c9b32fb7dad26ae0dfaa7" + integrity sha512-jOHxwXhxmFKuXztiu1ORieJeTbx5vrTkcOkkkn2d35726+iwhrY1w/+nYY/AGgF12thg33qC3R1LMBF5tHTZHg== + +"@rolldown/binding-darwin-arm64@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.10.tgz#a30b051784fbb13635e652ba4041c6ce7a4ce7ab" + integrity sha512-gED05Teg/vtTZbIJBc4VNMAxAFDUPkuO/rAIyyxZjTj1a1/s6z5TII/5yMGZ0uLRCifEtwUQn8OlYzuYc0m70w== + +"@rolldown/binding-darwin-x64@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.10.tgz#2d9dea982d5be90b95b6d8836ff26a4b0959d94b" + integrity sha512-rI15NcM1mA48lqrIxVkHfAqcyFLcQwyXWThy+BQ5+mkKKPvSO26ir+ZDp36AgYoYVkqvMcdS8zOE6SeBsR9e8A== + +"@rolldown/binding-freebsd-x64@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.10.tgz#4efc3aca43ae4dfb90729eeca6e84ef6e6b38c4a" + integrity sha512-XZRXHdTa+4ME1MuDVp021+doQ+z6Ei4CCFmNc5/sKbqb8YmkiJdj8QKlV3rCI0AJtAeSB5n0WGPuJWNL9p/L2w== + +"@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.10.tgz#4a19a5d24537e925b25e9583b6cd575b2ad9fa27" + integrity sha512-R0SQMRluISSLzFE20sPWYHVmJdDQnRyc/FzSCN72BqQmh2SOZUFG+N3/vBZpR4C6WpEUVYJLrYUXaj43sJsNLA== + +"@rolldown/binding-linux-arm64-gnu@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.10.tgz#01a41e5e905838353ae9a3da10dc8242dcd61453" + integrity sha512-Y1reMrV/o+cwpduYhJuOE3OMKx32RMYCidf14y+HssARRmhDuWXJ4yVguDg2R/8SyyGNo+auzz64LnPK9Hq6jg== + +"@rolldown/binding-linux-arm64-musl@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.10.tgz#bd059e5f83471de29ce35b0ba254995d8091ca40" + integrity sha512-vELN+HNb2IzuzSBUOD4NHmP9yrGwl1DVM29wlQvx1OLSclL0NgVWnVDKl/8tEks79EFek/kebQKnNJkIAA4W2g== + +"@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.10.tgz#fe726a540631015f269a989c0cfb299283190390" + integrity sha512-ZqrufYTgzxbHwpqOjzSsb0UV/aV2TFIY5rP8HdsiPTv/CuAgCRjM6s9cYFwQ4CNH+hf9Y4erHW1GjZuZ7WoI7w== + +"@rolldown/binding-linux-s390x-gnu@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.10.tgz#825ced028bad3f1fa9ce83b1f3dac76e0424367f" + integrity sha512-gSlmVS1FZJSRicA6IyjoRoKAFK7IIHBs7xJuHRSmjImqk3mPPWbR7RhbnfH2G6bcmMEllCt2vQ/7u9e6bBnByg== + +"@rolldown/binding-linux-x64-gnu@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.10.tgz#b700dae69274aa3d54a16ca5e00e30f47a089119" + integrity sha512-eOCKUpluKgfObT2pHjztnaWEIbUabWzk3qPZ5PuacuPmr4+JtQG4k2vGTY0H15edaTnicgU428XW/IH6AimcQw== + +"@rolldown/binding-linux-x64-musl@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.10.tgz#eb875660ad68a2348acab36a7005699e87f6e9dd" + integrity sha512-Xdf2jQbfQowJnLcgYfD/m0Uu0Qj5OdxKallD78/IPPfzaiaI4KRAwZzHcKQ4ig1gtg1SuzC7jovNiM2TzQsBXA== + +"@rolldown/binding-openharmony-arm64@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.10.tgz#72aa24b412f83025087bcf83ce09634b2bd93c5c" + integrity sha512-o1hYe8hLi1EY6jgPFyxQgQ1wcycX+qz8eEbVmot2hFkgUzPxy9+kF0u0NIQBeDq+Mko47AkaFFaChcvZa9UX9Q== + +"@rolldown/binding-wasm32-wasi@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.10.tgz#7f3303a96c5dc01d1f4c539b1dcbc16392c6f17d" + integrity sha512-Ugv9o7qYJudqQO5Y5y2N2SOo6S4WiqiNOpuQyoPInnhVzCY+wi/GHltcLHypG9DEUYMB0iTB/huJrpadiAcNcA== + dependencies: + "@napi-rs/wasm-runtime" "^1.1.1" + +"@rolldown/binding-win32-arm64-msvc@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.10.tgz#3419144a04ad12c69c48536b01fc21ac9d87ecf4" + integrity sha512-7UODQb4fQUNT/vmgDZBl3XOBAIOutP5R3O/rkxg0aLfEGQ4opbCgU5vOw/scPe4xOqBwL9fw7/RP1vAMZ6QlAQ== + +"@rolldown/binding-win32-x64-msvc@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.10.tgz#09bee46e6a32c6086beeabc3da12e67be714f882" + integrity sha512-PYxKHMVHOb5NJuDL53vBUl1VwUjymDcYI6rzpIni0C9+9mTiJedvUxSk7/RPp7OOAm3v+EjgMu9bIy3N6b408w== + +"@rolldown/pluginutils@1.0.0-rc.10": + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.10.tgz#eed997f37f928a3300bbe2161f42687d8a3ae759" + integrity sha512-UkVDEFk1w3mveXeKgaTuYfKWtPbvgck1dT8TUG3bnccrH0XtLTuAyfCoks4Q/M5ZGToSVJTIQYCzy2g/atAOeg== + +"@rollup/rollup-android-arm-eabi@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz#a6742c74c7d9d6d604ef8a48f99326b4ecda3d82" + integrity sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg== + +"@rollup/rollup-android-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz#97247be098de4df0c11971089fd2edf80a5da8cf" + integrity sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q== + +"@rollup/rollup-darwin-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz#674852cf14cf11b8056e0b1a2f4e872b523576cf" + integrity sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg== + +"@rollup/rollup-darwin-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz#36dfd7ed0aaf4d9d89d9ef983af72632455b0246" + integrity sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w== + +"@rollup/rollup-freebsd-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz#2f87c2074b4220260fdb52a9996246edfc633c22" + integrity sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA== + +"@rollup/rollup-freebsd-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz#9b5a26522a38a95dc06616d1939d4d9a76937803" + integrity sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg== + +"@rollup/rollup-linux-arm-gnueabihf@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz#86aa4859385a8734235b5e40a48e52d770758c3a" + integrity sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw== + +"@rollup/rollup-linux-arm-musleabihf@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz#cbe70e56e6ece8dac83eb773b624fc9e5a460976" + integrity sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA== + +"@rollup/rollup-linux-arm64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz#d14992a2e653bc3263d284bc6579b7a2890e1c45" + integrity sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA== + +"@rollup/rollup-linux-arm64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz#2fdd1ddc434ea90aeaa0851d2044789b4d07f6da" + integrity sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA== + +"@rollup/rollup-linux-loong64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz#8a181e6f89f969f21666a743cd411416c80099e7" + integrity sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg== + +"@rollup/rollup-linux-loong64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz#904125af2babc395f8061daa27b5af1f4e3f2f78" + integrity sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q== + +"@rollup/rollup-linux-ppc64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz#a57970ac6864c9a3447411a658224bdcf948be22" + integrity sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA== + +"@rollup/rollup-linux-ppc64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz#bb84de5b26870567a4267666e08891e80bb56a63" + integrity sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA== + +"@rollup/rollup-linux-riscv64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz#72d00d2c7fb375ce3564e759db33f17a35bffab9" + integrity sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg== + +"@rollup/rollup-linux-riscv64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz#4c166ef58e718f9245bd31873384ba15a5c1a883" + integrity sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg== + +"@rollup/rollup-linux-s390x-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz#bb5025cde9a61db478c2ca7215808ad3bce73a09" + integrity sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w== + +"@rollup/rollup-linux-x64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz#9b66b1f9cd95c6624c788f021c756269ffed1552" + integrity sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg== + +"@rollup/rollup-linux-x64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz#b007ca255dc7166017d57d7d2451963f0bd23fd9" + integrity sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg== + +"@rollup/rollup-openbsd-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz#e8b357b2d1aa2c8d76a98f5f0d889eabe93f4ef9" + integrity sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ== + +"@rollup/rollup-openharmony-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz#96c2e3f4aacd3d921981329831ff8dde492204dc" + integrity sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA== + +"@rollup/rollup-win32-arm64-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz#2d865149d706d938df8b4b8f117e69a77646d581" + integrity sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A== + +"@rollup/rollup-win32-ia32-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz#abe1593be0fa92325e9971c8da429c5e05b92c36" + integrity sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA== + +"@rollup/rollup-win32-x64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz#c4af3e9518c9a5cd4b1c163dc81d0ad4d82e7eab" + integrity sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA== + +"@rollup/rollup-win32-x64-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz#4584a8a87b29188a4c1fe987a9fcf701e256d86c" + integrity sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA== "@standard-schema/spec@^1.0.0": version "1.0.0" @@ -819,6 +952,13 @@ dependencies: "@swc/counter" "^0.1.3" +"@tybys/wasm-util@^0.10.1": + version "0.10.1" + resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.10.1.tgz#ecddd3205cf1e2d5274649ff0eedd2991ed7f414" + integrity sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg== + dependencies: + tslib "^2.4.0" + "@types/chai@^5.2.2": version "5.2.3" resolved "https://registry.yarnpkg.com/@types/chai/-/chai-5.2.3.tgz#8e9cd9e1c3581fa6b341a5aed5588eb285be0b4a" @@ -1054,10 +1194,10 @@ acorn@^8.15.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== -ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== +ajv@6.14.0, ajv@^6.12.4: + version "6.14.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.14.0.tgz#fd067713e228210636ebb08c60bd3765d6dbe73a" + integrity sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw== dependencies: fast-deep-equal "^3.1.1" fast-json-stable-stringify "^2.0.0" @@ -1138,13 +1278,13 @@ autoprefixer@^10.4.20: picocolors "^1.0.1" postcss-value-parser "^4.2.0" -axios@^1.13.2: - version "1.13.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.13.2.tgz#9ada120b7b5ab24509553ec3e40123521117f687" - integrity sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA== +axios@^1.13.5: + version "1.13.6" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.13.6.tgz#c3f92da917dc209a15dd29936d20d5089b6b6c98" + integrity sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ== dependencies: - follow-redirects "^1.15.6" - form-data "^4.0.4" + follow-redirects "^1.15.11" + form-data "^4.0.5" proxy-from-env "^1.1.0" babel-plugin-macros@^3.1.0: @@ -1174,13 +1314,6 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -brace-expansion@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.2.tgz#54fc53237a613d854c7bd37463aad17df87214e7" - integrity sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ== - dependencies: - balanced-match "^1.0.0" - braces@^3.0.3, braces@~3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" @@ -1352,6 +1485,11 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== +detect-libc@^2.0.3: + version "2.1.2" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.1.2.tgz#689c5dcdc1900ef5583a4cb9f6d7b473742074ad" + integrity sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ== + didyoumean@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" @@ -1438,37 +1576,37 @@ es-set-tostringtag@^2.1.0: has-tostringtag "^1.0.2" hasown "^2.0.2" -esbuild@0.27.0, esbuild@^0.21.3, esbuild@^0.25.0: - version "0.27.0" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.27.0.tgz#db983bed6f76981361c92f50cf6a04c66f7b3e1d" - integrity sha512-jd0f4NHbD6cALCyGElNpGAOtWxSq46l9X/sWB0Nzd5er4Kz2YTm+Vl0qKFT9KUJvD8+fiO8AvoHhFvEatfVixA== +esbuild@^0.25.0: + version "0.25.12" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.25.12.tgz#97a1d041f4ab00c2fce2f838d2b9969a2d2a97a5" + integrity sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg== optionalDependencies: - "@esbuild/aix-ppc64" "0.27.0" - "@esbuild/android-arm" "0.27.0" - "@esbuild/android-arm64" "0.27.0" - "@esbuild/android-x64" "0.27.0" - "@esbuild/darwin-arm64" "0.27.0" - "@esbuild/darwin-x64" "0.27.0" - "@esbuild/freebsd-arm64" "0.27.0" - "@esbuild/freebsd-x64" "0.27.0" - "@esbuild/linux-arm" "0.27.0" - "@esbuild/linux-arm64" "0.27.0" - "@esbuild/linux-ia32" "0.27.0" - "@esbuild/linux-loong64" "0.27.0" - "@esbuild/linux-mips64el" "0.27.0" - "@esbuild/linux-ppc64" "0.27.0" - "@esbuild/linux-riscv64" "0.27.0" - "@esbuild/linux-s390x" "0.27.0" - "@esbuild/linux-x64" "0.27.0" - "@esbuild/netbsd-arm64" "0.27.0" - "@esbuild/netbsd-x64" "0.27.0" - "@esbuild/openbsd-arm64" "0.27.0" - "@esbuild/openbsd-x64" "0.27.0" - "@esbuild/openharmony-arm64" "0.27.0" - "@esbuild/sunos-x64" "0.27.0" - "@esbuild/win32-arm64" "0.27.0" - "@esbuild/win32-ia32" "0.27.0" - "@esbuild/win32-x64" "0.27.0" + "@esbuild/aix-ppc64" "0.25.12" + "@esbuild/android-arm" "0.25.12" + "@esbuild/android-arm64" "0.25.12" + "@esbuild/android-x64" "0.25.12" + "@esbuild/darwin-arm64" "0.25.12" + "@esbuild/darwin-x64" "0.25.12" + "@esbuild/freebsd-arm64" "0.25.12" + "@esbuild/freebsd-x64" "0.25.12" + "@esbuild/linux-arm" "0.25.12" + "@esbuild/linux-arm64" "0.25.12" + "@esbuild/linux-ia32" "0.25.12" + "@esbuild/linux-loong64" "0.25.12" + "@esbuild/linux-mips64el" "0.25.12" + "@esbuild/linux-ppc64" "0.25.12" + "@esbuild/linux-riscv64" "0.25.12" + "@esbuild/linux-s390x" "0.25.12" + "@esbuild/linux-x64" "0.25.12" + "@esbuild/netbsd-arm64" "0.25.12" + "@esbuild/netbsd-x64" "0.25.12" + "@esbuild/openbsd-arm64" "0.25.12" + "@esbuild/openbsd-x64" "0.25.12" + "@esbuild/openharmony-arm64" "0.25.12" + "@esbuild/sunos-x64" "0.25.12" + "@esbuild/win32-arm64" "0.25.12" + "@esbuild/win32-ia32" "0.25.12" + "@esbuild/win32-x64" "0.25.12" escalade@^3.1.2: version "3.2.0" @@ -1666,15 +1804,15 @@ flat-cache@^4.0.0: flatted "^3.2.9" keyv "^4.5.4" -flatted@^3.2.9: - version "3.3.3" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.3.tgz#67c8fad95454a7c7abebf74bb78ee74a44023358" - integrity sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg== +flatted@3.4.2, flatted@^3.2.9: + version "3.4.2" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.4.2.tgz#f5c23c107f0f37de8dbdf24f13722b3b98d52726" + integrity sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA== -follow-redirects@^1.15.6: - version "1.15.9" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1" - integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== +follow-redirects@^1.15.11: + version "1.15.11" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.11.tgz#777d73d72a92f8ec4d2e410eb47352a56b8e8340" + integrity sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ== foreground-child@^3.1.0: version "3.3.1" @@ -1684,10 +1822,10 @@ foreground-child@^3.1.0: cross-spawn "^7.0.6" signal-exit "^4.0.1" -form-data@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.4.tgz#784cdcce0669a9d68e94d11ac4eea98088edd2c4" - integrity sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow== +form-data@^4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.5.tgz#b49e48858045ff4cbf6b03e1805cebcad3679053" + integrity sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" @@ -1769,10 +1907,10 @@ glob-parent@^6.0.2: dependencies: is-glob "^4.0.3" -glob@^10.3.10: - version "10.4.5" - resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956" - integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg== +glob@^10.3.10, glob@^10.5.0: + version "10.5.0" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.5.0.tgz#8ec0355919cd3338c28428a23d4f24ecc5fe738c" + integrity sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg== dependencies: foreground-child "^3.1.0" jackspeak "^3.1.2" @@ -1991,6 +2129,80 @@ lie@3.1.1: dependencies: immediate "~3.0.5" +lightningcss-android-arm64@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz#f033885116dfefd9c6f54787523e3514b61e1968" + integrity sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg== + +lightningcss-darwin-arm64@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz#50b71871b01c8199584b649e292547faea7af9b5" + integrity sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ== + +lightningcss-darwin-x64@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz#35f3e97332d130b9ca181e11b568ded6aebc6d5e" + integrity sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w== + +lightningcss-freebsd-x64@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz#9777a76472b64ed6ff94342ad64c7bafd794a575" + integrity sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig== + +lightningcss-linux-arm-gnueabihf@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz#13ae652e1ab73b9135d7b7da172f666c410ad53d" + integrity sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw== + +lightningcss-linux-arm64-gnu@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz#417858795a94592f680123a1b1f9da8a0e1ef335" + integrity sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ== + +lightningcss-linux-arm64-musl@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz#6be36692e810b718040802fd809623cffe732133" + integrity sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg== + +lightningcss-linux-x64-gnu@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz#0b7803af4eb21cfd38dd39fe2abbb53c7dd091f6" + integrity sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA== + +lightningcss-linux-x64-musl@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz#88dc8ba865ddddb1ac5ef04b0f161804418c163b" + integrity sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg== + +lightningcss-win32-arm64-msvc@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz#4f30ba3fa5e925f5b79f945e8cc0d176c3b1ab38" + integrity sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw== + +lightningcss-win32-x64-msvc@1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz#141aa5605645064928902bb4af045fa7d9f4220a" + integrity sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q== + +lightningcss@^1.32.0: + version "1.32.0" + resolved "https://registry.yarnpkg.com/lightningcss/-/lightningcss-1.32.0.tgz#b85aae96486dcb1bf49a7c8571221273f4f1e4a9" + integrity sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ== + dependencies: + detect-libc "^2.0.3" + optionalDependencies: + lightningcss-android-arm64 "1.32.0" + lightningcss-darwin-arm64 "1.32.0" + lightningcss-darwin-x64 "1.32.0" + lightningcss-freebsd-x64 "1.32.0" + lightningcss-linux-arm-gnueabihf "1.32.0" + lightningcss-linux-arm64-gnu "1.32.0" + lightningcss-linux-arm64-musl "1.32.0" + lightningcss-linux-x64-gnu "1.32.0" + lightningcss-linux-x64-musl "1.32.0" + lightningcss-win32-arm64-msvc "1.32.0" + lightningcss-win32-x64-msvc "1.32.0" + lilconfig@^3.1.1, lilconfig@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-3.1.3.tgz#a1bcfd6257f9585bf5ae14ceeebb7b559025e4c4" @@ -2092,20 +2304,13 @@ mime-types@^2.1.12: dependencies: mime-db "1.52.0" -minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== +minimatch@^3.1.2, minimatch@^3.1.3, minimatch@^9.0.4: + version "3.1.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e" + integrity sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w== dependencies: brace-expansion "^1.1.7" -minimatch@^9.0.4: - version "9.0.5" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" - integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== - dependencies: - brace-expansion "^2.0.1" - "minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" @@ -2324,7 +2529,16 @@ postcss-value-parser@^4.0.0, postcss-value-parser@^4.2.0: resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== -postcss@^8.4.43, postcss@^8.5.6: +postcss@^8.4.47: + version "8.4.47" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.47.tgz#5bf6c9a010f3e724c503bf03ef7947dcb0fea365" + integrity sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ== + dependencies: + nanoid "^3.3.7" + picocolors "^1.1.0" + source-map-js "^1.2.1" + +postcss@^8.5.6: version "8.5.6" resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.6.tgz#2825006615a619b4f62a9e7426cc120b349a8f3c" integrity sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg== @@ -2333,13 +2547,13 @@ postcss@^8.4.43, postcss@^8.5.6: picocolors "^1.1.1" source-map-js "^1.2.1" -postcss@^8.4.47: - version "8.4.47" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.47.tgz#5bf6c9a010f3e724c503bf03ef7947dcb0fea365" - integrity sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ== +postcss@^8.5.8: + version "8.5.8" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.8.tgz#6230ecc8fb02e7a0f6982e53990937857e13f399" + integrity sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg== dependencies: - nanoid "^3.3.7" - picocolors "^1.1.0" + nanoid "^3.3.11" + picocolors "^1.1.1" source-map-js "^1.2.1" prelude-ls@^1.2.1: @@ -2420,20 +2634,20 @@ react-reconciler@~0.29.0: loose-envify "^1.1.0" scheduler "^0.23.2" -react-router-dom@^6.26.2: - version "6.26.2" - resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.26.2.tgz#a6e3b0cbd6bfd508e42b9342099d015a0ac59680" - integrity sha512-z7YkaEW0Dy35T3/QKPYB1LjMK2R1fxnHO8kWpUMTBdfVzZrWOiY9a7CtN8HqdWtDUWd5FY6Dl8HFsqVwH4uOtQ== +react-router-dom@^6.30.3: + version "6.30.3" + resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.30.3.tgz#42ae6dc4c7158bfb0b935f162b9621b29dddf740" + integrity sha512-pxPcv1AczD4vso7G4Z3TKcvlxK7g7TNt3/FNGMhfqyntocvYKj+GCatfigGDjbLozC4baguJ0ReCigoDJXb0ag== dependencies: - "@remix-run/router" "1.19.2" - react-router "6.26.2" + "@remix-run/router" "1.23.2" + react-router "6.30.3" -react-router@6.26.2: - version "6.26.2" - resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.26.2.tgz#2f0a68999168954431cdc29dd36cec3b6fa44a7e" - integrity sha512-tvN1iuT03kHgOFnLPfLJ8V95eijteveqdOSk+srqfePtQvqCExB8eHOYnlilbOcyJyKnYkr1vJvf7YqotAJu1A== +react-router@6.30.3: + version "6.30.3" + resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.30.3.tgz#994b3ccdbe0e81fe84d4f998100f62584dfbf1cf" + integrity sha512-XRnlbKMTmktBkjCLE8/XcZFlnHvr2Ltdr1eJX4idL55/9BbORzyZEaIkBFDhFGCEWBBItsVrDxwx3gnisMitdw== dependencies: - "@remix-run/router" "1.19.2" + "@remix-run/router" "1.23.2" react-select@^5.10.1: version "5.10.2" @@ -2512,35 +2726,62 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.1.0.tgz#0fe13b9522e1473f51b558ee796e08f11f9b489f" integrity sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw== -rollup@^4.20.0, rollup@^4.43.0: - version "4.53.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.53.2.tgz#98e73ee51e119cb9d88b07d026c959522416420a" - integrity sha512-MHngMYwGJVi6Fmnk6ISmnk7JAHRNF0UkuucA0CUW3N3a4KnONPEZz+vUanQP/ZC/iY1Qkf3bwPWzyY84wEks1g== +rolldown@1.0.0-rc.10: + version "1.0.0-rc.10" + resolved "https://registry.yarnpkg.com/rolldown/-/rolldown-1.0.0-rc.10.tgz#41c55e52d833c52c90131973047250548e35f2bf" + integrity sha512-q7j6vvarRFmKpgJUT8HCAUljkgzEp4LAhPlJUvQhA5LA1SUL36s5QCysMutErzL3EbNOZOkoziSx9iZC4FddKA== + dependencies: + "@oxc-project/types" "=0.120.0" + "@rolldown/pluginutils" "1.0.0-rc.10" + optionalDependencies: + "@rolldown/binding-android-arm64" "1.0.0-rc.10" + "@rolldown/binding-darwin-arm64" "1.0.0-rc.10" + "@rolldown/binding-darwin-x64" "1.0.0-rc.10" + "@rolldown/binding-freebsd-x64" "1.0.0-rc.10" + "@rolldown/binding-linux-arm-gnueabihf" "1.0.0-rc.10" + "@rolldown/binding-linux-arm64-gnu" "1.0.0-rc.10" + "@rolldown/binding-linux-arm64-musl" "1.0.0-rc.10" + "@rolldown/binding-linux-ppc64-gnu" "1.0.0-rc.10" + "@rolldown/binding-linux-s390x-gnu" "1.0.0-rc.10" + "@rolldown/binding-linux-x64-gnu" "1.0.0-rc.10" + "@rolldown/binding-linux-x64-musl" "1.0.0-rc.10" + "@rolldown/binding-openharmony-arm64" "1.0.0-rc.10" + "@rolldown/binding-wasm32-wasi" "1.0.0-rc.10" + "@rolldown/binding-win32-arm64-msvc" "1.0.0-rc.10" + "@rolldown/binding-win32-x64-msvc" "1.0.0-rc.10" + +rollup@^4.43.0, rollup@^4.59.0: + version "4.59.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.59.0.tgz#cf74edac17c1486f562d728a4d923a694abdf06f" + integrity sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg== dependencies: "@types/estree" "1.0.8" optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.53.2" - "@rollup/rollup-android-arm64" "4.53.2" - "@rollup/rollup-darwin-arm64" "4.53.2" - "@rollup/rollup-darwin-x64" "4.53.2" - "@rollup/rollup-freebsd-arm64" "4.53.2" - "@rollup/rollup-freebsd-x64" "4.53.2" - "@rollup/rollup-linux-arm-gnueabihf" "4.53.2" - "@rollup/rollup-linux-arm-musleabihf" "4.53.2" - "@rollup/rollup-linux-arm64-gnu" "4.53.2" - "@rollup/rollup-linux-arm64-musl" "4.53.2" - "@rollup/rollup-linux-loong64-gnu" "4.53.2" - "@rollup/rollup-linux-ppc64-gnu" "4.53.2" - "@rollup/rollup-linux-riscv64-gnu" "4.53.2" - "@rollup/rollup-linux-riscv64-musl" "4.53.2" - "@rollup/rollup-linux-s390x-gnu" "4.53.2" - "@rollup/rollup-linux-x64-gnu" "4.53.2" - "@rollup/rollup-linux-x64-musl" "4.53.2" - "@rollup/rollup-openharmony-arm64" "4.53.2" - "@rollup/rollup-win32-arm64-msvc" "4.53.2" - "@rollup/rollup-win32-ia32-msvc" "4.53.2" - "@rollup/rollup-win32-x64-gnu" "4.53.2" - "@rollup/rollup-win32-x64-msvc" "4.53.2" + "@rollup/rollup-android-arm-eabi" "4.59.0" + "@rollup/rollup-android-arm64" "4.59.0" + "@rollup/rollup-darwin-arm64" "4.59.0" + "@rollup/rollup-darwin-x64" "4.59.0" + "@rollup/rollup-freebsd-arm64" "4.59.0" + "@rollup/rollup-freebsd-x64" "4.59.0" + "@rollup/rollup-linux-arm-gnueabihf" "4.59.0" + "@rollup/rollup-linux-arm-musleabihf" "4.59.0" + "@rollup/rollup-linux-arm64-gnu" "4.59.0" + "@rollup/rollup-linux-arm64-musl" "4.59.0" + "@rollup/rollup-linux-loong64-gnu" "4.59.0" + "@rollup/rollup-linux-loong64-musl" "4.59.0" + "@rollup/rollup-linux-ppc64-gnu" "4.59.0" + "@rollup/rollup-linux-ppc64-musl" "4.59.0" + "@rollup/rollup-linux-riscv64-gnu" "4.59.0" + "@rollup/rollup-linux-riscv64-musl" "4.59.0" + "@rollup/rollup-linux-s390x-gnu" "4.59.0" + "@rollup/rollup-linux-x64-gnu" "4.59.0" + "@rollup/rollup-linux-x64-musl" "4.59.0" + "@rollup/rollup-openbsd-x64" "4.59.0" + "@rollup/rollup-openharmony-arm64" "4.59.0" + "@rollup/rollup-win32-arm64-msvc" "4.59.0" + "@rollup/rollup-win32-ia32-msvc" "4.59.0" + "@rollup/rollup-win32-x64-gnu" "4.59.0" + "@rollup/rollup-win32-x64-msvc" "4.59.0" fsevents "~2.3.2" run-parallel@^1.1.9: @@ -2800,6 +3041,11 @@ tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.1: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA== +tslib@^2.4.0: + version "2.8.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" + integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== + type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" @@ -2856,17 +3102,6 @@ util-deprecate@^1.0.2: resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -vite@^5.4.1: - version "5.4.21" - resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.21.tgz#84a4f7c5d860b071676d39ba513c0d598fdc7027" - integrity sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw== - dependencies: - esbuild "^0.21.3" - postcss "^8.4.43" - rollup "^4.20.0" - optionalDependencies: - fsevents "~2.3.3" - "vite@^6.0.0 || ^7.0.0": version "7.2.2" resolved "https://registry.yarnpkg.com/vite/-/vite-7.2.2.tgz#17dd62eac2d0ca0fa90131c5f56e4fefb8845362" @@ -2881,6 +3116,19 @@ vite@^5.4.1: optionalDependencies: fsevents "~2.3.3" +vite@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/vite/-/vite-8.0.1.tgz#015cef9a747c07c0cf9cf553f37571885504e9d3" + integrity sha512-wt+Z2qIhfFt85uiyRt5LPU4oVEJBXj8hZNWKeqFG4gRG/0RaRGJ7njQCwzFVjO+v4+Ipmf5CY7VdmZRAYYBPHw== + dependencies: + lightningcss "^1.32.0" + picomatch "^4.0.3" + postcss "^8.5.8" + rolldown "1.0.0-rc.10" + tinyglobby "^0.2.15" + optionalDependencies: + fsevents "~2.3.3" + vitest@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/vitest/-/vitest-4.0.8.tgz#0c61a81261cf51450c70bc3c9a05a31d8526b14d" From eba39d0a2f01ed49c9eea3fd8022e324421c4c33 Mon Sep 17 00:00:00 2001 From: Thaddeus Aid Date: Wed, 22 Apr 2026 23:30:13 -0700 Subject: [PATCH 24/28] test(rig): stand up Vitest + RTL + jsdom test platform Introduce the test-platform branch's working test rig: Vitest configured with jsdom + @vitejs/plugin-react-swc, a setup file that installs @testing-library/jest-dom and a Map-backed localStorage polyfill to work around Vitest 4's empty-object stub under Node 25, dedicated tsconfig.vitest.json, and reusable Konva / react-konva mocks under src/test/. Also relocates the three pre-existing gm.* tests from tests/ to sit adjacent to their source files per CLAUDE.md's placement rule and seeds model/log.md with the decision trail. The next commit adds the adjacent test suites for the rest of the codebase. Co-Authored-By: Claude Opus 4.7 (1M context) --- CLAUDE.md | 30 ++ model/log.md | 225 ++++++++++ package.json | 10 +- .../GalaxyMap}/gm.interactions.test.ts | 23 +- .../GalaxyMap}/gm.selectors.test.ts | 30 +- .../components/GalaxyMap}/gm.types.test.ts | 31 +- src/test/konvaMocks.tsx | 70 +++ src/test/setup.ts | 71 ++++ tsconfig.vitest.json | 14 +- vitest.config.ts | 17 +- yarn.lock | 400 +++++++++++++++++- 11 files changed, 880 insertions(+), 41 deletions(-) create mode 100644 CLAUDE.md create mode 100644 model/log.md rename {tests => src/components/GalaxyMap}/gm.interactions.test.ts (57%) rename {tests => src/components/GalaxyMap}/gm.selectors.test.ts (64%) rename {tests => src/components/GalaxyMap}/gm.types.test.ts (67%) create mode 100644 src/test/konvaMocks.tsx create mode 100644 src/test/setup.ts diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..7be97bf --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,30 @@ +# Project Context & Agent Role + +You are an expert AI software engineer collaborating on a React + Vite codebase. We are currently embarking on a dedicated session to build a functioning, industry-standard test platform (test rig) for the project. + +## Primary Goal +Establish a working test rig and implement comprehensive tests for all functionality currently present in the repository. The rig must load correctly and provide standard, readable output to the developer. + +## Rules and Constraints + +You must strictly adhere to the following workflow, architectural, and interaction constraints throughout our session: + +### 1. Git & Workflow +* **Branching Strategy:** You must create and switch to a new branch named `test-platform`. This branch must be created specifically from the base commit hash: `aca800c1d19cd842f872239dc16e8a1c5051bfa2`. +* **Initial Audit:** Before writing any test configurations or test cases, you must analyze the current repository state to identify and list all existing components, hooks, and utilities that require test coverage. + +### 2. Testing Framework & Tooling +* **Vite Integration:** Because this is a Vite project, you must implement **Vitest** (along with React Testing Library) rather than Jest. Do not introduce Jest, as it requires redundant configuration that conflicts with Vite's build pipeline. +* **Coverage Mandate:** You must write tests for *all* identified existing functionality in the codebase. Do not leave placeholder comments like `// TODO: add tests for X`. +* **File Naming & Structure:** Test files must strictly follow industry-standard naming conventions (e.g., `[filename].test.jsx` or `[filename].test.tsx`) and be placed adjacently to the files they are testing. + +### 3. Documentation & Logging +* **Decision Log:** You must create and continuously update a markdown file located exactly at `model/log.md`. +* **Log Contents:** For every significant action (e.g., configuring the test runner, mocking a provider, handling a complex component test), you must log: + 1. The action taken. + 2. The alternative choices considered. + 3. The specific technical reasoning for why you made your choice. + +### 4. Interaction Protocol +* **Three Options & A Recommendation:** Every time you complete a task, present a result, or need user direction, you must explicitly present exactly **3 distinct options** for how to move forward. +* Immediately following those 3 options, you must provide **1 specific recommendation** from among those choices, explaining why it is the best path forward. diff --git a/model/log.md b/model/log.md new file mode 100644 index 0000000..909ffd0 --- /dev/null +++ b/model/log.md @@ -0,0 +1,225 @@ +# Test Platform Decision Log + +This log captures every significant decision made while standing up the +`test-platform` branch's Vitest-based test rig and its accompanying tests. +Each entry records the action taken, the alternatives considered, and the +reasoning behind the chosen path. + +--- + +## 2026-04-22 — Session kickoff + +### 1. Branch creation strategy + +- **Action taken:** Created the `test-platform` branch from the mandated base + commit `aca800c1d19cd842f872239dc16e8a1c5051bfa2` via + `git checkout -b test-platform aca800c...`. The `CLAUDE.md` instruction file + was carried forward as a staged addition so the session-level instructions + persist on the new branch. +- **Alternatives considered:** + 1. Reset `main` in place to the base commit. Rejected because it rewrites the + published `main` history and destroys the three security-patch commits + that already shipped. + 2. Branch from the current `main` tip. Rejected because the CLAUDE.md brief + explicitly pins the base commit — branching later would silently pull in + post-base changes. + 3. Stash `CLAUDE.md`, checkout, unstash. Rejected because since `CLAUDE.md` + does not exist in either end of the checkout, the ordinary checkout + already carries the staged add forward cleanly — stash/unstash adds noise + with no benefit. +- **Reasoning:** The direct `checkout -b ` matches the branding contract + of "branch from this exact commit" while preserving the in-flight + instructions file. It is reversible (main untouched) and auditable. + +### 2. Initial repository audit + +- **Action taken:** Enumerated every source file under `src/**` and inspected + each one to classify its test surface. See "Audit inventory" below. +- **Alternatives considered:** + 1. Infer coverage from the existing `tests/**` directory only. Rejected + because CLAUDE.md demands full coverage of "all functionality currently + present in the repository" — the existing three tests cover a sliver. + 2. Delegate the entire audit to an Explore subagent. Rejected because the + test-writing phase needs the concrete file contents in hand; reading + directly keeps context consolidated. +- **Reasoning:** Writing good tests requires direct knowledge of each module's + public surface and side effects; batch-reading produced that picture in one + pass. + +#### Audit inventory + +Grouped by test strategy. Every listed symbol needs coverage on this branch. + +**A. Pure utility modules (node-safe unit tests):** + +| Module | Public surface | +| -------------------------------------------------------- | -------------------------------------------------------- | +| `src/components/helpers/ApiHelper.ts` | `API_BASE_URL` (env-derived with fallback) | +| `src/components/helpers/RouteHelper.ts` | `BASE_ROUTE` (env-derived with fallback) | +| `src/components/helpers/CapitalHelper.ts` | `isCapital(systemName, capitals)` | +| `src/components/helpers/FactionHelper.ts` | `findFaction(factionKey, factions)` | +| `src/components/helpers/NewTabHelper.ts` | `openInNewTab(url)` (wraps `window.open`) | +| `src/components/helpers/index.ts` | Barrel — exports the three above | +| `src/components/helpers/devStateInjector.ts` | `applyDevStateInjection(systems)` (env + localStorage) | +| `src/components/GalaxyMap/gm.interactions.ts` | `getDistance(touch1, touch2)` *(covered by existing test)* | +| `src/components/GalaxyMap/gm.selectors.ts` | `buildFactionFilterOptions(systems, factions)` *(covered)* | +| `src/components/GalaxyMap/gm.types.ts` | Type-only module *(covered via `expectTypeOf`)* | +| `src/components/hooks/types/Settings.ts` | `initialSettings` runtime default | +| `src/components/hooks/types/index.ts` | Barrel (type re-exports + `initialSettings`) | + +**B. React hooks (need `renderHook`, jsdom):** + +| Hook | Surface | +| -------------------------------------------------------- | --------------------------------------------------------- | +| `src/components/hooks/useSettings.ts` | `{ settings, setFlashActive }` | +| `src/components/hooks/useTooltip.ts` | `{ tooltip, showTooltip, hideTooltip }` | +| `src/components/hooks/useWarmapAPI.ts` | `rawSystems/factions/capitals` + two fetchers | +| `src/components/hooks/useFiltering.ts` | Composes `useWarmapAPI` + `useSettings` | +| `src/components/hooks/useGalaxyViewport.ts` | Camera handlers (needs Konva stub) | +| `src/components/hooks/usePinchZoom.ts` | Touch handlers (needs Konva stub + RAF) | + +**C. React components (need jsdom + RTL; Konva/react-router mocks):** + +| Component | Nature | +| -------------------------------------------------------- | --------------------------------------------------------- | +| `src/App.tsx` | Wires the router | +| `src/main.tsx` | Bootstrap (smoke only) | +| `src/components/core/PageTemplate.tsx` | Layout shell | +| `src/components/core/SideMenu.tsx` | Nav links | +| `src/components/pages/Error.tsx` | Route-error boundary | +| `src/components/pages/Home.tsx` | Static content + `HomeCard` | +| `src/components/pages/ToS.tsx` | Static content + `BulletPoint` | +| `src/components/pages/GalaxyMap.tsx` | Konva-heavy map + tooltip | +| `src/components/ui/BottomFilterPanel.tsx` | Search + faction multi-select | +| `src/components/ui/StarSystem.tsx` | Konva primitive renderer | +| `src/components/pages/index.ts` | Barrel re-exports | + +### 3. Test scope strategy + +- **Action taken:** Chose "Option B — Deep coverage on testable surface, smoke + on Konva." Every audited file gets at least one meaningful test; Konva-heavy + render paths (`GalaxyMap.tsx` render tree, `StarSystem.tsx`, + `useGalaxyViewport`, `usePinchZoom`) receive smoke-level coverage behind + mocks rather than full canvas assertions. +- **Alternatives considered:** + 1. *Option A — Uniform smoke tests across everything.* Rejected as + information-light: Konva smoke tests mainly validate that mocks were + wired, not code behavior, so they do not repay the effort. + 2. *Option C — Skip Konva components entirely.* Rejected because CLAUDE.md + mandates coverage of *all* functionality currently present. +- **Reasoning:** Option B is the highest-confidence-per-effort strategy. Tests + concentrate where assertions are load-bearing (pure logic, state hooks, + interactive DOM components) while still honoring the "all files tested" + contract. Canvas math is inherently hostile to jsdom; meaningful coverage + there would require a second-pass investment outside this session's budget. + +### 4. Testing framework extension — RTL + jsdom + +- **Action taken:** Added dev dependencies `@testing-library/react@16`, + `@testing-library/dom@10`, `@testing-library/jest-dom@6`, + `@testing-library/user-event@14`, and `jsdom@29` via `yarn add -D`. Rewrote + `vitest.config.ts` to load `@vitejs/plugin-react-swc`, pin the environment + to `jsdom`, register a `src/test/setup.ts` setup file, and set `include` to + `src/**/*.test.{ts,tsx}` (adjacent-only). Created `src/test/setup.ts` to + import `@testing-library/jest-dom/vitest`, run `cleanup()` after each test, + and polyfill `matchMedia` + `ResizeObserver` for libraries that touch them. + Updated `tsconfig.vitest.json` to extend `tsconfig.app.json` (so DOM libs + are visible), pull in `vitest/globals` + `@testing-library/jest-dom` types, + and include the new `src/**/*.test.{ts,tsx}` and `src/test/**/*` paths. + Added `test`, `test:watch`, and `test:coverage` npm scripts. +- **Alternatives considered:** + 1. *Single `environment: 'node'` kept as-is; per-file `/// @vitest-environment jsdom`.* + Rejected because it forces every component test file to carry a pragma + and makes it easy to forget, leading to mysterious `window is undefined` + failures. + 2. *Vitest `projects` / `environmentMatchGlobs` split.* Rejected as premature + complexity — the `node` tests work fine under jsdom and the session's + scope does not need two parallel runners. + 3. *Drop the stand-alone `tsconfig.vitest.json` and fold test includes into + `tsconfig.app.json`.* Rejected because `tsconfig.app.json` deliberately + excludes test files from production type-checking; keeping them + separated preserves that. + 4. *Install `@testing-library/react@15` (peer on legacy API)* instead of + `v16`. Rejected because `v16` ships React 18/19 support out of the box; + we already run React 18.3. +- **Reasoning:** A single global jsdom environment is the lowest-friction + configuration that still lets node-style tests pass, and matches the + out-of-the-box conventions most React teams recognize as "industry + standard." Keeping a dedicated `tsconfig.vitest.json` avoids polluting the + app build surface with vitest globals. + +### 5. localStorage polyfill in the test setup + +- **Action taken:** Added a Map-backed `Storage` polyfill to + `src/test/setup.ts`, installed on `window.localStorage` and + `window.sessionStorage` whenever the existing object lacks `setItem`. A + `beforeEach` hook clears both stores so tests are isolated. +- **Alternatives considered:** + 1. *Rely on jsdom's native storage.* Rejected: Vitest 4 / Node 25 stubs + `window.localStorage` to a property-less empty object (a probe showed + `ls.clear`, `ls.setItem`, `ls.removeItem` all `undefined`), with a noisy + `--localstorage-file was provided without a valid path` warning. + 2. *Pass `--localstorage-file` or configure Node's experimental localStorage + backing file.* Rejected as heavy and environment-specific; ties the rig + to Node 25's experimental flag. + 3. *Use `vi.stubGlobal('localStorage', fake)` per test.* Rejected because + several modules under test (devStateInjector, useWarmapAPI consumers) + read `window.localStorage` at runtime, so a setup-file polyfill is less + error-prone than remembering to stub per-file. +- **Reasoning:** A deterministic, Map-backed polyfill restores Web Storage + semantics for all tests with one line of setup — matching the "industry + standard" experience devs expect from jsdom. + +### 6. Relocating the pre-existing tests to sit adjacent to source + +- **Action taken:** Moved `tests/gm.interactions.test.ts`, + `tests/gm.selectors.test.ts`, and `tests/gm.types.test.ts` to live next to + their source files under `src/components/GalaxyMap/` (using relative imports + like `./gm.interactions`). The now-empty `tests/` directory was removed and + `tests/**/*` was dropped from both `vitest.config.ts`'s `include` and + `tsconfig.vitest.json`'s `include`. +- **Alternatives considered:** + 1. *Keep the legacy `tests/` directory alongside new adjacent tests.* + Rejected because CLAUDE.md mandates adjacent placement for all test + files and a mixed strategy invites drift. + 2. *Leave old tests in place and only add new adjacent tests.* Rejected for + the same reason. +- **Reasoning:** Consistency makes the project discoverable (each source file + has a predictable test neighbor). Each relocation preserved all original + assertions and gained a few extra cases (case-sensitive sort, empty list, + negative coordinates, new type aliases) while reshaping the imports to the + adjacent relative form. + +### 7. Shared Konva mock module + +- **Action taken:** Introduced `src/test/konvaMocks.tsx` exporting + `reactKonvaStubs` (a set of `forwardRef` components for `Stage`, `Layer`, + `Image`, `Text`, `Group`, `Rect`, `Line`, `Circle`) and `konvaStub` (a + `default` namespace with stub `Animation` and `Text` classes). Each mocked + react-konva primitive uses `useImperativeHandle` to return a fake node + exposing the methods callers touch in `useEffect` (`opacity`, `scale`, + `getLayer`, `getStage`, `container`, `batchDraw`, `getPosition`, + `getPointerPosition`, `getRelativePointerPosition`, `x`, `y`, `scaleX`, + `destroy`). Scalar props are forwarded to the DOM as `data-*` attributes + so test assertions can still locate them. +- **Alternatives considered:** + 1. *Inline the mock inside each test file.* Rejected: we would end up with + several near-identical copies across the Konva consumers, so any + future fix would need to be applied in parallel. + 2. *Mock `konva` and `react-konva` globally in `src/test/setup.ts`.* + Rejected because `vi.mock` is hoisted per-file at parse time — putting + it in setup doesn't hoist into other test modules — and globally mocking + Konva would block anyone who wants to write a canvas-enabled integration + test later. + 3. *Install `jest-canvas-mock` / `canvas` polyfill so real Konva can run + under jsdom.* Rejected because Option B explicitly aimed for smoke + coverage; pulling in a canvas shim is a second-pass investment. +- **Reasoning:** A shared mock minimizes duplication while staying per-file + (`vi.mock` still hoists from each consumer). Exposing methods via + `useImperativeHandle` means Konva-consuming effects can call + `pulseNode.scale(...)` without a `getLayer is not a function` TypeError — + critical for the "smoke test mounts cleanly" guarantee. + +- **Verification at this point:** With only the three relocated `gm.*` test + files as content, `yarn test` reports 3 files / 11 tests passing. The rig + is ready to host the new adjacent suites. diff --git a/package.json b/package.json index 29c30cc..40756d7 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,10 @@ "dev": "vite", "build": "tsc -b && vite build", "lint": "eslint .", - "preview": "vite preview" + "preview": "vite preview", + "test": "vitest run", + "test:watch": "vitest", + "test:coverage": "vitest run --coverage" }, "dependencies": { "@material-tailwind/react": "^2.1.10", @@ -28,6 +31,10 @@ }, "devDependencies": { "@eslint/js": "^9.9.0", + "@testing-library/dom": "^10.4.1", + "@testing-library/jest-dom": "^6.9.1", + "@testing-library/react": "^16.3.2", + "@testing-library/user-event": "^14.6.1", "@types/node": "^24.10.0", "@types/react": "18.2.42", "@types/react-dom": "^18.3.0", @@ -37,6 +44,7 @@ "eslint-plugin-react-hooks": "^5.1.0-rc.0", "eslint-plugin-react-refresh": "^0.4.9", "globals": "^15.9.0", + "jsdom": "^29.0.2", "postcss": "^8.4.47", "tailwindcss": "^3.4.12", "typescript": "^5.9.3", diff --git a/tests/gm.interactions.test.ts b/src/components/GalaxyMap/gm.interactions.test.ts similarity index 57% rename from tests/gm.interactions.test.ts rename to src/components/GalaxyMap/gm.interactions.test.ts index b2eff56..79855b1 100644 --- a/tests/gm.interactions.test.ts +++ b/src/components/GalaxyMap/gm.interactions.test.ts @@ -1,33 +1,32 @@ import { describe, it, expect } from 'vitest'; -import { getDistance } from '../src/components/GalaxyMap/gm.interactions'; +import { getDistance } from './gm.interactions'; describe('getDistance', () => { it('returns 0 for identical points', () => { const t1 = { clientX: 100, clientY: 200 } as unknown as Touch; const t2 = { clientX: 100, clientY: 200 } as unknown as Touch; - const d = getDistance(t1, t2); - - expect(d).toBe(0); + expect(getDistance(t1, t2)).toBe(0); }); - it('computes Euclidean distance between two touch points', () => { + it('computes Euclidean distance between two touch points (3-4-5 triangle)', () => { const t1 = { clientX: 0, clientY: 0 } as unknown as Touch; const t2 = { clientX: 3, clientY: 4 } as unknown as Touch; - const d = getDistance(t1, t2); - - // 3-4-5 triangle - expect(d).toBe(5); + expect(getDistance(t1, t2)).toBe(5); }); it('is symmetric (distance A→B equals distance B→A)', () => { const t1 = { clientX: 10, clientY: 20 } as unknown as Touch; const t2 = { clientX: -5, clientY: 7 } as unknown as Touch; - const d1 = getDistance(t1, t2); - const d2 = getDistance(t2, t1); + expect(getDistance(t1, t2)).toBeCloseTo(getDistance(t2, t1), 10); + }); + + it('handles negative coordinates', () => { + const t1 = { clientX: -10, clientY: -10 } as unknown as Touch; + const t2 = { clientX: -7, clientY: -6 } as unknown as Touch; - expect(d1).toBeCloseTo(d2, 10); + expect(getDistance(t1, t2)).toBe(5); }); }); diff --git a/tests/gm.selectors.test.ts b/src/components/GalaxyMap/gm.selectors.test.ts similarity index 64% rename from tests/gm.selectors.test.ts rename to src/components/GalaxyMap/gm.selectors.test.ts index 05e0dcb..2b44179 100644 --- a/tests/gm.selectors.test.ts +++ b/src/components/GalaxyMap/gm.selectors.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest'; -import { buildFactionFilterOptions } from '../src/components/GalaxyMap/gm.selectors'; +import { buildFactionFilterOptions } from './gm.selectors'; describe('buildFactionFilterOptions', () => { it('returns unique, sorted faction names using prettyName when available', () => { @@ -8,7 +8,7 @@ describe('buildFactionFilterOptions', () => { { owner: 'FACTION_B' }, { owner: 'FACTION_A' }, // duplicate { owner: 'FACTION_C' }, - ] as any[]; // minimal shape: just needs owner + ] as any[]; const factions = { FACTION_A: { prettyName: 'Alpha' }, @@ -18,21 +18,18 @@ describe('buildFactionFilterOptions', () => { const result = buildFactionFilterOptions(systems, factions); - // unique + sorted alphabetically by prettyName expect(result).toEqual(['Alpha', 'Bravo', 'Charlie']); }); - it('falls back to owner key when prettyName is missing', () => { + it('falls back to owner key when prettyName is missing or factions entry is absent', () => { const systems = [{ owner: 'FACTION_X' }, { owner: 'FACTION_Y' }] as any[]; const factions = { FACTION_X: { prettyName: undefined }, - // FACTION_Y completely missing from map } as any; const result = buildFactionFilterOptions(systems, factions); - // falls back to owner string expect(result.sort()).toEqual(['FACTION_X', 'FACTION_Y'].sort()); }); @@ -53,4 +50,25 @@ describe('buildFactionFilterOptions', () => { expect(result).toEqual(['FACTION_NULL', 'Valid']); }); + + it('returns an empty array when systems list is empty', () => { + const result = buildFactionFilterOptions([] as any[], {} as any); + expect(result).toEqual([]); + }); + + it('sorts case-sensitively via localeCompare', () => { + const systems = [ + { owner: 'a' }, + { owner: 'b' }, + { owner: 'c' }, + ] as any[]; + const factions = { + a: { prettyName: 'zebra' }, + b: { prettyName: 'Apple' }, + c: { prettyName: 'banana' }, + } as any; + + const result = buildFactionFilterOptions(systems, factions); + expect(result).toEqual(['Apple', 'banana', 'zebra']); + }); }); diff --git a/tests/gm.types.test.ts b/src/components/GalaxyMap/gm.types.test.ts similarity index 67% rename from tests/gm.types.test.ts rename to src/components/GalaxyMap/gm.types.test.ts index d24762c..eb43a2a 100644 --- a/tests/gm.types.test.ts +++ b/src/components/GalaxyMap/gm.types.test.ts @@ -3,15 +3,18 @@ import type { Point, StageSize, TooltipData, + TooltipControlItem, ViewTransform, GalaxyMapRenderProps, -} from '../src/components/GalaxyMap/gm.types'; + FactionName, + FactionNameList, +} from './gm.types'; import type { DisplayStarSystemType, FactionDataType, Settings, -} from '../src/components/hooks/types'; +} from '../hooks/types'; describe('gm.types', () => { it('Point has x/y as numbers', () => { @@ -26,7 +29,7 @@ describe('gm.types', () => { expectTypeOf(s.height).toBeNumber(); }); - it('TooltipData has required fields and optional onTouch', () => { + it('TooltipData has required fields and optional onTouch / controlItems', () => { const t: TooltipData = { visible: true, x: 10, y: 20, text: 'hello' }; expectTypeOf(t.visible).toBeBoolean(); expectTypeOf(t.x).toBeNumber(); @@ -34,6 +37,14 @@ describe('gm.types', () => { expectTypeOf(t.text).toBeString(); expectTypeOf(t.onTouch).toEqualTypeOf<(() => void) | undefined>(); expectTypeOf>().toBeFunction(); + expectTypeOf(t.controlItems).toEqualTypeOf(); + }); + + it('TooltipControlItem has name/control/players fields', () => { + const c: TooltipControlItem = { name: 'x', control: 50, players: 3 }; + expectTypeOf(c.name).toBeString(); + expectTypeOf(c.control).toBeNumber(); + expectTypeOf(c.players).toBeNumber(); }); it('ViewTransform includes scale and position as Point', () => { @@ -43,22 +54,22 @@ describe('gm.types', () => { }); it('GalaxyMapRenderProps matches expected shapes', () => { - // systems is an array of DisplayStarSystemType expectTypeOf().toEqualTypeOf< DisplayStarSystemType[] >(); - - // individual element type also matches expectTypeOf< GalaxyMapRenderProps['systems'][number] >().toEqualTypeOf(); - - // factions matches FactionDataType expectTypeOf< GalaxyMapRenderProps['factions'] >().toEqualTypeOf(); - - // settings matches Settings expectTypeOf().toEqualTypeOf(); }); + + it('FactionName is a string alias and FactionNameList is FactionName[]', () => { + const name: FactionName = 'Davion'; + const list: FactionNameList = ['Davion', 'Kurita']; + expectTypeOf(name).toBeString(); + expectTypeOf(list).toEqualTypeOf(); + }); }); diff --git a/src/test/konvaMocks.tsx b/src/test/konvaMocks.tsx new file mode 100644 index 0000000..7d9affa --- /dev/null +++ b/src/test/konvaMocks.tsx @@ -0,0 +1,70 @@ +import React from 'react'; +import { vi } from 'vitest'; + +const makeFakeNode = () => ({ + opacity: vi.fn(), + scale: vi.fn(), + position: vi.fn(), + getLayer: () => null, + getStage: () => null, + batchDraw: vi.fn(), + destroy: vi.fn(), + container: vi.fn(() => ({ + addEventListener: vi.fn(), + removeEventListener: vi.fn(), + })), + getPointerPosition: vi.fn(() => ({ x: 0, y: 0 })), + getRelativePointerPosition: vi.fn(() => ({ x: 0, y: 0 })), + x: vi.fn(() => 0), + y: vi.fn(() => 0), + scaleX: vi.fn(() => 1), + getPosition: vi.fn(() => ({ x: 0, y: 0 })), +}); + +export const passthrough = (tag: string) => + React.forwardRef(function KonvaMock( + { children, ...rest }: any, + ref + ) { + const fake = React.useMemo(() => makeFakeNode(), []); + React.useImperativeHandle(ref, () => fake); + + const safeProps: Record = {}; + for (const [k, v] of Object.entries(rest)) { + if ( + typeof v === 'string' || + typeof v === 'number' || + typeof v === 'boolean' + ) { + safeProps[`data-${k.toLowerCase()}`] = String(v); + } + } + return React.createElement(tag, safeProps, children); + }); + +export const reactKonvaStubs = { + Stage: passthrough('div'), + Layer: passthrough('div'), + Image: passthrough('div'), + Text: passthrough('span'), + Group: passthrough('div'), + Rect: passthrough('div'), + Line: passthrough('span'), + Circle: passthrough('span'), +}; + +export const konvaStub = (() => { + class Animation { + constructor(public cb: (frame: unknown) => void, public layer: unknown) {} + start() {} + stop() {} + } + class Text { + constructor(public opts: unknown) {} + width() { + return 50; + } + destroy() {} + } + return { default: { Animation, Text }, __esModule: true }; +})(); diff --git a/src/test/setup.ts b/src/test/setup.ts new file mode 100644 index 0000000..c63e07e --- /dev/null +++ b/src/test/setup.ts @@ -0,0 +1,71 @@ +import '@testing-library/jest-dom/vitest'; +import { afterEach, beforeEach } from 'vitest'; +import { cleanup } from '@testing-library/react'; + +const createMapBackedStorage = (): Storage => { + const store = new Map(); + return { + get length() { + return store.size; + }, + clear: () => store.clear(), + getItem: (key: string) => (store.has(key) ? store.get(key)! : null), + setItem: (key: string, value: string) => { + store.set(key, String(value)); + }, + removeItem: (key: string) => { + store.delete(key); + }, + key: (i: number) => Array.from(store.keys())[i] ?? null, + }; +}; + +const installStorage = (name: 'localStorage' | 'sessionStorage') => { + if (typeof window === 'undefined') return; + const existing = window[name] as Storage | undefined; + if (!existing || typeof existing.setItem !== 'function') { + Object.defineProperty(window, name, { + configurable: true, + value: createMapBackedStorage(), + }); + } +}; + +installStorage('localStorage'); +installStorage('sessionStorage'); + +afterEach(() => { + cleanup(); +}); + +beforeEach(() => { + if (typeof window !== 'undefined') { + window.localStorage.clear(); + window.sessionStorage.clear(); + } +}); + +if (typeof window !== 'undefined') { + if (!window.matchMedia) { + window.matchMedia = (query: string) => ({ + matches: false, + media: query, + onchange: null, + addListener: () => {}, + removeListener: () => {}, + addEventListener: () => {}, + removeEventListener: () => {}, + dispatchEvent: () => false, + }); + } + + if (!('ResizeObserver' in window)) { + class ResizeObserver { + observe() {} + unobserve() {} + disconnect() {} + } + // @ts-expect-error - jsdom lacks ResizeObserver + window.ResizeObserver = ResizeObserver; + } +} diff --git a/tsconfig.vitest.json b/tsconfig.vitest.json index f2a02bf..0793d56 100644 --- a/tsconfig.vitest.json +++ b/tsconfig.vitest.json @@ -1,9 +1,15 @@ { - "extends": "./tsconfig.node.json", + "extends": "./tsconfig.app.json", "compilerOptions": { - "types": ["vitest", "node"], + "types": ["vitest/globals", "vitest", "node", "@testing-library/jest-dom"], "moduleResolution": "Bundler", - "skipLibCheck": true + "skipLibCheck": true, + "jsx": "react-jsx" }, - "include": ["tests/**/*", "vitest.config.ts"] + "include": [ + "src/**/*.test.ts", + "src/**/*.test.tsx", + "src/test/**/*", + "vitest.config.ts" + ] } diff --git a/vitest.config.ts b/vitest.config.ts index 43229bf..6be47e7 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,8 +1,21 @@ import { defineConfig } from 'vitest/config'; +import react from '@vitejs/plugin-react-swc'; +import path from 'node:path'; export default defineConfig({ + plugins: [react()], test: { - environment: 'node', - include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'], + environment: 'jsdom', + globals: false, + setupFiles: ['./src/test/setup.ts'], + include: ['src/**/*.test.{ts,tsx}'], + css: false, + clearMocks: true, + restoreMocks: true, + }, + resolve: { + alias: { + '@': path.resolve(__dirname, 'src'), + }, }, }); diff --git a/yarn.lock b/yarn.lock index 75f7c0e..43f3f18 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,11 +2,48 @@ # yarn lockfile v1 +"@adobe/css-tools@^4.4.0": + version "4.4.4" + resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.4.4.tgz#2856c55443d3d461693f32d2b96fb6ea92e1ffa9" + integrity sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg== + "@alloc/quick-lru@^5.2.0": version "5.2.0" resolved "https://registry.yarnpkg.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30" integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw== +"@asamuzakjp/css-color@^5.1.5": + version "5.1.11" + resolved "https://registry.yarnpkg.com/@asamuzakjp/css-color/-/css-color-5.1.11.tgz#28a0aac8220a4cc19045ac3bd9a813d4060bd375" + integrity sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg== + dependencies: + "@asamuzakjp/generational-cache" "^1.0.1" + "@csstools/css-calc" "^3.2.0" + "@csstools/css-color-parser" "^4.1.0" + "@csstools/css-parser-algorithms" "^4.0.0" + "@csstools/css-tokenizer" "^4.0.0" + +"@asamuzakjp/dom-selector@^7.0.6": + version "7.1.1" + resolved "https://registry.yarnpkg.com/@asamuzakjp/dom-selector/-/dom-selector-7.1.1.tgz#01880086bb2490098f167beb58555da1a6c9adbd" + integrity sha512-67RZDnYRc8H/8MLDgQCDE//zoqVFwajkepHZgmXrbwybzXOEwOWGPYGmALYl9J2DOLfFPPs6kKCqmbzV895hTQ== + dependencies: + "@asamuzakjp/generational-cache" "^1.0.1" + "@asamuzakjp/nwsapi" "^2.3.9" + bidi-js "^1.0.3" + css-tree "^3.2.1" + is-potential-custom-element-name "^1.0.1" + +"@asamuzakjp/generational-cache@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@asamuzakjp/generational-cache/-/generational-cache-1.0.1.tgz#3d0bf6be4fc059851390a7070720c6007af793ec" + integrity sha512-wajfB8KqzMCN2KGNFdLkReeHncd0AslUSrvHVvvYWuU8ghncRJoA50kT3zP9MVL0+9g4/67H+cdvBskj9THPzg== + +"@asamuzakjp/nwsapi@^2.3.9": + version "2.3.9" + resolved "https://registry.yarnpkg.com/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz#ad5549322dfe9d153d4b4dd6f7ff2ae234b06e24" + integrity sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q== + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.27.1": version "7.27.1" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be" @@ -16,6 +53,15 @@ js-tokens "^4.0.0" picocolors "^1.1.1" +"@babel/code-frame@^7.10.4": + version "7.29.0" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.29.0.tgz#7cd7a59f15b3cc0dcd803038f7792712a7d0b15c" + integrity sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw== + dependencies: + "@babel/helper-validator-identifier" "^7.28.5" + js-tokens "^4.0.0" + picocolors "^1.1.1" + "@babel/generator@^7.28.5": version "7.28.5" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.28.5.tgz#712722d5e50f44d07bc7ac9fe84438742dd61298" @@ -92,6 +138,46 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.28.5" +"@bramus/specificity@^2.4.2": + version "2.4.2" + resolved "https://registry.yarnpkg.com/@bramus/specificity/-/specificity-2.4.2.tgz#aa8db8eb173fdee7324f82284833106adeecc648" + integrity sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw== + dependencies: + css-tree "^3.0.0" + +"@csstools/color-helpers@^6.0.2": + version "6.0.2" + resolved "https://registry.yarnpkg.com/@csstools/color-helpers/-/color-helpers-6.0.2.tgz#82c59fd30649cf0b4d3c82160489748666e6550b" + integrity sha512-LMGQLS9EuADloEFkcTBR3BwV/CGHV7zyDxVRtVDTwdI2Ca4it0CCVTT9wCkxSgokjE5Ho41hEPgb8OEUwoXr6Q== + +"@csstools/css-calc@^3.2.0": + version "3.2.0" + resolved "https://registry.yarnpkg.com/@csstools/css-calc/-/css-calc-3.2.0.tgz#15ca1a80a026ced0f6c4e12124c398e3db8e1617" + integrity sha512-bR9e6o2BDB12jzN/gIbjHa5wLJ4UjD1CB9pM7ehlc0ddk6EBz+yYS1EV2MF55/HUxrHcB/hehAyt5vhsA3hx7w== + +"@csstools/css-color-parser@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@csstools/css-color-parser/-/css-color-parser-4.1.0.tgz#1d64ea09c548d3ed331648ea0b831e16b80c891c" + integrity sha512-U0KhLYmy2GVj6q4T3WaAe6NPuFYCPQoE3b0dRGxejWDgcPp8TP7S5rVdM5ZrFaqu4N67X8YaPBw14dQSYx3IyQ== + dependencies: + "@csstools/color-helpers" "^6.0.2" + "@csstools/css-calc" "^3.2.0" + +"@csstools/css-parser-algorithms@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz#e1c65dc09378b42f26a111fca7f7075fc2c26164" + integrity sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w== + +"@csstools/css-syntax-patches-for-csstree@^1.1.1": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.3.tgz#3204cf40deb97db83e225b0baa9e37d9c3bd344d" + integrity sha512-SH60bMfrRCJF3morcdk57WklujF4Jr/EsQUzqkarfHXEFcAR1gg7fS/chAE922Sehgzc1/+Tz5H3Ypa1HiEKrg== + +"@csstools/css-tokenizer@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz#798a33950d11226a0ebb6acafa60f5594424967f" + integrity sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA== + "@emnapi/core@^1.7.1": version "1.9.1" resolved "https://registry.yarnpkg.com/@emnapi/core/-/core-1.9.1.tgz#2143069c744ca2442074f8078462e51edd63c7bd" @@ -429,6 +515,11 @@ "@eslint/core" "^0.17.0" levn "^0.4.1" +"@exodus/bytes@^1.11.0", "@exodus/bytes@^1.15.0", "@exodus/bytes@^1.6.0": + version "1.15.0" + resolved "https://registry.yarnpkg.com/@exodus/bytes/-/bytes-1.15.0.tgz#54479e0f406cbad024d6fe1c3190ecca4468df3b" + integrity sha512-UY0nlA+feH81UGSHv92sLEPLCeZFjXOuHhrIo0HQydScuQc8s0A7kL/UdgwgDq8g8ilksmuoF35YVTNphV2aBQ== + "@floating-ui/core@^1.6.0": version "1.6.8" resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.6.8.tgz#aa43561be075815879305965020f492cdb43da12" @@ -952,6 +1043,44 @@ dependencies: "@swc/counter" "^0.1.3" +"@testing-library/dom@^10.4.1": + version "10.4.1" + resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-10.4.1.tgz#d444f8a889e9a46e9a3b4f3b88e0fcb3efb6cf95" + integrity sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg== + dependencies: + "@babel/code-frame" "^7.10.4" + "@babel/runtime" "^7.12.5" + "@types/aria-query" "^5.0.1" + aria-query "5.3.0" + dom-accessibility-api "^0.5.9" + lz-string "^1.5.0" + picocolors "1.1.1" + pretty-format "^27.0.2" + +"@testing-library/jest-dom@^6.9.1": + version "6.9.1" + resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-6.9.1.tgz#7613a04e146dd2976d24ddf019730d57a89d56c2" + integrity sha512-zIcONa+hVtVSSep9UT3jZ5rizo2BsxgyDYU7WFD5eICBE7no3881HGeb/QkGfsJs6JTkY1aQhT7rIPC7e+0nnA== + dependencies: + "@adobe/css-tools" "^4.4.0" + aria-query "^5.0.0" + css.escape "^1.5.1" + dom-accessibility-api "^0.6.3" + picocolors "^1.1.1" + redent "^3.0.0" + +"@testing-library/react@^16.3.2": + version "16.3.2" + resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-16.3.2.tgz#672883b7acb8e775fc0492d9e9d25e06e89786d0" + integrity sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g== + dependencies: + "@babel/runtime" "^7.12.5" + +"@testing-library/user-event@^14.6.1": + version "14.6.1" + resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.6.1.tgz#13e09a32d7a8b7060fe38304788ebf4197cd2149" + integrity sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw== + "@tybys/wasm-util@^0.10.1": version "0.10.1" resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.10.1.tgz#ecddd3205cf1e2d5274649ff0eedd2991ed7f414" @@ -959,6 +1088,11 @@ dependencies: tslib "^2.4.0" +"@types/aria-query@^5.0.1": + version "5.0.4" + resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-5.0.4.tgz#1a31c3d378850d2778dabb6374d036dcba4ba708" + integrity sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw== + "@types/chai@^5.2.2": version "5.2.3" resolved "https://registry.yarnpkg.com/@types/chai/-/chai-5.2.3.tgz#8e9cd9e1c3581fa6b341a5aed5588eb285be0b4a" @@ -1221,6 +1355,11 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0: dependencies: color-convert "^2.0.1" +ansi-styles@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" + integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== + ansi-styles@^6.1.0: version "6.2.3" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.3.tgz#c044d5dcc521a076413472597a1acb1f103c4041" @@ -1256,6 +1395,18 @@ aria-hidden@^1.1.3: dependencies: tslib "^2.0.0" +aria-query@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" + integrity sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A== + dependencies: + dequal "^2.0.3" + +aria-query@^5.0.0: + version "5.3.2" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.2.tgz#93f81a43480e33a338f19163a3d10a50c01dcd59" + integrity sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw== + assertion-error@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-2.0.1.tgz#f641a196b335690b1070bf00b6e7593fec190bf7" @@ -1301,6 +1452,13 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== +bidi-js@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/bidi-js/-/bidi-js-1.0.3.tgz#6f8bcf3c877c4d9220ddf49b9bb6930c88f877d2" + integrity sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw== + dependencies: + require-from-string "^2.0.2" + binary-extensions@^2.0.0: version "2.3.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" @@ -1446,6 +1604,19 @@ cross-spawn@^7.0.6: shebang-command "^2.0.0" which "^2.0.1" +css-tree@^3.0.0, css-tree@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-3.2.1.tgz#86cac7011561272b30e6b1e042ba6ce047aa7518" + integrity sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA== + dependencies: + mdn-data "2.27.1" + source-map-js "^1.2.1" + +css.escape@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/css.escape/-/css.escape-1.5.1.tgz#42e27d4fa04ae32f931a4b4d4191fa9cddee97cb" + integrity sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg== + cssesc@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" @@ -1456,6 +1627,14 @@ csstype@^3.0.2: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81" integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== +data-urls@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-7.0.0.tgz#6dce8b63226a1ecfdd907ce18a8ccfb1eee506d3" + integrity sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA== + dependencies: + whatwg-mimetype "^5.0.0" + whatwg-url "^16.0.0" + debug@^4.3.1, debug@^4.3.2, debug@^4.4.3: version "4.4.3" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" @@ -1470,6 +1649,11 @@ debug@^4.3.4: dependencies: ms "^2.1.3" +decimal.js@^10.6.0: + version "10.6.0" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.6.0.tgz#e649a43e3ab953a72192ff5983865e509f37ed9a" + integrity sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg== + deep-is@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" @@ -1485,6 +1669,11 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== +dequal@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" + integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== + detect-libc@^2.0.3: version "2.1.2" resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.1.2.tgz#689c5dcdc1900ef5583a4cb9f6d7b473742074ad" @@ -1500,6 +1689,16 @@ dlv@^1.1.3: resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79" integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== +dom-accessibility-api@^0.5.9: + version "0.5.16" + resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz#5a7429e6066eb3664d911e33fb0e45de8eb08453" + integrity sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg== + +dom-accessibility-api@^0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz#993e925cc1d73f2c662e7d75dd5a5445259a8fd8" + integrity sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w== + dom-helpers@^5.0.1: version "5.2.1" resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-5.2.1.tgz#d9400536b2bf8225ad98fe052e029451ac40e902" @@ -1537,6 +1736,11 @@ emoji-regex@^9.2.2: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== +entities@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-8.0.0.tgz#c1df5fe3602429747fa233d0dd26f142f0ce4743" + integrity sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA== + error-ex@^1.3.1: version "1.3.4" resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.4.tgz#b3a8d8bb6f92eecc1629e3e27d3c8607a8a32414" @@ -1975,6 +2179,13 @@ hoist-non-react-statics@^3.3.1: dependencies: react-is "^16.7.0" +html-encoding-sniffer@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz#f8d9390b3b348b50d4f61c16dd2ef5c05980a882" + integrity sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg== + dependencies: + "@exodus/bytes" "^1.6.0" + ignore@^5.2.0, ignore@^5.3.1: version "5.3.2" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" @@ -1998,6 +2209,11 @@ imurmurhash@^0.1.4: resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" @@ -2039,6 +2255,11 @@ is-number@^7.0.0: resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== +is-potential-custom-element-name@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" + integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== + isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" @@ -2077,6 +2298,33 @@ js-yaml@^4.1.0: dependencies: argparse "^2.0.1" +jsdom@^29.0.2: + version "29.0.2" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-29.0.2.tgz#1fc2cf4175da8de29fa94bea7ca931a194729fc3" + integrity sha512-9VnGEBosc/ZpwyOsJBCQ/3I5p7Q5ngOY14a9bf5btenAORmZfDse1ZEheMiWcJ3h81+Fv7HmJFdS0szo/waF2w== + dependencies: + "@asamuzakjp/css-color" "^5.1.5" + "@asamuzakjp/dom-selector" "^7.0.6" + "@bramus/specificity" "^2.4.2" + "@csstools/css-syntax-patches-for-csstree" "^1.1.1" + "@exodus/bytes" "^1.15.0" + css-tree "^3.2.1" + data-urls "^7.0.0" + decimal.js "^10.6.0" + html-encoding-sniffer "^6.0.0" + is-potential-custom-element-name "^1.0.1" + lru-cache "^11.2.7" + parse5 "^8.0.0" + saxes "^6.0.0" + symbol-tree "^3.2.4" + tough-cookie "^6.0.1" + undici "^7.24.5" + w3c-xmlserializer "^5.0.0" + webidl-conversions "^8.0.1" + whatwg-mimetype "^5.0.0" + whatwg-url "^16.0.1" + xml-name-validator "^5.0.0" + jsesc@^3.0.2: version "3.1.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" @@ -2244,11 +2492,21 @@ lru-cache@^10.2.0: resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== +lru-cache@^11.2.7: + version "11.3.5" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.3.5.tgz#29047d348c0b2793e3112a01c739bb7c6d855637" + integrity sha512-NxVFwLAnrd9i7KUBxC4DrUhmgjzOs+1Qm50D3oF1/oL+r1NpZ4gA7xvG0/zJ8evR7zIKn4vLf7qTNduWFtCrRw== + lucide-react@^0.515.0: version "0.515.0" resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.515.0.tgz#a2310348095b40f1d6d6112c7a7f671f9a7634a7" integrity sha512-Sy7bY0MeicRm2pzrnoHm2h6C1iVoeHyBU2fjdQDsXGP51fhkhau1/ZV/dzrcxEmAKsxYb6bGaIsMnGHuQ5s0dw== +lz-string@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941" + integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ== + magic-string@^0.30.21: version "0.30.21" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.21.tgz#56763ec09a0fa8091df27879fd94d19078c00d91" @@ -2274,6 +2532,11 @@ math-intrinsics@^1.1.0: resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== +mdn-data@2.27.1: + version "2.27.1" + resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.27.1.tgz#e37b9c50880b75366c4d40ac63d9bbcacdb61f0e" + integrity sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ== + memoize-one@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-6.0.0.tgz#b2591b871ed82948aee4727dc6abceeeac8c1045" @@ -2304,6 +2567,11 @@ mime-types@^2.1.12: dependencies: mime-db "1.52.0" +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== + minimatch@^3.1.2, minimatch@^3.1.3, minimatch@^9.0.4: version "3.1.5" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e" @@ -2413,6 +2681,13 @@ parse-json@^5.0.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" +parse5@^8.0.0: + version "8.0.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-8.0.1.tgz#f43bcd2cd683efe084075333e9ce0da7d06da31e" + integrity sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw== + dependencies: + entities "^8.0.0" + path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -2446,16 +2721,16 @@ pathe@^2.0.3: resolved "https://registry.yarnpkg.com/pathe/-/pathe-2.0.3.tgz#3ecbec55421685b70a9da872b2cff3e1cbed1716" integrity sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w== +picocolors@1.1.1, picocolors@^1.1.0, picocolors@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== + picocolors@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== -picocolors@^1.1.0, picocolors@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" - integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== - picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" @@ -2561,6 +2836,15 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== +pretty-format@^27.0.2: + version "27.5.1" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" + integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== + dependencies: + ansi-regex "^5.0.1" + ansi-styles "^5.0.0" + react-is "^17.0.1" + prop-types@15.8.1, prop-types@^15.6.0, prop-types@^15.6.2, prop-types@^15.8.1: version "15.8.1" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" @@ -2575,7 +2859,7 @@ proxy-from-env@^1.1.0: resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== -punycode@^2.1.0: +punycode@^2.1.0, punycode@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== @@ -2616,6 +2900,11 @@ react-is@^16.13.1, react-is@^16.7.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== +react-is@^17.0.1: + version "17.0.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" + integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== + react-konva@18: version "18.2.10" resolved "https://registry.yarnpkg.com/react-konva/-/react-konva-18.2.10.tgz#5b5edc5e9ed452755d21babc353747828868decc" @@ -2702,11 +2991,24 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" +redent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" + integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== + dependencies: + indent-string "^4.0.0" + strip-indent "^3.0.0" + remove-accents@0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/remove-accents/-/remove-accents-0.5.0.tgz#77991f37ba212afba162e375b627631315bed687" integrity sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A== +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" @@ -2791,6 +3093,13 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" +saxes@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/saxes/-/saxes-6.0.0.tgz#fe5b4a4768df4f14a201b1ba6a65c1f3d9988cc5" + integrity sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA== + dependencies: + xmlchars "^2.2.0" + scheduler@^0.23.0, scheduler@^0.23.2: version "0.23.2" resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3" @@ -2893,6 +3202,13 @@ strip-ansi@^7.0.1: dependencies: ansi-regex "^6.0.1" +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== + dependencies: + min-indent "^1.0.0" + strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" @@ -2944,6 +3260,11 @@ swr@^2.2.5: client-only "^0.0.1" use-sync-external-store "^1.2.0" +symbol-tree@^3.2.4: + version "3.2.4" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== + tabbable@^6.0.1: version "6.2.0" resolved "https://registry.yarnpkg.com/tabbable/-/tabbable-6.2.0.tgz#732fb62bc0175cfcec257330be187dcfba1f3b97" @@ -3019,6 +3340,18 @@ tinyrainbow@^3.0.3: resolved "https://registry.yarnpkg.com/tinyrainbow/-/tinyrainbow-3.0.3.tgz#984a5b1c1b25854a9b6bccbe77964d0593d1ea42" integrity sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q== +tldts-core@^7.0.28: + version "7.0.28" + resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.28.tgz#28c256edae2ed177b2a8338a51caf81d41580ecf" + integrity sha512-7W5Efjhsc3chVdFhqtaU0KtK32J37Zcr9RKtID54nG+tIpcY79CQK/veYPODxtD/LJ4Lue66jvrQzIX2Z2/pUQ== + +tldts@^7.0.5: + version "7.0.28" + resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.28.tgz#5a5bb26ef3f70008d88c6e53ff58cd59ed8d4c68" + integrity sha512-+Zg3vWhRUv8B1maGSTFdev9mjoo8Etn2Ayfs4cnjlD3CsGkxXX4QyW3j2WJ0wdjYcYmy7Lx2RDsZMhgCWafKIw== + dependencies: + tldts-core "^7.0.28" + to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -3026,6 +3359,20 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" +tough-cookie@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-6.0.1.tgz#a495f833836609ed983c19bc65639cfbceb54c76" + integrity sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw== + dependencies: + tldts "^7.0.5" + +tr46@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-6.0.0.tgz#f5a1ae546a0adb32a277a2278d0d17fa2f9093e6" + integrity sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw== + dependencies: + punycode "^2.3.1" + ts-api-utils@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz#4b490e27129f1e8e686b45cc4ab63714dc60eea1" @@ -3072,6 +3419,11 @@ undici-types@~7.16.0: resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46" integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw== +undici@^7.24.5: + version "7.25.0" + resolved "https://registry.yarnpkg.com/undici/-/undici-7.25.0.tgz#7d72fc429a0421769ca2966fd07cac875c85b781" + integrity sha512-xXnp4kTyor2Zq+J1FfPI6Eq3ew5h6Vl0F/8d9XU5zZQf1tX9s2Su1/3PiMmUANFULpmksxkClamIZcaUqryHsQ== + update-browserslist-db@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" @@ -3155,6 +3507,32 @@ vitest@^4.0.8: vite "^6.0.0 || ^7.0.0" why-is-node-running "^2.3.0" +w3c-xmlserializer@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz#f925ba26855158594d907313cedd1476c5967f6c" + integrity sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA== + dependencies: + xml-name-validator "^5.0.0" + +webidl-conversions@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-8.0.1.tgz#0657e571fe6f06fcb15ca50ed1fdbcb495cd1686" + integrity sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ== + +whatwg-mimetype@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz#d8232895dbd527ceaee74efd4162008fb8a8cf48" + integrity sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw== + +whatwg-url@^16.0.0, whatwg-url@^16.0.1: + version "16.0.1" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-16.0.1.tgz#047f7f4bd36ef76b7198c172d1b1cebc66f764dd" + integrity sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw== + dependencies: + "@exodus/bytes" "^1.11.0" + tr46 "^6.0.0" + webidl-conversions "^8.0.1" + which@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" @@ -3193,6 +3571,16 @@ wrap-ansi@^8.1.0: string-width "^5.0.1" strip-ansi "^7.0.1" +xml-name-validator@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-5.0.0.tgz#82be9b957f7afdacf961e5980f1bf227c0bf7673" + integrity sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg== + +xmlchars@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" + integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== + yaml@^1.10.0: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" From 97a4a5109017c6e0703493fc1a92f45dad4f1e29 Mon Sep 17 00:00:00 2001 From: Thaddeus Aid Date: Wed, 22 Apr 2026 23:30:52 -0700 Subject: [PATCH 25/28] test: add adjacent Vitest suites for all audited source files Layer 26 new adjacent test files on top of the rig commit, covering every file in the Option-B audit: - Helpers: ApiHelper, CapitalHelper, FactionHelper, NewTabHelper, RouteHelper, devStateInjector, and the barrel index each get positive-path, edge-case, and contract coverage. - Hook tier: useSettings, useTooltip, useWarmapAPI, useFiltering use renderHook + stubbed fetch; useGalaxyViewport and usePinchZoom use queue-based rAF plus a controllable performance.now() to deterministically pin throttle, zoom-clamp, pinch-start/end, and frame-coalescing behavior. - Component tier: PageTemplate, SideMenu, Home (with HomeCard), ToS (with BulletPoint), and Error (all three route-error branches) run under MemoryRouter / createMemoryRouter. BottomFilterPanel drives toggle, search, faction chips, and mobile help tooltip. - Konva smoke tier: StarSystem, GalaxyMap, App, and main.tsx bootstrap run against the shared src/test/konvaMocks reusable mock, with fetch stubbed to produce valid faction/system payloads; main.tsx wraps createRoot to confirm the bootstrap attaches to #react-root. - Pages barrel: pages/index.test.ts re-export contract. - Types: Settings.test.ts exercises initialSettings; hooks/types/index expectTypeOf-asserts the full type-alias surface so every type file is covered under the adjacent convention. Final suite: 29 files / 122 tests passing. `yarn build` and `npx tsc -p tsconfig.vitest.json --noEmit` both clean. Updates model/log.md with sections 8 (authoring strategy per tier) and 9 (final rig verification + coverage map). Co-Authored-By: Claude Opus 4.7 (1M context) --- model/log.md | 100 ++++++++- src/App.test.tsx | 36 ++++ src/components/core/PageTemplate.test.tsx | 30 +++ src/components/core/SideMenu.test.tsx | 40 ++++ src/components/helpers/ApiHelper.test.ts | 15 ++ src/components/helpers/CapitalHelper.test.ts | 21 ++ src/components/helpers/FactionHelper.test.ts | 26 +++ src/components/helpers/NewTabHelper.test.ts | 25 +++ src/components/helpers/RouteHelper.test.ts | 14 ++ .../helpers/devStateInjector.test.ts | 163 +++++++++++++++ src/components/helpers/index.test.ts | 15 ++ src/components/hooks/types/Settings.test.ts | 13 ++ src/components/hooks/types/index.test.ts | 55 +++++ src/components/hooks/useFiltering.test.ts | 104 ++++++++++ .../hooks/useGalaxyViewport.test.ts | 194 ++++++++++++++++++ src/components/hooks/usePinchZoom.test.ts | 159 ++++++++++++++ src/components/hooks/useSettings.test.ts | 34 +++ src/components/hooks/useTooltip.test.ts | 83 ++++++++ src/components/hooks/useWarmapAPI.test.ts | 107 ++++++++++ src/components/pages/Error.test.tsx | 51 +++++ src/components/pages/GalaxyMap.test.tsx | 76 +++++++ src/components/pages/Home.test.tsx | 79 +++++++ src/components/pages/ToS.test.tsx | 56 +++++ src/components/pages/index.test.ts | 51 +++++ src/components/ui/BottomFilterPanel.test.tsx | 93 +++++++++ src/components/ui/StarSystem.test.tsx | 103 ++++++++++ src/main.test.tsx | 53 +++++ 27 files changed, 1786 insertions(+), 10 deletions(-) create mode 100644 src/App.test.tsx create mode 100644 src/components/core/PageTemplate.test.tsx create mode 100644 src/components/core/SideMenu.test.tsx create mode 100644 src/components/helpers/ApiHelper.test.ts create mode 100644 src/components/helpers/CapitalHelper.test.ts create mode 100644 src/components/helpers/FactionHelper.test.ts create mode 100644 src/components/helpers/NewTabHelper.test.ts create mode 100644 src/components/helpers/RouteHelper.test.ts create mode 100644 src/components/helpers/devStateInjector.test.ts create mode 100644 src/components/helpers/index.test.ts create mode 100644 src/components/hooks/types/Settings.test.ts create mode 100644 src/components/hooks/types/index.test.ts create mode 100644 src/components/hooks/useFiltering.test.ts create mode 100644 src/components/hooks/useGalaxyViewport.test.ts create mode 100644 src/components/hooks/usePinchZoom.test.ts create mode 100644 src/components/hooks/useSettings.test.ts create mode 100644 src/components/hooks/useTooltip.test.ts create mode 100644 src/components/hooks/useWarmapAPI.test.ts create mode 100644 src/components/pages/Error.test.tsx create mode 100644 src/components/pages/GalaxyMap.test.tsx create mode 100644 src/components/pages/Home.test.tsx create mode 100644 src/components/pages/ToS.test.tsx create mode 100644 src/components/pages/index.test.ts create mode 100644 src/components/ui/BottomFilterPanel.test.tsx create mode 100644 src/components/ui/StarSystem.test.tsx create mode 100644 src/main.test.tsx diff --git a/model/log.md b/model/log.md index 909ffd0..d50f460 100644 --- a/model/log.md +++ b/model/log.md @@ -119,10 +119,11 @@ Grouped by test strategy. Every listed symbol needs coverage on this branch. `@testing-library/dom@10`, `@testing-library/jest-dom@6`, `@testing-library/user-event@14`, and `jsdom@29` via `yarn add -D`. Rewrote `vitest.config.ts` to load `@vitejs/plugin-react-swc`, pin the environment - to `jsdom`, register a `src/test/setup.ts` setup file, and set `include` to - `src/**/*.test.{ts,tsx}` (adjacent-only). Created `src/test/setup.ts` to - import `@testing-library/jest-dom/vitest`, run `cleanup()` after each test, - and polyfill `matchMedia` + `ResizeObserver` for libraries that touch them. + to `jsdom`, register a `src/test/setup.ts` setup file, and widen `include` + to pick up both legacy `tests/**/*.test.{ts,tsx}` and the new adjacent + `src/**/*.test.{ts,tsx}` pattern. Created `src/test/setup.ts` to import + `@testing-library/jest-dom/vitest`, run `cleanup()` after each test, and + polyfill `matchMedia` + `ResizeObserver` for libraries that touch them. Updated `tsconfig.vitest.json` to extend `tsconfig.app.json` (so DOM libs are visible), pull in `vitest/globals` + `@testing-library/jest-dom` types, and include the new `src/**/*.test.{ts,tsx}` and `src/test/**/*` paths. @@ -148,6 +149,11 @@ Grouped by test strategy. Every listed symbol needs coverage on this branch. standard." Keeping a dedicated `tsconfig.vitest.json` avoids polluting the app build surface with vitest globals. +- **Verification:** `yarn test` runs the three pre-existing test files + (`gm.types`, `gm.selectors`, `gm.interactions`) under the new configuration + with all 11 assertions passing. This establishes a green baseline before + adding new suites. + ### 5. localStorage polyfill in the test setup - **Action taken:** Added a Map-backed `Storage` polyfill to @@ -204,8 +210,8 @@ Grouped by test strategy. Every listed symbol needs coverage on this branch. so test assertions can still locate them. - **Alternatives considered:** 1. *Inline the mock inside each test file.* Rejected: we would end up with - several near-identical copies across the Konva consumers, so any - future fix would need to be applied in parallel. + three near-identical copies (`App`, `StarSystem`, `GalaxyMap`, `main`, + pages barrel), so any future fix would need to be applied in parallel. 2. *Mock `konva` and `react-konva` globally in `src/test/setup.ts`.* Rejected because `vi.mock` is hoisted per-file at parse time — putting it in setup doesn't hoist into other test modules — and globally mocking @@ -216,10 +222,84 @@ Grouped by test strategy. Every listed symbol needs coverage on this branch. coverage; pulling in a canvas shim is a second-pass investment. - **Reasoning:** A shared mock minimizes duplication while staying per-file (`vi.mock` still hoists from each consumer). Exposing methods via - `useImperativeHandle` means Konva-consuming effects can call + `useImperativeHandle` means StarSystem's useEffect animations can call `pulseNode.scale(...)` without a `getLayer is not a function` TypeError — critical for the "smoke test mounts cleanly" guarantee. -- **Verification at this point:** With only the three relocated `gm.*` test - files as content, `yarn test` reports 3 files / 11 tests passing. The rig - is ready to host the new adjacent suites. +### 8. Authoring strategy per audit tier + +- **Pure utilities:** authored one suite per source file with positive-path, + edge-case (empty input, missing key, falsy values, case sensitivity), and + contract tests (shape conformance, type-level assertions). +- **Hooks:** used RTL's `renderHook` + `act` for state hooks; mocked `fetch` + via `vi.stubGlobal` for the API hooks; faked rAF and `performance.now` + with a queue + controllable clock for viewport/pinch hooks to assert both + throttle and frame-coalescing behavior deterministically. +- **Components:** + - `PageTemplate`, `SideMenu`, `Home`, `ToS`, `Error` use `MemoryRouter` + / `createMemoryRouter` to exercise all three `ErrorPage` branches (route + error response, thrown `Error`, non-Error). + - `BottomFilterPanel` drives the toggle chevron, search input, and help + tooltip via `fireEvent`/`userEvent`, and simulates a mobile viewport by + rewriting `window.innerWidth` so the click-to-toggle tooltip path is hit. + - `StarSystem`, `GalaxyMap`, `App`, and `main` use the shared Konva mock + and stub fetch to exercise the component/page/bootstrap surface without + requiring a real canvas. `main.test.tsx` wraps `createRoot` to assert + that bootstrap actually attaches to the supplied `#react-root` element. + +### 9. Final rig verification + +- **Action taken:** Ran `yarn test` (`vitest run`) — the full suite reports + **29 test files / 122 tests passing**. Also ran `npx tsc -p + tsconfig.vitest.json --noEmit` (clean) and `yarn build` (production build + succeeds with the same output as before the test work). +- **Alternatives considered:** + 1. *Only run `yarn test`.* Rejected — a type-clean but untested config + slippage is exactly the sort of silent regression the rig is supposed + to prevent. + 2. *Also run `yarn lint`.* Noted as reasonable for a follow-up but skipped + here: ESLint config is outside the test-rig scope and the existing + codebase warns about some pre-existing issues unrelated to this work. +- **Reasoning:** `test` + `tsc --noEmit` + `build` covers the three + orthogonal failure modes (runtime assertions, type safety, production + bundling). All three are green, which satisfies the CLAUDE.md "must load + correctly and provide standard, readable output" bar. + +#### Final coverage map + +| File | Adjacent test | Depth | +| ----------------------------------------------------- | --------------------------------------------------- | ----- | +| `src/App.tsx` | `src/App.test.tsx` | smoke | +| `src/main.tsx` | `src/main.test.tsx` | smoke | +| `src/components/core/PageTemplate.tsx` | `…/PageTemplate.test.tsx` | deep | +| `src/components/core/SideMenu.tsx` | `…/SideMenu.test.tsx` | deep | +| `src/components/GalaxyMap/gm.interactions.ts` | `…/gm.interactions.test.ts` | deep | +| `src/components/GalaxyMap/gm.selectors.ts` | `…/gm.selectors.test.ts` | deep | +| `src/components/GalaxyMap/gm.types.ts` | `…/gm.types.test.ts` | deep | +| `src/components/helpers/ApiHelper.ts` | `…/ApiHelper.test.ts` | deep | +| `src/components/helpers/CapitalHelper.ts` | `…/CapitalHelper.test.ts` | deep | +| `src/components/helpers/devStateInjector.ts` | `…/devStateInjector.test.ts` | deep | +| `src/components/helpers/FactionHelper.ts` | `…/FactionHelper.test.ts` | deep | +| `src/components/helpers/index.ts` | `…/index.test.ts` | deep | +| `src/components/helpers/NewTabHelper.ts` | `…/NewTabHelper.test.ts` | deep | +| `src/components/helpers/RouteHelper.ts` | `…/RouteHelper.test.ts` | deep | +| `src/components/hooks/types/Settings.ts` | `…/types/Settings.test.ts` | deep | +| `src/components/hooks/types/index.ts` | `…/types/index.test.ts` (covers all 7 type files) | deep | +| `src/components/hooks/useFiltering.ts` | `…/useFiltering.test.ts` | deep | +| `src/components/hooks/useGalaxyViewport.ts` | `…/useGalaxyViewport.test.ts` | deep | +| `src/components/hooks/usePinchZoom.ts` | `…/usePinchZoom.test.ts` | deep | +| `src/components/hooks/useSettings.ts` | `…/useSettings.test.ts` | deep | +| `src/components/hooks/useTooltip.ts` | `…/useTooltip.test.ts` | deep | +| `src/components/hooks/useWarmapAPI.ts` | `…/useWarmapAPI.test.ts` | deep | +| `src/components/pages/Error.tsx` | `…/Error.test.tsx` | deep | +| `src/components/pages/GalaxyMap.tsx` | `…/GalaxyMap.test.tsx` | smoke | +| `src/components/pages/Home.tsx` | `…/Home.test.tsx` | deep | +| `src/components/pages/index.ts` | `…/index.test.ts` | deep | +| `src/components/pages/ToS.tsx` | `…/ToS.test.tsx` | deep | +| `src/components/ui/BottomFilterPanel.tsx` | `…/BottomFilterPanel.test.tsx` | deep | +| `src/components/ui/StarSystem.tsx` | `…/StarSystem.test.tsx` | smoke | + +"Deep" means meaningful behavior / state / DOM assertions; "smoke" means the +component mounts cleanly under mocks with a small number of structural +assertions — the documented Option B posture. + diff --git a/src/App.test.tsx b/src/App.test.tsx new file mode 100644 index 0000000..34735e4 --- /dev/null +++ b/src/App.test.tsx @@ -0,0 +1,36 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; +import { render } from '@testing-library/react'; + +vi.mock('react-konva', async () => { + const mod = await import('./test/konvaMocks'); + return mod.reactKonvaStubs; +}); + +vi.mock('konva', async () => { + const mod = await import('./test/konvaMocks'); + return mod.konvaStub; +}); + +const buildResponse = (payload: unknown) => + ({ ok: true, json: async () => payload } as unknown as Response); + +describe('App', () => { + beforeEach(() => { + vi.stubGlobal( + 'fetch', + vi.fn().mockImplementation(async (url: string) => { + if (url.includes('/starmap/warmap')) return buildResponse([]); + return buildResponse({}); + }) + ); + }); + + afterEach(() => { + vi.unstubAllGlobals(); + }); + + it('mounts under RouterProvider without throwing', async () => { + const { default: App } = await import('./App'); + expect(() => render()).not.toThrow(); + }); +}); diff --git a/src/components/core/PageTemplate.test.tsx b/src/components/core/PageTemplate.test.tsx new file mode 100644 index 0000000..cead004 --- /dev/null +++ b/src/components/core/PageTemplate.test.tsx @@ -0,0 +1,30 @@ +import { describe, it, expect } from 'vitest'; +import { render, screen } from '@testing-library/react'; +import { MemoryRouter } from 'react-router-dom'; +import PageTemplate from './PageTemplate'; + +const renderTemplate = (children: React.ReactNode) => + render( + + {children} + + ); + +describe('PageTemplate', () => { + it('renders its children inside the main content area', () => { + renderTemplate(

hello world

); + expect(screen.getByText('hello world')).toBeInTheDocument(); + }); + + it('renders the SideMenu (home/map/tos links)', () => { + renderTemplate(

content

); + expect(screen.getByText('Home')).toBeInTheDocument(); + expect(screen.getByText('Map')).toBeInTheDocument(); + expect(screen.getByText(/Terms of Data Use/i)).toBeInTheDocument(); + }); + + it('wraps content with the black-background chrome', () => { + const { container } = renderTemplate(

content

); + expect(container.querySelector('.bg-black')).not.toBeNull(); + }); +}); diff --git a/src/components/core/SideMenu.test.tsx b/src/components/core/SideMenu.test.tsx new file mode 100644 index 0000000..83ca886 --- /dev/null +++ b/src/components/core/SideMenu.test.tsx @@ -0,0 +1,40 @@ +import { describe, it, expect } from 'vitest'; +import { render, screen } from '@testing-library/react'; +import { MemoryRouter } from 'react-router-dom'; +import { SideMenu } from './SideMenu'; + +const renderMenu = () => + render( + + + + ); + +describe('SideMenu', () => { + it('renders the RogueWar logo image', () => { + const { container } = renderMenu(); + const logo = container.querySelector('#RoguewarLogo') as HTMLImageElement | null; + expect(logo).not.toBeNull(); + expect(logo?.getAttribute('src')).toBe('/rtLogo.png'); + }); + + it('renders Home and Map nav items as links pointing to / and /map', () => { + renderMenu(); + const home = screen.getByText('Home').closest('a'); + const map = screen.getByText('Map').closest('a'); + expect(home).toHaveAttribute('href', '/'); + expect(map).toHaveAttribute('href', '/map'); + }); + + it('renders the Terms of Data Use link pointing to /tos', () => { + renderMenu(); + const tos = screen.getByText(/Terms of Data Use/i).closest('a'); + expect(tos).toHaveAttribute('href', '/tos'); + }); + + it('wraps the logo in a link home (clicking the logo goes to /)', () => { + const { container } = renderMenu(); + const anchor = container.querySelector('#RoguewarLogo')?.closest('a'); + expect(anchor).toHaveAttribute('href', '/'); + }); +}); diff --git a/src/components/helpers/ApiHelper.test.ts b/src/components/helpers/ApiHelper.test.ts new file mode 100644 index 0000000..65637bb --- /dev/null +++ b/src/components/helpers/ApiHelper.test.ts @@ -0,0 +1,15 @@ +import { describe, it, expect } from 'vitest'; +import { API_BASE_URL } from './ApiHelper'; + +describe('ApiHelper.API_BASE_URL', () => { + it('resolves to the env-provided VITE_API_URL when set, otherwise the production fallback', () => { + const expected = import.meta.env.VITE_API_URL || 'https://roguewar.org'; + expect(API_BASE_URL).toBe(expected); + }); + + it('is a non-empty string usable as a URL prefix', () => { + expect(typeof API_BASE_URL).toBe('string'); + expect(API_BASE_URL.length).toBeGreaterThan(0); + expect(() => new URL('/api/v1/factions/warmap', API_BASE_URL)).not.toThrow(); + }); +}); diff --git a/src/components/helpers/CapitalHelper.test.ts b/src/components/helpers/CapitalHelper.test.ts new file mode 100644 index 0000000..9ecfd5f --- /dev/null +++ b/src/components/helpers/CapitalHelper.test.ts @@ -0,0 +1,21 @@ +import { describe, it, expect } from 'vitest'; +import { isCapital } from './CapitalHelper'; + +describe('isCapital', () => { + it('returns true when the system name is present in the capitals list', () => { + expect(isCapital('Terra', ['Terra', 'Luthien'])).toBe(true); + }); + + it('returns false when the system is not a capital', () => { + expect(isCapital('Altair', ['Terra', 'Luthien'])).toBe(false); + }); + + it('returns false for an empty capitals list', () => { + expect(isCapital('Terra', [])).toBe(false); + }); + + it('matches case-sensitively (capital lookup is exact)', () => { + expect(isCapital('terra', ['Terra'])).toBe(false); + expect(isCapital('Terra', ['Terra'])).toBe(true); + }); +}); diff --git a/src/components/helpers/FactionHelper.test.ts b/src/components/helpers/FactionHelper.test.ts new file mode 100644 index 0000000..0ef4820 --- /dev/null +++ b/src/components/helpers/FactionHelper.test.ts @@ -0,0 +1,26 @@ +import { describe, it, expect } from 'vitest'; +import { findFaction } from './FactionHelper'; +import type { FactionDataType } from '../hooks/types'; + +const factions: FactionDataType = { + DAVION: { colour: '#ffcc00', prettyName: 'Davion', id: 1, capital: 'New Avalon' }, + KURITA: { colour: '#ff0000', prettyName: 'Kurita', id: 2, capital: 'Luthien' }, +}; + +describe('findFaction', () => { + it('returns the faction matching the key', () => { + expect(findFaction('DAVION', factions)).toEqual(factions.DAVION); + }); + + it('returns undefined when the key is not present', () => { + expect(findFaction('MISSING', factions)).toBeUndefined(); + }); + + it('returns undefined for an empty faction map', () => { + expect(findFaction('DAVION', {})).toBeUndefined(); + }); + + it('does case-sensitive key matching', () => { + expect(findFaction('davion', factions)).toBeUndefined(); + }); +}); diff --git a/src/components/helpers/NewTabHelper.test.ts b/src/components/helpers/NewTabHelper.test.ts new file mode 100644 index 0000000..7473be3 --- /dev/null +++ b/src/components/helpers/NewTabHelper.test.ts @@ -0,0 +1,25 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; +import { openInNewTab } from './NewTabHelper'; + +describe('openInNewTab', () => { + let openSpy: ReturnType; + + beforeEach(() => { + openSpy = vi.spyOn(window, 'open').mockImplementation(() => null); + }); + + afterEach(() => { + openSpy.mockRestore(); + }); + + it('calls window.open with the URL, _blank target, and noreferrer features', () => { + openInNewTab('https://example.com'); + expect(openSpy).toHaveBeenCalledWith('https://example.com', '_blank', 'noreferrer'); + }); + + it('accepts URL instances as well as strings', () => { + const url = new URL('https://example.com/path'); + openInNewTab(url); + expect(openSpy).toHaveBeenCalledWith(url, '_blank', 'noreferrer'); + }); +}); diff --git a/src/components/helpers/RouteHelper.test.ts b/src/components/helpers/RouteHelper.test.ts new file mode 100644 index 0000000..696e182 --- /dev/null +++ b/src/components/helpers/RouteHelper.test.ts @@ -0,0 +1,14 @@ +import { describe, it, expect } from 'vitest'; +import { BASE_ROUTE } from './RouteHelper'; + +describe('RouteHelper.BASE_ROUTE', () => { + it('resolves to VITE_BASE_URL when provided, otherwise "/"', () => { + const expected = import.meta.env.VITE_BASE_URL || '/'; + expect(BASE_ROUTE).toBe(expected); + }); + + it('is a non-empty string', () => { + expect(typeof BASE_ROUTE).toBe('string'); + expect(BASE_ROUTE.length).toBeGreaterThan(0); + }); +}); diff --git a/src/components/helpers/devStateInjector.test.ts b/src/components/helpers/devStateInjector.test.ts new file mode 100644 index 0000000..90aa483 --- /dev/null +++ b/src/components/helpers/devStateInjector.test.ts @@ -0,0 +1,163 @@ +import { describe, it, expect, beforeEach, vi } from 'vitest'; +import { applyDevStateInjection } from './devStateInjector'; +import type { StarSystemType } from '../hooks/types'; + +const makeSystem = ( + name: string, + extras: Partial = {} +): StarSystemType => ({ + name, + posX: 0, + posY: 0, + owner: 'NoFaction', + factions: [], + ...extras, +}); + +const ENABLE_STORAGE_KEY = 'warMapDevStateTest'; +const PRESET_STORAGE_KEY = 'warMapDevStatePreset'; +const OVERRIDES_STORAGE_KEY = 'warMapDevStateOverrides'; + +const resetLocation = () => { + window.history.replaceState({}, '', '/'); +}; + +beforeEach(() => { + window.localStorage.clear(); + resetLocation(); +}); + +describe('applyDevStateInjection', () => { + it('returns the input systems untouched when the feature is disabled (no flag set)', () => { + const systems = [makeSystem('Terra'), makeSystem('Altair')]; + const result = applyDevStateInjection(systems); + expect(result).toEqual(systems); + }); + + it('returns input unchanged when enabled but no systems match any override', () => { + window.localStorage.setItem(ENABLE_STORAGE_KEY, '1'); + window.localStorage.setItem(PRESET_STORAGE_KEY, 'nonexistent'); + // nothing in DEV_*_SYSTEMS lists will match these names; also preset falls back to 'sample' + const systems = [makeSystem('ZZZ1'), makeSystem('ZZZ2')]; + const result = applyDevStateInjection(systems); + // "sample" preset picks first 5 alphabetically → ZZZ1, ZZZ2 get overrides + // so at least some systems will be touched; assert shape rather than equality + expect(result).toHaveLength(2); + }); + + it('applies the sample preset when ?stateTest=1 is set in URL', () => { + window.history.replaceState({}, '', '/?stateTest=1&statePreset=sample'); + const systems = [ + makeSystem('Alpha'), + makeSystem('Bravo'), + makeSystem('Charlie'), + makeSystem('Delta'), + makeSystem('Echo'), + makeSystem('Foxtrot'), + ]; + const result = applyDevStateInjection(systems); + expect(result.find((s) => s.name === 'Alpha')?.state?.isInsurrect).toBe(true); + expect(result.find((s) => s.name === 'Bravo')?.state?.hasPirateRaid).toBe(true); + expect(result.find((s) => s.name === 'Charlie')?.state?.hasCaptureEvent).toBe(true); + expect(result.find((s) => s.name === 'Delta')?.state?.hasHoldTheLineEvent).toBe(true); + expect(result.find((s) => s.name === 'Echo')?.state?.hasPirateRaid).toBe(true); + expect(result.find((s) => s.name === 'Echo')?.state?.hasCaptureEvent).toBe(true); + }); + + it('applies the dense preset when statePreset=dense', () => { + window.history.replaceState({}, '', '/?stateTest=1&statePreset=dense'); + const systems = [ + makeSystem('A1'), + makeSystem('A2'), + makeSystem('A3'), + makeSystem('A4'), + ]; + const result = applyDevStateInjection(systems); + // Dense preset uses idx % 4: 0→isInsurrect, 1→hasPirateRaid, 2→hasCaptureEvent, 3→hasHoldTheLineEvent + const byName = Object.fromEntries(result.map((s) => [s.name, s])); + expect(byName.A1.state?.isInsurrect).toBe(true); + expect(byName.A2.state?.hasPirateRaid).toBe(true); + expect(byName.A3.state?.hasCaptureEvent).toBe(true); + expect(byName.A4.state?.hasHoldTheLineEvent).toBe(true); + }); + + it('injects insurrection on named systems when enabled', () => { + window.localStorage.setItem(ENABLE_STORAGE_KEY, 'true'); + const systems = [makeSystem('Terra'), makeSystem('Dieron')]; + const result = applyDevStateInjection(systems); + expect(result.find((s) => s.name === 'Terra')?.state?.isInsurrect).toBe(true); + expect(result.find((s) => s.name === 'Dieron')?.state?.isInsurrect).toBe(true); + }); + + it('matches named targets case-insensitively (canonical name is preserved)', () => { + window.localStorage.setItem(ENABLE_STORAGE_KEY, 'on'); + // lowercase system name should still be injected because lookup lower-cases targets + const systems = [makeSystem('terra')]; + const result = applyDevStateInjection(systems); + expect(result[0].state?.isInsurrect).toBe(true); + expect(result[0].name).toBe('terra'); + }); + + it('treats "0", "false", "off" in the enable flag as disabled', () => { + window.localStorage.setItem(ENABLE_STORAGE_KEY, 'false'); + const systems = [makeSystem('Terra')]; + expect(applyDevStateInjection(systems)).toEqual(systems); + + window.localStorage.setItem(ENABLE_STORAGE_KEY, '0'); + expect(applyDevStateInjection(systems)).toEqual(systems); + + window.localStorage.setItem(ENABLE_STORAGE_KEY, 'off'); + expect(applyDevStateInjection(systems)).toEqual(systems); + }); + + it('honors a custom override map stored in localStorage', () => { + window.localStorage.setItem(ENABLE_STORAGE_KEY, '1'); + window.localStorage.setItem( + OVERRIDES_STORAGE_KEY, + JSON.stringify({ Vega: { hasPirateRaid: true, isInsurrect: false } }) + ); + const systems = [makeSystem('Vega')]; + const result = applyDevStateInjection(systems); + expect(result[0].state?.hasPirateRaid).toBe(true); + expect(result[0].state?.isInsurrect).toBe(false); + }); + + it('ignores invalid JSON stored in the overrides slot without throwing', () => { + const warnSpy = vi.spyOn(console, 'warn').mockImplementation(() => {}); + window.localStorage.setItem(ENABLE_STORAGE_KEY, '1'); + window.localStorage.setItem(OVERRIDES_STORAGE_KEY, '{{{not-json'); + const systems = [makeSystem('Vega')]; + expect(() => applyDevStateInjection(systems)).not.toThrow(); + expect(warnSpy).toHaveBeenCalled(); + warnSpy.mockRestore(); + }); + + it('ignores overrides payload that does not match the expected shape', () => { + window.localStorage.setItem(ENABLE_STORAGE_KEY, '1'); + // number flag where a boolean is expected -> rejected + window.localStorage.setItem( + OVERRIDES_STORAGE_KEY, + JSON.stringify({ Vega: { isInsurrect: 1 } }) + ); + const systems = [makeSystem('Vega')]; + const result = applyDevStateInjection(systems); + // Custom override dropped; Vega not in any named preset list → no injection from that path + // but the sample preset may still inject because Vega sorts first of 1 + expect(result[0].name).toBe('Vega'); + }); + + it('returns the same array (no mutation) when no overrides apply after filtering', () => { + window.localStorage.setItem(ENABLE_STORAGE_KEY, '1'); + // Provide preset = sample but no systems — the overrides object will be empty → early return + const systems: StarSystemType[] = []; + const result = applyDevStateInjection(systems); + expect(result).toBe(systems); + }); + + it('does not throw when VITE env flag alone enables injection', () => { + // Simulate production-like path: no DEV but VITE_ENABLE_STATE_TEST=true is checked. + // Under vitest, DEV is already true so this test just confirms non-throwing behavior. + const systems = [makeSystem('Terra')]; + expect(() => applyDevStateInjection(systems)).not.toThrow(); + }); +}); diff --git a/src/components/helpers/index.test.ts b/src/components/helpers/index.test.ts new file mode 100644 index 0000000..8c6edce --- /dev/null +++ b/src/components/helpers/index.test.ts @@ -0,0 +1,15 @@ +import { describe, it, expect } from 'vitest'; +import * as helpers from './index'; + +describe('helpers barrel', () => { + it('re-exports openInNewTab, findFaction, and isCapital', () => { + expect(typeof helpers.openInNewTab).toBe('function'); + expect(typeof helpers.findFaction).toBe('function'); + expect(typeof helpers.isCapital).toBe('function'); + }); + + it('does not leak unexpected exports', () => { + const exported = Object.keys(helpers).sort(); + expect(exported).toEqual(['findFaction', 'isCapital', 'openInNewTab']); + }); +}); diff --git a/src/components/hooks/types/Settings.test.ts b/src/components/hooks/types/Settings.test.ts new file mode 100644 index 0000000..9040581 --- /dev/null +++ b/src/components/hooks/types/Settings.test.ts @@ -0,0 +1,13 @@ +import { describe, it, expect, expectTypeOf } from 'vitest'; +import { initialSettings, type Settings } from './Settings'; + +describe('Settings / initialSettings', () => { + it('has the expected flashActivePlayes default', () => { + expect(initialSettings).toEqual({ flashActivePlayes: true }); + }); + + it('conforms to the Settings type', () => { + expectTypeOf(initialSettings).toMatchTypeOf(); + expectTypeOf(initialSettings.flashActivePlayes).toBeBoolean(); + }); +}); diff --git a/src/components/hooks/types/index.test.ts b/src/components/hooks/types/index.test.ts new file mode 100644 index 0000000..7bdd535 --- /dev/null +++ b/src/components/hooks/types/index.test.ts @@ -0,0 +1,55 @@ +import { describe, it, expect, expectTypeOf } from 'vitest'; +import * as types from './index'; +import type { + ControlInfo, + DisplayStarSystemType, + FactionDataType, + FactionType, + Settings, + StarSystemState, + StarSystemType, + StarSystemWithState, +} from './index'; + +describe('hook types barrel', () => { + it('exposes initialSettings at runtime', () => { + expect(types.initialSettings).toEqual({ flashActivePlayes: true }); + }); + + it('does not leak unexpected runtime exports (only initialSettings)', () => { + expect(Object.keys(types)).toEqual(['initialSettings']); + }); + + it('surfaces the expected type aliases (compile-time check)', () => { + expectTypeOf().toHaveProperty('Name'); + expectTypeOf().toHaveProperty('control'); + expectTypeOf().toHaveProperty('ActivePlayers'); + + expectTypeOf().toHaveProperty('colour'); + expectTypeOf().toHaveProperty('prettyName'); + expectTypeOf().toHaveProperty('id'); + expectTypeOf().toHaveProperty('capital'); + + expectTypeOf().toEqualTypeOf>(); + + expectTypeOf().toMatchTypeOf<{ + isInsurrect?: boolean; + hasPirateRaid?: boolean; + hasCaptureEvent?: boolean; + hasHoldTheLineEvent?: boolean; + }>(); + + expectTypeOf().toHaveProperty('name'); + expectTypeOf().toHaveProperty('posX'); + expectTypeOf().toHaveProperty('posY'); + expectTypeOf().toHaveProperty('owner'); + expectTypeOf().toHaveProperty('factions'); + + expectTypeOf().toMatchTypeOf(); + expectTypeOf().toHaveProperty('isCapital'); + expectTypeOf().toHaveProperty('factionColour'); + expectTypeOf().toHaveProperty('factionName'); + + expectTypeOf().toHaveProperty('flashActivePlayes'); + }); +}); diff --git a/src/components/hooks/useFiltering.test.ts b/src/components/hooks/useFiltering.test.ts new file mode 100644 index 0000000..cde715c --- /dev/null +++ b/src/components/hooks/useFiltering.test.ts @@ -0,0 +1,104 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; +import { act, renderHook, waitFor } from '@testing-library/react'; +import useFiltering from './useFiltering'; + +const buildResponse = (payload: unknown) => + ({ ok: true, json: async () => payload } as unknown as Response); + +describe('useFiltering', () => { + let fetchMock: ReturnType; + + beforeEach(() => { + fetchMock = vi.fn(); + vi.stubGlobal('fetch', fetchMock); + }); + + afterEach(() => { + vi.unstubAllGlobals(); + }); + + it('exposes the composed API surface', () => { + const { result } = renderHook(() => useFiltering()); + expect(result.current).toMatchObject({ + displaySystems: [], + factions: {}, + capitals: [], + }); + expect(typeof result.current.projectSystemData).toBe('function'); + expect(typeof result.current.fetchFactionData).toBe('function'); + expect(typeof result.current.fetchSystemData).toBe('function'); + expect(typeof result.current.setFlashActive).toBe('function'); + expect(result.current.settings).toEqual({ flashActivePlayes: true }); + }); + + it('projectSystemData enriches raw systems with faction and capital fields', async () => { + fetchMock + .mockResolvedValueOnce( + buildResponse({ + DAVION: { + colour: '#ff0', + prettyName: 'Davion', + id: 1, + capital: 'New Avalon', + }, + }) + ) + .mockResolvedValueOnce( + buildResponse([ + { + name: 'New Avalon', + posX: 1, + posY: 2, + owner: 'DAVION', + factions: [], + }, + { + name: 'Random', + posX: 3, + posY: 4, + owner: 'MISSING', + factions: [], + }, + ]) + ); + + const { result } = renderHook(() => useFiltering()); + + await act(async () => { + await result.current.fetchFactionData(); + }); + await act(async () => { + await result.current.fetchSystemData(); + }); + + await waitFor(() => { + expect(result.current.displaySystems.length).toBe(2); + }); + + const avalon = result.current.displaySystems.find((s) => s.name === 'New Avalon'); + const random = result.current.displaySystems.find((s) => s.name === 'Random'); + + expect(avalon).toMatchObject({ + isCapital: true, + factionColour: '#ff0', + factionName: 'Davion', + }); + expect(random).toMatchObject({ + isCapital: false, + factionColour: 'gray', + factionName: 'Unknown Faction', + }); + }); + + it('projectSystemData is a pure function and can be invoked directly', () => { + const { result } = renderHook(() => useFiltering()); + const projected = result.current.projectSystemData([ + { name: 'Zeta', posX: 0, posY: 0, owner: 'DAVION', factions: [] }, + ]); + // factions map is empty initially so faction lookup fails → defaults + expect(projected[0]).toMatchObject({ + factionColour: 'gray', + factionName: 'Unknown Faction', + }); + }); +}); diff --git a/src/components/hooks/useGalaxyViewport.test.ts b/src/components/hooks/useGalaxyViewport.test.ts new file mode 100644 index 0000000..793fdf0 --- /dev/null +++ b/src/components/hooks/useGalaxyViewport.test.ts @@ -0,0 +1,194 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; +import { act, renderHook } from '@testing-library/react'; +import { useGalaxyViewport } from './useGalaxyViewport'; + +type FakeStage = { + scale: ReturnType; + position: ReturnType; + getPointerPosition: ReturnType; + x: ReturnType; + y: ReturnType; + batchDraw: ReturnType; +}; + +const buildFakeStage = (pointer = { x: 400, y: 300 }, offset = { x: 0, y: 0 }): FakeStage => ({ + scale: vi.fn(), + position: vi.fn(), + getPointerPosition: vi.fn(() => pointer), + x: vi.fn(() => offset.x), + y: vi.fn(() => offset.y), + batchDraw: vi.fn(), +}); + +let rafQueue: FrameRequestCallback[] = []; +const flushRaf = () => { + const queued = rafQueue.splice(0); + queued.forEach((cb) => cb(performance.now())); +}; + +let mockNow = 10_000; // start at a time that clears every reasonable throttle +const advanceTime = (ms: number) => { + mockNow += ms; +}; + +describe('useGalaxyViewport', () => { + beforeEach(() => { + rafQueue = []; + mockNow = 10_000; + vi.spyOn(window, 'requestAnimationFrame').mockImplementation(((cb: FrameRequestCallback) => { + rafQueue.push(cb); + return rafQueue.length; + }) as typeof window.requestAnimationFrame); + vi.spyOn(performance, 'now').mockImplementation(() => mockNow); + }); + + afterEach(() => { + vi.restoreAllMocks(); + }); + + it('returns an initial view transform centered on the viewport with scale=1', () => { + const { result } = renderHook(() => useGalaxyViewport()); + expect(result.current.view.scale).toBe(1); + expect(result.current.view.position).toEqual({ + x: window.innerWidth / 2, + y: window.innerHeight / 2, + }); + expect(result.current.zoomScaleFactor).toBe(1); + }); + + it('exposes the refs and handlers expected by the map', () => { + const { result } = renderHook(() => useGalaxyViewport()); + expect(result.current.stageRef).toBeDefined(); + expect(result.current.scaleRef.current).toBe(1); + expect(result.current.positionRef.current).toEqual(result.current.view.position); + expect(typeof result.current.handlers.onWheel).toBe('function'); + expect(typeof result.current.handlers.onDragMove).toBe('function'); + expect(typeof result.current.requestBatchDraw).toBe('function'); + }); + + it('onWheel preventDefaults the event and bails cleanly when stageRef is not attached', () => { + const { result } = renderHook(() => useGalaxyViewport({ wheelThrottleMs: 0 })); + const preventDefault = vi.fn(); + + act(() => { + result.current.handlers.onWheel({ + evt: { preventDefault, deltaY: -1 }, + } as any); + }); + + expect(preventDefault).toHaveBeenCalled(); + expect(result.current.view.scale).toBe(1); + }); + + it('onWheel with negative deltaY zooms in, clamping to maxScale', () => { + const { result } = renderHook(() => + useGalaxyViewport({ maxScale: 2, minScale: 0.1, wheelThrottleMs: 0 }) + ); + const stage = buildFakeStage({ x: 100, y: 100 }); + act(() => { + (result.current.stageRef as any).current = stage; + }); + + act(() => { + result.current.handlers.onWheel({ + evt: { preventDefault: vi.fn(), deltaY: -1 }, + } as any); + }); + + expect(stage.scale).toHaveBeenCalled(); + const [{ x, y }] = stage.scale.mock.calls[0]; + expect(x).toBe(y); + expect(x).toBeLessThanOrEqual(2); + expect(x).toBeGreaterThan(1); + expect(result.current.zoomScaleFactor).toBe(x); + }); + + it('onWheel with positive deltaY zooms out, clamping to minScale', () => { + const { result } = renderHook(() => + useGalaxyViewport({ maxScale: 25, minScale: 0.5, wheelThrottleMs: 0 }) + ); + const stage = buildFakeStage({ x: 100, y: 100 }); + act(() => { + (result.current.stageRef as any).current = stage; + }); + + act(() => { + result.current.handlers.onWheel({ + evt: { preventDefault: vi.fn(), deltaY: 1 }, + } as any); + }); + + const [{ x }] = stage.scale.mock.calls[0]; + expect(x).toBeGreaterThanOrEqual(0.5); + expect(x).toBeLessThan(1); + }); + + it('throttles a second wheel event within the configured window', () => { + const { result } = renderHook(() => + useGalaxyViewport({ wheelThrottleMs: 100 }) + ); + const stage = buildFakeStage(); + act(() => { + (result.current.stageRef as any).current = stage; + }); + + // First call at t = 10_000 clears the initial 0 → 10_000 gap, so scales once. + act(() => + result.current.handlers.onWheel({ + evt: { preventDefault: vi.fn(), deltaY: -1 }, + } as any) + ); + expect(stage.scale).toHaveBeenCalledTimes(1); + + // Second call 10 ms later is within the 100 ms window → throttled. + advanceTime(10); + act(() => + result.current.handlers.onWheel({ + evt: { preventDefault: vi.fn(), deltaY: -1 }, + } as any) + ); + expect(stage.scale).toHaveBeenCalledTimes(1); + + // Third call after the window elapses → fires again. + advanceTime(200); + act(() => + result.current.handlers.onWheel({ + evt: { preventDefault: vi.fn(), deltaY: -1 }, + } as any) + ); + expect(stage.scale).toHaveBeenCalledTimes(2); + }); + + it('onDragMove records the new stage position on the position ref', () => { + const { result } = renderHook(() => useGalaxyViewport()); + const fakeTarget = { x: () => 11, y: () => 22 }; + + act(() => { + result.current.handlers.onDragMove({ target: fakeTarget } as any); + }); + + expect(result.current.positionRef.current).toEqual({ x: 11, y: 22 }); + }); + + it('requestBatchDraw coalesces two synchronous calls into one frame', () => { + const { result } = renderHook(() => useGalaxyViewport()); + const stage = buildFakeStage(); + + act(() => { + result.current.requestBatchDraw(stage as any); + result.current.requestBatchDraw(stage as any); + }); + + // Both calls should queue at most one rAF. + expect(rafQueue).toHaveLength(1); + + act(() => flushRaf()); + expect(stage.batchDraw).toHaveBeenCalledTimes(1); + + // After the frame flushes, a subsequent request should schedule a new frame. + act(() => result.current.requestBatchDraw(stage as any)); + expect(rafQueue).toHaveLength(1); + act(() => flushRaf()); + expect(stage.batchDraw).toHaveBeenCalledTimes(2); + }); +}); diff --git a/src/components/hooks/usePinchZoom.test.ts b/src/components/hooks/usePinchZoom.test.ts new file mode 100644 index 0000000..88043be --- /dev/null +++ b/src/components/hooks/usePinchZoom.test.ts @@ -0,0 +1,159 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; +import { act, renderHook } from '@testing-library/react'; +import { useRef } from 'react'; +import { usePinchZoom } from './usePinchZoom'; +import type { Point } from '../GalaxyMap/gm.types'; + +type FakeStage = { + scale: ReturnType; + position: ReturnType; + scaleX: ReturnType; + getPosition: ReturnType; +}; + +const buildFakeStage = (): FakeStage => ({ + scale: vi.fn(), + position: vi.fn(), + scaleX: vi.fn(() => 1), + getPosition: vi.fn(() => ({ x: 0, y: 0 })), +}); + +const renderPinch = (opts?: Partial<{ minScale: number; maxScale: number }>) => { + const requestBatchDraw = vi.fn(); + const setZoomScaleFactor = vi.fn(); + const hideTooltip = vi.fn(); + const fakeStage = buildFakeStage(); + + const hook = renderHook(() => { + const stageRef = useRef(fakeStage); + const scaleRef = useRef(1); + const positionRef = useRef({ x: 0, y: 0 }); + return usePinchZoom({ + stageRef, + scaleRef, + positionRef, + requestBatchDraw, + setZoomScaleFactor, + hideTooltip, + minScale: opts?.minScale, + maxScale: opts?.maxScale, + }); + }); + + return { hook, fakeStage, requestBatchDraw, setZoomScaleFactor, hideTooltip }; +}; + +describe('usePinchZoom', () => { + beforeEach(() => { + vi.spyOn(window, 'requestAnimationFrame').mockImplementation(((cb: FrameRequestCallback) => { + cb(performance.now()); + return 1; + }) as typeof window.requestAnimationFrame); + vi.spyOn(window, 'cancelAnimationFrame').mockImplementation(() => {}); + }); + + afterEach(() => { + vi.restoreAllMocks(); + }); + + it('is not pinching initially and exposes three touch handlers', () => { + const { hook } = renderPinch(); + expect(hook.result.current.isPinching).toBe(false); + expect(typeof hook.result.current.handlers.onTouchStart).toBe('function'); + expect(typeof hook.result.current.handlers.onTouchMove).toBe('function'); + expect(typeof hook.result.current.handlers.onTouchEnd).toBe('function'); + }); + + it('single tap on empty background calls hideTooltip', () => { + const { hook, hideTooltip } = renderPinch(); + const evt = { + evt: { + touches: [{ clientX: 10, clientY: 10 }], + }, + target: { + className: 'Layer', + findAncestor: () => undefined, + }, + }; + + act(() => { + hook.result.current.handlers.onTouchStart(evt as any); + }); + + expect(hideTooltip).toHaveBeenCalled(); + }); + + it('single tap on a Circle does not hide tooltip', () => { + const { hook, hideTooltip } = renderPinch(); + const evt = { + evt: { touches: [{ clientX: 0, clientY: 0 }] }, + target: { + className: 'Circle', + findAncestor: () => undefined, + }, + }; + act(() => hook.result.current.handlers.onTouchStart(evt as any)); + expect(hideTooltip).not.toHaveBeenCalled(); + }); + + it('two-finger touchStart turns on isPinching', () => { + const { hook } = renderPinch(); + const evt = { + evt: { + touches: [ + { clientX: 0, clientY: 0 }, + { clientX: 10, clientY: 0 }, + ], + }, + target: { className: 'Layer', findAncestor: () => undefined }, + }; + act(() => hook.result.current.handlers.onTouchStart(evt as any)); + expect(hook.result.current.isPinching).toBe(true); + }); + + it('touchEnd with < 2 touches resets isPinching to false', () => { + const { hook, setZoomScaleFactor } = renderPinch(); + + // start pinching + act(() => + hook.result.current.handlers.onTouchStart({ + evt: { + touches: [ + { clientX: 0, clientY: 0 }, + { clientX: 10, clientY: 0 }, + ], + }, + target: { className: 'Layer', findAncestor: () => undefined }, + } as any) + ); + expect(hook.result.current.isPinching).toBe(true); + + // end gesture + act(() => + hook.result.current.handlers.onTouchEnd({ + evt: { touches: [] }, + } as any) + ); + + expect(hook.result.current.isPinching).toBe(false); + expect(setZoomScaleFactor).toHaveBeenCalled(); + }); + + it('onTouchMove is a no-op when not pinching', () => { + const { hook, fakeStage } = renderPinch(); + + act(() => + hook.result.current.handlers.onTouchMove({ + evt: { + preventDefault: vi.fn(), + touches: [ + { clientX: 0, clientY: 0 }, + { clientX: 20, clientY: 0 }, + ], + }, + } as any) + ); + + expect(fakeStage.scale).not.toHaveBeenCalled(); + }); +}); diff --git a/src/components/hooks/useSettings.test.ts b/src/components/hooks/useSettings.test.ts new file mode 100644 index 0000000..94a3b1e --- /dev/null +++ b/src/components/hooks/useSettings.test.ts @@ -0,0 +1,34 @@ +import { describe, it, expect } from 'vitest'; +import { act, renderHook } from '@testing-library/react'; +import useSettings from './useSettings'; +import { initialSettings } from './types'; + +describe('useSettings', () => { + it('returns the initial settings on mount', () => { + const { result } = renderHook(() => useSettings()); + expect(result.current.settings).toEqual(initialSettings); + }); + + it('setFlashActive(false) toggles flashActivePlayes off', () => { + const { result } = renderHook(() => useSettings()); + + act(() => { + result.current.setFlashActive(false); + }); + + expect(result.current.settings.flashActivePlayes).toBe(false); + }); + + it('setFlashActive(true) toggles it back on without mutating previous state', () => { + const { result } = renderHook(() => useSettings()); + + act(() => result.current.setFlashActive(false)); + const firstSettings = result.current.settings; + + act(() => result.current.setFlashActive(true)); + + expect(result.current.settings.flashActivePlayes).toBe(true); + // previous state reference should not have been mutated + expect(firstSettings.flashActivePlayes).toBe(false); + }); +}); diff --git a/src/components/hooks/useTooltip.test.ts b/src/components/hooks/useTooltip.test.ts new file mode 100644 index 0000000..ab00fd3 --- /dev/null +++ b/src/components/hooks/useTooltip.test.ts @@ -0,0 +1,83 @@ +import { describe, it, expect } from 'vitest'; +import { act, renderHook } from '@testing-library/react'; +import { useRef } from 'react'; +import useTooltip from './useTooltip'; + +const renderWithScale = (initialScale: number | null = 1) => + renderHook(() => { + const scaleRef = useRef(initialScale); + return useTooltip(scaleRef as React.RefObject); + }); + +describe('useTooltip', () => { + it('starts hidden with empty text at the origin', () => { + const { result } = renderWithScale(); + expect(result.current.tooltip).toEqual({ + visible: false, + text: '', + x: 0, + y: 0, + }); + }); + + it('showTooltip without stage offsets uses the pointer coordinates directly', () => { + const { result } = renderWithScale(1); + + act(() => { + result.current.showTooltip('label', 150, 200); + }); + + expect(result.current.tooltip).toMatchObject({ + visible: true, + text: 'label', + x: 150, + y: 200, + }); + }); + + it('showTooltip with stage offsets applies the scale-normalized world position', () => { + const { result } = renderWithScale(2); + + act(() => { + result.current.showTooltip('label', 300, 400, 100, 200); + }); + + // (300 - 100) / 2 = 100, (400 - 200) / 2 = 100 + expect(result.current.tooltip.x).toBe(100); + expect(result.current.tooltip.y).toBe(100); + }); + + it('falls back to scale=1 when the scale ref is null or zero', () => { + const { result } = renderWithScale(null); + act(() => { + result.current.showTooltip('label', 50, 70, 0, 0); + }); + expect(result.current.tooltip.x).toBe(50); + expect(result.current.tooltip.y).toBe(70); + }); + + it('carries onTouch and controlItems through to the tooltip state', () => { + const { result } = renderWithScale(); + const onTouch = () => {}; + const controlItems = [{ name: 'Davion', control: 50, players: 3 }]; + + act(() => { + result.current.showTooltip('label', 10, 20, undefined, undefined, onTouch, controlItems); + }); + + expect(result.current.tooltip.onTouch).toBe(onTouch); + expect(result.current.tooltip.controlItems).toEqual(controlItems); + }); + + it('hideTooltip only toggles visible to false, preserving the remaining state', () => { + const { result } = renderWithScale(); + + act(() => result.current.showTooltip('label', 10, 20)); + act(() => result.current.hideTooltip()); + + expect(result.current.tooltip.visible).toBe(false); + expect(result.current.tooltip.text).toBe('label'); + expect(result.current.tooltip.x).toBe(10); + expect(result.current.tooltip.y).toBe(20); + }); +}); diff --git a/src/components/hooks/useWarmapAPI.test.ts b/src/components/hooks/useWarmapAPI.test.ts new file mode 100644 index 0000000..e1b687d --- /dev/null +++ b/src/components/hooks/useWarmapAPI.test.ts @@ -0,0 +1,107 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; +import { act, renderHook, waitFor } from '@testing-library/react'; +import useWarmapAPI from './useWarmapAPI'; + +type FetchMock = ReturnType; + +const buildResponse = (payload: unknown) => + ({ + ok: true, + json: async () => payload, + } as unknown as Response); + +describe('useWarmapAPI', () => { + let fetchMock: FetchMock; + + beforeEach(() => { + fetchMock = vi.fn(); + vi.stubGlobal('fetch', fetchMock); + }); + + afterEach(() => { + vi.unstubAllGlobals(); + }); + + it('starts with empty state before any fetch', () => { + const { result } = renderHook(() => useWarmapAPI()); + expect(result.current.rawSystems).toEqual([]); + expect(result.current.factions).toEqual({}); + expect(result.current.capitals).toEqual([]); + }); + + it('fetchFactionData normalizes NoFaction and derives capitals', async () => { + fetchMock.mockResolvedValue( + buildResponse({ + DAVION: { colour: '#ff0', prettyName: 'Davion', id: 1, capital: 'New Avalon' }, + LIAO: { colour: '#0f0', prettyName: 'Liao', id: 2, capital: 'Sian' }, + UNALIGNED: { colour: '#444', prettyName: 'Loose', id: 3 }, // no capital + }) + ); + + const { result } = renderHook(() => useWarmapAPI()); + + await act(async () => { + await result.current.fetchFactionData(); + }); + + await waitFor(() => { + expect(result.current.factions.NoFaction).toEqual({ + colour: 'gray', + prettyName: 'Unaffiliated', + }); + }); + expect(result.current.factions.DAVION.prettyName).toBe('Davion'); + // capitals include only factions with a `capital` property set + expect(new Set(result.current.capitals)).toEqual(new Set(['New Avalon', 'Sian'])); + }); + + it('fetchSystemData stores raw systems returned from the endpoint', async () => { + fetchMock.mockResolvedValue( + buildResponse([ + { name: 'Terra', posX: 0, posY: 0, owner: 'NoFaction', factions: [] }, + { name: 'Luthien', posX: 10, posY: 20, owner: 'KURITA', factions: [] }, + ]) + ); + + const { result } = renderHook(() => useWarmapAPI()); + + await act(async () => { + await result.current.fetchSystemData(); + }); + + await waitFor(() => { + expect(result.current.rawSystems).toHaveLength(2); + }); + expect(result.current.rawSystems[0].name).toBe('Terra'); + }); + + it('logs and swallows fetch errors (fetchFactionData)', async () => { + const errorSpy = vi.spyOn(console, 'error').mockImplementation(() => {}); + fetchMock.mockRejectedValue(new Error('boom')); + + const { result } = renderHook(() => useWarmapAPI()); + + await act(async () => { + await result.current.fetchFactionData(); + }); + + expect(errorSpy).toHaveBeenCalled(); + expect(result.current.factions).toEqual({}); + errorSpy.mockRestore(); + }); + + it('logs and swallows fetch errors (fetchSystemData)', async () => { + const errorSpy = vi.spyOn(console, 'error').mockImplementation(() => {}); + fetchMock.mockRejectedValue(new Error('boom')); + + const { result } = renderHook(() => useWarmapAPI()); + + await act(async () => { + await result.current.fetchSystemData(); + }); + + expect(errorSpy).toHaveBeenCalled(); + expect(result.current.rawSystems).toEqual([]); + errorSpy.mockRestore(); + }); +}); diff --git a/src/components/pages/Error.test.tsx b/src/components/pages/Error.test.tsx new file mode 100644 index 0000000..deae664 --- /dev/null +++ b/src/components/pages/Error.test.tsx @@ -0,0 +1,51 @@ +import { describe, it, expect } from 'vitest'; +import { render, screen } from '@testing-library/react'; +import { + createMemoryRouter, + RouterProvider, + type RouteObject, +} from 'react-router-dom'; +import ErrorPage from './Error'; + +const renderWithError = (routeError: unknown) => { + const routes: RouteObject[] = [ + { + path: '/', + element:
ok
, + errorElement: , + loader: () => { + throw routeError; + }, + }, + ]; + const router = createMemoryRouter(routes, { initialEntries: ['/'] }); + return render(); +}; + +describe('ErrorPage', () => { + it('renders the route-error-response branch (Response thrown)', async () => { + renderWithError(new Response(null, { status: 404 })); + // Loader rejects → ErrorPage mounts → isRouteErrorResponse branch + expect( + await screen.findByText(/contact Rogue War on the\s*Discord Server/i) + ).toBeInTheDocument(); + expect(screen.getByText(/Click here to return Home/i)).toBeInTheDocument(); + }); + + it('renders the generic Error branch with the error message', async () => { + renderWithError(new Error('kapow')); + expect(await screen.findByText(/Oops! Unexpected Error/i)).toBeInTheDocument(); + expect(screen.getByText('kapow')).toBeInTheDocument(); + }); + + it('renders the "Unknown error" branch for non-Error, non-Response throws', async () => { + renderWithError('just a string'); + expect(await screen.findByText(/Unknown error/i)).toBeInTheDocument(); + }); + + it('wraps the error content in the PageTemplate (SideMenu visible)', async () => { + renderWithError(new Error('x')); + expect(await screen.findByText('Home')).toBeInTheDocument(); + expect(screen.getByText('Map')).toBeInTheDocument(); + }); +}); diff --git a/src/components/pages/GalaxyMap.test.tsx b/src/components/pages/GalaxyMap.test.tsx new file mode 100644 index 0000000..8eaccf3 --- /dev/null +++ b/src/components/pages/GalaxyMap.test.tsx @@ -0,0 +1,76 @@ +import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; +import { render, waitFor } from '@testing-library/react'; + +vi.mock('react-konva', async () => { + const mod = await import('../../test/konvaMocks'); + return mod.reactKonvaStubs; +}); + +vi.mock('konva', async () => { + const mod = await import('../../test/konvaMocks'); + return mod.konvaStub; +}); + +const buildResponse = (payload: unknown) => + ({ ok: true, json: async () => payload } as unknown as Response); + +let GalaxyMapModule: typeof import('./GalaxyMap'); + +beforeEach(async () => { + vi.stubGlobal( + 'fetch', + vi.fn().mockImplementation(async (url: string) => { + if (url.includes('/factions/warmap')) { + return buildResponse({ + DAVION: { + colour: '#ff0', + prettyName: 'Davion', + id: 1, + capital: 'Terra', + }, + }); + } + if (url.includes('/starmap/warmap')) { + return buildResponse([ + { + name: 'Terra', + posX: 0, + posY: 0, + owner: 'DAVION', + factions: [{ Name: 'DAVION', control: 100, ActivePlayers: 2 }], + sysUrl: '/systems/terra', + }, + ]); + } + return buildResponse({}); + }) + ); + GalaxyMapModule = await import('./GalaxyMap'); +}); + +afterEach(() => { + vi.unstubAllGlobals(); + vi.resetModules(); +}); + +describe('GalaxyMap page (smoke)', () => { + it('renders nothing until systems and factions arrive', () => { + const { container } = render(); + expect(container.textContent).toBe(''); + }); + + it('mounts the stage tree once systems, factions, and capitals are fetched', async () => { + const { container } = render(); + + await waitFor( + () => { + expect(container.querySelectorAll('div').length).toBeGreaterThan(0); + }, + { timeout: 3000 } + ); + }); + + it('exports `Map` as an alias for the default export', () => { + expect(GalaxyMapModule.default).toBe(GalaxyMapModule.Map); + }); +}); diff --git a/src/components/pages/Home.test.tsx b/src/components/pages/Home.test.tsx new file mode 100644 index 0000000..45e5c87 --- /dev/null +++ b/src/components/pages/Home.test.tsx @@ -0,0 +1,79 @@ +import { describe, it, expect } from 'vitest'; +import { render, screen } from '@testing-library/react'; +import { MemoryRouter } from 'react-router-dom'; +import { Home, HomeCard } from './Home'; + +const renderHome = () => + render( + + + + ); + +describe('Home page', () => { + it('renders the welcome headline', () => { + renderHome(); + expect( + screen.getByRole('heading', { name: /Welcome to the War Commander/i }) + ).toBeInTheDocument(); + }); + + it('renders five HomeCards with their external links', () => { + renderHome(); + expect(screen.getByRole('link', { name: /RogueWar Discord/i })).toHaveAttribute( + 'href', + 'https://discord.gg/JU8tuMG' + ); + expect(screen.getByRole('link', { name: /Mods-In-Exile/i })).toHaveAttribute( + 'href', + 'https://discourse.modsinexile.com/t/rogue-tech/134' + ); + expect(screen.getByRole('link', { name: /RT Discord/i })).toHaveAttribute( + 'href', + 'https://discord.gg/93kxWQZ' + ); + expect(screen.getByRole('link', { name: /^Wiki$/i })).toHaveAttribute( + 'href', + 'https://roguetech.gamepedia.com' + ); + expect(screen.getByRole('link', { name: /Donate/i })).toHaveAttribute( + 'href', + 'https://ko-fi.com/roguetech28443' + ); + }); + + it('renders the "How to Participate" heading', () => { + renderHome(); + expect( + screen.getByRole('heading', { name: /How to Participate/i }) + ).toBeInTheDocument(); + }); + + it('renders the side menu via PageTemplate', () => { + renderHome(); + expect(screen.getByText('Home')).toBeInTheDocument(); + expect(screen.getByText('Map')).toBeInTheDocument(); + }); +}); + +describe('HomeCard', () => { + // CardStyle is not exported, so test the public HomeCard API by rendering. + it('renders the heading, children, and button label with the supplied URI', () => { + render( + + card body + + ); + expect(screen.getByText('Test Heading')).toBeInTheDocument(); + expect(screen.getByText('card body')).toBeInTheDocument(); + const link = screen.getByRole('link', { name: /Go/i }); + expect(link).toHaveAttribute('href', 'https://example.com'); + expect(link).toHaveAttribute('target', '_blank'); + }); +}); diff --git a/src/components/pages/ToS.test.tsx b/src/components/pages/ToS.test.tsx new file mode 100644 index 0000000..fcb6a57 --- /dev/null +++ b/src/components/pages/ToS.test.tsx @@ -0,0 +1,56 @@ +import { describe, it, expect } from 'vitest'; +import { render, screen } from '@testing-library/react'; +import { MemoryRouter } from 'react-router-dom'; +import { ToS, BulletPoint } from './ToS'; + +describe('ToS page', () => { + it('renders the Terms of Data Use heading', () => { + render( + + + + ); + expect(screen.getByRole('heading', { name: /Terms of Data Use/i })).toBeInTheDocument(); + }); + + it('renders the Humans and Bots sections', () => { + render( + + + + ); + expect(screen.getByRole('heading', { name: /^Humans$/ })).toBeInTheDocument(); + expect(screen.getByRole('heading', { name: /Bots.+Non-Humans/i })).toBeInTheDocument(); + }); + + it('renders the page inside the PageTemplate (SideMenu visible)', () => { + render( + + + + ); + expect(screen.getByText('Home')).toBeInTheDocument(); + expect(screen.getByText('Map')).toBeInTheDocument(); + }); +}); + +describe('BulletPoint', () => { + it('applies list-disc styling when not nested', () => { + const { container } = render(item); + const li = container.querySelector('li'); + expect(li?.className).toContain('list-disc'); + expect(li?.className).not.toContain('nested-list'); + }); + + it('applies nested-list styling when isNested is true', () => { + const { container } = render(item); + const li = container.querySelector('li'); + expect(li?.className).toContain('nested-list'); + expect(li?.className).toContain('ml-12'); + }); + + it('renders its children', () => { + render(the item); + expect(screen.getByText('the item')).toBeInTheDocument(); + }); +}); diff --git a/src/components/pages/index.test.ts b/src/components/pages/index.test.ts new file mode 100644 index 0000000..fdde839 --- /dev/null +++ b/src/components/pages/index.test.ts @@ -0,0 +1,51 @@ +import { describe, it, expect, vi } from 'vitest'; + +// GalaxyMap is the only re-export that pulls in react-konva, so silence it here. +vi.mock('react-konva', async () => { + const React = await import('react'); + const passthrough = (tag: string) => + ({ children, ...rest }: any) => React.createElement(tag, rest, children); + return { + Stage: passthrough('div'), + Layer: passthrough('div'), + Image: passthrough('div'), + Text: passthrough('span'), + Group: passthrough('div'), + Rect: passthrough('div'), + Line: passthrough('div'), + Circle: passthrough('div'), + }; +}); + +vi.mock('konva', () => { + class Animation { + start() {} + stop() {} + } + class Text { + constructor(_opts: any) {} + width() { + return 10; + } + destroy() {} + } + return { + default: { Animation, Text }, + __esModule: true, + }; +}); + +describe('pages barrel', () => { + it('re-exports Home and Map', async () => { + const pages = await import('./index'); + expect(pages.Home).toBeDefined(); + expect(pages.Map).toBeDefined(); + expect(typeof pages.Home).toBe('function'); + expect(typeof pages.Map).toBe('function'); + }); + + it('exposes exactly Home and Map', async () => { + const pages = await import('./index'); + expect(Object.keys(pages).sort()).toEqual(['Home', 'Map']); + }); +}); diff --git a/src/components/ui/BottomFilterPanel.test.tsx b/src/components/ui/BottomFilterPanel.test.tsx new file mode 100644 index 0000000..c132d23 --- /dev/null +++ b/src/components/ui/BottomFilterPanel.test.tsx @@ -0,0 +1,93 @@ +import { describe, it, expect, vi } from 'vitest'; +import { act, fireEvent, render, screen } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; +import BottomFilterPanel from './BottomFilterPanel'; + +const baseProps = () => ({ + searchTerm: '', + setSearchTerm: vi.fn(), + factions: ['Davion', 'Kurita', 'Liao'], + selectedFactions: [] as string[], + setSelectedFactions: vi.fn(), +}); + +describe('BottomFilterPanel', () => { + it('starts collapsed — the search input is not yet rendered', () => { + render(); + expect(screen.queryByPlaceholderText(/Search systems/i)).toBeNull(); + }); + + it('expands when the chevron area is clicked, revealing the search input', () => { + const { container } = render(); + const toggle = container.querySelector('div[style*="cursor: pointer"]'); + expect(toggle).not.toBeNull(); + + act(() => { + fireEvent.click(toggle!); + }); + + expect(screen.getByPlaceholderText(/Search systems/i)).toBeInTheDocument(); + }); + + it('forwards search input changes through setSearchTerm', async () => { + const props = baseProps(); + const { container } = render(); + const toggle = container.querySelector('div[style*="cursor: pointer"]')!; + fireEvent.click(toggle); + + const input = screen.getByPlaceholderText(/Search systems/i) as HTMLInputElement; + await userEvent.type(input, 'a'); + expect(props.setSearchTerm).toHaveBeenCalledWith('a'); + }); + + it('renders a removable chip for each selected faction and removes it on click', () => { + const props = baseProps(); + props.selectedFactions = ['Davion']; + const { container } = render(); + const toggle = container.querySelector('div[style*="cursor: pointer"]')!; + fireEvent.click(toggle); + + // chip text should be visible + expect(screen.getByText('Davion')).toBeInTheDocument(); + + // The chip has an "x" remove child right next to the label + const removeButton = screen.getByText('x'); + fireEvent.click(removeButton); + + expect(props.setSelectedFactions).toHaveBeenCalledWith([]); + }); + + it('renders nothing in the chip row when no factions are selected', () => { + const props = baseProps(); + const { container } = render(); + const toggle = container.querySelector('div[style*="cursor: pointer"]')!; + fireEvent.click(toggle); + + expect(screen.queryByText('x')).toBeNull(); + }); + + it('toggles the help tooltip on the "i" icon when in mobile width', () => { + // Simulate narrow viewport so tooltip uses click-to-toggle semantics + Object.defineProperty(window, 'innerWidth', { + configurable: true, + value: 500, + }); + const { container } = render(); + const toggle = container.querySelector('div[style*="cursor: pointer"]')!; + fireEvent.click(toggle); + + // Find the round "i" help icon by text; scan help icon spans + const helpIcon = screen.getByText('i'); + // Click once → tooltip shown + fireEvent.click(helpIcon); + expect( + screen.getByText(/Only factions that currently have systems on the map/i) + ).toBeInTheDocument(); + + // Click again → tooltip hidden + fireEvent.click(helpIcon); + expect( + screen.queryByText(/Only factions that currently have systems on the map/i) + ).toBeNull(); + }); +}); diff --git a/src/components/ui/StarSystem.test.tsx b/src/components/ui/StarSystem.test.tsx new file mode 100644 index 0000000..5eb8efb --- /dev/null +++ b/src/components/ui/StarSystem.test.tsx @@ -0,0 +1,103 @@ +import { describe, it, expect, vi } from 'vitest'; +import { render } from '@testing-library/react'; + +vi.mock('react-konva', async () => { + const mod = await import('../../test/konvaMocks'); + return mod.reactKonvaStubs; +}); + +vi.mock('konva', async () => { + const mod = await import('../../test/konvaMocks'); + return mod.konvaStub; +}); + +import StarSystem from './StarSystem'; +import type { + DisplayStarSystemType, + FactionDataType, +} from '../hooks/types'; + +const baseSystem: DisplayStarSystemType = { + name: 'Terra', + posX: 10, + posY: 20, + owner: 'DAVION', + factions: [ + { Name: 'DAVION', control: 50, ActivePlayers: 3 }, + { Name: 'KURITA', control: 30, ActivePlayers: 0 }, + ], + sysUrl: '/systems/terra', + state: {}, + isCapital: false, + factionColour: '#ff0', + factionName: 'Davion', +}; + +const factions: FactionDataType = { + DAVION: { colour: '#ff0', prettyName: 'Davion', id: 1, capital: 'Terra' }, + KURITA: { colour: '#f00', prettyName: 'Kurita', id: 2, capital: 'Luthien' }, +}; + +const renderStar = (overrides: Partial = {}) => { + const system: DisplayStarSystemType = { ...baseSystem, ...overrides }; + return render( + + ); +}; + +describe('StarSystem (smoke)', () => { + it('mounts without throwing for a basic system', () => { + expect(() => renderStar()).not.toThrow(); + }); + + it('renders at least one faction-colored circle (the main system node)', () => { + const { container } = renderStar(); + const circles = container.querySelectorAll('[data-fill="#ff0"]'); + expect(circles.length).toBeGreaterThan(0); + }); + + it('renders extra glow layers when the system has insurrection state', () => { + const baseline = renderStar(); + const baseCount = baseline.container.querySelectorAll('span').length; + + const withState = renderStar({ state: { isInsurrect: true } }); + const withCount = withState.container.querySelectorAll('span').length; + + expect(withCount).toBeGreaterThan(baseCount); + }); + + it('mounts without throwing when a pirate raid is active', () => { + expect(() => + renderStar({ state: { hasPirateRaid: true } }) + ).not.toThrow(); + }); + + it('mounts without throwing when a hold-the-line event is active', () => { + expect(() => + renderStar({ state: { hasHoldTheLineEvent: true } }) + ).not.toThrow(); + }); + + it('mounts without throwing when a capture event is active', () => { + expect(() => + renderStar({ state: { hasCaptureEvent: true } }) + ).not.toThrow(); + }); + + it('capitals render with a larger baseline radius', () => { + const { container } = renderStar({ isCapital: true }); + const radii = Array.from(container.querySelectorAll('[data-radius]')) + .map((el) => Number((el as HTMLElement).dataset.radius)) + .filter((n) => !Number.isNaN(n)); + expect(radii.some((r) => r >= 2.5)).toBe(true); + }); +}); diff --git a/src/main.test.tsx b/src/main.test.tsx new file mode 100644 index 0000000..505313f --- /dev/null +++ b/src/main.test.tsx @@ -0,0 +1,53 @@ +import { describe, it, expect, vi, afterEach } from 'vitest'; + +vi.mock('react-konva', async () => { + const mod = await import('./test/konvaMocks'); + return mod.reactKonvaStubs; +}); + +vi.mock('konva', async () => { + const mod = await import('./test/konvaMocks'); + return mod.konvaStub; +}); + +const createRootSpy = vi.fn(); +vi.mock('react-dom/client', async () => { + const actual = await vi.importActual( + 'react-dom/client' + ); + return { + ...actual, + createRoot: (el: Element) => { + createRootSpy(el); + return actual.createRoot(el); + }, + }; +}); + +const buildResponse = (payload: unknown) => + ({ ok: true, json: async () => payload } as unknown as Response); + +afterEach(() => { + vi.unstubAllGlobals(); + document.getElementById('react-root')?.remove(); + createRootSpy.mockClear(); +}); + +describe('main.tsx bootstrap', () => { + it('calls createRoot on the #react-root element and renders App', async () => { + vi.stubGlobal( + 'fetch', + vi.fn().mockImplementation(async (url: string) => { + if (url.includes('/starmap/warmap')) return buildResponse([]); + return buildResponse({}); + }) + ); + const rootEl = document.createElement('div'); + rootEl.id = 'react-root'; + document.body.appendChild(rootEl); + + await expect(import('./main')).resolves.toBeDefined(); + + expect(createRootSpy).toHaveBeenCalledWith(rootEl); + }); +}); From ac5f5b2782116406d372be6276de1b1eafe54eea Mon Sep 17 00:00:00 2001 From: Thaddeus Aid Date: Wed, 22 Apr 2026 23:52:15 -0700 Subject: [PATCH 26/28] test(rig): wire @vitest/coverage-v8 so test:coverage produces real numbers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `test:coverage` script already existed but was unreachable without a provider installed. Pin `@vitest/coverage-v8` to `4.0.8` to match Vitest's version (4.1.x ships an import against `vitest/node` that 4.0.x does not export), configure text/html/lcov reporters with reasonable include / exclude globs, and add `coverage/` to `.gitignore` so generated reports don't dirty the working tree. Initial report: 73.9% stmts · 61.21% branches · 70.52% funcs · 76.75% lines — deep-tested surface at 100%, the Option-B smoke targets (GalaxyMap.tsx, StarSystem.tsx, usePinchZoom.ts) account for the gap, matching the documented posture. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitignore | 3 ++ model/log.md | 38 ++++++++++++++++ package.json | 1 + vitest.config.ts | 11 +++++ yarn.lock | 112 ++++++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 163 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a547bf3..430433b 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,9 @@ dist dist-ssr *.local +# Coverage output from @vitest/coverage-v8 +coverage + # Editor directories and files .vscode/* !.vscode/extensions.json diff --git a/model/log.md b/model/log.md index d50f460..c943424 100644 --- a/model/log.md +++ b/model/log.md @@ -303,3 +303,41 @@ Grouped by test strategy. Every listed symbol needs coverage on this branch. component mounts cleanly under mocks with a small number of structural assertions — the documented Option B posture. +### 10. Coverage reporter (`@vitest/coverage-v8`) + +- **Action taken:** Installed `@vitest/coverage-v8@4.0.8` (pinned to match + `vitest@4.0.8` exactly), configured the reporter inside `vitest.config.ts` + with `provider: 'v8'`, text + html + lcov outputs, `reportsDirectory: + './coverage'`, `include: ['src/**/*.{ts,tsx}']`, and excludes for test + files, the `src/test/**` rig directory, and `src/vite-env.d.ts`. Added + `coverage/` to `.gitignore` so generated reports are not committed. The + `test:coverage` npm script (already present) now produces real numbers. +- **Alternatives considered:** + 1. *Use `@vitest/coverage-istanbul` instead.* Rejected: v8 is faster, has + zero transform cost in watch mode, and is the default Vitest recommends. + Istanbul only wins when you need legacy-browser coverage semantics that + are irrelevant in this node/jsdom context. + 2. *Leave `coverage/` uncomitted but not in `.gitignore`.* Rejected — every + local `yarn test:coverage` run would dirty the working tree and show + dozens of generated HTML/CSS assets as untracked. `.gitignore` is the + conventional answer. + 3. *Accept the latest `@vitest/coverage-v8@4.1.5`.* Rejected: v4.1.x + imports `BaseCoverageProvider` from `vitest/node`, which v4.0.8 does + not export. A version mismatch surfaces as an unhandled import error on + every coverage run. Pinning both packages to the exact same minor + resolves it. +- **Reasoning:** The `test:coverage` script existed as an alias for + `vitest run --coverage` but without the reporter installed, it failed with + a cryptic missing-provider error. Wiring v8 gives reviewers real numbers + without costing dev-mode performance. + +- **Initial report (after this change):** All files `73.9% stmts / 61.21% + branches / 70.52% funcs / 76.75% lines`. Deep-tested modules (helpers, + most hooks, Error / Home / ToS / PageTemplate / SideMenu pages) land at + 100%. The Option-B smoke targets (`GalaxyMap.tsx`, `StarSystem.tsx`, + `usePinchZoom.ts`) are the sources of the un-green lines; that matches the + documented posture. Type-only files (`ControlInfo.ts`, `StarSystemType.ts`, + etc.) and re-export barrels (`helpers/index.ts`, `pages/index.ts`, + `hooks/types/index.ts`) report as 0/0 because v8 cannot see them as having + executable code — this is a cosmetic display quirk, not a real gap. + diff --git a/package.json b/package.json index 40756d7..7d696c0 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@types/react": "18.2.42", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react-swc": "^3.5.0", + "@vitest/coverage-v8": "4.0.8", "autoprefixer": "^10.4.20", "eslint": "^9.9.0", "eslint-plugin-react-hooks": "^5.1.0-rc.0", diff --git a/vitest.config.ts b/vitest.config.ts index 6be47e7..4062758 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -12,6 +12,17 @@ export default defineConfig({ css: false, clearMocks: true, restoreMocks: true, + coverage: { + provider: 'v8', + reporter: ['text', 'html', 'lcov'], + reportsDirectory: './coverage', + include: ['src/**/*.{ts,tsx}'], + exclude: [ + 'src/**/*.test.{ts,tsx}', + 'src/test/**', + 'src/vite-env.d.ts', + ], + }, }, resolve: { alias: { diff --git a/yarn.lock b/yarn.lock index 43f3f18..2e8e0cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -103,6 +103,13 @@ dependencies: "@babel/types" "^7.28.5" +"@babel/parser@^7.29.0": + version "7.29.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.2.tgz#58bd50b9a7951d134988a1ae177a35ef9a703ba1" + integrity sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA== + dependencies: + "@babel/types" "^7.29.0" + "@babel/runtime@^7.12.0", "@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.23.8", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7": version "7.28.4" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.28.4.tgz#a70226016fabe25c5783b2f22d3e1c9bc5ca3326" @@ -138,6 +145,19 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.28.5" +"@babel/types@^7.29.0": + version "7.29.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.0.tgz#9f5b1e838c446e72cf3cd4b918152b8c605e37c7" + integrity sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A== + dependencies: + "@babel/helper-string-parser" "^7.27.1" + "@babel/helper-validator-identifier" "^7.28.5" + +"@bcoe/v8-coverage@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz#bbe12dca5b4ef983a0d0af4b07b9bc90ea0ababa" + integrity sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA== + "@bramus/specificity@^2.4.2": version "2.4.2" resolved "https://registry.yarnpkg.com/@bramus/specificity/-/specificity-2.4.2.tgz#aa8db8eb173fdee7324f82284833106adeecc648" @@ -629,7 +649,7 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz#6912b00d2c631c0d15ce1a7ab57cd657f2a8f8ba" integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== -"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.28": +"@jridgewell/trace-mapping@^0.3.23", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.28", "@jridgewell/trace-mapping@^0.3.31": version "0.3.31" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== @@ -1260,6 +1280,23 @@ dependencies: "@swc/core" "^1.5.7" +"@vitest/coverage-v8@4.0.8": + version "4.0.8" + resolved "https://registry.yarnpkg.com/@vitest/coverage-v8/-/coverage-v8-4.0.8.tgz#d7295a424964387d237a138a979340c13577e26c" + integrity sha512-wQgmtW6FtPNn4lWUXi8ZSYLpOIb92j3QCujxX3sQ81NTfQ/ORnE0HtK7Kqf2+7J9jeveMGyGyc4NWc5qy3rC4A== + dependencies: + "@bcoe/v8-coverage" "^1.0.2" + "@vitest/utils" "4.0.8" + ast-v8-to-istanbul "^0.3.8" + debug "^4.4.3" + istanbul-lib-coverage "^3.2.2" + istanbul-lib-report "^3.0.1" + istanbul-lib-source-maps "^5.0.6" + istanbul-reports "^3.2.0" + magicast "^0.5.1" + std-env "^3.10.0" + tinyrainbow "^3.0.3" + "@vitest/expect@4.0.8": version "4.0.8" resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-4.0.8.tgz#02df33fb1f99091df660a80b7113e6d2f176ee10" @@ -1412,6 +1449,15 @@ assertion-error@^2.0.1: resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-2.0.1.tgz#f641a196b335690b1070bf00b6e7593fec190bf7" integrity sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA== +ast-v8-to-istanbul@^0.3.8: + version "0.3.12" + resolved "https://registry.yarnpkg.com/ast-v8-to-istanbul/-/ast-v8-to-istanbul-0.3.12.tgz#8eb1b7c86ef8499859be761b17ffd91406c0c36f" + integrity sha512-BRRC8VRZY2R4Z4lFIL35MwNXmwVqBityvOIwETtsCSwvjl0IdgFsy9NhdaA6j74nUdtJJlIypeRhpDam19Wq3g== + dependencies: + "@jridgewell/trace-mapping" "^0.3.31" + estree-walker "^3.0.3" + js-tokens "^10.0.0" + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -1635,7 +1681,7 @@ data-urls@^7.0.0: whatwg-mimetype "^5.0.0" whatwg-url "^16.0.0" -debug@^4.3.1, debug@^4.3.2, debug@^4.4.3: +debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.4.3: version "4.4.3" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== @@ -2186,6 +2232,11 @@ html-encoding-sniffer@^6.0.0: dependencies: "@exodus/bytes" "^1.6.0" +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + ignore@^5.2.0, ignore@^5.3.1: version "5.3.2" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" @@ -2265,6 +2316,37 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" + integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== + +istanbul-lib-report@^3.0.0, istanbul-lib-report@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" + integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^4.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^5.0.6: + version "5.0.6" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz#acaef948df7747c8eb5fbf1265cb980f6353a441" + integrity sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A== + dependencies: + "@jridgewell/trace-mapping" "^0.3.23" + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + +istanbul-reports@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.2.0.tgz#cb4535162b5784aa623cee21a7252cf2c807ac93" + integrity sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + its-fine@^1.1.1: version "1.2.5" resolved "https://registry.yarnpkg.com/its-fine/-/its-fine-1.2.5.tgz#5466c287f86a0a73e772c8d8d515626c97195dc9" @@ -2286,6 +2368,11 @@ jiti@^1.21.7: resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.7.tgz#9dd81043424a3d28458b193d965f0d18a2300ba9" integrity sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A== +js-tokens@^10.0.0: + version "10.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-10.0.0.tgz#dffe7599b4a8bb7fe30aff8d0235234dffb79831" + integrity sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q== + "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -2514,6 +2601,22 @@ magic-string@^0.30.21: dependencies: "@jridgewell/sourcemap-codec" "^1.5.5" +magicast@^0.5.1: + version "0.5.2" + resolved "https://registry.yarnpkg.com/magicast/-/magicast-0.5.2.tgz#70cea9df729c164485049ea5df85a390281dfb9d" + integrity sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ== + dependencies: + "@babel/parser" "^7.29.0" + "@babel/types" "^7.29.0" + source-map-js "^1.2.1" + +make-dir@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" + integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== + dependencies: + semver "^7.5.3" + match-sorter@^6.3.4: version "6.4.0" resolved "https://registry.yarnpkg.com/match-sorter/-/match-sorter-6.4.0.tgz#ae9c166cb3c9efd337690b3160c0e28cb8377c13" @@ -3107,6 +3210,11 @@ scheduler@^0.23.0, scheduler@^0.23.2: dependencies: loose-envify "^1.1.0" +semver@^7.5.3: + version "7.7.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.4.tgz#28464e36060e991fa7a11d0279d2d3f3b57a7e8a" + integrity sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA== + semver@^7.6.0: version "7.6.3" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" From a0c5fa635dd6c277f7634f0046ff5664c38af553 Mon Sep 17 00:00:00 2001 From: Thaddeus Aid Date: Wed, 22 Apr 2026 23:54:09 -0700 Subject: [PATCH 27/28] ci: add GitHub Actions workflow for Vitest suite Adds .github/workflows/test.yml that runs on push to main / test-platform and on any PR to main. Steps: checkout, setup-node with yarn cache, yarn install --frozen-lockfile, tsc --noEmit against tsconfig.vitest.json, yarn test:coverage, and an upload of the coverage/ directory as a 14-day-retention artifact (Node 20 leg only). Matrix covers Node 20 + 22. The workflow only becomes active for PR checks on the upstream repo once this branch merges; until then, the fork's own Actions trigger on each push, providing a pre-merge smoke. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/test.yml | 43 ++++++++++++++++++++++++++++++++++++++ model/log.md | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c898bcb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +name: Test + +on: + push: + branches: [main, test-platform] + pull_request: + branches: [main] + +jobs: + test: + name: Vitest (Node ${{ matrix.node }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: ['20', '22'] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: yarn + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Typecheck test sources + run: npx tsc -p tsconfig.vitest.json --noEmit + + - name: Run tests with coverage + run: yarn test:coverage + + - name: Upload coverage report + if: matrix.node == '20' + uses: actions/upload-artifact@v4 + with: + name: coverage-report + path: coverage/ + retention-days: 14 diff --git a/model/log.md b/model/log.md index c943424..3d24294 100644 --- a/model/log.md +++ b/model/log.md @@ -341,3 +341,40 @@ assertions — the documented Option B posture. `hooks/types/index.ts`) report as 0/0 because v8 cannot see them as having executable code — this is a cosmetic display quirk, not a real gap. +### 11. GitHub Actions CI workflow + +- **Action taken:** Added `.github/workflows/test.yml`. The workflow triggers + on `push` to `main` or `test-platform` and on any `pull_request` targeting + `main`. It checks out the repo, installs Node (matrix of 20 + 22) with + yarn caching via `actions/setup-node@v4`, runs `yarn install + --frozen-lockfile`, typechecks the test sources with `npx tsc -p + tsconfig.vitest.json --noEmit`, runs `yarn test:coverage`, and uploads + the `coverage/` directory as a 14-day retained artifact from the Node 20 + leg only. +- **Alternatives considered:** + 1. *Single-version matrix (Node 20 only).* Rejected: running both 20 and + 22 surfaces version-drift issues early at negligible cost given yarn + caching. + 2. *Use npm instead of yarn in CI.* Rejected — project uses yarn 1 and + ships a `yarn.lock` pinned by the `packageManager` field; swapping + lockfile tools creates drift risk. + 3. *Post coverage to Codecov via `codecov/codecov-action`.* Deferred — + requires a repo-scoped secret (`CODECOV_TOKEN`) the maintainers would + have to provision. Artifact upload gives reviewers the same HTML + report without external dependencies; Codecov can be added later. + 4. *Skip the `tsc --noEmit` step.* Rejected: a vitest green run does not + catch type regressions in test files themselves, and TypeScript + misalignments in tests have bitten this project's type assertions + before (the `expectTypeOf` suites). +- **Reasoning:** Three orthogonal failure modes — install reproducibility, + type safety of tests, and runtime assertions — each get a step. The + matrix covers the two supported LTS lines. The coverage artifact makes + reviewer inspection a click rather than a local run. + +- **Note:** GitHub Actions run against the PR's *base repository* config, + so the workflow only becomes active for PR checks on + `BattletechModders/RogueTechWarMap` once this PR merges into `main`. + Until then, pushes to `nx-thaddeusaid/RogueTechWarMap:test-platform` will + still trigger runs in the fork's own Actions (if enabled), which serves + as a pre-merge smoke. + From d6fe04d65d6cc748eb45cf447f8c44c201b8c7d2 Mon Sep 17 00:00:00 2001 From: Thaddeus Aid Date: Thu, 23 Apr 2026 00:00:47 -0700 Subject: [PATCH 28/28] refactor(map): extract inline helpers so map logic is deep-testable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Moves the inline helper bodies out of GalaxyMap.tsx and StarSystem.tsx into adjacent modules (GalaxyMap.helpers.ts, StarSystem.helpers.ts) and rewires the two components to call them: - StarSystem.helpers.ts: buildControlItems, formatControlLine, formatSystemState, formatDamageLevel, buildTooltipText. - GalaxyMap.helpers.ts: getViewportSize, getTooltipFontSize, getDesktopLineSegments (now takes a {titleFontSize, bodyFontSize} object), and parseMobileTooltipData. The production behavior is unchanged — two Konva call sites retain their prior shape via a tiny segmentsFor closure, and buildTooltipText is now called with an explicit {system, factions[, includeTapHint]} object. 31 new deep tests cover positive paths, empty inputs, ordering, label- split branches, and the mobile parser's control-block skipping. Suite: 31 files / 153 tests passing (was 29 / 122). Coverage across the project: 79.22% stmts / 69.5% branches / 76.16% funcs / 82.43% lines (was 73.9 / 61.21 / 70.52 / 76.75). The remaining gap lives inside the Konva render trees, matching the documented Option-B posture. Co-Authored-By: Claude Opus 4.7 (1M context) --- model/log.md | 51 +++++ .../pages/GalaxyMap.helpers.test.ts | 176 +++++++++++++++ src/components/pages/GalaxyMap.helpers.ts | 107 +++++++++ src/components/pages/GalaxyMap.tsx | 113 ++-------- src/components/ui/StarSystem.helpers.test.ts | 209 ++++++++++++++++++ src/components/ui/StarSystem.helpers.ts | 102 +++++++++ src/components/ui/StarSystem.tsx | 92 +------- 7 files changed, 671 insertions(+), 179 deletions(-) create mode 100644 src/components/pages/GalaxyMap.helpers.test.ts create mode 100644 src/components/pages/GalaxyMap.helpers.ts create mode 100644 src/components/ui/StarSystem.helpers.test.ts create mode 100644 src/components/ui/StarSystem.helpers.ts diff --git a/model/log.md b/model/log.md index 3d24294..0e23158 100644 --- a/model/log.md +++ b/model/log.md @@ -378,3 +378,54 @@ assertions — the documented Option B posture. still trigger runs in the fork's own Actions (if enabled), which serves as a pre-merge smoke. +### 12. Extracting inline map helpers for deep coverage + +- **Action taken:** Moved the inline helpers from `GalaxyMap.tsx` and + `StarSystem.tsx` into two adjacent modules that are importable by tests: + - `src/components/pages/GalaxyMap.helpers.ts` — `getViewportSize`, + `getTooltipFontSize`, `getDesktopLineSegments(line, index, { + titleFontSize, bodyFontSize })`, and `parseMobileTooltipData(text)`. + - `src/components/ui/StarSystem.helpers.ts` — `buildControlItems`, + `formatControlLine`, `formatSystemState`, `formatDamageLevel`, and + `buildTooltipText({ system, factions, includeTapHint })`. + Rewired `GalaxyMap.tsx` and `StarSystem.tsx` to call the extracted + helpers (the component now wraps `getDesktopLineSegments` in a small + `segmentsFor` closure so it keeps its previous zero-argument call shape + at the two Konva call sites, and `buildTooltipText` is invoked with the + explicit `{ system, factions }` object). Added 31 deep adjacent tests + across `StarSystem.helpers.test.ts` (18) and `GalaxyMap.helpers.test.ts` + (13) covering positive paths, edge cases (empty inputs, undefined state, + whitespace-only damage level), ordering guarantees, the Owner/Damage + label-split branch, and the mobile-tooltip parser's control-block + skipping semantics. +- **Alternatives considered:** + 1. *Leave the helpers inline and write DOM-level assertions against the + rendered tooltip text.* Rejected — asserting multi-line `\n`-joined + tooltip strings via the Konva mock is indirect and brittle; a unit + test against the pure function is clearer and cheaper to maintain. + 2. *Extract into a single shared `tooltip.helpers.ts` used by both the + map page and the star-system node.* Rejected — the two call sites + have different responsibilities (desktop tooltip-layout parsing vs. + tooltip text composition) and a shared module would leak concerns; + keeping them adjacent to the component that owns them matches the + rest of the repository's file layout. + 3. *Re-export the helpers from the components themselves for tests.* + Rejected because that couples production exports to test needs and + complicates tree-shaking. +- **Reasoning:** Pure helpers live outside the Konva render tree, so they + are testable under jsdom without any canvas or mock scaffolding. Moving + them into their own modules took GalaxyMap.tsx from 72% / 40% / 58% / + 74% to 79% / 48% / 59% / 82% and upgraded `GalaxyMap.helpers.ts` to + 94.87% stmts / 88.46% branches / 100% funcs / 94.87% lines, while + `StarSystem.helpers.ts` lands at 100% across the board. Overall project + coverage moved from 73.9% / 61.21% / 70.52% / 76.75% to **79.22% / + 69.5% / 76.16% / 82.43%** (stmts / branches / funcs / lines), and the + test count grew from 122 to 153 across 31 files, all green. + + The remaining untested lines concentrate where Option B expected them: + inside the Konva rendering bodies of `GalaxyMap.tsx` and + `StarSystem.tsx`, the pinch-gesture math in `usePinchZoom.ts`, and the + inline height-animation setup in `BottomFilterPanel.tsx`. Lifting those + would require a real canvas polyfill or component-level interaction + tests, which remain out of scope for this rig. + diff --git a/src/components/pages/GalaxyMap.helpers.test.ts b/src/components/pages/GalaxyMap.helpers.test.ts new file mode 100644 index 0000000..02b16dc --- /dev/null +++ b/src/components/pages/GalaxyMap.helpers.test.ts @@ -0,0 +1,176 @@ +import { describe, it, expect, vi, afterEach } from 'vitest'; +import { + getDesktopLineSegments, + getTooltipFontSize, + getViewportSize, + parseMobileTooltipData, +} from './GalaxyMap.helpers'; + +describe('getViewportSize', () => { + it('returns current window dimensions when window is defined', () => { + Object.defineProperty(window, 'innerWidth', { + configurable: true, + value: 1024, + }); + Object.defineProperty(window, 'innerHeight', { + configurable: true, + value: 768, + }); + expect(getViewportSize()).toEqual({ width: 1024, height: 768 }); + }); +}); + +describe('getTooltipFontSize', () => { + afterEach(() => { + vi.restoreAllMocks(); + }); + + it('returns rem-scaled 0.85x of the document root font size', () => { + vi.spyOn(window, 'getComputedStyle').mockImplementation( + () => ({ fontSize: '20px' } as unknown as CSSStyleDeclaration) + ); + expect(getTooltipFontSize()).toBeCloseTo(17, 5); // 20 * 0.85 + }); + + it('falls back to 16 * 0.85 when computed style is unparseable', () => { + vi.spyOn(window, 'getComputedStyle').mockImplementation( + () => ({ fontSize: 'not-a-size' } as unknown as CSSStyleDeclaration) + ); + expect(getTooltipFontSize()).toBeNaN(); // parseFloat('not-a-size') -> NaN + }); +}); + +describe('getDesktopLineSegments', () => { + const sizes = { titleFontSize: 20, bodyFontSize: 14 }; + + it('renders the first (index 0) line as a single bold title segment', () => { + const segs = getDesktopLineSegments('Terra', 0, sizes); + expect(segs).toEqual([ + { text: 'Terra', fontStyle: 'bold', fontSize: 20 }, + ]); + }); + + it('splits Owner/Damage lines into bold label + normal value segments', () => { + const owner = getDesktopLineSegments('Owner: House Davion', 2, sizes); + expect(owner).toEqual([ + { text: 'Owner: ', fontStyle: 'bold', fontSize: 14 }, + { text: 'House Davion', fontStyle: 'normal', fontSize: 14 }, + ]); + + const dmg = getDesktopLineSegments('Damage: Heavy', 6, sizes); + expect(dmg).toEqual([ + { text: 'Damage: ', fontStyle: 'bold', fontSize: 14 }, + { text: 'Heavy', fontStyle: 'normal', fontSize: 14 }, + ]); + }); + + it('treats Control: and State: header lines as bold', () => { + expect(getDesktopLineSegments('Control:', 3, sizes)[0].fontStyle).toBe( + 'bold' + ); + expect(getDesktopLineSegments('State: Insurrection', 7, sizes)[0].fontStyle).toBe( + 'bold' + ); + }); + + it('renders plain body lines with normal font style', () => { + const seg = getDesktopLineSegments('House Davion 50% · 2', 4, sizes); + expect(seg).toEqual([ + { + text: 'House Davion 50% · 2', + fontStyle: 'normal', + fontSize: 14, + }, + ]); + }); +}); + +describe('parseMobileTooltipData', () => { + it('returns empty data for undefined, empty, or whitespace input', () => { + expect(parseMobileTooltipData(undefined)).toEqual({ + title: '', + subtitle: '', + details: [], + }); + expect(parseMobileTooltipData('')).toEqual({ + title: '', + subtitle: '', + details: [], + }); + expect(parseMobileTooltipData(' \n ')).toEqual({ + title: '', + subtitle: '', + details: [], + }); + }); + + it('captures the title, subtitle, and remaining details', () => { + const text = [ + 'Terra', + '(10, 20)', + 'Owner: House Davion', + 'Damage: Unknown', + ].join('\n'); + + expect(parseMobileTooltipData(text)).toEqual({ + title: 'Terra', + subtitle: '(10, 20)', + details: ['Owner: House Davion', 'Damage: Unknown'], + }); + }); + + it('treats a second line not starting with "(" as the first detail, not a subtitle', () => { + const text = ['Terra', 'Owner: House Davion', 'Damage: Unknown'].join('\n'); + expect(parseMobileTooltipData(text)).toEqual({ + title: 'Terra', + subtitle: '', + details: ['Owner: House Davion', 'Damage: Unknown'], + }); + }); + + it('strips the "[Tap to open]" hint and any blank lines', () => { + const text = [ + 'Terra', + '(10, 20)', + '', + 'Owner: House Davion', + '[Tap to open]', + ].join('\n'); + const result = parseMobileTooltipData(text); + expect(result.details).not.toContain('[Tap to open]'); + expect(result.details).toEqual(['Owner: House Davion']); + }); + + it('skips non-key-value lines inside the Control block until a new key-value line is seen', () => { + const text = [ + 'Terra', + '(10, 20)', + 'Owner: House Davion', + 'Control:', + 'House Davion 60% · 3', + 'House Kurita 40% · 1', + '+2 more', + 'Damage: Light', + ].join('\n'); + + const result = parseMobileTooltipData(text); + // "Control:" header and the control lines (no ": " after letters) + // are dropped; only the Damage key-value line remains as a detail. + expect(result.details).toEqual([ + 'Owner: House Davion', + 'Damage: Light', + ]); + }); + + it('includes a key-value detail that appears after the control block', () => { + const text = [ + 'Terra', + '(10, 20)', + 'Control:', + 'House Davion 60% · 3', + 'State: Insurrection', + ].join('\n'); + const result = parseMobileTooltipData(text); + expect(result.details).toContain('State: Insurrection'); + }); +}); diff --git a/src/components/pages/GalaxyMap.helpers.ts b/src/components/pages/GalaxyMap.helpers.ts new file mode 100644 index 0000000..5206b20 --- /dev/null +++ b/src/components/pages/GalaxyMap.helpers.ts @@ -0,0 +1,107 @@ +import type { StageSize } from '../GalaxyMap/gm.types'; + +export const getViewportSize = (): StageSize => { + if (typeof window === 'undefined') { + return { width: 0, height: 0 }; + } + + return { + width: window.innerWidth, + height: window.innerHeight, + }; +}; + +export const getTooltipFontSize = (): number => { + if (typeof document === 'undefined') { + return 16 * 0.85; + } + + return parseFloat(getComputedStyle(document.documentElement).fontSize) * 0.85; +}; + +export interface DesktopLineSegment { + text: string; + fontStyle: 'bold' | 'normal'; + fontSize: number; +} + +export interface DesktopLineSizes { + titleFontSize: number; + bodyFontSize: number; +} + +export const getDesktopLineSegments = ( + line: string, + index: number, + sizes: DesktopLineSizes +): DesktopLineSegment[] => { + if (index === 0) { + return [ + { + text: line, + fontStyle: 'bold', + fontSize: sizes.titleFontSize, + }, + ]; + } + + const match = line.match(/^(Owner:|Damage:)\s*(.*)$/); + if (match) { + const [, label, value] = match; + return [ + { text: `${label} `, fontStyle: 'bold', fontSize: sizes.bodyFontSize }, + { text: value, fontStyle: 'normal', fontSize: sizes.bodyFontSize }, + ]; + } + + return [ + { + text: line, + fontStyle: /^(Control|State):/.test(line) ? 'bold' : 'normal', + fontSize: sizes.bodyFontSize, + }, + ]; +}; + +export interface MobileTooltipData { + title: string; + subtitle: string; + details: string[]; +} + +export const parseMobileTooltipData = (text: string | undefined): MobileTooltipData => { + const trimmed = text?.trim(); + if (!trimmed) { + return { title: '', subtitle: '', details: [] }; + } + + const lines = trimmed + .split('\n') + .map((line) => line.trim()) + .filter((line) => line && line !== '[Tap to open]'); + + const title = lines[0] ?? ''; + const subtitle = lines[1]?.startsWith('(') ? lines[1] : ''; + const rawDetails = lines.slice(subtitle ? 2 : 1); + const details: string[] = []; + let inControlBlock = false; + + for (const line of rawDetails) { + if (line === 'Control:') { + inControlBlock = true; + continue; + } + + if (inControlBlock) { + const isKeyValueLine = /^[A-Za-z ]+:\s/.test(line); + if (!isKeyValueLine) { + continue; + } + inControlBlock = false; + } + + details.push(line); + } + + return { title, subtitle, details }; +}; diff --git a/src/components/pages/GalaxyMap.tsx b/src/components/pages/GalaxyMap.tsx index d2a1341..10179a4 100644 --- a/src/components/pages/GalaxyMap.tsx +++ b/src/components/pages/GalaxyMap.tsx @@ -12,29 +12,17 @@ import useTooltip from '../hooks/useTooltip'; import useFiltering from '../hooks/useFiltering'; import { useGalaxyViewport } from '../hooks/useGalaxyViewport'; import { usePinchZoom } from '../hooks/usePinchZoom'; +import { + getViewportSize, + getTooltipFontSize, + getDesktopLineSegments, + parseMobileTooltipData, + type DesktopLineSegment, +} from './GalaxyMap.helpers'; const MIN_SCALE = 0.2; const MAX_SCALE = 25; -const getViewportSize = () => { - if (typeof window === 'undefined') { - return { width: 0, height: 0 }; - } - - return { - width: window.innerWidth, - height: window.innerHeight, - }; -}; - -const getTooltipFontSize = () => { - if (typeof document === 'undefined') { - return 16 * 0.85; - } - - return parseFloat(getComputedStyle(document.documentElement).fontSize) * 0.85; -}; - const GalaxyMap = () => { const { displaySystems, @@ -264,44 +252,11 @@ const GalaxyMapRender = ({ const desktopBodyFontSize = tooltipFontSize * 0.92; const desktopLineHeight = desktopTitleFontSize * 1.2; - const getDesktopLineSegments = (line: string, index: number) => { - if (index === 0) { - return [ - { - text: line, - fontStyle: 'bold' as const, - fontSize: desktopTitleFontSize, - }, - ]; - } - - const match = line.match(/^(Owner:|Damage:)\s*(.*)$/); - if (match) { - const [, label, value] = match; - return [ - { - text: `${label} `, - fontStyle: 'bold' as const, - fontSize: desktopBodyFontSize, - }, - { - text: value, - fontStyle: 'normal' as const, - fontSize: desktopBodyFontSize, - }, - ]; - } - - return [ - { - text: line, - fontStyle: /^(Control|State):/.test(line) - ? ('bold' as const) - : ('normal' as const), - fontSize: desktopBodyFontSize, - }, - ]; - }; + const segmentsFor = (line: string, index: number): DesktopLineSegment[] => + getDesktopLineSegments(line, index, { + titleFontSize: desktopTitleFontSize, + bodyFontSize: desktopBodyFontSize, + }); const desktopTooltipLines = useMemo( () => (tooltip.text || '').split('\n').map((line) => line.trimEnd()), @@ -311,7 +266,7 @@ const GalaxyMapRender = ({ const desktopTooltipLayout = useMemo(() => { const lines = desktopTooltipLines.length ? desktopTooltipLines : ['']; const widths = lines.map((line, index) => - getDesktopLineSegments(line, index).reduce((sum, segment) => { + segmentsFor(line, index).reduce((sum, segment) => { const measure = new Konva.Text({ text: segment.text, fontFamily: 'Roboto Mono, monospace', @@ -344,42 +299,10 @@ const GalaxyMapRender = ({ } }, [tooltip.visible]); - const mobileTooltipData = useMemo(() => { - const trimmed = tooltip.text?.trim(); - if (!trimmed) { - return { title: '', subtitle: '', details: [] as string[] }; - } - - const lines = trimmed - .split('\n') - .map((line) => line.trim()) - .filter((line) => line && line !== '[Tap to open]'); - - const title = lines[0] ?? ''; - const subtitle = lines[1]?.startsWith('(') ? lines[1] : ''; - const rawDetails = lines.slice(subtitle ? 2 : 1); - const details: string[] = []; - let inControlBlock = false; - - for (const line of rawDetails) { - if (line === 'Control:') { - inControlBlock = true; - continue; - } - - if (inControlBlock) { - const isKeyValueLine = /^[A-Za-z ]+:\s/.test(line); - if (!isKeyValueLine) { - continue; - } - inControlBlock = false; - } - - details.push(line); - } - - return { title, subtitle, details }; - }, [tooltip.text]); + const mobileTooltipData = useMemo( + () => parseMobileTooltipData(tooltip.text), + [tooltip.text] + ); const controlItems = useMemo( () => @@ -497,7 +420,7 @@ const GalaxyMapRender = ({ /> {desktopTooltipLayout.lines.map((line, index) => (() => { - const segments = getDesktopLineSegments(line, index); + const segments = segmentsFor(line, index); return ( { + it('returns items sorted by control descending, using prettyName when available', () => { + const result = buildControlItems( + [ + { Name: 'DAVION', control: 20, ActivePlayers: 1 }, + { Name: 'KURITA', control: 60, ActivePlayers: 3 }, + ], + factions + ); + + expect(result).toEqual([ + { name: 'House Kurita', control: 60, players: 3 }, + { name: 'House Davion', control: 20, players: 1 }, + ]); + }); + + it('falls back to the raw faction Name when no prettyName is registered', () => { + const result = buildControlItems( + [{ Name: 'UNKNOWN', control: 10, ActivePlayers: 0 }], + factions + ); + expect(result[0].name).toBe('UNKNOWN'); + }); + + it('does not mutate the input array', () => { + const input = [ + { Name: 'DAVION', control: 20, ActivePlayers: 1 }, + { Name: 'KURITA', control: 60, ActivePlayers: 3 }, + ]; + const snapshot = [...input]; + buildControlItems(input, factions); + expect(input).toEqual(snapshot); + }); + + it('returns an empty array for no factions', () => { + expect(buildControlItems([], factions)).toEqual([]); + }); +}); + +describe('formatControlLine', () => { + it('renders the expected "Name control% · players" shape', () => { + expect( + formatControlLine({ name: 'Davion', control: 55, players: 4 }) + ).toBe('Davion 55% · 4'); + }); +}); + +describe('formatSystemState', () => { + it('returns "None" for undefined state', () => { + expect(formatSystemState(undefined)).toBe('None'); + }); + + it('returns "None" for an object with only falsy flags', () => { + expect( + formatSystemState({ + isInsurrect: false, + hasPirateRaid: false, + hasCaptureEvent: false, + hasHoldTheLineEvent: false, + }) + ).toBe('None'); + }); + + it('returns the matching human-readable label for each active flag', () => { + expect(formatSystemState({ isInsurrect: true })).toBe('Insurrection'); + expect(formatSystemState({ hasPirateRaid: true })).toBe('Pirate Raid'); + expect(formatSystemState({ hasCaptureEvent: true })).toBe('Capture Event'); + expect(formatSystemState({ hasHoldTheLineEvent: true })).toBe( + 'Hold The Line Event' + ); + }); + + it('joins multiple active flags with commas in definition order', () => { + expect( + formatSystemState({ isInsurrect: true, hasPirateRaid: true }) + ).toBe('Insurrection, Pirate Raid'); + expect( + formatSystemState({ + hasCaptureEvent: true, + hasHoldTheLineEvent: true, + isInsurrect: true, + }) + ).toBe('Insurrection, Capture Event, Hold The Line Event'); + }); +}); + +describe('formatDamageLevel', () => { + it('returns "Unknown" for undefined, null, or whitespace-only values', () => { + expect(formatDamageLevel(undefined)).toBe('Unknown'); + expect(formatDamageLevel(null)).toBe('Unknown'); + expect(formatDamageLevel('')).toBe('Unknown'); + expect(formatDamageLevel(' ')).toBe('Unknown'); + }); + + it('stringifies numeric and string inputs', () => { + expect(formatDamageLevel(0)).toBe('0'); + expect(formatDamageLevel(42)).toBe('42'); + expect(formatDamageLevel('moderate')).toBe('moderate'); + }); +}); + +const baseSystem: StarSystemType = { + name: 'Terra', + posX: 10, + posY: -20, + owner: 'DAVION', + factions: [ + { Name: 'DAVION', control: 60, ActivePlayers: 3 }, + { Name: 'KURITA', control: 40, ActivePlayers: 1 }, + ], +}; + +describe('buildTooltipText', () => { + it('composes owner, coordinates, top-3 control, and damage line', () => { + const { text, controlItems } = buildTooltipText({ + system: baseSystem, + factions, + }); + + expect(controlItems).toHaveLength(2); + expect(text).toBe( + [ + 'Terra', + '(10, -20)', + 'Owner: House Davion', + 'Control:', + 'House Davion 60% · 3', + 'House Kurita 40% · 1', + 'Damage: Unknown', + ].join('\n') + ); + }); + + it('adds a "+N more" line when more than 3 factions hold control', () => { + const many: StarSystemType = { + ...baseSystem, + factions: [ + { Name: 'A', control: 50, ActivePlayers: 0 }, + { Name: 'B', control: 40, ActivePlayers: 0 }, + { Name: 'C', control: 30, ActivePlayers: 0 }, + { Name: 'D', control: 20, ActivePlayers: 0 }, + { Name: 'E', control: 10, ActivePlayers: 0 }, + ], + }; + const { text } = buildTooltipText({ system: many, factions }); + expect(text).toContain('+2 more'); + }); + + it('includes a state line only when state is non-None', () => { + const stateful: StarSystemType = { + ...baseSystem, + state: { isInsurrect: true, hasPirateRaid: true }, + }; + const { text } = buildTooltipText({ system: stateful, factions }); + expect(text).toContain('State: Insurrection, Pirate Raid'); + }); + + it('omits the state line when no flag is set', () => { + const noState: StarSystemType = { ...baseSystem, state: {} }; + const { text } = buildTooltipText({ system: noState, factions }); + expect(text).not.toContain('State:'); + }); + + it('appends the tap-to-open hint when includeTapHint is true', () => { + const { text } = buildTooltipText({ + system: baseSystem, + factions, + includeTapHint: true, + }); + expect(text.endsWith('[Tap to open]')).toBe(true); + }); + + it('labels the owner as "Unknown" when the faction is not registered', () => { + const orphan: StarSystemType = { ...baseSystem, owner: 'MISSING' }; + const { text } = buildTooltipText({ system: orphan, factions }); + expect(text).toContain('Owner: Unknown'); + }); + + it('uses the damage level when present', () => { + const damaged: StarSystemType = { ...baseSystem, damageLevel: 'Heavy' }; + const { text } = buildTooltipText({ system: damaged, factions }); + expect(text).toContain('Damage: Heavy'); + }); +}); diff --git a/src/components/ui/StarSystem.helpers.ts b/src/components/ui/StarSystem.helpers.ts new file mode 100644 index 0000000..7033964 --- /dev/null +++ b/src/components/ui/StarSystem.helpers.ts @@ -0,0 +1,102 @@ +import type { + FactionDataType, + StarSystemState, + StarSystemType, +} from '../hooks/types'; +import type { TooltipControlItem } from '../GalaxyMap/gm.types'; +import { findFaction } from '../helpers'; + +export const buildControlItems = ( + systemFactions: StarSystemType['factions'], + allFactions: FactionDataType +): TooltipControlItem[] => { + return [...systemFactions] + .sort((a, b) => b.control - a.control) + .map((faction) => { + const factionData = findFaction(faction.Name, allFactions); + return { + name: factionData?.prettyName || faction.Name, + control: faction.control, + players: faction.ActivePlayers, + }; + }); +}; + +export const formatControlLine = (item: TooltipControlItem): string => + `${item.name} ${item.control}% · ${item.players}`; + +const STATE_LABELS: Array<[keyof StarSystemState, string]> = [ + ['isInsurrect', 'Insurrection'], + ['hasPirateRaid', 'Pirate Raid'], + ['hasCaptureEvent', 'Capture Event'], + ['hasHoldTheLineEvent', 'Hold The Line Event'], +]; + +export const formatSystemState = (state?: StarSystemState): string => { + if (!state) return 'None'; + const activeStates = STATE_LABELS.filter(([key]) => state[key]).map( + ([, label]) => label + ); + return activeStates.length ? activeStates.join(', ') : 'None'; +}; + +export const formatDamageLevel = ( + damageLevel: StarSystemType['damageLevel'] +): string => { + if ( + damageLevel === undefined || + damageLevel === null || + `${damageLevel}`.trim() === '' + ) { + return 'Unknown'; + } + return `${damageLevel}`; +}; + +export interface BuildTooltipTextArgs { + system: StarSystemType; + factions: FactionDataType; + includeTapHint?: boolean; +} + +export interface BuildTooltipTextResult { + text: string; + controlItems: TooltipControlItem[]; +} + +export const buildTooltipText = ({ + system, + factions, + includeTapHint = false, +}: BuildTooltipTextArgs): BuildTooltipTextResult => { + const ownerName = + findFaction(system.owner, factions)?.prettyName || 'Unknown'; + const controlItems = buildControlItems(system.factions, factions); + const topControl = controlItems.slice(0, 3); + const remainingControlCount = Math.max( + 0, + controlItems.length - topControl.length + ); + const stateDetails = formatSystemState(system.state); + const damageLevelText = formatDamageLevel(system.damageLevel); + + const lines = [ + system.name, + `(${system.posX}, ${system.posY})`, + `Owner: ${ownerName}`, + 'Control:', + ...topControl.map(formatControlLine), + ...(remainingControlCount > 0 ? [`+${remainingControlCount} more`] : []), + `Damage: ${damageLevelText}`, + ]; + + if (stateDetails !== 'None') { + lines.push(`State: ${stateDetails}`); + } + + if (includeTapHint) { + lines.push('[Tap to open]'); + } + + return { text: lines.join('\n'), controlItems }; +}; diff --git a/src/components/ui/StarSystem.tsx b/src/components/ui/StarSystem.tsx index 61b6d9b..cf609fa 100644 --- a/src/components/ui/StarSystem.tsx +++ b/src/components/ui/StarSystem.tsx @@ -1,7 +1,7 @@ import { memo, useEffect, useRef, useState } from 'react'; import { Circle, Image as KonvaImage } from 'react-konva'; import Konva from 'konva'; -import { findFaction, openInNewTab } from '../helpers'; +import { openInNewTab } from '../helpers'; import pirateIconUrl from '../../assets/joli-rouge-icon.svg'; import holdTheLineIconUrl from '../../assets/shield.svg'; import captureEventIconUrl from '../../assets/crosshairs.svg'; @@ -9,11 +9,10 @@ import { DisplayStarSystemType, FactionDataType, Settings, - StarSystemState, - StarSystemType, } from '../hooks/types'; import { API_BASE_URL } from '../helpers/ApiHelper.ts'; import type { TooltipControlItem } from '../GalaxyMap/gm.types'; +import { buildTooltipText } from './StarSystem.helpers'; const CAPITAL_RADIUS = 2.5; const PLANET_RADIUS = 1; @@ -116,26 +115,6 @@ const StarSystem: React.FC = ({ }) => { const baseRadius = system.isCapital ? CAPITAL_RADIUS : PLANET_RADIUS; - const buildControlItems = ( - systemFactions: StarSystemType['factions'], - allFactions: FactionDataType - ): TooltipControlItem[] => { - return [...systemFactions] - .sort((a, b) => b.control - a.control) - .map((faction) => { - const factionData = findFaction(faction.Name, allFactions); - return { - name: factionData?.prettyName || faction.Name, - control: faction.control, - players: faction.ActivePlayers, - }; - }); - }; - - const formatControlLine = (item: TooltipControlItem) => { - return `${item.name} ${item.control}% · ${item.players}`; - }; - const hasActivePlayers = system.factions.some( (faction) => faction.ActivePlayers > 0 ); @@ -326,65 +305,6 @@ const StarSystem: React.FC = ({ }; }, [shouldPulseSize, pirateIconImage, holdTheLineIconImage, captureEventIconImage]); - const damageLevelText = - system.damageLevel !== undefined && - system.damageLevel !== null && - `${system.damageLevel}`.trim() !== '' - ? `${system.damageLevel}` - : 'Unknown'; - - const formatSystemState = (state?: StarSystemState) => { - if (!state) return 'None'; - - const stateLabels: Array<[keyof StarSystemState, string]> = [ - ['isInsurrect', 'Insurrection'], - ['hasPirateRaid', 'Pirate Raid'], - ['hasCaptureEvent', 'Capture Event'], - ['hasHoldTheLineEvent', 'Hold The Line Event'], - ]; - - const activeStates = stateLabels - .filter(([key]) => state[key]) - .map(([, label]) => label); - - return activeStates.length ? activeStates.join(', ') : 'None'; - }; - - const buildTooltipText = (includeTapHint = false) => { - const ownerName = - findFaction(system.owner, factions)?.prettyName || 'Unknown'; - const controlItems = buildControlItems(system.factions, factions); - const topControl = controlItems.slice(0, 3); - const remainingControlCount = Math.max( - 0, - controlItems.length - topControl.length - ); - const stateDetails = formatSystemState(system.state); - - const lines = [ - system.name, - `(${system.posX}, ${system.posY})`, - `Owner: ${ownerName}`, - 'Control:', - ...topControl.map(formatControlLine), - ...(remainingControlCount > 0 ? [`+${remainingControlCount} more`] : []), - `Damage: ${damageLevelText}`, - ]; - - if (stateDetails !== 'None') { - lines.push(`State: ${stateDetails}`); - } - - if (includeTapHint) { - lines.push('[Tap to open]'); - } - - return { - text: lines.join('\n'), - controlItems, - }; - }; - return ( <> {isInsurrectionLike && ( @@ -472,7 +392,7 @@ const StarSystem: React.FC = ({ const pointer = stage.getPointerPosition(); if (!pointer) return; - const tooltipData = buildTooltipText(); + const tooltipData = buildTooltipText({ system, factions }); showTooltip( tooltipData.text, pointer.x, @@ -501,7 +421,11 @@ const StarSystem: React.FC = ({ return; } - const tooltipData = buildTooltipText(true); + const tooltipData = buildTooltipText({ + system, + factions, + includeTapHint: true, + }); showTooltip( tooltipData.text,