@spear-ai/spectral 1.13.1 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.d.ts +66 -46
- package/dist/Accordion.d.ts.map +1 -0
- package/dist/Accordion.js +113 -4
- package/dist/Accordion.js.map +1 -0
- package/dist/Alert/AlertBase.d.ts +75 -41
- package/dist/Alert/AlertBase.d.ts.map +1 -0
- package/dist/Alert/AlertBase.js +48 -39
- package/dist/Alert/AlertBase.js.map +1 -0
- package/dist/Alert.d.ts +24 -10
- package/dist/Alert.d.ts.map +1 -0
- package/dist/Alert.js +62 -50
- package/dist/Alert.js.map +1 -0
- package/dist/Avatar.d.ts +24 -11
- package/dist/Avatar.d.ts.map +1 -0
- package/dist/Avatar.js +87 -68
- package/dist/Avatar.js.map +1 -0
- package/dist/Badge.d.ts +19 -8
- package/dist/Badge.d.ts.map +1 -0
- package/dist/Badge.js +18 -13
- package/dist/Badge.js.map +1 -0
- package/dist/Button.d.ts +54 -26
- package/dist/Button.d.ts.map +1 -0
- package/dist/Button.js +72 -57
- package/dist/Button.js.map +1 -0
- package/dist/ButtonGroup/ButtonGroupButton.d.ts +25 -12
- package/dist/ButtonGroup/ButtonGroupButton.d.ts.map +1 -0
- package/dist/ButtonGroup/ButtonGroupButton.js +24 -19
- package/dist/ButtonGroup/ButtonGroupButton.js.map +1 -0
- package/dist/ButtonGroup.d.ts +60 -31
- package/dist/ButtonGroup.d.ts.map +1 -0
- package/dist/ButtonGroup.js +64 -49
- package/dist/ButtonGroup.js.map +1 -0
- package/dist/ButtonIcon.d.ts +32 -16
- package/dist/ButtonIcon.d.ts.map +1 -0
- package/dist/ButtonIcon.js +43 -35
- package/dist/ButtonIcon.js.map +1 -0
- package/dist/Checkbox/CheckboxBase.d.ts +54 -26
- package/dist/Checkbox/CheckboxBase.d.ts.map +1 -0
- package/dist/Checkbox/CheckboxBase.js +106 -74
- package/dist/Checkbox/CheckboxBase.js.map +1 -0
- package/dist/Checkbox.d.ts +49 -24
- package/dist/Checkbox.d.ts.map +1 -0
- package/dist/Checkbox.js +49 -40
- package/dist/Checkbox.js.map +1 -0
- package/dist/Combobox.d.ts +54 -23
- package/dist/Combobox.d.ts.map +1 -0
- package/dist/Combobox.js +203 -4
- package/dist/Combobox.js.map +1 -0
- package/dist/ControlGroup/ControlGroupSelect.d.ts +73 -43
- package/dist/ControlGroup/ControlGroupSelect.d.ts.map +1 -0
- package/dist/ControlGroup/ControlGroupSelect.js +159 -121
- package/dist/ControlGroup/ControlGroupSelect.js.map +1 -0
- package/dist/ControlGroup.d.ts +43 -21
- package/dist/ControlGroup.d.ts.map +1 -0
- package/dist/ControlGroup.js +54 -41
- package/dist/ControlGroup.js.map +1 -0
- package/dist/DataCard/Card.d.ts +36 -9
- package/dist/DataCard/Card.d.ts.map +1 -0
- package/dist/DataCard/Card.js +57 -37
- package/dist/DataCard/Card.js.map +1 -0
- package/dist/DataCard.d.ts +23 -9
- package/dist/DataCard.d.ts.map +1 -0
- package/dist/DataCard.js +40 -36
- package/dist/DataCard.js.map +1 -0
- package/dist/DateTimePicker/Calendar.d.ts +24 -11
- package/dist/DateTimePicker/Calendar.d.ts.map +1 -0
- package/dist/DateTimePicker/Calendar.js +54 -3
- package/dist/DateTimePicker/Calendar.js.map +1 -0
- package/dist/DateTimePicker/DateTimeDisplayInput.d.ts +24 -18
- package/dist/DateTimePicker/DateTimeDisplayInput.d.ts.map +1 -0
- package/dist/DateTimePicker/DateTimeDisplayInput.js +360 -213
- package/dist/DateTimePicker/DateTimeDisplayInput.js.map +1 -0
- package/dist/DateTimePicker/DateTimeInput.d.ts +41 -19
- package/dist/DateTimePicker/DateTimeInput.d.ts.map +1 -0
- package/dist/DateTimePicker/DateTimeInput.js +151 -98
- package/dist/DateTimePicker/DateTimeInput.js.map +1 -0
- package/dist/DateTimePicker/DateTimeUtils.d.ts +121 -109
- package/dist/DateTimePicker/DateTimeUtils.d.ts.map +1 -0
- package/dist/DateTimePicker/DateTimeUtils.js +296 -2
- package/dist/DateTimePicker/DateTimeUtils.js.map +1 -0
- package/dist/DateTimePicker/TimePeriodSelect.d.ts +16 -10
- package/dist/DateTimePicker/TimePeriodSelect.d.ts.map +1 -0
- package/dist/DateTimePicker/TimePeriodSelect.js +54 -40
- package/dist/DateTimePicker/TimePeriodSelect.js.map +1 -0
- package/dist/DateTimePicker/TimePicker.d.ts +29 -14
- package/dist/DateTimePicker/TimePicker.d.ts.map +1 -0
- package/dist/DateTimePicker/TimePicker.js +68 -54
- package/dist/DateTimePicker/TimePicker.js.map +1 -0
- package/dist/DateTimePicker.d.ts +56 -31
- package/dist/DateTimePicker.d.ts.map +1 -0
- package/dist/DateTimePicker.js +86 -71
- package/dist/DateTimePicker.js.map +1 -0
- package/dist/Dialog.d.ts +60 -21
- package/dist/Dialog.d.ts.map +1 -0
- package/dist/Dialog.js +103 -72
- package/dist/Dialog.js.map +1 -0
- package/dist/Drawer.d.ts +32 -14
- package/dist/Drawer.d.ts.map +1 -0
- package/dist/Drawer.js +46 -41
- package/dist/Drawer.js.map +1 -0
- package/dist/DropdownMenu.d.ts +84 -51
- package/dist/DropdownMenu.d.ts.map +1 -0
- package/dist/DropdownMenu.js +156 -3
- package/dist/DropdownMenu.js.map +1 -0
- package/dist/FormFieldMessage.d.ts +32 -8
- package/dist/FormFieldMessage.d.ts.map +1 -0
- package/dist/FormFieldMessage.js +64 -45
- package/dist/FormFieldMessage.js.map +1 -0
- package/dist/HoverCard.d.ts +51 -25
- package/dist/HoverCard.d.ts.map +1 -0
- package/dist/HoverCard.js +67 -3
- package/dist/HoverCard.js.map +1 -0
- package/dist/Icons/AdjustmentsIcon.d.ts +16 -3
- package/dist/Icons/AdjustmentsIcon.d.ts.map +1 -0
- package/dist/Icons/AdjustmentsIcon.js +84 -78
- package/dist/Icons/AdjustmentsIcon.js.map +1 -0
- package/dist/Icons/AnalyzeIcon.d.ts +16 -3
- package/dist/Icons/AnalyzeIcon.d.ts.map +1 -0
- package/dist/Icons/AnalyzeIcon.js +56 -50
- package/dist/Icons/AnalyzeIcon.js.map +1 -0
- package/dist/Icons/AnnotationsIcon.d.ts +16 -3
- package/dist/Icons/AnnotationsIcon.d.ts.map +1 -0
- package/dist/Icons/AnnotationsIcon.js +26 -20
- package/dist/Icons/AnnotationsIcon.js.map +1 -0
- package/dist/Icons/ApprovedIcon.d.ts +16 -3
- package/dist/Icons/ApprovedIcon.d.ts.map +1 -0
- package/dist/Icons/ApprovedIcon.js +32 -26
- package/dist/Icons/ApprovedIcon.js.map +1 -0
- package/dist/Icons/ArrowDownIcon.d.ts +16 -3
- package/dist/Icons/ArrowDownIcon.d.ts.map +1 -0
- package/dist/Icons/ArrowDownIcon.js +26 -20
- package/dist/Icons/ArrowDownIcon.js.map +1 -0
- package/dist/Icons/ArrowUpIcon.d.ts +16 -3
- package/dist/Icons/ArrowUpIcon.d.ts.map +1 -0
- package/dist/Icons/ArrowUpIcon.js +26 -20
- package/dist/Icons/ArrowUpIcon.js.map +1 -0
- package/dist/Icons/BoxToolIcon.d.ts +16 -3
- package/dist/Icons/BoxToolIcon.d.ts.map +1 -0
- package/dist/Icons/BoxToolIcon.js +23 -17
- package/dist/Icons/BoxToolIcon.js.map +1 -0
- package/dist/Icons/CalendarIcon.d.ts +16 -3
- package/dist/Icons/CalendarIcon.d.ts.map +1 -0
- package/dist/Icons/CalendarIcon.js +49 -43
- package/dist/Icons/CalendarIcon.js.map +1 -0
- package/dist/Icons/CheckCircleIcon.d.ts +16 -3
- package/dist/Icons/CheckCircleIcon.d.ts.map +1 -0
- package/dist/Icons/CheckCircleIcon.js +32 -26
- package/dist/Icons/CheckCircleIcon.js.map +1 -0
- package/dist/Icons/CheckSquareIcon.d.ts +16 -3
- package/dist/Icons/CheckSquareIcon.d.ts.map +1 -0
- package/dist/Icons/CheckSquareIcon.js +32 -26
- package/dist/Icons/CheckSquareIcon.js.map +1 -0
- package/dist/Icons/CheckmarkIcon.d.ts +17 -3
- package/dist/Icons/CheckmarkIcon.d.ts.map +1 -0
- package/dist/Icons/CheckmarkIcon.js +28 -22
- package/dist/Icons/CheckmarkIcon.js.map +1 -0
- package/dist/Icons/ChevronDownIcon.d.ts +16 -3
- package/dist/Icons/ChevronDownIcon.d.ts.map +1 -0
- package/dist/Icons/ChevronDownIcon.js +28 -22
- package/dist/Icons/ChevronDownIcon.js.map +1 -0
- package/dist/Icons/ChevronUpIcon.d.ts +16 -3
- package/dist/Icons/ChevronUpIcon.d.ts.map +1 -0
- package/dist/Icons/ChevronUpIcon.js +28 -22
- package/dist/Icons/ChevronUpIcon.js.map +1 -0
- package/dist/Icons/ClockIcon.d.ts +16 -3
- package/dist/Icons/ClockIcon.d.ts.map +1 -0
- package/dist/Icons/ClockIcon.js +32 -26
- package/dist/Icons/ClockIcon.js.map +1 -0
- package/dist/Icons/CloseCircleIcon.d.ts +16 -3
- package/dist/Icons/CloseCircleIcon.d.ts.map +1 -0
- package/dist/Icons/CloseCircleIcon.js +32 -26
- package/dist/Icons/CloseCircleIcon.js.map +1 -0
- package/dist/Icons/CloseIcon.d.ts +16 -3
- package/dist/Icons/CloseIcon.d.ts.map +1 -0
- package/dist/Icons/CloseIcon.js +24 -18
- package/dist/Icons/CloseIcon.js.map +1 -0
- package/dist/Icons/Crosshairs2Icon.d.ts +16 -3
- package/dist/Icons/Crosshairs2Icon.d.ts.map +1 -0
- package/dist/Icons/Crosshairs2Icon.js +56 -50
- package/dist/Icons/Crosshairs2Icon.js.map +1 -0
- package/dist/Icons/CrosshairsIcon.d.ts +16 -3
- package/dist/Icons/CrosshairsIcon.d.ts.map +1 -0
- package/dist/Icons/CrosshairsIcon.js +25 -19
- package/dist/Icons/CrosshairsIcon.js.map +1 -0
- package/dist/Icons/DashboardIcon.d.ts +16 -3
- package/dist/Icons/DashboardIcon.d.ts.map +1 -0
- package/dist/Icons/DashboardIcon.js +42 -36
- package/dist/Icons/DashboardIcon.js.map +1 -0
- package/dist/Icons/DatabaseIcon.d.ts +16 -3
- package/dist/Icons/DatabaseIcon.d.ts.map +1 -0
- package/dist/Icons/DatabaseIcon.js +42 -36
- package/dist/Icons/DatabaseIcon.js.map +1 -0
- package/dist/Icons/DeleteIcon.d.ts +16 -3
- package/dist/Icons/DeleteIcon.d.ts.map +1 -0
- package/dist/Icons/DeleteIcon.js +42 -36
- package/dist/Icons/DeleteIcon.js.map +1 -0
- package/dist/Icons/DurationIcon.d.ts +16 -3
- package/dist/Icons/DurationIcon.d.ts.map +1 -0
- package/dist/Icons/DurationIcon.js +63 -57
- package/dist/Icons/DurationIcon.js.map +1 -0
- package/dist/Icons/EditIcon.d.ts +16 -3
- package/dist/Icons/EditIcon.d.ts.map +1 -0
- package/dist/Icons/EditIcon.js +32 -26
- package/dist/Icons/EditIcon.js.map +1 -0
- package/dist/Icons/EmailIcon.d.ts +16 -3
- package/dist/Icons/EmailIcon.d.ts.map +1 -0
- package/dist/Icons/EmailIcon.js +32 -26
- package/dist/Icons/EmailIcon.js.map +1 -0
- package/dist/Icons/EraserIcon.d.ts +16 -3
- package/dist/Icons/EraserIcon.d.ts.map +1 -0
- package/dist/Icons/EraserIcon.js +27 -23
- package/dist/Icons/EraserIcon.js.map +1 -0
- package/dist/Icons/ErrorIcon.d.ts +16 -3
- package/dist/Icons/ErrorIcon.d.ts.map +1 -0
- package/dist/Icons/ErrorIcon.js +33 -27
- package/dist/Icons/ErrorIcon.js.map +1 -0
- package/dist/Icons/EyeClosedIcon.d.ts +16 -3
- package/dist/Icons/EyeClosedIcon.d.ts.map +1 -0
- package/dist/Icons/EyeClosedIcon.js +35 -29
- package/dist/Icons/EyeClosedIcon.js.map +1 -0
- package/dist/Icons/EyeClosedIcon2.d.ts +16 -3
- package/dist/Icons/EyeClosedIcon2.d.ts.map +1 -0
- package/dist/Icons/EyeClosedIcon2.js +33 -27
- package/dist/Icons/EyeClosedIcon2.js.map +1 -0
- package/dist/Icons/EyeOpenIcon.d.ts +16 -3
- package/dist/Icons/EyeOpenIcon.d.ts.map +1 -0
- package/dist/Icons/EyeOpenIcon.js +28 -22
- package/dist/Icons/EyeOpenIcon.js.map +1 -0
- package/dist/Icons/FileDownloadIcon.d.ts +16 -3
- package/dist/Icons/FileDownloadIcon.d.ts.map +1 -0
- package/dist/Icons/FileDownloadIcon.js +49 -43
- package/dist/Icons/FileDownloadIcon.js.map +1 -0
- package/dist/Icons/GoToFirstIcon.d.ts +16 -3
- package/dist/Icons/GoToFirstIcon.d.ts.map +1 -0
- package/dist/Icons/GoToFirstIcon.js +32 -26
- package/dist/Icons/GoToFirstIcon.js.map +1 -0
- package/dist/Icons/GoToLastIcon.d.ts +16 -3
- package/dist/Icons/GoToLastIcon.d.ts.map +1 -0
- package/dist/Icons/GoToLastIcon.js +32 -26
- package/dist/Icons/GoToLastIcon.js.map +1 -0
- package/dist/Icons/HarmonicCursorsIcon.d.ts +16 -3
- package/dist/Icons/HarmonicCursorsIcon.d.ts.map +1 -0
- package/dist/Icons/HarmonicCursorsIcon.js +29 -23
- package/dist/Icons/HarmonicCursorsIcon.js.map +1 -0
- package/dist/Icons/IconBase.d.ts +38 -14
- package/dist/Icons/IconBase.d.ts.map +1 -0
- package/dist/Icons/IconBase.js +61 -41
- package/dist/Icons/IconBase.js.map +1 -0
- package/dist/Icons/InfoIcon.d.ts +16 -3
- package/dist/Icons/InfoIcon.d.ts.map +1 -0
- package/dist/Icons/InfoIcon.js +42 -36
- package/dist/Icons/InfoIcon.js.map +1 -0
- package/dist/Icons/KeyboardIcon.d.ts +16 -3
- package/dist/Icons/KeyboardIcon.d.ts.map +1 -0
- package/dist/Icons/KeyboardIcon.js +32 -26
- package/dist/Icons/KeyboardIcon.js.map +1 -0
- package/dist/Icons/LabelIcon.d.ts +16 -3
- package/dist/Icons/LabelIcon.d.ts.map +1 -0
- package/dist/Icons/LabelIcon.js +25 -19
- package/dist/Icons/LabelIcon.js.map +1 -0
- package/dist/Icons/LassoIcon.d.ts +16 -3
- package/dist/Icons/LassoIcon.d.ts.map +1 -0
- package/dist/Icons/LassoIcon.js +42 -36
- package/dist/Icons/LassoIcon.js.map +1 -0
- package/dist/Icons/LineToolIcon.d.ts +16 -3
- package/dist/Icons/LineToolIcon.d.ts.map +1 -0
- package/dist/Icons/LineToolIcon.js +54 -48
- package/dist/Icons/LineToolIcon.js.map +1 -0
- package/dist/Icons/LiveViewIcon.d.ts +16 -3
- package/dist/Icons/LiveViewIcon.d.ts.map +1 -0
- package/dist/Icons/LiveViewIcon.js +56 -50
- package/dist/Icons/LiveViewIcon.js.map +1 -0
- package/dist/Icons/LoaderIcon.d.ts +16 -3
- package/dist/Icons/LoaderIcon.d.ts.map +1 -0
- package/dist/Icons/LoaderIcon.js +35 -31
- package/dist/Icons/LoaderIcon.js.map +1 -0
- package/dist/Icons/LocationIcon.d.ts +16 -3
- package/dist/Icons/LocationIcon.d.ts.map +1 -0
- package/dist/Icons/LocationIcon.js +32 -26
- package/dist/Icons/LocationIcon.js.map +1 -0
- package/dist/Icons/LogoutIcon.d.ts +16 -3
- package/dist/Icons/LogoutIcon.d.ts.map +1 -0
- package/dist/Icons/LogoutIcon.js +26 -20
- package/dist/Icons/LogoutIcon.js.map +1 -0
- package/dist/Icons/MaximizeIcon.d.ts +16 -3
- package/dist/Icons/MaximizeIcon.d.ts.map +1 -0
- package/dist/Icons/MaximizeIcon.js +49 -43
- package/dist/Icons/MaximizeIcon.js.map +1 -0
- package/dist/Icons/MeasureIcon.d.ts +16 -3
- package/dist/Icons/MeasureIcon.d.ts.map +1 -0
- package/dist/Icons/MeasureIcon.js +84 -78
- package/dist/Icons/MeasureIcon.js.map +1 -0
- package/dist/Icons/MenuDotsIcon.d.ts +16 -3
- package/dist/Icons/MenuDotsIcon.d.ts.map +1 -0
- package/dist/Icons/MenuDotsIcon.js +42 -36
- package/dist/Icons/MenuDotsIcon.js.map +1 -0
- package/dist/Icons/MenuIcon.d.ts +16 -3
- package/dist/Icons/MenuIcon.d.ts.map +1 -0
- package/dist/Icons/MenuIcon.js +42 -36
- package/dist/Icons/MenuIcon.js.map +1 -0
- package/dist/Icons/MessagesIcon.d.ts +16 -3
- package/dist/Icons/MessagesIcon.d.ts.map +1 -0
- package/dist/Icons/MessagesIcon.js +39 -33
- package/dist/Icons/MessagesIcon.js.map +1 -0
- package/dist/Icons/MetadataIcon.d.ts +16 -3
- package/dist/Icons/MetadataIcon.d.ts.map +1 -0
- package/dist/Icons/MetadataIcon.js +26 -20
- package/dist/Icons/MetadataIcon.js.map +1 -0
- package/dist/Icons/MinimizeIcon.d.ts +16 -3
- package/dist/Icons/MinimizeIcon.d.ts.map +1 -0
- package/dist/Icons/MinimizeIcon.js +49 -43
- package/dist/Icons/MinimizeIcon.js.map +1 -0
- package/dist/Icons/MinusIcon.d.ts +16 -3
- package/dist/Icons/MinusIcon.d.ts.map +1 -0
- package/dist/Icons/MinusIcon.js +24 -18
- package/dist/Icons/MinusIcon.js.map +1 -0
- package/dist/Icons/OntologyIcon.d.ts +16 -3
- package/dist/Icons/OntologyIcon.d.ts.map +1 -0
- package/dist/Icons/OntologyIcon.js +93 -87
- package/dist/Icons/OntologyIcon.js.map +1 -0
- package/dist/Icons/PanelIconClose.d.ts +16 -3
- package/dist/Icons/PanelIconClose.d.ts.map +1 -0
- package/dist/Icons/PanelIconClose.js +34 -28
- package/dist/Icons/PanelIconClose.js.map +1 -0
- package/dist/Icons/PanelIconOpen.d.ts +16 -3
- package/dist/Icons/PanelIconOpen.d.ts.map +1 -0
- package/dist/Icons/PanelIconOpen.js +34 -28
- package/dist/Icons/PanelIconOpen.js.map +1 -0
- package/dist/Icons/PauseIcon.d.ts +16 -3
- package/dist/Icons/PauseIcon.d.ts.map +1 -0
- package/dist/Icons/PauseIcon.js +32 -26
- package/dist/Icons/PauseIcon.js.map +1 -0
- package/dist/Icons/PlayIcon.d.ts +16 -3
- package/dist/Icons/PlayIcon.d.ts.map +1 -0
- package/dist/Icons/PlayIcon.js +26 -20
- package/dist/Icons/PlayIcon.js.map +1 -0
- package/dist/Icons/PlusIcon.d.ts +16 -3
- package/dist/Icons/PlusIcon.d.ts.map +1 -0
- package/dist/Icons/PlusIcon.js +26 -20
- package/dist/Icons/PlusIcon.js.map +1 -0
- package/dist/Icons/PolygonIcon.d.ts +17 -3
- package/dist/Icons/PolygonIcon.d.ts.map +1 -0
- package/dist/Icons/PolygonIcon.js +56 -50
- package/dist/Icons/PolygonIcon.js.map +1 -0
- package/dist/Icons/PrinterIcon.d.ts +16 -3
- package/dist/Icons/PrinterIcon.d.ts.map +1 -0
- package/dist/Icons/PrinterIcon.js +26 -20
- package/dist/Icons/PrinterIcon.js.map +1 -0
- package/dist/Icons/ProgressCheckIcon.d.ts +16 -3
- package/dist/Icons/ProgressCheckIcon.d.ts.map +1 -0
- package/dist/Icons/ProgressCheckIcon.js +63 -57
- package/dist/Icons/ProgressCheckIcon.js.map +1 -0
- package/dist/Icons/ResetIcon.d.ts +16 -3
- package/dist/Icons/ResetIcon.d.ts.map +1 -0
- package/dist/Icons/ResetIcon.js +23 -17
- package/dist/Icons/ResetIcon.js.map +1 -0
- package/dist/Icons/ReviewedIcon.d.ts +16 -3
- package/dist/Icons/ReviewedIcon.d.ts.map +1 -0
- package/dist/Icons/ReviewedIcon.js +42 -36
- package/dist/Icons/ReviewedIcon.js.map +1 -0
- package/dist/Icons/ScissorsIcon.d.ts +16 -3
- package/dist/Icons/ScissorsIcon.d.ts.map +1 -0
- package/dist/Icons/ScissorsIcon.js +28 -22
- package/dist/Icons/ScissorsIcon.js.map +1 -0
- package/dist/Icons/SearchIcon.d.ts +16 -3
- package/dist/Icons/SearchIcon.d.ts.map +1 -0
- package/dist/Icons/SearchIcon.js +32 -26
- package/dist/Icons/SearchIcon.js.map +1 -0
- package/dist/Icons/SettingsIcon.d.ts +16 -3
- package/dist/Icons/SettingsIcon.d.ts.map +1 -0
- package/dist/Icons/SettingsIcon.js +32 -26
- package/dist/Icons/SettingsIcon.js.map +1 -0
- package/dist/Icons/SortAscendingIcon.d.ts +16 -3
- package/dist/Icons/SortAscendingIcon.d.ts.map +1 -0
- package/dist/Icons/SortAscendingIcon.js +56 -50
- package/dist/Icons/SortAscendingIcon.js.map +1 -0
- package/dist/Icons/SortAtoZIcon.d.ts +16 -3
- package/dist/Icons/SortAtoZIcon.d.ts.map +1 -0
- package/dist/Icons/SortAtoZIcon.js +56 -50
- package/dist/Icons/SortAtoZIcon.js.map +1 -0
- package/dist/Icons/SortDescendingIcon.d.ts +16 -3
- package/dist/Icons/SortDescendingIcon.d.ts.map +1 -0
- package/dist/Icons/SortDescendingIcon.js +56 -50
- package/dist/Icons/SortDescendingIcon.js.map +1 -0
- package/dist/Icons/SortZtoAIcon.d.ts +16 -3
- package/dist/Icons/SortZtoAIcon.d.ts.map +1 -0
- package/dist/Icons/SortZtoAIcon.js +56 -50
- package/dist/Icons/SortZtoAIcon.js.map +1 -0
- package/dist/Icons/SparklesIcon.d.ts +16 -3
- package/dist/Icons/SparklesIcon.d.ts.map +1 -0
- package/dist/Icons/SparklesIcon.js +26 -20
- package/dist/Icons/SparklesIcon.js.map +1 -0
- package/dist/Icons/StackIcon.d.ts +16 -3
- package/dist/Icons/StackIcon.d.ts.map +1 -0
- package/dist/Icons/StackIcon.js +32 -26
- package/dist/Icons/StackIcon.js.map +1 -0
- package/dist/Icons/StarIcon.d.ts +16 -3
- package/dist/Icons/StarIcon.d.ts.map +1 -0
- package/dist/Icons/StarIcon.js +26 -20
- package/dist/Icons/StarIcon.js.map +1 -0
- package/dist/Icons/TrashIcon.d.ts +16 -3
- package/dist/Icons/TrashIcon.d.ts.map +1 -0
- package/dist/Icons/TrashIcon.js +23 -17
- package/dist/Icons/TrashIcon.js.map +1 -0
- package/dist/Icons/UndoIcon.d.ts +16 -3
- package/dist/Icons/UndoIcon.d.ts.map +1 -0
- package/dist/Icons/UndoIcon.js +26 -20
- package/dist/Icons/UndoIcon.js.map +1 -0
- package/dist/Icons/UploadIcon.d.ts +16 -3
- package/dist/Icons/UploadIcon.d.ts.map +1 -0
- package/dist/Icons/UploadIcon.js +42 -36
- package/dist/Icons/UploadIcon.js.map +1 -0
- package/dist/Icons/User2Icon.d.ts +16 -3
- package/dist/Icons/User2Icon.d.ts.map +1 -0
- package/dist/Icons/User2Icon.js +32 -26
- package/dist/Icons/User2Icon.js.map +1 -0
- package/dist/Icons/UserIcon.d.ts +16 -3
- package/dist/Icons/UserIcon.d.ts.map +1 -0
- package/dist/Icons/UserIcon.js +25 -19
- package/dist/Icons/UserIcon.js.map +1 -0
- package/dist/Icons/WarningIcon.d.ts +16 -3
- package/dist/Icons/WarningIcon.d.ts.map +1 -0
- package/dist/Icons/WarningIcon.js +25 -19
- package/dist/Icons/WarningIcon.js.map +1 -0
- package/dist/Icons/ZoomAllIcon.d.ts +16 -3
- package/dist/Icons/ZoomAllIcon.d.ts.map +1 -0
- package/dist/Icons/ZoomAllIcon.js +77 -71
- package/dist/Icons/ZoomAllIcon.js.map +1 -0
- package/dist/Icons/ZoomXIcon.d.ts +16 -3
- package/dist/Icons/ZoomXIcon.d.ts.map +1 -0
- package/dist/Icons/ZoomXIcon.js +42 -36
- package/dist/Icons/ZoomXIcon.js.map +1 -0
- package/dist/Icons/ZoomYIcon.d.ts +16 -3
- package/dist/Icons/ZoomYIcon.d.ts.map +1 -0
- package/dist/Icons/ZoomYIcon.js +42 -36
- package/dist/Icons/ZoomYIcon.js.map +1 -0
- package/dist/Icons.d.ts +82 -0
- package/dist/Icons.js +83 -82
- package/dist/IconsAnimated/PanelLeftCloseIcon.d.ts +15 -2
- package/dist/IconsAnimated/PanelLeftCloseIcon.d.ts.map +1 -0
- package/dist/IconsAnimated/PanelLeftCloseIcon.js +45 -35
- package/dist/IconsAnimated/PanelLeftCloseIcon.js.map +1 -0
- package/dist/IconsAnimated/PanelLeftOpenIcon.d.ts +15 -2
- package/dist/IconsAnimated/PanelLeftOpenIcon.d.ts.map +1 -0
- package/dist/IconsAnimated/PanelLeftOpenIcon.js +45 -35
- package/dist/IconsAnimated/PanelLeftOpenIcon.js.map +1 -0
- package/dist/IconsAnimated.d.ts +4 -0
- package/dist/IconsAnimated.js +5 -4
- package/dist/Input/InputUtils.d.ts +16 -11
- package/dist/Input/InputUtils.d.ts.map +1 -0
- package/dist/Input/InputUtils.js +47 -36
- package/dist/Input/InputUtils.js.map +1 -0
- package/dist/Input.d.ts +31 -26
- package/dist/Input.d.ts.map +1 -0
- package/dist/Input.js +161 -111
- package/dist/Input.js.map +1 -0
- package/dist/InputNumeric.d.ts +33 -12
- package/dist/InputNumeric.d.ts.map +1 -0
- package/dist/InputNumeric.js +146 -102
- package/dist/InputNumeric.js.map +1 -0
- package/dist/InputOTP.d.ts +95 -54
- package/dist/InputOTP.d.ts.map +1 -0
- package/dist/InputOTP.js +161 -3
- package/dist/InputOTP.js.map +1 -0
- package/dist/Kbd.d.ts +31 -16
- package/dist/Kbd.d.ts.map +1 -0
- package/dist/Kbd.js +55 -46
- package/dist/Kbd.js.map +1 -0
- package/dist/Label.d.ts +19 -9
- package/dist/Label.d.ts.map +1 -0
- package/dist/Label.js +16 -12
- package/dist/Label.js.map +1 -0
- package/dist/MultiSelect/MultiSelectBase.d.ts +81 -41
- package/dist/MultiSelect/MultiSelectBase.d.ts.map +1 -0
- package/dist/MultiSelect/MultiSelectBase.js +318 -235
- package/dist/MultiSelect/MultiSelectBase.js.map +1 -0
- package/dist/MultiSelect.d.ts +40 -23
- package/dist/MultiSelect.d.ts.map +1 -0
- package/dist/MultiSelect.js +31 -26
- package/dist/MultiSelect.js.map +1 -0
- package/dist/Popover.d.ts +28 -8
- package/dist/Popover.d.ts.map +1 -0
- package/dist/Popover.js +41 -28
- package/dist/Popover.js.map +1 -0
- package/dist/RadioButton.d.ts +36 -15
- package/dist/RadioButton.d.ts.map +1 -0
- package/dist/RadioButton.js +34 -26
- package/dist/RadioButton.js.map +1 -0
- package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +50 -23
- package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts.map +1 -0
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +63 -45
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js.map +1 -0
- package/dist/RadioButtonGroup.d.ts +31 -10
- package/dist/RadioButtonGroup.d.ts.map +1 -0
- package/dist/RadioButtonGroup.js +16 -11
- package/dist/RadioButtonGroup.js.map +1 -0
- package/dist/RadioGroup.d.ts +62 -45
- package/dist/RadioGroup.d.ts.map +1 -0
- package/dist/RadioGroup.js +184 -3
- package/dist/RadioGroup.js.map +1 -0
- package/dist/Select.d.ts +38 -33
- package/dist/Select.d.ts.map +1 -0
- package/dist/Select.js +142 -116
- package/dist/Select.js.map +1 -0
- package/dist/Separator.d.ts +22 -10
- package/dist/Separator.d.ts.map +1 -0
- package/dist/Separator.js +20 -16
- package/dist/Separator.js.map +1 -0
- package/dist/Skeleton.d.ts +11 -2
- package/dist/Skeleton.d.ts.map +1 -0
- package/dist/Skeleton.js +14 -10
- package/dist/Skeleton.js.map +1 -0
- package/dist/Slider.d.ts +49 -26
- package/dist/Slider.d.ts.map +1 -0
- package/dist/Slider.js +167 -3
- package/dist/Slider.js.map +1 -0
- package/dist/SpectralProvider.d.ts +3 -30
- package/dist/SpectralProvider.js +4 -11
- package/dist/Switch/SwitchBase.d.ts +51 -24
- package/dist/Switch/SwitchBase.d.ts.map +1 -0
- package/dist/Switch/SwitchBase.js +91 -72
- package/dist/Switch/SwitchBase.js.map +1 -0
- package/dist/Switch.d.ts +53 -24
- package/dist/Switch.d.ts.map +1 -0
- package/dist/Switch.js +118 -3
- package/dist/Switch.js.map +1 -0
- package/dist/Tabs/TabsBase.d.ts +94 -50
- package/dist/Tabs/TabsBase.d.ts.map +1 -0
- package/dist/Tabs/TabsBase.js +213 -152
- package/dist/Tabs/TabsBase.js.map +1 -0
- package/dist/Tabs/tabsUtils.d.ts +35 -30
- package/dist/Tabs/tabsUtils.d.ts.map +1 -0
- package/dist/Tabs/tabsUtils.js +121 -49
- package/dist/Tabs/tabsUtils.js.map +1 -0
- package/dist/Tabs.d.ts +55 -35
- package/dist/Tabs.d.ts.map +1 -0
- package/dist/Tabs.js +81 -60
- package/dist/Tabs.js.map +1 -0
- package/dist/Textarea/TextareaUtils.d.ts +24 -13
- package/dist/Textarea/TextareaUtils.d.ts.map +1 -0
- package/dist/Textarea/TextareaUtils.js +52 -29
- package/dist/Textarea/TextareaUtils.js.map +1 -0
- package/dist/Textarea.d.ts +33 -25
- package/dist/Textarea.d.ts.map +1 -0
- package/dist/Textarea.js +94 -67
- package/dist/Textarea.js.map +1 -0
- package/dist/Toast.d.ts +63 -34
- package/dist/Toast.d.ts.map +1 -0
- package/dist/Toast.js +115 -3
- package/dist/Toast.js.map +1 -0
- package/dist/Toggle/ToggleBase.d.ts +29 -11
- package/dist/Toggle/ToggleBase.d.ts.map +1 -0
- package/dist/Toggle/ToggleBase.js +55 -41
- package/dist/Toggle/ToggleBase.js.map +1 -0
- package/dist/Toggle.d.ts +34 -16
- package/dist/Toggle.d.ts.map +1 -0
- package/dist/Toggle.js +46 -32
- package/dist/Toggle.js.map +1 -0
- package/dist/ToggleGroup/ToggleGroupBase.d.ts +45 -30
- package/dist/ToggleGroup/ToggleGroupBase.d.ts.map +1 -0
- package/dist/ToggleGroup/ToggleGroupBase.js +162 -111
- package/dist/ToggleGroup/ToggleGroupBase.js.map +1 -0
- package/dist/ToggleGroup/ToggleGroupItem.d.ts +31 -13
- package/dist/ToggleGroup/ToggleGroupItem.d.ts.map +1 -0
- package/dist/ToggleGroup/ToggleGroupItem.js +35 -27
- package/dist/ToggleGroup/ToggleGroupItem.js.map +1 -0
- package/dist/ToggleGroup/ToggleGroupSplitMenuItem.d.ts +49 -20
- package/dist/ToggleGroup/ToggleGroupSplitMenuItem.d.ts.map +1 -0
- package/dist/ToggleGroup/ToggleGroupSplitMenuItem.js +123 -91
- package/dist/ToggleGroup/ToggleGroupSplitMenuItem.js.map +1 -0
- package/dist/ToggleGroup.d.ts +26 -10
- package/dist/ToggleGroup.d.ts.map +1 -0
- package/dist/ToggleGroup.js +35 -31
- package/dist/ToggleGroup.js.map +1 -0
- package/dist/Tooltip.d.ts +35 -12
- package/dist/Tooltip.d.ts.map +1 -0
- package/dist/Tooltip.js +68 -3
- package/dist/Tooltip.js.map +1 -0
- package/dist/Tray.d.ts +105 -61
- package/dist/Tray.d.ts.map +1 -0
- package/dist/Tray.js +120 -102
- package/dist/Tray.js.map +1 -0
- package/dist/components/Icons/iconTypes.d.ts +17 -0
- package/dist/components/Icons/iconTypes.d.ts.map +1 -0
- package/dist/components/IconsAnimated/iconTypes.d.ts +15 -0
- package/dist/components/IconsAnimated/iconTypes.d.ts.map +1 -0
- package/dist/components/SpectralProvider/SpectralProvider.d.ts +35 -0
- package/dist/components/SpectralProvider/SpectralProvider.d.ts.map +1 -0
- package/dist/components/SpectralProvider/SpectralProvider.js +33 -0
- package/dist/components/SpectralProvider/SpectralProvider.js.map +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.context.js +14 -0
- package/dist/components/ToggleGroup/ToggleGroup.context.js.map +1 -0
- package/dist/hooks/useAccordionAutoScroll.d.ts +7 -2
- package/dist/hooks/useAccordionAutoScroll.d.ts.map +1 -1
- package/dist/hooks/useAccordionAutoScroll.js +71 -45
- package/dist/hooks/useAccordionAutoScroll.js.map +1 -0
- package/dist/hooks/useControllableState.d.ts +12 -8
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useControllableState.js +23 -12
- package/dist/hooks/useControllableState.js.map +1 -0
- package/dist/hooks/useConvertToOklch.d.ts +6 -2
- package/dist/hooks/useConvertToOklch.d.ts.map +1 -1
- package/dist/hooks/useConvertToOklch.js +87 -42
- package/dist/hooks/useConvertToOklch.js.map +1 -0
- package/dist/hooks/useTheme.d.ts +10 -6
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/hooks/useTheme.js +26 -18
- package/dist/hooks/useTheme.js.map +1 -0
- package/dist/hooks/useUncontrolledState.d.ts +8 -4
- package/dist/hooks/useUncontrolledState.d.ts.map +1 -1
- package/dist/hooks/useUncontrolledState.js +21 -11
- package/dist/hooks/useUncontrolledState.js.map +1 -0
- package/dist/index.d.ts +129 -47
- package/dist/index.js +130 -0
- package/dist/primitives/button.d.ts +22 -9
- package/dist/primitives/button.d.ts.map +1 -1
- package/dist/primitives/button.js +21 -15
- package/dist/primitives/button.js.map +1 -0
- package/dist/primitives/input-group.d.ts +46 -17
- package/dist/primitives/input-group.d.ts.map +1 -1
- package/dist/primitives/input-group.js +66 -43
- package/dist/primitives/input-group.js.map +1 -0
- package/dist/primitives/input.d.ts +16 -6
- package/dist/primitives/input.d.ts.map +1 -1
- package/dist/primitives/input.js +15 -10
- package/dist/primitives/input.js.map +1 -0
- package/dist/primitives/popover.d.ts +35 -9
- package/dist/primitives/popover.d.ts.map +1 -1
- package/dist/primitives/popover.js +56 -33
- package/dist/primitives/popover.js.map +1 -0
- package/dist/primitives/select.d.ts +60 -17
- package/dist/primitives/select.d.ts.map +1 -1
- package/dist/primitives/select.js +133 -3
- package/dist/primitives/select.js.map +1 -0
- package/dist/primitives/slot.d.ts +23 -14
- package/dist/primitives/slot.d.ts.map +1 -1
- package/dist/primitives/slot.js +53 -29
- package/dist/primitives/slot.js.map +1 -0
- package/dist/primitives/textarea.d.ts +11 -2
- package/dist/primitives/textarea.d.ts.map +1 -1
- package/dist/primitives/textarea.js +14 -9
- package/dist/primitives/textarea.js.map +1 -0
- package/dist/styles/horizon/colors.css +1 -0
- package/dist/styles/horizon-tokens.css +9 -0
- package/dist/styles/spectral.css +2 -2
- package/dist/utils/constants.d.ts +5 -1
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +5 -2
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/dropdownPositioning.d.ts +14 -9
- package/dist/utils/dropdownPositioning.d.ts.map +1 -1
- package/dist/utils/dropdownPositioning.js +57 -34
- package/dist/utils/dropdownPositioning.js.map +1 -0
- package/dist/utils/formFieldUtils.d.ts +93 -73
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +171 -106
- package/dist/utils/formFieldUtils.js.map +1 -0
- package/dist/utils/sharedUtils.d.ts +10 -6
- package/dist/utils/sharedUtils.d.ts.map +1 -1
- package/dist/utils/sharedUtils.js +23 -8
- package/dist/utils/sharedUtils.js.map +1 -0
- package/dist/utils/twUtils.d.ts +7 -2
- package/dist/utils/twUtils.d.ts.map +1 -1
- package/dist/utils/twUtils.js +12 -2
- package/dist/utils/twUtils.js.map +1 -0
- package/package.json +32 -24
- package/dist/.js +0 -129
- package/dist/Accordion-dVZHqyv8.js +0 -363
- package/dist/AnimatePresence-Bz_JZ2ah.js +0 -178
- package/dist/App.d.ts +0 -2
- package/dist/App.d.ts.map +0 -1
- package/dist/App.js +0 -9
- package/dist/Calendar-FXWVuKWS.js +0 -3109
- package/dist/Combination-MimnVFUU.js +0 -698
- package/dist/Combobox-DRQqx0os.js +0 -6379
- package/dist/DateTimeUtils-BJUAMuot.js +0 -2098
- package/dist/DropdownMenu-BO_RPCVU.js +0 -870
- package/dist/HoverCard-BhxgELKP.js +0 -201
- package/dist/Icons/index.d.ts +0 -81
- package/dist/InputOTP-DLn7ja7J.js +0 -464
- package/dist/RadioGroup-D-XjCU4Q.js +0 -333
- package/dist/Slider-CPYW_VYu.js +0 -490
- package/dist/Switch-CSmXtkia.js +0 -145
- package/dist/Toast-BuaZxqlt.js +0 -711
- package/dist/ToggleGroup/ToggleGroup.context.d.ts +0 -9
- package/dist/ToggleGroup/ToggleGroup.context.js +0 -11
- package/dist/Tooltip-CTjKOfvC.js +0 -389
- package/dist/builtin_esm-external-require-react-ItzZuLxx.js +0 -8
- package/dist/chunk-DmRZw4Wy.js +0 -17
- package/dist/clsx-Bfoz3aNJ.js +0 -16
- package/dist/dist-B9w6c9RC.js +0 -190
- package/dist/dist-Br_xj9vz.js +0 -12
- package/dist/dist-C-2mar4Y.js +0 -28
- package/dist/dist-C4MHwt9g.js +0 -10
- package/dist/dist-C6pGYii-.js +0 -6
- package/dist/dist-Cc8NfAO6.js +0 -122
- package/dist/dist-CcsVPym2.js +0 -68
- package/dist/dist-CrYg_9Cu.js +0 -913
- package/dist/dist-CwYxT5fv.js +0 -1287
- package/dist/dist-D9FsQh8P.js +0 -65
- package/dist/dist-DBLajRTL.js +0 -149
- package/dist/dist-DEkDg4Sk.js +0 -249
- package/dist/dist-DT46nqCO.js +0 -216
- package/dist/dist-PfrTYHr_.js +0 -29
- package/dist/dist-iDaHUF3d.js +0 -129
- package/dist/dist-s1uWaZYZ.js +0 -11
- package/dist/dist-tMzzRwxG.js +0 -33
- package/dist/index.d.ts.map +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -18960
- package/dist/proxy-BFVscmYQ.js +0 -4920
- package/dist/select-DFE8xm1L.js +0 -768
- package/dist/styles/base-colors.css +0 -62
- package/dist/styles/main.css +0 -2
- package/dist/styles/theme.css +0 -869
- package/dist/twUtils-BpqlKSeB.js +0 -1673
- package/dist/use-animation-BeSipRjB.js +0 -57
- package/dist/utils/dropdownPositioning.test.d.ts +0 -2
- package/dist/utils/dropdownPositioning.test.d.ts.map +0 -1
- package/dist/utils/dropdownPositioning.test.js +0 -22
package/dist/proxy-BFVscmYQ.js
DELETED
|
@@ -1,4920 +0,0 @@
|
|
|
1
|
-
import './styles/main.css'
|
|
2
|
-
import { i as e, n as t, r as n } from "./chunk-DmRZw4Wy.js";
|
|
3
|
-
import { Component as r, Fragment as i, createContext as a, createElement as o, forwardRef as s, useCallback as c, useContext as l, useEffect as u, useId as d, useInsertionEffect as f, useLayoutEffect as p, useMemo as m, useRef as h } from "react";
|
|
4
|
-
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
5
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
|
|
6
|
-
var v = a({});
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-constant.mjs
|
|
9
|
-
function y(e) {
|
|
10
|
-
let t = h(null);
|
|
11
|
-
return t.current === null && (t.current = e()), t.current;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
|
|
15
|
-
var b = typeof window < "u" ? p : u, x = /* @__PURE__ */ a(null);
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/array.mjs
|
|
18
|
-
function S(e, t) {
|
|
19
|
-
e.indexOf(t) === -1 && e.push(t);
|
|
20
|
-
}
|
|
21
|
-
function C(e, t) {
|
|
22
|
-
let n = e.indexOf(t);
|
|
23
|
-
n > -1 && e.splice(n, 1);
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/clamp.mjs
|
|
27
|
-
var w = (e, t, n) => n > t ? t : n < e ? e : n;
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/format-error-message.mjs
|
|
30
|
-
function T(e, t) {
|
|
31
|
-
return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/errors.mjs
|
|
35
|
-
var E = () => {}, D = () => {};
|
|
36
|
-
typeof process < "u" && process.env.NODE_ENV !== "production" && (E = (e, t, n) => {
|
|
37
|
-
!e && typeof console < "u" && console.warn(T(t, n));
|
|
38
|
-
}, D = (e, t, n) => {
|
|
39
|
-
if (!e) throw Error(T(t, n));
|
|
40
|
-
});
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/global-config.mjs
|
|
43
|
-
var O = {}, ee = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-object.mjs
|
|
46
|
-
function te(e) {
|
|
47
|
-
return typeof e == "object" && !!e;
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/is-zero-value-string.mjs
|
|
51
|
-
var ne = (e) => /^0[^.\s]+$/u.test(e);
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/memo.mjs
|
|
54
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
55
|
-
function re(e) {
|
|
56
|
-
let t;
|
|
57
|
-
return () => (t === void 0 && (t = e()), t);
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/noop.mjs
|
|
61
|
-
var k = /* @__NO_SIDE_EFFECTS__ */ (e) => e, ie = (e, t) => (n) => t(e(n)), ae = (...e) => e.reduce(ie), oe = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
62
|
-
let r = t - e;
|
|
63
|
-
return r === 0 ? 1 : (n - e) / r;
|
|
64
|
-
}, se = class {
|
|
65
|
-
constructor() {
|
|
66
|
-
this.subscriptions = [];
|
|
67
|
-
}
|
|
68
|
-
add(e) {
|
|
69
|
-
return S(this.subscriptions, e), () => C(this.subscriptions, e);
|
|
70
|
-
}
|
|
71
|
-
notify(e, t, n) {
|
|
72
|
-
let r = this.subscriptions.length;
|
|
73
|
-
if (r) if (r === 1) this.subscriptions[0](e, t, n);
|
|
74
|
-
else for (let i = 0; i < r; i++) {
|
|
75
|
-
let r = this.subscriptions[i];
|
|
76
|
-
r && r(e, t, n);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
getSize() {
|
|
80
|
-
return this.subscriptions.length;
|
|
81
|
-
}
|
|
82
|
-
clear() {
|
|
83
|
-
this.subscriptions.length = 0;
|
|
84
|
-
}
|
|
85
|
-
}, A = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, j = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/velocity-per-second.mjs
|
|
88
|
-
function ce(e, t) {
|
|
89
|
-
return t ? 1e3 / t * e : 0;
|
|
90
|
-
}
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/warn-once.mjs
|
|
93
|
-
var le = /* @__PURE__ */ new Set();
|
|
94
|
-
function ue(e, t, n) {
|
|
95
|
-
e || le.has(t) || (console.warn(T(t, n)), le.add(t));
|
|
96
|
-
}
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs
|
|
99
|
-
var de = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, fe = 1e-7, pe = 12;
|
|
100
|
-
function me(e, t, n, r, i) {
|
|
101
|
-
let a, o, s = 0;
|
|
102
|
-
do
|
|
103
|
-
o = t + (n - t) / 2, a = de(o, r, i) - e, a > 0 ? n = o : t = o;
|
|
104
|
-
while (Math.abs(a) > fe && ++s < pe);
|
|
105
|
-
return o;
|
|
106
|
-
}
|
|
107
|
-
function he(e, t, n, r) {
|
|
108
|
-
if (e === t && n === r) return k;
|
|
109
|
-
let i = (t) => me(t, 0, 1, e, n);
|
|
110
|
-
return (e) => e === 0 || e === 1 ? e : de(i(e), t, r);
|
|
111
|
-
}
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region node_modules/.pnpm/motion-utils@12.36.0/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
|
|
114
|
-
var ge = (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, _e = (e) => (t) => 1 - e(1 - t), ve = /* @__PURE__ */ he(.33, 1.53, .69, .99), ye = /* @__PURE__ */ _e(ve), be = /* @__PURE__ */ ge(ye), xe = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * ye(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Se = (e) => 1 - Math.sin(Math.acos(e)), Ce = _e(Se), we = ge(Se), Te = /* @__PURE__ */ he(.42, 0, 1, 1), Ee = /* @__PURE__ */ he(0, 0, .58, 1), De = /* @__PURE__ */ he(.42, 0, .58, 1), Oe = (e) => Array.isArray(e) && typeof e[0] != "number", ke = (e) => Array.isArray(e) && typeof e[0] == "number", Ae = {
|
|
115
|
-
linear: k,
|
|
116
|
-
easeIn: Te,
|
|
117
|
-
easeInOut: De,
|
|
118
|
-
easeOut: Ee,
|
|
119
|
-
circIn: Se,
|
|
120
|
-
circInOut: we,
|
|
121
|
-
circOut: Ce,
|
|
122
|
-
backIn: ye,
|
|
123
|
-
backInOut: be,
|
|
124
|
-
backOut: ve,
|
|
125
|
-
anticipate: xe
|
|
126
|
-
}, je = (e) => typeof e == "string", Me = (e) => {
|
|
127
|
-
if (ke(e)) {
|
|
128
|
-
D(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
129
|
-
let [t, n, r, i] = e;
|
|
130
|
-
return he(t, n, r, i);
|
|
131
|
-
} else if (je(e)) return D(Ae[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Ae[e];
|
|
132
|
-
return e;
|
|
133
|
-
}, Ne = [
|
|
134
|
-
"setup",
|
|
135
|
-
"read",
|
|
136
|
-
"resolveKeyframes",
|
|
137
|
-
"preUpdate",
|
|
138
|
-
"update",
|
|
139
|
-
"preRender",
|
|
140
|
-
"render",
|
|
141
|
-
"postRender"
|
|
142
|
-
], M = {
|
|
143
|
-
value: null,
|
|
144
|
-
addProjectionMetrics: null
|
|
145
|
-
};
|
|
146
|
-
//#endregion
|
|
147
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/render-step.mjs
|
|
148
|
-
function Pe(e, t) {
|
|
149
|
-
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = /* @__PURE__ */ new WeakSet(), s = {
|
|
150
|
-
delta: 0,
|
|
151
|
-
timestamp: 0,
|
|
152
|
-
isProcessing: !1
|
|
153
|
-
}, c = 0;
|
|
154
|
-
function l(t) {
|
|
155
|
-
o.has(t) && (u.schedule(t), e()), c++, t(s);
|
|
156
|
-
}
|
|
157
|
-
let u = {
|
|
158
|
-
schedule: (e, t = !1, a = !1) => {
|
|
159
|
-
let s = a && i ? n : r;
|
|
160
|
-
return t && o.add(e), s.add(e), e;
|
|
161
|
-
},
|
|
162
|
-
cancel: (e) => {
|
|
163
|
-
r.delete(e), o.delete(e);
|
|
164
|
-
},
|
|
165
|
-
process: (e) => {
|
|
166
|
-
if (s = e, i) {
|
|
167
|
-
a = !0;
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
i = !0;
|
|
171
|
-
let o = n;
|
|
172
|
-
n = r, r = o, n.forEach(l), t && M.value && M.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
return u;
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/batcher.mjs
|
|
179
|
-
var Fe = 40;
|
|
180
|
-
function Ie(e, t) {
|
|
181
|
-
let n = !1, r = !0, i = {
|
|
182
|
-
delta: 0,
|
|
183
|
-
timestamp: 0,
|
|
184
|
-
isProcessing: !1
|
|
185
|
-
}, a = () => n = !0, o = Ne.reduce((e, n) => (e[n] = Pe(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
|
|
186
|
-
let a = O.useManualTiming, o = a ? i.timestamp : performance.now();
|
|
187
|
-
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, Fe), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
|
|
188
|
-
}, g = () => {
|
|
189
|
-
n = !0, r = !0, i.isProcessing || e(h);
|
|
190
|
-
};
|
|
191
|
-
return {
|
|
192
|
-
schedule: Ne.reduce((e, t) => {
|
|
193
|
-
let r = o[t];
|
|
194
|
-
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
|
|
195
|
-
}, {}),
|
|
196
|
-
cancel: (e) => {
|
|
197
|
-
for (let t = 0; t < Ne.length; t++) o[Ne[t]].cancel(e);
|
|
198
|
-
},
|
|
199
|
-
state: i,
|
|
200
|
-
steps: o
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/frame.mjs
|
|
205
|
-
var { schedule: N, cancel: P, state: F, steps: Le } = /* @__PURE__ */ Ie(typeof requestAnimationFrame < "u" ? requestAnimationFrame : k, !0), Re;
|
|
206
|
-
function ze() {
|
|
207
|
-
Re = void 0;
|
|
208
|
-
}
|
|
209
|
-
var I = {
|
|
210
|
-
now: () => (Re === void 0 && I.set(F.isProcessing || O.useManualTiming ? F.timestamp : performance.now()), Re),
|
|
211
|
-
set: (e) => {
|
|
212
|
-
Re = e, queueMicrotask(ze);
|
|
213
|
-
}
|
|
214
|
-
}, Be = {
|
|
215
|
-
layout: 0,
|
|
216
|
-
mainThread: 0,
|
|
217
|
-
waapi: 0
|
|
218
|
-
}, Ve = (e) => (t) => typeof t == "string" && t.startsWith(e), He = /* @__PURE__ */ Ve("--"), Ue = /* @__PURE__ */ Ve("var(--"), We = (e) => Ue(e) ? Ge.test(e.split("/*")[0].trim()) : !1, Ge = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
219
|
-
function Ke(e) {
|
|
220
|
-
return typeof e == "string" ? e.split("/*")[0].includes("var(--") : !1;
|
|
221
|
-
}
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
|
|
224
|
-
var qe = {
|
|
225
|
-
test: (e) => typeof e == "number",
|
|
226
|
-
parse: parseFloat,
|
|
227
|
-
transform: (e) => e
|
|
228
|
-
}, Je = {
|
|
229
|
-
...qe,
|
|
230
|
-
transform: (e) => w(0, 1, e)
|
|
231
|
-
}, Ye = {
|
|
232
|
-
...qe,
|
|
233
|
-
default: 1
|
|
234
|
-
}, Xe = (e) => Math.round(e * 1e5) / 1e5, Ze = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
|
|
237
|
-
function Qe(e) {
|
|
238
|
-
return e == null;
|
|
239
|
-
}
|
|
240
|
-
//#endregion
|
|
241
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
|
|
242
|
-
var $e = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, et = (e, t) => (n) => !!(typeof n == "string" && $e.test(n) && n.startsWith(e) || t && !Qe(n) && Object.prototype.hasOwnProperty.call(n, t)), tt = (e, t, n) => (r) => {
|
|
243
|
-
if (typeof r != "string") return r;
|
|
244
|
-
let [i, a, o, s] = r.match(Ze);
|
|
245
|
-
return {
|
|
246
|
-
[e]: parseFloat(i),
|
|
247
|
-
[t]: parseFloat(a),
|
|
248
|
-
[n]: parseFloat(o),
|
|
249
|
-
alpha: s === void 0 ? 1 : parseFloat(s)
|
|
250
|
-
};
|
|
251
|
-
}, nt = (e) => w(0, 255, e), rt = {
|
|
252
|
-
...qe,
|
|
253
|
-
transform: (e) => Math.round(nt(e))
|
|
254
|
-
}, it = {
|
|
255
|
-
test: /* @__PURE__ */ et("rgb", "red"),
|
|
256
|
-
parse: /* @__PURE__ */ tt("red", "green", "blue"),
|
|
257
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + rt.transform(e) + ", " + rt.transform(t) + ", " + rt.transform(n) + ", " + Xe(Je.transform(r)) + ")"
|
|
258
|
-
};
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hex.mjs
|
|
261
|
-
function at(e) {
|
|
262
|
-
let t = "", n = "", r = "", i = "";
|
|
263
|
-
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
264
|
-
red: parseInt(t, 16),
|
|
265
|
-
green: parseInt(n, 16),
|
|
266
|
-
blue: parseInt(r, 16),
|
|
267
|
-
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
var ot = {
|
|
271
|
-
test: /* @__PURE__ */ et("#"),
|
|
272
|
-
parse: at,
|
|
273
|
-
transform: it.transform
|
|
274
|
-
}, st = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
275
|
-
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
276
|
-
parse: parseFloat,
|
|
277
|
-
transform: (t) => `${t}${e}`
|
|
278
|
-
}), L = /* @__PURE__ */ st("deg"), R = /* @__PURE__ */ st("%"), z = /* @__PURE__ */ st("px"), ct = /* @__PURE__ */ st("vh"), lt = /* @__PURE__ */ st("vw"), ut = {
|
|
279
|
-
...R,
|
|
280
|
-
parse: (e) => R.parse(e) / 100,
|
|
281
|
-
transform: (e) => R.transform(e * 100)
|
|
282
|
-
}, dt = {
|
|
283
|
-
test: /* @__PURE__ */ et("hsl", "hue"),
|
|
284
|
-
parse: /* @__PURE__ */ tt("hue", "saturation", "lightness"),
|
|
285
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + R.transform(Xe(t)) + ", " + R.transform(Xe(n)) + ", " + Xe(Je.transform(r)) + ")"
|
|
286
|
-
}, B = {
|
|
287
|
-
test: (e) => it.test(e) || ot.test(e) || dt.test(e),
|
|
288
|
-
parse: (e) => it.test(e) ? it.parse(e) : dt.test(e) ? dt.parse(e) : ot.parse(e),
|
|
289
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? it.transform(e) : dt.transform(e),
|
|
290
|
-
getAnimatableNone: (e) => {
|
|
291
|
-
let t = B.parse(e);
|
|
292
|
-
return t.alpha = 0, B.transform(t);
|
|
293
|
-
}
|
|
294
|
-
}, ft = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
295
|
-
//#endregion
|
|
296
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/index.mjs
|
|
297
|
-
function pt(e) {
|
|
298
|
-
return isNaN(e) && typeof e == "string" && (e.match(Ze)?.length || 0) + (e.match(ft)?.length || 0) > 0;
|
|
299
|
-
}
|
|
300
|
-
var mt = "number", ht = "color", gt = "var", _t = "var(", vt = "${}", yt = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
301
|
-
function bt(e) {
|
|
302
|
-
let t = e.toString(), n = [], r = {
|
|
303
|
-
color: [],
|
|
304
|
-
number: [],
|
|
305
|
-
var: []
|
|
306
|
-
}, i = [], a = 0;
|
|
307
|
-
return {
|
|
308
|
-
values: n,
|
|
309
|
-
split: t.replace(yt, (e) => (B.test(e) ? (r.color.push(a), i.push(ht), n.push(B.parse(e))) : e.startsWith(_t) ? (r.var.push(a), i.push(gt), n.push(e)) : (r.number.push(a), i.push(mt), n.push(parseFloat(e))), ++a, vt)).split(vt),
|
|
310
|
-
indexes: r,
|
|
311
|
-
types: i
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
function xt(e) {
|
|
315
|
-
return bt(e).values;
|
|
316
|
-
}
|
|
317
|
-
function St({ split: e, types: t }) {
|
|
318
|
-
let n = e.length;
|
|
319
|
-
return (r) => {
|
|
320
|
-
let i = "";
|
|
321
|
-
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
|
|
322
|
-
let e = t[a];
|
|
323
|
-
e === mt ? i += Xe(r[a]) : e === ht ? i += B.transform(r[a]) : i += r[a];
|
|
324
|
-
}
|
|
325
|
-
return i;
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
function Ct(e) {
|
|
329
|
-
return St(bt(e));
|
|
330
|
-
}
|
|
331
|
-
var wt = (e) => typeof e == "number" ? 0 : B.test(e) ? B.getAnimatableNone(e) : e, Tt = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : wt(e);
|
|
332
|
-
function Et(e) {
|
|
333
|
-
let t = bt(e);
|
|
334
|
-
return St(t)(t.values.map((e, n) => Tt(e, t.split[n])));
|
|
335
|
-
}
|
|
336
|
-
var V = {
|
|
337
|
-
test: pt,
|
|
338
|
-
parse: xt,
|
|
339
|
-
createTransformer: Ct,
|
|
340
|
-
getAnimatableNone: Et
|
|
341
|
-
};
|
|
342
|
-
//#endregion
|
|
343
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
|
|
344
|
-
function Dt(e, t, n) {
|
|
345
|
-
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
346
|
-
}
|
|
347
|
-
function Ot({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
348
|
-
e /= 360, t /= 100, n /= 100;
|
|
349
|
-
let i = 0, a = 0, o = 0;
|
|
350
|
-
if (!t) i = a = o = n;
|
|
351
|
-
else {
|
|
352
|
-
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
|
|
353
|
-
i = Dt(s, r, e + 1 / 3), a = Dt(s, r, e), o = Dt(s, r, e - 1 / 3);
|
|
354
|
-
}
|
|
355
|
-
return {
|
|
356
|
-
red: Math.round(i * 255),
|
|
357
|
-
green: Math.round(a * 255),
|
|
358
|
-
blue: Math.round(o * 255),
|
|
359
|
-
alpha: r
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
|
|
364
|
-
function kt(e, t) {
|
|
365
|
-
return (n) => n > 0 ? t : e;
|
|
366
|
-
}
|
|
367
|
-
//#endregion
|
|
368
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/number.mjs
|
|
369
|
-
var H = (e, t, n) => e + (t - e) * n, At = (e, t, n) => {
|
|
370
|
-
let r = e * e, i = n * (t * t - r) + r;
|
|
371
|
-
return i < 0 ? 0 : Math.sqrt(i);
|
|
372
|
-
}, jt = [
|
|
373
|
-
ot,
|
|
374
|
-
it,
|
|
375
|
-
dt
|
|
376
|
-
], Mt = (e) => jt.find((t) => t.test(e));
|
|
377
|
-
function Nt(e) {
|
|
378
|
-
let t = Mt(e);
|
|
379
|
-
if (E(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
|
|
380
|
-
let n = t.parse(e);
|
|
381
|
-
return t === dt && (n = Ot(n)), n;
|
|
382
|
-
}
|
|
383
|
-
var Pt = (e, t) => {
|
|
384
|
-
let n = Nt(e), r = Nt(t);
|
|
385
|
-
if (!n || !r) return kt(e, t);
|
|
386
|
-
let i = { ...n };
|
|
387
|
-
return (e) => (i.red = At(n.red, r.red, e), i.green = At(n.green, r.green, e), i.blue = At(n.blue, r.blue, e), i.alpha = H(n.alpha, r.alpha, e), it.transform(i));
|
|
388
|
-
}, Ft = new Set(["none", "hidden"]);
|
|
389
|
-
function It(e, t) {
|
|
390
|
-
return Ft.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
391
|
-
}
|
|
392
|
-
//#endregion
|
|
393
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
394
|
-
function Lt(e, t) {
|
|
395
|
-
return (n) => H(e, t, n);
|
|
396
|
-
}
|
|
397
|
-
function Rt(e) {
|
|
398
|
-
return typeof e == "number" ? Lt : typeof e == "string" ? We(e) ? kt : B.test(e) ? Pt : Ht : Array.isArray(e) ? zt : typeof e == "object" ? B.test(e) ? Pt : Bt : kt;
|
|
399
|
-
}
|
|
400
|
-
function zt(e, t) {
|
|
401
|
-
let n = [...e], r = n.length, i = e.map((e, n) => Rt(e)(e, t[n]));
|
|
402
|
-
return (e) => {
|
|
403
|
-
for (let t = 0; t < r; t++) n[t] = i[t](e);
|
|
404
|
-
return n;
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
function Bt(e, t) {
|
|
408
|
-
let n = {
|
|
409
|
-
...e,
|
|
410
|
-
...t
|
|
411
|
-
}, r = {};
|
|
412
|
-
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Rt(e[i])(e[i], t[i]));
|
|
413
|
-
return (e) => {
|
|
414
|
-
for (let t in r) n[t] = r[t](e);
|
|
415
|
-
return n;
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
function Vt(e, t) {
|
|
419
|
-
let n = [], r = {
|
|
420
|
-
color: 0,
|
|
421
|
-
var: 0,
|
|
422
|
-
number: 0
|
|
423
|
-
};
|
|
424
|
-
for (let i = 0; i < t.values.length; i++) {
|
|
425
|
-
let a = t.types[i], o = e.indexes[a][r[a]];
|
|
426
|
-
n[i] = e.values[o] ?? 0, r[a]++;
|
|
427
|
-
}
|
|
428
|
-
return n;
|
|
429
|
-
}
|
|
430
|
-
var Ht = (e, t) => {
|
|
431
|
-
let n = V.createTransformer(t), r = bt(e), i = bt(t);
|
|
432
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Ft.has(e) && !i.values.length || Ft.has(t) && !r.values.length ? It(e, t) : ae(zt(Vt(r, i), i.values), n) : (E(!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.`, "complex-values-different"), kt(e, t));
|
|
433
|
-
};
|
|
434
|
-
//#endregion
|
|
435
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/mix/index.mjs
|
|
436
|
-
function Ut(e, t, n) {
|
|
437
|
-
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? H(e, t, n) : Rt(e)(e, t);
|
|
438
|
-
}
|
|
439
|
-
//#endregion
|
|
440
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
441
|
-
var Wt = (e) => {
|
|
442
|
-
let t = ({ timestamp: t }) => e(t);
|
|
443
|
-
return {
|
|
444
|
-
start: (e = !0) => N.update(t, e),
|
|
445
|
-
stop: () => P(t),
|
|
446
|
-
now: () => F.isProcessing ? F.timestamp : I.now()
|
|
447
|
-
};
|
|
448
|
-
}, Gt = (e, t, n = 10) => {
|
|
449
|
-
let r = "", i = Math.max(Math.round(t / n), 2);
|
|
450
|
-
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
|
|
451
|
-
return `linear(${r.substring(0, r.length - 2)})`;
|
|
452
|
-
}, Kt = 2e4;
|
|
453
|
-
function qt(e) {
|
|
454
|
-
let t = 0, n = e.next(t);
|
|
455
|
-
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
|
|
456
|
-
return t >= 2e4 ? Infinity : t;
|
|
457
|
-
}
|
|
458
|
-
//#endregion
|
|
459
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
460
|
-
function Jt(e, t = 100, n) {
|
|
461
|
-
let r = n({
|
|
462
|
-
...e,
|
|
463
|
-
keyframes: [0, t]
|
|
464
|
-
}), i = Math.min(qt(r), Kt);
|
|
465
|
-
return {
|
|
466
|
-
type: "keyframes",
|
|
467
|
-
ease: (e) => r.next(i * e).value / t,
|
|
468
|
-
duration: /* @__PURE__ */ j(i)
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
//#endregion
|
|
472
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
473
|
-
var U = {
|
|
474
|
-
stiffness: 100,
|
|
475
|
-
damping: 10,
|
|
476
|
-
mass: 1,
|
|
477
|
-
velocity: 0,
|
|
478
|
-
duration: 800,
|
|
479
|
-
bounce: .3,
|
|
480
|
-
visualDuration: .3,
|
|
481
|
-
restSpeed: {
|
|
482
|
-
granular: .01,
|
|
483
|
-
default: 2
|
|
484
|
-
},
|
|
485
|
-
restDelta: {
|
|
486
|
-
granular: .005,
|
|
487
|
-
default: .5
|
|
488
|
-
},
|
|
489
|
-
minDuration: .01,
|
|
490
|
-
maxDuration: 10,
|
|
491
|
-
minDamping: .05,
|
|
492
|
-
maxDamping: 1
|
|
493
|
-
};
|
|
494
|
-
function Yt(e, t) {
|
|
495
|
-
return e * Math.sqrt(1 - t * t);
|
|
496
|
-
}
|
|
497
|
-
var Xt = 12;
|
|
498
|
-
function Zt(e, t, n) {
|
|
499
|
-
let r = n;
|
|
500
|
-
for (let n = 1; n < Xt; n++) r -= e(r) / t(r);
|
|
501
|
-
return r;
|
|
502
|
-
}
|
|
503
|
-
var Qt = .001;
|
|
504
|
-
function $t({ duration: e = U.duration, bounce: t = U.bounce, velocity: n = U.velocity, mass: r = U.mass }) {
|
|
505
|
-
let i, a;
|
|
506
|
-
E(e <= /* @__PURE__ */ A(U.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
507
|
-
let o = 1 - t;
|
|
508
|
-
o = w(U.minDamping, U.maxDamping, o), e = w(U.minDuration, U.maxDuration, /* @__PURE__ */ j(e)), o < 1 ? (i = (t) => {
|
|
509
|
-
let r = t * o, i = r * e, a = r - n, s = Yt(t, o), c = Math.exp(-i);
|
|
510
|
-
return Qt - a / s * c;
|
|
511
|
-
}, a = (t) => {
|
|
512
|
-
let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Yt(t ** 2, o);
|
|
513
|
-
return (-i(t) + Qt > 0 ? -1 : 1) * ((a - s) * c) / l;
|
|
514
|
-
}) : (i = (t) => {
|
|
515
|
-
let r = Math.exp(-t * e), i = (t - n) * e + 1;
|
|
516
|
-
return -Qt + r * i;
|
|
517
|
-
}, a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
|
|
518
|
-
let s = 5 / e, c = Zt(i, a, s);
|
|
519
|
-
if (e = /* @__PURE__ */ A(e), isNaN(c)) return {
|
|
520
|
-
stiffness: U.stiffness,
|
|
521
|
-
damping: U.damping,
|
|
522
|
-
duration: e
|
|
523
|
-
};
|
|
524
|
-
{
|
|
525
|
-
let t = c ** 2 * r;
|
|
526
|
-
return {
|
|
527
|
-
stiffness: t,
|
|
528
|
-
damping: o * 2 * Math.sqrt(r * t),
|
|
529
|
-
duration: e
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
var en = ["duration", "bounce"], tn = [
|
|
534
|
-
"stiffness",
|
|
535
|
-
"damping",
|
|
536
|
-
"mass"
|
|
537
|
-
];
|
|
538
|
-
function nn(e, t) {
|
|
539
|
-
return t.some((t) => e[t] !== void 0);
|
|
540
|
-
}
|
|
541
|
-
function rn(e) {
|
|
542
|
-
let t = {
|
|
543
|
-
velocity: U.velocity,
|
|
544
|
-
stiffness: U.stiffness,
|
|
545
|
-
damping: U.damping,
|
|
546
|
-
mass: U.mass,
|
|
547
|
-
isResolvedFromDuration: !1,
|
|
548
|
-
...e
|
|
549
|
-
};
|
|
550
|
-
if (!nn(e, tn) && nn(e, en)) if (t.velocity = 0, e.visualDuration) {
|
|
551
|
-
let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * w(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
552
|
-
t = {
|
|
553
|
-
...t,
|
|
554
|
-
mass: U.mass,
|
|
555
|
-
stiffness: i,
|
|
556
|
-
damping: a
|
|
557
|
-
};
|
|
558
|
-
} else {
|
|
559
|
-
let n = $t({
|
|
560
|
-
...e,
|
|
561
|
-
velocity: 0
|
|
562
|
-
});
|
|
563
|
-
t = {
|
|
564
|
-
...t,
|
|
565
|
-
...n,
|
|
566
|
-
mass: U.mass
|
|
567
|
-
}, t.isResolvedFromDuration = !0;
|
|
568
|
-
}
|
|
569
|
-
return t;
|
|
570
|
-
}
|
|
571
|
-
function an(e = U.visualDuration, t = U.bounce) {
|
|
572
|
-
let n = typeof e == "object" ? e : {
|
|
573
|
-
visualDuration: e,
|
|
574
|
-
keyframes: [0, 1],
|
|
575
|
-
bounce: t
|
|
576
|
-
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
|
|
577
|
-
done: !1,
|
|
578
|
-
value: a
|
|
579
|
-
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = rn({
|
|
580
|
-
...n,
|
|
581
|
-
velocity: -/* @__PURE__ */ j(n.velocity || 0)
|
|
582
|
-
}), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ j(Math.sqrt(c / u)), v = Math.abs(g) < 5;
|
|
583
|
-
r ||= v ? U.restSpeed.granular : U.restSpeed.default, i ||= v ? U.restDelta.granular : U.restDelta.default;
|
|
584
|
-
let y, b, x, S, C, w;
|
|
585
|
-
if (h < 1) x = Yt(_, h), S = (m + h * _ * g) / x, y = (e) => o - Math.exp(-h * _ * e) * (S * Math.sin(x * e) + g * Math.cos(x * e)), C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
|
|
586
|
-
else if (h === 1) {
|
|
587
|
-
y = (e) => o - Math.exp(-_ * e) * (g + (m + _ * g) * e);
|
|
588
|
-
let e = m + _ * g;
|
|
589
|
-
b = (t) => Math.exp(-_ * t) * (_ * e * t - m);
|
|
590
|
-
} else {
|
|
591
|
-
let e = _ * Math.sqrt(h * h - 1);
|
|
592
|
-
y = (t) => {
|
|
593
|
-
let n = Math.exp(-h * _ * t), r = Math.min(e * t, 300);
|
|
594
|
-
return o - n * ((m + h * _ * g) * Math.sinh(r) + e * g * Math.cosh(r)) / e;
|
|
595
|
-
};
|
|
596
|
-
let t = (m + h * _ * g) / e, n = h * _ * t - g * e, r = h * _ * g - t * e;
|
|
597
|
-
b = (t) => {
|
|
598
|
-
let i = Math.exp(-h * _ * t), a = Math.min(e * t, 300);
|
|
599
|
-
return i * (n * Math.sinh(a) + r * Math.cosh(a));
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
let T = {
|
|
603
|
-
calculatedDuration: p && d || null,
|
|
604
|
-
velocity: (e) => /* @__PURE__ */ A(b(e)),
|
|
605
|
-
next: (e) => {
|
|
606
|
-
if (!p && h < 1) {
|
|
607
|
-
let t = Math.exp(-h * _ * e), n = Math.sin(x * e), a = Math.cos(x * e), c = o - t * (S * n + g * a), l = /* @__PURE__ */ A(t * (C * n + w * a));
|
|
608
|
-
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
|
|
609
|
-
}
|
|
610
|
-
let t = y(e);
|
|
611
|
-
if (p) s.done = e >= d;
|
|
612
|
-
else {
|
|
613
|
-
let n = /* @__PURE__ */ A(b(e));
|
|
614
|
-
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
|
|
615
|
-
}
|
|
616
|
-
return s.value = s.done ? o : t, s;
|
|
617
|
-
},
|
|
618
|
-
toString: () => {
|
|
619
|
-
let e = Math.min(qt(T), Kt), t = Gt((t) => T.next(e * t).value, e, 30);
|
|
620
|
-
return e + "ms " + t;
|
|
621
|
-
},
|
|
622
|
-
toTransition: () => {}
|
|
623
|
-
};
|
|
624
|
-
return T;
|
|
625
|
-
}
|
|
626
|
-
an.applyToOptions = (e) => {
|
|
627
|
-
let t = Jt(e, 100, an);
|
|
628
|
-
return e.ease = t.ease, e.duration = /* @__PURE__ */ A(t.duration), e.type = "keyframes", e;
|
|
629
|
-
};
|
|
630
|
-
//#endregion
|
|
631
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
632
|
-
var on = 5;
|
|
633
|
-
function sn(e, t, n) {
|
|
634
|
-
let r = Math.max(t - on, 0);
|
|
635
|
-
return ce(n - e(r), t - r);
|
|
636
|
-
}
|
|
637
|
-
//#endregion
|
|
638
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
639
|
-
function cn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
|
|
640
|
-
let d = e[0], f = {
|
|
641
|
-
done: !1,
|
|
642
|
-
value: d
|
|
643
|
-
}, p = (e) => s !== void 0 && e < s || c !== void 0 && e > c, m = (e) => s === void 0 ? c : c === void 0 || Math.abs(s - e) < Math.abs(c - e) ? s : c, h = n * t, g = d + h, _ = o === void 0 ? g : o(g);
|
|
644
|
-
_ !== g && (h = _ - d);
|
|
645
|
-
let v = (e) => -h * Math.exp(-e / r), y = (e) => _ + v(e), b = (e) => {
|
|
646
|
-
let t = v(e), n = y(e);
|
|
647
|
-
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
|
|
648
|
-
}, x, S, C = (e) => {
|
|
649
|
-
p(f.value) && (x = e, S = an({
|
|
650
|
-
keyframes: [f.value, m(f.value)],
|
|
651
|
-
velocity: sn(y, e, f.value),
|
|
652
|
-
damping: i,
|
|
653
|
-
stiffness: a,
|
|
654
|
-
restDelta: l,
|
|
655
|
-
restSpeed: u
|
|
656
|
-
}));
|
|
657
|
-
};
|
|
658
|
-
return C(0), {
|
|
659
|
-
calculatedDuration: null,
|
|
660
|
-
next: (e) => {
|
|
661
|
-
let t = !1;
|
|
662
|
-
return !S && x === void 0 && (t = !0, b(e), C(e)), x !== void 0 && e >= x ? S.next(e - x) : (!t && b(e), f);
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
}
|
|
666
|
-
//#endregion
|
|
667
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/interpolate.mjs
|
|
668
|
-
function ln(e, t, n) {
|
|
669
|
-
let r = [], i = n || O.mix || Ut, a = e.length - 1;
|
|
670
|
-
for (let n = 0; n < a; n++) {
|
|
671
|
-
let a = i(e[n], e[n + 1]);
|
|
672
|
-
t && (a = ae(Array.isArray(t) ? t[n] || k : t, a)), r.push(a);
|
|
673
|
-
}
|
|
674
|
-
return r;
|
|
675
|
-
}
|
|
676
|
-
function un(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
677
|
-
let a = e.length;
|
|
678
|
-
if (D(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
|
|
679
|
-
if (a === 2 && t[0] === t[1]) return () => t[1];
|
|
680
|
-
let o = e[0] === e[1];
|
|
681
|
-
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
682
|
-
let s = ln(t, r, i), c = s.length, l = (n) => {
|
|
683
|
-
if (o && n < e[0]) return t[0];
|
|
684
|
-
let r = 0;
|
|
685
|
-
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
|
|
686
|
-
let i = /* @__PURE__ */ oe(e[r], e[r + 1], n);
|
|
687
|
-
return s[r](i);
|
|
688
|
-
};
|
|
689
|
-
return n ? (t) => l(w(e[0], e[a - 1], t)) : l;
|
|
690
|
-
}
|
|
691
|
-
//#endregion
|
|
692
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
|
|
693
|
-
function dn(e, t) {
|
|
694
|
-
let n = e[e.length - 1];
|
|
695
|
-
for (let r = 1; r <= t; r++) {
|
|
696
|
-
let i = /* @__PURE__ */ oe(0, t, r);
|
|
697
|
-
e.push(H(n, 1, i));
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
//#endregion
|
|
701
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
|
|
702
|
-
function fn(e) {
|
|
703
|
-
let t = [0];
|
|
704
|
-
return dn(t, e.length - 1), t;
|
|
705
|
-
}
|
|
706
|
-
//#endregion
|
|
707
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
|
|
708
|
-
function pn(e, t) {
|
|
709
|
-
return e.map((e) => e * t);
|
|
710
|
-
}
|
|
711
|
-
//#endregion
|
|
712
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
|
|
713
|
-
function mn(e, t) {
|
|
714
|
-
return e.map(() => t || De).splice(0, e.length - 1);
|
|
715
|
-
}
|
|
716
|
-
function hn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
717
|
-
let i = Oe(r) ? r.map(Me) : Me(r), a = {
|
|
718
|
-
done: !1,
|
|
719
|
-
value: t[0]
|
|
720
|
-
}, o = un(pn(n && n.length === t.length ? n : fn(t), e), t, { ease: Array.isArray(i) ? i : mn(t, i) });
|
|
721
|
-
return {
|
|
722
|
-
calculatedDuration: e,
|
|
723
|
-
next: (t) => (a.value = o(t), a.done = t >= e, a)
|
|
724
|
-
};
|
|
725
|
-
}
|
|
726
|
-
//#endregion
|
|
727
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
728
|
-
var gn = (e) => e !== null;
|
|
729
|
-
function _n(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
|
|
730
|
-
let a = e.filter(gn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
731
|
-
return !o || r === void 0 ? a[o] : r;
|
|
732
|
-
}
|
|
733
|
-
//#endregion
|
|
734
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
|
|
735
|
-
var vn = {
|
|
736
|
-
decay: cn,
|
|
737
|
-
inertia: cn,
|
|
738
|
-
tween: hn,
|
|
739
|
-
keyframes: hn,
|
|
740
|
-
spring: an
|
|
741
|
-
};
|
|
742
|
-
function yn(e) {
|
|
743
|
-
typeof e.type == "string" && (e.type = vn[e.type]);
|
|
744
|
-
}
|
|
745
|
-
//#endregion
|
|
746
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
|
|
747
|
-
var bn = class {
|
|
748
|
-
constructor() {
|
|
749
|
-
this.updateFinished();
|
|
750
|
-
}
|
|
751
|
-
get finished() {
|
|
752
|
-
return this._finished;
|
|
753
|
-
}
|
|
754
|
-
updateFinished() {
|
|
755
|
-
this._finished = new Promise((e) => {
|
|
756
|
-
this.resolve = e;
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
|
-
notifyFinished() {
|
|
760
|
-
this.resolve();
|
|
761
|
-
}
|
|
762
|
-
then(e, t) {
|
|
763
|
-
return this.finished.then(e, t);
|
|
764
|
-
}
|
|
765
|
-
}, xn = (e) => e / 100, Sn = class extends bn {
|
|
766
|
-
constructor(e) {
|
|
767
|
-
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
|
|
768
|
-
done: !1,
|
|
769
|
-
value: void 0
|
|
770
|
-
}, this.stop = () => {
|
|
771
|
-
let { motionValue: e } = this.options;
|
|
772
|
-
e && e.updatedAt !== I.now() && this.tick(I.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
773
|
-
}, Be.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
|
|
774
|
-
}
|
|
775
|
-
initAnimation() {
|
|
776
|
-
let { options: e } = this;
|
|
777
|
-
yn(e);
|
|
778
|
-
let { type: t = hn, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || hn;
|
|
779
|
-
process.env.NODE_ENV !== "production" && s !== hn && D(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== hn && typeof o[0] != "number" && (this.mixKeyframes = ae(xn, Ut(o[0], o[1])), o = [0, 100]);
|
|
780
|
-
let c = s({
|
|
781
|
-
...e,
|
|
782
|
-
keyframes: o
|
|
783
|
-
});
|
|
784
|
-
i === "mirror" && (this.mirroredGenerator = s({
|
|
785
|
-
...e,
|
|
786
|
-
keyframes: [...o].reverse(),
|
|
787
|
-
velocity: -a
|
|
788
|
-
})), c.calculatedDuration === null && (c.calculatedDuration = qt(c));
|
|
789
|
-
let { calculatedDuration: l } = c;
|
|
790
|
-
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
|
|
791
|
-
}
|
|
792
|
-
updateTime(e) {
|
|
793
|
-
let t = Math.round(e - this.startTime) * this.playbackSpeed;
|
|
794
|
-
this.holdTime === null ? this.currentTime = t : this.currentTime = this.holdTime;
|
|
795
|
-
}
|
|
796
|
-
tick(e, t = !1) {
|
|
797
|
-
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: s } = this;
|
|
798
|
-
if (this.startTime === null) return n.next(0);
|
|
799
|
-
let { delay: c = 0, keyframes: l, repeat: u, repeatType: d, repeatDelay: f, type: p, onUpdate: m, finalKeyframe: h } = this.options;
|
|
800
|
-
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
|
|
801
|
-
let g = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), _ = this.playbackSpeed >= 0 ? g < 0 : g > r;
|
|
802
|
-
this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
|
|
803
|
-
let v = this.currentTime, y = n;
|
|
804
|
-
if (u) {
|
|
805
|
-
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
|
|
806
|
-
!n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = w(0, 1, n) * o;
|
|
807
|
-
}
|
|
808
|
-
let b;
|
|
809
|
-
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
|
|
810
|
-
let { done: x } = b;
|
|
811
|
-
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
812
|
-
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
813
|
-
return S && p !== cn && (b.value = _n(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
|
|
814
|
-
}
|
|
815
|
-
then(e, t) {
|
|
816
|
-
return this.finished.then(e, t);
|
|
817
|
-
}
|
|
818
|
-
get duration() {
|
|
819
|
-
return /* @__PURE__ */ j(this.calculatedDuration);
|
|
820
|
-
}
|
|
821
|
-
get iterationDuration() {
|
|
822
|
-
let { delay: e = 0 } = this.options || {};
|
|
823
|
-
return this.duration + /* @__PURE__ */ j(e);
|
|
824
|
-
}
|
|
825
|
-
get time() {
|
|
826
|
-
return /* @__PURE__ */ j(this.currentTime);
|
|
827
|
-
}
|
|
828
|
-
set time(e) {
|
|
829
|
-
e = /* @__PURE__ */ A(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
|
|
830
|
-
}
|
|
831
|
-
getGeneratorVelocity() {
|
|
832
|
-
let e = this.currentTime;
|
|
833
|
-
if (e <= 0) return this.options.velocity || 0;
|
|
834
|
-
if (this.generator.velocity) return this.generator.velocity(e);
|
|
835
|
-
let t = this.generator.next(e).value;
|
|
836
|
-
return sn((e) => this.generator.next(e).value, e, t);
|
|
837
|
-
}
|
|
838
|
-
get speed() {
|
|
839
|
-
return this.playbackSpeed;
|
|
840
|
-
}
|
|
841
|
-
set speed(e) {
|
|
842
|
-
let t = this.playbackSpeed !== e;
|
|
843
|
-
t && this.driver && this.updateTime(I.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ j(this.currentTime));
|
|
844
|
-
}
|
|
845
|
-
play() {
|
|
846
|
-
if (this.isStopped) return;
|
|
847
|
-
let { driver: e = Wt, startTime: t } = this.options;
|
|
848
|
-
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
|
|
849
|
-
let n = this.driver.now();
|
|
850
|
-
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
851
|
-
}
|
|
852
|
-
pause() {
|
|
853
|
-
this.state = "paused", this.updateTime(I.now()), this.holdTime = this.currentTime;
|
|
854
|
-
}
|
|
855
|
-
complete() {
|
|
856
|
-
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
|
|
857
|
-
}
|
|
858
|
-
finish() {
|
|
859
|
-
this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
|
|
860
|
-
}
|
|
861
|
-
cancel() {
|
|
862
|
-
this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
|
|
863
|
-
}
|
|
864
|
-
teardown() {
|
|
865
|
-
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, Be.mainThread--;
|
|
866
|
-
}
|
|
867
|
-
stopDriver() {
|
|
868
|
-
this.driver &&= (this.driver.stop(), void 0);
|
|
869
|
-
}
|
|
870
|
-
sample(e) {
|
|
871
|
-
return this.startTime = 0, this.tick(e, !0);
|
|
872
|
-
}
|
|
873
|
-
attachTimeline(e) {
|
|
874
|
-
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
|
|
875
|
-
}
|
|
876
|
-
};
|
|
877
|
-
//#endregion
|
|
878
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
|
|
879
|
-
function Cn(e) {
|
|
880
|
-
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
|
|
881
|
-
}
|
|
882
|
-
//#endregion
|
|
883
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
|
|
884
|
-
var W = (e) => e * 180 / Math.PI, wn = (e) => En(W(Math.atan2(e[1], e[0]))), Tn = {
|
|
885
|
-
x: 4,
|
|
886
|
-
y: 5,
|
|
887
|
-
translateX: 4,
|
|
888
|
-
translateY: 5,
|
|
889
|
-
scaleX: 0,
|
|
890
|
-
scaleY: 3,
|
|
891
|
-
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
892
|
-
rotate: wn,
|
|
893
|
-
rotateZ: wn,
|
|
894
|
-
skewX: (e) => W(Math.atan(e[1])),
|
|
895
|
-
skewY: (e) => W(Math.atan(e[2])),
|
|
896
|
-
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
897
|
-
}, En = (e) => (e %= 360, e < 0 && (e += 360), e), Dn = wn, On = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), kn = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), An = {
|
|
898
|
-
x: 12,
|
|
899
|
-
y: 13,
|
|
900
|
-
z: 14,
|
|
901
|
-
translateX: 12,
|
|
902
|
-
translateY: 13,
|
|
903
|
-
translateZ: 14,
|
|
904
|
-
scaleX: On,
|
|
905
|
-
scaleY: kn,
|
|
906
|
-
scale: (e) => (On(e) + kn(e)) / 2,
|
|
907
|
-
rotateX: (e) => En(W(Math.atan2(e[6], e[5]))),
|
|
908
|
-
rotateY: (e) => En(W(Math.atan2(-e[2], e[0]))),
|
|
909
|
-
rotateZ: Dn,
|
|
910
|
-
rotate: Dn,
|
|
911
|
-
skewX: (e) => W(Math.atan(e[4])),
|
|
912
|
-
skewY: (e) => W(Math.atan(e[1])),
|
|
913
|
-
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
914
|
-
};
|
|
915
|
-
function jn(e) {
|
|
916
|
-
return +!!e.includes("scale");
|
|
917
|
-
}
|
|
918
|
-
function Mn(e, t) {
|
|
919
|
-
if (!e || e === "none") return jn(t);
|
|
920
|
-
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
|
|
921
|
-
if (n) r = An, i = n;
|
|
922
|
-
else {
|
|
923
|
-
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
924
|
-
r = Tn, i = t;
|
|
925
|
-
}
|
|
926
|
-
if (!i) return jn(t);
|
|
927
|
-
let a = r[t], o = i[1].split(",").map(Pn);
|
|
928
|
-
return typeof a == "function" ? a(o) : o[a];
|
|
929
|
-
}
|
|
930
|
-
var Nn = (e, t) => {
|
|
931
|
-
let { transform: n = "none" } = getComputedStyle(e);
|
|
932
|
-
return Mn(n, t);
|
|
933
|
-
};
|
|
934
|
-
function Pn(e) {
|
|
935
|
-
return parseFloat(e.trim());
|
|
936
|
-
}
|
|
937
|
-
//#endregion
|
|
938
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
|
|
939
|
-
var Fn = [
|
|
940
|
-
"transformPerspective",
|
|
941
|
-
"x",
|
|
942
|
-
"y",
|
|
943
|
-
"z",
|
|
944
|
-
"translateX",
|
|
945
|
-
"translateY",
|
|
946
|
-
"translateZ",
|
|
947
|
-
"scale",
|
|
948
|
-
"scaleX",
|
|
949
|
-
"scaleY",
|
|
950
|
-
"rotate",
|
|
951
|
-
"rotateX",
|
|
952
|
-
"rotateY",
|
|
953
|
-
"rotateZ",
|
|
954
|
-
"skew",
|
|
955
|
-
"skewX",
|
|
956
|
-
"skewY"
|
|
957
|
-
], In = new Set(Fn), Ln = (e) => e === qe || e === z, Rn = new Set([
|
|
958
|
-
"x",
|
|
959
|
-
"y",
|
|
960
|
-
"z"
|
|
961
|
-
]), zn = Fn.filter((e) => !Rn.has(e));
|
|
962
|
-
function Bn(e) {
|
|
963
|
-
let t = [];
|
|
964
|
-
return zn.forEach((n) => {
|
|
965
|
-
let r = e.getValue(n);
|
|
966
|
-
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
|
|
967
|
-
}), t;
|
|
968
|
-
}
|
|
969
|
-
var G = {
|
|
970
|
-
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {
|
|
971
|
-
let i = e.max - e.min;
|
|
972
|
-
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
|
|
973
|
-
},
|
|
974
|
-
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }) => {
|
|
975
|
-
let i = e.max - e.min;
|
|
976
|
-
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
|
|
977
|
-
},
|
|
978
|
-
top: (e, { top: t }) => parseFloat(t),
|
|
979
|
-
left: (e, { left: t }) => parseFloat(t),
|
|
980
|
-
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
981
|
-
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
982
|
-
x: (e, { transform: t }) => Mn(t, "x"),
|
|
983
|
-
y: (e, { transform: t }) => Mn(t, "y")
|
|
984
|
-
};
|
|
985
|
-
G.translateX = G.x, G.translateY = G.y;
|
|
986
|
-
//#endregion
|
|
987
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
|
|
988
|
-
var Vn = /* @__PURE__ */ new Set(), Hn = !1, Un = !1, Wn = !1;
|
|
989
|
-
function Gn() {
|
|
990
|
-
if (Un) {
|
|
991
|
-
let e = Array.from(Vn).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
|
|
992
|
-
t.forEach((e) => {
|
|
993
|
-
let t = Bn(e);
|
|
994
|
-
t.length && (n.set(e, t), e.render());
|
|
995
|
-
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
|
|
996
|
-
e.render();
|
|
997
|
-
let t = n.get(e);
|
|
998
|
-
t && t.forEach(([t, n]) => {
|
|
999
|
-
e.getValue(t)?.set(n);
|
|
1000
|
-
});
|
|
1001
|
-
}), e.forEach((e) => e.measureEndState()), e.forEach((e) => {
|
|
1002
|
-
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
Un = !1, Hn = !1, Vn.forEach((e) => e.complete(Wn)), Vn.clear();
|
|
1006
|
-
}
|
|
1007
|
-
function Kn() {
|
|
1008
|
-
Vn.forEach((e) => {
|
|
1009
|
-
e.readKeyframes(), e.needsMeasurement && (Un = !0);
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
function qn() {
|
|
1013
|
-
Wn = !0, Kn(), Gn(), Wn = !1;
|
|
1014
|
-
}
|
|
1015
|
-
var Jn = class {
|
|
1016
|
-
constructor(e, t, n, r, i, a = !1) {
|
|
1017
|
-
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
|
|
1018
|
-
}
|
|
1019
|
-
scheduleResolve() {
|
|
1020
|
-
this.state = "scheduled", this.isAsync ? (Vn.add(this), Hn || (Hn = !0, N.read(Kn), N.resolveKeyframes(Gn))) : (this.readKeyframes(), this.complete());
|
|
1021
|
-
}
|
|
1022
|
-
readKeyframes() {
|
|
1023
|
-
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
|
|
1024
|
-
if (e[0] === null) {
|
|
1025
|
-
let i = r?.get(), a = e[e.length - 1];
|
|
1026
|
-
if (i !== void 0) e[0] = i;
|
|
1027
|
-
else if (n && t) {
|
|
1028
|
-
let r = n.readValue(t, a);
|
|
1029
|
-
r != null && (e[0] = r);
|
|
1030
|
-
}
|
|
1031
|
-
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
|
|
1032
|
-
}
|
|
1033
|
-
Cn(e);
|
|
1034
|
-
}
|
|
1035
|
-
setFinalKeyframe() {}
|
|
1036
|
-
measureInitialState() {}
|
|
1037
|
-
renderEndStyles() {}
|
|
1038
|
-
measureEndState() {}
|
|
1039
|
-
complete(e = !1) {
|
|
1040
|
-
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), Vn.delete(this);
|
|
1041
|
-
}
|
|
1042
|
-
cancel() {
|
|
1043
|
-
this.state === "scheduled" && (Vn.delete(this), this.state = "pending");
|
|
1044
|
-
}
|
|
1045
|
-
resume() {
|
|
1046
|
-
this.state === "pending" && this.scheduleResolve();
|
|
1047
|
-
}
|
|
1048
|
-
}, Yn = (e) => e.startsWith("--");
|
|
1049
|
-
//#endregion
|
|
1050
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/style-set.mjs
|
|
1051
|
-
function Xn(e, t, n) {
|
|
1052
|
-
Yn(t) ? e.style.setProperty(t, n) : e.style[t] = n;
|
|
1053
|
-
}
|
|
1054
|
-
//#endregion
|
|
1055
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/flags.mjs
|
|
1056
|
-
var Zn = {};
|
|
1057
|
-
//#endregion
|
|
1058
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/memo.mjs
|
|
1059
|
-
function Qn(e, t) {
|
|
1060
|
-
let n = /* @__PURE__ */ re(e);
|
|
1061
|
-
return () => Zn[t] ?? n();
|
|
1062
|
-
}
|
|
1063
|
-
//#endregion
|
|
1064
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1065
|
-
var $n = /* @__PURE__ */ Qn(() => window.ScrollTimeline !== void 0, "scrollTimeline"), er = /* @__PURE__ */ Qn(() => {
|
|
1066
|
-
try {
|
|
1067
|
-
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1068
|
-
} catch {
|
|
1069
|
-
return !1;
|
|
1070
|
-
}
|
|
1071
|
-
return !0;
|
|
1072
|
-
}, "linearEasing"), tr = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, nr = {
|
|
1073
|
-
linear: "linear",
|
|
1074
|
-
ease: "ease",
|
|
1075
|
-
easeIn: "ease-in",
|
|
1076
|
-
easeOut: "ease-out",
|
|
1077
|
-
easeInOut: "ease-in-out",
|
|
1078
|
-
circIn: /* @__PURE__ */ tr([
|
|
1079
|
-
0,
|
|
1080
|
-
.65,
|
|
1081
|
-
.55,
|
|
1082
|
-
1
|
|
1083
|
-
]),
|
|
1084
|
-
circOut: /* @__PURE__ */ tr([
|
|
1085
|
-
.55,
|
|
1086
|
-
0,
|
|
1087
|
-
1,
|
|
1088
|
-
.45
|
|
1089
|
-
]),
|
|
1090
|
-
backIn: /* @__PURE__ */ tr([
|
|
1091
|
-
.31,
|
|
1092
|
-
.01,
|
|
1093
|
-
.66,
|
|
1094
|
-
-.59
|
|
1095
|
-
]),
|
|
1096
|
-
backOut: /* @__PURE__ */ tr([
|
|
1097
|
-
.33,
|
|
1098
|
-
1.53,
|
|
1099
|
-
.69,
|
|
1100
|
-
.99
|
|
1101
|
-
])
|
|
1102
|
-
};
|
|
1103
|
-
//#endregion
|
|
1104
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
|
|
1105
|
-
function rr(e, t) {
|
|
1106
|
-
if (e) return typeof e == "function" ? er() ? Gt(e, t) : "ease-out" : ke(e) ? tr(e) : Array.isArray(e) ? e.map((e) => rr(e, t) || nr.easeOut) : nr[e];
|
|
1107
|
-
}
|
|
1108
|
-
//#endregion
|
|
1109
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1110
|
-
function ir(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1111
|
-
let u = { [t]: n };
|
|
1112
|
-
c && (u.offset = c);
|
|
1113
|
-
let d = rr(s, i);
|
|
1114
|
-
Array.isArray(d) && (u.easing = d), M.value && Be.waapi++;
|
|
1115
|
-
let f = {
|
|
1116
|
-
delay: r,
|
|
1117
|
-
duration: i,
|
|
1118
|
-
easing: Array.isArray(d) ? "linear" : d,
|
|
1119
|
-
fill: "both",
|
|
1120
|
-
iterations: a + 1,
|
|
1121
|
-
direction: o === "reverse" ? "alternate" : "normal"
|
|
1122
|
-
};
|
|
1123
|
-
l && (f.pseudoElement = l);
|
|
1124
|
-
let p = e.animate(u, f);
|
|
1125
|
-
return M.value && p.finished.finally(() => {
|
|
1126
|
-
Be.waapi--;
|
|
1127
|
-
}), p;
|
|
1128
|
-
}
|
|
1129
|
-
//#endregion
|
|
1130
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
|
|
1131
|
-
function ar(e) {
|
|
1132
|
-
return typeof e == "function" && "applyToOptions" in e;
|
|
1133
|
-
}
|
|
1134
|
-
//#endregion
|
|
1135
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
|
|
1136
|
-
function or({ type: e, ...t }) {
|
|
1137
|
-
return ar(e) && er() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1138
|
-
}
|
|
1139
|
-
//#endregion
|
|
1140
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
|
|
1141
|
-
var sr = class extends bn {
|
|
1142
|
-
constructor(e) {
|
|
1143
|
-
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
|
|
1144
|
-
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
|
|
1145
|
-
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, D(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
|
|
1146
|
-
let c = or(e);
|
|
1147
|
-
this.animation = ir(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1148
|
-
if (this.finishedTime = this.time, !i) {
|
|
1149
|
-
let e = _n(r, this.options, o, this.speed);
|
|
1150
|
-
this.updateMotionValue && this.updateMotionValue(e), Xn(t, n, e), this.animation.cancel();
|
|
1151
|
-
}
|
|
1152
|
-
s?.(), this.notifyFinished();
|
|
1153
|
-
};
|
|
1154
|
-
}
|
|
1155
|
-
play() {
|
|
1156
|
-
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
|
|
1157
|
-
}
|
|
1158
|
-
pause() {
|
|
1159
|
-
this.animation.pause();
|
|
1160
|
-
}
|
|
1161
|
-
complete() {
|
|
1162
|
-
this.animation.finish?.();
|
|
1163
|
-
}
|
|
1164
|
-
cancel() {
|
|
1165
|
-
try {
|
|
1166
|
-
this.animation.cancel();
|
|
1167
|
-
} catch {}
|
|
1168
|
-
}
|
|
1169
|
-
stop() {
|
|
1170
|
-
if (this.isStopped) return;
|
|
1171
|
-
this.isStopped = !0;
|
|
1172
|
-
let { state: e } = this;
|
|
1173
|
-
e === "idle" || e === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
|
|
1174
|
-
}
|
|
1175
|
-
commitStyles() {
|
|
1176
|
-
let e = this.options?.element;
|
|
1177
|
-
!this.isPseudoElement && e?.isConnected && this.animation.commitStyles?.();
|
|
1178
|
-
}
|
|
1179
|
-
get duration() {
|
|
1180
|
-
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
1181
|
-
return /* @__PURE__ */ j(Number(e));
|
|
1182
|
-
}
|
|
1183
|
-
get iterationDuration() {
|
|
1184
|
-
let { delay: e = 0 } = this.options || {};
|
|
1185
|
-
return this.duration + /* @__PURE__ */ j(e);
|
|
1186
|
-
}
|
|
1187
|
-
get time() {
|
|
1188
|
-
return /* @__PURE__ */ j(Number(this.animation.currentTime) || 0);
|
|
1189
|
-
}
|
|
1190
|
-
set time(e) {
|
|
1191
|
-
let t = this.finishedTime !== null;
|
|
1192
|
-
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ A(e), t && this.animation.pause();
|
|
1193
|
-
}
|
|
1194
|
-
get speed() {
|
|
1195
|
-
return this.animation.playbackRate;
|
|
1196
|
-
}
|
|
1197
|
-
set speed(e) {
|
|
1198
|
-
e < 0 && (this.finishedTime = null), this.animation.playbackRate = e;
|
|
1199
|
-
}
|
|
1200
|
-
get state() {
|
|
1201
|
-
return this.finishedTime === null ? this.animation.playState : "finished";
|
|
1202
|
-
}
|
|
1203
|
-
get startTime() {
|
|
1204
|
-
return this.manualStartTime ?? Number(this.animation.startTime);
|
|
1205
|
-
}
|
|
1206
|
-
set startTime(e) {
|
|
1207
|
-
this.manualStartTime = this.animation.startTime = e;
|
|
1208
|
-
}
|
|
1209
|
-
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
|
|
1210
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && $n() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), k) : r(this);
|
|
1211
|
-
}
|
|
1212
|
-
}, cr = {
|
|
1213
|
-
anticipate: xe,
|
|
1214
|
-
backInOut: be,
|
|
1215
|
-
circInOut: we
|
|
1216
|
-
};
|
|
1217
|
-
function lr(e) {
|
|
1218
|
-
return e in cr;
|
|
1219
|
-
}
|
|
1220
|
-
function ur(e) {
|
|
1221
|
-
typeof e.ease == "string" && lr(e.ease) && (e.ease = cr[e.ease]);
|
|
1222
|
-
}
|
|
1223
|
-
//#endregion
|
|
1224
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
|
|
1225
|
-
var dr = 10, fr = class extends sr {
|
|
1226
|
-
constructor(e) {
|
|
1227
|
-
ur(e), yn(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
|
|
1228
|
-
}
|
|
1229
|
-
updateMotionValue(e) {
|
|
1230
|
-
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
|
|
1231
|
-
if (!t) return;
|
|
1232
|
-
if (e !== void 0) {
|
|
1233
|
-
t.set(e);
|
|
1234
|
-
return;
|
|
1235
|
-
}
|
|
1236
|
-
let o = new Sn({
|
|
1237
|
-
...a,
|
|
1238
|
-
autoplay: !1
|
|
1239
|
-
}), s = Math.max(dr, I.now() - this.startTime), c = w(0, dr, s - dr), l = o.sample(s).value, { name: u } = this.options;
|
|
1240
|
-
i && u && Xn(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
|
|
1241
|
-
}
|
|
1242
|
-
}, pr = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (V.test(e) || e === "0") && !e.startsWith("url("));
|
|
1243
|
-
//#endregion
|
|
1244
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
|
|
1245
|
-
function mr(e) {
|
|
1246
|
-
let t = e[0];
|
|
1247
|
-
if (e.length === 1) return !0;
|
|
1248
|
-
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
|
|
1249
|
-
}
|
|
1250
|
-
function hr(e, t, n, r) {
|
|
1251
|
-
let i = e[0];
|
|
1252
|
-
if (i === null) return !1;
|
|
1253
|
-
if (t === "display" || t === "visibility") return !0;
|
|
1254
|
-
let a = e[e.length - 1], o = pr(i, t), s = pr(a, t);
|
|
1255
|
-
return E(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : mr(e) || (n === "spring" || ar(n)) && r;
|
|
1256
|
-
}
|
|
1257
|
-
//#endregion
|
|
1258
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
|
|
1259
|
-
function gr(e) {
|
|
1260
|
-
e.duration = 0, e.type = "keyframes";
|
|
1261
|
-
}
|
|
1262
|
-
//#endregion
|
|
1263
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
|
|
1264
|
-
var _r = new Set([
|
|
1265
|
-
"opacity",
|
|
1266
|
-
"clipPath",
|
|
1267
|
-
"filter",
|
|
1268
|
-
"transform"
|
|
1269
|
-
]), vr = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
|
|
1270
|
-
function yr(e) {
|
|
1271
|
-
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && vr.test(e[t])) return !0;
|
|
1272
|
-
return !1;
|
|
1273
|
-
}
|
|
1274
|
-
//#endregion
|
|
1275
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
|
|
1276
|
-
var br = new Set([
|
|
1277
|
-
"color",
|
|
1278
|
-
"backgroundColor",
|
|
1279
|
-
"outlineColor",
|
|
1280
|
-
"fill",
|
|
1281
|
-
"stroke",
|
|
1282
|
-
"borderColor",
|
|
1283
|
-
"borderTopColor",
|
|
1284
|
-
"borderRightColor",
|
|
1285
|
-
"borderBottomColor",
|
|
1286
|
-
"borderLeftColor"
|
|
1287
|
-
]), xr = /* @__PURE__ */ re(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1288
|
-
function Sr(e) {
|
|
1289
|
-
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
|
|
1290
|
-
if (!(t?.owner?.current instanceof HTMLElement)) return !1;
|
|
1291
|
-
let { onUpdate: c, transformTemplate: l } = t.owner.getProps();
|
|
1292
|
-
return xr() && n && (_r.has(n) || br.has(n) && yr(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
|
|
1293
|
-
}
|
|
1294
|
-
//#endregion
|
|
1295
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
|
|
1296
|
-
var Cr = 40, wr = class extends bn {
|
|
1297
|
-
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
|
|
1298
|
-
super(), this.stop = () => {
|
|
1299
|
-
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
1300
|
-
}, this.createdAt = I.now();
|
|
1301
|
-
let d = {
|
|
1302
|
-
autoplay: e,
|
|
1303
|
-
delay: t,
|
|
1304
|
-
type: n,
|
|
1305
|
-
repeat: r,
|
|
1306
|
-
repeatDelay: i,
|
|
1307
|
-
repeatType: a,
|
|
1308
|
-
name: s,
|
|
1309
|
-
motionValue: c,
|
|
1310
|
-
element: l,
|
|
1311
|
-
...u
|
|
1312
|
-
}, f = l?.KeyframeResolver || Jn;
|
|
1313
|
-
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
|
|
1314
|
-
}
|
|
1315
|
-
onKeyframesResolved(e, t, n, r) {
|
|
1316
|
-
this.keyframeResolver = void 0;
|
|
1317
|
-
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
|
|
1318
|
-
this.resolvedAt = I.now();
|
|
1319
|
-
let u = !0;
|
|
1320
|
-
hr(e, i, a, o) || (u = !1, (O.instantAnimations || !s) && l?.(_n(e, n, t)), e[0] = e[e.length - 1], gr(n), n.repeat = 0);
|
|
1321
|
-
let d = {
|
|
1322
|
-
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Cr ? this.resolvedAt : this.createdAt : void 0,
|
|
1323
|
-
finalKeyframe: t,
|
|
1324
|
-
...n,
|
|
1325
|
-
keyframes: e
|
|
1326
|
-
}, f = u && !c && Sr(d), p = d.motionValue?.owner?.current, m;
|
|
1327
|
-
if (f) try {
|
|
1328
|
-
m = new fr({
|
|
1329
|
-
...d,
|
|
1330
|
-
element: p
|
|
1331
|
-
});
|
|
1332
|
-
} catch {
|
|
1333
|
-
m = new Sn(d);
|
|
1334
|
-
}
|
|
1335
|
-
else m = new Sn(d);
|
|
1336
|
-
m.finished.then(() => {
|
|
1337
|
-
this.notifyFinished();
|
|
1338
|
-
}).catch(k), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
|
|
1339
|
-
}
|
|
1340
|
-
get finished() {
|
|
1341
|
-
return this._animation ? this.animation.finished : this._finished;
|
|
1342
|
-
}
|
|
1343
|
-
then(e, t) {
|
|
1344
|
-
return this.finished.finally(e).then(() => {});
|
|
1345
|
-
}
|
|
1346
|
-
get animation() {
|
|
1347
|
-
return this._animation || (this.keyframeResolver?.resume(), qn()), this._animation;
|
|
1348
|
-
}
|
|
1349
|
-
get duration() {
|
|
1350
|
-
return this.animation.duration;
|
|
1351
|
-
}
|
|
1352
|
-
get iterationDuration() {
|
|
1353
|
-
return this.animation.iterationDuration;
|
|
1354
|
-
}
|
|
1355
|
-
get time() {
|
|
1356
|
-
return this.animation.time;
|
|
1357
|
-
}
|
|
1358
|
-
set time(e) {
|
|
1359
|
-
this.animation.time = e;
|
|
1360
|
-
}
|
|
1361
|
-
get speed() {
|
|
1362
|
-
return this.animation.speed;
|
|
1363
|
-
}
|
|
1364
|
-
get state() {
|
|
1365
|
-
return this.animation.state;
|
|
1366
|
-
}
|
|
1367
|
-
set speed(e) {
|
|
1368
|
-
this.animation.speed = e;
|
|
1369
|
-
}
|
|
1370
|
-
get startTime() {
|
|
1371
|
-
return this.animation.startTime;
|
|
1372
|
-
}
|
|
1373
|
-
attachTimeline(e) {
|
|
1374
|
-
return this._animation ? this.stopTimeline = this.animation.attachTimeline(e) : this.pendingTimeline = e, () => this.stop();
|
|
1375
|
-
}
|
|
1376
|
-
play() {
|
|
1377
|
-
this.animation.play();
|
|
1378
|
-
}
|
|
1379
|
-
pause() {
|
|
1380
|
-
this.animation.pause();
|
|
1381
|
-
}
|
|
1382
|
-
complete() {
|
|
1383
|
-
this.animation.complete();
|
|
1384
|
-
}
|
|
1385
|
-
cancel() {
|
|
1386
|
-
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
|
-
//#endregion
|
|
1390
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
|
|
1391
|
-
function Tr(e, t, n, r = 0, i = 1) {
|
|
1392
|
-
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
|
|
1393
|
-
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
|
|
1394
|
-
}
|
|
1395
|
-
//#endregion
|
|
1396
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs
|
|
1397
|
-
var Er = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
1398
|
-
function Dr(e) {
|
|
1399
|
-
let t = Er.exec(e);
|
|
1400
|
-
if (!t) return [,];
|
|
1401
|
-
let [, n, r, i] = t;
|
|
1402
|
-
return [`--${n ?? r}`, i];
|
|
1403
|
-
}
|
|
1404
|
-
var Or = 4;
|
|
1405
|
-
function kr(e, t, n = 1) {
|
|
1406
|
-
D(n <= Or, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1407
|
-
let [r, i] = Dr(e);
|
|
1408
|
-
if (!r) return;
|
|
1409
|
-
let a = window.getComputedStyle(t).getPropertyValue(r);
|
|
1410
|
-
if (a) {
|
|
1411
|
-
let e = a.trim();
|
|
1412
|
-
return ee(e) ? parseFloat(e) : e;
|
|
1413
|
-
}
|
|
1414
|
-
return We(i) ? kr(i, t, n + 1) : i;
|
|
1415
|
-
}
|
|
1416
|
-
//#endregion
|
|
1417
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
|
|
1418
|
-
var Ar = {
|
|
1419
|
-
type: "spring",
|
|
1420
|
-
stiffness: 500,
|
|
1421
|
-
damping: 25,
|
|
1422
|
-
restSpeed: 10
|
|
1423
|
-
}, jr = (e) => ({
|
|
1424
|
-
type: "spring",
|
|
1425
|
-
stiffness: 550,
|
|
1426
|
-
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
1427
|
-
restSpeed: 10
|
|
1428
|
-
}), Mr = {
|
|
1429
|
-
type: "keyframes",
|
|
1430
|
-
duration: .8
|
|
1431
|
-
}, Nr = {
|
|
1432
|
-
type: "keyframes",
|
|
1433
|
-
ease: [
|
|
1434
|
-
.25,
|
|
1435
|
-
.1,
|
|
1436
|
-
.35,
|
|
1437
|
-
1
|
|
1438
|
-
],
|
|
1439
|
-
duration: .3
|
|
1440
|
-
}, Pr = (e, { keyframes: t }) => t.length > 2 ? Mr : In.has(e) ? e.startsWith("scale") ? jr(t[1]) : Ar : Nr;
|
|
1441
|
-
//#endregion
|
|
1442
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
1443
|
-
function Fr(e, t) {
|
|
1444
|
-
if (e?.inherit && t) {
|
|
1445
|
-
let { inherit: n, ...r } = e;
|
|
1446
|
-
return {
|
|
1447
|
-
...t,
|
|
1448
|
-
...r
|
|
1449
|
-
};
|
|
1450
|
-
}
|
|
1451
|
-
return e;
|
|
1452
|
-
}
|
|
1453
|
-
//#endregion
|
|
1454
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
|
|
1455
|
-
function Ir(e, t) {
|
|
1456
|
-
let n = e?.[t] ?? e?.default ?? e;
|
|
1457
|
-
return n === e ? n : Fr(n, e);
|
|
1458
|
-
}
|
|
1459
|
-
//#endregion
|
|
1460
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs
|
|
1461
|
-
var Lr = new Set([
|
|
1462
|
-
"when",
|
|
1463
|
-
"delay",
|
|
1464
|
-
"delayChildren",
|
|
1465
|
-
"staggerChildren",
|
|
1466
|
-
"staggerDirection",
|
|
1467
|
-
"repeat",
|
|
1468
|
-
"repeatType",
|
|
1469
|
-
"repeatDelay",
|
|
1470
|
-
"from",
|
|
1471
|
-
"elapsed"
|
|
1472
|
-
]);
|
|
1473
|
-
function Rr(e) {
|
|
1474
|
-
for (let t in e) if (!Lr.has(t)) return !0;
|
|
1475
|
-
return !1;
|
|
1476
|
-
}
|
|
1477
|
-
//#endregion
|
|
1478
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
1479
|
-
var zr = (e, t, n, r = {}, i, a) => (o) => {
|
|
1480
|
-
let s = Ir(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
|
|
1481
|
-
l -= /* @__PURE__ */ A(c);
|
|
1482
|
-
let u = {
|
|
1483
|
-
keyframes: Array.isArray(n) ? n : [null, n],
|
|
1484
|
-
ease: "easeOut",
|
|
1485
|
-
velocity: t.getVelocity(),
|
|
1486
|
-
...s,
|
|
1487
|
-
delay: -l,
|
|
1488
|
-
onUpdate: (e) => {
|
|
1489
|
-
t.set(e), s.onUpdate && s.onUpdate(e);
|
|
1490
|
-
},
|
|
1491
|
-
onComplete: () => {
|
|
1492
|
-
o(), s.onComplete && s.onComplete();
|
|
1493
|
-
},
|
|
1494
|
-
name: e,
|
|
1495
|
-
motionValue: t,
|
|
1496
|
-
element: a ? void 0 : i
|
|
1497
|
-
};
|
|
1498
|
-
Rr(s) || Object.assign(u, Pr(e, u)), u.duration &&= /* @__PURE__ */ A(u.duration), u.repeatDelay &&= /* @__PURE__ */ A(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
1499
|
-
let d = !1;
|
|
1500
|
-
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (gr(u), u.delay === 0 && (d = !0)), (O.instantAnimations || O.skipAnimations || i?.shouldSkipAnimations) && (d = !0, gr(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
|
|
1501
|
-
let e = _n(u.keyframes, s);
|
|
1502
|
-
if (e !== void 0) {
|
|
1503
|
-
N.update(() => {
|
|
1504
|
-
u.onUpdate(e), u.onComplete();
|
|
1505
|
-
});
|
|
1506
|
-
return;
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
return s.isSync ? new Sn(u) : new wr(u);
|
|
1510
|
-
};
|
|
1511
|
-
//#endregion
|
|
1512
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
|
|
1513
|
-
function Br(e) {
|
|
1514
|
-
let t = [{}, {}];
|
|
1515
|
-
return e?.values.forEach((e, n) => {
|
|
1516
|
-
t[0][n] = e.get(), t[1][n] = e.getVelocity();
|
|
1517
|
-
}), t;
|
|
1518
|
-
}
|
|
1519
|
-
function Vr(e, t, n, r) {
|
|
1520
|
-
if (typeof t == "function") {
|
|
1521
|
-
let [i, a] = Br(r);
|
|
1522
|
-
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1523
|
-
}
|
|
1524
|
-
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
|
|
1525
|
-
let [i, a] = Br(r);
|
|
1526
|
-
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1527
|
-
}
|
|
1528
|
-
return t;
|
|
1529
|
-
}
|
|
1530
|
-
//#endregion
|
|
1531
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
|
|
1532
|
-
function Hr(e, t, n) {
|
|
1533
|
-
let r = e.getProps();
|
|
1534
|
-
return Vr(r, t, n === void 0 ? r.custom : n, e);
|
|
1535
|
-
}
|
|
1536
|
-
//#endregion
|
|
1537
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
|
|
1538
|
-
var Ur = new Set([
|
|
1539
|
-
"width",
|
|
1540
|
-
"height",
|
|
1541
|
-
"top",
|
|
1542
|
-
"left",
|
|
1543
|
-
"right",
|
|
1544
|
-
"bottom",
|
|
1545
|
-
...Fn
|
|
1546
|
-
]), Wr = 30, Gr = (e) => !isNaN(parseFloat(e)), Kr = { current: void 0 }, qr = class {
|
|
1547
|
-
constructor(e, t = {}) {
|
|
1548
|
-
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
|
|
1549
|
-
let t = I.now();
|
|
1550
|
-
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
|
|
1551
|
-
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
|
|
1552
|
-
}
|
|
1553
|
-
setCurrent(e) {
|
|
1554
|
-
this.current = e, this.updatedAt = I.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Gr(this.current));
|
|
1555
|
-
}
|
|
1556
|
-
setPrevFrameValue(e = this.current) {
|
|
1557
|
-
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
1558
|
-
}
|
|
1559
|
-
onChange(e) {
|
|
1560
|
-
return process.env.NODE_ENV !== "production" && ue(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
|
|
1561
|
-
}
|
|
1562
|
-
on(e, t) {
|
|
1563
|
-
this.events[e] || (this.events[e] = new se());
|
|
1564
|
-
let n = this.events[e].add(t);
|
|
1565
|
-
return e === "change" ? () => {
|
|
1566
|
-
n(), N.read(() => {
|
|
1567
|
-
this.events.change.getSize() || this.stop();
|
|
1568
|
-
});
|
|
1569
|
-
} : n;
|
|
1570
|
-
}
|
|
1571
|
-
clearListeners() {
|
|
1572
|
-
for (let e in this.events) this.events[e].clear();
|
|
1573
|
-
}
|
|
1574
|
-
attach(e, t) {
|
|
1575
|
-
this.passiveEffect = e, this.stopPassiveEffect = t;
|
|
1576
|
-
}
|
|
1577
|
-
set(e) {
|
|
1578
|
-
this.passiveEffect ? this.passiveEffect(e, this.updateAndNotify) : this.updateAndNotify(e);
|
|
1579
|
-
}
|
|
1580
|
-
setWithVelocity(e, t, n) {
|
|
1581
|
-
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
|
|
1582
|
-
}
|
|
1583
|
-
jump(e, t = !0) {
|
|
1584
|
-
this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, t && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1585
|
-
}
|
|
1586
|
-
dirty() {
|
|
1587
|
-
this.events.change?.notify(this.current);
|
|
1588
|
-
}
|
|
1589
|
-
addDependent(e) {
|
|
1590
|
-
this.dependents ||= /* @__PURE__ */ new Set(), this.dependents.add(e);
|
|
1591
|
-
}
|
|
1592
|
-
removeDependent(e) {
|
|
1593
|
-
this.dependents && this.dependents.delete(e);
|
|
1594
|
-
}
|
|
1595
|
-
get() {
|
|
1596
|
-
return Kr.current && Kr.current.push(this), this.current;
|
|
1597
|
-
}
|
|
1598
|
-
getPrevious() {
|
|
1599
|
-
return this.prev;
|
|
1600
|
-
}
|
|
1601
|
-
getVelocity() {
|
|
1602
|
-
let e = I.now();
|
|
1603
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Wr) return 0;
|
|
1604
|
-
let t = Math.min(this.updatedAt - this.prevUpdatedAt, Wr);
|
|
1605
|
-
return ce(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
|
|
1606
|
-
}
|
|
1607
|
-
start(e) {
|
|
1608
|
-
return this.stop(), new Promise((t) => {
|
|
1609
|
-
this.hasAnimated = !0, this.animation = e(t), this.events.animationStart && this.events.animationStart.notify();
|
|
1610
|
-
}).then(() => {
|
|
1611
|
-
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
1612
|
-
});
|
|
1613
|
-
}
|
|
1614
|
-
stop() {
|
|
1615
|
-
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
1616
|
-
}
|
|
1617
|
-
isAnimating() {
|
|
1618
|
-
return !!this.animation;
|
|
1619
|
-
}
|
|
1620
|
-
clearAnimation() {
|
|
1621
|
-
delete this.animation;
|
|
1622
|
-
}
|
|
1623
|
-
destroy() {
|
|
1624
|
-
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1625
|
-
}
|
|
1626
|
-
};
|
|
1627
|
-
function Jr(e, t) {
|
|
1628
|
-
return new qr(e, t);
|
|
1629
|
-
}
|
|
1630
|
-
//#endregion
|
|
1631
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs
|
|
1632
|
-
var Yr = (e) => Array.isArray(e);
|
|
1633
|
-
//#endregion
|
|
1634
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/setters.mjs
|
|
1635
|
-
function Xr(e, t, n) {
|
|
1636
|
-
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Jr(n));
|
|
1637
|
-
}
|
|
1638
|
-
function Zr(e) {
|
|
1639
|
-
return Yr(e) ? e[e.length - 1] || 0 : e;
|
|
1640
|
-
}
|
|
1641
|
-
function Qr(e, t) {
|
|
1642
|
-
let { transitionEnd: n = {}, transition: r = {}, ...i } = Hr(e, t) || {};
|
|
1643
|
-
i = {
|
|
1644
|
-
...i,
|
|
1645
|
-
...n
|
|
1646
|
-
};
|
|
1647
|
-
for (let t in i) Xr(e, t, Zr(i[t]));
|
|
1648
|
-
}
|
|
1649
|
-
//#endregion
|
|
1650
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
|
|
1651
|
-
var K = (e) => !!(e && e.getVelocity);
|
|
1652
|
-
//#endregion
|
|
1653
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/is.mjs
|
|
1654
|
-
function $r(e) {
|
|
1655
|
-
return !!(K(e) && e.add);
|
|
1656
|
-
}
|
|
1657
|
-
//#endregion
|
|
1658
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
|
|
1659
|
-
function ei(e, t) {
|
|
1660
|
-
let n = e.getValue("willChange");
|
|
1661
|
-
if ($r(n)) return n.add(t);
|
|
1662
|
-
if (!n && O.WillChange) {
|
|
1663
|
-
let n = new O.WillChange("auto");
|
|
1664
|
-
e.addValue("willChange", n), n.add(t);
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
//#endregion
|
|
1668
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
|
|
1669
|
-
function ti(e) {
|
|
1670
|
-
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1671
|
-
}
|
|
1672
|
-
var ni = "data-" + ti("framerAppearId");
|
|
1673
|
-
//#endregion
|
|
1674
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
|
|
1675
|
-
function ri(e) {
|
|
1676
|
-
return e.props[ni];
|
|
1677
|
-
}
|
|
1678
|
-
//#endregion
|
|
1679
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
|
|
1680
|
-
function ii({ protectedKeys: e, needsAnimating: t }, n) {
|
|
1681
|
-
let r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
1682
|
-
return t[n] = !1, r;
|
|
1683
|
-
}
|
|
1684
|
-
function ai(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
1685
|
-
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
|
|
1686
|
-
a = a ? Fr(a, c) : c;
|
|
1687
|
-
let l = a?.reduceMotion;
|
|
1688
|
-
r && (a = r);
|
|
1689
|
-
let u = [], d = i && e.animationState && e.animationState.getState()[i];
|
|
1690
|
-
for (let t in s) {
|
|
1691
|
-
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
|
|
1692
|
-
if (i === void 0 || d && ii(d, t)) continue;
|
|
1693
|
-
let o = {
|
|
1694
|
-
delay: n,
|
|
1695
|
-
...Ir(a || {}, t)
|
|
1696
|
-
}, c = r.get();
|
|
1697
|
-
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
|
|
1698
|
-
N.update(() => r.set(i));
|
|
1699
|
-
continue;
|
|
1700
|
-
}
|
|
1701
|
-
let f = !1;
|
|
1702
|
-
if (window.MotionHandoffAnimation) {
|
|
1703
|
-
let n = ri(e);
|
|
1704
|
-
if (n) {
|
|
1705
|
-
let e = window.MotionHandoffAnimation(n, t, N);
|
|
1706
|
-
e !== null && (o.startTime = e, f = !0);
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1709
|
-
ei(e, t);
|
|
1710
|
-
let p = l ?? e.shouldReduceMotion;
|
|
1711
|
-
r.start(zr(t, r, i, p && Ur.has(t) ? { type: !1 } : o, e, f));
|
|
1712
|
-
let m = r.animation;
|
|
1713
|
-
m && u.push(m);
|
|
1714
|
-
}
|
|
1715
|
-
if (o) {
|
|
1716
|
-
let t = () => N.update(() => {
|
|
1717
|
-
o && Qr(e, o);
|
|
1718
|
-
});
|
|
1719
|
-
u.length ? Promise.all(u).then(t) : t();
|
|
1720
|
-
}
|
|
1721
|
-
return u;
|
|
1722
|
-
}
|
|
1723
|
-
//#endregion
|
|
1724
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
|
|
1725
|
-
function oi(e, t, n = {}) {
|
|
1726
|
-
let r = Hr(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
|
|
1727
|
-
n.transitionOverride && (i = n.transitionOverride);
|
|
1728
|
-
let a = r ? () => Promise.all(ai(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
|
|
1729
|
-
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
|
|
1730
|
-
return si(e, t, r, a, o, s, n);
|
|
1731
|
-
} : () => Promise.resolve(), { when: s } = i;
|
|
1732
|
-
if (s) {
|
|
1733
|
-
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
|
|
1734
|
-
return e().then(() => t());
|
|
1735
|
-
} else return Promise.all([a(), o(n.delay)]);
|
|
1736
|
-
}
|
|
1737
|
-
function si(e, t, n = 0, r = 0, i = 0, a = 1, o) {
|
|
1738
|
-
let s = [];
|
|
1739
|
-
for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(oi(c, t, {
|
|
1740
|
-
...o,
|
|
1741
|
-
delay: n + (typeof r == "function" ? 0 : r) + Tr(e.variantChildren, c, r, i, a)
|
|
1742
|
-
}).then(() => c.notify("AnimationComplete", t)));
|
|
1743
|
-
return Promise.all(s);
|
|
1744
|
-
}
|
|
1745
|
-
//#endregion
|
|
1746
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
|
|
1747
|
-
function ci(e, t, n = {}) {
|
|
1748
|
-
e.notify("AnimationStart", t);
|
|
1749
|
-
let r;
|
|
1750
|
-
if (Array.isArray(t)) {
|
|
1751
|
-
let i = t.map((t) => oi(e, t, n));
|
|
1752
|
-
r = Promise.all(i);
|
|
1753
|
-
} else if (typeof t == "string") r = oi(e, t, n);
|
|
1754
|
-
else {
|
|
1755
|
-
let i = typeof t == "function" ? Hr(e, t, n.custom) : t;
|
|
1756
|
-
r = Promise.all(ai(e, i, n));
|
|
1757
|
-
}
|
|
1758
|
-
return r.then(() => {
|
|
1759
|
-
e.notify("AnimationComplete", t);
|
|
1760
|
-
});
|
|
1761
|
-
}
|
|
1762
|
-
//#endregion
|
|
1763
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/auto.mjs
|
|
1764
|
-
var li = {
|
|
1765
|
-
test: (e) => e === "auto",
|
|
1766
|
-
parse: (e) => e
|
|
1767
|
-
}, ui = (e) => (t) => t.test(e), di = [
|
|
1768
|
-
qe,
|
|
1769
|
-
z,
|
|
1770
|
-
R,
|
|
1771
|
-
L,
|
|
1772
|
-
lt,
|
|
1773
|
-
ct,
|
|
1774
|
-
li
|
|
1775
|
-
], fi = (e) => di.find(ui(e));
|
|
1776
|
-
//#endregion
|
|
1777
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
|
|
1778
|
-
function pi(e) {
|
|
1779
|
-
return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" || ne(e);
|
|
1780
|
-
}
|
|
1781
|
-
//#endregion
|
|
1782
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
|
|
1783
|
-
var mi = new Set([
|
|
1784
|
-
"brightness",
|
|
1785
|
-
"contrast",
|
|
1786
|
-
"saturate",
|
|
1787
|
-
"opacity"
|
|
1788
|
-
]);
|
|
1789
|
-
function hi(e) {
|
|
1790
|
-
let [t, n] = e.slice(0, -1).split("(");
|
|
1791
|
-
if (t === "drop-shadow") return e;
|
|
1792
|
-
let [r] = n.match(Ze) || [];
|
|
1793
|
-
if (!r) return e;
|
|
1794
|
-
let i = n.replace(r, ""), a = +!!mi.has(t);
|
|
1795
|
-
return r !== n && (a *= 100), t + "(" + a + i + ")";
|
|
1796
|
-
}
|
|
1797
|
-
var gi = /\b([a-z-]*)\(.*?\)/gu, _i = {
|
|
1798
|
-
...V,
|
|
1799
|
-
getAnimatableNone: (e) => {
|
|
1800
|
-
let t = e.match(gi);
|
|
1801
|
-
return t ? t.map(hi).join(" ") : e;
|
|
1802
|
-
}
|
|
1803
|
-
}, vi = {
|
|
1804
|
-
...V,
|
|
1805
|
-
getAnimatableNone: (e) => {
|
|
1806
|
-
let t = V.parse(e);
|
|
1807
|
-
return V.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
|
|
1808
|
-
...e,
|
|
1809
|
-
alpha: 1
|
|
1810
|
-
} : e));
|
|
1811
|
-
}
|
|
1812
|
-
}, yi = {
|
|
1813
|
-
...qe,
|
|
1814
|
-
transform: Math.round
|
|
1815
|
-
}, bi = {
|
|
1816
|
-
borderWidth: z,
|
|
1817
|
-
borderTopWidth: z,
|
|
1818
|
-
borderRightWidth: z,
|
|
1819
|
-
borderBottomWidth: z,
|
|
1820
|
-
borderLeftWidth: z,
|
|
1821
|
-
borderRadius: z,
|
|
1822
|
-
borderTopLeftRadius: z,
|
|
1823
|
-
borderTopRightRadius: z,
|
|
1824
|
-
borderBottomRightRadius: z,
|
|
1825
|
-
borderBottomLeftRadius: z,
|
|
1826
|
-
width: z,
|
|
1827
|
-
maxWidth: z,
|
|
1828
|
-
height: z,
|
|
1829
|
-
maxHeight: z,
|
|
1830
|
-
top: z,
|
|
1831
|
-
right: z,
|
|
1832
|
-
bottom: z,
|
|
1833
|
-
left: z,
|
|
1834
|
-
inset: z,
|
|
1835
|
-
insetBlock: z,
|
|
1836
|
-
insetBlockStart: z,
|
|
1837
|
-
insetBlockEnd: z,
|
|
1838
|
-
insetInline: z,
|
|
1839
|
-
insetInlineStart: z,
|
|
1840
|
-
insetInlineEnd: z,
|
|
1841
|
-
padding: z,
|
|
1842
|
-
paddingTop: z,
|
|
1843
|
-
paddingRight: z,
|
|
1844
|
-
paddingBottom: z,
|
|
1845
|
-
paddingLeft: z,
|
|
1846
|
-
paddingBlock: z,
|
|
1847
|
-
paddingBlockStart: z,
|
|
1848
|
-
paddingBlockEnd: z,
|
|
1849
|
-
paddingInline: z,
|
|
1850
|
-
paddingInlineStart: z,
|
|
1851
|
-
paddingInlineEnd: z,
|
|
1852
|
-
margin: z,
|
|
1853
|
-
marginTop: z,
|
|
1854
|
-
marginRight: z,
|
|
1855
|
-
marginBottom: z,
|
|
1856
|
-
marginLeft: z,
|
|
1857
|
-
marginBlock: z,
|
|
1858
|
-
marginBlockStart: z,
|
|
1859
|
-
marginBlockEnd: z,
|
|
1860
|
-
marginInline: z,
|
|
1861
|
-
marginInlineStart: z,
|
|
1862
|
-
marginInlineEnd: z,
|
|
1863
|
-
fontSize: z,
|
|
1864
|
-
backgroundPositionX: z,
|
|
1865
|
-
backgroundPositionY: z,
|
|
1866
|
-
rotate: L,
|
|
1867
|
-
rotateX: L,
|
|
1868
|
-
rotateY: L,
|
|
1869
|
-
rotateZ: L,
|
|
1870
|
-
scale: Ye,
|
|
1871
|
-
scaleX: Ye,
|
|
1872
|
-
scaleY: Ye,
|
|
1873
|
-
scaleZ: Ye,
|
|
1874
|
-
skew: L,
|
|
1875
|
-
skewX: L,
|
|
1876
|
-
skewY: L,
|
|
1877
|
-
distance: z,
|
|
1878
|
-
translateX: z,
|
|
1879
|
-
translateY: z,
|
|
1880
|
-
translateZ: z,
|
|
1881
|
-
x: z,
|
|
1882
|
-
y: z,
|
|
1883
|
-
z,
|
|
1884
|
-
perspective: z,
|
|
1885
|
-
transformPerspective: z,
|
|
1886
|
-
opacity: Je,
|
|
1887
|
-
originX: ut,
|
|
1888
|
-
originY: ut,
|
|
1889
|
-
originZ: z,
|
|
1890
|
-
zIndex: yi,
|
|
1891
|
-
fillOpacity: Je,
|
|
1892
|
-
strokeOpacity: Je,
|
|
1893
|
-
numOctaves: yi
|
|
1894
|
-
}, xi = {
|
|
1895
|
-
...bi,
|
|
1896
|
-
color: B,
|
|
1897
|
-
backgroundColor: B,
|
|
1898
|
-
outlineColor: B,
|
|
1899
|
-
fill: B,
|
|
1900
|
-
stroke: B,
|
|
1901
|
-
borderColor: B,
|
|
1902
|
-
borderTopColor: B,
|
|
1903
|
-
borderRightColor: B,
|
|
1904
|
-
borderBottomColor: B,
|
|
1905
|
-
borderLeftColor: B,
|
|
1906
|
-
filter: _i,
|
|
1907
|
-
WebkitFilter: _i,
|
|
1908
|
-
mask: vi,
|
|
1909
|
-
WebkitMask: vi
|
|
1910
|
-
}, Si = (e) => xi[e], Ci = /* @__PURE__ */ new Set([_i, vi]);
|
|
1911
|
-
function wi(e, t) {
|
|
1912
|
-
let n = Si(e);
|
|
1913
|
-
return Ci.has(n) || (n = V), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
1914
|
-
}
|
|
1915
|
-
//#endregion
|
|
1916
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
|
|
1917
|
-
var Ti = new Set([
|
|
1918
|
-
"auto",
|
|
1919
|
-
"none",
|
|
1920
|
-
"0"
|
|
1921
|
-
]);
|
|
1922
|
-
function Ei(e, t, n) {
|
|
1923
|
-
let r = 0, i;
|
|
1924
|
-
for (; r < e.length && !i;) {
|
|
1925
|
-
let t = e[r];
|
|
1926
|
-
typeof t == "string" && !Ti.has(t) && bt(t).values.length && (i = e[r]), r++;
|
|
1927
|
-
}
|
|
1928
|
-
if (i && n) for (let r of t) e[r] = wi(n, i);
|
|
1929
|
-
}
|
|
1930
|
-
//#endregion
|
|
1931
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
|
|
1932
|
-
var Di = class extends Jn {
|
|
1933
|
-
constructor(e, t, n, r, i) {
|
|
1934
|
-
super(e, t, n, r, i, !0);
|
|
1935
|
-
}
|
|
1936
|
-
readKeyframes() {
|
|
1937
|
-
let { unresolvedKeyframes: e, element: t, name: n } = this;
|
|
1938
|
-
if (!t || !t.current) return;
|
|
1939
|
-
super.readKeyframes();
|
|
1940
|
-
for (let n = 0; n < e.length; n++) {
|
|
1941
|
-
let r = e[n];
|
|
1942
|
-
if (typeof r == "string" && (r = r.trim(), We(r))) {
|
|
1943
|
-
let i = kr(r, t.current);
|
|
1944
|
-
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
|
|
1945
|
-
}
|
|
1946
|
-
}
|
|
1947
|
-
if (this.resolveNoneKeyframes(), !Ur.has(n) || e.length !== 2) return;
|
|
1948
|
-
let [r, i] = e, a = fi(r), o = fi(i);
|
|
1949
|
-
if (Ke(r) !== Ke(i) && G[n]) {
|
|
1950
|
-
this.needsMeasurement = !0;
|
|
1951
|
-
return;
|
|
1952
|
-
}
|
|
1953
|
-
if (a !== o) if (Ln(a) && Ln(o)) for (let t = 0; t < e.length; t++) {
|
|
1954
|
-
let n = e[t];
|
|
1955
|
-
typeof n == "string" && (e[t] = parseFloat(n));
|
|
1956
|
-
}
|
|
1957
|
-
else G[n] && (this.needsMeasurement = !0);
|
|
1958
|
-
}
|
|
1959
|
-
resolveNoneKeyframes() {
|
|
1960
|
-
let { unresolvedKeyframes: e, name: t } = this, n = [];
|
|
1961
|
-
for (let t = 0; t < e.length; t++) (e[t] === null || pi(e[t])) && n.push(t);
|
|
1962
|
-
n.length && Ei(e, n, t);
|
|
1963
|
-
}
|
|
1964
|
-
measureInitialState() {
|
|
1965
|
-
let { element: e, unresolvedKeyframes: t, name: n } = this;
|
|
1966
|
-
if (!e || !e.current) return;
|
|
1967
|
-
n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = G[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
|
|
1968
|
-
let r = t[t.length - 1];
|
|
1969
|
-
r !== void 0 && e.getValue(n, r).jump(r, !1);
|
|
1970
|
-
}
|
|
1971
|
-
measureEndState() {
|
|
1972
|
-
let { element: e, name: t, unresolvedKeyframes: n } = this;
|
|
1973
|
-
if (!e || !e.current) return;
|
|
1974
|
-
let r = e.getValue(t);
|
|
1975
|
-
r && r.jump(this.measuredOrigin, !1);
|
|
1976
|
-
let i = n.length - 1, a = n[i];
|
|
1977
|
-
n[i] = G[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
|
|
1978
|
-
e.getValue(t).set(n);
|
|
1979
|
-
}), this.resolveNoneKeyframes();
|
|
1980
|
-
}
|
|
1981
|
-
};
|
|
1982
|
-
//#endregion
|
|
1983
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
|
|
1984
|
-
function Oi(e, t, n) {
|
|
1985
|
-
if (e == null) return [];
|
|
1986
|
-
if (e instanceof EventTarget) return [e];
|
|
1987
|
-
if (typeof e == "string") {
|
|
1988
|
-
let r = document;
|
|
1989
|
-
t && (r = t.current);
|
|
1990
|
-
let i = n?.[e] ?? r.querySelectorAll(e);
|
|
1991
|
-
return i ? Array.from(i) : [];
|
|
1992
|
-
}
|
|
1993
|
-
return Array.from(e).filter((e) => e != null);
|
|
1994
|
-
}
|
|
1995
|
-
//#endregion
|
|
1996
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
|
|
1997
|
-
var ki = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
|
|
1998
|
-
//#endregion
|
|
1999
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs
|
|
2000
|
-
function Ai(e) {
|
|
2001
|
-
return te(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
|
|
2002
|
-
}
|
|
2003
|
-
//#endregion
|
|
2004
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/microtask.mjs
|
|
2005
|
-
var { schedule: ji, cancel: Mi } = /* @__PURE__ */ Ie(queueMicrotask, !1), q = {
|
|
2006
|
-
x: !1,
|
|
2007
|
-
y: !1
|
|
2008
|
-
};
|
|
2009
|
-
function Ni() {
|
|
2010
|
-
return q.x || q.y;
|
|
2011
|
-
}
|
|
2012
|
-
//#endregion
|
|
2013
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
|
|
2014
|
-
function Pi(e) {
|
|
2015
|
-
return e === "x" || e === "y" ? q[e] ? null : (q[e] = !0, () => {
|
|
2016
|
-
q[e] = !1;
|
|
2017
|
-
}) : q.x || q.y ? null : (q.x = q.y = !0, () => {
|
|
2018
|
-
q.x = q.y = !1;
|
|
2019
|
-
});
|
|
2020
|
-
}
|
|
2021
|
-
//#endregion
|
|
2022
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
|
|
2023
|
-
function Fi(e, t) {
|
|
2024
|
-
let n = Oi(e), r = new AbortController();
|
|
2025
|
-
return [
|
|
2026
|
-
n,
|
|
2027
|
-
{
|
|
2028
|
-
passive: !0,
|
|
2029
|
-
...t,
|
|
2030
|
-
signal: r.signal
|
|
2031
|
-
},
|
|
2032
|
-
() => r.abort()
|
|
2033
|
-
];
|
|
2034
|
-
}
|
|
2035
|
-
//#endregion
|
|
2036
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/hover.mjs
|
|
2037
|
-
function Ii(e) {
|
|
2038
|
-
return !(e.pointerType === "touch" || Ni());
|
|
2039
|
-
}
|
|
2040
|
-
function Li(e, t, n = {}) {
|
|
2041
|
-
let [r, i, a] = Fi(e, n);
|
|
2042
|
-
return r.forEach((e) => {
|
|
2043
|
-
let n = !1, r = !1, a, o = () => {
|
|
2044
|
-
e.removeEventListener("pointerleave", u);
|
|
2045
|
-
}, s = (e) => {
|
|
2046
|
-
a &&= (a(e), void 0), o();
|
|
2047
|
-
}, c = (e) => {
|
|
2048
|
-
n = !1, window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", c), r && (r = !1, s(e));
|
|
2049
|
-
}, l = () => {
|
|
2050
|
-
n = !0, window.addEventListener("pointerup", c, i), window.addEventListener("pointercancel", c, i);
|
|
2051
|
-
}, u = (e) => {
|
|
2052
|
-
if (e.pointerType !== "touch") {
|
|
2053
|
-
if (n) {
|
|
2054
|
-
r = !0;
|
|
2055
|
-
return;
|
|
2056
|
-
}
|
|
2057
|
-
s(e);
|
|
2058
|
-
}
|
|
2059
|
-
};
|
|
2060
|
-
e.addEventListener("pointerenter", (n) => {
|
|
2061
|
-
if (!Ii(n)) return;
|
|
2062
|
-
r = !1;
|
|
2063
|
-
let o = t(e, n);
|
|
2064
|
-
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
|
|
2065
|
-
}, i), e.addEventListener("pointerdown", l, i);
|
|
2066
|
-
}), a;
|
|
2067
|
-
}
|
|
2068
|
-
//#endregion
|
|
2069
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
|
|
2070
|
-
var Ri = (e, t) => t ? e === t ? !0 : Ri(e, t.parentElement) : !1, zi = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Bi = new Set([
|
|
2071
|
-
"BUTTON",
|
|
2072
|
-
"INPUT",
|
|
2073
|
-
"SELECT",
|
|
2074
|
-
"TEXTAREA",
|
|
2075
|
-
"A"
|
|
2076
|
-
]);
|
|
2077
|
-
function Vi(e) {
|
|
2078
|
-
return Bi.has(e.tagName) || e.isContentEditable === !0;
|
|
2079
|
-
}
|
|
2080
|
-
var Hi = new Set([
|
|
2081
|
-
"INPUT",
|
|
2082
|
-
"SELECT",
|
|
2083
|
-
"TEXTAREA"
|
|
2084
|
-
]);
|
|
2085
|
-
function Ui(e) {
|
|
2086
|
-
return Hi.has(e.tagName) || e.isContentEditable === !0;
|
|
2087
|
-
}
|
|
2088
|
-
//#endregion
|
|
2089
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
|
|
2090
|
-
var Wi = /* @__PURE__ */ new WeakSet();
|
|
2091
|
-
//#endregion
|
|
2092
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
|
|
2093
|
-
function Gi(e) {
|
|
2094
|
-
return (t) => {
|
|
2095
|
-
t.key === "Enter" && e(t);
|
|
2096
|
-
};
|
|
2097
|
-
}
|
|
2098
|
-
function Ki(e, t) {
|
|
2099
|
-
e.dispatchEvent(new PointerEvent("pointer" + t, {
|
|
2100
|
-
isPrimary: !0,
|
|
2101
|
-
bubbles: !0
|
|
2102
|
-
}));
|
|
2103
|
-
}
|
|
2104
|
-
var qi = (e, t) => {
|
|
2105
|
-
let n = e.currentTarget;
|
|
2106
|
-
if (!n) return;
|
|
2107
|
-
let r = Gi(() => {
|
|
2108
|
-
if (Wi.has(n)) return;
|
|
2109
|
-
Ki(n, "down");
|
|
2110
|
-
let e = Gi(() => {
|
|
2111
|
-
Ki(n, "up");
|
|
2112
|
-
});
|
|
2113
|
-
n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Ki(n, "cancel"), t);
|
|
2114
|
-
});
|
|
2115
|
-
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
|
|
2116
|
-
};
|
|
2117
|
-
//#endregion
|
|
2118
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/gestures/press/index.mjs
|
|
2119
|
-
function Ji(e) {
|
|
2120
|
-
return zi(e) && !Ni();
|
|
2121
|
-
}
|
|
2122
|
-
var Yi = /* @__PURE__ */ new WeakSet();
|
|
2123
|
-
function Xi(e, t, n = {}) {
|
|
2124
|
-
let [r, i, a] = Fi(e, n), o = (e) => {
|
|
2125
|
-
let r = e.currentTarget;
|
|
2126
|
-
if (!Ji(e) || Yi.has(e)) return;
|
|
2127
|
-
Wi.add(r), n.stopPropagation && Yi.add(e);
|
|
2128
|
-
let a = t(r, e), o = (e, t) => {
|
|
2129
|
-
window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), Wi.has(r) && Wi.delete(r), Ji(e) && typeof a == "function" && a(e, { success: t });
|
|
2130
|
-
}, s = (e) => {
|
|
2131
|
-
o(e, r === window || r === document || n.useGlobalTarget || Ri(r, e.target));
|
|
2132
|
-
}, c = (e) => {
|
|
2133
|
-
o(e, !1);
|
|
2134
|
-
};
|
|
2135
|
-
window.addEventListener("pointerup", s, i), window.addEventListener("pointercancel", c, i);
|
|
2136
|
-
};
|
|
2137
|
-
return r.forEach((e) => {
|
|
2138
|
-
(n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Ai(e) && (e.addEventListener("focus", (e) => qi(e, i)), !Vi(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
|
|
2139
|
-
}), a;
|
|
2140
|
-
}
|
|
2141
|
-
//#endregion
|
|
2142
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
2143
|
-
function Zi(e) {
|
|
2144
|
-
return te(e) && "ownerSVGElement" in e;
|
|
2145
|
-
}
|
|
2146
|
-
//#endregion
|
|
2147
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-element.mjs
|
|
2148
|
-
var Qi = /* @__PURE__ */ new WeakMap(), $i, ea = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Zi(r) && "getBBox" in r ? r.getBBox()[t] : r[n], ta = /* @__PURE__ */ ea("inline", "width", "offsetWidth"), na = /* @__PURE__ */ ea("block", "height", "offsetHeight");
|
|
2149
|
-
function ra({ target: e, borderBoxSize: t }) {
|
|
2150
|
-
Qi.get(e)?.forEach((n) => {
|
|
2151
|
-
n(e, {
|
|
2152
|
-
get width() {
|
|
2153
|
-
return ta(e, t);
|
|
2154
|
-
},
|
|
2155
|
-
get height() {
|
|
2156
|
-
return na(e, t);
|
|
2157
|
-
}
|
|
2158
|
-
});
|
|
2159
|
-
});
|
|
2160
|
-
}
|
|
2161
|
-
function ia(e) {
|
|
2162
|
-
e.forEach(ra);
|
|
2163
|
-
}
|
|
2164
|
-
function aa() {
|
|
2165
|
-
typeof ResizeObserver > "u" || ($i = new ResizeObserver(ia));
|
|
2166
|
-
}
|
|
2167
|
-
function oa(e, t) {
|
|
2168
|
-
$i || aa();
|
|
2169
|
-
let n = Oi(e);
|
|
2170
|
-
return n.forEach((e) => {
|
|
2171
|
-
let n = Qi.get(e);
|
|
2172
|
-
n || (n = /* @__PURE__ */ new Set(), Qi.set(e, n)), n.add(t), $i?.observe(e);
|
|
2173
|
-
}), () => {
|
|
2174
|
-
n.forEach((e) => {
|
|
2175
|
-
let n = Qi.get(e);
|
|
2176
|
-
n?.delete(t), n?.size || $i?.unobserve(e);
|
|
2177
|
-
});
|
|
2178
|
-
};
|
|
2179
|
-
}
|
|
2180
|
-
//#endregion
|
|
2181
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/handle-window.mjs
|
|
2182
|
-
var sa = /* @__PURE__ */ new Set(), ca;
|
|
2183
|
-
function la() {
|
|
2184
|
-
ca = () => {
|
|
2185
|
-
let e = {
|
|
2186
|
-
get width() {
|
|
2187
|
-
return window.innerWidth;
|
|
2188
|
-
},
|
|
2189
|
-
get height() {
|
|
2190
|
-
return window.innerHeight;
|
|
2191
|
-
}
|
|
2192
|
-
};
|
|
2193
|
-
sa.forEach((t) => t(e));
|
|
2194
|
-
}, window.addEventListener("resize", ca);
|
|
2195
|
-
}
|
|
2196
|
-
function ua(e) {
|
|
2197
|
-
return sa.add(e), ca || la(), () => {
|
|
2198
|
-
sa.delete(e), !sa.size && typeof ca == "function" && (window.removeEventListener("resize", ca), ca = void 0);
|
|
2199
|
-
};
|
|
2200
|
-
}
|
|
2201
|
-
//#endregion
|
|
2202
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/resize/index.mjs
|
|
2203
|
-
function da(e, t) {
|
|
2204
|
-
return typeof e == "function" ? ua(e) : oa(e, t);
|
|
2205
|
-
}
|
|
2206
|
-
//#endregion
|
|
2207
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
|
|
2208
|
-
function fa(e) {
|
|
2209
|
-
return Zi(e) && e.tagName === "svg";
|
|
2210
|
-
}
|
|
2211
|
-
//#endregion
|
|
2212
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/types/utils/find.mjs
|
|
2213
|
-
var pa = [
|
|
2214
|
-
...di,
|
|
2215
|
-
B,
|
|
2216
|
-
V
|
|
2217
|
-
], ma = (e) => pa.find(ui(e)), ha = () => ({
|
|
2218
|
-
translate: 0,
|
|
2219
|
-
scale: 1,
|
|
2220
|
-
origin: 0,
|
|
2221
|
-
originPoint: 0
|
|
2222
|
-
}), ga = () => ({
|
|
2223
|
-
x: ha(),
|
|
2224
|
-
y: ha()
|
|
2225
|
-
}), _a = () => ({
|
|
2226
|
-
min: 0,
|
|
2227
|
-
max: 0
|
|
2228
|
-
}), J = () => ({
|
|
2229
|
-
x: _a(),
|
|
2230
|
-
y: _a()
|
|
2231
|
-
}), va = /* @__PURE__ */ new WeakMap();
|
|
2232
|
-
//#endregion
|
|
2233
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
|
|
2234
|
-
function ya(e) {
|
|
2235
|
-
return typeof e == "object" && !!e && typeof e.start == "function";
|
|
2236
|
-
}
|
|
2237
|
-
//#endregion
|
|
2238
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
|
|
2239
|
-
function ba(e) {
|
|
2240
|
-
return typeof e == "string" || Array.isArray(e);
|
|
2241
|
-
}
|
|
2242
|
-
//#endregion
|
|
2243
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
|
|
2244
|
-
var xa = [
|
|
2245
|
-
"animate",
|
|
2246
|
-
"whileInView",
|
|
2247
|
-
"whileFocus",
|
|
2248
|
-
"whileHover",
|
|
2249
|
-
"whileTap",
|
|
2250
|
-
"whileDrag",
|
|
2251
|
-
"exit"
|
|
2252
|
-
], Sa = ["initial", ...xa];
|
|
2253
|
-
//#endregion
|
|
2254
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
|
|
2255
|
-
function Ca(e) {
|
|
2256
|
-
return ya(e.animate) || Sa.some((t) => ba(e[t]));
|
|
2257
|
-
}
|
|
2258
|
-
function wa(e) {
|
|
2259
|
-
return !!(Ca(e) || e.variants);
|
|
2260
|
-
}
|
|
2261
|
-
//#endregion
|
|
2262
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
|
|
2263
|
-
function Ta(e, t, n) {
|
|
2264
|
-
for (let r in t) {
|
|
2265
|
-
let i = t[r], a = n[r];
|
|
2266
|
-
if (K(i)) e.addValue(r, i);
|
|
2267
|
-
else if (K(a)) e.addValue(r, Jr(i, { owner: e }));
|
|
2268
|
-
else if (a !== i) if (e.hasValue(r)) {
|
|
2269
|
-
let t = e.getValue(r);
|
|
2270
|
-
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
|
|
2271
|
-
} else {
|
|
2272
|
-
let t = e.getStaticValue(r);
|
|
2273
|
-
e.addValue(r, Jr(t === void 0 ? i : t, { owner: e }));
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
for (let r in n) t[r] === void 0 && e.removeValue(r);
|
|
2277
|
-
return t;
|
|
2278
|
-
}
|
|
2279
|
-
//#endregion
|
|
2280
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
|
|
2281
|
-
var Ea = { current: null }, Da = { current: !1 }, Oa = typeof window < "u";
|
|
2282
|
-
function ka() {
|
|
2283
|
-
if (Da.current = !0, Oa) if (window.matchMedia) {
|
|
2284
|
-
let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Ea.current = e.matches;
|
|
2285
|
-
e.addEventListener("change", t), t();
|
|
2286
|
-
} else Ea.current = !1;
|
|
2287
|
-
}
|
|
2288
|
-
//#endregion
|
|
2289
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/VisualElement.mjs
|
|
2290
|
-
var Aa = [
|
|
2291
|
-
"AnimationStart",
|
|
2292
|
-
"AnimationComplete",
|
|
2293
|
-
"Update",
|
|
2294
|
-
"BeforeLayoutMeasure",
|
|
2295
|
-
"LayoutMeasure",
|
|
2296
|
-
"LayoutAnimationStart",
|
|
2297
|
-
"LayoutAnimationComplete"
|
|
2298
|
-
], ja = {};
|
|
2299
|
-
function Ma(e) {
|
|
2300
|
-
ja = e;
|
|
2301
|
-
}
|
|
2302
|
-
function Na() {
|
|
2303
|
-
return ja;
|
|
2304
|
-
}
|
|
2305
|
-
var Pa = class {
|
|
2306
|
-
scrapeMotionValuesFromProps(e, t, n) {
|
|
2307
|
-
return {};
|
|
2308
|
-
}
|
|
2309
|
-
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
|
|
2310
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Jn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2311
|
-
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2312
|
-
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2313
|
-
let e = I.now();
|
|
2314
|
-
this.renderScheduledAt < e && (this.renderScheduledAt = e, N.render(this.render, !1, !0));
|
|
2315
|
-
};
|
|
2316
|
-
let { latestValues: c, renderState: l } = o;
|
|
2317
|
-
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = Ca(t), this.isVariantNode = wa(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2318
|
-
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
|
|
2319
|
-
for (let e in d) {
|
|
2320
|
-
let t = d[e];
|
|
2321
|
-
c[e] !== void 0 && K(t) && t.set(c[e]);
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
mount(e) {
|
|
2325
|
-
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
|
|
2326
|
-
this.current = e, va.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Da.current || ka(), this.shouldReduceMotion = Ea.current), process.env.NODE_ENV !== "production" && ue(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
|
|
2327
|
-
}
|
|
2328
|
-
unmount() {
|
|
2329
|
-
this.projection && this.projection.unmount(), P(this.notifyUpdate), P(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
2330
|
-
for (let e in this.events) this.events[e].clear();
|
|
2331
|
-
for (let e in this.features) {
|
|
2332
|
-
let t = this.features[e];
|
|
2333
|
-
t && (t.unmount(), t.isMounted = !1);
|
|
2334
|
-
}
|
|
2335
|
-
this.current = null;
|
|
2336
|
-
}
|
|
2337
|
-
addChild(e) {
|
|
2338
|
-
this.children.add(e), this.enteringChildren ??= /* @__PURE__ */ new Set(), this.enteringChildren.add(e);
|
|
2339
|
-
}
|
|
2340
|
-
removeChild(e) {
|
|
2341
|
-
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
|
|
2342
|
-
}
|
|
2343
|
-
bindToMotionValue(e, t) {
|
|
2344
|
-
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && _r.has(e) && this.current instanceof HTMLElement) {
|
|
2345
|
-
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new sr({
|
|
2346
|
-
element: this.current,
|
|
2347
|
-
name: e,
|
|
2348
|
-
keyframes: r,
|
|
2349
|
-
times: i,
|
|
2350
|
-
ease: a,
|
|
2351
|
-
duration: /* @__PURE__ */ A(o)
|
|
2352
|
-
}), c = n(s);
|
|
2353
|
-
this.valueSubscriptions.set(e, () => {
|
|
2354
|
-
c(), s.cancel();
|
|
2355
|
-
});
|
|
2356
|
-
return;
|
|
2357
|
-
}
|
|
2358
|
-
let n = In.has(e);
|
|
2359
|
-
n && this.onBindTransform && this.onBindTransform();
|
|
2360
|
-
let r = t.on("change", (t) => {
|
|
2361
|
-
this.latestValues[e] = t, this.props.onUpdate && N.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
2362
|
-
}), i;
|
|
2363
|
-
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
|
|
2364
|
-
r(), i && i(), t.owner && t.stop();
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
sortNodePosition(e) {
|
|
2368
|
-
return !this.current || !this.sortInstanceNodePosition || this.type !== e.type ? 0 : this.sortInstanceNodePosition(this.current, e.current);
|
|
2369
|
-
}
|
|
2370
|
-
updateFeatures() {
|
|
2371
|
-
let e = "animation";
|
|
2372
|
-
for (e in ja) {
|
|
2373
|
-
let t = ja[e];
|
|
2374
|
-
if (!t) continue;
|
|
2375
|
-
let { isEnabled: n, Feature: r } = t;
|
|
2376
|
-
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
|
|
2377
|
-
let t = this.features[e];
|
|
2378
|
-
t.isMounted ? t.update() : (t.mount(), t.isMounted = !0);
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
triggerBuild() {
|
|
2383
|
-
this.build(this.renderState, this.latestValues, this.props);
|
|
2384
|
-
}
|
|
2385
|
-
measureViewportBox() {
|
|
2386
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : J();
|
|
2387
|
-
}
|
|
2388
|
-
getStaticValue(e) {
|
|
2389
|
-
return this.latestValues[e];
|
|
2390
|
-
}
|
|
2391
|
-
setStaticValue(e, t) {
|
|
2392
|
-
this.latestValues[e] = t;
|
|
2393
|
-
}
|
|
2394
|
-
update(e, t) {
|
|
2395
|
-
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
|
|
2396
|
-
for (let t = 0; t < Aa.length; t++) {
|
|
2397
|
-
let n = Aa[t];
|
|
2398
|
-
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
|
|
2399
|
-
let r = e["on" + n];
|
|
2400
|
-
r && (this.propEventSubscriptions[n] = this.on(n, r));
|
|
2401
|
-
}
|
|
2402
|
-
this.prevMotionValues = Ta(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
2403
|
-
}
|
|
2404
|
-
getProps() {
|
|
2405
|
-
return this.props;
|
|
2406
|
-
}
|
|
2407
|
-
getVariant(e) {
|
|
2408
|
-
return this.props.variants ? this.props.variants[e] : void 0;
|
|
2409
|
-
}
|
|
2410
|
-
getDefaultTransition() {
|
|
2411
|
-
return this.props.transition;
|
|
2412
|
-
}
|
|
2413
|
-
getTransformPagePoint() {
|
|
2414
|
-
return this.props.transformPagePoint;
|
|
2415
|
-
}
|
|
2416
|
-
getClosestVariantNode() {
|
|
2417
|
-
return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
|
|
2418
|
-
}
|
|
2419
|
-
addVariantChild(e) {
|
|
2420
|
-
let t = this.getClosestVariantNode();
|
|
2421
|
-
if (t) return t.variantChildren && t.variantChildren.add(e), () => t.variantChildren.delete(e);
|
|
2422
|
-
}
|
|
2423
|
-
addValue(e, t) {
|
|
2424
|
-
let n = this.values.get(e);
|
|
2425
|
-
t !== n && (n && this.removeValue(e), this.bindToMotionValue(e, t), this.values.set(e, t), this.latestValues[e] = t.get());
|
|
2426
|
-
}
|
|
2427
|
-
removeValue(e) {
|
|
2428
|
-
this.values.delete(e);
|
|
2429
|
-
let t = this.valueSubscriptions.get(e);
|
|
2430
|
-
t && (t(), this.valueSubscriptions.delete(e)), delete this.latestValues[e], this.removeValueFromRenderState(e, this.renderState);
|
|
2431
|
-
}
|
|
2432
|
-
hasValue(e) {
|
|
2433
|
-
return this.values.has(e);
|
|
2434
|
-
}
|
|
2435
|
-
getValue(e, t) {
|
|
2436
|
-
if (this.props.values && this.props.values[e]) return this.props.values[e];
|
|
2437
|
-
let n = this.values.get(e);
|
|
2438
|
-
return n === void 0 && t !== void 0 && (n = Jr(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
|
|
2439
|
-
}
|
|
2440
|
-
readValue(e, t) {
|
|
2441
|
-
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2442
|
-
return n != null && (typeof n == "string" && (ee(n) || ne(n)) ? n = parseFloat(n) : !ma(n) && V.test(t) && (n = wi(e, t)), this.setBaseTarget(e, K(n) ? n.get() : n)), K(n) ? n.get() : n;
|
|
2443
|
-
}
|
|
2444
|
-
setBaseTarget(e, t) {
|
|
2445
|
-
this.baseTarget[e] = t;
|
|
2446
|
-
}
|
|
2447
|
-
getBaseTarget(e) {
|
|
2448
|
-
let { initial: t } = this.props, n;
|
|
2449
|
-
if (typeof t == "string" || typeof t == "object") {
|
|
2450
|
-
let r = Vr(this.props, t, this.presenceContext?.custom);
|
|
2451
|
-
r && (n = r[e]);
|
|
2452
|
-
}
|
|
2453
|
-
if (t && n !== void 0) return n;
|
|
2454
|
-
let r = this.getBaseTargetFromProps(this.props, e);
|
|
2455
|
-
return r !== void 0 && !K(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
|
|
2456
|
-
}
|
|
2457
|
-
on(e, t) {
|
|
2458
|
-
return this.events[e] || (this.events[e] = new se()), this.events[e].add(t);
|
|
2459
|
-
}
|
|
2460
|
-
notify(e, ...t) {
|
|
2461
|
-
this.events[e] && this.events[e].notify(...t);
|
|
2462
|
-
}
|
|
2463
|
-
scheduleRenderMicrotask() {
|
|
2464
|
-
ji.render(this.render);
|
|
2465
|
-
}
|
|
2466
|
-
}, Fa = class extends Pa {
|
|
2467
|
-
constructor() {
|
|
2468
|
-
super(...arguments), this.KeyframeResolver = Di;
|
|
2469
|
-
}
|
|
2470
|
-
sortInstanceNodePosition(e, t) {
|
|
2471
|
-
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
|
|
2472
|
-
}
|
|
2473
|
-
getBaseTargetFromProps(e, t) {
|
|
2474
|
-
let n = e.style;
|
|
2475
|
-
return n ? n[t] : void 0;
|
|
2476
|
-
}
|
|
2477
|
-
removeValueFromRenderState(e, { vars: t, style: n }) {
|
|
2478
|
-
delete t[e], delete n[e];
|
|
2479
|
-
}
|
|
2480
|
-
handleChildMotionValue() {
|
|
2481
|
-
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
2482
|
-
let { children: e } = this.props;
|
|
2483
|
-
K(e) && (this.childSubscription = e.on("change", (e) => {
|
|
2484
|
-
this.current && (this.current.textContent = `${e}`);
|
|
2485
|
-
}));
|
|
2486
|
-
}
|
|
2487
|
-
}, Y = class {
|
|
2488
|
-
constructor(e) {
|
|
2489
|
-
this.isMounted = !1, this.node = e;
|
|
2490
|
-
}
|
|
2491
|
-
update() {}
|
|
2492
|
-
};
|
|
2493
|
-
//#endregion
|
|
2494
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
|
|
2495
|
-
function Ia({ top: e, left: t, right: n, bottom: r }) {
|
|
2496
|
-
return {
|
|
2497
|
-
x: {
|
|
2498
|
-
min: t,
|
|
2499
|
-
max: n
|
|
2500
|
-
},
|
|
2501
|
-
y: {
|
|
2502
|
-
min: e,
|
|
2503
|
-
max: r
|
|
2504
|
-
}
|
|
2505
|
-
};
|
|
2506
|
-
}
|
|
2507
|
-
function La({ x: e, y: t }) {
|
|
2508
|
-
return {
|
|
2509
|
-
top: t.min,
|
|
2510
|
-
right: e.max,
|
|
2511
|
-
bottom: t.max,
|
|
2512
|
-
left: e.min
|
|
2513
|
-
};
|
|
2514
|
-
}
|
|
2515
|
-
function Ra(e, t) {
|
|
2516
|
-
if (!t) return e;
|
|
2517
|
-
let n = t({
|
|
2518
|
-
x: e.left,
|
|
2519
|
-
y: e.top
|
|
2520
|
-
}), r = t({
|
|
2521
|
-
x: e.right,
|
|
2522
|
-
y: e.bottom
|
|
2523
|
-
});
|
|
2524
|
-
return {
|
|
2525
|
-
top: n.y,
|
|
2526
|
-
left: n.x,
|
|
2527
|
-
bottom: r.y,
|
|
2528
|
-
right: r.x
|
|
2529
|
-
};
|
|
2530
|
-
}
|
|
2531
|
-
//#endregion
|
|
2532
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
|
|
2533
|
-
function za(e) {
|
|
2534
|
-
return e === void 0 || e === 1;
|
|
2535
|
-
}
|
|
2536
|
-
function Ba({ scale: e, scaleX: t, scaleY: n }) {
|
|
2537
|
-
return !za(e) || !za(t) || !za(n);
|
|
2538
|
-
}
|
|
2539
|
-
function Va(e) {
|
|
2540
|
-
return Ba(e) || Ha(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
|
|
2541
|
-
}
|
|
2542
|
-
function Ha(e) {
|
|
2543
|
-
return Ua(e.x) || Ua(e.y);
|
|
2544
|
-
}
|
|
2545
|
-
function Ua(e) {
|
|
2546
|
-
return e && e !== "0%";
|
|
2547
|
-
}
|
|
2548
|
-
//#endregion
|
|
2549
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
|
|
2550
|
-
function Wa(e, t, n) {
|
|
2551
|
-
return n + t * (e - n);
|
|
2552
|
-
}
|
|
2553
|
-
function Ga(e, t, n, r, i) {
|
|
2554
|
-
return i !== void 0 && (e = Wa(e, i, r)), Wa(e, n, r) + t;
|
|
2555
|
-
}
|
|
2556
|
-
function Ka(e, t = 0, n = 1, r, i) {
|
|
2557
|
-
e.min = Ga(e.min, t, n, r, i), e.max = Ga(e.max, t, n, r, i);
|
|
2558
|
-
}
|
|
2559
|
-
function qa(e, { x: t, y: n }) {
|
|
2560
|
-
Ka(e.x, t.translate, t.scale, t.originPoint), Ka(e.y, n.translate, n.scale, n.originPoint);
|
|
2561
|
-
}
|
|
2562
|
-
var Ja = .999999999999, Ya = 1.0000000000001;
|
|
2563
|
-
function Xa(e, t, n, r = !1) {
|
|
2564
|
-
let i = n.length;
|
|
2565
|
-
if (!i) return;
|
|
2566
|
-
t.x = t.y = 1;
|
|
2567
|
-
let a, o;
|
|
2568
|
-
for (let s = 0; s < i; s++) {
|
|
2569
|
-
a = n[s], o = a.projectionDelta;
|
|
2570
|
-
let { visualElement: i } = a.options;
|
|
2571
|
-
i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (X(e.x, -a.scroll.offset.x), X(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, qa(e, o)), r && Va(a.latestValues) && $a(e, a.latestValues, a.layout?.layoutBox));
|
|
2572
|
-
}
|
|
2573
|
-
t.x < Ya && t.x > Ja && (t.x = 1), t.y < Ya && t.y > Ja && (t.y = 1);
|
|
2574
|
-
}
|
|
2575
|
-
function X(e, t) {
|
|
2576
|
-
e.min += t, e.max += t;
|
|
2577
|
-
}
|
|
2578
|
-
function Za(e, t, n, r, i = .5) {
|
|
2579
|
-
Ka(e, t, n, H(e.min, e.max, i), r);
|
|
2580
|
-
}
|
|
2581
|
-
function Qa(e, t) {
|
|
2582
|
-
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
|
|
2583
|
-
}
|
|
2584
|
-
function $a(e, t, n) {
|
|
2585
|
-
let r = n ?? e;
|
|
2586
|
-
Za(e.x, Qa(t.x, r.x), t.scaleX, t.scale, t.originX), Za(e.y, Qa(t.y, r.y), t.scaleY, t.scale, t.originY);
|
|
2587
|
-
}
|
|
2588
|
-
//#endregion
|
|
2589
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/measure.mjs
|
|
2590
|
-
function eo(e, t) {
|
|
2591
|
-
return Ia(Ra(e.getBoundingClientRect(), t));
|
|
2592
|
-
}
|
|
2593
|
-
function to(e, t, n) {
|
|
2594
|
-
let r = eo(e, n), { scroll: i } = t;
|
|
2595
|
-
return i && (X(r.x, i.offset.x), X(r.y, i.offset.y)), r;
|
|
2596
|
-
}
|
|
2597
|
-
//#endregion
|
|
2598
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
|
|
2599
|
-
var no = {
|
|
2600
|
-
x: "translateX",
|
|
2601
|
-
y: "translateY",
|
|
2602
|
-
z: "translateZ",
|
|
2603
|
-
transformPerspective: "perspective"
|
|
2604
|
-
}, ro = Fn.length;
|
|
2605
|
-
function io(e, t, n) {
|
|
2606
|
-
let r = "", i = !0;
|
|
2607
|
-
for (let a = 0; a < ro; a++) {
|
|
2608
|
-
let o = Fn[a], s = e[o];
|
|
2609
|
-
if (s === void 0) continue;
|
|
2610
|
-
let c = !0;
|
|
2611
|
-
if (typeof s == "number") c = s === +!!o.startsWith("scale");
|
|
2612
|
-
else {
|
|
2613
|
-
let e = parseFloat(s);
|
|
2614
|
-
c = o.startsWith("scale") ? e === 1 : e === 0;
|
|
2615
|
-
}
|
|
2616
|
-
if (!c || n) {
|
|
2617
|
-
let e = ki(s, bi[o]);
|
|
2618
|
-
if (!c) {
|
|
2619
|
-
i = !1;
|
|
2620
|
-
let t = no[o] || o;
|
|
2621
|
-
r += `${t}(${e}) `;
|
|
2622
|
-
}
|
|
2623
|
-
n && (t[o] = e);
|
|
2624
|
-
}
|
|
2625
|
-
}
|
|
2626
|
-
return r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
|
|
2627
|
-
}
|
|
2628
|
-
//#endregion
|
|
2629
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
|
|
2630
|
-
function ao(e, t, n) {
|
|
2631
|
-
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
|
|
2632
|
-
for (let e in t) {
|
|
2633
|
-
let n = t[e];
|
|
2634
|
-
if (In.has(e)) {
|
|
2635
|
-
o = !0;
|
|
2636
|
-
continue;
|
|
2637
|
-
} else if (He(e)) {
|
|
2638
|
-
i[e] = n;
|
|
2639
|
-
continue;
|
|
2640
|
-
} else {
|
|
2641
|
-
let t = ki(n, bi[e]);
|
|
2642
|
-
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2645
|
-
if (t.transform || (o || n ? r.transform = io(t, e.transform, n) : r.transform &&= "none"), s) {
|
|
2646
|
-
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
|
|
2647
|
-
r.transformOrigin = `${e} ${t} ${n}`;
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
//#endregion
|
|
2651
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/render.mjs
|
|
2652
|
-
function oo(e, { style: t, vars: n }, r, i) {
|
|
2653
|
-
let a = e.style, o;
|
|
2654
|
-
for (o in t) a[o] = t[o];
|
|
2655
|
-
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
|
|
2656
|
-
}
|
|
2657
|
-
//#endregion
|
|
2658
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
|
|
2659
|
-
function so(e, t) {
|
|
2660
|
-
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
2661
|
-
}
|
|
2662
|
-
var co = { correct: (e, t) => {
|
|
2663
|
-
if (!t.target) return e;
|
|
2664
|
-
if (typeof e == "string") if (z.test(e)) e = parseFloat(e);
|
|
2665
|
-
else return e;
|
|
2666
|
-
return `${so(e, t.target.x)}% ${so(e, t.target.y)}%`;
|
|
2667
|
-
} }, lo = { correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
2668
|
-
let r = e, i = V.parse(e);
|
|
2669
|
-
if (i.length > 5) return r;
|
|
2670
|
-
let a = V.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
|
|
2671
|
-
i[0 + o] /= s, i[1 + o] /= c;
|
|
2672
|
-
let l = H(s, c, .5);
|
|
2673
|
-
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
|
|
2674
|
-
} }, uo = {
|
|
2675
|
-
borderRadius: {
|
|
2676
|
-
...co,
|
|
2677
|
-
applyTo: [
|
|
2678
|
-
"borderTopLeftRadius",
|
|
2679
|
-
"borderTopRightRadius",
|
|
2680
|
-
"borderBottomLeftRadius",
|
|
2681
|
-
"borderBottomRightRadius"
|
|
2682
|
-
]
|
|
2683
|
-
},
|
|
2684
|
-
borderTopLeftRadius: co,
|
|
2685
|
-
borderTopRightRadius: co,
|
|
2686
|
-
borderBottomLeftRadius: co,
|
|
2687
|
-
borderBottomRightRadius: co,
|
|
2688
|
-
boxShadow: lo
|
|
2689
|
-
};
|
|
2690
|
-
//#endregion
|
|
2691
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
|
|
2692
|
-
function fo(e, { layout: t, layoutId: n }) {
|
|
2693
|
-
return In.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!uo[e] || e === "opacity");
|
|
2694
|
-
}
|
|
2695
|
-
//#endregion
|
|
2696
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
2697
|
-
function po(e, t, n) {
|
|
2698
|
-
let r = e.style, i = t?.style, a = {};
|
|
2699
|
-
if (!r) return a;
|
|
2700
|
-
for (let t in r) (K(r[t]) || i && K(i[t]) || fo(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
|
|
2701
|
-
return a;
|
|
2702
|
-
}
|
|
2703
|
-
//#endregion
|
|
2704
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
|
|
2705
|
-
function mo(e) {
|
|
2706
|
-
return window.getComputedStyle(e);
|
|
2707
|
-
}
|
|
2708
|
-
var ho = class extends Fa {
|
|
2709
|
-
constructor() {
|
|
2710
|
-
super(...arguments), this.type = "html", this.renderInstance = oo;
|
|
2711
|
-
}
|
|
2712
|
-
readValueFromInstance(e, t) {
|
|
2713
|
-
if (In.has(t)) return this.projection?.isProjecting ? jn(t) : Nn(e, t);
|
|
2714
|
-
{
|
|
2715
|
-
let n = mo(e), r = (He(t) ? n.getPropertyValue(t) : n[t]) || 0;
|
|
2716
|
-
return typeof r == "string" ? r.trim() : r;
|
|
2717
|
-
}
|
|
2718
|
-
}
|
|
2719
|
-
measureInstanceViewportBox(e, { transformPagePoint: t }) {
|
|
2720
|
-
return eo(e, t);
|
|
2721
|
-
}
|
|
2722
|
-
build(e, t, n) {
|
|
2723
|
-
ao(e, t, n.transformTemplate);
|
|
2724
|
-
}
|
|
2725
|
-
scrapeMotionValuesFromProps(e, t, n) {
|
|
2726
|
-
return po(e, t, n);
|
|
2727
|
-
}
|
|
2728
|
-
}, go = {
|
|
2729
|
-
offset: "stroke-dashoffset",
|
|
2730
|
-
array: "stroke-dasharray"
|
|
2731
|
-
}, _o = {
|
|
2732
|
-
offset: "strokeDashoffset",
|
|
2733
|
-
array: "strokeDasharray"
|
|
2734
|
-
};
|
|
2735
|
-
function vo(e, t, n = 1, r = 0, i = !0) {
|
|
2736
|
-
e.pathLength = 1;
|
|
2737
|
-
let a = i ? go : _o;
|
|
2738
|
-
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
|
|
2739
|
-
}
|
|
2740
|
-
//#endregion
|
|
2741
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
|
|
2742
|
-
var yo = [
|
|
2743
|
-
"offsetDistance",
|
|
2744
|
-
"offsetPath",
|
|
2745
|
-
"offsetRotate",
|
|
2746
|
-
"offsetAnchor"
|
|
2747
|
-
];
|
|
2748
|
-
function bo(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
|
|
2749
|
-
if (ao(e, s, l), c) {
|
|
2750
|
-
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
2751
|
-
return;
|
|
2752
|
-
}
|
|
2753
|
-
e.attrs = e.style, e.style = {};
|
|
2754
|
-
let { attrs: d, style: f } = e;
|
|
2755
|
-
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
|
|
2756
|
-
for (let e of yo) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
|
|
2757
|
-
t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && vo(d, i, a, o, !1);
|
|
2758
|
-
}
|
|
2759
|
-
//#endregion
|
|
2760
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
|
|
2761
|
-
var xo = new Set([
|
|
2762
|
-
"baseFrequency",
|
|
2763
|
-
"diffuseConstant",
|
|
2764
|
-
"kernelMatrix",
|
|
2765
|
-
"kernelUnitLength",
|
|
2766
|
-
"keySplines",
|
|
2767
|
-
"keyTimes",
|
|
2768
|
-
"limitingConeAngle",
|
|
2769
|
-
"markerHeight",
|
|
2770
|
-
"markerWidth",
|
|
2771
|
-
"numOctaves",
|
|
2772
|
-
"targetX",
|
|
2773
|
-
"targetY",
|
|
2774
|
-
"surfaceScale",
|
|
2775
|
-
"specularConstant",
|
|
2776
|
-
"specularExponent",
|
|
2777
|
-
"stdDeviation",
|
|
2778
|
-
"tableValues",
|
|
2779
|
-
"viewBox",
|
|
2780
|
-
"gradientTransform",
|
|
2781
|
-
"pathLength",
|
|
2782
|
-
"startOffset",
|
|
2783
|
-
"textLength",
|
|
2784
|
-
"lengthAdjust"
|
|
2785
|
-
]), So = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
2786
|
-
//#endregion
|
|
2787
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
|
|
2788
|
-
function Co(e, t, n, r) {
|
|
2789
|
-
oo(e, t, void 0, r);
|
|
2790
|
-
for (let n in t.attrs) e.setAttribute(xo.has(n) ? n : ti(n), t.attrs[n]);
|
|
2791
|
-
}
|
|
2792
|
-
//#endregion
|
|
2793
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
|
|
2794
|
-
function wo(e, t, n) {
|
|
2795
|
-
let r = po(e, t, n);
|
|
2796
|
-
for (let n in e) if (K(e[n]) || K(t[n])) {
|
|
2797
|
-
let t = Fn.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
|
|
2798
|
-
r[t] = e[n];
|
|
2799
|
-
}
|
|
2800
|
-
return r;
|
|
2801
|
-
}
|
|
2802
|
-
//#endregion
|
|
2803
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
|
|
2804
|
-
var To = class extends Fa {
|
|
2805
|
-
constructor() {
|
|
2806
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = J;
|
|
2807
|
-
}
|
|
2808
|
-
getBaseTargetFromProps(e, t) {
|
|
2809
|
-
return e[t];
|
|
2810
|
-
}
|
|
2811
|
-
readValueFromInstance(e, t) {
|
|
2812
|
-
if (In.has(t)) {
|
|
2813
|
-
let e = Si(t);
|
|
2814
|
-
return e && e.default || 0;
|
|
2815
|
-
}
|
|
2816
|
-
return t = xo.has(t) ? t : ti(t), e.getAttribute(t);
|
|
2817
|
-
}
|
|
2818
|
-
scrapeMotionValuesFromProps(e, t, n) {
|
|
2819
|
-
return wo(e, t, n);
|
|
2820
|
-
}
|
|
2821
|
-
build(e, t, n) {
|
|
2822
|
-
bo(e, t, this.isSVGTag, n.transformTemplate, n.style);
|
|
2823
|
-
}
|
|
2824
|
-
renderInstance(e, t, n, r) {
|
|
2825
|
-
Co(e, t, n, r);
|
|
2826
|
-
}
|
|
2827
|
-
mount(e) {
|
|
2828
|
-
this.isSVGTag = So(e.tagName), super.mount(e);
|
|
2829
|
-
}
|
|
2830
|
-
}, Eo = Sa.length;
|
|
2831
|
-
function Do(e) {
|
|
2832
|
-
if (!e) return;
|
|
2833
|
-
if (!e.isControllingVariants) {
|
|
2834
|
-
let t = e.parent && Do(e.parent) || {};
|
|
2835
|
-
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
|
|
2836
|
-
}
|
|
2837
|
-
let t = {};
|
|
2838
|
-
for (let n = 0; n < Eo; n++) {
|
|
2839
|
-
let r = Sa[n], i = e.props[r];
|
|
2840
|
-
(ba(i) || i === !1) && (t[r] = i);
|
|
2841
|
-
}
|
|
2842
|
-
return t;
|
|
2843
|
-
}
|
|
2844
|
-
//#endregion
|
|
2845
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
|
|
2846
|
-
function Oo(e, t) {
|
|
2847
|
-
if (!Array.isArray(t)) return !1;
|
|
2848
|
-
let n = t.length;
|
|
2849
|
-
if (n !== e.length) return !1;
|
|
2850
|
-
for (let r = 0; r < n; r++) if (t[r] !== e[r]) return !1;
|
|
2851
|
-
return !0;
|
|
2852
|
-
}
|
|
2853
|
-
//#endregion
|
|
2854
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
|
|
2855
|
-
var ko = [...xa].reverse(), Ao = xa.length;
|
|
2856
|
-
function jo(e) {
|
|
2857
|
-
return (t) => Promise.all(t.map(({ animation: t, options: n }) => ci(e, t, n)));
|
|
2858
|
-
}
|
|
2859
|
-
function Mo(e) {
|
|
2860
|
-
let t = jo(e), n = Fo(), r = !0, i = !1, a = (t) => (n, r) => {
|
|
2861
|
-
let i = Hr(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
|
|
2862
|
-
if (i) {
|
|
2863
|
-
let { transition: e, transitionEnd: t, ...r } = i;
|
|
2864
|
-
n = {
|
|
2865
|
-
...n,
|
|
2866
|
-
...r,
|
|
2867
|
-
...t
|
|
2868
|
-
};
|
|
2869
|
-
}
|
|
2870
|
-
return n;
|
|
2871
|
-
};
|
|
2872
|
-
function o(n) {
|
|
2873
|
-
t = n(e);
|
|
2874
|
-
}
|
|
2875
|
-
function s(o) {
|
|
2876
|
-
let { props: s } = e, c = Do(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
|
|
2877
|
-
for (let t = 0; t < Ao; t++) {
|
|
2878
|
-
let p = ko[t], m = n[p], h = s[p] === void 0 ? c[p] : s[p], g = ba(h), _ = p === o ? m.isActive : null;
|
|
2879
|
-
_ === !1 && (f = t);
|
|
2880
|
-
let v = h === c[p] && h !== s[p] && g;
|
|
2881
|
-
if (v && (r || i) && e.manuallyAnimateOnMount && (v = !1), m.protectedKeys = { ...d }, !m.isActive && _ === null || !h && !m.prevProp || ya(h) || typeof h == "boolean") continue;
|
|
2882
|
-
if (p === "exit" && m.isActive && _ !== !0) {
|
|
2883
|
-
m.prevResolvedValues && (d = {
|
|
2884
|
-
...d,
|
|
2885
|
-
...m.prevResolvedValues
|
|
2886
|
-
});
|
|
2887
|
-
continue;
|
|
2888
|
-
}
|
|
2889
|
-
let y = No(m.prevProp, h), b = y || p === o && m.isActive && !v && g || t > f && g, x = !1, S = Array.isArray(h) ? h : [h], C = S.reduce(a(p), {});
|
|
2890
|
-
_ === !1 && (C = {});
|
|
2891
|
-
let { prevResolvedValues: w = {} } = m, T = {
|
|
2892
|
-
...w,
|
|
2893
|
-
...C
|
|
2894
|
-
}, E = (t) => {
|
|
2895
|
-
b = !0, u.has(t) && (x = !0, u.delete(t)), m.needsAnimating[t] = !0;
|
|
2896
|
-
let n = e.getValue(t);
|
|
2897
|
-
n && (n.liveStyle = !1);
|
|
2898
|
-
};
|
|
2899
|
-
for (let e in T) {
|
|
2900
|
-
let t = C[e], n = w[e];
|
|
2901
|
-
if (d.hasOwnProperty(e)) continue;
|
|
2902
|
-
let r = !1;
|
|
2903
|
-
r = Yr(t) && Yr(n) ? !Oo(t, n) : t !== n, r ? t == null ? u.add(e) : E(e) : t !== void 0 && u.has(e) ? E(e) : m.protectedKeys[e] = !0;
|
|
2904
|
-
}
|
|
2905
|
-
m.prevProp = h, m.prevResolvedValues = C, m.isActive && (d = {
|
|
2906
|
-
...d,
|
|
2907
|
-
...C
|
|
2908
|
-
}), (r || i) && e.blockInitialAnimation && (b = !1);
|
|
2909
|
-
let D = v && y;
|
|
2910
|
-
b && (!D || x) && l.push(...S.map((t) => {
|
|
2911
|
-
let n = { type: p };
|
|
2912
|
-
if (typeof t == "string" && (r || i) && !D && e.manuallyAnimateOnMount && e.parent) {
|
|
2913
|
-
let { parent: r } = e, i = Hr(r, t);
|
|
2914
|
-
if (r.enteringChildren && i) {
|
|
2915
|
-
let { delayChildren: t } = i.transition || {};
|
|
2916
|
-
n.delay = Tr(r.enteringChildren, e, t);
|
|
2917
|
-
}
|
|
2918
|
-
}
|
|
2919
|
-
return {
|
|
2920
|
-
animation: t,
|
|
2921
|
-
options: n
|
|
2922
|
-
};
|
|
2923
|
-
}));
|
|
2924
|
-
}
|
|
2925
|
-
if (u.size) {
|
|
2926
|
-
let t = {};
|
|
2927
|
-
if (typeof s.initial != "boolean") {
|
|
2928
|
-
let n = Hr(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
|
|
2929
|
-
n && n.transition && (t.transition = n.transition);
|
|
2930
|
-
}
|
|
2931
|
-
u.forEach((n) => {
|
|
2932
|
-
let r = e.getBaseTarget(n), i = e.getValue(n);
|
|
2933
|
-
i && (i.liveStyle = !0), t[n] = r ?? null;
|
|
2934
|
-
}), l.push({ animation: t });
|
|
2935
|
-
}
|
|
2936
|
-
let p = !!l.length;
|
|
2937
|
-
return r && (s.initial === !1 || s.initial === s.animate) && !e.manuallyAnimateOnMount && (p = !1), r = !1, i = !1, p ? t(l) : Promise.resolve();
|
|
2938
|
-
}
|
|
2939
|
-
function c(t, r) {
|
|
2940
|
-
if (n[t].isActive === r) return Promise.resolve();
|
|
2941
|
-
e.variantChildren?.forEach((e) => e.animationState?.setActive(t, r)), n[t].isActive = r;
|
|
2942
|
-
let i = s(t);
|
|
2943
|
-
for (let e in n) n[e].protectedKeys = {};
|
|
2944
|
-
return i;
|
|
2945
|
-
}
|
|
2946
|
-
return {
|
|
2947
|
-
animateChanges: s,
|
|
2948
|
-
setActive: c,
|
|
2949
|
-
setAnimateFunction: o,
|
|
2950
|
-
getState: () => n,
|
|
2951
|
-
reset: () => {
|
|
2952
|
-
n = Fo(), i = !0;
|
|
2953
|
-
}
|
|
2954
|
-
};
|
|
2955
|
-
}
|
|
2956
|
-
function No(e, t) {
|
|
2957
|
-
return typeof t == "string" ? t !== e : Array.isArray(t) ? !Oo(t, e) : !1;
|
|
2958
|
-
}
|
|
2959
|
-
function Po(e = !1) {
|
|
2960
|
-
return {
|
|
2961
|
-
isActive: e,
|
|
2962
|
-
protectedKeys: {},
|
|
2963
|
-
needsAnimating: {},
|
|
2964
|
-
prevResolvedValues: {}
|
|
2965
|
-
};
|
|
2966
|
-
}
|
|
2967
|
-
function Fo() {
|
|
2968
|
-
return {
|
|
2969
|
-
animate: Po(!0),
|
|
2970
|
-
whileInView: Po(),
|
|
2971
|
-
whileHover: Po(),
|
|
2972
|
-
whileTap: Po(),
|
|
2973
|
-
whileDrag: Po(),
|
|
2974
|
-
whileFocus: Po(),
|
|
2975
|
-
exit: Po()
|
|
2976
|
-
};
|
|
2977
|
-
}
|
|
2978
|
-
//#endregion
|
|
2979
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
|
|
2980
|
-
function Io(e, t) {
|
|
2981
|
-
e.min = t.min, e.max = t.max;
|
|
2982
|
-
}
|
|
2983
|
-
function Z(e, t) {
|
|
2984
|
-
Io(e.x, t.x), Io(e.y, t.y);
|
|
2985
|
-
}
|
|
2986
|
-
function Lo(e, t) {
|
|
2987
|
-
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
2988
|
-
}
|
|
2989
|
-
//#endregion
|
|
2990
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
|
|
2991
|
-
var Ro = 1e-4, zo = 1 - Ro, Bo = 1 + Ro, Vo = .01, Ho = 0 - Vo, Uo = 0 + Vo;
|
|
2992
|
-
function Q(e) {
|
|
2993
|
-
return e.max - e.min;
|
|
2994
|
-
}
|
|
2995
|
-
function Wo(e, t, n) {
|
|
2996
|
-
return Math.abs(e - t) <= n;
|
|
2997
|
-
}
|
|
2998
|
-
function Go(e, t, n, r = .5) {
|
|
2999
|
-
e.origin = r, e.originPoint = H(t.min, t.max, e.origin), e.scale = Q(n) / Q(t), e.translate = H(n.min, n.max, e.origin) - e.originPoint, (e.scale >= zo && e.scale <= Bo || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Ho && e.translate <= Uo || isNaN(e.translate)) && (e.translate = 0);
|
|
3000
|
-
}
|
|
3001
|
-
function Ko(e, t, n, r) {
|
|
3002
|
-
Go(e.x, t.x, n.x, r ? r.originX : void 0), Go(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
3003
|
-
}
|
|
3004
|
-
function qo(e, t, n, r = 0) {
|
|
3005
|
-
e.min = (r ? H(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Q(t);
|
|
3006
|
-
}
|
|
3007
|
-
function Jo(e, t, n, r) {
|
|
3008
|
-
qo(e.x, t.x, n.x, r?.x), qo(e.y, t.y, n.y, r?.y);
|
|
3009
|
-
}
|
|
3010
|
-
function Yo(e, t, n, r = 0) {
|
|
3011
|
-
let i = r ? H(n.min, n.max, r) : n.min;
|
|
3012
|
-
e.min = t.min - i, e.max = e.min + Q(t);
|
|
3013
|
-
}
|
|
3014
|
-
function Xo(e, t, n, r) {
|
|
3015
|
-
Yo(e.x, t.x, n.x, r?.x), Yo(e.y, t.y, n.y, r?.y);
|
|
3016
|
-
}
|
|
3017
|
-
//#endregion
|
|
3018
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
|
|
3019
|
-
function Zo(e, t, n, r, i) {
|
|
3020
|
-
return e -= t, e = Wa(e, 1 / n, r), i !== void 0 && (e = Wa(e, 1 / i, r)), e;
|
|
3021
|
-
}
|
|
3022
|
-
function Qo(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
|
|
3023
|
-
if (R.test(t) && (t = parseFloat(t), t = H(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
|
|
3024
|
-
let s = H(a.min, a.max, r);
|
|
3025
|
-
e === a && (s -= t), e.min = Zo(e.min, t, n, s, i), e.max = Zo(e.max, t, n, s, i);
|
|
3026
|
-
}
|
|
3027
|
-
function $o(e, t, [n, r, i], a, o) {
|
|
3028
|
-
Qo(e, t[n], t[r], t[i], t.scale, a, o);
|
|
3029
|
-
}
|
|
3030
|
-
var es = [
|
|
3031
|
-
"x",
|
|
3032
|
-
"scaleX",
|
|
3033
|
-
"originX"
|
|
3034
|
-
], ts = [
|
|
3035
|
-
"y",
|
|
3036
|
-
"scaleY",
|
|
3037
|
-
"originY"
|
|
3038
|
-
];
|
|
3039
|
-
function ns(e, t, n, r) {
|
|
3040
|
-
$o(e.x, t, es, n ? n.x : void 0, r ? r.x : void 0), $o(e.y, t, ts, n ? n.y : void 0, r ? r.y : void 0);
|
|
3041
|
-
}
|
|
3042
|
-
//#endregion
|
|
3043
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
|
|
3044
|
-
function rs(e) {
|
|
3045
|
-
return e.translate === 0 && e.scale === 1;
|
|
3046
|
-
}
|
|
3047
|
-
function is(e) {
|
|
3048
|
-
return rs(e.x) && rs(e.y);
|
|
3049
|
-
}
|
|
3050
|
-
function as(e, t) {
|
|
3051
|
-
return e.min === t.min && e.max === t.max;
|
|
3052
|
-
}
|
|
3053
|
-
function os(e, t) {
|
|
3054
|
-
return as(e.x, t.x) && as(e.y, t.y);
|
|
3055
|
-
}
|
|
3056
|
-
function ss(e, t) {
|
|
3057
|
-
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
|
|
3058
|
-
}
|
|
3059
|
-
function cs(e, t) {
|
|
3060
|
-
return ss(e.x, t.x) && ss(e.y, t.y);
|
|
3061
|
-
}
|
|
3062
|
-
function ls(e) {
|
|
3063
|
-
return Q(e.x) / Q(e.y);
|
|
3064
|
-
}
|
|
3065
|
-
function us(e, t) {
|
|
3066
|
-
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
3067
|
-
}
|
|
3068
|
-
//#endregion
|
|
3069
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
|
|
3070
|
-
function $(e) {
|
|
3071
|
-
return [e("x"), e("y")];
|
|
3072
|
-
}
|
|
3073
|
-
//#endregion
|
|
3074
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/styles/transform.mjs
|
|
3075
|
-
function ds(e, t, n) {
|
|
3076
|
-
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
|
|
3077
|
-
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
3078
|
-
let { transformPerspective: e, rotate: t, rotateX: i, rotateY: a, skewX: o, skewY: s } = n;
|
|
3079
|
-
e && (r = `perspective(${e}px) ${r}`), t && (r += `rotate(${t}deg) `), i && (r += `rotateX(${i}deg) `), a && (r += `rotateY(${a}deg) `), o && (r += `skewX(${o}deg) `), s && (r += `skewY(${s}deg) `);
|
|
3080
|
-
}
|
|
3081
|
-
let s = e.x.scale * t.x, c = e.y.scale * t.y;
|
|
3082
|
-
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
|
|
3083
|
-
}
|
|
3084
|
-
//#endregion
|
|
3085
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
|
|
3086
|
-
var fs = [
|
|
3087
|
-
"borderTopLeftRadius",
|
|
3088
|
-
"borderTopRightRadius",
|
|
3089
|
-
"borderBottomLeftRadius",
|
|
3090
|
-
"borderBottomRightRadius"
|
|
3091
|
-
], ps = fs.length, ms = (e) => typeof e == "string" ? parseFloat(e) : e, hs = (e) => typeof e == "number" || z.test(e);
|
|
3092
|
-
function gs(e, t, n, r, i, a) {
|
|
3093
|
-
i ? (e.opacity = H(0, n.opacity ?? 1, vs(r)), e.opacityExit = H(t.opacity ?? 1, 0, ys(r))) : a && (e.opacity = H(t.opacity ?? 1, n.opacity ?? 1, r));
|
|
3094
|
-
for (let i = 0; i < ps; i++) {
|
|
3095
|
-
let a = fs[i], o = _s(t, a), s = _s(n, a);
|
|
3096
|
-
o === void 0 && s === void 0 || (o ||= 0, s ||= 0, o === 0 || s === 0 || hs(o) === hs(s) ? (e[a] = Math.max(H(ms(o), ms(s), r), 0), (R.test(s) || R.test(o)) && (e[a] += "%")) : e[a] = s);
|
|
3097
|
-
}
|
|
3098
|
-
(t.rotate || n.rotate) && (e.rotate = H(t.rotate || 0, n.rotate || 0, r));
|
|
3099
|
-
}
|
|
3100
|
-
function _s(e, t) {
|
|
3101
|
-
return e[t] === void 0 ? e.borderRadius : e[t];
|
|
3102
|
-
}
|
|
3103
|
-
var vs = /* @__PURE__ */ bs(0, .5, Ce), ys = /* @__PURE__ */ bs(.5, .95, k);
|
|
3104
|
-
function bs(e, t, n) {
|
|
3105
|
-
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ oe(e, t, r));
|
|
3106
|
-
}
|
|
3107
|
-
//#endregion
|
|
3108
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
|
|
3109
|
-
function xs(e, t, n) {
|
|
3110
|
-
let r = K(e) ? e : Jr(e);
|
|
3111
|
-
return r.start(zr("", r, t, n)), r.animation;
|
|
3112
|
-
}
|
|
3113
|
-
//#endregion
|
|
3114
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/events/add-dom-event.mjs
|
|
3115
|
-
function Ss(e, t, n, r = { passive: !0 }) {
|
|
3116
|
-
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
|
|
3117
|
-
}
|
|
3118
|
-
//#endregion
|
|
3119
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
|
|
3120
|
-
var Cs = (e, t) => e.depth - t.depth, ws = class {
|
|
3121
|
-
constructor() {
|
|
3122
|
-
this.children = [], this.isDirty = !1;
|
|
3123
|
-
}
|
|
3124
|
-
add(e) {
|
|
3125
|
-
S(this.children, e), this.isDirty = !0;
|
|
3126
|
-
}
|
|
3127
|
-
remove(e) {
|
|
3128
|
-
C(this.children, e), this.isDirty = !0;
|
|
3129
|
-
}
|
|
3130
|
-
forEach(e) {
|
|
3131
|
-
this.isDirty && this.children.sort(Cs), this.isDirty = !1, this.children.forEach(e);
|
|
3132
|
-
}
|
|
3133
|
-
};
|
|
3134
|
-
//#endregion
|
|
3135
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/delay.mjs
|
|
3136
|
-
function Ts(e, t) {
|
|
3137
|
-
let n = I.now(), r = ({ timestamp: i }) => {
|
|
3138
|
-
let a = i - n;
|
|
3139
|
-
a >= t && (P(r), e(a - t));
|
|
3140
|
-
};
|
|
3141
|
-
return N.setup(r, !0), () => P(r);
|
|
3142
|
-
}
|
|
3143
|
-
//#endregion
|
|
3144
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
|
|
3145
|
-
function Es(e) {
|
|
3146
|
-
return K(e) ? e.get() : e;
|
|
3147
|
-
}
|
|
3148
|
-
//#endregion
|
|
3149
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/shared/stack.mjs
|
|
3150
|
-
var Ds = class {
|
|
3151
|
-
constructor() {
|
|
3152
|
-
this.members = [];
|
|
3153
|
-
}
|
|
3154
|
-
add(e) {
|
|
3155
|
-
S(this.members, e);
|
|
3156
|
-
for (let t = this.members.length - 1; t >= 0; t--) {
|
|
3157
|
-
let n = this.members[t];
|
|
3158
|
-
if (n === e || n === this.lead || n === this.prevLead) continue;
|
|
3159
|
-
let r = n.instance;
|
|
3160
|
-
(!r || r.isConnected === !1) && !n.snapshot && (C(this.members, n), n.unmount());
|
|
3161
|
-
}
|
|
3162
|
-
e.scheduleRender();
|
|
3163
|
-
}
|
|
3164
|
-
remove(e) {
|
|
3165
|
-
if (C(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
3166
|
-
let e = this.members[this.members.length - 1];
|
|
3167
|
-
e && this.promote(e);
|
|
3168
|
-
}
|
|
3169
|
-
}
|
|
3170
|
-
relegate(e) {
|
|
3171
|
-
for (let t = this.members.indexOf(e) - 1; t >= 0; t--) {
|
|
3172
|
-
let e = this.members[t];
|
|
3173
|
-
if (e.isPresent !== !1 && e.instance?.isConnected !== !1) return this.promote(e), !0;
|
|
3174
|
-
}
|
|
3175
|
-
return !1;
|
|
3176
|
-
}
|
|
3177
|
-
promote(e, t) {
|
|
3178
|
-
let n = this.lead;
|
|
3179
|
-
if (e !== n && (this.prevLead = n, this.lead = e, e.show(), n)) {
|
|
3180
|
-
n.updateSnapshot(), e.scheduleRender();
|
|
3181
|
-
let { layoutDependency: r } = n.options, { layoutDependency: i } = e.options;
|
|
3182
|
-
(r === void 0 || r !== i) && (e.resumeFrom = n, t && (n.preserveOpacity = !0), n.snapshot && (e.snapshot = n.snapshot, e.snapshot.latestValues = n.animationValues || n.latestValues), e.root?.isUpdating && (e.isLayoutDirty = !0)), e.options.crossfade === !1 && n.hide();
|
|
3183
|
-
}
|
|
3184
|
-
}
|
|
3185
|
-
exitAnimationComplete() {
|
|
3186
|
-
this.members.forEach((e) => {
|
|
3187
|
-
e.options.onExitComplete?.(), e.resumingFrom?.options.onExitComplete?.();
|
|
3188
|
-
});
|
|
3189
|
-
}
|
|
3190
|
-
scheduleRender() {
|
|
3191
|
-
this.members.forEach((e) => e.instance && e.scheduleRender(!1));
|
|
3192
|
-
}
|
|
3193
|
-
removeLeadSnapshot() {
|
|
3194
|
-
this.lead?.snapshot && (this.lead.snapshot = void 0);
|
|
3195
|
-
}
|
|
3196
|
-
}, Os = {
|
|
3197
|
-
hasAnimatedSinceResize: !0,
|
|
3198
|
-
hasEverUpdated: !1
|
|
3199
|
-
}, ks = {
|
|
3200
|
-
nodes: 0,
|
|
3201
|
-
calculatedTargetDeltas: 0,
|
|
3202
|
-
calculatedProjections: 0
|
|
3203
|
-
}, As = [
|
|
3204
|
-
"",
|
|
3205
|
-
"X",
|
|
3206
|
-
"Y",
|
|
3207
|
-
"Z"
|
|
3208
|
-
], js = 1e3, Ms = 0;
|
|
3209
|
-
function Ns(e, t, n, r) {
|
|
3210
|
-
let { latestValues: i } = t;
|
|
3211
|
-
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
|
|
3212
|
-
}
|
|
3213
|
-
function Ps(e) {
|
|
3214
|
-
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
|
|
3215
|
-
let { visualElement: t } = e.options;
|
|
3216
|
-
if (!t) return;
|
|
3217
|
-
let n = ri(t);
|
|
3218
|
-
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
3219
|
-
let { layout: t, layoutId: r } = e.options;
|
|
3220
|
-
window.MotionCancelOptimisedAnimation(n, "transform", N, !(t || r));
|
|
3221
|
-
}
|
|
3222
|
-
let { parent: r } = e;
|
|
3223
|
-
r && !r.hasCheckedOptimisedAppear && Ps(r);
|
|
3224
|
-
}
|
|
3225
|
-
function Fs({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
|
|
3226
|
-
return class {
|
|
3227
|
-
constructor(e = {}, n = t?.()) {
|
|
3228
|
-
this.id = Ms++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
|
|
3229
|
-
x: 1,
|
|
3230
|
-
y: 1
|
|
3231
|
-
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
3232
|
-
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
3233
|
-
}, this.updateProjection = () => {
|
|
3234
|
-
this.projectionUpdateScheduled = !1, M.value && (ks.nodes = ks.calculatedTargetDeltas = ks.calculatedProjections = 0), this.nodes.forEach(Rs), this.nodes.forEach(qs), this.nodes.forEach(Js), this.nodes.forEach(zs), M.addProjectionMetrics && M.addProjectionMetrics(ks);
|
|
3235
|
-
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
|
|
3236
|
-
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
|
|
3237
|
-
this.root === this && (this.nodes = new ws());
|
|
3238
|
-
}
|
|
3239
|
-
addEventListener(e, t) {
|
|
3240
|
-
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new se()), this.eventHandlers.get(e).add(t);
|
|
3241
|
-
}
|
|
3242
|
-
notifyListeners(e, ...t) {
|
|
3243
|
-
let n = this.eventHandlers.get(e);
|
|
3244
|
-
n && n.notify(...t);
|
|
3245
|
-
}
|
|
3246
|
-
hasListeners(e) {
|
|
3247
|
-
return this.eventHandlers.has(e);
|
|
3248
|
-
}
|
|
3249
|
-
mount(t) {
|
|
3250
|
-
if (this.instance) return;
|
|
3251
|
-
this.isSVG = Zi(t) && !fa(t), this.instance = t;
|
|
3252
|
-
let { layoutId: n, layout: r, visualElement: i } = this.options;
|
|
3253
|
-
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
|
|
3254
|
-
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
|
|
3255
|
-
N.read(() => {
|
|
3256
|
-
r = window.innerWidth;
|
|
3257
|
-
}), e(t, () => {
|
|
3258
|
-
let e = window.innerWidth;
|
|
3259
|
-
e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Ts(i, 250), Os.hasAnimatedSinceResize && (Os.hasAnimatedSinceResize = !1, this.nodes.forEach(Ks)));
|
|
3260
|
-
});
|
|
3261
|
-
}
|
|
3262
|
-
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
|
|
3263
|
-
if (this.isTreeAnimationBlocked()) {
|
|
3264
|
-
this.target = void 0, this.relativeTarget = void 0;
|
|
3265
|
-
return;
|
|
3266
|
-
}
|
|
3267
|
-
let a = this.options.transition || i.getDefaultTransition() || tc, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !cs(this.targetLayout, r), l = !t && n;
|
|
3268
|
-
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
|
|
3269
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
3270
|
-
let t = {
|
|
3271
|
-
...Ir(a, "layout"),
|
|
3272
|
-
onPlay: o,
|
|
3273
|
-
onComplete: s
|
|
3274
|
-
};
|
|
3275
|
-
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l);
|
|
3276
|
-
} else t || Ks(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
3277
|
-
this.targetLayout = r;
|
|
3278
|
-
});
|
|
3279
|
-
}
|
|
3280
|
-
unmount() {
|
|
3281
|
-
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
3282
|
-
let e = this.getStack();
|
|
3283
|
-
e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), P(this.updateProjection);
|
|
3284
|
-
}
|
|
3285
|
-
blockUpdate() {
|
|
3286
|
-
this.updateManuallyBlocked = !0;
|
|
3287
|
-
}
|
|
3288
|
-
unblockUpdate() {
|
|
3289
|
-
this.updateManuallyBlocked = !1;
|
|
3290
|
-
}
|
|
3291
|
-
isUpdateBlocked() {
|
|
3292
|
-
return this.updateManuallyBlocked || this.updateBlockedByResize;
|
|
3293
|
-
}
|
|
3294
|
-
isTreeAnimationBlocked() {
|
|
3295
|
-
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
3296
|
-
}
|
|
3297
|
-
startUpdate() {
|
|
3298
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Ys), this.animationId++);
|
|
3299
|
-
}
|
|
3300
|
-
getTransformTemplate() {
|
|
3301
|
-
let { visualElement: e } = this.options;
|
|
3302
|
-
return e && e.getProps().transformTemplate;
|
|
3303
|
-
}
|
|
3304
|
-
willUpdate(e = !0) {
|
|
3305
|
-
if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
|
|
3306
|
-
this.options.onExitComplete && this.options.onExitComplete();
|
|
3307
|
-
return;
|
|
3308
|
-
}
|
|
3309
|
-
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Ps(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
|
|
3310
|
-
this.isLayoutDirty = !0;
|
|
3311
|
-
for (let e = 0; e < this.path.length; e++) {
|
|
3312
|
-
let t = this.path[e];
|
|
3313
|
-
t.shouldResetTransform = !0, (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1);
|
|
3314
|
-
}
|
|
3315
|
-
let { layoutId: t, layout: n } = this.options;
|
|
3316
|
-
if (t === void 0 && !n) return;
|
|
3317
|
-
let r = this.getTransformTemplate();
|
|
3318
|
-
this.prevTransformTemplateValue = r ? r(this.latestValues, "") : void 0, this.updateSnapshot(), e && this.notifyListeners("willUpdate");
|
|
3319
|
-
}
|
|
3320
|
-
update() {
|
|
3321
|
-
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
3322
|
-
let e = this.updateBlockedByResize;
|
|
3323
|
-
this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Hs), this.nodes.forEach(Vs);
|
|
3324
|
-
return;
|
|
3325
|
-
}
|
|
3326
|
-
if (this.animationId <= this.animationCommitId) {
|
|
3327
|
-
this.nodes.forEach(Us);
|
|
3328
|
-
return;
|
|
3329
|
-
}
|
|
3330
|
-
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Ws), this.nodes.forEach(Gs), this.nodes.forEach(Is), this.nodes.forEach(Ls)) : this.nodes.forEach(Us), this.clearAllSnapshots();
|
|
3331
|
-
let e = I.now();
|
|
3332
|
-
F.delta = w(0, 1e3 / 60, e - F.timestamp), F.timestamp = e, F.isProcessing = !0, Le.update.process(F), Le.preRender.process(F), Le.render.process(F), F.isProcessing = !1;
|
|
3333
|
-
}
|
|
3334
|
-
didUpdate() {
|
|
3335
|
-
this.updateScheduled || (this.updateScheduled = !0, ji.read(this.scheduleUpdate));
|
|
3336
|
-
}
|
|
3337
|
-
clearAllSnapshots() {
|
|
3338
|
-
this.nodes.forEach(Bs), this.sharedNodes.forEach(Xs);
|
|
3339
|
-
}
|
|
3340
|
-
scheduleUpdateProjection() {
|
|
3341
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, N.preRender(this.updateProjection, !1, !0));
|
|
3342
|
-
}
|
|
3343
|
-
scheduleCheckAfterUnmount() {
|
|
3344
|
-
N.postRender(() => {
|
|
3345
|
-
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
3346
|
-
});
|
|
3347
|
-
}
|
|
3348
|
-
updateSnapshot() {
|
|
3349
|
-
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Q(this.snapshot.measuredBox.x) && !Q(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
3350
|
-
}
|
|
3351
|
-
updateLayout() {
|
|
3352
|
-
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
|
|
3353
|
-
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
|
|
3354
|
-
let e = this.layout;
|
|
3355
|
-
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= J(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
3356
|
-
let { visualElement: t } = this.options;
|
|
3357
|
-
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
|
|
3358
|
-
}
|
|
3359
|
-
updateScroll(e = "measure") {
|
|
3360
|
-
let t = !!(this.options.layoutScroll && this.instance);
|
|
3361
|
-
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === e && (t = !1), t && this.instance) {
|
|
3362
|
-
let t = r(this.instance);
|
|
3363
|
-
this.scroll = {
|
|
3364
|
-
animationId: this.root.animationId,
|
|
3365
|
-
phase: e,
|
|
3366
|
-
isRoot: t,
|
|
3367
|
-
offset: n(this.instance),
|
|
3368
|
-
wasRoot: this.scroll ? this.scroll.isRoot : t
|
|
3369
|
-
};
|
|
3370
|
-
}
|
|
3371
|
-
}
|
|
3372
|
-
resetTransform() {
|
|
3373
|
-
if (!i) return;
|
|
3374
|
-
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !is(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
|
|
3375
|
-
e && this.instance && (t || Va(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
|
|
3376
|
-
}
|
|
3377
|
-
measure(e = !0) {
|
|
3378
|
-
let t = this.measurePageBox(), n = this.removeElementScroll(t);
|
|
3379
|
-
return e && (n = this.removeTransform(n)), ac(n), {
|
|
3380
|
-
animationId: this.root.animationId,
|
|
3381
|
-
measuredBox: t,
|
|
3382
|
-
layoutBox: n,
|
|
3383
|
-
latestValues: {},
|
|
3384
|
-
source: this.id
|
|
3385
|
-
};
|
|
3386
|
-
}
|
|
3387
|
-
measurePageBox() {
|
|
3388
|
-
let { visualElement: e } = this.options;
|
|
3389
|
-
if (!e) return J();
|
|
3390
|
-
let t = e.measureViewportBox();
|
|
3391
|
-
if (!(this.scroll?.wasRoot || this.path.some(sc))) {
|
|
3392
|
-
let { scroll: e } = this.root;
|
|
3393
|
-
e && (X(t.x, e.offset.x), X(t.y, e.offset.y));
|
|
3394
|
-
}
|
|
3395
|
-
return t;
|
|
3396
|
-
}
|
|
3397
|
-
removeElementScroll(e) {
|
|
3398
|
-
let t = J();
|
|
3399
|
-
if (Z(t, e), this.scroll?.wasRoot) return t;
|
|
3400
|
-
for (let n = 0; n < this.path.length; n++) {
|
|
3401
|
-
let r = this.path[n], { scroll: i, options: a } = r;
|
|
3402
|
-
r !== this.root && i && a.layoutScroll && (i.wasRoot && Z(t, e), X(t.x, i.offset.x), X(t.y, i.offset.y));
|
|
3403
|
-
}
|
|
3404
|
-
return t;
|
|
3405
|
-
}
|
|
3406
|
-
applyTransform(e, t = !1, n) {
|
|
3407
|
-
let r = n || J();
|
|
3408
|
-
Z(r, e);
|
|
3409
|
-
for (let e = 0; e < this.path.length; e++) {
|
|
3410
|
-
let n = this.path[e];
|
|
3411
|
-
!t && n.options.layoutScroll && n.scroll && n !== n.root && (X(r.x, -n.scroll.offset.x), X(r.y, -n.scroll.offset.y)), Va(n.latestValues) && $a(r, n.latestValues, n.layout?.layoutBox);
|
|
3412
|
-
}
|
|
3413
|
-
return Va(this.latestValues) && $a(r, this.latestValues, this.layout?.layoutBox), r;
|
|
3414
|
-
}
|
|
3415
|
-
removeTransform(e) {
|
|
3416
|
-
let t = J();
|
|
3417
|
-
Z(t, e);
|
|
3418
|
-
for (let e = 0; e < this.path.length; e++) {
|
|
3419
|
-
let n = this.path[e];
|
|
3420
|
-
if (!Va(n.latestValues)) continue;
|
|
3421
|
-
let r;
|
|
3422
|
-
n.instance && (Ba(n.latestValues) && n.updateSnapshot(), r = J(), Z(r, n.measurePageBox())), ns(t, n.latestValues, n.snapshot?.layoutBox, r);
|
|
3423
|
-
}
|
|
3424
|
-
return Va(this.latestValues) && ns(t, this.latestValues), t;
|
|
3425
|
-
}
|
|
3426
|
-
setTargetDelta(e) {
|
|
3427
|
-
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
3428
|
-
}
|
|
3429
|
-
setOptions(e) {
|
|
3430
|
-
this.options = {
|
|
3431
|
-
...this.options,
|
|
3432
|
-
...e,
|
|
3433
|
-
crossfade: e.crossfade === void 0 ? !0 : e.crossfade
|
|
3434
|
-
};
|
|
3435
|
-
}
|
|
3436
|
-
clearMeasurements() {
|
|
3437
|
-
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
3438
|
-
}
|
|
3439
|
-
forceRelativeParentToResolveTarget() {
|
|
3440
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== F.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
3441
|
-
}
|
|
3442
|
-
resolveTargetDelta(e = !1) {
|
|
3443
|
-
let t = this.getLead();
|
|
3444
|
-
this.isProjectionDirty ||= t.isProjectionDirty, this.isTransformDirty ||= t.isTransformDirty, this.isSharedProjectionDirty ||= t.isSharedProjectionDirty;
|
|
3445
|
-
let n = !!this.resumingFrom || this !== t;
|
|
3446
|
-
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
|
|
3447
|
-
let { layout: r, layoutId: i } = this.options;
|
|
3448
|
-
if (!this.layout || !(r || i)) return;
|
|
3449
|
-
this.resolvedRelativeTargetAt = F.timestamp;
|
|
3450
|
-
let a = this.getClosestProjectingParent();
|
|
3451
|
-
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = J(), this.targetWithTransforms = J()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Jo(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : Z(this.target, this.layout.layoutBox), qa(this.target, this.targetDelta)) : Z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), M.value && ks.calculatedTargetDeltas++);
|
|
3452
|
-
}
|
|
3453
|
-
getClosestProjectingParent() {
|
|
3454
|
-
if (!(!this.parent || Ba(this.parent.latestValues) || Ha(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
3455
|
-
}
|
|
3456
|
-
isProjecting() {
|
|
3457
|
-
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
3458
|
-
}
|
|
3459
|
-
createRelativeTarget(e, t, n) {
|
|
3460
|
-
this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = J(), this.relativeTargetOrigin = J(), Xo(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Z(this.relativeTarget, this.relativeTargetOrigin);
|
|
3461
|
-
}
|
|
3462
|
-
removeRelativeTarget() {
|
|
3463
|
-
this.relativeParent = this.relativeTarget = void 0;
|
|
3464
|
-
}
|
|
3465
|
-
calcProjection() {
|
|
3466
|
-
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
|
|
3467
|
-
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === F.timestamp && (n = !1), n) return;
|
|
3468
|
-
let { layout: r, layoutId: i } = this.options;
|
|
3469
|
-
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
|
|
3470
|
-
Z(this.layoutCorrected, this.layout.layoutBox);
|
|
3471
|
-
let a = this.treeScale.x, o = this.treeScale.y;
|
|
3472
|
-
Xa(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = J());
|
|
3473
|
-
let { target: s } = e;
|
|
3474
|
-
if (!s) {
|
|
3475
|
-
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
3476
|
-
return;
|
|
3477
|
-
}
|
|
3478
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Lo(this.prevProjectionDelta.x, this.projectionDelta.x), Lo(this.prevProjectionDelta.y, this.projectionDelta.y)), Ko(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !us(this.projectionDelta.x, this.prevProjectionDelta.x) || !us(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), M.value && ks.calculatedProjections++;
|
|
3479
|
-
}
|
|
3480
|
-
hide() {
|
|
3481
|
-
this.isVisible = !1;
|
|
3482
|
-
}
|
|
3483
|
-
show() {
|
|
3484
|
-
this.isVisible = !0;
|
|
3485
|
-
}
|
|
3486
|
-
scheduleRender(e = !0) {
|
|
3487
|
-
if (this.options.visualElement?.scheduleRender(), e) {
|
|
3488
|
-
let e = this.getStack();
|
|
3489
|
-
e && e.scheduleRender();
|
|
3490
|
-
}
|
|
3491
|
-
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
3492
|
-
}
|
|
3493
|
-
createProjectionDeltas() {
|
|
3494
|
-
this.prevProjectionDelta = ga(), this.projectionDelta = ga(), this.projectionDeltaWithTransform = ga();
|
|
3495
|
-
}
|
|
3496
|
-
setAnimationOrigin(e, t = !1) {
|
|
3497
|
-
let n = this.snapshot, r = n ? n.latestValues : {}, i = { ...this.latestValues }, a = ga();
|
|
3498
|
-
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
|
|
3499
|
-
let o = J(), s = (n ? n.source : void 0) !== (this.layout ? this.layout.source : void 0), c = this.getStack(), l = !c || c.members.length <= 1, u = !!(s && !l && this.options.crossfade === !0 && !this.path.some(ec));
|
|
3500
|
-
this.animationProgress = 0;
|
|
3501
|
-
let d;
|
|
3502
|
-
this.mixTargetDelta = (t) => {
|
|
3503
|
-
let n = t / 1e3;
|
|
3504
|
-
Zs(a.x, e.x, n), Zs(a.y, e.y, n), this.setTargetDelta(a), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Xo(o, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), $s(this.relativeTarget, this.relativeTargetOrigin, o, n), d && os(this.relativeTarget, d) && (this.isProjectionDirty = !1), d ||= J(), Z(d, this.relativeTarget)), s && (this.animationValues = i, gs(i, r, this.latestValues, n, u, l)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
|
|
3505
|
-
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3506
|
-
}
|
|
3507
|
-
startAnimation(e) {
|
|
3508
|
-
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (P(this.pendingAnimation), void 0), this.pendingAnimation = N.update(() => {
|
|
3509
|
-
Os.hasAnimatedSinceResize = !0, Be.layout++, this.motionValue ||= Jr(0), this.motionValue.jump(0, !1), this.currentAnimation = xs(this.motionValue, [0, 1e3], {
|
|
3510
|
-
...e,
|
|
3511
|
-
velocity: 0,
|
|
3512
|
-
isSync: !0,
|
|
3513
|
-
onUpdate: (t) => {
|
|
3514
|
-
this.mixTargetDelta(t), e.onUpdate && e.onUpdate(t);
|
|
3515
|
-
},
|
|
3516
|
-
onStop: () => {
|
|
3517
|
-
Be.layout--;
|
|
3518
|
-
},
|
|
3519
|
-
onComplete: () => {
|
|
3520
|
-
Be.layout--, e.onComplete && e.onComplete(), this.completeAnimation();
|
|
3521
|
-
}
|
|
3522
|
-
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
3523
|
-
});
|
|
3524
|
-
}
|
|
3525
|
-
completeAnimation() {
|
|
3526
|
-
this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
|
|
3527
|
-
let e = this.getStack();
|
|
3528
|
-
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
3529
|
-
}
|
|
3530
|
-
finishAnimation() {
|
|
3531
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(js), this.currentAnimation.stop()), this.completeAnimation();
|
|
3532
|
-
}
|
|
3533
|
-
applyTransformsToTarget() {
|
|
3534
|
-
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
|
|
3535
|
-
if (!(!t || !n || !r)) {
|
|
3536
|
-
if (this !== e && this.layout && r && oc(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
|
|
3537
|
-
n = this.target || J();
|
|
3538
|
-
let t = Q(this.layout.layoutBox.x);
|
|
3539
|
-
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
|
|
3540
|
-
let r = Q(this.layout.layoutBox.y);
|
|
3541
|
-
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
|
|
3542
|
-
}
|
|
3543
|
-
Z(t, n), $a(t, i), Ko(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
|
|
3544
|
-
}
|
|
3545
|
-
}
|
|
3546
|
-
registerSharedNode(e, t) {
|
|
3547
|
-
this.sharedNodes.has(e) || this.sharedNodes.set(e, new Ds()), this.sharedNodes.get(e).add(t);
|
|
3548
|
-
let n = t.options.initialPromotionConfig;
|
|
3549
|
-
t.promote({
|
|
3550
|
-
transition: n ? n.transition : void 0,
|
|
3551
|
-
preserveFollowOpacity: n && n.shouldPreserveFollowOpacity ? n.shouldPreserveFollowOpacity(t) : void 0
|
|
3552
|
-
});
|
|
3553
|
-
}
|
|
3554
|
-
isLead() {
|
|
3555
|
-
let e = this.getStack();
|
|
3556
|
-
return e ? e.lead === this : !0;
|
|
3557
|
-
}
|
|
3558
|
-
getLead() {
|
|
3559
|
-
let { layoutId: e } = this.options;
|
|
3560
|
-
return e && this.getStack()?.lead || this;
|
|
3561
|
-
}
|
|
3562
|
-
getPrevLead() {
|
|
3563
|
-
let { layoutId: e } = this.options;
|
|
3564
|
-
return e ? this.getStack()?.prevLead : void 0;
|
|
3565
|
-
}
|
|
3566
|
-
getStack() {
|
|
3567
|
-
let { layoutId: e } = this.options;
|
|
3568
|
-
if (e) return this.root.sharedNodes.get(e);
|
|
3569
|
-
}
|
|
3570
|
-
promote({ needsReset: e, transition: t, preserveFollowOpacity: n } = {}) {
|
|
3571
|
-
let r = this.getStack();
|
|
3572
|
-
r && r.promote(this, n), e && (this.projectionDelta = void 0, this.needsReset = !0), t && this.setOptions({ transition: t });
|
|
3573
|
-
}
|
|
3574
|
-
relegate() {
|
|
3575
|
-
let e = this.getStack();
|
|
3576
|
-
return e ? e.relegate(this) : !1;
|
|
3577
|
-
}
|
|
3578
|
-
resetSkewAndRotation() {
|
|
3579
|
-
let { visualElement: e } = this.options;
|
|
3580
|
-
if (!e) return;
|
|
3581
|
-
let t = !1, { latestValues: n } = e;
|
|
3582
|
-
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
|
|
3583
|
-
let r = {};
|
|
3584
|
-
n.z && Ns("z", e, r, this.animationValues);
|
|
3585
|
-
for (let t = 0; t < As.length; t++) Ns(`rotate${As[t]}`, e, r, this.animationValues), Ns(`skew${As[t]}`, e, r, this.animationValues);
|
|
3586
|
-
e.render();
|
|
3587
|
-
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
|
|
3588
|
-
e.scheduleRender();
|
|
3589
|
-
}
|
|
3590
|
-
applyProjectionStyles(e, t) {
|
|
3591
|
-
if (!this.instance || this.isSVG) return;
|
|
3592
|
-
if (!this.isVisible) {
|
|
3593
|
-
e.visibility = "hidden";
|
|
3594
|
-
return;
|
|
3595
|
-
}
|
|
3596
|
-
let n = this.getTransformTemplate();
|
|
3597
|
-
if (this.needsReset) {
|
|
3598
|
-
this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = Es(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
|
|
3599
|
-
return;
|
|
3600
|
-
}
|
|
3601
|
-
let r = this.getLead();
|
|
3602
|
-
if (!this.projectionDelta || !this.layout || !r.target) {
|
|
3603
|
-
this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = Es(t?.pointerEvents) || ""), this.hasProjected && !Va(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
|
|
3604
|
-
return;
|
|
3605
|
-
}
|
|
3606
|
-
e.visibility = "";
|
|
3607
|
-
let i = r.animationValues || r.latestValues;
|
|
3608
|
-
this.applyTransformsToTarget();
|
|
3609
|
-
let a = ds(this.projectionDeltaWithTransform, this.treeScale, i);
|
|
3610
|
-
n && (a = n(i, a)), e.transform = a;
|
|
3611
|
-
let { x: o, y: s } = this.projectionDelta;
|
|
3612
|
-
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, r.animationValues ? e.opacity = r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : e.opacity = r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
|
|
3613
|
-
for (let t in uo) {
|
|
3614
|
-
if (i[t] === void 0) continue;
|
|
3615
|
-
let { correct: n, applyTo: o, isCSSVariable: s } = uo[t], c = a === "none" ? i[t] : n(i[t], r);
|
|
3616
|
-
if (o) {
|
|
3617
|
-
let t = o.length;
|
|
3618
|
-
for (let n = 0; n < t; n++) e[o[n]] = c;
|
|
3619
|
-
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
|
|
3620
|
-
}
|
|
3621
|
-
this.options.layoutId && (e.pointerEvents = r === this ? Es(t?.pointerEvents) || "" : "none");
|
|
3622
|
-
}
|
|
3623
|
-
clearSnapshot() {
|
|
3624
|
-
this.resumeFrom = this.snapshot = void 0;
|
|
3625
|
-
}
|
|
3626
|
-
resetTree() {
|
|
3627
|
-
this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(Vs), this.root.sharedNodes.clear();
|
|
3628
|
-
}
|
|
3629
|
-
};
|
|
3630
|
-
}
|
|
3631
|
-
function Is(e) {
|
|
3632
|
-
e.updateLayout();
|
|
3633
|
-
}
|
|
3634
|
-
function Ls(e) {
|
|
3635
|
-
let t = e.resumeFrom?.snapshot || e.snapshot;
|
|
3636
|
-
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
3637
|
-
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
|
|
3638
|
-
if (i === "size") $((e) => {
|
|
3639
|
-
let r = a ? t.measuredBox[e] : t.layoutBox[e], i = Q(r);
|
|
3640
|
-
r.min = n[e].min, r.max = r.min + i;
|
|
3641
|
-
});
|
|
3642
|
-
else if (i === "x" || i === "y") {
|
|
3643
|
-
let e = i === "x" ? "y" : "x";
|
|
3644
|
-
Io(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
|
|
3645
|
-
} else oc(i, t.layoutBox, n) && $((r) => {
|
|
3646
|
-
let i = a ? t.measuredBox[r] : t.layoutBox[r], o = Q(n[r]);
|
|
3647
|
-
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
|
|
3648
|
-
});
|
|
3649
|
-
let o = ga();
|
|
3650
|
-
Ko(o, n, t.layoutBox);
|
|
3651
|
-
let s = ga();
|
|
3652
|
-
a ? Ko(s, e.applyTransform(r, !0), t.measuredBox) : Ko(s, n, t.layoutBox);
|
|
3653
|
-
let c = !is(o), l = !1;
|
|
3654
|
-
if (!e.resumeFrom) {
|
|
3655
|
-
let r = e.getClosestProjectingParent();
|
|
3656
|
-
if (r && !r.resumeFrom) {
|
|
3657
|
-
let { snapshot: i, layout: a } = r;
|
|
3658
|
-
if (i && a) {
|
|
3659
|
-
let o = e.options.layoutAnchor || void 0, s = J();
|
|
3660
|
-
Xo(s, t.layoutBox, i.layoutBox, o);
|
|
3661
|
-
let c = J();
|
|
3662
|
-
Xo(c, n, a.layoutBox, o), cs(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
|
|
3663
|
-
}
|
|
3664
|
-
}
|
|
3665
|
-
}
|
|
3666
|
-
e.notifyListeners("didUpdate", {
|
|
3667
|
-
layout: n,
|
|
3668
|
-
snapshot: t,
|
|
3669
|
-
delta: s,
|
|
3670
|
-
layoutDelta: o,
|
|
3671
|
-
hasLayoutChanged: c,
|
|
3672
|
-
hasRelativeLayoutChanged: l
|
|
3673
|
-
});
|
|
3674
|
-
} else if (e.isLead()) {
|
|
3675
|
-
let { onExitComplete: t } = e.options;
|
|
3676
|
-
t && t();
|
|
3677
|
-
}
|
|
3678
|
-
e.options.transition = void 0;
|
|
3679
|
-
}
|
|
3680
|
-
function Rs(e) {
|
|
3681
|
-
M.value && ks.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
|
|
3682
|
-
}
|
|
3683
|
-
function zs(e) {
|
|
3684
|
-
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
3685
|
-
}
|
|
3686
|
-
function Bs(e) {
|
|
3687
|
-
e.clearSnapshot();
|
|
3688
|
-
}
|
|
3689
|
-
function Vs(e) {
|
|
3690
|
-
e.clearMeasurements();
|
|
3691
|
-
}
|
|
3692
|
-
function Hs(e) {
|
|
3693
|
-
e.isLayoutDirty = !0, e.updateLayout();
|
|
3694
|
-
}
|
|
3695
|
-
function Us(e) {
|
|
3696
|
-
e.isLayoutDirty = !1;
|
|
3697
|
-
}
|
|
3698
|
-
function Ws(e) {
|
|
3699
|
-
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
|
|
3700
|
-
}
|
|
3701
|
-
function Gs(e) {
|
|
3702
|
-
let { visualElement: t } = e.options;
|
|
3703
|
-
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
3704
|
-
}
|
|
3705
|
-
function Ks(e) {
|
|
3706
|
-
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
3707
|
-
}
|
|
3708
|
-
function qs(e) {
|
|
3709
|
-
e.resolveTargetDelta();
|
|
3710
|
-
}
|
|
3711
|
-
function Js(e) {
|
|
3712
|
-
e.calcProjection();
|
|
3713
|
-
}
|
|
3714
|
-
function Ys(e) {
|
|
3715
|
-
e.resetSkewAndRotation();
|
|
3716
|
-
}
|
|
3717
|
-
function Xs(e) {
|
|
3718
|
-
e.removeLeadSnapshot();
|
|
3719
|
-
}
|
|
3720
|
-
function Zs(e, t, n) {
|
|
3721
|
-
e.translate = H(t.translate, 0, n), e.scale = H(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
3722
|
-
}
|
|
3723
|
-
function Qs(e, t, n, r) {
|
|
3724
|
-
e.min = H(t.min, n.min, r), e.max = H(t.max, n.max, r);
|
|
3725
|
-
}
|
|
3726
|
-
function $s(e, t, n, r) {
|
|
3727
|
-
Qs(e.x, t.x, n.x, r), Qs(e.y, t.y, n.y, r);
|
|
3728
|
-
}
|
|
3729
|
-
function ec(e) {
|
|
3730
|
-
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
3731
|
-
}
|
|
3732
|
-
var tc = {
|
|
3733
|
-
duration: .45,
|
|
3734
|
-
ease: [
|
|
3735
|
-
.4,
|
|
3736
|
-
0,
|
|
3737
|
-
.1,
|
|
3738
|
-
1
|
|
3739
|
-
]
|
|
3740
|
-
}, nc = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), rc = nc("applewebkit/") && !nc("chrome/") ? Math.round : k;
|
|
3741
|
-
function ic(e) {
|
|
3742
|
-
e.min = rc(e.min), e.max = rc(e.max);
|
|
3743
|
-
}
|
|
3744
|
-
function ac(e) {
|
|
3745
|
-
ic(e.x), ic(e.y);
|
|
3746
|
-
}
|
|
3747
|
-
function oc(e, t, n) {
|
|
3748
|
-
return e === "position" || e === "preserve-aspect" && !Wo(ls(t), ls(n), .2);
|
|
3749
|
-
}
|
|
3750
|
-
function sc(e) {
|
|
3751
|
-
return e !== e.root && e.scroll?.wasRoot;
|
|
3752
|
-
}
|
|
3753
|
-
//#endregion
|
|
3754
|
-
//#region node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
|
|
3755
|
-
var cc = Fs({
|
|
3756
|
-
attachResizeListener: (e, t) => Ss(e, "resize", t),
|
|
3757
|
-
measureScroll: () => ({
|
|
3758
|
-
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
|
|
3759
|
-
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
|
|
3760
|
-
}),
|
|
3761
|
-
checkIsScrollRoot: () => !0
|
|
3762
|
-
}), lc = { current: void 0 }, uc = Fs({
|
|
3763
|
-
measureScroll: (e) => ({
|
|
3764
|
-
x: e.scrollLeft,
|
|
3765
|
-
y: e.scrollTop
|
|
3766
|
-
}),
|
|
3767
|
-
defaultParent: () => {
|
|
3768
|
-
if (!lc.current) {
|
|
3769
|
-
let e = new cc({});
|
|
3770
|
-
e.mount(window), e.setOptions({ layoutScroll: !0 }), lc.current = e;
|
|
3771
|
-
}
|
|
3772
|
-
return lc.current;
|
|
3773
|
-
},
|
|
3774
|
-
resetTransform: (e, t) => {
|
|
3775
|
-
e.style.transform = t === void 0 ? "none" : t;
|
|
3776
|
-
},
|
|
3777
|
-
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
|
|
3778
|
-
}), dc = a({
|
|
3779
|
-
transformPagePoint: (e) => e,
|
|
3780
|
-
isStatic: !1,
|
|
3781
|
-
reducedMotion: "never"
|
|
3782
|
-
});
|
|
3783
|
-
//#endregion
|
|
3784
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
|
|
3785
|
-
function fc(e = !0) {
|
|
3786
|
-
let t = l(x);
|
|
3787
|
-
if (t === null) return [!0, null];
|
|
3788
|
-
let { isPresent: n, onExitComplete: r, register: i } = t, a = d();
|
|
3789
|
-
u(() => {
|
|
3790
|
-
if (e) return i(a);
|
|
3791
|
-
}, [e]);
|
|
3792
|
-
let o = c(() => e && r && r(a), [
|
|
3793
|
-
a,
|
|
3794
|
-
r,
|
|
3795
|
-
e
|
|
3796
|
-
]);
|
|
3797
|
-
return !n && r ? [!1, o] : [!0];
|
|
3798
|
-
}
|
|
3799
|
-
//#endregion
|
|
3800
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/LazyContext.mjs
|
|
3801
|
-
var pc = a({ strict: !1 }), mc = {
|
|
3802
|
-
animation: [
|
|
3803
|
-
"animate",
|
|
3804
|
-
"variants",
|
|
3805
|
-
"whileHover",
|
|
3806
|
-
"whileTap",
|
|
3807
|
-
"exit",
|
|
3808
|
-
"whileInView",
|
|
3809
|
-
"whileFocus",
|
|
3810
|
-
"whileDrag"
|
|
3811
|
-
],
|
|
3812
|
-
exit: ["exit"],
|
|
3813
|
-
drag: ["drag", "dragControls"],
|
|
3814
|
-
focus: ["whileFocus"],
|
|
3815
|
-
hover: [
|
|
3816
|
-
"whileHover",
|
|
3817
|
-
"onHoverStart",
|
|
3818
|
-
"onHoverEnd"
|
|
3819
|
-
],
|
|
3820
|
-
tap: [
|
|
3821
|
-
"whileTap",
|
|
3822
|
-
"onTap",
|
|
3823
|
-
"onTapStart",
|
|
3824
|
-
"onTapCancel"
|
|
3825
|
-
],
|
|
3826
|
-
pan: [
|
|
3827
|
-
"onPan",
|
|
3828
|
-
"onPanStart",
|
|
3829
|
-
"onPanSessionStart",
|
|
3830
|
-
"onPanEnd"
|
|
3831
|
-
],
|
|
3832
|
-
inView: [
|
|
3833
|
-
"whileInView",
|
|
3834
|
-
"onViewportEnter",
|
|
3835
|
-
"onViewportLeave"
|
|
3836
|
-
],
|
|
3837
|
-
layout: ["layout", "layoutId"]
|
|
3838
|
-
}, hc = !1;
|
|
3839
|
-
function gc() {
|
|
3840
|
-
if (hc) return;
|
|
3841
|
-
let e = {};
|
|
3842
|
-
for (let t in mc) e[t] = { isEnabled: (e) => mc[t].some((t) => !!e[t]) };
|
|
3843
|
-
Ma(e), hc = !0;
|
|
3844
|
-
}
|
|
3845
|
-
function _c() {
|
|
3846
|
-
return gc(), Na();
|
|
3847
|
-
}
|
|
3848
|
-
//#endregion
|
|
3849
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/load-features.mjs
|
|
3850
|
-
function vc(e) {
|
|
3851
|
-
let t = _c();
|
|
3852
|
-
for (let n in e) t[n] = {
|
|
3853
|
-
...t[n],
|
|
3854
|
-
...e[n]
|
|
3855
|
-
};
|
|
3856
|
-
Ma(t);
|
|
3857
|
-
}
|
|
3858
|
-
//#endregion
|
|
3859
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
|
|
3860
|
-
var yc = new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
|
|
3861
|
-
function bc(e) {
|
|
3862
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || yc.has(e);
|
|
3863
|
-
}
|
|
3864
|
-
//#endregion
|
|
3865
|
-
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
|
|
3866
|
-
var xc = /* @__PURE__ */ n({ default: () => Sc }), Sc, Cc = t((() => {
|
|
3867
|
-
throw Sc = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
|
|
3868
|
-
})), wc = (e) => !bc(e);
|
|
3869
|
-
function Tc(e) {
|
|
3870
|
-
typeof e == "function" && (wc = (t) => t.startsWith("on") ? !bc(t) : e(t));
|
|
3871
|
-
}
|
|
3872
|
-
try {
|
|
3873
|
-
Tc((Cc(), e(xc)).default);
|
|
3874
|
-
} catch {}
|
|
3875
|
-
function Ec(e, t, n) {
|
|
3876
|
-
let r = {};
|
|
3877
|
-
for (let i in e) i === "values" && typeof e.values == "object" || K(e[i]) || (wc(i) || n === !0 && bc(i) || !t && !bc(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
3878
|
-
return r;
|
|
3879
|
-
}
|
|
3880
|
-
//#endregion
|
|
3881
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
|
|
3882
|
-
var Dc = /* @__PURE__ */ a({});
|
|
3883
|
-
//#endregion
|
|
3884
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
|
|
3885
|
-
function Oc(e, t) {
|
|
3886
|
-
if (Ca(e)) {
|
|
3887
|
-
let { initial: t, animate: n } = e;
|
|
3888
|
-
return {
|
|
3889
|
-
initial: t === !1 || ba(t) ? t : void 0,
|
|
3890
|
-
animate: ba(n) ? n : void 0
|
|
3891
|
-
};
|
|
3892
|
-
}
|
|
3893
|
-
return e.inherit === !1 ? {} : t;
|
|
3894
|
-
}
|
|
3895
|
-
//#endregion
|
|
3896
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
|
|
3897
|
-
function kc(e) {
|
|
3898
|
-
let { initial: t, animate: n } = Oc(e, l(Dc));
|
|
3899
|
-
return m(() => ({
|
|
3900
|
-
initial: t,
|
|
3901
|
-
animate: n
|
|
3902
|
-
}), [Ac(t), Ac(n)]);
|
|
3903
|
-
}
|
|
3904
|
-
function Ac(e) {
|
|
3905
|
-
return Array.isArray(e) ? e.join(" ") : e;
|
|
3906
|
-
}
|
|
3907
|
-
//#endregion
|
|
3908
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
|
|
3909
|
-
var jc = () => ({
|
|
3910
|
-
style: {},
|
|
3911
|
-
transform: {},
|
|
3912
|
-
transformOrigin: {},
|
|
3913
|
-
vars: {}
|
|
3914
|
-
});
|
|
3915
|
-
//#endregion
|
|
3916
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/use-props.mjs
|
|
3917
|
-
function Mc(e, t, n) {
|
|
3918
|
-
for (let r in t) !K(t[r]) && !fo(r, n) && (e[r] = t[r]);
|
|
3919
|
-
}
|
|
3920
|
-
function Nc({ transformTemplate: e }, t) {
|
|
3921
|
-
return m(() => {
|
|
3922
|
-
let n = jc();
|
|
3923
|
-
return ao(n, t, e), Object.assign({}, n.vars, n.style);
|
|
3924
|
-
}, [t]);
|
|
3925
|
-
}
|
|
3926
|
-
function Pc(e, t) {
|
|
3927
|
-
let n = e.style || {}, r = {};
|
|
3928
|
-
return Mc(r, n, e), Object.assign(r, Nc(e, t)), r;
|
|
3929
|
-
}
|
|
3930
|
-
function Fc(e, t) {
|
|
3931
|
-
let n = {}, r = Pc(e, t);
|
|
3932
|
-
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
3933
|
-
}
|
|
3934
|
-
//#endregion
|
|
3935
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
|
|
3936
|
-
var Ic = () => ({
|
|
3937
|
-
...jc(),
|
|
3938
|
-
attrs: {}
|
|
3939
|
-
});
|
|
3940
|
-
//#endregion
|
|
3941
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/use-props.mjs
|
|
3942
|
-
function Lc(e, t, n, r) {
|
|
3943
|
-
let i = m(() => {
|
|
3944
|
-
let n = Ic();
|
|
3945
|
-
return bo(n, t, So(r), e.transformTemplate, e.style), {
|
|
3946
|
-
...n.attrs,
|
|
3947
|
-
style: { ...n.style }
|
|
3948
|
-
};
|
|
3949
|
-
}, [t]);
|
|
3950
|
-
if (e.style) {
|
|
3951
|
-
let t = {};
|
|
3952
|
-
Mc(t, e.style, e), i.style = {
|
|
3953
|
-
...t,
|
|
3954
|
-
...i.style
|
|
3955
|
-
};
|
|
3956
|
-
}
|
|
3957
|
-
return i;
|
|
3958
|
-
}
|
|
3959
|
-
//#endregion
|
|
3960
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
|
|
3961
|
-
var Rc = [
|
|
3962
|
-
"animate",
|
|
3963
|
-
"circle",
|
|
3964
|
-
"defs",
|
|
3965
|
-
"desc",
|
|
3966
|
-
"ellipse",
|
|
3967
|
-
"g",
|
|
3968
|
-
"image",
|
|
3969
|
-
"line",
|
|
3970
|
-
"filter",
|
|
3971
|
-
"marker",
|
|
3972
|
-
"mask",
|
|
3973
|
-
"metadata",
|
|
3974
|
-
"path",
|
|
3975
|
-
"pattern",
|
|
3976
|
-
"polygon",
|
|
3977
|
-
"polyline",
|
|
3978
|
-
"rect",
|
|
3979
|
-
"stop",
|
|
3980
|
-
"switch",
|
|
3981
|
-
"symbol",
|
|
3982
|
-
"svg",
|
|
3983
|
-
"text",
|
|
3984
|
-
"tspan",
|
|
3985
|
-
"use",
|
|
3986
|
-
"view"
|
|
3987
|
-
];
|
|
3988
|
-
//#endregion
|
|
3989
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
|
|
3990
|
-
function zc(e) {
|
|
3991
|
-
return typeof e != "string" || e.includes("-") ? !1 : !!(Rc.indexOf(e) > -1 || /[A-Z]/u.test(e));
|
|
3992
|
-
}
|
|
3993
|
-
//#endregion
|
|
3994
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/use-render.mjs
|
|
3995
|
-
function Bc(e, t, n, { latestValues: r }, a, s = !1, c) {
|
|
3996
|
-
let l = (c ?? zc(e) ? Lc : Fc)(t, r, a, e), u = Ec(t, typeof e == "string", s), d = e === i ? {} : {
|
|
3997
|
-
...u,
|
|
3998
|
-
...l,
|
|
3999
|
-
ref: n
|
|
4000
|
-
}, { children: f } = t, p = m(() => K(f) ? f.get() : f, [f]);
|
|
4001
|
-
return o(e, {
|
|
4002
|
-
...d,
|
|
4003
|
-
children: p
|
|
4004
|
-
});
|
|
4005
|
-
}
|
|
4006
|
-
//#endregion
|
|
4007
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
|
|
4008
|
-
function Vc({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
|
|
4009
|
-
return {
|
|
4010
|
-
latestValues: Hc(n, r, i, e),
|
|
4011
|
-
renderState: t()
|
|
4012
|
-
};
|
|
4013
|
-
}
|
|
4014
|
-
function Hc(e, t, n, r) {
|
|
4015
|
-
let i = {}, a = r(e, {});
|
|
4016
|
-
for (let e in a) i[e] = Es(a[e]);
|
|
4017
|
-
let { initial: o, animate: s } = e, c = Ca(e), l = wa(e);
|
|
4018
|
-
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
|
|
4019
|
-
let u = n ? n.initial === !1 : !1;
|
|
4020
|
-
u ||= o === !1;
|
|
4021
|
-
let d = u ? s : o;
|
|
4022
|
-
if (d && typeof d != "boolean" && !ya(d)) {
|
|
4023
|
-
let t = Array.isArray(d) ? d : [d];
|
|
4024
|
-
for (let n = 0; n < t.length; n++) {
|
|
4025
|
-
let r = Vr(e, t[n]);
|
|
4026
|
-
if (r) {
|
|
4027
|
-
let { transitionEnd: e, transition: t, ...n } = r;
|
|
4028
|
-
for (let e in n) {
|
|
4029
|
-
let t = n[e];
|
|
4030
|
-
if (Array.isArray(t)) {
|
|
4031
|
-
let e = u ? t.length - 1 : 0;
|
|
4032
|
-
t = t[e];
|
|
4033
|
-
}
|
|
4034
|
-
t !== null && (i[e] = t);
|
|
4035
|
-
}
|
|
4036
|
-
for (let t in e) i[t] = e[t];
|
|
4037
|
-
}
|
|
4038
|
-
}
|
|
4039
|
-
}
|
|
4040
|
-
return i;
|
|
4041
|
-
}
|
|
4042
|
-
var Uc = (e) => (t, n) => {
|
|
4043
|
-
let r = l(Dc), i = l(x), a = () => Vc(e, t, r, i);
|
|
4044
|
-
return n ? a() : y(a);
|
|
4045
|
-
}, Wc = /* @__PURE__ */ Uc({
|
|
4046
|
-
scrapeMotionValuesFromProps: po,
|
|
4047
|
-
createRenderState: jc
|
|
4048
|
-
}), Gc = /* @__PURE__ */ Uc({
|
|
4049
|
-
scrapeMotionValuesFromProps: wo,
|
|
4050
|
-
createRenderState: Ic
|
|
4051
|
-
}), Kc = Symbol.for("motionComponentSymbol");
|
|
4052
|
-
//#endregion
|
|
4053
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
|
|
4054
|
-
function qc(e, t, n) {
|
|
4055
|
-
let r = h(n);
|
|
4056
|
-
f(() => {
|
|
4057
|
-
r.current = n;
|
|
4058
|
-
});
|
|
4059
|
-
let i = h(null);
|
|
4060
|
-
return c((n) => {
|
|
4061
|
-
n && e.onMount?.(n);
|
|
4062
|
-
let a = r.current;
|
|
4063
|
-
if (typeof a == "function") if (n) {
|
|
4064
|
-
let e = a(n);
|
|
4065
|
-
typeof e == "function" && (i.current = e);
|
|
4066
|
-
} else i.current ? (i.current(), i.current = null) : a(n);
|
|
4067
|
-
else a && (a.current = n);
|
|
4068
|
-
t && (n ? t.mount(n) : t.unmount());
|
|
4069
|
-
}, [t]);
|
|
4070
|
-
}
|
|
4071
|
-
//#endregion
|
|
4072
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
|
|
4073
|
-
var Jc = a({});
|
|
4074
|
-
//#endregion
|
|
4075
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
|
|
4076
|
-
function Yc(e) {
|
|
4077
|
-
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
4078
|
-
}
|
|
4079
|
-
//#endregion
|
|
4080
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
|
|
4081
|
-
function Xc(e, t, n, r, i, a) {
|
|
4082
|
-
let { visualElement: o } = l(Dc), s = l(pc), c = l(x), d = l(dc), p = d.reducedMotion, m = d.skipAnimations, g = h(null), _ = h(!1);
|
|
4083
|
-
r ||= s.renderer, !g.current && r && (g.current = r(e, {
|
|
4084
|
-
visualState: t,
|
|
4085
|
-
parent: o,
|
|
4086
|
-
props: n,
|
|
4087
|
-
presenceContext: c,
|
|
4088
|
-
blockInitialAnimation: c ? c.initial === !1 : !1,
|
|
4089
|
-
reducedMotionConfig: p,
|
|
4090
|
-
skipAnimations: m,
|
|
4091
|
-
isSVG: a
|
|
4092
|
-
}), _.current && g.current && (g.current.manuallyAnimateOnMount = !0));
|
|
4093
|
-
let v = g.current, y = l(Jc);
|
|
4094
|
-
v && !v.projection && i && (v.type === "html" || v.type === "svg") && Zc(g.current, n, i, y);
|
|
4095
|
-
let S = h(!1);
|
|
4096
|
-
f(() => {
|
|
4097
|
-
v && S.current && v.update(n, c);
|
|
4098
|
-
});
|
|
4099
|
-
let C = n[ni], w = h(!!C && typeof window < "u" && !window.MotionHandoffIsComplete?.(C) && window.MotionHasOptimisedAnimation?.(C));
|
|
4100
|
-
return b(() => {
|
|
4101
|
-
_.current = !0, v && (S.current = !0, window.MotionIsMounted = !0, v.updateFeatures(), v.scheduleRenderMicrotask(), w.current && v.animationState && v.animationState.animateChanges());
|
|
4102
|
-
}), u(() => {
|
|
4103
|
-
v && (!w.current && v.animationState && v.animationState.animateChanges(), w.current &&= (queueMicrotask(() => {
|
|
4104
|
-
window.MotionHandoffMarkAsComplete?.(C);
|
|
4105
|
-
}), !1), v.enteringChildren = void 0);
|
|
4106
|
-
}), v;
|
|
4107
|
-
}
|
|
4108
|
-
function Zc(e, t, n, r) {
|
|
4109
|
-
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
|
|
4110
|
-
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Qc(e.parent)), e.projection.setOptions({
|
|
4111
|
-
layoutId: i,
|
|
4112
|
-
layout: a,
|
|
4113
|
-
alwaysMeasureLayout: !!o || s && Yc(s),
|
|
4114
|
-
visualElement: e,
|
|
4115
|
-
animationType: typeof a == "string" ? a : "both",
|
|
4116
|
-
initialPromotionConfig: r,
|
|
4117
|
-
crossfade: d,
|
|
4118
|
-
layoutScroll: c,
|
|
4119
|
-
layoutRoot: l,
|
|
4120
|
-
layoutAnchor: u
|
|
4121
|
-
});
|
|
4122
|
-
}
|
|
4123
|
-
function Qc(e) {
|
|
4124
|
-
if (e) return e.options.allowProjection === !1 ? Qc(e.parent) : e.projection;
|
|
4125
|
-
}
|
|
4126
|
-
//#endregion
|
|
4127
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/index.mjs
|
|
4128
|
-
function $c(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
|
|
4129
|
-
r && vc(r);
|
|
4130
|
-
let a = n ? n === "svg" : zc(e), o = a ? Gc : Wc;
|
|
4131
|
-
function c(n, s) {
|
|
4132
|
-
let c, u = {
|
|
4133
|
-
...l(dc),
|
|
4134
|
-
...n,
|
|
4135
|
-
layoutId: el(n)
|
|
4136
|
-
}, { isStatic: d } = u, f = kc(n), p = o(n, d);
|
|
4137
|
-
if (!d && typeof window < "u") {
|
|
4138
|
-
tl(u, r);
|
|
4139
|
-
let t = nl(u);
|
|
4140
|
-
c = t.MeasureLayout, f.visualElement = Xc(e, p, u, i, t.ProjectionNode, a);
|
|
4141
|
-
}
|
|
4142
|
-
return _(Dc.Provider, {
|
|
4143
|
-
value: f,
|
|
4144
|
-
children: [c && f.visualElement ? g(c, {
|
|
4145
|
-
visualElement: f.visualElement,
|
|
4146
|
-
...u
|
|
4147
|
-
}) : null, Bc(e, n, qc(p, f.visualElement, s), p, d, t, a)]
|
|
4148
|
-
});
|
|
4149
|
-
}
|
|
4150
|
-
c.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
4151
|
-
let u = s(c);
|
|
4152
|
-
return u[Kc] = e, u;
|
|
4153
|
-
}
|
|
4154
|
-
function el({ layoutId: e }) {
|
|
4155
|
-
let t = l(v).id;
|
|
4156
|
-
return t && e !== void 0 ? t + "-" + e : e;
|
|
4157
|
-
}
|
|
4158
|
-
function tl(e, t) {
|
|
4159
|
-
let n = l(pc).strict;
|
|
4160
|
-
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
4161
|
-
let t = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
4162
|
-
e.ignoreStrict ? E(!1, t, "lazy-strict-mode") : D(!1, t, "lazy-strict-mode");
|
|
4163
|
-
}
|
|
4164
|
-
}
|
|
4165
|
-
function nl(e) {
|
|
4166
|
-
let { drag: t, layout: n } = _c();
|
|
4167
|
-
if (!t && !n) return {};
|
|
4168
|
-
let r = {
|
|
4169
|
-
...t,
|
|
4170
|
-
...n
|
|
4171
|
-
};
|
|
4172
|
-
return {
|
|
4173
|
-
MeasureLayout: t?.isEnabled(e) || n?.isEnabled(e) ? r.MeasureLayout : void 0,
|
|
4174
|
-
ProjectionNode: r.ProjectionNode
|
|
4175
|
-
};
|
|
4176
|
-
}
|
|
4177
|
-
//#endregion
|
|
4178
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
|
|
4179
|
-
function rl(e, t) {
|
|
4180
|
-
if (typeof Proxy > "u") return $c;
|
|
4181
|
-
let n = /* @__PURE__ */ new Map(), r = (n, r) => $c(n, r, e, t);
|
|
4182
|
-
return new Proxy((e, t) => (process.env.NODE_ENV !== "production" && ue(!1, "motion() is deprecated. Use motion.create() instead."), r(e, t)), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, $c(a, void 0, e, t)), n.get(a)) });
|
|
4183
|
-
}
|
|
4184
|
-
//#endregion
|
|
4185
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
|
|
4186
|
-
var il = (e, t) => t.isSVG ?? zc(e) ? new To(t) : new ho(t, { allowProjection: e !== i }), al = class extends Y {
|
|
4187
|
-
constructor(e) {
|
|
4188
|
-
super(e), e.animationState ||= Mo(e);
|
|
4189
|
-
}
|
|
4190
|
-
updateAnimationControlsSubscription() {
|
|
4191
|
-
let { animate: e } = this.node.getProps();
|
|
4192
|
-
ya(e) && (this.unmountControls = e.subscribe(this.node));
|
|
4193
|
-
}
|
|
4194
|
-
mount() {
|
|
4195
|
-
this.updateAnimationControlsSubscription();
|
|
4196
|
-
}
|
|
4197
|
-
update() {
|
|
4198
|
-
let { animate: e } = this.node.getProps(), { animate: t } = this.node.prevProps || {};
|
|
4199
|
-
e !== t && this.updateAnimationControlsSubscription();
|
|
4200
|
-
}
|
|
4201
|
-
unmount() {
|
|
4202
|
-
this.node.animationState.reset(), this.unmountControls?.();
|
|
4203
|
-
}
|
|
4204
|
-
}, ol = 0, sl = {
|
|
4205
|
-
animation: { Feature: al },
|
|
4206
|
-
exit: { Feature: class extends Y {
|
|
4207
|
-
constructor() {
|
|
4208
|
-
super(...arguments), this.id = ol++, this.isExitComplete = !1;
|
|
4209
|
-
}
|
|
4210
|
-
update() {
|
|
4211
|
-
if (!this.node.presenceContext) return;
|
|
4212
|
-
let { isPresent: e, onExitComplete: t } = this.node.presenceContext, { isPresent: n } = this.node.prevPresenceContext || {};
|
|
4213
|
-
if (!this.node.animationState || e === n) return;
|
|
4214
|
-
if (e && n === !1) {
|
|
4215
|
-
if (this.isExitComplete) {
|
|
4216
|
-
let { initial: e, custom: t } = this.node.getProps();
|
|
4217
|
-
if (typeof e == "string") {
|
|
4218
|
-
let n = Hr(this.node, e, t);
|
|
4219
|
-
if (n) {
|
|
4220
|
-
let { transition: e, transitionEnd: t, ...r } = n;
|
|
4221
|
-
for (let e in r) this.node.getValue(e)?.jump(r[e]);
|
|
4222
|
-
}
|
|
4223
|
-
}
|
|
4224
|
-
this.node.animationState.reset(), this.node.animationState.animateChanges();
|
|
4225
|
-
} else this.node.animationState.setActive("exit", !1);
|
|
4226
|
-
this.isExitComplete = !1;
|
|
4227
|
-
return;
|
|
4228
|
-
}
|
|
4229
|
-
let r = this.node.animationState.setActive("exit", !e);
|
|
4230
|
-
t && !e && r.then(() => {
|
|
4231
|
-
this.isExitComplete = !0, t(this.id);
|
|
4232
|
-
});
|
|
4233
|
-
}
|
|
4234
|
-
mount() {
|
|
4235
|
-
let { register: e, onExitComplete: t } = this.node.presenceContext || {};
|
|
4236
|
-
t && t(this.id), e && (this.unmount = e(this.id));
|
|
4237
|
-
}
|
|
4238
|
-
unmount() {}
|
|
4239
|
-
} }
|
|
4240
|
-
};
|
|
4241
|
-
//#endregion
|
|
4242
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/events/event-info.mjs
|
|
4243
|
-
function cl(e) {
|
|
4244
|
-
return { point: {
|
|
4245
|
-
x: e.pageX,
|
|
4246
|
-
y: e.pageY
|
|
4247
|
-
} };
|
|
4248
|
-
}
|
|
4249
|
-
var ll = (e) => (t) => zi(t) && e(t, cl(t));
|
|
4250
|
-
//#endregion
|
|
4251
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
|
|
4252
|
-
function ul(e, t, n, r) {
|
|
4253
|
-
return Ss(e, t, ll(n), r);
|
|
4254
|
-
}
|
|
4255
|
-
//#endregion
|
|
4256
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/get-context-window.mjs
|
|
4257
|
-
var dl = ({ current: e }) => e ? e.ownerDocument.defaultView : null, fl = (e, t) => Math.abs(e - t);
|
|
4258
|
-
function pl(e, t) {
|
|
4259
|
-
let n = fl(e.x, t.x), r = fl(e.y, t.y);
|
|
4260
|
-
return Math.sqrt(n ** 2 + r ** 2);
|
|
4261
|
-
}
|
|
4262
|
-
//#endregion
|
|
4263
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
|
|
4264
|
-
var ml = /* @__PURE__ */ new Set(["auto", "scroll"]), hl = class {
|
|
4265
|
-
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
|
|
4266
|
-
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
|
|
4267
|
-
this.handleScroll(e.target);
|
|
4268
|
-
}, this.onWindowScroll = () => {
|
|
4269
|
-
this.handleScroll(window);
|
|
4270
|
-
}, this.updatePoint = () => {
|
|
4271
|
-
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
4272
|
-
this.lastRawMoveEventInfo && (this.lastMoveEventInfo = gl(this.lastRawMoveEventInfo, this.transformPagePoint));
|
|
4273
|
-
let e = vl(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = pl(e.offset, {
|
|
4274
|
-
x: 0,
|
|
4275
|
-
y: 0
|
|
4276
|
-
}) >= this.distanceThreshold;
|
|
4277
|
-
if (!t && !n) return;
|
|
4278
|
-
let { point: r } = e, { timestamp: i } = F;
|
|
4279
|
-
this.history.push({
|
|
4280
|
-
...r,
|
|
4281
|
-
timestamp: i
|
|
4282
|
-
});
|
|
4283
|
-
let { onStart: a, onMove: o } = this.handlers;
|
|
4284
|
-
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
|
|
4285
|
-
}, this.handlePointerMove = (e, t) => {
|
|
4286
|
-
this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = gl(t, this.transformPagePoint), N.update(this.updatePoint, !0);
|
|
4287
|
-
}, this.handlePointerUp = (e, t) => {
|
|
4288
|
-
this.end();
|
|
4289
|
-
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
|
|
4290
|
-
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
4291
|
-
let a = vl(e.type === "pointercancel" ? this.lastMoveEventInfo : gl(t, this.transformPagePoint), this.history);
|
|
4292
|
-
this.startEvent && n && n(e, a), r && r(e, a);
|
|
4293
|
-
}, !zi(e)) return;
|
|
4294
|
-
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
|
|
4295
|
-
let s = gl(cl(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = F;
|
|
4296
|
-
this.history = [{
|
|
4297
|
-
...c,
|
|
4298
|
-
timestamp: l
|
|
4299
|
-
}];
|
|
4300
|
-
let { onSessionStart: u } = t;
|
|
4301
|
-
u && u(e, vl(s, this.history)), this.removeListeners = ae(ul(this.contextWindow, "pointermove", this.handlePointerMove), ul(this.contextWindow, "pointerup", this.handlePointerUp), ul(this.contextWindow, "pointercancel", this.handlePointerUp)), o && this.startScrollTracking(o);
|
|
4302
|
-
}
|
|
4303
|
-
startScrollTracking(e) {
|
|
4304
|
-
let t = e.parentElement;
|
|
4305
|
-
for (; t;) {
|
|
4306
|
-
let e = getComputedStyle(t);
|
|
4307
|
-
(ml.has(e.overflowX) || ml.has(e.overflowY)) && this.scrollPositions.set(t, {
|
|
4308
|
-
x: t.scrollLeft,
|
|
4309
|
-
y: t.scrollTop
|
|
4310
|
-
}), t = t.parentElement;
|
|
4311
|
-
}
|
|
4312
|
-
this.scrollPositions.set(window, {
|
|
4313
|
-
x: window.scrollX,
|
|
4314
|
-
y: window.scrollY
|
|
4315
|
-
}), window.addEventListener("scroll", this.onElementScroll, { capture: !0 }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
|
|
4316
|
-
window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
|
|
4317
|
-
};
|
|
4318
|
-
}
|
|
4319
|
-
handleScroll(e) {
|
|
4320
|
-
let t = this.scrollPositions.get(e);
|
|
4321
|
-
if (!t) return;
|
|
4322
|
-
let n = e === window, r = n ? {
|
|
4323
|
-
x: window.scrollX,
|
|
4324
|
-
y: window.scrollY
|
|
4325
|
-
} : {
|
|
4326
|
-
x: e.scrollLeft,
|
|
4327
|
-
y: e.scrollTop
|
|
4328
|
-
}, i = {
|
|
4329
|
-
x: r.x - t.x,
|
|
4330
|
-
y: r.y - t.y
|
|
4331
|
-
};
|
|
4332
|
-
i.x === 0 && i.y === 0 || (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), N.update(this.updatePoint, !0));
|
|
4333
|
-
}
|
|
4334
|
-
updateHandlers(e) {
|
|
4335
|
-
this.handlers = e;
|
|
4336
|
-
}
|
|
4337
|
-
end() {
|
|
4338
|
-
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), P(this.updatePoint);
|
|
4339
|
-
}
|
|
4340
|
-
};
|
|
4341
|
-
function gl(e, t) {
|
|
4342
|
-
return t ? { point: t(e.point) } : e;
|
|
4343
|
-
}
|
|
4344
|
-
function _l(e, t) {
|
|
4345
|
-
return {
|
|
4346
|
-
x: e.x - t.x,
|
|
4347
|
-
y: e.y - t.y
|
|
4348
|
-
};
|
|
4349
|
-
}
|
|
4350
|
-
function vl({ point: e }, t) {
|
|
4351
|
-
return {
|
|
4352
|
-
point: e,
|
|
4353
|
-
delta: _l(e, bl(t)),
|
|
4354
|
-
offset: _l(e, yl(t)),
|
|
4355
|
-
velocity: xl(t, .1)
|
|
4356
|
-
};
|
|
4357
|
-
}
|
|
4358
|
-
function yl(e) {
|
|
4359
|
-
return e[0];
|
|
4360
|
-
}
|
|
4361
|
-
function bl(e) {
|
|
4362
|
-
return e[e.length - 1];
|
|
4363
|
-
}
|
|
4364
|
-
function xl(e, t) {
|
|
4365
|
-
if (e.length < 2) return {
|
|
4366
|
-
x: 0,
|
|
4367
|
-
y: 0
|
|
4368
|
-
};
|
|
4369
|
-
let n = e.length - 1, r = null, i = bl(e);
|
|
4370
|
-
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ A(t)));) n--;
|
|
4371
|
-
if (!r) return {
|
|
4372
|
-
x: 0,
|
|
4373
|
-
y: 0
|
|
4374
|
-
};
|
|
4375
|
-
r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ A(t) * 2 && (r = e[1]);
|
|
4376
|
-
let a = /* @__PURE__ */ j(i.timestamp - r.timestamp);
|
|
4377
|
-
if (a === 0) return {
|
|
4378
|
-
x: 0,
|
|
4379
|
-
y: 0
|
|
4380
|
-
};
|
|
4381
|
-
let o = {
|
|
4382
|
-
x: (i.x - r.x) / a,
|
|
4383
|
-
y: (i.y - r.y) / a
|
|
4384
|
-
};
|
|
4385
|
-
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
|
|
4386
|
-
}
|
|
4387
|
-
//#endregion
|
|
4388
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
|
|
4389
|
-
function Sl(e, { min: t, max: n }, r) {
|
|
4390
|
-
return t !== void 0 && e < t ? e = r ? H(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? H(n, e, r.max) : Math.min(e, n)), e;
|
|
4391
|
-
}
|
|
4392
|
-
function Cl(e, t, n) {
|
|
4393
|
-
return {
|
|
4394
|
-
min: t === void 0 ? void 0 : e.min + t,
|
|
4395
|
-
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
|
|
4396
|
-
};
|
|
4397
|
-
}
|
|
4398
|
-
function wl(e, { top: t, left: n, bottom: r, right: i }) {
|
|
4399
|
-
return {
|
|
4400
|
-
x: Cl(e.x, n, i),
|
|
4401
|
-
y: Cl(e.y, t, r)
|
|
4402
|
-
};
|
|
4403
|
-
}
|
|
4404
|
-
function Tl(e, t) {
|
|
4405
|
-
let n = t.min - e.min, r = t.max - e.max;
|
|
4406
|
-
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
|
|
4407
|
-
min: n,
|
|
4408
|
-
max: r
|
|
4409
|
-
};
|
|
4410
|
-
}
|
|
4411
|
-
function El(e, t) {
|
|
4412
|
-
return {
|
|
4413
|
-
x: Tl(e.x, t.x),
|
|
4414
|
-
y: Tl(e.y, t.y)
|
|
4415
|
-
};
|
|
4416
|
-
}
|
|
4417
|
-
function Dl(e, t) {
|
|
4418
|
-
let n = .5, r = Q(e), i = Q(t);
|
|
4419
|
-
return i > r ? n = /* @__PURE__ */ oe(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ oe(e.min, e.max - i, t.min)), w(0, 1, n);
|
|
4420
|
-
}
|
|
4421
|
-
function Ol(e, t) {
|
|
4422
|
-
let n = {};
|
|
4423
|
-
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
4424
|
-
}
|
|
4425
|
-
var kl = .35;
|
|
4426
|
-
function Al(e = kl) {
|
|
4427
|
-
return e === !1 ? e = 0 : e === !0 && (e = kl), {
|
|
4428
|
-
x: jl(e, "left", "right"),
|
|
4429
|
-
y: jl(e, "top", "bottom")
|
|
4430
|
-
};
|
|
4431
|
-
}
|
|
4432
|
-
function jl(e, t, n) {
|
|
4433
|
-
return {
|
|
4434
|
-
min: Ml(e, t),
|
|
4435
|
-
max: Ml(e, n)
|
|
4436
|
-
};
|
|
4437
|
-
}
|
|
4438
|
-
function Ml(e, t) {
|
|
4439
|
-
return typeof e == "number" ? e : e[t] || 0;
|
|
4440
|
-
}
|
|
4441
|
-
//#endregion
|
|
4442
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
|
|
4443
|
-
var Nl = /* @__PURE__ */ new WeakMap(), Pl = class {
|
|
4444
|
-
constructor(e) {
|
|
4445
|
-
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
|
|
4446
|
-
x: 0,
|
|
4447
|
-
y: 0
|
|
4448
|
-
}, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = J(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
|
|
4449
|
-
}
|
|
4450
|
-
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
|
|
4451
|
-
let { presenceContext: r } = this.visualElement;
|
|
4452
|
-
if (r && r.isPresent === !1) return;
|
|
4453
|
-
let i = (e) => {
|
|
4454
|
-
t && this.snapToCursor(cl(e).point), this.stopAnimation();
|
|
4455
|
-
}, a = (e, t) => {
|
|
4456
|
-
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
|
|
4457
|
-
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Pi(n), !this.openDragLock)) return;
|
|
4458
|
-
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), $((e) => {
|
|
4459
|
-
let t = this.getAxisMotionValue(e).get() || 0;
|
|
4460
|
-
if (R.test(t)) {
|
|
4461
|
-
let { projection: n } = this.visualElement;
|
|
4462
|
-
if (n && n.layout) {
|
|
4463
|
-
let r = n.layout.layoutBox[e];
|
|
4464
|
-
r && (t = Q(r) * (parseFloat(t) / 100));
|
|
4465
|
-
}
|
|
4466
|
-
}
|
|
4467
|
-
this.originPoint[e] = t;
|
|
4468
|
-
}), i && N.update(() => i(e, t), !1, !0), ei(this.visualElement, "transform");
|
|
4469
|
-
let { animationState: a } = this.visualElement;
|
|
4470
|
-
a && a.setActive("whileDrag", !0);
|
|
4471
|
-
}, o = (e, t) => {
|
|
4472
|
-
this.latestPointerEvent = e, this.latestPanInfo = t;
|
|
4473
|
-
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
|
|
4474
|
-
if (!n && !this.openDragLock) return;
|
|
4475
|
-
let { offset: o } = t;
|
|
4476
|
-
if (r && this.currentDirection === null) {
|
|
4477
|
-
this.currentDirection = Rl(o), this.currentDirection !== null && i && i(this.currentDirection);
|
|
4478
|
-
return;
|
|
4479
|
-
}
|
|
4480
|
-
this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && N.update(() => a(e, t), !1, !0);
|
|
4481
|
-
}, s = (e, t) => {
|
|
4482
|
-
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
4483
|
-
}, c = () => {
|
|
4484
|
-
let { dragSnapToOrigin: e } = this.getProps();
|
|
4485
|
-
(e || this.constraints) && this.startAnimation({
|
|
4486
|
-
x: 0,
|
|
4487
|
-
y: 0
|
|
4488
|
-
});
|
|
4489
|
-
}, { dragSnapToOrigin: l } = this.getProps();
|
|
4490
|
-
this.panSession = new hl(e, {
|
|
4491
|
-
onSessionStart: i,
|
|
4492
|
-
onStart: a,
|
|
4493
|
-
onMove: o,
|
|
4494
|
-
onSessionEnd: s,
|
|
4495
|
-
resumeAnimation: c
|
|
4496
|
-
}, {
|
|
4497
|
-
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
4498
|
-
dragSnapToOrigin: l,
|
|
4499
|
-
distanceThreshold: n,
|
|
4500
|
-
contextWindow: dl(this.visualElement),
|
|
4501
|
-
element: this.visualElement.current
|
|
4502
|
-
});
|
|
4503
|
-
}
|
|
4504
|
-
stop(e, t) {
|
|
4505
|
-
let n = e || this.latestPointerEvent, r = t || this.latestPanInfo, i = this.isDragging;
|
|
4506
|
-
if (this.cancel(), !i || !r || !n) return;
|
|
4507
|
-
let { velocity: a } = r;
|
|
4508
|
-
this.startAnimation(a);
|
|
4509
|
-
let { onDragEnd: o } = this.getProps();
|
|
4510
|
-
o && N.postRender(() => o(n, r));
|
|
4511
|
-
}
|
|
4512
|
-
cancel() {
|
|
4513
|
-
this.isDragging = !1;
|
|
4514
|
-
let { projection: e, animationState: t } = this.visualElement;
|
|
4515
|
-
e && (e.isAnimationBlocked = !1), this.endPanSession();
|
|
4516
|
-
let { dragPropagation: n } = this.getProps();
|
|
4517
|
-
!n && this.openDragLock && (this.openDragLock(), this.openDragLock = null), t && t.setActive("whileDrag", !1);
|
|
4518
|
-
}
|
|
4519
|
-
endPanSession() {
|
|
4520
|
-
this.panSession && this.panSession.end(), this.panSession = void 0;
|
|
4521
|
-
}
|
|
4522
|
-
updateAxis(e, t, n) {
|
|
4523
|
-
let { drag: r } = this.getProps();
|
|
4524
|
-
if (!n || !Ll(e, r, this.currentDirection)) return;
|
|
4525
|
-
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
|
|
4526
|
-
this.constraints && this.constraints[e] && (a = Sl(a, this.constraints[e], this.elastic[e])), i.set(a);
|
|
4527
|
-
}
|
|
4528
|
-
resolveConstraints() {
|
|
4529
|
-
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
|
|
4530
|
-
e && Yc(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints = wl(n.layoutBox, e) : this.constraints = !1, this.elastic = Al(t), r !== this.constraints && !Yc(e) && n && this.constraints && !this.hasMutatedConstraints && $((e) => {
|
|
4531
|
-
this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Ol(n.layoutBox[e], this.constraints[e]));
|
|
4532
|
-
});
|
|
4533
|
-
}
|
|
4534
|
-
resolveRefConstraints() {
|
|
4535
|
-
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
|
|
4536
|
-
if (!e || !Yc(e)) return !1;
|
|
4537
|
-
let n = e.current;
|
|
4538
|
-
D(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
|
|
4539
|
-
let { projection: r } = this.visualElement;
|
|
4540
|
-
if (!r || !r.layout) return !1;
|
|
4541
|
-
let i = to(n, r.root, this.visualElement.getTransformPagePoint()), a = El(r.layout.layoutBox, i);
|
|
4542
|
-
if (t) {
|
|
4543
|
-
let e = t(La(a));
|
|
4544
|
-
this.hasMutatedConstraints = !!e, e && (a = Ia(e));
|
|
4545
|
-
}
|
|
4546
|
-
return a;
|
|
4547
|
-
}
|
|
4548
|
-
startAnimation(e) {
|
|
4549
|
-
let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = $((o) => {
|
|
4550
|
-
if (!Ll(o, t, this.currentDirection)) return;
|
|
4551
|
-
let c = s && s[o] || {};
|
|
4552
|
-
(a === !0 || a === o) && (c = {
|
|
4553
|
-
min: 0,
|
|
4554
|
-
max: 0
|
|
4555
|
-
});
|
|
4556
|
-
let l = r ? 200 : 1e6, u = r ? 40 : 1e7, d = {
|
|
4557
|
-
type: "inertia",
|
|
4558
|
-
velocity: n ? e[o] : 0,
|
|
4559
|
-
bounceStiffness: l,
|
|
4560
|
-
bounceDamping: u,
|
|
4561
|
-
timeConstant: 750,
|
|
4562
|
-
restDelta: 1,
|
|
4563
|
-
restSpeed: 10,
|
|
4564
|
-
...i,
|
|
4565
|
-
...c
|
|
4566
|
-
};
|
|
4567
|
-
return this.startAxisValueAnimation(o, d);
|
|
4568
|
-
});
|
|
4569
|
-
return Promise.all(c).then(o);
|
|
4570
|
-
}
|
|
4571
|
-
startAxisValueAnimation(e, t) {
|
|
4572
|
-
let n = this.getAxisMotionValue(e);
|
|
4573
|
-
return ei(this.visualElement, e), n.start(zr(e, n, 0, t, this.visualElement, !1));
|
|
4574
|
-
}
|
|
4575
|
-
stopAnimation() {
|
|
4576
|
-
$((e) => this.getAxisMotionValue(e).stop());
|
|
4577
|
-
}
|
|
4578
|
-
getAxisMotionValue(e) {
|
|
4579
|
-
let t = `_drag${e.toUpperCase()}`, n = this.visualElement.getProps();
|
|
4580
|
-
return n[t] || this.visualElement.getValue(e, (n.initial ? n.initial[e] : void 0) || 0);
|
|
4581
|
-
}
|
|
4582
|
-
snapToCursor(e) {
|
|
4583
|
-
$((t) => {
|
|
4584
|
-
let { drag: n } = this.getProps();
|
|
4585
|
-
if (!Ll(t, n, this.currentDirection)) return;
|
|
4586
|
-
let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
|
|
4587
|
-
if (r && r.layout) {
|
|
4588
|
-
let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
|
|
4589
|
-
i.set(e[t] - H(n, a, .5) + o);
|
|
4590
|
-
}
|
|
4591
|
-
});
|
|
4592
|
-
}
|
|
4593
|
-
scalePositionWithinConstraints() {
|
|
4594
|
-
if (!this.visualElement.current) return;
|
|
4595
|
-
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
|
|
4596
|
-
if (!Yc(t) || !n || !this.constraints) return;
|
|
4597
|
-
this.stopAnimation();
|
|
4598
|
-
let r = {
|
|
4599
|
-
x: 0,
|
|
4600
|
-
y: 0
|
|
4601
|
-
};
|
|
4602
|
-
$((e) => {
|
|
4603
|
-
let t = this.getAxisMotionValue(e);
|
|
4604
|
-
if (t && this.constraints !== !1) {
|
|
4605
|
-
let n = t.get();
|
|
4606
|
-
r[e] = Dl({
|
|
4607
|
-
min: n,
|
|
4608
|
-
max: n
|
|
4609
|
-
}, this.constraints[e]);
|
|
4610
|
-
}
|
|
4611
|
-
});
|
|
4612
|
-
let { transformTemplate: i } = this.visualElement.getProps();
|
|
4613
|
-
this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), $((t) => {
|
|
4614
|
-
if (!Ll(t, e, null)) return;
|
|
4615
|
-
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
|
|
4616
|
-
n.set(H(i, a, r[t]));
|
|
4617
|
-
}), this.visualElement.render();
|
|
4618
|
-
}
|
|
4619
|
-
addListeners() {
|
|
4620
|
-
if (!this.visualElement.current) return;
|
|
4621
|
-
Nl.set(this.visualElement, this);
|
|
4622
|
-
let e = this.visualElement.current, t = ul(e, "pointerdown", (t) => {
|
|
4623
|
-
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Ui(i);
|
|
4624
|
-
n && r && !a && this.start(t);
|
|
4625
|
-
}), n, r = () => {
|
|
4626
|
-
let { dragConstraints: t } = this.getProps();
|
|
4627
|
-
Yc(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Il(e, t.current, () => this.scalePositionWithinConstraints()));
|
|
4628
|
-
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
|
|
4629
|
-
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), N.read(r);
|
|
4630
|
-
let o = Ss(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
|
|
4631
|
-
this.isDragging && t && ($((t) => {
|
|
4632
|
-
let n = this.getAxisMotionValue(t);
|
|
4633
|
-
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
|
|
4634
|
-
}), this.visualElement.render());
|
|
4635
|
-
}));
|
|
4636
|
-
return () => {
|
|
4637
|
-
o(), t(), a(), s && s(), n && n();
|
|
4638
|
-
};
|
|
4639
|
-
}
|
|
4640
|
-
getProps() {
|
|
4641
|
-
let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = kl, dragMomentum: o = !0 } = e;
|
|
4642
|
-
return {
|
|
4643
|
-
...e,
|
|
4644
|
-
drag: t,
|
|
4645
|
-
dragDirectionLock: n,
|
|
4646
|
-
dragPropagation: r,
|
|
4647
|
-
dragConstraints: i,
|
|
4648
|
-
dragElastic: a,
|
|
4649
|
-
dragMomentum: o
|
|
4650
|
-
};
|
|
4651
|
-
}
|
|
4652
|
-
};
|
|
4653
|
-
function Fl(e) {
|
|
4654
|
-
let t = !0;
|
|
4655
|
-
return () => {
|
|
4656
|
-
if (t) {
|
|
4657
|
-
t = !1;
|
|
4658
|
-
return;
|
|
4659
|
-
}
|
|
4660
|
-
e();
|
|
4661
|
-
};
|
|
4662
|
-
}
|
|
4663
|
-
function Il(e, t, n) {
|
|
4664
|
-
let r = da(e, Fl(n)), i = da(t, Fl(n));
|
|
4665
|
-
return () => {
|
|
4666
|
-
r(), i();
|
|
4667
|
-
};
|
|
4668
|
-
}
|
|
4669
|
-
function Ll(e, t, n) {
|
|
4670
|
-
return (t === !0 || t === e) && (n === null || n === e);
|
|
4671
|
-
}
|
|
4672
|
-
function Rl(e, t = 10) {
|
|
4673
|
-
let n = null;
|
|
4674
|
-
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
4675
|
-
}
|
|
4676
|
-
//#endregion
|
|
4677
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/index.mjs
|
|
4678
|
-
var zl = class extends Y {
|
|
4679
|
-
constructor(e) {
|
|
4680
|
-
super(e), this.removeGroupControls = k, this.removeListeners = k, this.controls = new Pl(e);
|
|
4681
|
-
}
|
|
4682
|
-
mount() {
|
|
4683
|
-
let { dragControls: e } = this.node.getProps();
|
|
4684
|
-
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || k;
|
|
4685
|
-
}
|
|
4686
|
-
update() {
|
|
4687
|
-
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
|
|
4688
|
-
e !== t && (this.removeGroupControls(), e && (this.removeGroupControls = e.subscribe(this.controls)));
|
|
4689
|
-
}
|
|
4690
|
-
unmount() {
|
|
4691
|
-
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
|
|
4692
|
-
}
|
|
4693
|
-
}, Bl = (e) => (t, n) => {
|
|
4694
|
-
e && N.update(() => e(t, n), !1, !0);
|
|
4695
|
-
}, Vl = class extends Y {
|
|
4696
|
-
constructor() {
|
|
4697
|
-
super(...arguments), this.removePointerDownListener = k;
|
|
4698
|
-
}
|
|
4699
|
-
onPointerDown(e) {
|
|
4700
|
-
this.session = new hl(e, this.createPanHandlers(), {
|
|
4701
|
-
transformPagePoint: this.node.getTransformPagePoint(),
|
|
4702
|
-
contextWindow: dl(this.node)
|
|
4703
|
-
});
|
|
4704
|
-
}
|
|
4705
|
-
createPanHandlers() {
|
|
4706
|
-
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
|
|
4707
|
-
return {
|
|
4708
|
-
onSessionStart: Bl(e),
|
|
4709
|
-
onStart: Bl(t),
|
|
4710
|
-
onMove: Bl(n),
|
|
4711
|
-
onEnd: (e, t) => {
|
|
4712
|
-
delete this.session, r && N.postRender(() => r(e, t));
|
|
4713
|
-
}
|
|
4714
|
-
};
|
|
4715
|
-
}
|
|
4716
|
-
mount() {
|
|
4717
|
-
this.removePointerDownListener = ul(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
|
|
4718
|
-
}
|
|
4719
|
-
update() {
|
|
4720
|
-
this.session && this.session.updateHandlers(this.createPanHandlers());
|
|
4721
|
-
}
|
|
4722
|
-
unmount() {
|
|
4723
|
-
this.removePointerDownListener(), this.session && this.session.end();
|
|
4724
|
-
}
|
|
4725
|
-
}, Hl = !1, Ul = class extends r {
|
|
4726
|
-
componentDidMount() {
|
|
4727
|
-
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
|
|
4728
|
-
i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Hl && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
|
|
4729
|
-
this.safeToRemove();
|
|
4730
|
-
}), i.setOptions({
|
|
4731
|
-
...i.options,
|
|
4732
|
-
layoutDependency: this.props.layoutDependency,
|
|
4733
|
-
onExitComplete: () => this.safeToRemove()
|
|
4734
|
-
})), Os.hasEverUpdated = !0;
|
|
4735
|
-
}
|
|
4736
|
-
getSnapshotBeforeUpdate(e) {
|
|
4737
|
-
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
|
|
4738
|
-
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
|
|
4739
|
-
...a.options,
|
|
4740
|
-
layoutDependency: t
|
|
4741
|
-
}), Hl = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || N.postRender(() => {
|
|
4742
|
-
let e = a.getStack();
|
|
4743
|
-
(!e || !e.members.length) && this.safeToRemove();
|
|
4744
|
-
})), null) : null;
|
|
4745
|
-
}
|
|
4746
|
-
componentDidUpdate() {
|
|
4747
|
-
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
|
|
4748
|
-
n && (n.options.layoutAnchor = t, n.root.didUpdate(), ji.postRender(() => {
|
|
4749
|
-
!n.currentAnimation && n.isLead() && this.safeToRemove();
|
|
4750
|
-
}));
|
|
4751
|
-
}
|
|
4752
|
-
componentWillUnmount() {
|
|
4753
|
-
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
|
|
4754
|
-
Hl = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
|
|
4755
|
-
}
|
|
4756
|
-
safeToRemove() {
|
|
4757
|
-
let { safeToRemove: e } = this.props;
|
|
4758
|
-
e && e();
|
|
4759
|
-
}
|
|
4760
|
-
render() {
|
|
4761
|
-
return null;
|
|
4762
|
-
}
|
|
4763
|
-
};
|
|
4764
|
-
function Wl(e) {
|
|
4765
|
-
let [t, n] = fc(), r = l(v);
|
|
4766
|
-
return g(Ul, {
|
|
4767
|
-
...e,
|
|
4768
|
-
layoutGroup: r,
|
|
4769
|
-
switchLayoutGroup: l(Jc),
|
|
4770
|
-
isPresent: t,
|
|
4771
|
-
safeToRemove: n
|
|
4772
|
-
});
|
|
4773
|
-
}
|
|
4774
|
-
//#endregion
|
|
4775
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/drag.mjs
|
|
4776
|
-
var Gl = {
|
|
4777
|
-
pan: { Feature: Vl },
|
|
4778
|
-
drag: {
|
|
4779
|
-
Feature: zl,
|
|
4780
|
-
ProjectionNode: uc,
|
|
4781
|
-
MeasureLayout: Wl
|
|
4782
|
-
}
|
|
4783
|
-
};
|
|
4784
|
-
//#endregion
|
|
4785
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/hover.mjs
|
|
4786
|
-
function Kl(e, t, n) {
|
|
4787
|
-
let { props: r } = e;
|
|
4788
|
-
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
4789
|
-
let i = r["onHover" + n];
|
|
4790
|
-
i && N.postRender(() => i(t, cl(t)));
|
|
4791
|
-
}
|
|
4792
|
-
var ql = class extends Y {
|
|
4793
|
-
mount() {
|
|
4794
|
-
let { current: e } = this.node;
|
|
4795
|
-
e && (this.unmount = Li(e, (e, t) => (Kl(this.node, t, "Start"), (e) => Kl(this.node, e, "End"))));
|
|
4796
|
-
}
|
|
4797
|
-
unmount() {}
|
|
4798
|
-
}, Jl = class extends Y {
|
|
4799
|
-
constructor() {
|
|
4800
|
-
super(...arguments), this.isActive = !1;
|
|
4801
|
-
}
|
|
4802
|
-
onFocus() {
|
|
4803
|
-
let e = !1;
|
|
4804
|
-
try {
|
|
4805
|
-
e = this.node.current.matches(":focus-visible");
|
|
4806
|
-
} catch {
|
|
4807
|
-
e = !0;
|
|
4808
|
-
}
|
|
4809
|
-
!e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
|
|
4810
|
-
}
|
|
4811
|
-
onBlur() {
|
|
4812
|
-
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
4813
|
-
}
|
|
4814
|
-
mount() {
|
|
4815
|
-
this.unmount = ae(Ss(this.node.current, "focus", () => this.onFocus()), Ss(this.node.current, "blur", () => this.onBlur()));
|
|
4816
|
-
}
|
|
4817
|
-
unmount() {}
|
|
4818
|
-
};
|
|
4819
|
-
//#endregion
|
|
4820
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/press.mjs
|
|
4821
|
-
function Yl(e, t, n) {
|
|
4822
|
-
let { props: r } = e;
|
|
4823
|
-
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
|
|
4824
|
-
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
4825
|
-
let i = r["onTap" + (n === "End" ? "" : n)];
|
|
4826
|
-
i && N.postRender(() => i(t, cl(t)));
|
|
4827
|
-
}
|
|
4828
|
-
var Xl = class extends Y {
|
|
4829
|
-
mount() {
|
|
4830
|
-
let { current: e } = this.node;
|
|
4831
|
-
if (!e) return;
|
|
4832
|
-
let { globalTapTarget: t, propagate: n } = this.node.props;
|
|
4833
|
-
this.unmount = Xi(e, (e, t) => (Yl(this.node, t, "Start"), (e, { success: t }) => Yl(this.node, e, t ? "End" : "Cancel")), {
|
|
4834
|
-
useGlobalTarget: t,
|
|
4835
|
-
stopPropagation: n?.tap === !1
|
|
4836
|
-
});
|
|
4837
|
-
}
|
|
4838
|
-
unmount() {}
|
|
4839
|
-
}, Zl = /* @__PURE__ */ new WeakMap(), Ql = /* @__PURE__ */ new WeakMap(), $l = (e) => {
|
|
4840
|
-
let t = Zl.get(e.target);
|
|
4841
|
-
t && t(e);
|
|
4842
|
-
}, eu = (e) => {
|
|
4843
|
-
e.forEach($l);
|
|
4844
|
-
};
|
|
4845
|
-
function tu({ root: e, ...t }) {
|
|
4846
|
-
let n = e || document;
|
|
4847
|
-
Ql.has(n) || Ql.set(n, {});
|
|
4848
|
-
let r = Ql.get(n), i = JSON.stringify(t);
|
|
4849
|
-
return r[i] || (r[i] = new IntersectionObserver(eu, {
|
|
4850
|
-
root: e,
|
|
4851
|
-
...t
|
|
4852
|
-
})), r[i];
|
|
4853
|
-
}
|
|
4854
|
-
function nu(e, t, n) {
|
|
4855
|
-
let r = tu(t);
|
|
4856
|
-
return Zl.set(e, n), r.observe(e), () => {
|
|
4857
|
-
Zl.delete(e), r.unobserve(e);
|
|
4858
|
-
};
|
|
4859
|
-
}
|
|
4860
|
-
//#endregion
|
|
4861
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
|
|
4862
|
-
var ru = {
|
|
4863
|
-
some: 0,
|
|
4864
|
-
all: 1
|
|
4865
|
-
}, iu = class extends Y {
|
|
4866
|
-
constructor() {
|
|
4867
|
-
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
4868
|
-
}
|
|
4869
|
-
startObserver() {
|
|
4870
|
-
this.stopObserver?.();
|
|
4871
|
-
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
|
|
4872
|
-
root: t ? t.current : void 0,
|
|
4873
|
-
rootMargin: n,
|
|
4874
|
-
threshold: typeof r == "number" ? r : ru[r]
|
|
4875
|
-
}, o = (e) => {
|
|
4876
|
-
let { isIntersecting: t } = e;
|
|
4877
|
-
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
|
|
4878
|
-
t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
|
|
4879
|
-
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
|
|
4880
|
-
a && a(e);
|
|
4881
|
-
};
|
|
4882
|
-
this.stopObserver = nu(this.node.current, a, o);
|
|
4883
|
-
}
|
|
4884
|
-
mount() {
|
|
4885
|
-
this.startObserver();
|
|
4886
|
-
}
|
|
4887
|
-
update() {
|
|
4888
|
-
if (typeof IntersectionObserver > "u") return;
|
|
4889
|
-
let { props: e, prevProps: t } = this.node;
|
|
4890
|
-
[
|
|
4891
|
-
"amount",
|
|
4892
|
-
"margin",
|
|
4893
|
-
"root"
|
|
4894
|
-
].some(au(e, t)) && this.startObserver();
|
|
4895
|
-
}
|
|
4896
|
-
unmount() {
|
|
4897
|
-
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
|
|
4898
|
-
}
|
|
4899
|
-
};
|
|
4900
|
-
function au({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
4901
|
-
return (n) => e[n] !== t[n];
|
|
4902
|
-
}
|
|
4903
|
-
//#endregion
|
|
4904
|
-
//#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/gestures.mjs
|
|
4905
|
-
var ou = {
|
|
4906
|
-
inView: { Feature: iu },
|
|
4907
|
-
tap: { Feature: Xl },
|
|
4908
|
-
focus: { Feature: Jl },
|
|
4909
|
-
hover: { Feature: ql }
|
|
4910
|
-
}, su = { layout: {
|
|
4911
|
-
ProjectionNode: uc,
|
|
4912
|
-
MeasureLayout: Wl
|
|
4913
|
-
} }, cu = /* @__PURE__ */ rl({
|
|
4914
|
-
...sl,
|
|
4915
|
-
...ou,
|
|
4916
|
-
...Gl,
|
|
4917
|
-
...su
|
|
4918
|
-
}, il);
|
|
4919
|
-
//#endregion
|
|
4920
|
-
export { Da as a, ci as c, D as d, x as f, v as h, ka as i, Qr as l, y as m, fc as n, Ea as o, b as p, dc as r, Ai as s, cu as t, ue as u };
|