@undp/data-viz 2.5.4 → 2.6.1
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/AnimatePresence-CE6xBsMZ.js +175 -0
- package/dist/AnimatePresence-CE6xBsMZ.js.map +1 -0
- package/dist/AnimatePresence-CapU-Sxd.cjs +10 -0
- package/dist/AnimatePresence-CapU-Sxd.cjs.map +1 -0
- package/dist/AreaChart.cjs +1 -2
- package/dist/AreaChart.d.ts +2 -231
- package/dist/AreaChart.js +2 -440
- package/dist/Axis-B3ai1eeP.js +31 -0
- package/dist/Axis-B3ai1eeP.js.map +1 -0
- package/dist/Axis-BbfI4T5K.cjs +2 -0
- package/dist/Axis-BbfI4T5K.cjs.map +1 -0
- package/dist/AxisTitle-Co2DmqOy.cjs +2 -0
- package/dist/AxisTitle-Co2DmqOy.cjs.map +1 -0
- package/dist/AxisTitle-DqJw_G-f.js +20 -0
- package/dist/AxisTitle-DqJw_G-f.js.map +1 -0
- package/dist/BarGraph-DE7tJ52k.cjs +2 -0
- package/dist/BarGraph-DE7tJ52k.cjs.map +1 -0
- package/dist/BarGraph-DQogcvkF.js +2177 -0
- package/dist/BarGraph-DQogcvkF.js.map +1 -0
- package/dist/BarGraph.cjs +1 -2
- package/dist/BarGraph.d.ts +2 -473
- package/dist/BarGraph.js +2 -2455
- package/dist/BasicStatCard.cjs +2 -2
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.d.ts +2 -115
- package/dist/BasicStatCard.js +136 -121
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart--7HARz1J.cjs +2 -0
- package/dist/BeeSwarmChart--7HARz1J.cjs.map +1 -0
- package/dist/BeeSwarmChart-skEHc8uH.js +468 -0
- package/dist/BeeSwarmChart-skEHc8uH.js.map +1 -0
- package/dist/BeeSwarmChart.cjs +1 -2
- package/dist/BeeSwarmChart.d.ts +2 -194
- package/dist/BeeSwarmChart.js +2 -536
- package/dist/BiVariateChoroplethMap.cjs +1 -2
- package/dist/BiVariateChoroplethMap.d.ts +2 -221
- package/dist/BiVariateChoroplethMap.js +2 -471
- package/dist/BiVariateMap-DXLWC3wL.cjs +2 -0
- package/dist/BiVariateMap-DXLWC3wL.cjs.map +1 -0
- package/dist/BiVariateMap-Dkppk8YD.js +505 -0
- package/dist/BiVariateMap-Dkppk8YD.js.map +1 -0
- package/dist/BulletChart-Du9F0JhJ.js +799 -0
- package/dist/BulletChart-Du9F0JhJ.js.map +1 -0
- package/dist/BulletChart-ElYRyO07.cjs +2 -0
- package/dist/BulletChart-ElYRyO07.cjs.map +1 -0
- package/dist/BulletChart.cjs +1 -2
- package/dist/BulletChart.d.ts +2 -245
- package/dist/BulletChart.js +2 -979
- package/dist/ButterflyChart-BBWBZXEc.cjs +2 -0
- package/dist/ButterflyChart-BBWBZXEc.cjs.map +1 -0
- package/dist/ButterflyChart-CHMH57WF.js +514 -0
- package/dist/ButterflyChart-CHMH57WF.js.map +1 -0
- package/dist/ButterflyChart.cjs +1 -2
- package/dist/ButterflyChart.d.ts +2 -210
- package/dist/ButterflyChart.js +2 -508
- package/dist/ChoroplethMap-BwKqlRYF.cjs +2 -0
- package/dist/ChoroplethMap-BwKqlRYF.cjs.map +1 -0
- package/dist/ChoroplethMap-CBnFBOj8.js +557 -0
- package/dist/ChoroplethMap-CBnFBOj8.js.map +1 -0
- package/dist/ChoroplethMap.cjs +1 -2
- package/dist/ChoroplethMap.d.ts +2 -218
- package/dist/ChoroplethMap.js +2 -498
- package/dist/CirclePackingGraph-Rl84B8C1.cjs +2 -0
- package/dist/CirclePackingGraph-Rl84B8C1.cjs.map +1 -0
- package/dist/CirclePackingGraph-uSZwfRvW.js +320 -0
- package/dist/CirclePackingGraph-uSZwfRvW.js.map +1 -0
- package/dist/CirclePackingGraph.cjs +1 -2
- package/dist/CirclePackingGraph.d.ts +2 -162
- package/dist/CirclePackingGraph.js +2 -14
- package/dist/ColorLegend.cjs +2 -2
- package/dist/ColorLegend.cjs.map +1 -1
- package/dist/ColorLegend.d.ts +2 -17
- package/dist/ColorLegend.js +45 -60
- package/dist/ColorLegend.js.map +1 -1
- package/dist/ColorLegendWithMouseOver.cjs +2 -2
- package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
- package/dist/ColorLegendWithMouseOver.d.ts +2 -16
- package/dist/ColorLegendWithMouseOver.js +63 -65
- package/dist/ColorLegendWithMouseOver.js.map +1 -1
- package/dist/Colors.cjs +2 -2
- package/dist/Colors.cjs.map +1 -1
- package/dist/Colors.d.ts +2 -190
- package/dist/Colors.js +988 -191
- package/dist/Colors.js.map +1 -1
- package/dist/CompareMaps-BFz1TfXL.cjs +2 -0
- package/dist/CompareMaps-BFz1TfXL.cjs.map +1 -0
- package/dist/CompareMaps-DaZgF5Pf.js +265 -0
- package/dist/CompareMaps-DaZgF5Pf.js.map +1 -0
- package/dist/Components/Actions/CopyTextButton.d.ts +10 -0
- package/dist/Components/Actions/CopyTextButton.d.ts.map +1 -0
- package/dist/Components/Actions/CsvDownloadButton.d.ts +18 -0
- package/dist/Components/Actions/CsvDownloadButton.d.ts.map +1 -0
- package/dist/Components/Actions/ExcelDownloadButton.d.ts +18 -0
- package/dist/Components/Actions/ExcelDownloadButton.d.ts.map +1 -0
- package/dist/Components/Actions/ImageDownloadButton.d.ts +12 -0
- package/dist/Components/Actions/ImageDownloadButton.d.ts.map +1 -0
- package/dist/Components/Actions/SVGDownloadButton.d.ts +12 -0
- package/dist/Components/Actions/SVGDownloadButton.d.ts.map +1 -0
- package/dist/Components/ColorPalette/index.d.ts +189 -0
- package/dist/Components/ColorPalette/index.d.ts.map +1 -0
- package/dist/Components/Dashboard/GraphEl.d.ts +16 -0
- package/dist/Components/Dashboard/GraphEl.d.ts.map +1 -0
- package/dist/Components/Dashboard/GriddedGraphs.d.ts +31 -0
- package/dist/Components/Dashboard/GriddedGraphs.d.ts.map +1 -0
- package/dist/Components/Dashboard/GriddedGraphsFromConfig.d.ts +33 -0
- package/dist/Components/Dashboard/GriddedGraphsFromConfig.d.ts.map +1 -0
- package/dist/Components/Dashboard/MultiGraphDashboard.d.ts +22 -0
- package/dist/Components/Dashboard/MultiGraphDashboard.d.ts.map +1 -0
- package/dist/Components/Dashboard/MultiGraphDashboardFromConfig.d.ts +25 -0
- package/dist/Components/Dashboard/MultiGraphDashboardFromConfig.d.ts.map +1 -0
- package/dist/Components/Dashboard/MultiGraphDashboardWideToLongFormat.d.ts +19 -0
- package/dist/Components/Dashboard/MultiGraphDashboardWideToLongFormat.d.ts.map +1 -0
- package/dist/Components/Dashboard/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +23 -0
- package/dist/Components/Dashboard/MultiGraphDashboardWideToLongFormatFromConfig.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/GeoHubMapsEl.d.ts +9 -0
- package/dist/Components/Dashboard/PerformanceIntensive/GeoHubMapsEl.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/MultiGraphDashboard.d.ts +22 -0
- package/dist/Components/Dashboard/PerformanceIntensive/MultiGraphDashboard.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/MultiGraphDashboardFromConfig.d.ts +25 -0
- package/dist/Components/Dashboard/PerformanceIntensive/MultiGraphDashboardFromConfig.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/ScrollStory.d.ts +19 -0
- package/dist/Components/Dashboard/PerformanceIntensive/ScrollStory.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardGeoHubMaps.d.ts +10 -0
- package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardGeoHubMaps.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +13 -0
- package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardGeoHubMapsFromConfig.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardThreeDGraphs.d.ts +27 -0
- package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardThreeDGraphs.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +29 -0
- package/dist/Components/Dashboard/PerformanceIntensive/SingleGraphDashboardThreeDGraphsFromConfig.d.ts.map +1 -0
- package/dist/Components/Dashboard/PerformanceIntensive/ThreeDGraphEl.d.ts +16 -0
- package/dist/Components/Dashboard/PerformanceIntensive/ThreeDGraphEl.d.ts.map +1 -0
- package/dist/Components/Dashboard/ScrollStory.d.ts +19 -0
- package/dist/Components/Dashboard/ScrollStory.d.ts.map +1 -0
- package/dist/Components/Dashboard/SingleGraphDashboard.d.ts +27 -0
- package/dist/Components/Dashboard/SingleGraphDashboard.d.ts.map +1 -0
- package/dist/Components/Dashboard/SingleGraphDashboardFromConfig.d.ts +29 -0
- package/dist/Components/Dashboard/SingleGraphDashboardFromConfig.d.ts.map +1 -0
- package/dist/Components/Elements/Annotations.d.ts +36 -0
- package/dist/Components/Elements/Annotations.d.ts.map +1 -0
- package/dist/Components/Elements/Axes/Axis.d.ts +25 -0
- package/dist/Components/Elements/Axes/Axis.d.ts.map +1 -0
- package/dist/Components/Elements/Axes/AxisTitle.d.ts +11 -0
- package/dist/Components/Elements/Axes/AxisTitle.d.ts.map +1 -0
- package/dist/Components/Elements/Axes/XAxesLabels.d.ts +16 -0
- package/dist/Components/Elements/Axes/XAxesLabels.d.ts.map +1 -0
- package/dist/Components/Elements/Axes/XTicksAndGridLines.d.ts +25 -0
- package/dist/Components/Elements/Axes/XTicksAndGridLines.d.ts.map +1 -0
- package/dist/Components/Elements/Axes/YAxesLabels.d.ts +16 -0
- package/dist/Components/Elements/Axes/YAxesLabels.d.ts.map +1 -0
- package/dist/Components/Elements/Axes/YTicksAndGridLines.d.ts +25 -0
- package/dist/Components/Elements/Axes/YTicksAndGridLines.d.ts.map +1 -0
- package/dist/Components/Elements/ColorLegend.d.ts +14 -0
- package/dist/Components/Elements/ColorLegend.d.ts.map +1 -0
- package/dist/Components/Elements/ColorLegendWithMouseOver.d.ts +13 -0
- package/dist/Components/Elements/ColorLegendWithMouseOver.d.ts.map +1 -0
- package/dist/Components/Elements/DetailsModal.d.ts +9 -0
- package/dist/Components/Elements/DetailsModal.d.ts.map +1 -0
- package/dist/Components/Elements/EmptyState.d.ts +2 -0
- package/dist/Components/Elements/EmptyState.d.ts.map +1 -0
- package/dist/Components/Elements/GraphContainer.d.ts +18 -0
- package/dist/Components/Elements/GraphContainer.d.ts.map +1 -0
- package/dist/Components/Elements/GraphFooter.d.ts +17 -0
- package/dist/Components/Elements/GraphFooter.d.ts.map +1 -0
- package/dist/Components/Elements/GraphHeader.d.ts +20 -0
- package/dist/Components/Elements/GraphHeader.d.ts.map +1 -0
- package/dist/Components/Elements/HighlightArea/customArea.d.ts +19 -0
- package/dist/Components/Elements/HighlightArea/customArea.d.ts.map +1 -0
- package/dist/Components/Elements/HighlightArea/index.d.ts +35 -0
- package/dist/Components/Elements/HighlightArea/index.d.ts.map +1 -0
- package/dist/Components/Elements/LinearColorLegend.d.ts +11 -0
- package/dist/Components/Elements/LinearColorLegend.d.ts.map +1 -0
- package/dist/Components/Elements/ReferenceLine.d.ts +40 -0
- package/dist/Components/Elements/ReferenceLine.d.ts.map +1 -0
- package/dist/Components/Elements/RegressionLine.d.ts +17 -0
- package/dist/Components/Elements/RegressionLine.d.ts.map +1 -0
- package/dist/Components/Elements/ThresholdColorLegendWithMouseOver.d.ts +15 -0
- package/dist/Components/Elements/ThresholdColorLegendWithMouseOver.d.ts.map +1 -0
- package/dist/Components/Elements/Tooltip.d.ts +12 -0
- package/dist/Components/Elements/Tooltip.d.ts.map +1 -0
- package/dist/Components/Graphs/BarGraph/GroupedBarGraph/Graph.d.ts +47 -0
- package/dist/Components/Graphs/BarGraph/GroupedBarGraph/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/BarGraph/GroupedBarGraph/index.d.ts +65 -0
- package/dist/Components/Graphs/BarGraph/GroupedBarGraph/index.d.ts.map +1 -0
- package/dist/Components/Graphs/BarGraph/SimpleBarGraph/Graph.d.ts +51 -0
- package/dist/Components/Graphs/BarGraph/SimpleBarGraph/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/BarGraph/SimpleBarGraph/index.d.ts +70 -0
- package/dist/Components/Graphs/BarGraph/SimpleBarGraph/index.d.ts.map +1 -0
- package/dist/Components/Graphs/BarGraph/StackedBarGraph/Graph.d.ts +47 -0
- package/dist/Components/Graphs/BarGraph/StackedBarGraph/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/BarGraph/StackedBarGraph/index.d.ts +66 -0
- package/dist/Components/Graphs/BarGraph/StackedBarGraph/index.d.ts.map +1 -0
- package/dist/Components/Graphs/BarGraph/index.d.ts +354 -0
- package/dist/Components/Graphs/BarGraph/index.d.ts.map +1 -0
- package/dist/Components/Graphs/BeeSwarmChart/Graph.d.ts +43 -0
- package/dist/Components/Graphs/BeeSwarmChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/BeeSwarmChart/index.d.ts +100 -0
- package/dist/Components/Graphs/BeeSwarmChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/BulletChart/Graph.d.ts +53 -0
- package/dist/Components/Graphs/BulletChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/BulletChart/index.d.ts +136 -0
- package/dist/Components/Graphs/BulletChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/ButterflyChart/Graph.d.ts +42 -0
- package/dist/Components/Graphs/ButterflyChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/ButterflyChart/index.d.ts +102 -0
- package/dist/Components/Graphs/ButterflyChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/CirclePackingGraph/Graph.d.ts +35 -0
- package/dist/Components/Graphs/CirclePackingGraph/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/CirclePackingGraph/getMaxCircleRadius.d.ts +2 -0
- package/dist/Components/Graphs/CirclePackingGraph/getMaxCircleRadius.d.ts.map +1 -0
- package/dist/Components/Graphs/CirclePackingGraph/index.d.ts +88 -0
- package/dist/Components/Graphs/CirclePackingGraph/index.d.ts.map +1 -0
- package/dist/Components/Graphs/DataCards/Graph.d.ts +26 -0
- package/dist/Components/Graphs/DataCards/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/DataCards/index.d.ts +74 -0
- package/dist/Components/Graphs/DataCards/index.d.ts.map +1 -0
- package/dist/Components/Graphs/DataTable/index.d.ts +46 -0
- package/dist/Components/Graphs/DataTable/index.d.ts.map +1 -0
- package/dist/Components/Graphs/DonutChart/Graph.d.ts +31 -0
- package/dist/Components/Graphs/DonutChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/DonutChart/index.d.ts +88 -0
- package/dist/Components/Graphs/DonutChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/DumbbellChart/Graph.d.ts +51 -0
- package/dist/Components/Graphs/DumbbellChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/DumbbellChart/index.d.ts +128 -0
- package/dist/Components/Graphs/DumbbellChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/HeatMap/Graph.d.ts +35 -0
- package/dist/Components/Graphs/HeatMap/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/HeatMap/index.d.ts +93 -0
- package/dist/Components/Graphs/HeatMap/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Histogram/index.d.ts +92 -0
- package/dist/Components/Graphs/Histogram/index.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/DifferenceLineChart/Graph.d.ts +47 -0
- package/dist/Components/Graphs/LineCharts/DifferenceLineChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/DifferenceLineChart/index.d.ts +106 -0
- package/dist/Components/Graphs/LineCharts/DifferenceLineChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/DualAxisLineChart/Graph.d.ts +36 -0
- package/dist/Components/Graphs/LineCharts/DualAxisLineChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/DualAxisLineChart/index.d.ts +98 -0
- package/dist/Components/Graphs/LineCharts/DualAxisLineChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/LineChart/Graph.d.ts +43 -0
- package/dist/Components/Graphs/LineCharts/LineChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/LineChart/index.d.ts +98 -0
- package/dist/Components/Graphs/LineCharts/LineChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/LineChartWithConfidenceInterval/Graph.d.ts +49 -0
- package/dist/Components/Graphs/LineCharts/LineChartWithConfidenceInterval/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/LineChartWithConfidenceInterval/index.d.ts +116 -0
- package/dist/Components/Graphs/LineCharts/LineChartWithConfidenceInterval/index.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/MultiLineAltChart/Graph.d.ts +50 -0
- package/dist/Components/Graphs/LineCharts/MultiLineAltChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/MultiLineAltChart/index.d.ts +114 -0
- package/dist/Components/Graphs/LineCharts/MultiLineAltChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/MultiLineChart/Graph.d.ts +52 -0
- package/dist/Components/Graphs/LineCharts/MultiLineChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/MultiLineChart/index.d.ts +116 -0
- package/dist/Components/Graphs/LineCharts/MultiLineChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/SparkLine/Graph.d.ts +24 -0
- package/dist/Components/Graphs/LineCharts/SparkLine/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/LineCharts/SparkLine/index.d.ts +70 -0
- package/dist/Components/Graphs/LineCharts/SparkLine/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/BiVariateMap/Graph.d.ts +51 -0
- package/dist/Components/Graphs/Maps/BiVariateMap/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/BiVariateMap/index.d.ts +117 -0
- package/dist/Components/Graphs/Maps/BiVariateMap/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/ChoroplethMap/Graph.d.ts +49 -0
- package/dist/Components/Graphs/Maps/ChoroplethMap/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/ChoroplethMap/index.d.ts +113 -0
- package/dist/Components/Graphs/Maps/ChoroplethMap/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/DotDensityMap/Graph.d.ts +48 -0
- package/dist/Components/Graphs/Maps/DotDensityMap/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/DotDensityMap/index.d.ts +111 -0
- package/dist/Components/Graphs/Maps/DotDensityMap/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/CompareMaps/Graph.d.ts +12 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/CompareMaps/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/CompareMaps/index.d.ts +47 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/CompareMaps/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/MapWithLayerSelection/MapEl.d.ts +13 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/MapWithLayerSelection/MapEl.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/MapWithLayerSelection/index.d.ts +56 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/MapWithLayerSelection/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/GeoHubMultipleMap.d.ts +12 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/GeoHubMultipleMap.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/GeoHubSingleMap.d.ts +12 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/GeoHubSingleMap.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/index.d.ts +57 -0
- package/dist/Components/Graphs/Maps/GeoHubMaps/SimpleMap/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/HybridMap/Graph.d.ts +56 -0
- package/dist/Components/Graphs/Maps/HybridMap/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/HybridMap/index.d.ts +127 -0
- package/dist/Components/Graphs/Maps/HybridMap/index.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/ThreeDGlobe/Graph.d.ts +46 -0
- package/dist/Components/Graphs/Maps/ThreeDGlobe/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/Maps/ThreeDGlobe/index.d.ts +109 -0
- package/dist/Components/Graphs/Maps/ThreeDGlobe/index.d.ts.map +1 -0
- package/dist/Components/Graphs/ParetoChart/Graph.d.ts +36 -0
- package/dist/Components/Graphs/ParetoChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/ParetoChart/index.d.ts +100 -0
- package/dist/Components/Graphs/ParetoChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/RadarChart/Graph.d.ts +38 -0
- package/dist/Components/Graphs/RadarChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/RadarChart/index.d.ts +102 -0
- package/dist/Components/Graphs/RadarChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/SankeyChart/Graph.d.ts +39 -0
- package/dist/Components/Graphs/SankeyChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/SankeyChart/index.d.ts +100 -0
- package/dist/Components/Graphs/SankeyChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/ScatterPlot/Graph.d.ts +52 -0
- package/dist/Components/Graphs/ScatterPlot/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/ScatterPlot/index.d.ts +130 -0
- package/dist/Components/Graphs/ScatterPlot/index.d.ts.map +1 -0
- package/dist/Components/Graphs/SlopeChart/Graph.d.ts +32 -0
- package/dist/Components/Graphs/SlopeChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/SlopeChart/index.d.ts +92 -0
- package/dist/Components/Graphs/SlopeChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/StackedAreaChart/Graph.d.ts +37 -0
- package/dist/Components/Graphs/StackedAreaChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/StackedAreaChart/index.d.ts +92 -0
- package/dist/Components/Graphs/StackedAreaChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/StatCard/StatCardFromData.d.ts +50 -0
- package/dist/Components/Graphs/StatCard/StatCardFromData.d.ts.map +1 -0
- package/dist/Components/Graphs/StatCard/index.d.ts +46 -0
- package/dist/Components/Graphs/StatCard/index.d.ts.map +1 -0
- package/dist/Components/Graphs/StripChart/Graph.d.ts +42 -0
- package/dist/Components/Graphs/StripChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/StripChart/index.d.ts +102 -0
- package/dist/Components/Graphs/StripChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/TreeMapGraph/Graph.d.ts +34 -0
- package/dist/Components/Graphs/TreeMapGraph/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/TreeMapGraph/index.d.ts +85 -0
- package/dist/Components/Graphs/TreeMapGraph/index.d.ts.map +1 -0
- package/dist/Components/Graphs/UnitChart/index.d.ts +66 -0
- package/dist/Components/Graphs/UnitChart/index.d.ts.map +1 -0
- package/dist/Components/Graphs/WaterfallChart/Graph.d.ts +47 -0
- package/dist/Components/Graphs/WaterfallChart/Graph.d.ts.map +1 -0
- package/dist/Components/Graphs/WaterfallChart/index.d.ts +114 -0
- package/dist/Components/Graphs/WaterfallChart/index.d.ts.map +1 -0
- package/dist/Components/Icons/index.d.ts +19 -0
- package/dist/Components/Icons/index.d.ts.map +1 -0
- package/dist/Components/Typography/FootNote.d.ts +9 -0
- package/dist/Components/Typography/FootNote.d.ts.map +1 -0
- package/dist/Components/Typography/GraphDescription.d.ts +9 -0
- package/dist/Components/Typography/GraphDescription.d.ts.map +1 -0
- package/dist/Components/Typography/GraphTitle.d.ts +10 -0
- package/dist/Components/Typography/GraphTitle.d.ts.map +1 -0
- package/dist/Components/Typography/Source.d.ts +9 -0
- package/dist/Components/Typography/Source.d.ts.map +1 -0
- package/dist/CopyTextButton.cjs +2 -2
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.d.ts +2 -13
- package/dist/CopyTextButton.js +28 -763
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton-BZ7Zr0Gz.js +664 -0
- package/dist/CsvDownloadButton-BZ7Zr0Gz.js.map +1 -0
- package/dist/CsvDownloadButton-web25aO3.cjs +5 -0
- package/dist/CsvDownloadButton-web25aO3.cjs.map +1 -0
- package/dist/CsvDownloadButton.cjs +1 -5
- package/dist/CsvDownloadButton.d.ts +2 -22
- package/dist/CsvDownloadButton.js +2 -844
- package/dist/DataCards-BOpanQhW.js +254 -0
- package/dist/DataCards-BOpanQhW.js.map +1 -0
- package/dist/DataCards-C4lwQNit.cjs +2 -0
- package/dist/DataCards-C4lwQNit.cjs.map +1 -0
- package/dist/DataCards.cjs +1 -2
- package/dist/DataCards.d.ts +2 -134
- package/dist/DataCards.js +2 -507
- package/dist/DataTable.cjs +2 -2
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.d.ts +2 -126
- package/dist/DataTable.js +220 -186
- package/dist/DataTable.js.map +1 -1
- package/dist/DetailsModal-CtGqGcX9.cjs +2 -0
- package/dist/DetailsModal-CtGqGcX9.cjs.map +1 -0
- package/dist/DetailsModal-DxUowfkg.js +24 -0
- package/dist/DetailsModal-DxUowfkg.js.map +1 -0
- package/dist/DifferenceLineChart-BVSQviFB.js +653 -0
- package/dist/DifferenceLineChart-BVSQviFB.js.map +1 -0
- package/dist/DifferenceLineChart-D15cYo7N.cjs +2 -0
- package/dist/DifferenceLineChart-D15cYo7N.cjs.map +1 -0
- package/dist/DifferenceLineChart.cjs +1 -2
- package/dist/DifferenceLineChart.d.ts +2 -246
- package/dist/DifferenceLineChart.js +2 -755
- package/dist/DonutChart-BoMyev28.js +316 -0
- package/dist/DonutChart-BoMyev28.js.map +1 -0
- package/dist/DonutChart-CeJOD4Me.cjs +2 -0
- package/dist/DonutChart-CeJOD4Me.cjs.map +1 -0
- package/dist/DonutChart.cjs +1 -2
- package/dist/DonutChart.d.ts +2 -167
- package/dist/DonutChart.js +2 -259
- package/dist/DotDensityMap-Bx_8p5wJ.cjs +2 -0
- package/dist/DotDensityMap-Bx_8p5wJ.cjs.map +1 -0
- package/dist/DotDensityMap-F0i_P_SE.js +463 -0
- package/dist/DotDensityMap-F0i_P_SE.js.map +1 -0
- package/dist/DotDensityMap.cjs +1 -2
- package/dist/DotDensityMap.d.ts +2 -209
- package/dist/DotDensityMap.js +2 -447
- package/dist/DualAxisLineChart-CUD-jRfN.cjs +2 -0
- package/dist/DualAxisLineChart-CUD-jRfN.cjs.map +1 -0
- package/dist/DualAxisLineChart-DzVs-ftM.js +518 -0
- package/dist/DualAxisLineChart-DzVs-ftM.js.map +1 -0
- package/dist/DualAxisLineChart.cjs +1 -2
- package/dist/DualAxisLineChart.d.ts +2 -193
- package/dist/DualAxisLineChart.js +2 -632
- package/dist/DumbbellChart-7Dh8xtYv.cjs +2 -0
- package/dist/DumbbellChart-7Dh8xtYv.cjs.map +1 -0
- package/dist/DumbbellChart-bqOnq8ZF.js +784 -0
- package/dist/DumbbellChart-bqOnq8ZF.js.map +1 -0
- package/dist/DumbbellChart.cjs +1 -2
- package/dist/DumbbellChart.d.ts +2 -235
- package/dist/DumbbellChart.js +2 -859
- package/dist/EmptyState-Bq7ZJmZB.cjs +2 -0
- package/dist/EmptyState-Bq7ZJmZB.cjs.map +1 -0
- package/dist/EmptyState-DBmT1Adf.js +21 -0
- package/dist/EmptyState-DBmT1Adf.js.map +1 -0
- package/dist/ExcelDownloadButton.cjs +2 -2
- package/dist/ExcelDownloadButton.cjs.map +1 -1
- package/dist/ExcelDownloadButton.d.ts +2 -22
- package/dist/ExcelDownloadButton.js +20 -27
- package/dist/ExcelDownloadButton.js.map +1 -1
- package/dist/FootNote.cjs +2 -2
- package/dist/FootNote.cjs.map +1 -1
- package/dist/FootNote.d.ts +2 -12
- package/dist/FootNote.js +24 -29
- package/dist/FootNote.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -2
- package/dist/GeoHubCompareMaps.d.ts +2 -106
- package/dist/GeoHubCompareMaps.js +2 -282
- package/dist/GeoHubMap.cjs +1 -2
- package/dist/GeoHubMap.d.ts +2 -121
- package/dist/GeoHubMap.js +2 -236
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -2
- package/dist/GeoHubMapWithLayerSelection.d.ts +2 -120
- package/dist/GeoHubMapWithLayerSelection.js +2 -208
- package/dist/GraphContainer-7xAPK4Tb.cjs +2 -0
- package/dist/GraphContainer-7xAPK4Tb.cjs.map +1 -0
- package/dist/GraphContainer-DgEB1AVN.js +33 -0
- package/dist/GraphContainer-DgEB1AVN.js.map +1 -0
- package/dist/GraphDescription.cjs +2 -2
- package/dist/GraphDescription.cjs.map +1 -1
- package/dist/GraphDescription.d.ts +2 -12
- package/dist/GraphDescription.js +24 -26
- package/dist/GraphDescription.js.map +1 -1
- package/dist/GraphEl-DKWanDSW.cjs +2 -0
- package/dist/GraphEl-DKWanDSW.cjs.map +1 -0
- package/dist/GraphEl-YjxZ25y6.js +1781 -0
- package/dist/GraphEl-YjxZ25y6.js.map +1 -0
- package/dist/GraphFooter.cjs +2 -2
- package/dist/GraphFooter.cjs.map +1 -1
- package/dist/GraphFooter.d.ts +2 -24
- package/dist/GraphFooter.js +24 -31
- package/dist/GraphFooter.js.map +1 -1
- package/dist/GraphHeader.cjs +2 -2
- package/dist/GraphHeader.cjs.map +1 -1
- package/dist/GraphHeader.d.ts +2 -23
- package/dist/GraphHeader.js +43 -49
- package/dist/GraphHeader.js.map +1 -1
- package/dist/GraphTitle.cjs +2 -2
- package/dist/GraphTitle.cjs.map +1 -1
- package/dist/GraphTitle.d.ts +2 -13
- package/dist/GraphTitle.js +29 -33
- package/dist/GraphTitle.js.map +1 -1
- package/dist/GriddedGraphs.cjs +2 -2
- package/dist/GriddedGraphs.cjs.map +1 -1
- package/dist/GriddedGraphs.d.ts +2 -641
- package/dist/GriddedGraphs.js +355 -261
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.cjs +2 -2
- package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +2 -644
- package/dist/GriddedGraphsFromConfig.js +40 -28
- package/dist/GriddedGraphsFromConfig.js.map +1 -1
- package/dist/HeatMap-CpWBTEmB.cjs +2 -0
- package/dist/HeatMap-CpWBTEmB.cjs.map +1 -0
- package/dist/HeatMap-V6VFVvJv.js +338 -0
- package/dist/HeatMap-V6VFVvJv.js.map +1 -0
- package/dist/HeatMap.cjs +1 -2
- package/dist/HeatMap.d.ts +2 -175
- package/dist/HeatMap.js +2 -288
- package/dist/HighlightArea-BljOOgRP.js +76 -0
- package/dist/HighlightArea-BljOOgRP.js.map +1 -0
- package/dist/HighlightArea-CJ2XwY67.cjs +2 -0
- package/dist/HighlightArea-CJ2XwY67.cjs.map +1 -0
- package/dist/Histogram-B995-qQB.cjs +2 -0
- package/dist/Histogram-B995-qQB.cjs.map +1 -0
- package/dist/Histogram-B9crdM0i.js +250 -0
- package/dist/Histogram-B9crdM0i.js.map +1 -0
- package/dist/Histogram.cjs +1 -2
- package/dist/Histogram.d.ts +2 -178
- package/dist/Histogram.js +2 -179
- package/dist/HybridMap-B2wu6VbK.cjs +2 -0
- package/dist/HybridMap-B2wu6VbK.cjs.map +1 -0
- package/dist/HybridMap-D_faTI4N.js +664 -0
- package/dist/HybridMap-D_faTI4N.js.map +1 -0
- package/dist/HybridMap.cjs +1 -2
- package/dist/HybridMap.d.ts +2 -236
- package/dist/HybridMap.js +2 -625
- package/dist/Icons-BLXwPP3h.js +289 -0
- package/dist/Icons-BLXwPP3h.js.map +1 -0
- package/dist/Icons-DXw7FqJ_.cjs +2 -0
- package/dist/Icons-DXw7FqJ_.cjs.map +1 -0
- package/dist/ImageDownloadButton.cjs +2 -2
- package/dist/ImageDownloadButton.cjs.map +1 -1
- package/dist/ImageDownloadButton.d.ts +2 -16
- package/dist/ImageDownloadButton.js +22 -26
- package/dist/ImageDownloadButton.js.map +1 -1
- package/dist/LineChart-BEUT_K-o.js +458 -0
- package/dist/LineChart-BEUT_K-o.js.map +1 -0
- package/dist/LineChart-Do_hKdIv.cjs +2 -0
- package/dist/LineChart-Do_hKdIv.cjs.map +1 -0
- package/dist/LineChartWithConfidenceInterval-BiSJpLry.js +657 -0
- package/dist/LineChartWithConfidenceInterval-BiSJpLry.js.map +1 -0
- package/dist/LineChartWithConfidenceInterval-D4aZ2CEy.cjs +2 -0
- package/dist/LineChartWithConfidenceInterval-D4aZ2CEy.cjs.map +1 -0
- package/dist/LineChartWithConfidenceInterval.cjs +1 -2
- package/dist/LineChartWithConfidenceInterval.d.ts +2 -257
- package/dist/LineChartWithConfidenceInterval.js +2 -698
- package/dist/LinearColorLegend.cjs +2 -2
- package/dist/LinearColorLegend.cjs.map +1 -1
- package/dist/LinearColorLegend.d.ts +2 -14
- package/dist/LinearColorLegend.js +39 -53
- package/dist/LinearColorLegend.js.map +1 -1
- package/dist/MapWithLayerSelection-BVxg3gYq.cjs +2 -0
- package/dist/MapWithLayerSelection-BVxg3gYq.cjs.map +1 -0
- package/dist/MapWithLayerSelection-D67zxor8.js +210 -0
- package/dist/MapWithLayerSelection-D67zxor8.js.map +1 -0
- package/dist/MultiGraphDashboard.cjs +2 -2
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +2 -665
- package/dist/MultiGraphDashboard.js +209 -142
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.cjs +2 -2
- package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +2 -669
- package/dist/MultiGraphDashboardFromConfig.js +35 -28
- package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat-BPwP5bx2.cjs +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat-BPwP5bx2.cjs.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormat-Ds7V2gxg.js +168 -0
- package/dist/MultiGraphDashboardWideToLongFormat-Ds7V2gxg.js.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -2
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -131
- package/dist/MultiGraphDashboardWideToLongFormat.js +2 -160
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +2 -2
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -136
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +32 -28
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
- package/dist/MultiLineAltChart-BkEze7t7.cjs +2 -0
- package/dist/MultiLineAltChart-BkEze7t7.cjs.map +1 -0
- package/dist/MultiLineAltChart-CZGWeSsV.js +532 -0
- package/dist/MultiLineAltChart-CZGWeSsV.js.map +1 -0
- package/dist/MultiLineAltChart.cjs +1 -2
- package/dist/MultiLineAltChart.d.ts +2 -255
- package/dist/MultiLineAltChart.js +2 -646
- package/dist/MultiLineChart-BB13IJLX.js +531 -0
- package/dist/MultiLineChart-BB13IJLX.js.map +1 -0
- package/dist/MultiLineChart-CQK9Ovk8.cjs +2 -0
- package/dist/MultiLineChart-CQK9Ovk8.cjs.map +1 -0
- package/dist/MultiLineChart.cjs +1 -2
- package/dist/MultiLineChart.d.ts +2 -255
- package/dist/MultiLineChart.js +2 -635
- package/dist/ParetoChart-BB89ZG8n.js +467 -0
- package/dist/ParetoChart-BB89ZG8n.js.map +1 -0
- package/dist/ParetoChart-sZCTqhIt.cjs +2 -0
- package/dist/ParetoChart-sZCTqhIt.cjs.map +1 -0
- package/dist/ParetoChart.cjs +1 -2
- package/dist/ParetoChart.d.ts +2 -187
- package/dist/ParetoChart.js +2 -539
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +2 -2
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -669
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +253 -167
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +2 -2
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -673
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +35 -28
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/PerformanceIntensiveScrollStory.cjs +2 -2
- package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +2 -595
- package/dist/PerformanceIntensiveScrollStory.js +88 -99
- package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
- package/dist/RadarChart-5VC51Iv8.cjs +2 -0
- package/dist/RadarChart-5VC51Iv8.cjs.map +1 -0
- package/dist/RadarChart-DaID9Q1F.js +491 -0
- package/dist/RadarChart-DaID9Q1F.js.map +1 -0
- package/dist/RadarChart.cjs +1 -2
- package/dist/RadarChart.d.ts +2 -187
- package/dist/RadarChart.js +2 -534
- package/dist/ReferenceLine-C8owKJx1.js +90 -0
- package/dist/ReferenceLine-C8owKJx1.js.map +1 -0
- package/dist/ReferenceLine-Dltt-xtO.cjs +2 -0
- package/dist/ReferenceLine-Dltt-xtO.cjs.map +1 -0
- package/dist/RegressionLine-B-3HbVf4.js +53 -0
- package/dist/RegressionLine-B-3HbVf4.js.map +1 -0
- package/dist/RegressionLine-Cju7e0DE.cjs +2 -0
- package/dist/RegressionLine-Cju7e0DE.cjs.map +1 -0
- package/dist/SVGDownloadButton.cjs +2 -2
- package/dist/SVGDownloadButton.cjs.map +1 -1
- package/dist/SVGDownloadButton.d.ts +2 -15
- package/dist/SVGDownloadButton.js +22 -26
- package/dist/SVGDownloadButton.js.map +1 -1
- package/dist/SankeyChart-Cj7ihF_-.js +786 -0
- package/dist/SankeyChart-Cj7ihF_-.js.map +1 -0
- package/dist/SankeyChart-DbMoZmbh.cjs +2 -0
- package/dist/SankeyChart-DbMoZmbh.cjs.map +1 -0
- package/dist/SankeyChart.cjs +1 -2
- package/dist/SankeyChart.d.ts +2 -185
- package/dist/SankeyChart.js +2 -792
- package/dist/ScatterPlot-DGv-CLx8.js +588 -0
- package/dist/ScatterPlot-DGv-CLx8.js.map +1 -0
- package/dist/ScatterPlot-zfJrQptW.cjs +2 -0
- package/dist/ScatterPlot-zfJrQptW.cjs.map +1 -0
- package/dist/ScatterPlot.cjs +1 -2
- package/dist/ScatterPlot.d.ts +2 -279
- package/dist/ScatterPlot.js +2 -704
- package/dist/ScrollStory.cjs +2 -2
- package/dist/ScrollStory.cjs.map +1 -1
- package/dist/ScrollStory.d.ts +2 -591
- package/dist/ScrollStory.js +74 -92
- package/dist/ScrollStory.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -2
- package/dist/SimpleLineChart.d.ts +2 -237
- package/dist/SimpleLineChart.js +2 -526
- package/dist/SimpleMap-DKkJMa4X.cjs +2 -0
- package/dist/SimpleMap-DKkJMa4X.cjs.map +1 -0
- package/dist/SimpleMap-Q5Ax5xNq.js +279 -0
- package/dist/SimpleMap-Q5Ax5xNq.js.map +1 -0
- package/dist/SingleGraphDashboard.cjs +2 -2
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.d.ts +2 -645
- package/dist/SingleGraphDashboard.js +386 -300
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.cjs +2 -2
- package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +2 -648
- package/dist/SingleGraphDashboardFromConfig.js +36 -28
- package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps-BNKMBM5-.js +158 -0
- package/dist/SingleGraphDashboardGeoHubMaps-BNKMBM5-.js.map +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps-DGbbjY5J.cjs +2 -0
- package/dist/SingleGraphDashboardGeoHubMaps-DGbbjY5J.cjs.map +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -2
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -530
- package/dist/SingleGraphDashboardGeoHubMaps.js +2 -167
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +2 -2
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -534
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +26 -28
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs-BsCgN8DA.js +461 -0
- package/dist/SingleGraphDashboardThreeDGraphs-BsCgN8DA.js.map +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs-qstwmomC.cjs +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs-qstwmomC.cjs.map +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -2
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -643
- package/dist/SingleGraphDashboardThreeDGraphs.js +2 -384
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +2 -2
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -646
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +36 -28
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
- package/dist/SlopeChart-BgzrVFpf.js +431 -0
- package/dist/SlopeChart-BgzrVFpf.js.map +1 -0
- package/dist/SlopeChart-BwQY7GJl.cjs +2 -0
- package/dist/SlopeChart-BwQY7GJl.cjs.map +1 -0
- package/dist/SlopeChart.cjs +1 -2
- package/dist/SlopeChart.d.ts +2 -170
- package/dist/SlopeChart.js +2 -547
- package/dist/Source.cjs +2 -2
- package/dist/Source.cjs.map +1 -1
- package/dist/Source.d.ts +2 -16
- package/dist/Source.js +35 -7
- package/dist/Source.js.map +1 -1
- package/dist/SparkLine-DTNx2kjz.js +216 -0
- package/dist/SparkLine-DTNx2kjz.js.map +1 -0
- package/dist/SparkLine-cHaN4VYd.cjs +2 -0
- package/dist/SparkLine-cHaN4VYd.cjs.map +1 -0
- package/dist/SparkLine.cjs +1 -2
- package/dist/SparkLine.d.ts +2 -142
- package/dist/SparkLine.js +2 -295
- package/dist/StackedAreaChart-CtlLKKP4.js +381 -0
- package/dist/StackedAreaChart-CtlLKKP4.js.map +1 -0
- package/dist/StackedAreaChart-Du-YaLNf.cjs +2 -0
- package/dist/StackedAreaChart-Du-YaLNf.cjs.map +1 -0
- package/dist/StatCardFromData.cjs +2 -2
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.d.ts +2 -124
- package/dist/StatCardFromData.js +138 -166
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart-BG2FqiBD.js +564 -0
- package/dist/StripChart-BG2FqiBD.js.map +1 -0
- package/dist/StripChart-C2Px5GnZ.cjs +2 -0
- package/dist/StripChart-C2Px5GnZ.cjs.map +1 -0
- package/dist/StripChart.cjs +1 -2
- package/dist/StripChart.d.ts +2 -187
- package/dist/StripChart.js +2 -789
- package/dist/ThreeDGlobe-7eJdMW-R.cjs +2 -0
- package/dist/ThreeDGlobe-7eJdMW-R.cjs.map +1 -0
- package/dist/ThreeDGlobe-DXL9WkNi.js +441 -0
- package/dist/ThreeDGlobe-DXL9WkNi.js.map +1 -0
- package/dist/ThreeDGlobe.cjs +1 -2
- package/dist/ThreeDGlobe.d.ts +2 -247
- package/dist/ThreeDGlobe.js +2 -418
- package/dist/ThresholdColorLegendWithMouseOver.cjs +2 -2
- package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -18
- package/dist/ThresholdColorLegendWithMouseOver.js +109 -102
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
- package/dist/Tooltip-CO_iOj_w.cjs +2 -0
- package/dist/Tooltip-CO_iOj_w.cjs.map +1 -0
- package/dist/Tooltip-Y6uTGwkF.js +33 -0
- package/dist/Tooltip-Y6uTGwkF.js.map +1 -0
- package/dist/TreeMapGraph-BL2-s-r1.cjs +2 -0
- package/dist/TreeMapGraph-BL2-s-r1.cjs.map +1 -0
- package/dist/TreeMapGraph-C9G05WWG.js +598 -0
- package/dist/TreeMapGraph-C9G05WWG.js.map +1 -0
- package/dist/TreeMapGraph.cjs +1 -2
- package/dist/TreeMapGraph.d.ts +2 -165
- package/dist/TreeMapGraph.js +2 -617
- package/dist/Types.cjs +1 -2
- package/dist/Types.d.ts +935 -1033
- package/dist/Types.d.ts.map +1 -0
- package/dist/Types.js +0 -2
- package/dist/UnitChart.cjs +2 -2
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.d.ts +2 -145
- package/dist/UnitChart.js +148 -165
- package/dist/UnitChart.js.map +1 -1
- package/dist/Utils/checkDataValidity.d.ts +6 -0
- package/dist/Utils/checkDataValidity.d.ts.map +1 -0
- package/dist/Utils/checkIfMultiple.d.ts +3 -0
- package/dist/Utils/checkIfMultiple.d.ts.map +1 -0
- package/dist/Utils/checkIfNullOrUndefined.d.ts +14 -0
- package/dist/Utils/checkIfNullOrUndefined.d.ts.map +1 -0
- package/dist/Utils/ensureCompleteData.d.ts +8 -0
- package/dist/Utils/ensureCompleteData.d.ts.map +1 -0
- package/dist/Utils/excelDownload.d.ts +30 -0
- package/dist/Utils/excelDownload.d.ts.map +1 -0
- package/dist/Utils/fetchAndParseData.d.ts +65 -0
- package/dist/Utils/fetchAndParseData.d.ts.map +1 -0
- package/dist/Utils/generateCodes.d.ts +23 -0
- package/dist/Utils/generateCodes.d.ts.map +1 -0
- package/dist/Utils/generateRandomString.d.ts +2 -0
- package/dist/Utils/generateRandomString.d.ts.map +1 -0
- package/dist/Utils/getArc.d.ts +2 -0
- package/dist/Utils/getArc.d.ts.map +1 -0
- package/dist/Utils/getCentroidCoordinates.d.ts +3 -0
- package/dist/Utils/getCentroidCoordinates.d.ts.map +1 -0
- package/dist/Utils/getGraphList.d.ts +8 -0
- package/dist/Utils/getGraphList.d.ts.map +1 -0
- package/dist/Utils/getJenks.d.ts +16 -0
- package/dist/Utils/getJenks.d.ts.map +1 -0
- package/dist/Utils/getLineEndPoint.d.ts +10 -0
- package/dist/Utils/getLineEndPoint.d.ts.map +1 -0
- package/dist/Utils/getNoOfTicks.d.ts +2 -0
- package/dist/Utils/getNoOfTicks.d.ts.map +1 -0
- package/dist/Utils/getPathFromPoints.d.ts +2 -0
- package/dist/Utils/getPathFromPoints.d.ts.map +1 -0
- package/dist/Utils/getPercentileValue.d.ts +12 -0
- package/dist/Utils/getPercentileValue.d.ts.map +1 -0
- package/dist/Utils/getQueryParamsFromLink.d.ts +17 -0
- package/dist/Utils/getQueryParamsFromLink.d.ts.map +1 -0
- package/dist/Utils/getSliderMarks.d.ts +2 -0
- package/dist/Utils/getSliderMarks.d.ts.map +1 -0
- package/dist/Utils/getTextColorBasedOnBgColor.d.ts +12 -0
- package/dist/Utils/getTextColorBasedOnBgColor.d.ts.map +1 -0
- package/dist/Utils/getTickPosition.d.ts +2 -0
- package/dist/Utils/getTickPosition.d.ts.map +1 -0
- package/dist/Utils/getUniqValue.d.ts +17 -0
- package/dist/Utils/getUniqValue.d.ts.map +1 -0
- package/dist/Utils/getValues.d.ts +6 -0
- package/dist/Utils/getValues.d.ts.map +1 -0
- package/dist/Utils/imageDownload.d.ts +15 -0
- package/dist/Utils/imageDownload.d.ts.map +1 -0
- package/dist/Utils/index.d.ts +15 -0
- package/dist/Utils/index.d.ts.map +1 -0
- package/dist/Utils/numberFormattingFunction.d.ts +12 -0
- package/dist/Utils/numberFormattingFunction.d.ts.map +1 -0
- package/dist/Utils/padArray.d.ts +3 -0
- package/dist/Utils/padArray.d.ts.map +1 -0
- package/dist/Utils/removeOutliers.d.ts +15 -0
- package/dist/Utils/removeOutliers.d.ts.map +1 -0
- package/dist/Utils/string2HTML.d.ts +2 -0
- package/dist/Utils/string2HTML.d.ts.map +1 -0
- package/dist/Utils/svgDownload.d.ts +15 -0
- package/dist/Utils/svgDownload.d.ts.map +1 -0
- package/dist/Utils/transformData/filterData.d.ts +3 -0
- package/dist/Utils/transformData/filterData.d.ts.map +1 -0
- package/dist/Utils/transformData/graphConfig.d.ts +10 -0
- package/dist/Utils/transformData/graphConfig.d.ts.map +1 -0
- package/dist/Utils/transformData/index.d.ts +5 -0
- package/dist/Utils/transformData/index.d.ts.map +1 -0
- package/dist/Utils/transformData/mergeMultipleData.d.ts +5 -0
- package/dist/Utils/transformData/mergeMultipleData.d.ts.map +1 -0
- package/dist/Utils/transformData/transformColumnsToArray.d.ts +33 -0
- package/dist/Utils/transformData/transformColumnsToArray.d.ts.map +1 -0
- package/dist/Utils/transformData/transformDataForAggregation.d.ts +33 -0
- package/dist/Utils/transformData/transformDataForAggregation.d.ts.map +1 -0
- package/dist/Utils/transformData/transformDataForGraph.d.ts +36 -0
- package/dist/Utils/transformData/transformDataForGraph.d.ts.map +1 -0
- package/dist/Utils/transformData/transformDataForGraphFromFile.d.ts +40 -0
- package/dist/Utils/transformData/transformDataForGraphFromFile.d.ts.map +1 -0
- package/dist/Utils/transformDataForSelect.d.ts +8 -0
- package/dist/Utils/transformDataForSelect.d.ts.map +1 -0
- package/dist/Utils/uniqBy.d.ts +2 -0
- package/dist/Utils/uniqBy.d.ts.map +1 -0
- package/dist/Utils/wideToLongTranformation.d.ts +5 -0
- package/dist/Utils/wideToLongTranformation.d.ts.map +1 -0
- package/dist/Utils-C5kfxVL2.js +56 -0
- package/dist/Utils-C5kfxVL2.js.map +1 -0
- package/dist/Utils-HrtbRBIa.cjs +2 -0
- package/dist/Utils-HrtbRBIa.cjs.map +1 -0
- package/dist/WaterfallChart-BKpFUJdY.js +380 -0
- package/dist/WaterfallChart-BKpFUJdY.js.map +1 -0
- package/dist/WaterfallChart-cJ5pGsDu.cjs +2 -0
- package/dist/WaterfallChart-cJ5pGsDu.cjs.map +1 -0
- package/dist/WaterfallChart.cjs +1 -2
- package/dist/WaterfallChart.d.ts +2 -213
- package/dist/WaterfallChart.js +2 -426
- package/dist/XAxesLabels-BvzqZwll.cjs +2 -0
- package/dist/XAxesLabels-BvzqZwll.cjs.map +1 -0
- package/dist/XAxesLabels-DIs04SK7.js +45 -0
- package/dist/XAxesLabels-DIs04SK7.js.map +1 -0
- package/dist/XTicksAndGridLines-8v1W02Pd.cjs +2 -0
- package/dist/XTicksAndGridLines-8v1W02Pd.cjs.map +1 -0
- package/dist/XTicksAndGridLines-B2XZgwzW.js +31 -0
- package/dist/XTicksAndGridLines-B2XZgwzW.js.map +1 -0
- package/dist/YAxesLabels-DKRDxuHA.cjs +2 -0
- package/dist/YAxesLabels-DKRDxuHA.cjs.map +1 -0
- package/dist/YAxesLabels-voV_CThY.js +45 -0
- package/dist/YAxesLabels-voV_CThY.js.map +1 -0
- package/dist/YTicksAndGridLines-CRW_R845.cjs +2 -0
- package/dist/YTicksAndGridLines-CRW_R845.cjs.map +1 -0
- package/dist/YTicksAndGridLines-CVTzNJYP.js +31 -0
- package/dist/YTicksAndGridLines-CVTzNJYP.js.map +1 -0
- package/dist/area-BLagdTXz.js +51 -0
- package/dist/area-BLagdTXz.js.map +1 -0
- package/dist/area-Cwt2IPSp.cjs +2 -0
- package/dist/area-Cwt2IPSp.cjs.map +1 -0
- package/dist/array-BBVF08DC.cjs +2 -0
- package/dist/array-BBVF08DC.cjs.map +1 -0
- package/dist/array-ZS2WLXqD.js +14 -0
- package/dist/array-ZS2WLXqD.js.map +1 -0
- package/dist/band-BWpW41la.cjs +2 -0
- package/dist/band-BWpW41la.cjs.map +1 -0
- package/dist/band-XivI9IHG.js +49 -0
- package/dist/band-XivI9IHG.js.map +1 -0
- package/dist/checkIfNullOrUndefined-C5gqSAtF.js +8 -0
- package/dist/checkIfNullOrUndefined-C5gqSAtF.js.map +1 -0
- package/dist/checkIfNullOrUndefined-DYvc3fz_.cjs +2 -0
- package/dist/checkIfNullOrUndefined-DYvc3fz_.cjs.map +1 -0
- package/dist/chunk-foFoljWS.js +23 -0
- package/dist/chunk-gGpyby2o.cjs +1 -0
- package/dist/defaultLocale-DOietvnG.js +203 -0
- package/dist/defaultLocale-DOietvnG.js.map +1 -0
- package/dist/defaultLocale-DQoNc1A3.cjs +2 -0
- package/dist/defaultLocale-DQoNc1A3.cjs.map +1 -0
- package/dist/delaunay-M1ErmNzW.cjs +2 -0
- package/dist/delaunay-M1ErmNzW.cjs.map +1 -0
- package/dist/delaunay-ZuH6I4Fh.js +679 -0
- package/dist/delaunay-ZuH6I4Fh.js.map +1 -0
- package/dist/ensureCompleteData-CqLz7Btq.cjs +2 -0
- package/dist/ensureCompleteData-CqLz7Btq.cjs.map +1 -0
- package/dist/ensureCompleteData-VxAHq-s7.js +100 -0
- package/dist/ensureCompleteData-VxAHq-s7.js.map +1 -0
- package/dist/esm-BwfGJUcL.cjs +2 -0
- package/dist/esm-BwfGJUcL.cjs.map +1 -0
- package/dist/esm-D23XoYrV.js +653 -0
- package/dist/esm-D23XoYrV.js.map +1 -0
- package/dist/excelDownload-CVpK5TPY.cjs +2 -0
- package/dist/excelDownload-CVpK5TPY.cjs.map +1 -0
- package/dist/excelDownload-lQy9nEu2.js +26 -0
- package/dist/excelDownload-lQy9nEu2.js.map +1 -0
- package/dist/fast-deep-equal--80N92KJ.js +31 -0
- package/dist/fast-deep-equal--80N92KJ.js.map +1 -0
- package/dist/fast-deep-equal-DN3ilkVq.cjs +2 -0
- package/dist/fast-deep-equal-DN3ilkVq.cjs.map +1 -0
- package/dist/fetchAndParseData-C50SqMPu.js +633 -0
- package/dist/fetchAndParseData-C50SqMPu.js.map +1 -0
- package/dist/fetchAndParseData-Dlq4UzdG.cjs +11 -0
- package/dist/fetchAndParseData-Dlq4UzdG.cjs.map +1 -0
- package/dist/fetchAndParseData.cjs +1 -2
- package/dist/fetchAndParseData.d.ts +2 -84
- package/dist/fetchAndParseData.js +2 -10
- package/dist/filterData-B2pPOkwy.cjs +2 -0
- package/dist/filterData-B2pPOkwy.cjs.map +1 -0
- package/dist/filterData-Dp_HZ71j.js +12 -0
- package/dist/filterData-Dp_HZ71j.js.map +1 -0
- package/dist/generateRandomString-BaDYvqHT.js +10 -0
- package/dist/generateRandomString-BaDYvqHT.js.map +1 -0
- package/dist/generateRandomString-GzIwYnol.cjs +2 -0
- package/dist/generateRandomString-GzIwYnol.cjs.map +1 -0
- package/dist/getCentroidCoordinates-BxK8C2EL.js +64 -0
- package/dist/getCentroidCoordinates-BxK8C2EL.js.map +1 -0
- package/dist/getCentroidCoordinates-DWO-SCXv.cjs +2 -0
- package/dist/getCentroidCoordinates-DWO-SCXv.cjs.map +1 -0
- package/dist/getGraphList-BIaPQiZ0.js +280 -0
- package/dist/getGraphList-BIaPQiZ0.js.map +1 -0
- package/dist/getGraphList-DnwJeVCr.cjs +2 -0
- package/dist/getGraphList-DnwJeVCr.cjs.map +1 -0
- package/dist/getJenks-49NAtnQV.js +21 -0
- package/dist/getJenks-49NAtnQV.js.map +1 -0
- package/dist/getJenks-D0stlcvY.cjs +2 -0
- package/dist/getJenks-D0stlcvY.cjs.map +1 -0
- package/dist/getLineEndPoint-BkKmq-KI.js +130 -0
- package/dist/getLineEndPoint-BkKmq-KI.js.map +1 -0
- package/dist/getLineEndPoint-CahgY2dz.cjs +2 -0
- package/dist/getLineEndPoint-CahgY2dz.cjs.map +1 -0
- package/dist/getNoOfTicks-Bz_9Xmc6.js +8 -0
- package/dist/getNoOfTicks-Bz_9Xmc6.js.map +1 -0
- package/dist/getNoOfTicks-CwG9lMmQ.cjs +2 -0
- package/dist/getNoOfTicks-CwG9lMmQ.cjs.map +1 -0
- package/dist/getSliderMarks-CTKVxOEm.js +19 -0
- package/dist/getSliderMarks-CTKVxOEm.js.map +1 -0
- package/dist/getSliderMarks-DCEGtxIl.cjs +2 -0
- package/dist/getSliderMarks-DCEGtxIl.cjs.map +1 -0
- package/dist/getTextColorBasedOnBgColor-B0B-azeJ.cjs +2 -0
- package/dist/getTextColorBasedOnBgColor-B0B-azeJ.cjs.map +1 -0
- package/dist/getTextColorBasedOnBgColor-Ch7uw_Px.js +34 -0
- package/dist/getTextColorBasedOnBgColor-Ch7uw_Px.js.map +1 -0
- package/dist/getUniqValue-BItnnZEr.cjs +2 -0
- package/dist/getUniqValue-BItnnZEr.cjs.map +1 -0
- package/dist/getUniqValue-DZTOHgt8.js +11 -0
- package/dist/getUniqValue-DZTOHgt8.js.map +1 -0
- package/dist/getValues-Bt73vs_w.js +13 -0
- package/dist/getValues-Bt73vs_w.js.map +1 -0
- package/dist/getValues-CX_V1GcA.cjs +2 -0
- package/dist/getValues-CX_V1GcA.cjs.map +1 -0
- package/dist/imageDownload-B8Pd4gTs.cjs +15 -0
- package/dist/imageDownload-B8Pd4gTs.cjs.map +1 -0
- package/dist/imageDownload-DFFsgajo.js +804 -0
- package/dist/imageDownload-DFFsgajo.js.map +1 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.ts +91 -5918
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -183
- package/dist/init-BTypmXMF.cjs +2 -0
- package/dist/init-BTypmXMF.cjs.map +1 -0
- package/dist/init-CT6uqW57.js +75 -0
- package/dist/init-CT6uqW57.js.map +1 -0
- package/dist/jsx-runtime-C76bEyh7.js +182 -0
- package/dist/jsx-runtime-C76bEyh7.js.map +1 -0
- package/dist/jsx-runtime-Cd1vCQjn.cjs +7 -0
- package/dist/jsx-runtime-Cd1vCQjn.cjs.map +1 -0
- package/dist/line-6wslDyQb.js +144 -0
- package/dist/line-6wslDyQb.js.map +1 -0
- package/dist/line-DoUnRqpS.cjs +2 -0
- package/dist/line-DoUnRqpS.cjs.map +1 -0
- package/dist/linear-B93YyHf_.cjs +2 -0
- package/dist/linear-B93YyHf_.cjs.map +1 -0
- package/dist/linear-BkosG4OK.js +234 -0
- package/dist/linear-BkosG4OK.js.map +1 -0
- package/dist/lodash.flattendeep-_PlS_1wX.cjs +2 -0
- package/dist/lodash.flattendeep-_PlS_1wX.cjs.map +1 -0
- package/dist/lodash.flattendeep-a__mQ60W.js +53 -0
- package/dist/lodash.flattendeep-a__mQ60W.js.map +1 -0
- package/dist/lodash.intersection-BDR4j58n.cjs +2 -0
- package/dist/lodash.intersection-BDR4j58n.cjs.map +1 -0
- package/dist/lodash.intersection-C9QFuAQj.js +248 -0
- package/dist/lodash.intersection-C9QFuAQj.js.map +1 -0
- package/dist/lodash.orderby-Dn2sr3tw.js +583 -0
- package/dist/lodash.orderby-Dn2sr3tw.js.map +1 -0
- package/dist/lodash.orderby-Us2PHq2D.cjs +2 -0
- package/dist/lodash.orderby-Us2PHq2D.cjs.map +1 -0
- package/dist/lodash.sum-CX6zs3_n.js +22 -0
- package/dist/lodash.sum-CX6zs3_n.js.map +1 -0
- package/dist/lodash.sum-bWhlZLUV.cjs +2 -0
- package/dist/lodash.sum-bWhlZLUV.cjs.map +1 -0
- package/dist/numberFormattingFunction-Caf5NyIo.cjs +2 -0
- package/dist/numberFormattingFunction-Caf5NyIo.cjs.map +1 -0
- package/dist/numberFormattingFunction-Cha8dhHc.js +29 -0
- package/dist/numberFormattingFunction-Cha8dhHc.js.map +1 -0
- package/dist/ordinal-Dq1sg8_s.js +67 -0
- package/dist/ordinal-Dq1sg8_s.js.map +1 -0
- package/dist/ordinal-FQwO0oQx.cjs +2 -0
- package/dist/ordinal-FQwO0oQx.cjs.map +1 -0
- package/dist/parse-5MWhaq6h.js +2508 -0
- package/dist/parse-5MWhaq6h.js.map +1 -0
- package/dist/parse-C718o4YM.cjs +2 -0
- package/dist/parse-C718o4YM.cjs.map +1 -0
- package/dist/pointer-CoEekBJE.js +26 -0
- package/dist/pointer-CoEekBJE.js.map +1 -0
- package/dist/pointer-nSSkgdlX.cjs +2 -0
- package/dist/pointer-nSSkgdlX.cjs.map +1 -0
- package/dist/pow-CISbw8TV.js +36 -0
- package/dist/pow-CISbw8TV.js.map +1 -0
- package/dist/pow-DXd5n928.cjs +2 -0
- package/dist/pow-DXd5n928.cjs.map +1 -0
- package/dist/proxy-BiRrIImK.js +4656 -0
- package/dist/proxy-BiRrIImK.js.map +1 -0
- package/dist/proxy-DaRMphjR.cjs +2 -0
- package/dist/proxy-DaRMphjR.cjs.map +1 -0
- package/dist/select-0Z0HV7nm.js +649 -0
- package/dist/select-0Z0HV7nm.js.map +1 -0
- package/dist/select-CZVfejpg.cjs +2 -0
- package/dist/select-CZVfejpg.cjs.map +1 -0
- package/dist/simple-statistics-B4XnKTMF.cjs +2 -0
- package/dist/simple-statistics-B4XnKTMF.cjs.map +1 -0
- package/dist/simple-statistics-BlsBuRxU.js +97 -0
- package/dist/simple-statistics-BlsBuRxU.js.map +1 -0
- package/dist/src-2DIiCwTd.js +2377 -0
- package/dist/src-2DIiCwTd.js.map +1 -0
- package/dist/src-BstANsLK.cjs +2 -0
- package/dist/src-BstANsLK.cjs.map +1 -0
- package/dist/step-Bxl4gFpO.js +135 -0
- package/dist/step-Bxl4gFpO.js.map +1 -0
- package/dist/step-C_FLQezZ.cjs +2 -0
- package/dist/step-C_FLQezZ.cjs.map +1 -0
- package/dist/stories/Dashboards/Elements/ChartConfigDropdown.d.ts +6 -0
- package/dist/stories/Dashboards/Elements/ChartConfigDropdown.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/BarGraph.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/BarGraph.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/BarGraphAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/BarGraphAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/GroupedBarGraph.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/GroupedBarGraph.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/GroupedBarGraphAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/GroupedBarGraphAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/StackedBarGraph.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/StackedBarGraph.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/StackedBarGraphAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BarGraph/StackedBarGraphAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BeeSwarmChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BeeSwarmChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BulletChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BulletChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/BulletChartAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/BulletChartAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/ButterflyChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/ButterflyChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/ButterflyChartAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/ButterflyChartAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/CirclePacking.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/CirclePacking.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/DataCards.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/DataCards.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/DataTables.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/DataTables.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/DonutChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/DonutChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/DumbbellChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/DumbbellChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/DumbbellChartAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/DumbbellChartAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/HeatMap.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/HeatMap.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Histogram.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Histogram.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/DifferenceLineChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/DifferenceLineChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/DualAxesLineChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/DualAxesLineChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/LineChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/LineChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/LineChartWithInterval.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/LineChartWithInterval.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/MultiLineAltChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/MultiLineAltChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/MultiLineChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/MultiLineChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/Sparkline.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/LineCharts/Sparkline.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/BiVariateChroplethMap.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/BiVariateChroplethMap.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/BiVariateChroplethMapAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/BiVariateChroplethMapAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/ChroplethMap.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/ChroplethMap.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/ChroplethMapAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/ChroplethMapAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/DotDensityMap.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/DotDensityMap.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/DotDensityMapAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/DotDensityMapAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/GeoHubCompareMaps.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/GeoHubCompareMaps.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/GeoHubMultiLayerSelectMap.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/GeoHubMultiLayerSelectMap.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/GeoHubSimpleMap.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/GeoHubSimpleMap.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/HybridMap.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/HybridMap.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/HybridMapAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/HybridMapAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/Maps/ThreeDGlobe.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/Maps/ThreeDGlobe.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/ParetoChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/ParetoChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/RadarChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/RadarChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/SankeyChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/SankeyChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/ScatterPlot.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/ScatterPlot.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/ScatterPlotAnimated.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/ScatterPlotAnimated.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/SlopeChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/SlopeChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/StackedAreaChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/StackedAreaChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/StatCards/BasicStatCard.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/StatCards/BasicStatCard.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/StatCards/StatCardFromData.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/StatCards/StatCardFromData.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/StripChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/StripChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/TreeMap.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/TreeMap.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/UnitChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/UnitChart.stories.d.ts.map +1 -0
- package/dist/stories/Graph+Maps+Charts/WaterfallChart.stories.d.ts +9 -0
- package/dist/stories/Graph+Maps+Charts/WaterfallChart.stories.d.ts.map +1 -0
- package/dist/stories/Utilities/Color Palette/DataVizDarkMode.stories.d.ts +5 -0
- package/dist/stories/Utilities/Color Palette/DataVizDarkMode.stories.d.ts.map +1 -0
- package/dist/stories/Utilities/Color Palette/DataVizLightMode.stories.d.ts +5 -0
- package/dist/stories/Utilities/Color Palette/DataVizLightMode.stories.d.ts.map +1 -0
- package/dist/stories/Utilities/Color Palette/Palette Component/index.d.ts +6 -0
- package/dist/stories/Utilities/Color Palette/Palette Component/index.d.ts.map +1 -0
- package/dist/stories/Utilities/Color Palette/Primary.stories.d.ts +5 -0
- package/dist/stories/Utilities/Color Palette/Primary.stories.d.ts.map +1 -0
- package/dist/stories/assets/constants.d.ts +14 -0
- package/dist/stories/assets/constants.d.ts.map +1 -0
- package/dist/stories/assets/graphDataConfigSelect.d.ts +2 -0
- package/dist/stories/assets/graphDataConfigSelect.d.ts.map +1 -0
- package/dist/stories/assets/graphSettingsSelect.d.ts +2 -0
- package/dist/stories/assets/graphSettingsSelect.d.ts.map +1 -0
- package/dist/stories/assets/parseValue.d.ts +2 -0
- package/dist/stories/assets/parseValue.d.ts.map +1 -0
- package/dist/string-C0cfWwsg.cjs +2 -0
- package/dist/string-C0cfWwsg.cjs.map +1 -0
- package/dist/string-ChkwXRLb.js +367 -0
- package/dist/string-ChkwXRLb.js.map +1 -0
- package/dist/string2HTML-CvbtZnul.js +893 -0
- package/dist/string2HTML-CvbtZnul.js.map +1 -0
- package/dist/string2HTML-CyL1MYMB.cjs +3 -0
- package/dist/string2HTML-CyL1MYMB.cjs.map +1 -0
- package/dist/style.css +2 -1
- package/dist/svgDownload-B47CWa3n.js +10 -0
- package/dist/svgDownload-B47CWa3n.js.map +1 -0
- package/dist/svgDownload-BfClOPfh.cjs +2 -0
- package/dist/svgDownload-BfClOPfh.cjs.map +1 -0
- package/dist/threshold-BXJz-mv7.cjs +2 -0
- package/dist/threshold-BXJz-mv7.cjs.map +1 -0
- package/dist/threshold-j3AJep9l.js +24 -0
- package/dist/threshold-j3AJep9l.js.map +1 -0
- package/dist/time-B9tsaA4g.cjs +2 -0
- package/dist/time-B9tsaA4g.cjs.map +1 -0
- package/dist/time-BSWvT9ln.js +840 -0
- package/dist/time-BSWvT9ln.js.map +1 -0
- package/dist/timer-BSVEY28v.js +119 -0
- package/dist/timer-BSVEY28v.js.map +1 -0
- package/dist/timer-D4OWClu3.cjs +2 -0
- package/dist/timer-D4OWClu3.cjs.map +1 -0
- package/dist/transformData.cjs +1 -2
- package/dist/transformData.d.ts +2 -170
- package/dist/transformData.js +4 -10
- package/dist/transformDataForGraph-CiaG24wJ.cjs +2 -0
- package/dist/transformDataForGraph-CiaG24wJ.cjs.map +1 -0
- package/dist/transformDataForGraph-DKYRsjv8.js +766 -0
- package/dist/transformDataForGraph-DKYRsjv8.js.map +1 -0
- package/dist/transformDataForGraphFromFile-BZGRv4KM.js +14 -0
- package/dist/transformDataForGraphFromFile-BZGRv4KM.js.map +1 -0
- package/dist/transformDataForGraphFromFile-kjckJjiV.cjs +2 -0
- package/dist/transformDataForGraphFromFile-kjckJjiV.cjs.map +1 -0
- package/dist/transformDataForSelect-Bmaowc2Z.cjs +2 -0
- package/dist/transformDataForSelect-Bmaowc2Z.cjs.map +1 -0
- package/dist/transformDataForSelect-DRC8qPt4.js +14 -0
- package/dist/transformDataForSelect-DRC8qPt4.js.map +1 -0
- package/dist/uniqBy-DTdieuuc.cjs +2 -0
- package/dist/uniqBy-DTdieuuc.cjs.map +1 -0
- package/dist/uniqBy-feeqYuys.js +9 -0
- package/dist/uniqBy-feeqYuys.js.map +1 -0
- package/dist/use-in-view-C4EPQfwM.cjs +2 -0
- package/dist/use-in-view-C4EPQfwM.cjs.map +1 -0
- package/dist/use-in-view-CjlKdln1.js +47 -0
- package/dist/use-in-view-CjlKdln1.js.map +1 -0
- package/dist/utils.cjs +1 -2
- package/dist/utils.d.ts +2 -216
- package/dist/utils.js +12 -29
- package/dist/y-B6sP7d7V.cjs +2 -0
- package/dist/y-B6sP7d7V.cjs.map +1 -0
- package/dist/y-C3UBwapx.js +450 -0
- package/dist/y-C3UBwapx.js.map +1 -0
- package/package.json +605 -620
- package/dist/AreaChart.cjs.map +0 -1
- package/dist/AreaChart.js.map +0 -1
- package/dist/Axis-BTaS9oPQ.cjs +0 -2
- package/dist/Axis-BTaS9oPQ.cjs.map +0 -1
- package/dist/Axis-CNZYWzH0.js +0 -31
- package/dist/Axis-CNZYWzH0.js.map +0 -1
- package/dist/AxisTitle-CyLCqpW6.js +0 -29
- package/dist/AxisTitle-CyLCqpW6.js.map +0 -1
- package/dist/AxisTitle-DP_evhbe.cjs +0 -2
- package/dist/AxisTitle-DP_evhbe.cjs.map +0 -1
- package/dist/BarGraph.cjs.map +0 -1
- package/dist/BarGraph.js.map +0 -1
- package/dist/BeeSwarmChart.cjs.map +0 -1
- package/dist/BeeSwarmChart.js.map +0 -1
- package/dist/BiVariateChoroplethMap.cjs.map +0 -1
- package/dist/BiVariateChoroplethMap.js.map +0 -1
- package/dist/BulletChart.cjs.map +0 -1
- package/dist/BulletChart.js.map +0 -1
- package/dist/ButterflyChart.cjs.map +0 -1
- package/dist/ButterflyChart.js.map +0 -1
- package/dist/ChoroplethMap.cjs.map +0 -1
- package/dist/ChoroplethMap.js.map +0 -1
- package/dist/CirclePackingGraph.cjs.map +0 -1
- package/dist/CirclePackingGraph.js.map +0 -1
- package/dist/CsvDownloadButton.cjs.map +0 -1
- package/dist/CsvDownloadButton.js.map +0 -1
- package/dist/DataCards.cjs.map +0 -1
- package/dist/DataCards.js.map +0 -1
- package/dist/DetailsModal-Du8Fr1QD.cjs +0 -2
- package/dist/DetailsModal-Du8Fr1QD.cjs.map +0 -1
- package/dist/DetailsModal-GqEbGHY2.js +0 -32
- package/dist/DetailsModal-GqEbGHY2.js.map +0 -1
- package/dist/DifferenceLineChart.cjs.map +0 -1
- package/dist/DifferenceLineChart.js.map +0 -1
- package/dist/DonutChart.cjs.map +0 -1
- package/dist/DonutChart.js.map +0 -1
- package/dist/DotDensityMap.cjs.map +0 -1
- package/dist/DotDensityMap.js.map +0 -1
- package/dist/DropdownSelect-CX1yMemd.cjs +0 -5
- package/dist/DropdownSelect-CX1yMemd.cjs.map +0 -1
- package/dist/DropdownSelect-Dz7imdTB.js +0 -4191
- package/dist/DropdownSelect-Dz7imdTB.js.map +0 -1
- package/dist/DualAxisLineChart.cjs.map +0 -1
- package/dist/DualAxisLineChart.js.map +0 -1
- package/dist/DumbbellChart.cjs.map +0 -1
- package/dist/DumbbellChart.js.map +0 -1
- package/dist/EmptyState-CFmiFPHz.cjs +0 -2
- package/dist/EmptyState-CFmiFPHz.cjs.map +0 -1
- package/dist/EmptyState-CaxXCkiN.js +0 -15
- package/dist/EmptyState-CaxXCkiN.js.map +0 -1
- package/dist/GeoHubCompareMaps.cjs.map +0 -1
- package/dist/GeoHubCompareMaps.js.map +0 -1
- package/dist/GeoHubMap.cjs.map +0 -1
- package/dist/GeoHubMap.js.map +0 -1
- package/dist/GeoHubMapWithLayerSelection.cjs.map +0 -1
- package/dist/GeoHubMapWithLayerSelection.js.map +0 -1
- package/dist/GraphContainer-B8ZqOzKI.js +0 -78
- package/dist/GraphContainer-B8ZqOzKI.js.map +0 -1
- package/dist/GraphContainer-Cul9b74X.cjs +0 -2
- package/dist/GraphContainer-Cul9b74X.cjs.map +0 -1
- package/dist/GraphEl-BgkDbq50.cjs +0 -2
- package/dist/GraphEl-BgkDbq50.cjs.map +0 -1
- package/dist/GraphEl-Ch0uAeZw.js +0 -1830
- package/dist/GraphEl-Ch0uAeZw.js.map +0 -1
- package/dist/HeatMap.cjs.map +0 -1
- package/dist/HeatMap.js.map +0 -1
- package/dist/Histogram.cjs.map +0 -1
- package/dist/Histogram.js.map +0 -1
- package/dist/HybridMap.cjs.map +0 -1
- package/dist/HybridMap.js.map +0 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +0 -1
- package/dist/LineChartWithConfidenceInterval.js.map +0 -1
- package/dist/Modal-BIErPPKT.cjs +0 -46
- package/dist/Modal-BIErPPKT.cjs.map +0 -1
- package/dist/Modal-CrUYln5V.js +0 -1047
- package/dist/Modal-CrUYln5V.js.map +0 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +0 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +0 -1
- package/dist/MultiLineAltChart.cjs.map +0 -1
- package/dist/MultiLineAltChart.js.map +0 -1
- package/dist/MultiLineChart.cjs.map +0 -1
- package/dist/MultiLineChart.js.map +0 -1
- package/dist/ParetoChart.cjs.map +0 -1
- package/dist/ParetoChart.js.map +0 -1
- package/dist/RadarChart.cjs.map +0 -1
- package/dist/RadarChart.js.map +0 -1
- package/dist/ReferenceLine-CpU4G01Y.cjs +0 -2
- package/dist/ReferenceLine-CpU4G01Y.cjs.map +0 -1
- package/dist/ReferenceLine-D41VuUhE.js +0 -162
- package/dist/ReferenceLine-D41VuUhE.js.map +0 -1
- package/dist/RegressionLine-BFoBiVJk.cjs +0 -2
- package/dist/RegressionLine-BFoBiVJk.cjs.map +0 -1
- package/dist/RegressionLine-CuwB42I6.js +0 -87
- package/dist/RegressionLine-CuwB42I6.js.map +0 -1
- package/dist/SankeyChart.cjs.map +0 -1
- package/dist/SankeyChart.js.map +0 -1
- package/dist/ScatterPlot.cjs.map +0 -1
- package/dist/ScatterPlot.js.map +0 -1
- package/dist/SimpleLineChart.cjs.map +0 -1
- package/dist/SimpleLineChart.js.map +0 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +0 -1
- package/dist/SingleGraphDashboardGeoHubMaps.js.map +0 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +0 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +0 -1
- package/dist/SlopeChart.cjs.map +0 -1
- package/dist/SlopeChart.js.map +0 -1
- package/dist/Source-PKuwZOn3.cjs +0 -2
- package/dist/Source-PKuwZOn3.cjs.map +0 -1
- package/dist/Source-QGk8vhkS.js +0 -78
- package/dist/Source-QGk8vhkS.js.map +0 -1
- package/dist/SparkLine.cjs.map +0 -1
- package/dist/SparkLine.js.map +0 -1
- package/dist/Spinner-B2IIKg9r.js +0 -47
- package/dist/Spinner-B2IIKg9r.js.map +0 -1
- package/dist/Spinner-WHzzloYQ.cjs +0 -2
- package/dist/Spinner-WHzzloYQ.cjs.map +0 -1
- package/dist/StripChart.cjs.map +0 -1
- package/dist/StripChart.js.map +0 -1
- package/dist/ThreeDGlobe.cjs.map +0 -1
- package/dist/ThreeDGlobe.js.map +0 -1
- package/dist/Tooltip-3EYDVa3w.js +0 -45
- package/dist/Tooltip-3EYDVa3w.js.map +0 -1
- package/dist/Tooltip-C9F3uYG0.cjs +0 -2
- package/dist/Tooltip-C9F3uYG0.cjs.map +0 -1
- package/dist/TreeMapGraph.cjs.map +0 -1
- package/dist/TreeMapGraph.js.map +0 -1
- package/dist/Types.cjs.map +0 -1
- package/dist/Types.js.map +0 -1
- package/dist/Typography-BO0gQDIT.js +0 -270
- package/dist/Typography-BO0gQDIT.js.map +0 -1
- package/dist/Typography-BqmyF1gP.cjs +0 -2
- package/dist/Typography-BqmyF1gP.cjs.map +0 -1
- package/dist/WaterfallChart.cjs.map +0 -1
- package/dist/WaterfallChart.js.map +0 -1
- package/dist/XAxesLabels-B9gkjUiC.js +0 -63
- package/dist/XAxesLabels-B9gkjUiC.js.map +0 -1
- package/dist/XAxesLabels-C03jHniq.cjs +0 -2
- package/dist/XAxesLabels-C03jHniq.cjs.map +0 -1
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs +0 -2
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +0 -1
- package/dist/XTicksAndGridLines-CkYwVshF.js +0 -40
- package/dist/XTicksAndGridLines-CkYwVshF.js.map +0 -1
- package/dist/YAxesLabels-DeENFC2M.cjs +0 -2
- package/dist/YAxesLabels-DeENFC2M.cjs.map +0 -1
- package/dist/YAxesLabels-hWEUCTvs.js +0 -61
- package/dist/YAxesLabels-hWEUCTvs.js.map +0 -1
- package/dist/YTicksAndGridLines-BbujwxOB.js +0 -40
- package/dist/YTicksAndGridLines-BbujwxOB.js.map +0 -1
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs +0 -2
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +0 -1
- package/dist/_commonjsHelpers-BH3jXuIh.cjs +0 -2
- package/dist/_commonjsHelpers-BH3jXuIh.cjs.map +0 -1
- package/dist/_commonjsHelpers-ByX85dGu.js +0 -34
- package/dist/_commonjsHelpers-ByX85dGu.js.map +0 -1
- package/dist/area-B6r7cv2o.js +0 -53
- package/dist/area-B6r7cv2o.js.map +0 -1
- package/dist/area-C1gxfNGD.cjs +0 -2
- package/dist/area-C1gxfNGD.cjs.map +0 -1
- package/dist/array-DMyR1sql.cjs +0 -2
- package/dist/array-DMyR1sql.cjs.map +0 -1
- package/dist/array-USo-Szhp.js +0 -13
- package/dist/array-USo-Szhp.js.map +0 -1
- package/dist/band-DYty33LD.js +0 -47
- package/dist/band-DYty33LD.js.map +0 -1
- package/dist/band-VYfcZeJ2.cjs +0 -2
- package/dist/band-VYfcZeJ2.cjs.map +0 -1
- package/dist/checkIfMultiple-CH5tqj4q.cjs +0 -2
- package/dist/checkIfMultiple-CH5tqj4q.cjs.map +0 -1
- package/dist/checkIfMultiple-Dpyy6BUP.js +0 -938
- package/dist/checkIfMultiple-Dpyy6BUP.js.map +0 -1
- package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs +0 -2
- package/dist/checkIfNullOrUndefined-BCW3Y1ML.cjs.map +0 -1
- package/dist/checkIfNullOrUndefined-DmfiKkNw.js +0 -7
- package/dist/checkIfNullOrUndefined-DmfiKkNw.js.map +0 -1
- package/dist/customArea-BAcQ3pBM.cjs +0 -2
- package/dist/customArea-BAcQ3pBM.cjs.map +0 -1
- package/dist/customArea-D89lETG0.js +0 -163
- package/dist/customArea-D89lETG0.js.map +0 -1
- package/dist/defaultLocale-C4wbwF1n.cjs +0 -2
- package/dist/defaultLocale-C4wbwF1n.cjs.map +0 -1
- package/dist/defaultLocale-CPy_WVtp.js +0 -172
- package/dist/defaultLocale-CPy_WVtp.js.map +0 -1
- package/dist/delaunay-C1uAf38t.js +0 -684
- package/dist/delaunay-C1uAf38t.js.map +0 -1
- package/dist/delaunay-rcy0HhZi.cjs +0 -2
- package/dist/delaunay-rcy0HhZi.cjs.map +0 -1
- package/dist/ensureCompleteData-CDIukSG6.js +0 -122
- package/dist/ensureCompleteData-CDIukSG6.js.map +0 -1
- package/dist/ensureCompleteData-D9bQTiVS.cjs +0 -2
- package/dist/ensureCompleteData-D9bQTiVS.cjs.map +0 -1
- package/dist/excelDownload-BEC1AyQW.js +0 -29
- package/dist/excelDownload-BEC1AyQW.js.map +0 -1
- package/dist/excelDownload-BQpsCa62.cjs +0 -2
- package/dist/excelDownload-BQpsCa62.cjs.map +0 -1
- package/dist/fetchAndParseData-BAXhgTDM.js +0 -564
- package/dist/fetchAndParseData-BAXhgTDM.js.map +0 -1
- package/dist/fetchAndParseData-QTF6tjij.cjs +0 -11
- package/dist/fetchAndParseData-QTF6tjij.cjs.map +0 -1
- package/dist/fetchAndParseData.cjs.map +0 -1
- package/dist/fetchAndParseData.js.map +0 -1
- package/dist/filterData-DsAiFzKY.js +0 -12
- package/dist/filterData-DsAiFzKY.js.map +0 -1
- package/dist/filterData-T5DQBE9b.cjs +0 -2
- package/dist/filterData-T5DQBE9b.cjs.map +0 -1
- package/dist/generateRandomString-B5zBiJzS.cjs +0 -2
- package/dist/generateRandomString-B5zBiJzS.cjs.map +0 -1
- package/dist/generateRandomString-za3IQGfQ.js +0 -11
- package/dist/generateRandomString-za3IQGfQ.js.map +0 -1
- package/dist/getCentroidCoordinates-CtBGrNC8.cjs +0 -2
- package/dist/getCentroidCoordinates-CtBGrNC8.cjs.map +0 -1
- package/dist/getCentroidCoordinates-s0OOUjLF.js +0 -70
- package/dist/getCentroidCoordinates-s0OOUjLF.js.map +0 -1
- package/dist/getGraphList-Bpd3PVmF.js +0 -239
- package/dist/getGraphList-Bpd3PVmF.js.map +0 -1
- package/dist/getGraphList-DQ24IzAn.cjs +0 -2
- package/dist/getGraphList-DQ24IzAn.cjs.map +0 -1
- package/dist/getJenks-BzJvhy_H.cjs +0 -2
- package/dist/getJenks-BzJvhy_H.cjs.map +0 -1
- package/dist/getJenks-DTCcQSDi.js +0 -19
- package/dist/getJenks-DTCcQSDi.js.map +0 -1
- package/dist/getNoOfTicks-C_1CFXv_.cjs +0 -2
- package/dist/getNoOfTicks-C_1CFXv_.cjs.map +0 -1
- package/dist/getNoOfTicks-CpmRjcRF.js +0 -7
- package/dist/getNoOfTicks-CpmRjcRF.js.map +0 -1
- package/dist/getSliderMarks-BzrpHrHS.cjs +0 -2
- package/dist/getSliderMarks-BzrpHrHS.cjs.map +0 -1
- package/dist/getSliderMarks-X-_goqH9.js +0 -1027
- package/dist/getSliderMarks-X-_goqH9.js.map +0 -1
- package/dist/getTextColorBasedOnBgColor-CDY808zi.js +0 -36
- package/dist/getTextColorBasedOnBgColor-CDY808zi.js.map +0 -1
- package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs +0 -2
- package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +0 -1
- package/dist/getUniqValue-DsqSii6M.js +0 -11
- package/dist/getUniqValue-DsqSii6M.js.map +0 -1
- package/dist/getUniqValue-NX8DgwND.cjs +0 -2
- package/dist/getUniqValue-NX8DgwND.cjs.map +0 -1
- package/dist/imageDownload-BYsNEtMS.js +0 -990
- package/dist/imageDownload-BYsNEtMS.js.map +0 -1
- package/dist/imageDownload-CkMwA7Cw.cjs +0 -15
- package/dist/imageDownload-CkMwA7Cw.cjs.map +0 -1
- package/dist/index-ApTBN0kp.js +0 -196
- package/dist/index-ApTBN0kp.js.map +0 -1
- package/dist/index-BPyj_6hG.js +0 -375
- package/dist/index-BPyj_6hG.js.map +0 -1
- package/dist/index-BS2TADPj.cjs +0 -2
- package/dist/index-BS2TADPj.cjs.map +0 -1
- package/dist/index-BZQYSqar.js +0 -658
- package/dist/index-BZQYSqar.js.map +0 -1
- package/dist/index-BhI7mBJx.cjs +0 -2
- package/dist/index-BhI7mBJx.cjs.map +0 -1
- package/dist/index-BuhBhuCq.cjs +0 -2
- package/dist/index-BuhBhuCq.cjs.map +0 -1
- package/dist/index-BuwmuDFJ.js +0 -273
- package/dist/index-BuwmuDFJ.js.map +0 -1
- package/dist/index-Bwrro8-q.js +0 -35
- package/dist/index-Bwrro8-q.js.map +0 -1
- package/dist/index-C5K--w8d.cjs +0 -2
- package/dist/index-C5K--w8d.cjs.map +0 -1
- package/dist/index-CHPV5EwG-BzibaIRc.js +0 -3360
- package/dist/index-CHPV5EwG-BzibaIRc.js.map +0 -1
- package/dist/index-CHPV5EwG-D4pAp7u0.cjs +0 -20
- package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +0 -1
- package/dist/index-CKpKc9DR.js +0 -2344
- package/dist/index-CKpKc9DR.js.map +0 -1
- package/dist/index-CSNtgibC.cjs +0 -2
- package/dist/index-CSNtgibC.cjs.map +0 -1
- package/dist/index-CeVNqhMO.js +0 -26
- package/dist/index-CeVNqhMO.js.map +0 -1
- package/dist/index-Cno4Q0YE.cjs +0 -2
- package/dist/index-Cno4Q0YE.cjs.map +0 -1
- package/dist/index-Cv_5q6Rb.js +0 -148
- package/dist/index-Cv_5q6Rb.js.map +0 -1
- package/dist/index-CyZ1lmi_.cjs +0 -2
- package/dist/index-CyZ1lmi_.cjs.map +0 -1
- package/dist/index-DCsFBfJ_.js +0 -808
- package/dist/index-DCsFBfJ_.js.map +0 -1
- package/dist/index-DHVGV8Df.js +0 -99
- package/dist/index-DHVGV8Df.js.map +0 -1
- package/dist/index-DLFt97gy.cjs +0 -2
- package/dist/index-DLFt97gy.cjs.map +0 -1
- package/dist/index-DQA8q5sC.cjs +0 -2
- package/dist/index-DQA8q5sC.cjs.map +0 -1
- package/dist/index-DuLvdHo2.cjs +0 -2
- package/dist/index-DuLvdHo2.cjs.map +0 -1
- package/dist/index-EArKRVKg.js +0 -53
- package/dist/index-EArKRVKg.js.map +0 -1
- package/dist/index-FXfr51ZM.cjs +0 -10
- package/dist/index-FXfr51ZM.cjs.map +0 -1
- package/dist/index-Scxs_wcm-BAjU0Cob.js +0 -49
- package/dist/index-Scxs_wcm-BAjU0Cob.js.map +0 -1
- package/dist/index-Scxs_wcm-DUDU-Gll.cjs +0 -2
- package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +0 -1
- package/dist/index-w64Zl8io-DrMm5QSb.cjs +0 -2
- package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +0 -1
- package/dist/index-w64Zl8io-ihagHOdP.js +0 -459
- package/dist/index-w64Zl8io-ihagHOdP.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init-BhZylTFx.js +0 -63
- package/dist/init-BhZylTFx.js.map +0 -1
- package/dist/init-DU0ybBc_.cjs +0 -2
- package/dist/init-DU0ybBc_.cjs.map +0 -1
- package/dist/line-DFlZsxI1.js +0 -144
- package/dist/line-DFlZsxI1.js.map +0 -1
- package/dist/line-DaEMhXmx.cjs +0 -2
- package/dist/line-DaEMhXmx.cjs.map +0 -1
- package/dist/linear-CgUCbw9F.cjs +0 -2
- package/dist/linear-CgUCbw9F.cjs.map +0 -1
- package/dist/linear-DNXM5Pdl.js +0 -221
- package/dist/linear-DNXM5Pdl.js.map +0 -1
- package/dist/numberFormattingFunction-BUUV_luR.js +0 -28
- package/dist/numberFormattingFunction-BUUV_luR.js.map +0 -1
- package/dist/numberFormattingFunction-u2iNHL_c.cjs +0 -2
- package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +0 -1
- package/dist/ordinal-CHaxGJ_l.js +0 -62
- package/dist/ordinal-CHaxGJ_l.js.map +0 -1
- package/dist/ordinal-CrsysVE-.cjs +0 -2
- package/dist/ordinal-CrsysVE-.cjs.map +0 -1
- package/dist/parse-Dv4of-PN.js +0 -2703
- package/dist/parse-Dv4of-PN.js.map +0 -1
- package/dist/parse-xYI9yrvL.cjs +0 -2
- package/dist/parse-xYI9yrvL.cjs.map +0 -1
- package/dist/pointer-CWRWOsrb.js +0 -23
- package/dist/pointer-CWRWOsrb.js.map +0 -1
- package/dist/pointer-Dkq5NV1q.cjs +0 -2
- package/dist/pointer-Dkq5NV1q.cjs.map +0 -1
- package/dist/pow-BXYLJHCq.js +0 -35
- package/dist/pow-BXYLJHCq.js.map +0 -1
- package/dist/pow-BnyPO-NX.cjs +0 -2
- package/dist/pow-BnyPO-NX.cjs.map +0 -1
- package/dist/proxy-BsxtcZKa.js +0 -4781
- package/dist/proxy-BsxtcZKa.js.map +0 -1
- package/dist/proxy-CqH8m8IQ.cjs +0 -2
- package/dist/proxy-CqH8m8IQ.cjs.map +0 -1
- package/dist/removeOutliers-BqW0sPqj.js +0 -54
- package/dist/removeOutliers-BqW0sPqj.js.map +0 -1
- package/dist/removeOutliers-WELHHqiI.cjs +0 -2
- package/dist/removeOutliers-WELHHqiI.cjs.map +0 -1
- package/dist/select-Bnfk0lJx.cjs +0 -2
- package/dist/select-Bnfk0lJx.cjs.map +0 -1
- package/dist/select-DKy99ogv.js +0 -584
- package/dist/select-DKy99ogv.js.map +0 -1
- package/dist/simple-statistics-flVzqVtt.js +0 -65
- package/dist/simple-statistics-flVzqVtt.js.map +0 -1
- package/dist/simple-statistics-xm8c0LQQ.cjs +0 -2
- package/dist/simple-statistics-xm8c0LQQ.cjs.map +0 -1
- package/dist/step-BZ3C8QFW.cjs +0 -2
- package/dist/step-BZ3C8QFW.cjs.map +0 -1
- package/dist/step-BrDul-H4.js +0 -119
- package/dist/step-BrDul-H4.js.map +0 -1
- package/dist/string-C-kRh1bQ.cjs +0 -2
- package/dist/string-C-kRh1bQ.cjs.map +0 -1
- package/dist/string-CbaFIsiV.js +0 -364
- package/dist/string-CbaFIsiV.js.map +0 -1
- package/dist/string2HTML-30nfIm8R.cjs +0 -3
- package/dist/string2HTML-30nfIm8R.cjs.map +0 -1
- package/dist/string2HTML-DL-pInUB.js +0 -764
- package/dist/string2HTML-DL-pInUB.js.map +0 -1
- package/dist/svgDownload-BAoarWNt.js +0 -11
- package/dist/svgDownload-BAoarWNt.js.map +0 -1
- package/dist/svgDownload-D9zEGjTF.cjs +0 -2
- package/dist/svgDownload-D9zEGjTF.cjs.map +0 -1
- package/dist/threshold-DFfqcDMa.js +0 -23
- package/dist/threshold-DFfqcDMa.js.map +0 -1
- package/dist/threshold-DNsSUf8Q.cjs +0 -2
- package/dist/threshold-DNsSUf8Q.cjs.map +0 -1
- package/dist/time-CkcKbhwe.cjs +0 -2
- package/dist/time-CkcKbhwe.cjs.map +0 -1
- package/dist/time-vyz6Y89P.js +0 -715
- package/dist/time-vyz6Y89P.js.map +0 -1
- package/dist/timer-B39XOBYL.js +0 -124
- package/dist/timer-B39XOBYL.js.map +0 -1
- package/dist/timer-CKyBCVzT.cjs +0 -2
- package/dist/timer-CKyBCVzT.cjs.map +0 -1
- package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs +0 -4
- package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs.map +0 -1
- package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js +0 -145
- package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js.map +0 -1
- package/dist/transformData.cjs.map +0 -1
- package/dist/transformData.js.map +0 -1
- package/dist/transformDataForAggregation-BFdha9Dx.cjs +0 -2
- package/dist/transformDataForAggregation-BFdha9Dx.cjs.map +0 -1
- package/dist/transformDataForAggregation-wdPf8bNt.js +0 -635
- package/dist/transformDataForAggregation-wdPf8bNt.js.map +0 -1
- package/dist/transformDataForGraphFromFile-DOhp1qrp.cjs +0 -2
- package/dist/transformDataForGraphFromFile-DOhp1qrp.cjs.map +0 -1
- package/dist/transformDataForGraphFromFile-dt9sHTVy.js +0 -14
- package/dist/transformDataForGraphFromFile-dt9sHTVy.js.map +0 -1
- package/dist/transformDataForSelect-D8AuvYdf.js +0 -14
- package/dist/transformDataForSelect-D8AuvYdf.js.map +0 -1
- package/dist/transformDataForSelect-YmStusCI.cjs +0 -2
- package/dist/transformDataForSelect-YmStusCI.cjs.map +0 -1
- package/dist/uniqBy-BHy4I8PK.js +0 -8
- package/dist/uniqBy-BHy4I8PK.js.map +0 -1
- package/dist/uniqBy-O05lp2S5.cjs +0 -2
- package/dist/uniqBy-O05lp2S5.cjs.map +0 -1
- package/dist/use-in-view-KOXq5Kmc.js +0 -40
- package/dist/use-in-view-KOXq5Kmc.js.map +0 -1
- package/dist/use-in-view-dnRv_qqF.cjs +0 -2
- package/dist/use-in-view-dnRv_qqF.cjs.map +0 -1
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.js.map +0 -1
- package/dist/x-BXShoIAM-BC2sxios.cjs +0 -2
- package/dist/x-BXShoIAM-BC2sxios.cjs.map +0 -1
- package/dist/x-BXShoIAM-D6VWO6z5.js +0 -74
- package/dist/x-BXShoIAM-D6VWO6z5.js.map +0 -1
- package/dist/y-BqfogMAB.js +0 -421
- package/dist/y-BqfogMAB.js.map +0 -1
- package/dist/y-QcCbqrzx.cjs +0 -2
- package/dist/y-QcCbqrzx.cjs.map +0 -1
|
@@ -0,0 +1,4656 @@
|
|
|
1
|
+
import { a as e, n as t, r as n } from "./chunk-foFoljWS.js";
|
|
2
|
+
import { t as r } from "./jsx-runtime-C76bEyh7.js";
|
|
3
|
+
import { Component as i, Fragment as a, createContext as o, createElement as s, forwardRef as c, useCallback as l, useContext as u, useEffect as d, useId as f, useInsertionEffect as p, useLayoutEffect as m, useMemo as h, useRef as g } from "react";
|
|
4
|
+
//#region node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
|
|
5
|
+
var _ = r(), v = o({});
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region node_modules/framer-motion/dist/es/utils/use-constant.mjs
|
|
8
|
+
function y(e) {
|
|
9
|
+
let t = g(null);
|
|
10
|
+
return t.current === null && (t.current = e()), t.current;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region node_modules/framer-motion/dist/es/utils/is-browser.mjs
|
|
14
|
+
var b = typeof window < "u", x = b ? m : d, S = /* @__PURE__ */ o(null);
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/motion-utils/dist/es/array.mjs
|
|
17
|
+
function C(e, t) {
|
|
18
|
+
e.indexOf(t) === -1 && e.push(t);
|
|
19
|
+
}
|
|
20
|
+
function ee(e, t) {
|
|
21
|
+
let n = e.indexOf(t);
|
|
22
|
+
n > -1 && e.splice(n, 1);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region node_modules/motion-utils/dist/es/clamp.mjs
|
|
26
|
+
var w = (e, t, n) => n > t ? t : n < e ? e : n;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region node_modules/motion-utils/dist/es/format-error-message.mjs
|
|
29
|
+
function te(e, t) {
|
|
30
|
+
return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region node_modules/motion-utils/dist/es/errors.mjs
|
|
34
|
+
var ne = () => {}, T = () => {};
|
|
35
|
+
typeof process < "u" && process.env.NODE_ENV !== "production" && (ne = (e, t, n) => {
|
|
36
|
+
!e && typeof console < "u" && console.warn(te(t, n));
|
|
37
|
+
}, T = (e, t, n) => {
|
|
38
|
+
if (!e) throw Error(te(t, n));
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region node_modules/motion-utils/dist/es/global-config.mjs
|
|
42
|
+
var E = {}, re = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region node_modules/motion-utils/dist/es/is-object.mjs
|
|
45
|
+
function ie(e) {
|
|
46
|
+
return typeof e == "object" && !!e;
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region node_modules/motion-utils/dist/es/is-zero-value-string.mjs
|
|
50
|
+
var ae = (e) => /^0[^.\s]+$/u.test(e);
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region node_modules/motion-utils/dist/es/memo.mjs
|
|
53
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
54
|
+
function oe(e) {
|
|
55
|
+
let t;
|
|
56
|
+
return () => (t === void 0 && (t = e()), t);
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region node_modules/motion-utils/dist/es/noop.mjs
|
|
60
|
+
var D = /* @__NO_SIDE_EFFECTS__ */ (e) => e, se = (e, t) => (n) => t(e(n)), ce = (...e) => e.reduce(se), le = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
61
|
+
let r = t - e;
|
|
62
|
+
return r === 0 ? 1 : (n - e) / r;
|
|
63
|
+
}, ue = class {
|
|
64
|
+
constructor() {
|
|
65
|
+
this.subscriptions = [];
|
|
66
|
+
}
|
|
67
|
+
add(e) {
|
|
68
|
+
return C(this.subscriptions, e), () => ee(this.subscriptions, e);
|
|
69
|
+
}
|
|
70
|
+
notify(e, t, n) {
|
|
71
|
+
let r = this.subscriptions.length;
|
|
72
|
+
if (r) if (r === 1) this.subscriptions[0](e, t, n);
|
|
73
|
+
else for (let i = 0; i < r; i++) {
|
|
74
|
+
let r = this.subscriptions[i];
|
|
75
|
+
r && r(e, t, n);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
getSize() {
|
|
79
|
+
return this.subscriptions.length;
|
|
80
|
+
}
|
|
81
|
+
clear() {
|
|
82
|
+
this.subscriptions.length = 0;
|
|
83
|
+
}
|
|
84
|
+
}, O = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, k = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region node_modules/motion-utils/dist/es/velocity-per-second.mjs
|
|
87
|
+
function de(e, t) {
|
|
88
|
+
return t ? 1e3 / t * e : 0;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region node_modules/motion-utils/dist/es/warn-once.mjs
|
|
92
|
+
var fe = /* @__PURE__ */ new Set();
|
|
93
|
+
function pe(e, t, n) {
|
|
94
|
+
e || fe.has(t) || (console.warn(te(t, n)), fe.add(t));
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs
|
|
98
|
+
var me = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, he = 1e-7, ge = 12;
|
|
99
|
+
function _e(e, t, n, r, i) {
|
|
100
|
+
let a, o, s = 0;
|
|
101
|
+
do
|
|
102
|
+
o = t + (n - t) / 2, a = me(o, r, i) - e, a > 0 ? n = o : t = o;
|
|
103
|
+
while (Math.abs(a) > he && ++s < ge);
|
|
104
|
+
return o;
|
|
105
|
+
}
|
|
106
|
+
function ve(e, t, n, r) {
|
|
107
|
+
if (e === t && n === r) return D;
|
|
108
|
+
let i = (t) => _e(t, 0, 1, e, n);
|
|
109
|
+
return (e) => e === 0 || e === 1 ? e : me(i(e), t, r);
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
|
|
113
|
+
var ye = (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, be = (e) => (t) => 1 - e(1 - t), xe = /* @__PURE__ */ ve(.33, 1.53, .69, .99), Se = /* @__PURE__ */ be(xe), Ce = /* @__PURE__ */ ye(Se), we = (e) => (e *= 2) < 1 ? .5 * Se(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Te = (e) => 1 - Math.sin(Math.acos(e)), Ee = be(Te), De = ye(Te), Oe = /* @__PURE__ */ ve(.42, 0, 1, 1), ke = /* @__PURE__ */ ve(0, 0, .58, 1), Ae = /* @__PURE__ */ ve(.42, 0, .58, 1), je = (e) => Array.isArray(e) && typeof e[0] != "number", Me = (e) => Array.isArray(e) && typeof e[0] == "number", Ne = {
|
|
114
|
+
linear: D,
|
|
115
|
+
easeIn: Oe,
|
|
116
|
+
easeInOut: Ae,
|
|
117
|
+
easeOut: ke,
|
|
118
|
+
circIn: Te,
|
|
119
|
+
circInOut: De,
|
|
120
|
+
circOut: Ee,
|
|
121
|
+
backIn: Se,
|
|
122
|
+
backInOut: Ce,
|
|
123
|
+
backOut: xe,
|
|
124
|
+
anticipate: we
|
|
125
|
+
}, Pe = (e) => typeof e == "string", Fe = (e) => {
|
|
126
|
+
if (Me(e)) {
|
|
127
|
+
T(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
128
|
+
let [t, n, r, i] = e;
|
|
129
|
+
return ve(t, n, r, i);
|
|
130
|
+
} else if (Pe(e)) return T(Ne[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Ne[e];
|
|
131
|
+
return e;
|
|
132
|
+
}, Ie = [
|
|
133
|
+
"setup",
|
|
134
|
+
"read",
|
|
135
|
+
"resolveKeyframes",
|
|
136
|
+
"preUpdate",
|
|
137
|
+
"update",
|
|
138
|
+
"preRender",
|
|
139
|
+
"render",
|
|
140
|
+
"postRender"
|
|
141
|
+
], A = {
|
|
142
|
+
value: null,
|
|
143
|
+
addProjectionMetrics: null
|
|
144
|
+
};
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region node_modules/motion-dom/dist/es/frameloop/render-step.mjs
|
|
147
|
+
function Le(e, t) {
|
|
148
|
+
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = /* @__PURE__ */ new WeakSet(), s = {
|
|
149
|
+
delta: 0,
|
|
150
|
+
timestamp: 0,
|
|
151
|
+
isProcessing: !1
|
|
152
|
+
}, c = 0;
|
|
153
|
+
function l(t) {
|
|
154
|
+
o.has(t) && (u.schedule(t), e()), c++, t(s);
|
|
155
|
+
}
|
|
156
|
+
let u = {
|
|
157
|
+
schedule: (e, t = !1, a = !1) => {
|
|
158
|
+
let s = a && i ? n : r;
|
|
159
|
+
return t && o.add(e), s.has(e) || s.add(e), e;
|
|
160
|
+
},
|
|
161
|
+
cancel: (e) => {
|
|
162
|
+
r.delete(e), o.delete(e);
|
|
163
|
+
},
|
|
164
|
+
process: (e) => {
|
|
165
|
+
if (s = e, i) {
|
|
166
|
+
a = !0;
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
i = !0, [n, r] = [r, n], n.forEach(l), t && A.value && A.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
return u;
|
|
173
|
+
}
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region node_modules/motion-dom/dist/es/frameloop/batcher.mjs
|
|
176
|
+
var Re = 40;
|
|
177
|
+
function ze(e, t) {
|
|
178
|
+
let n = !1, r = !0, i = {
|
|
179
|
+
delta: 0,
|
|
180
|
+
timestamp: 0,
|
|
181
|
+
isProcessing: !1
|
|
182
|
+
}, a = () => n = !0, o = Ie.reduce((e, n) => (e[n] = Le(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
|
|
183
|
+
let a = E.useManualTiming ? i.timestamp : performance.now();
|
|
184
|
+
n = !1, E.useManualTiming || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(a - i.timestamp, Re), 1)), i.timestamp = a, 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));
|
|
185
|
+
}, g = () => {
|
|
186
|
+
n = !0, r = !0, i.isProcessing || e(h);
|
|
187
|
+
};
|
|
188
|
+
return {
|
|
189
|
+
schedule: Ie.reduce((e, t) => {
|
|
190
|
+
let r = o[t];
|
|
191
|
+
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
|
|
192
|
+
}, {}),
|
|
193
|
+
cancel: (e) => {
|
|
194
|
+
for (let t = 0; t < Ie.length; t++) o[Ie[t]].cancel(e);
|
|
195
|
+
},
|
|
196
|
+
state: i,
|
|
197
|
+
steps: o
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region node_modules/motion-dom/dist/es/frameloop/frame.mjs
|
|
202
|
+
var { schedule: j, cancel: M, state: N, steps: Be } = /* @__PURE__ */ ze(typeof requestAnimationFrame < "u" ? requestAnimationFrame : D, !0), Ve;
|
|
203
|
+
function He() {
|
|
204
|
+
Ve = void 0;
|
|
205
|
+
}
|
|
206
|
+
var P = {
|
|
207
|
+
now: () => (Ve === void 0 && P.set(N.isProcessing || E.useManualTiming ? N.timestamp : performance.now()), Ve),
|
|
208
|
+
set: (e) => {
|
|
209
|
+
Ve = e, queueMicrotask(He);
|
|
210
|
+
}
|
|
211
|
+
}, Ue = {
|
|
212
|
+
layout: 0,
|
|
213
|
+
mainThread: 0,
|
|
214
|
+
waapi: 0
|
|
215
|
+
}, We = (e) => (t) => typeof t == "string" && t.startsWith(e), Ge = /* @__PURE__ */ We("--"), Ke = /* @__PURE__ */ We("var(--"), qe = (e) => Ke(e) ? Je.test(e.split("/*")[0].trim()) : !1, Je = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
216
|
+
function Ye(e) {
|
|
217
|
+
return typeof e == "string" ? e.split("/*")[0].includes("var(--") : !1;
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
|
|
221
|
+
var Xe = {
|
|
222
|
+
test: (e) => typeof e == "number",
|
|
223
|
+
parse: parseFloat,
|
|
224
|
+
transform: (e) => e
|
|
225
|
+
}, Ze = {
|
|
226
|
+
...Xe,
|
|
227
|
+
transform: (e) => w(0, 1, e)
|
|
228
|
+
}, Qe = {
|
|
229
|
+
...Xe,
|
|
230
|
+
default: 1
|
|
231
|
+
}, $e = (e) => Math.round(e * 1e5) / 1e5, et = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
|
|
234
|
+
function tt(e) {
|
|
235
|
+
return e == null;
|
|
236
|
+
}
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
|
|
239
|
+
var nt = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, rt = (e, t) => (n) => !!(typeof n == "string" && nt.test(n) && n.startsWith(e) || t && !tt(n) && Object.prototype.hasOwnProperty.call(n, t)), it = (e, t, n) => (r) => {
|
|
240
|
+
if (typeof r != "string") return r;
|
|
241
|
+
let [i, a, o, s] = r.match(et);
|
|
242
|
+
return {
|
|
243
|
+
[e]: parseFloat(i),
|
|
244
|
+
[t]: parseFloat(a),
|
|
245
|
+
[n]: parseFloat(o),
|
|
246
|
+
alpha: s === void 0 ? 1 : parseFloat(s)
|
|
247
|
+
};
|
|
248
|
+
}, at = (e) => w(0, 255, e), ot = {
|
|
249
|
+
...Xe,
|
|
250
|
+
transform: (e) => Math.round(at(e))
|
|
251
|
+
}, F = {
|
|
252
|
+
test: /* @__PURE__ */ rt("rgb", "red"),
|
|
253
|
+
parse: /* @__PURE__ */ it("red", "green", "blue"),
|
|
254
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + ot.transform(e) + ", " + ot.transform(t) + ", " + ot.transform(n) + ", " + $e(Ze.transform(r)) + ")"
|
|
255
|
+
};
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region node_modules/motion-dom/dist/es/value/types/color/hex.mjs
|
|
258
|
+
function st(e) {
|
|
259
|
+
let t = "", n = "", r = "", i = "";
|
|
260
|
+
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), {
|
|
261
|
+
red: parseInt(t, 16),
|
|
262
|
+
green: parseInt(n, 16),
|
|
263
|
+
blue: parseInt(r, 16),
|
|
264
|
+
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
var ct = {
|
|
268
|
+
test: /* @__PURE__ */ rt("#"),
|
|
269
|
+
parse: st,
|
|
270
|
+
transform: F.transform
|
|
271
|
+
}, lt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
272
|
+
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
273
|
+
parse: parseFloat,
|
|
274
|
+
transform: (t) => `${t}${e}`
|
|
275
|
+
}), I = /* @__PURE__ */ lt("deg"), L = /* @__PURE__ */ lt("%"), R = /* @__PURE__ */ lt("px"), ut = /* @__PURE__ */ lt("vh"), dt = /* @__PURE__ */ lt("vw"), ft = {
|
|
276
|
+
...L,
|
|
277
|
+
parse: (e) => L.parse(e) / 100,
|
|
278
|
+
transform: (e) => L.transform(e * 100)
|
|
279
|
+
}, pt = {
|
|
280
|
+
test: /* @__PURE__ */ rt("hsl", "hue"),
|
|
281
|
+
parse: /* @__PURE__ */ it("hue", "saturation", "lightness"),
|
|
282
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + L.transform($e(t)) + ", " + L.transform($e(n)) + ", " + $e(Ze.transform(r)) + ")"
|
|
283
|
+
}, z = {
|
|
284
|
+
test: (e) => F.test(e) || ct.test(e) || pt.test(e),
|
|
285
|
+
parse: (e) => F.test(e) ? F.parse(e) : pt.test(e) ? pt.parse(e) : ct.parse(e),
|
|
286
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? F.transform(e) : pt.transform(e),
|
|
287
|
+
getAnimatableNone: (e) => {
|
|
288
|
+
let t = z.parse(e);
|
|
289
|
+
return t.alpha = 0, z.transform(t);
|
|
290
|
+
}
|
|
291
|
+
}, mt = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region node_modules/motion-dom/dist/es/value/types/complex/index.mjs
|
|
294
|
+
function ht(e) {
|
|
295
|
+
return isNaN(e) && typeof e == "string" && (e.match(et)?.length || 0) + (e.match(mt)?.length || 0) > 0;
|
|
296
|
+
}
|
|
297
|
+
var gt = "number", _t = "color", vt = "var", yt = "var(", bt = "${}", xt = /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;
|
|
298
|
+
function St(e) {
|
|
299
|
+
let t = e.toString(), n = [], r = {
|
|
300
|
+
color: [],
|
|
301
|
+
number: [],
|
|
302
|
+
var: []
|
|
303
|
+
}, i = [], a = 0;
|
|
304
|
+
return {
|
|
305
|
+
values: n,
|
|
306
|
+
split: t.replace(xt, (e) => (z.test(e) ? (r.color.push(a), i.push(_t), n.push(z.parse(e))) : e.startsWith(yt) ? (r.var.push(a), i.push(vt), n.push(e)) : (r.number.push(a), i.push(gt), n.push(parseFloat(e))), ++a, bt)).split(bt),
|
|
307
|
+
indexes: r,
|
|
308
|
+
types: i
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
function Ct(e) {
|
|
312
|
+
return St(e).values;
|
|
313
|
+
}
|
|
314
|
+
function wt(e) {
|
|
315
|
+
let { split: t, types: n } = St(e), r = t.length;
|
|
316
|
+
return (e) => {
|
|
317
|
+
let i = "";
|
|
318
|
+
for (let a = 0; a < r; a++) if (i += t[a], e[a] !== void 0) {
|
|
319
|
+
let t = n[a];
|
|
320
|
+
t === gt ? i += $e(e[a]) : t === _t ? i += z.transform(e[a]) : i += e[a];
|
|
321
|
+
}
|
|
322
|
+
return i;
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
var Tt = (e) => typeof e == "number" ? 0 : z.test(e) ? z.getAnimatableNone(e) : e;
|
|
326
|
+
function Et(e) {
|
|
327
|
+
let t = Ct(e);
|
|
328
|
+
return wt(e)(t.map(Tt));
|
|
329
|
+
}
|
|
330
|
+
var B = {
|
|
331
|
+
test: ht,
|
|
332
|
+
parse: Ct,
|
|
333
|
+
createTransformer: wt,
|
|
334
|
+
getAnimatableNone: Et
|
|
335
|
+
};
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
|
|
338
|
+
function Dt(e, t, n) {
|
|
339
|
+
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;
|
|
340
|
+
}
|
|
341
|
+
function Ot({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
342
|
+
e /= 360, t /= 100, n /= 100;
|
|
343
|
+
let i = 0, a = 0, o = 0;
|
|
344
|
+
if (!t) i = a = o = n;
|
|
345
|
+
else {
|
|
346
|
+
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
|
|
347
|
+
i = Dt(s, r, e + 1 / 3), a = Dt(s, r, e), o = Dt(s, r, e - 1 / 3);
|
|
348
|
+
}
|
|
349
|
+
return {
|
|
350
|
+
red: Math.round(i * 255),
|
|
351
|
+
green: Math.round(a * 255),
|
|
352
|
+
blue: Math.round(o * 255),
|
|
353
|
+
alpha: r
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
//#endregion
|
|
357
|
+
//#region node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
|
|
358
|
+
function kt(e, t) {
|
|
359
|
+
return (n) => n > 0 ? t : e;
|
|
360
|
+
}
|
|
361
|
+
//#endregion
|
|
362
|
+
//#region node_modules/motion-dom/dist/es/utils/mix/number.mjs
|
|
363
|
+
var V = (e, t, n) => e + (t - e) * n, At = (e, t, n) => {
|
|
364
|
+
let r = e * e, i = n * (t * t - r) + r;
|
|
365
|
+
return i < 0 ? 0 : Math.sqrt(i);
|
|
366
|
+
}, jt = [
|
|
367
|
+
ct,
|
|
368
|
+
F,
|
|
369
|
+
pt
|
|
370
|
+
], Mt = (e) => jt.find((t) => t.test(e));
|
|
371
|
+
function Nt(e) {
|
|
372
|
+
let t = Mt(e);
|
|
373
|
+
if (ne(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
|
|
374
|
+
let n = t.parse(e);
|
|
375
|
+
return t === pt && (n = Ot(n)), n;
|
|
376
|
+
}
|
|
377
|
+
var Pt = (e, t) => {
|
|
378
|
+
let n = Nt(e), r = Nt(t);
|
|
379
|
+
if (!n || !r) return kt(e, t);
|
|
380
|
+
let i = { ...n };
|
|
381
|
+
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 = V(n.alpha, r.alpha, e), F.transform(i));
|
|
382
|
+
}, Ft = new Set(["none", "hidden"]);
|
|
383
|
+
function It(e, t) {
|
|
384
|
+
return Ft.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
385
|
+
}
|
|
386
|
+
//#endregion
|
|
387
|
+
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
388
|
+
function Lt(e, t) {
|
|
389
|
+
return (n) => V(e, t, n);
|
|
390
|
+
}
|
|
391
|
+
function Rt(e) {
|
|
392
|
+
return typeof e == "number" ? Lt : typeof e == "string" ? qe(e) ? kt : z.test(e) ? Pt : Ht : Array.isArray(e) ? zt : typeof e == "object" ? z.test(e) ? Pt : Bt : kt;
|
|
393
|
+
}
|
|
394
|
+
function zt(e, t) {
|
|
395
|
+
let n = [...e], r = n.length, i = e.map((e, n) => Rt(e)(e, t[n]));
|
|
396
|
+
return (e) => {
|
|
397
|
+
for (let t = 0; t < r; t++) n[t] = i[t](e);
|
|
398
|
+
return n;
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
function Bt(e, t) {
|
|
402
|
+
let n = {
|
|
403
|
+
...e,
|
|
404
|
+
...t
|
|
405
|
+
}, r = {};
|
|
406
|
+
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = Rt(e[i])(e[i], t[i]));
|
|
407
|
+
return (e) => {
|
|
408
|
+
for (let t in r) n[t] = r[t](e);
|
|
409
|
+
return n;
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
function Vt(e, t) {
|
|
413
|
+
let n = [], r = {
|
|
414
|
+
color: 0,
|
|
415
|
+
var: 0,
|
|
416
|
+
number: 0
|
|
417
|
+
};
|
|
418
|
+
for (let i = 0; i < t.values.length; i++) {
|
|
419
|
+
let a = t.types[i], o = e.indexes[a][r[a]];
|
|
420
|
+
n[i] = e.values[o] ?? 0, r[a]++;
|
|
421
|
+
}
|
|
422
|
+
return n;
|
|
423
|
+
}
|
|
424
|
+
var Ht = (e, t) => {
|
|
425
|
+
let n = B.createTransformer(t), r = St(e), i = St(t);
|
|
426
|
+
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) : ce(zt(Vt(r, i), i.values), n) : (ne(!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));
|
|
427
|
+
};
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region node_modules/motion-dom/dist/es/utils/mix/index.mjs
|
|
430
|
+
function Ut(e, t, n) {
|
|
431
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? V(e, t, n) : Rt(e)(e, t);
|
|
432
|
+
}
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
435
|
+
var Wt = (e) => {
|
|
436
|
+
let t = ({ timestamp: t }) => e(t);
|
|
437
|
+
return {
|
|
438
|
+
start: (e = !0) => j.update(t, e),
|
|
439
|
+
stop: () => M(t),
|
|
440
|
+
now: () => N.isProcessing ? N.timestamp : P.now()
|
|
441
|
+
};
|
|
442
|
+
}, Gt = (e, t, n = 10) => {
|
|
443
|
+
let r = "", i = Math.max(Math.round(t / n), 2);
|
|
444
|
+
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
|
|
445
|
+
return `linear(${r.substring(0, r.length - 2)})`;
|
|
446
|
+
}, Kt = 2e4;
|
|
447
|
+
function qt(e) {
|
|
448
|
+
let t = 0, n = e.next(t);
|
|
449
|
+
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
|
|
450
|
+
return t >= 2e4 ? Infinity : t;
|
|
451
|
+
}
|
|
452
|
+
//#endregion
|
|
453
|
+
//#region node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
454
|
+
function Jt(e, t = 100, n) {
|
|
455
|
+
let r = n({
|
|
456
|
+
...e,
|
|
457
|
+
keyframes: [0, t]
|
|
458
|
+
}), i = Math.min(qt(r), Kt);
|
|
459
|
+
return {
|
|
460
|
+
type: "keyframes",
|
|
461
|
+
ease: (e) => r.next(i * e).value / t,
|
|
462
|
+
duration: /* @__PURE__ */ k(i)
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
467
|
+
var Yt = 5;
|
|
468
|
+
function Xt(e, t, n) {
|
|
469
|
+
let r = Math.max(t - Yt, 0);
|
|
470
|
+
return de(n - e(r), t - r);
|
|
471
|
+
}
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs
|
|
474
|
+
var H = {
|
|
475
|
+
stiffness: 100,
|
|
476
|
+
damping: 10,
|
|
477
|
+
mass: 1,
|
|
478
|
+
velocity: 0,
|
|
479
|
+
duration: 800,
|
|
480
|
+
bounce: .3,
|
|
481
|
+
visualDuration: .3,
|
|
482
|
+
restSpeed: {
|
|
483
|
+
granular: .01,
|
|
484
|
+
default: 2
|
|
485
|
+
},
|
|
486
|
+
restDelta: {
|
|
487
|
+
granular: .005,
|
|
488
|
+
default: .5
|
|
489
|
+
},
|
|
490
|
+
minDuration: .01,
|
|
491
|
+
maxDuration: 10,
|
|
492
|
+
minDamping: .05,
|
|
493
|
+
maxDamping: 1
|
|
494
|
+
}, Zt = .001;
|
|
495
|
+
function Qt({ duration: e = H.duration, bounce: t = H.bounce, velocity: n = H.velocity, mass: r = H.mass }) {
|
|
496
|
+
let i, a;
|
|
497
|
+
ne(e <= /* @__PURE__ */ O(H.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
498
|
+
let o = 1 - t;
|
|
499
|
+
o = w(H.minDamping, H.maxDamping, o), e = w(H.minDuration, H.maxDuration, /* @__PURE__ */ k(e)), o < 1 ? (i = (t) => {
|
|
500
|
+
let r = t * o, i = r * e, a = r - n, s = tn(t, o), c = Math.exp(-i);
|
|
501
|
+
return Zt - a / s * c;
|
|
502
|
+
}, a = (t) => {
|
|
503
|
+
let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = tn(t ** 2, o);
|
|
504
|
+
return (-i(t) + Zt > 0 ? -1 : 1) * ((a - s) * c) / l;
|
|
505
|
+
}) : (i = (t) => {
|
|
506
|
+
let r = Math.exp(-t * e), i = (t - n) * e + 1;
|
|
507
|
+
return -Zt + r * i;
|
|
508
|
+
}, a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
|
|
509
|
+
let s = 5 / e, c = en(i, a, s);
|
|
510
|
+
if (e = /* @__PURE__ */ O(e), isNaN(c)) return {
|
|
511
|
+
stiffness: H.stiffness,
|
|
512
|
+
damping: H.damping,
|
|
513
|
+
duration: e
|
|
514
|
+
};
|
|
515
|
+
{
|
|
516
|
+
let t = c ** 2 * r;
|
|
517
|
+
return {
|
|
518
|
+
stiffness: t,
|
|
519
|
+
damping: o * 2 * Math.sqrt(r * t),
|
|
520
|
+
duration: e
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
var $t = 12;
|
|
525
|
+
function en(e, t, n) {
|
|
526
|
+
let r = n;
|
|
527
|
+
for (let n = 1; n < $t; n++) r -= e(r) / t(r);
|
|
528
|
+
return r;
|
|
529
|
+
}
|
|
530
|
+
function tn(e, t) {
|
|
531
|
+
return e * Math.sqrt(1 - t * t);
|
|
532
|
+
}
|
|
533
|
+
//#endregion
|
|
534
|
+
//#region node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs
|
|
535
|
+
var nn = ["duration", "bounce"], rn = [
|
|
536
|
+
"stiffness",
|
|
537
|
+
"damping",
|
|
538
|
+
"mass"
|
|
539
|
+
];
|
|
540
|
+
function an(e, t) {
|
|
541
|
+
return t.some((t) => e[t] !== void 0);
|
|
542
|
+
}
|
|
543
|
+
function on(e) {
|
|
544
|
+
let t = {
|
|
545
|
+
velocity: H.velocity,
|
|
546
|
+
stiffness: H.stiffness,
|
|
547
|
+
damping: H.damping,
|
|
548
|
+
mass: H.mass,
|
|
549
|
+
isResolvedFromDuration: !1,
|
|
550
|
+
...e
|
|
551
|
+
};
|
|
552
|
+
if (!an(e, rn) && an(e, nn)) if (e.visualDuration) {
|
|
553
|
+
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);
|
|
554
|
+
t = {
|
|
555
|
+
...t,
|
|
556
|
+
mass: H.mass,
|
|
557
|
+
stiffness: i,
|
|
558
|
+
damping: a
|
|
559
|
+
};
|
|
560
|
+
} else {
|
|
561
|
+
let n = Qt(e);
|
|
562
|
+
t = {
|
|
563
|
+
...t,
|
|
564
|
+
...n,
|
|
565
|
+
mass: H.mass
|
|
566
|
+
}, t.isResolvedFromDuration = !0;
|
|
567
|
+
}
|
|
568
|
+
return t;
|
|
569
|
+
}
|
|
570
|
+
function sn(e = H.visualDuration, t = H.bounce) {
|
|
571
|
+
let n = typeof e == "object" ? e : {
|
|
572
|
+
visualDuration: e,
|
|
573
|
+
keyframes: [0, 1],
|
|
574
|
+
bounce: t
|
|
575
|
+
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
|
|
576
|
+
done: !1,
|
|
577
|
+
value: a
|
|
578
|
+
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = on({
|
|
579
|
+
...n,
|
|
580
|
+
velocity: -/* @__PURE__ */ k(n.velocity || 0)
|
|
581
|
+
}), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ k(Math.sqrt(c / u)), v = Math.abs(g) < 5;
|
|
582
|
+
r ||= v ? H.restSpeed.granular : H.restSpeed.default, i ||= v ? H.restDelta.granular : H.restDelta.default;
|
|
583
|
+
let y;
|
|
584
|
+
if (h < 1) {
|
|
585
|
+
let e = tn(_, h);
|
|
586
|
+
y = (t) => o - Math.exp(-h * _ * t) * ((m + h * _ * g) / e * Math.sin(e * t) + g * Math.cos(e * t));
|
|
587
|
+
} else if (h === 1) y = (e) => o - Math.exp(-_ * e) * (g + (m + _ * g) * e);
|
|
588
|
+
else {
|
|
589
|
+
let e = _ * Math.sqrt(h * h - 1);
|
|
590
|
+
y = (t) => {
|
|
591
|
+
let n = Math.exp(-h * _ * t), r = Math.min(e * t, 300);
|
|
592
|
+
return o - n * ((m + h * _ * g) * Math.sinh(r) + e * g * Math.cosh(r)) / e;
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
let b = {
|
|
596
|
+
calculatedDuration: p && d || null,
|
|
597
|
+
next: (e) => {
|
|
598
|
+
let t = y(e);
|
|
599
|
+
if (p) s.done = e >= d;
|
|
600
|
+
else {
|
|
601
|
+
let n = e === 0 ? m : 0;
|
|
602
|
+
h < 1 && (n = e === 0 ? /* @__PURE__ */ O(m) : Xt(y, e, t));
|
|
603
|
+
let a = Math.abs(n) <= r, c = Math.abs(o - t) <= i;
|
|
604
|
+
s.done = a && c;
|
|
605
|
+
}
|
|
606
|
+
return s.value = s.done ? o : t, s;
|
|
607
|
+
},
|
|
608
|
+
toString: () => {
|
|
609
|
+
let e = Math.min(qt(b), Kt), t = Gt((t) => b.next(e * t).value, e, 30);
|
|
610
|
+
return e + "ms " + t;
|
|
611
|
+
},
|
|
612
|
+
toTransition: () => {}
|
|
613
|
+
};
|
|
614
|
+
return b;
|
|
615
|
+
}
|
|
616
|
+
sn.applyToOptions = (e) => {
|
|
617
|
+
let t = Jt(e, 100, sn);
|
|
618
|
+
return e.ease = t.ease, e.duration = /* @__PURE__ */ O(t.duration), e.type = "keyframes", e;
|
|
619
|
+
};
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
622
|
+
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 }) {
|
|
623
|
+
let d = e[0], f = {
|
|
624
|
+
done: !1,
|
|
625
|
+
value: d
|
|
626
|
+
}, 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);
|
|
627
|
+
_ !== g && (h = _ - d);
|
|
628
|
+
let v = (e) => -h * Math.exp(-e / r), y = (e) => _ + v(e), b = (e) => {
|
|
629
|
+
let t = v(e), n = y(e);
|
|
630
|
+
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
|
|
631
|
+
}, x, S, C = (e) => {
|
|
632
|
+
p(f.value) && (x = e, S = sn({
|
|
633
|
+
keyframes: [f.value, m(f.value)],
|
|
634
|
+
velocity: Xt(y, e, f.value),
|
|
635
|
+
damping: i,
|
|
636
|
+
stiffness: a,
|
|
637
|
+
restDelta: l,
|
|
638
|
+
restSpeed: u
|
|
639
|
+
}));
|
|
640
|
+
};
|
|
641
|
+
return C(0), {
|
|
642
|
+
calculatedDuration: null,
|
|
643
|
+
next: (e) => {
|
|
644
|
+
let t = !1;
|
|
645
|
+
return !S && x === void 0 && (t = !0, b(e), C(e)), x !== void 0 && e >= x ? S.next(e - x) : (!t && b(e), f);
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
//#endregion
|
|
650
|
+
//#region node_modules/motion-dom/dist/es/utils/interpolate.mjs
|
|
651
|
+
function ln(e, t, n) {
|
|
652
|
+
let r = [], i = n || E.mix || Ut, a = e.length - 1;
|
|
653
|
+
for (let n = 0; n < a; n++) {
|
|
654
|
+
let a = i(e[n], e[n + 1]);
|
|
655
|
+
t && (a = ce(Array.isArray(t) ? t[n] || D : t, a)), r.push(a);
|
|
656
|
+
}
|
|
657
|
+
return r;
|
|
658
|
+
}
|
|
659
|
+
function un(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
660
|
+
let a = e.length;
|
|
661
|
+
if (T(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
|
|
662
|
+
if (a === 2 && t[0] === t[1]) return () => t[1];
|
|
663
|
+
let o = e[0] === e[1];
|
|
664
|
+
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
665
|
+
let s = ln(t, r, i), c = s.length, l = (n) => {
|
|
666
|
+
if (o && n < e[0]) return t[0];
|
|
667
|
+
let r = 0;
|
|
668
|
+
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
|
|
669
|
+
let i = /* @__PURE__ */ le(e[r], e[r + 1], n);
|
|
670
|
+
return s[r](i);
|
|
671
|
+
};
|
|
672
|
+
return n ? (t) => l(w(e[0], e[a - 1], t)) : l;
|
|
673
|
+
}
|
|
674
|
+
//#endregion
|
|
675
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
|
|
676
|
+
function dn(e, t) {
|
|
677
|
+
let n = e[e.length - 1];
|
|
678
|
+
for (let r = 1; r <= t; r++) {
|
|
679
|
+
let i = /* @__PURE__ */ le(0, t, r);
|
|
680
|
+
e.push(V(n, 1, i));
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
//#endregion
|
|
684
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
|
|
685
|
+
function fn(e) {
|
|
686
|
+
let t = [0];
|
|
687
|
+
return dn(t, e.length - 1), t;
|
|
688
|
+
}
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
|
|
691
|
+
function pn(e, t) {
|
|
692
|
+
return e.map((e) => e * t);
|
|
693
|
+
}
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
|
|
696
|
+
function mn(e, t) {
|
|
697
|
+
return e.map(() => t || Ae).splice(0, e.length - 1);
|
|
698
|
+
}
|
|
699
|
+
function hn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
700
|
+
let i = je(r) ? r.map(Fe) : Fe(r), a = {
|
|
701
|
+
done: !1,
|
|
702
|
+
value: t[0]
|
|
703
|
+
}, o = un(pn(n && n.length === t.length ? n : fn(t), e), t, { ease: Array.isArray(i) ? i : mn(t, i) });
|
|
704
|
+
return {
|
|
705
|
+
calculatedDuration: e,
|
|
706
|
+
next: (t) => (a.value = o(t), a.done = t >= e, a)
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
711
|
+
var gn = (e) => e !== null;
|
|
712
|
+
function _n(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
|
|
713
|
+
let a = e.filter(gn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
714
|
+
return !o || r === void 0 ? a[o] : r;
|
|
715
|
+
}
|
|
716
|
+
//#endregion
|
|
717
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
|
|
718
|
+
var vn = {
|
|
719
|
+
decay: cn,
|
|
720
|
+
inertia: cn,
|
|
721
|
+
tween: hn,
|
|
722
|
+
keyframes: hn,
|
|
723
|
+
spring: sn
|
|
724
|
+
};
|
|
725
|
+
function yn(e) {
|
|
726
|
+
typeof e.type == "string" && (e.type = vn[e.type]);
|
|
727
|
+
}
|
|
728
|
+
//#endregion
|
|
729
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
|
|
730
|
+
var bn = class {
|
|
731
|
+
constructor() {
|
|
732
|
+
this.updateFinished();
|
|
733
|
+
}
|
|
734
|
+
get finished() {
|
|
735
|
+
return this._finished;
|
|
736
|
+
}
|
|
737
|
+
updateFinished() {
|
|
738
|
+
this._finished = new Promise((e) => {
|
|
739
|
+
this.resolve = e;
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
notifyFinished() {
|
|
743
|
+
this.resolve();
|
|
744
|
+
}
|
|
745
|
+
then(e, t) {
|
|
746
|
+
return this.finished.then(e, t);
|
|
747
|
+
}
|
|
748
|
+
}, xn = (e) => e / 100, Sn = class extends bn {
|
|
749
|
+
constructor(e) {
|
|
750
|
+
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.stop = () => {
|
|
751
|
+
let { motionValue: e } = this.options;
|
|
752
|
+
e && e.updatedAt !== P.now() && this.tick(P.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
753
|
+
}, Ue.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
|
|
754
|
+
}
|
|
755
|
+
initAnimation() {
|
|
756
|
+
let { options: e } = this;
|
|
757
|
+
yn(e);
|
|
758
|
+
let { type: t = hn, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || hn;
|
|
759
|
+
process.env.NODE_ENV !== "production" && s !== hn && T(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 = ce(xn, Ut(o[0], o[1])), o = [0, 100]);
|
|
760
|
+
let c = s({
|
|
761
|
+
...e,
|
|
762
|
+
keyframes: o
|
|
763
|
+
});
|
|
764
|
+
i === "mirror" && (this.mirroredGenerator = s({
|
|
765
|
+
...e,
|
|
766
|
+
keyframes: [...o].reverse(),
|
|
767
|
+
velocity: -a
|
|
768
|
+
})), c.calculatedDuration === null && (c.calculatedDuration = qt(c));
|
|
769
|
+
let { calculatedDuration: l } = c;
|
|
770
|
+
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
|
|
771
|
+
}
|
|
772
|
+
updateTime(e) {
|
|
773
|
+
let t = Math.round(e - this.startTime) * this.playbackSpeed;
|
|
774
|
+
this.holdTime === null ? this.currentTime = t : this.currentTime = this.holdTime;
|
|
775
|
+
}
|
|
776
|
+
tick(e, t = !1) {
|
|
777
|
+
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: s } = this;
|
|
778
|
+
if (this.startTime === null) return n.next(0);
|
|
779
|
+
let { delay: c = 0, keyframes: l, repeat: u, repeatType: d, repeatDelay: f, type: p, onUpdate: m, finalKeyframe: h } = this.options;
|
|
780
|
+
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);
|
|
781
|
+
let g = this.currentTime - c * (this.playbackSpeed >= 0 ? 1 : -1), _ = this.playbackSpeed >= 0 ? g < 0 : g > r;
|
|
782
|
+
this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
|
|
783
|
+
let v = this.currentTime, y = n;
|
|
784
|
+
if (u) {
|
|
785
|
+
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
|
|
786
|
+
!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;
|
|
787
|
+
}
|
|
788
|
+
let b = _ ? {
|
|
789
|
+
done: !1,
|
|
790
|
+
value: l[0]
|
|
791
|
+
} : y.next(v);
|
|
792
|
+
i && (b.value = i(b.value));
|
|
793
|
+
let { done: x } = b;
|
|
794
|
+
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
795
|
+
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
796
|
+
return S && p !== cn && (b.value = _n(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
|
|
797
|
+
}
|
|
798
|
+
then(e, t) {
|
|
799
|
+
return this.finished.then(e, t);
|
|
800
|
+
}
|
|
801
|
+
get duration() {
|
|
802
|
+
return /* @__PURE__ */ k(this.calculatedDuration);
|
|
803
|
+
}
|
|
804
|
+
get iterationDuration() {
|
|
805
|
+
let { delay: e = 0 } = this.options || {};
|
|
806
|
+
return this.duration + /* @__PURE__ */ k(e);
|
|
807
|
+
}
|
|
808
|
+
get time() {
|
|
809
|
+
return /* @__PURE__ */ k(this.currentTime);
|
|
810
|
+
}
|
|
811
|
+
set time(e) {
|
|
812
|
+
e = /* @__PURE__ */ O(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?.start(!1);
|
|
813
|
+
}
|
|
814
|
+
get speed() {
|
|
815
|
+
return this.playbackSpeed;
|
|
816
|
+
}
|
|
817
|
+
set speed(e) {
|
|
818
|
+
this.updateTime(P.now());
|
|
819
|
+
let t = this.playbackSpeed !== e;
|
|
820
|
+
this.playbackSpeed = e, t && (this.time = /* @__PURE__ */ k(this.currentTime));
|
|
821
|
+
}
|
|
822
|
+
play() {
|
|
823
|
+
if (this.isStopped) return;
|
|
824
|
+
let { driver: e = Wt, startTime: t } = this.options;
|
|
825
|
+
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
|
|
826
|
+
let n = this.driver.now();
|
|
827
|
+
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();
|
|
828
|
+
}
|
|
829
|
+
pause() {
|
|
830
|
+
this.state = "paused", this.updateTime(P.now()), this.holdTime = this.currentTime;
|
|
831
|
+
}
|
|
832
|
+
complete() {
|
|
833
|
+
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
|
|
834
|
+
}
|
|
835
|
+
finish() {
|
|
836
|
+
this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
|
|
837
|
+
}
|
|
838
|
+
cancel() {
|
|
839
|
+
this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
|
|
840
|
+
}
|
|
841
|
+
teardown() {
|
|
842
|
+
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, Ue.mainThread--;
|
|
843
|
+
}
|
|
844
|
+
stopDriver() {
|
|
845
|
+
this.driver &&= (this.driver.stop(), void 0);
|
|
846
|
+
}
|
|
847
|
+
sample(e) {
|
|
848
|
+
return this.startTime = 0, this.tick(e, !0);
|
|
849
|
+
}
|
|
850
|
+
attachTimeline(e) {
|
|
851
|
+
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
//#endregion
|
|
855
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
|
|
856
|
+
function Cn(e) {
|
|
857
|
+
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
|
|
858
|
+
}
|
|
859
|
+
//#endregion
|
|
860
|
+
//#region node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
|
|
861
|
+
var U = (e) => e * 180 / Math.PI, wn = (e) => En(U(Math.atan2(e[1], e[0]))), Tn = {
|
|
862
|
+
x: 4,
|
|
863
|
+
y: 5,
|
|
864
|
+
translateX: 4,
|
|
865
|
+
translateY: 5,
|
|
866
|
+
scaleX: 0,
|
|
867
|
+
scaleY: 3,
|
|
868
|
+
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
869
|
+
rotate: wn,
|
|
870
|
+
rotateZ: wn,
|
|
871
|
+
skewX: (e) => U(Math.atan(e[1])),
|
|
872
|
+
skewY: (e) => U(Math.atan(e[2])),
|
|
873
|
+
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
874
|
+
}, 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 = {
|
|
875
|
+
x: 12,
|
|
876
|
+
y: 13,
|
|
877
|
+
z: 14,
|
|
878
|
+
translateX: 12,
|
|
879
|
+
translateY: 13,
|
|
880
|
+
translateZ: 14,
|
|
881
|
+
scaleX: On,
|
|
882
|
+
scaleY: kn,
|
|
883
|
+
scale: (e) => (On(e) + kn(e)) / 2,
|
|
884
|
+
rotateX: (e) => En(U(Math.atan2(e[6], e[5]))),
|
|
885
|
+
rotateY: (e) => En(U(Math.atan2(-e[2], e[0]))),
|
|
886
|
+
rotateZ: Dn,
|
|
887
|
+
rotate: Dn,
|
|
888
|
+
skewX: (e) => U(Math.atan(e[4])),
|
|
889
|
+
skewY: (e) => U(Math.atan(e[1])),
|
|
890
|
+
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
891
|
+
};
|
|
892
|
+
function jn(e) {
|
|
893
|
+
return +!!e.includes("scale");
|
|
894
|
+
}
|
|
895
|
+
function Mn(e, t) {
|
|
896
|
+
if (!e || e === "none") return jn(t);
|
|
897
|
+
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
|
|
898
|
+
if (n) r = An, i = n;
|
|
899
|
+
else {
|
|
900
|
+
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
901
|
+
r = Tn, i = t;
|
|
902
|
+
}
|
|
903
|
+
if (!i) return jn(t);
|
|
904
|
+
let a = r[t], o = i[1].split(",").map(Pn);
|
|
905
|
+
return typeof a == "function" ? a(o) : o[a];
|
|
906
|
+
}
|
|
907
|
+
var Nn = (e, t) => {
|
|
908
|
+
let { transform: n = "none" } = getComputedStyle(e);
|
|
909
|
+
return Mn(n, t);
|
|
910
|
+
};
|
|
911
|
+
function Pn(e) {
|
|
912
|
+
return parseFloat(e.trim());
|
|
913
|
+
}
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
|
|
916
|
+
var Fn = [
|
|
917
|
+
"transformPerspective",
|
|
918
|
+
"x",
|
|
919
|
+
"y",
|
|
920
|
+
"z",
|
|
921
|
+
"translateX",
|
|
922
|
+
"translateY",
|
|
923
|
+
"translateZ",
|
|
924
|
+
"scale",
|
|
925
|
+
"scaleX",
|
|
926
|
+
"scaleY",
|
|
927
|
+
"rotate",
|
|
928
|
+
"rotateX",
|
|
929
|
+
"rotateY",
|
|
930
|
+
"rotateZ",
|
|
931
|
+
"skew",
|
|
932
|
+
"skewX",
|
|
933
|
+
"skewY"
|
|
934
|
+
], In = new Set(Fn), Ln = (e) => e === Xe || e === R, Rn = new Set([
|
|
935
|
+
"x",
|
|
936
|
+
"y",
|
|
937
|
+
"z"
|
|
938
|
+
]), zn = Fn.filter((e) => !Rn.has(e));
|
|
939
|
+
function Bn(e) {
|
|
940
|
+
let t = [];
|
|
941
|
+
return zn.forEach((n) => {
|
|
942
|
+
let r = e.getValue(n);
|
|
943
|
+
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
|
|
944
|
+
}), t;
|
|
945
|
+
}
|
|
946
|
+
var W = {
|
|
947
|
+
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
948
|
+
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n),
|
|
949
|
+
top: (e, { top: t }) => parseFloat(t),
|
|
950
|
+
left: (e, { left: t }) => parseFloat(t),
|
|
951
|
+
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
952
|
+
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
953
|
+
x: (e, { transform: t }) => Mn(t, "x"),
|
|
954
|
+
y: (e, { transform: t }) => Mn(t, "y")
|
|
955
|
+
};
|
|
956
|
+
W.translateX = W.x, W.translateY = W.y;
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
|
|
959
|
+
var G = /* @__PURE__ */ new Set(), Vn = !1, Hn = !1, Un = !1;
|
|
960
|
+
function Wn() {
|
|
961
|
+
if (Hn) {
|
|
962
|
+
let e = Array.from(G).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
|
|
963
|
+
t.forEach((e) => {
|
|
964
|
+
let t = Bn(e);
|
|
965
|
+
t.length && (n.set(e, t), e.render());
|
|
966
|
+
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
|
|
967
|
+
e.render();
|
|
968
|
+
let t = n.get(e);
|
|
969
|
+
t && t.forEach(([t, n]) => {
|
|
970
|
+
e.getValue(t)?.set(n);
|
|
971
|
+
});
|
|
972
|
+
}), e.forEach((e) => e.measureEndState()), e.forEach((e) => {
|
|
973
|
+
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
Hn = !1, Vn = !1, G.forEach((e) => e.complete(Un)), G.clear();
|
|
977
|
+
}
|
|
978
|
+
function Gn() {
|
|
979
|
+
G.forEach((e) => {
|
|
980
|
+
e.readKeyframes(), e.needsMeasurement && (Hn = !0);
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
function Kn() {
|
|
984
|
+
Un = !0, Gn(), Wn(), Un = !1;
|
|
985
|
+
}
|
|
986
|
+
var qn = class {
|
|
987
|
+
constructor(e, t, n, r, i, a = !1) {
|
|
988
|
+
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;
|
|
989
|
+
}
|
|
990
|
+
scheduleResolve() {
|
|
991
|
+
this.state = "scheduled", this.isAsync ? (G.add(this), Vn || (Vn = !0, j.read(Gn), j.resolveKeyframes(Wn))) : (this.readKeyframes(), this.complete());
|
|
992
|
+
}
|
|
993
|
+
readKeyframes() {
|
|
994
|
+
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
|
|
995
|
+
if (e[0] === null) {
|
|
996
|
+
let i = r?.get(), a = e[e.length - 1];
|
|
997
|
+
if (i !== void 0) e[0] = i;
|
|
998
|
+
else if (n && t) {
|
|
999
|
+
let r = n.readValue(t, a);
|
|
1000
|
+
r != null && (e[0] = r);
|
|
1001
|
+
}
|
|
1002
|
+
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
|
|
1003
|
+
}
|
|
1004
|
+
Cn(e);
|
|
1005
|
+
}
|
|
1006
|
+
setFinalKeyframe() {}
|
|
1007
|
+
measureInitialState() {}
|
|
1008
|
+
renderEndStyles() {}
|
|
1009
|
+
measureEndState() {}
|
|
1010
|
+
complete(e = !1) {
|
|
1011
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), G.delete(this);
|
|
1012
|
+
}
|
|
1013
|
+
cancel() {
|
|
1014
|
+
this.state === "scheduled" && (G.delete(this), this.state = "pending");
|
|
1015
|
+
}
|
|
1016
|
+
resume() {
|
|
1017
|
+
this.state === "pending" && this.scheduleResolve();
|
|
1018
|
+
}
|
|
1019
|
+
}, Jn = (e) => e.startsWith("--");
|
|
1020
|
+
//#endregion
|
|
1021
|
+
//#region node_modules/motion-dom/dist/es/render/dom/style-set.mjs
|
|
1022
|
+
function Yn(e, t, n) {
|
|
1023
|
+
Jn(t) ? e.style.setProperty(t, n) : e.style[t] = n;
|
|
1024
|
+
}
|
|
1025
|
+
//#endregion
|
|
1026
|
+
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1027
|
+
var Xn = /* @__PURE__ */ oe(() => window.ScrollTimeline !== void 0), Zn = {};
|
|
1028
|
+
//#endregion
|
|
1029
|
+
//#region node_modules/motion-dom/dist/es/utils/supports/memo.mjs
|
|
1030
|
+
function Qn(e, t) {
|
|
1031
|
+
let n = /* @__PURE__ */ oe(e);
|
|
1032
|
+
return () => Zn[t] ?? n();
|
|
1033
|
+
}
|
|
1034
|
+
//#endregion
|
|
1035
|
+
//#region node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs
|
|
1036
|
+
var $n = /* @__PURE__ */ Qn(() => {
|
|
1037
|
+
try {
|
|
1038
|
+
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1039
|
+
} catch {
|
|
1040
|
+
return !1;
|
|
1041
|
+
}
|
|
1042
|
+
return !0;
|
|
1043
|
+
}, "linearEasing"), er = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, tr = {
|
|
1044
|
+
linear: "linear",
|
|
1045
|
+
ease: "ease",
|
|
1046
|
+
easeIn: "ease-in",
|
|
1047
|
+
easeOut: "ease-out",
|
|
1048
|
+
easeInOut: "ease-in-out",
|
|
1049
|
+
circIn: /* @__PURE__ */ er([
|
|
1050
|
+
0,
|
|
1051
|
+
.65,
|
|
1052
|
+
.55,
|
|
1053
|
+
1
|
|
1054
|
+
]),
|
|
1055
|
+
circOut: /* @__PURE__ */ er([
|
|
1056
|
+
.55,
|
|
1057
|
+
0,
|
|
1058
|
+
1,
|
|
1059
|
+
.45
|
|
1060
|
+
]),
|
|
1061
|
+
backIn: /* @__PURE__ */ er([
|
|
1062
|
+
.31,
|
|
1063
|
+
.01,
|
|
1064
|
+
.66,
|
|
1065
|
+
-.59
|
|
1066
|
+
]),
|
|
1067
|
+
backOut: /* @__PURE__ */ er([
|
|
1068
|
+
.33,
|
|
1069
|
+
1.53,
|
|
1070
|
+
.69,
|
|
1071
|
+
.99
|
|
1072
|
+
])
|
|
1073
|
+
};
|
|
1074
|
+
//#endregion
|
|
1075
|
+
//#region node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
|
|
1076
|
+
function nr(e, t) {
|
|
1077
|
+
if (e) return typeof e == "function" ? $n() ? Gt(e, t) : "ease-out" : Me(e) ? er(e) : Array.isArray(e) ? e.map((e) => nr(e, t) || tr.easeOut) : tr[e];
|
|
1078
|
+
}
|
|
1079
|
+
//#endregion
|
|
1080
|
+
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1081
|
+
function rr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1082
|
+
let u = { [t]: n };
|
|
1083
|
+
c && (u.offset = c);
|
|
1084
|
+
let d = nr(s, i);
|
|
1085
|
+
Array.isArray(d) && (u.easing = d), A.value && Ue.waapi++;
|
|
1086
|
+
let f = {
|
|
1087
|
+
delay: r,
|
|
1088
|
+
duration: i,
|
|
1089
|
+
easing: Array.isArray(d) ? "linear" : d,
|
|
1090
|
+
fill: "both",
|
|
1091
|
+
iterations: a + 1,
|
|
1092
|
+
direction: o === "reverse" ? "alternate" : "normal"
|
|
1093
|
+
};
|
|
1094
|
+
l && (f.pseudoElement = l);
|
|
1095
|
+
let p = e.animate(u, f);
|
|
1096
|
+
return A.value && p.finished.finally(() => {
|
|
1097
|
+
Ue.waapi--;
|
|
1098
|
+
}), p;
|
|
1099
|
+
}
|
|
1100
|
+
//#endregion
|
|
1101
|
+
//#region node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
|
|
1102
|
+
function ir(e) {
|
|
1103
|
+
return typeof e == "function" && "applyToOptions" in e;
|
|
1104
|
+
}
|
|
1105
|
+
//#endregion
|
|
1106
|
+
//#region node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
|
|
1107
|
+
function ar({ type: e, ...t }) {
|
|
1108
|
+
return ir(e) && $n() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1109
|
+
}
|
|
1110
|
+
//#endregion
|
|
1111
|
+
//#region node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
|
|
1112
|
+
var or = class extends bn {
|
|
1113
|
+
constructor(e) {
|
|
1114
|
+
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
|
|
1115
|
+
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
|
|
1116
|
+
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, T(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
|
|
1117
|
+
let c = ar(e);
|
|
1118
|
+
this.animation = rr(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1119
|
+
if (this.finishedTime = this.time, !i) {
|
|
1120
|
+
let e = _n(r, this.options, o, this.speed);
|
|
1121
|
+
this.updateMotionValue ? this.updateMotionValue(e) : Yn(t, n, e), this.animation.cancel();
|
|
1122
|
+
}
|
|
1123
|
+
s?.(), this.notifyFinished();
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
play() {
|
|
1127
|
+
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
|
|
1128
|
+
}
|
|
1129
|
+
pause() {
|
|
1130
|
+
this.animation.pause();
|
|
1131
|
+
}
|
|
1132
|
+
complete() {
|
|
1133
|
+
this.animation.finish?.();
|
|
1134
|
+
}
|
|
1135
|
+
cancel() {
|
|
1136
|
+
try {
|
|
1137
|
+
this.animation.cancel();
|
|
1138
|
+
} catch {}
|
|
1139
|
+
}
|
|
1140
|
+
stop() {
|
|
1141
|
+
if (this.isStopped) return;
|
|
1142
|
+
this.isStopped = !0;
|
|
1143
|
+
let { state: e } = this;
|
|
1144
|
+
e === "idle" || e === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
|
|
1145
|
+
}
|
|
1146
|
+
commitStyles() {
|
|
1147
|
+
this.isPseudoElement || this.animation.commitStyles?.();
|
|
1148
|
+
}
|
|
1149
|
+
get duration() {
|
|
1150
|
+
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
1151
|
+
return /* @__PURE__ */ k(Number(e));
|
|
1152
|
+
}
|
|
1153
|
+
get iterationDuration() {
|
|
1154
|
+
let { delay: e = 0 } = this.options || {};
|
|
1155
|
+
return this.duration + /* @__PURE__ */ k(e);
|
|
1156
|
+
}
|
|
1157
|
+
get time() {
|
|
1158
|
+
return /* @__PURE__ */ k(Number(this.animation.currentTime) || 0);
|
|
1159
|
+
}
|
|
1160
|
+
set time(e) {
|
|
1161
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ O(e);
|
|
1162
|
+
}
|
|
1163
|
+
get speed() {
|
|
1164
|
+
return this.animation.playbackRate;
|
|
1165
|
+
}
|
|
1166
|
+
set speed(e) {
|
|
1167
|
+
e < 0 && (this.finishedTime = null), this.animation.playbackRate = e;
|
|
1168
|
+
}
|
|
1169
|
+
get state() {
|
|
1170
|
+
return this.finishedTime === null ? this.animation.playState : "finished";
|
|
1171
|
+
}
|
|
1172
|
+
get startTime() {
|
|
1173
|
+
return this.manualStartTime ?? Number(this.animation.startTime);
|
|
1174
|
+
}
|
|
1175
|
+
set startTime(e) {
|
|
1176
|
+
this.manualStartTime = this.animation.startTime = e;
|
|
1177
|
+
}
|
|
1178
|
+
attachTimeline({ timeline: e, observe: t }) {
|
|
1179
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && Xn() ? (this.animation.timeline = e, D) : t(this);
|
|
1180
|
+
}
|
|
1181
|
+
}, sr = {
|
|
1182
|
+
anticipate: we,
|
|
1183
|
+
backInOut: Ce,
|
|
1184
|
+
circInOut: De
|
|
1185
|
+
};
|
|
1186
|
+
function cr(e) {
|
|
1187
|
+
return e in sr;
|
|
1188
|
+
}
|
|
1189
|
+
function lr(e) {
|
|
1190
|
+
typeof e.ease == "string" && cr(e.ease) && (e.ease = sr[e.ease]);
|
|
1191
|
+
}
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
|
|
1194
|
+
var ur = 10, dr = class extends or {
|
|
1195
|
+
constructor(e) {
|
|
1196
|
+
lr(e), yn(e), super(e), e.startTime !== void 0 && (this.startTime = e.startTime), this.options = e;
|
|
1197
|
+
}
|
|
1198
|
+
updateMotionValue(e) {
|
|
1199
|
+
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
|
|
1200
|
+
if (!t) return;
|
|
1201
|
+
if (e !== void 0) {
|
|
1202
|
+
t.set(e);
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
let o = new Sn({
|
|
1206
|
+
...a,
|
|
1207
|
+
autoplay: !1
|
|
1208
|
+
}), s = Math.max(ur, P.now() - this.startTime), c = w(0, ur, s - ur);
|
|
1209
|
+
t.setWithVelocity(o.sample(Math.max(0, s - c)).value, o.sample(s).value, c), o.stop();
|
|
1210
|
+
}
|
|
1211
|
+
}, fr = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (B.test(e) || e === "0") && !e.startsWith("url("));
|
|
1212
|
+
//#endregion
|
|
1213
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
|
|
1214
|
+
function pr(e) {
|
|
1215
|
+
let t = e[0];
|
|
1216
|
+
if (e.length === 1) return !0;
|
|
1217
|
+
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
|
|
1218
|
+
}
|
|
1219
|
+
function mr(e, t, n, r) {
|
|
1220
|
+
let i = e[0];
|
|
1221
|
+
if (i === null) return !1;
|
|
1222
|
+
if (t === "display" || t === "visibility") return !0;
|
|
1223
|
+
let a = e[e.length - 1], o = fr(i, t), s = fr(a, t);
|
|
1224
|
+
return ne(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 : pr(e) || (n === "spring" || ir(n)) && r;
|
|
1225
|
+
}
|
|
1226
|
+
//#endregion
|
|
1227
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
|
|
1228
|
+
function hr(e) {
|
|
1229
|
+
e.duration = 0, e.type = "keyframes";
|
|
1230
|
+
}
|
|
1231
|
+
//#endregion
|
|
1232
|
+
//#region node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
|
|
1233
|
+
var gr = new Set([
|
|
1234
|
+
"opacity",
|
|
1235
|
+
"clipPath",
|
|
1236
|
+
"filter",
|
|
1237
|
+
"transform"
|
|
1238
|
+
]), _r = /* @__PURE__ */ oe(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1239
|
+
function vr(e) {
|
|
1240
|
+
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o } = e;
|
|
1241
|
+
if (!(t?.owner?.current instanceof HTMLElement)) return !1;
|
|
1242
|
+
let { onUpdate: s, transformTemplate: c } = t.owner.getProps();
|
|
1243
|
+
return _r() && n && gr.has(n) && (n !== "transform" || !c) && !s && !r && i !== "mirror" && a !== 0 && o !== "inertia";
|
|
1244
|
+
}
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
|
|
1247
|
+
var yr = 40, br = class extends bn {
|
|
1248
|
+
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 }) {
|
|
1249
|
+
super(), this.stop = () => {
|
|
1250
|
+
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
1251
|
+
}, this.createdAt = P.now();
|
|
1252
|
+
let d = {
|
|
1253
|
+
autoplay: e,
|
|
1254
|
+
delay: t,
|
|
1255
|
+
type: n,
|
|
1256
|
+
repeat: r,
|
|
1257
|
+
repeatDelay: i,
|
|
1258
|
+
repeatType: a,
|
|
1259
|
+
name: s,
|
|
1260
|
+
motionValue: c,
|
|
1261
|
+
element: l,
|
|
1262
|
+
...u
|
|
1263
|
+
}, f = l?.KeyframeResolver || qn;
|
|
1264
|
+
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
|
|
1265
|
+
}
|
|
1266
|
+
onKeyframesResolved(e, t, n, r) {
|
|
1267
|
+
this.keyframeResolver = void 0;
|
|
1268
|
+
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
|
|
1269
|
+
this.resolvedAt = P.now(), mr(e, i, a, o) || ((E.instantAnimations || !s) && l?.(_n(e, n, t)), e[0] = e[e.length - 1], hr(n), n.repeat = 0);
|
|
1270
|
+
let u = {
|
|
1271
|
+
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > yr ? this.resolvedAt : this.createdAt : void 0,
|
|
1272
|
+
finalKeyframe: t,
|
|
1273
|
+
...n,
|
|
1274
|
+
keyframes: e
|
|
1275
|
+
}, d = !c && vr(u) ? new dr({
|
|
1276
|
+
...u,
|
|
1277
|
+
element: u.motionValue.owner.current
|
|
1278
|
+
}) : new Sn(u);
|
|
1279
|
+
d.finished.then(() => this.notifyFinished()).catch(D), this.pendingTimeline &&= (this.stopTimeline = d.attachTimeline(this.pendingTimeline), void 0), this._animation = d;
|
|
1280
|
+
}
|
|
1281
|
+
get finished() {
|
|
1282
|
+
return this._animation ? this.animation.finished : this._finished;
|
|
1283
|
+
}
|
|
1284
|
+
then(e, t) {
|
|
1285
|
+
return this.finished.finally(e).then(() => {});
|
|
1286
|
+
}
|
|
1287
|
+
get animation() {
|
|
1288
|
+
return this._animation || (this.keyframeResolver?.resume(), Kn()), this._animation;
|
|
1289
|
+
}
|
|
1290
|
+
get duration() {
|
|
1291
|
+
return this.animation.duration;
|
|
1292
|
+
}
|
|
1293
|
+
get iterationDuration() {
|
|
1294
|
+
return this.animation.iterationDuration;
|
|
1295
|
+
}
|
|
1296
|
+
get time() {
|
|
1297
|
+
return this.animation.time;
|
|
1298
|
+
}
|
|
1299
|
+
set time(e) {
|
|
1300
|
+
this.animation.time = e;
|
|
1301
|
+
}
|
|
1302
|
+
get speed() {
|
|
1303
|
+
return this.animation.speed;
|
|
1304
|
+
}
|
|
1305
|
+
get state() {
|
|
1306
|
+
return this.animation.state;
|
|
1307
|
+
}
|
|
1308
|
+
set speed(e) {
|
|
1309
|
+
this.animation.speed = e;
|
|
1310
|
+
}
|
|
1311
|
+
get startTime() {
|
|
1312
|
+
return this.animation.startTime;
|
|
1313
|
+
}
|
|
1314
|
+
attachTimeline(e) {
|
|
1315
|
+
return this._animation ? this.stopTimeline = this.animation.attachTimeline(e) : this.pendingTimeline = e, () => this.stop();
|
|
1316
|
+
}
|
|
1317
|
+
play() {
|
|
1318
|
+
this.animation.play();
|
|
1319
|
+
}
|
|
1320
|
+
pause() {
|
|
1321
|
+
this.animation.pause();
|
|
1322
|
+
}
|
|
1323
|
+
complete() {
|
|
1324
|
+
this.animation.complete();
|
|
1325
|
+
}
|
|
1326
|
+
cancel() {
|
|
1327
|
+
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1328
|
+
}
|
|
1329
|
+
}, xr = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
1330
|
+
function Sr(e) {
|
|
1331
|
+
let t = xr.exec(e);
|
|
1332
|
+
if (!t) return [,];
|
|
1333
|
+
let [, n, r, i] = t;
|
|
1334
|
+
return [`--${n ?? r}`, i];
|
|
1335
|
+
}
|
|
1336
|
+
var Cr = 4;
|
|
1337
|
+
function wr(e, t, n = 1) {
|
|
1338
|
+
T(n <= Cr, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1339
|
+
let [r, i] = Sr(e);
|
|
1340
|
+
if (!r) return;
|
|
1341
|
+
let a = window.getComputedStyle(t).getPropertyValue(r);
|
|
1342
|
+
if (a) {
|
|
1343
|
+
let e = a.trim();
|
|
1344
|
+
return re(e) ? parseFloat(e) : e;
|
|
1345
|
+
}
|
|
1346
|
+
return qe(i) ? wr(i, t, n + 1) : i;
|
|
1347
|
+
}
|
|
1348
|
+
//#endregion
|
|
1349
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
|
|
1350
|
+
function Tr(e, t) {
|
|
1351
|
+
return e?.[t] ?? e?.default ?? e;
|
|
1352
|
+
}
|
|
1353
|
+
//#endregion
|
|
1354
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
|
|
1355
|
+
var Er = {
|
|
1356
|
+
type: "spring",
|
|
1357
|
+
stiffness: 500,
|
|
1358
|
+
damping: 25,
|
|
1359
|
+
restSpeed: 10
|
|
1360
|
+
}, Dr = (e) => ({
|
|
1361
|
+
type: "spring",
|
|
1362
|
+
stiffness: 550,
|
|
1363
|
+
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
1364
|
+
restSpeed: 10
|
|
1365
|
+
}), Or = {
|
|
1366
|
+
type: "keyframes",
|
|
1367
|
+
duration: .8
|
|
1368
|
+
}, kr = {
|
|
1369
|
+
type: "keyframes",
|
|
1370
|
+
ease: [
|
|
1371
|
+
.25,
|
|
1372
|
+
.1,
|
|
1373
|
+
.35,
|
|
1374
|
+
1
|
|
1375
|
+
],
|
|
1376
|
+
duration: .3
|
|
1377
|
+
}, Ar = (e, { keyframes: t }) => t.length > 2 ? Or : In.has(e) ? e.startsWith("scale") ? Dr(t[1]) : Er : kr;
|
|
1378
|
+
//#endregion
|
|
1379
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs
|
|
1380
|
+
function jr({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: a, repeatType: o, repeatDelay: s, from: c, elapsed: l, ...u }) {
|
|
1381
|
+
return !!Object.keys(u).length;
|
|
1382
|
+
}
|
|
1383
|
+
//#endregion
|
|
1384
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.mjs
|
|
1385
|
+
var Mr = (e) => e !== null;
|
|
1386
|
+
function Nr(e, { repeat: t, repeatType: n = "loop" }, r) {
|
|
1387
|
+
let i = e.filter(Mr), a = t && n !== "loop" && t % 2 == 1 ? 0 : i.length - 1;
|
|
1388
|
+
return !a || r === void 0 ? i[a] : r;
|
|
1389
|
+
}
|
|
1390
|
+
//#endregion
|
|
1391
|
+
//#region node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
|
|
1392
|
+
function Pr(e, t, n, r = 0, i = 1) {
|
|
1393
|
+
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
|
|
1394
|
+
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
|
|
1395
|
+
}
|
|
1396
|
+
//#endregion
|
|
1397
|
+
//#region node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
1398
|
+
var Fr = (e, t, n, r = {}, i, a) => (o) => {
|
|
1399
|
+
let s = Tr(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
|
|
1400
|
+
l -= /* @__PURE__ */ O(c);
|
|
1401
|
+
let u = {
|
|
1402
|
+
keyframes: Array.isArray(n) ? n : [null, n],
|
|
1403
|
+
ease: "easeOut",
|
|
1404
|
+
velocity: t.getVelocity(),
|
|
1405
|
+
...s,
|
|
1406
|
+
delay: -l,
|
|
1407
|
+
onUpdate: (e) => {
|
|
1408
|
+
t.set(e), s.onUpdate && s.onUpdate(e);
|
|
1409
|
+
},
|
|
1410
|
+
onComplete: () => {
|
|
1411
|
+
o(), s.onComplete && s.onComplete();
|
|
1412
|
+
},
|
|
1413
|
+
name: e,
|
|
1414
|
+
motionValue: t,
|
|
1415
|
+
element: a ? void 0 : i
|
|
1416
|
+
};
|
|
1417
|
+
jr(s) || Object.assign(u, Ar(e, u)), u.duration &&= /* @__PURE__ */ O(u.duration), u.repeatDelay &&= /* @__PURE__ */ O(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
1418
|
+
let d = !1;
|
|
1419
|
+
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (hr(u), u.delay === 0 && (d = !0)), (E.instantAnimations || E.skipAnimations) && (d = !0, hr(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
|
|
1420
|
+
let e = Nr(u.keyframes, s);
|
|
1421
|
+
if (e !== void 0) {
|
|
1422
|
+
j.update(() => {
|
|
1423
|
+
u.onUpdate(e), u.onComplete();
|
|
1424
|
+
});
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
return s.isSync ? new Sn(u) : new br(u);
|
|
1429
|
+
}, Ir = new Set([
|
|
1430
|
+
"width",
|
|
1431
|
+
"height",
|
|
1432
|
+
"top",
|
|
1433
|
+
"left",
|
|
1434
|
+
"right",
|
|
1435
|
+
"bottom",
|
|
1436
|
+
...Fn
|
|
1437
|
+
]), Lr = 30, Rr = (e) => !isNaN(parseFloat(e)), zr = { current: void 0 }, Br = class {
|
|
1438
|
+
constructor(e, t = {}) {
|
|
1439
|
+
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
|
|
1440
|
+
let t = P.now();
|
|
1441
|
+
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();
|
|
1442
|
+
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
|
|
1443
|
+
}
|
|
1444
|
+
setCurrent(e) {
|
|
1445
|
+
this.current = e, this.updatedAt = P.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Rr(this.current));
|
|
1446
|
+
}
|
|
1447
|
+
setPrevFrameValue(e = this.current) {
|
|
1448
|
+
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
1449
|
+
}
|
|
1450
|
+
onChange(e) {
|
|
1451
|
+
return process.env.NODE_ENV !== "production" && pe(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
|
|
1452
|
+
}
|
|
1453
|
+
on(e, t) {
|
|
1454
|
+
this.events[e] || (this.events[e] = new ue());
|
|
1455
|
+
let n = this.events[e].add(t);
|
|
1456
|
+
return e === "change" ? () => {
|
|
1457
|
+
n(), j.read(() => {
|
|
1458
|
+
this.events.change.getSize() || this.stop();
|
|
1459
|
+
});
|
|
1460
|
+
} : n;
|
|
1461
|
+
}
|
|
1462
|
+
clearListeners() {
|
|
1463
|
+
for (let e in this.events) this.events[e].clear();
|
|
1464
|
+
}
|
|
1465
|
+
attach(e, t) {
|
|
1466
|
+
this.passiveEffect = e, this.stopPassiveEffect = t;
|
|
1467
|
+
}
|
|
1468
|
+
set(e) {
|
|
1469
|
+
this.passiveEffect ? this.passiveEffect(e, this.updateAndNotify) : this.updateAndNotify(e);
|
|
1470
|
+
}
|
|
1471
|
+
setWithVelocity(e, t, n) {
|
|
1472
|
+
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
|
|
1473
|
+
}
|
|
1474
|
+
jump(e, t = !0) {
|
|
1475
|
+
this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, t && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1476
|
+
}
|
|
1477
|
+
dirty() {
|
|
1478
|
+
this.events.change?.notify(this.current);
|
|
1479
|
+
}
|
|
1480
|
+
addDependent(e) {
|
|
1481
|
+
this.dependents ||= /* @__PURE__ */ new Set(), this.dependents.add(e);
|
|
1482
|
+
}
|
|
1483
|
+
removeDependent(e) {
|
|
1484
|
+
this.dependents && this.dependents.delete(e);
|
|
1485
|
+
}
|
|
1486
|
+
get() {
|
|
1487
|
+
return zr.current && zr.current.push(this), this.current;
|
|
1488
|
+
}
|
|
1489
|
+
getPrevious() {
|
|
1490
|
+
return this.prev;
|
|
1491
|
+
}
|
|
1492
|
+
getVelocity() {
|
|
1493
|
+
let e = P.now();
|
|
1494
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > Lr) return 0;
|
|
1495
|
+
let t = Math.min(this.updatedAt - this.prevUpdatedAt, Lr);
|
|
1496
|
+
return de(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
|
|
1497
|
+
}
|
|
1498
|
+
start(e) {
|
|
1499
|
+
return this.stop(), new Promise((t) => {
|
|
1500
|
+
this.hasAnimated = !0, this.animation = e(t), this.events.animationStart && this.events.animationStart.notify();
|
|
1501
|
+
}).then(() => {
|
|
1502
|
+
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
stop() {
|
|
1506
|
+
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
1507
|
+
}
|
|
1508
|
+
isAnimating() {
|
|
1509
|
+
return !!this.animation;
|
|
1510
|
+
}
|
|
1511
|
+
clearAnimation() {
|
|
1512
|
+
delete this.animation;
|
|
1513
|
+
}
|
|
1514
|
+
destroy() {
|
|
1515
|
+
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
function Vr(e, t) {
|
|
1519
|
+
return new Br(e, t);
|
|
1520
|
+
}
|
|
1521
|
+
//#endregion
|
|
1522
|
+
//#region node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
|
|
1523
|
+
function Hr(e) {
|
|
1524
|
+
let t = [{}, {}];
|
|
1525
|
+
return e?.values.forEach((e, n) => {
|
|
1526
|
+
t[0][n] = e.get(), t[1][n] = e.getVelocity();
|
|
1527
|
+
}), t;
|
|
1528
|
+
}
|
|
1529
|
+
function Ur(e, t, n, r) {
|
|
1530
|
+
if (typeof t == "function") {
|
|
1531
|
+
let [i, a] = Hr(r);
|
|
1532
|
+
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1533
|
+
}
|
|
1534
|
+
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
|
|
1535
|
+
let [i, a] = Hr(r);
|
|
1536
|
+
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1537
|
+
}
|
|
1538
|
+
return t;
|
|
1539
|
+
}
|
|
1540
|
+
//#endregion
|
|
1541
|
+
//#region node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
|
|
1542
|
+
function Wr(e, t, n) {
|
|
1543
|
+
let r = e.getProps();
|
|
1544
|
+
return Ur(r, t, n === void 0 ? r.custom : n, e);
|
|
1545
|
+
}
|
|
1546
|
+
//#endregion
|
|
1547
|
+
//#region node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs
|
|
1548
|
+
var Gr = (e) => Array.isArray(e);
|
|
1549
|
+
//#endregion
|
|
1550
|
+
//#region node_modules/motion-dom/dist/es/render/utils/setters.mjs
|
|
1551
|
+
function Kr(e, t, n) {
|
|
1552
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Vr(n));
|
|
1553
|
+
}
|
|
1554
|
+
function qr(e) {
|
|
1555
|
+
return Gr(e) ? e[e.length - 1] || 0 : e;
|
|
1556
|
+
}
|
|
1557
|
+
function Jr(e, t) {
|
|
1558
|
+
let { transitionEnd: n = {}, transition: r = {}, ...i } = Wr(e, t) || {};
|
|
1559
|
+
i = {
|
|
1560
|
+
...i,
|
|
1561
|
+
...n
|
|
1562
|
+
};
|
|
1563
|
+
for (let t in i) Kr(e, t, qr(i[t]));
|
|
1564
|
+
}
|
|
1565
|
+
//#endregion
|
|
1566
|
+
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
|
|
1567
|
+
var K = (e) => !!(e && e.getVelocity);
|
|
1568
|
+
//#endregion
|
|
1569
|
+
//#region node_modules/motion-dom/dist/es/value/will-change/is.mjs
|
|
1570
|
+
function Yr(e) {
|
|
1571
|
+
return !!(K(e) && e.add);
|
|
1572
|
+
}
|
|
1573
|
+
//#endregion
|
|
1574
|
+
//#region node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
|
|
1575
|
+
function Xr(e, t) {
|
|
1576
|
+
let n = e.getValue("willChange");
|
|
1577
|
+
if (Yr(n)) return n.add(t);
|
|
1578
|
+
if (!n && E.WillChange) {
|
|
1579
|
+
let n = new E.WillChange("auto");
|
|
1580
|
+
e.addValue("willChange", n), n.add(t);
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
//#endregion
|
|
1584
|
+
//#region node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
|
|
1585
|
+
function Zr(e) {
|
|
1586
|
+
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1587
|
+
}
|
|
1588
|
+
var Qr = "data-" + Zr("framerAppearId");
|
|
1589
|
+
//#endregion
|
|
1590
|
+
//#region node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
|
|
1591
|
+
function $r(e) {
|
|
1592
|
+
return e.props[Qr];
|
|
1593
|
+
}
|
|
1594
|
+
//#endregion
|
|
1595
|
+
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
|
|
1596
|
+
function ei({ protectedKeys: e, needsAnimating: t }, n) {
|
|
1597
|
+
let r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
1598
|
+
return t[n] = !1, r;
|
|
1599
|
+
}
|
|
1600
|
+
function ti(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
1601
|
+
let { transition: a = e.getDefaultTransition(), transitionEnd: o, ...s } = t;
|
|
1602
|
+
r && (a = r);
|
|
1603
|
+
let c = [], l = i && e.animationState && e.animationState.getState()[i];
|
|
1604
|
+
for (let t in s) {
|
|
1605
|
+
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
|
|
1606
|
+
if (i === void 0 || l && ei(l, t)) continue;
|
|
1607
|
+
let o = {
|
|
1608
|
+
delay: n,
|
|
1609
|
+
...Tr(a || {}, t)
|
|
1610
|
+
}, u = r.get();
|
|
1611
|
+
if (u !== void 0 && !r.isAnimating && !Array.isArray(i) && i === u && !o.velocity) continue;
|
|
1612
|
+
let d = !1;
|
|
1613
|
+
if (window.MotionHandoffAnimation) {
|
|
1614
|
+
let n = $r(e);
|
|
1615
|
+
if (n) {
|
|
1616
|
+
let e = window.MotionHandoffAnimation(n, t, j);
|
|
1617
|
+
e !== null && (o.startTime = e, d = !0);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
Xr(e, t), r.start(Fr(t, r, i, e.shouldReduceMotion && Ir.has(t) ? { type: !1 } : o, e, d));
|
|
1621
|
+
let f = r.animation;
|
|
1622
|
+
f && c.push(f);
|
|
1623
|
+
}
|
|
1624
|
+
return o && Promise.all(c).then(() => {
|
|
1625
|
+
j.update(() => {
|
|
1626
|
+
o && Jr(e, o);
|
|
1627
|
+
});
|
|
1628
|
+
}), c;
|
|
1629
|
+
}
|
|
1630
|
+
//#endregion
|
|
1631
|
+
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
|
|
1632
|
+
function ni(e, t, n = {}) {
|
|
1633
|
+
let r = Wr(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
|
|
1634
|
+
n.transitionOverride && (i = n.transitionOverride);
|
|
1635
|
+
let a = r ? () => Promise.all(ti(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
|
|
1636
|
+
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
|
|
1637
|
+
return ri(e, t, r, a, o, s, n);
|
|
1638
|
+
} : () => Promise.resolve(), { when: s } = i;
|
|
1639
|
+
if (s) {
|
|
1640
|
+
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
|
|
1641
|
+
return e().then(() => t());
|
|
1642
|
+
} else return Promise.all([a(), o(n.delay)]);
|
|
1643
|
+
}
|
|
1644
|
+
function ri(e, t, n = 0, r = 0, i = 0, a = 1, o) {
|
|
1645
|
+
let s = [];
|
|
1646
|
+
for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(ni(c, t, {
|
|
1647
|
+
...o,
|
|
1648
|
+
delay: n + (typeof r == "function" ? 0 : r) + Pr(e.variantChildren, c, r, i, a)
|
|
1649
|
+
}).then(() => c.notify("AnimationComplete", t)));
|
|
1650
|
+
return Promise.all(s);
|
|
1651
|
+
}
|
|
1652
|
+
//#endregion
|
|
1653
|
+
//#region node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
|
|
1654
|
+
function ii(e, t, n = {}) {
|
|
1655
|
+
e.notify("AnimationStart", t);
|
|
1656
|
+
let r;
|
|
1657
|
+
if (Array.isArray(t)) {
|
|
1658
|
+
let i = t.map((t) => ni(e, t, n));
|
|
1659
|
+
r = Promise.all(i);
|
|
1660
|
+
} else if (typeof t == "string") r = ni(e, t, n);
|
|
1661
|
+
else {
|
|
1662
|
+
let i = typeof t == "function" ? Wr(e, t, n.custom) : t;
|
|
1663
|
+
r = Promise.all(ti(e, i, n));
|
|
1664
|
+
}
|
|
1665
|
+
return r.then(() => {
|
|
1666
|
+
e.notify("AnimationComplete", t);
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
//#endregion
|
|
1670
|
+
//#region node_modules/motion-dom/dist/es/value/types/auto.mjs
|
|
1671
|
+
var ai = {
|
|
1672
|
+
test: (e) => e === "auto",
|
|
1673
|
+
parse: (e) => e
|
|
1674
|
+
}, oi = (e) => (t) => t.test(e), si = [
|
|
1675
|
+
Xe,
|
|
1676
|
+
R,
|
|
1677
|
+
L,
|
|
1678
|
+
I,
|
|
1679
|
+
dt,
|
|
1680
|
+
ut,
|
|
1681
|
+
ai
|
|
1682
|
+
], ci = (e) => si.find(oi(e));
|
|
1683
|
+
//#endregion
|
|
1684
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
|
|
1685
|
+
function li(e) {
|
|
1686
|
+
return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" || ae(e);
|
|
1687
|
+
}
|
|
1688
|
+
//#endregion
|
|
1689
|
+
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
|
|
1690
|
+
var ui = new Set([
|
|
1691
|
+
"brightness",
|
|
1692
|
+
"contrast",
|
|
1693
|
+
"saturate",
|
|
1694
|
+
"opacity"
|
|
1695
|
+
]);
|
|
1696
|
+
function di(e) {
|
|
1697
|
+
let [t, n] = e.slice(0, -1).split("(");
|
|
1698
|
+
if (t === "drop-shadow") return e;
|
|
1699
|
+
let [r] = n.match(et) || [];
|
|
1700
|
+
if (!r) return e;
|
|
1701
|
+
let i = n.replace(r, ""), a = +!!ui.has(t);
|
|
1702
|
+
return r !== n && (a *= 100), t + "(" + a + i + ")";
|
|
1703
|
+
}
|
|
1704
|
+
var fi = /\b([a-z-]*)\(.*?\)/gu, pi = {
|
|
1705
|
+
...B,
|
|
1706
|
+
getAnimatableNone: (e) => {
|
|
1707
|
+
let t = e.match(fi);
|
|
1708
|
+
return t ? t.map(di).join(" ") : e;
|
|
1709
|
+
}
|
|
1710
|
+
}, mi = {
|
|
1711
|
+
...Xe,
|
|
1712
|
+
transform: Math.round
|
|
1713
|
+
}, hi = {
|
|
1714
|
+
borderWidth: R,
|
|
1715
|
+
borderTopWidth: R,
|
|
1716
|
+
borderRightWidth: R,
|
|
1717
|
+
borderBottomWidth: R,
|
|
1718
|
+
borderLeftWidth: R,
|
|
1719
|
+
borderRadius: R,
|
|
1720
|
+
radius: R,
|
|
1721
|
+
borderTopLeftRadius: R,
|
|
1722
|
+
borderTopRightRadius: R,
|
|
1723
|
+
borderBottomRightRadius: R,
|
|
1724
|
+
borderBottomLeftRadius: R,
|
|
1725
|
+
width: R,
|
|
1726
|
+
maxWidth: R,
|
|
1727
|
+
height: R,
|
|
1728
|
+
maxHeight: R,
|
|
1729
|
+
top: R,
|
|
1730
|
+
right: R,
|
|
1731
|
+
bottom: R,
|
|
1732
|
+
left: R,
|
|
1733
|
+
inset: R,
|
|
1734
|
+
insetBlock: R,
|
|
1735
|
+
insetBlockStart: R,
|
|
1736
|
+
insetBlockEnd: R,
|
|
1737
|
+
insetInline: R,
|
|
1738
|
+
insetInlineStart: R,
|
|
1739
|
+
insetInlineEnd: R,
|
|
1740
|
+
padding: R,
|
|
1741
|
+
paddingTop: R,
|
|
1742
|
+
paddingRight: R,
|
|
1743
|
+
paddingBottom: R,
|
|
1744
|
+
paddingLeft: R,
|
|
1745
|
+
paddingBlock: R,
|
|
1746
|
+
paddingBlockStart: R,
|
|
1747
|
+
paddingBlockEnd: R,
|
|
1748
|
+
paddingInline: R,
|
|
1749
|
+
paddingInlineStart: R,
|
|
1750
|
+
paddingInlineEnd: R,
|
|
1751
|
+
margin: R,
|
|
1752
|
+
marginTop: R,
|
|
1753
|
+
marginRight: R,
|
|
1754
|
+
marginBottom: R,
|
|
1755
|
+
marginLeft: R,
|
|
1756
|
+
marginBlock: R,
|
|
1757
|
+
marginBlockStart: R,
|
|
1758
|
+
marginBlockEnd: R,
|
|
1759
|
+
marginInline: R,
|
|
1760
|
+
marginInlineStart: R,
|
|
1761
|
+
marginInlineEnd: R,
|
|
1762
|
+
backgroundPositionX: R,
|
|
1763
|
+
backgroundPositionY: R,
|
|
1764
|
+
rotate: I,
|
|
1765
|
+
rotateX: I,
|
|
1766
|
+
rotateY: I,
|
|
1767
|
+
rotateZ: I,
|
|
1768
|
+
scale: Qe,
|
|
1769
|
+
scaleX: Qe,
|
|
1770
|
+
scaleY: Qe,
|
|
1771
|
+
scaleZ: Qe,
|
|
1772
|
+
skew: I,
|
|
1773
|
+
skewX: I,
|
|
1774
|
+
skewY: I,
|
|
1775
|
+
distance: R,
|
|
1776
|
+
translateX: R,
|
|
1777
|
+
translateY: R,
|
|
1778
|
+
translateZ: R,
|
|
1779
|
+
x: R,
|
|
1780
|
+
y: R,
|
|
1781
|
+
z: R,
|
|
1782
|
+
perspective: R,
|
|
1783
|
+
transformPerspective: R,
|
|
1784
|
+
opacity: Ze,
|
|
1785
|
+
originX: ft,
|
|
1786
|
+
originY: ft,
|
|
1787
|
+
originZ: R,
|
|
1788
|
+
zIndex: mi,
|
|
1789
|
+
fillOpacity: Ze,
|
|
1790
|
+
strokeOpacity: Ze,
|
|
1791
|
+
numOctaves: mi
|
|
1792
|
+
}, gi = {
|
|
1793
|
+
...hi,
|
|
1794
|
+
color: z,
|
|
1795
|
+
backgroundColor: z,
|
|
1796
|
+
outlineColor: z,
|
|
1797
|
+
fill: z,
|
|
1798
|
+
stroke: z,
|
|
1799
|
+
borderColor: z,
|
|
1800
|
+
borderTopColor: z,
|
|
1801
|
+
borderRightColor: z,
|
|
1802
|
+
borderBottomColor: z,
|
|
1803
|
+
borderLeftColor: z,
|
|
1804
|
+
filter: pi,
|
|
1805
|
+
WebkitFilter: pi
|
|
1806
|
+
}, _i = (e) => gi[e];
|
|
1807
|
+
//#endregion
|
|
1808
|
+
//#region node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs
|
|
1809
|
+
function vi(e, t) {
|
|
1810
|
+
let n = _i(e);
|
|
1811
|
+
return n !== pi && (n = B), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
1812
|
+
}
|
|
1813
|
+
//#endregion
|
|
1814
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
|
|
1815
|
+
var yi = new Set([
|
|
1816
|
+
"auto",
|
|
1817
|
+
"none",
|
|
1818
|
+
"0"
|
|
1819
|
+
]);
|
|
1820
|
+
function bi(e, t, n) {
|
|
1821
|
+
let r = 0, i;
|
|
1822
|
+
for (; r < e.length && !i;) {
|
|
1823
|
+
let t = e[r];
|
|
1824
|
+
typeof t == "string" && !yi.has(t) && St(t).values.length && (i = e[r]), r++;
|
|
1825
|
+
}
|
|
1826
|
+
if (i && n) for (let r of t) e[r] = vi(n, i);
|
|
1827
|
+
}
|
|
1828
|
+
//#endregion
|
|
1829
|
+
//#region node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
|
|
1830
|
+
var xi = class extends qn {
|
|
1831
|
+
constructor(e, t, n, r, i) {
|
|
1832
|
+
super(e, t, n, r, i, !0);
|
|
1833
|
+
}
|
|
1834
|
+
readKeyframes() {
|
|
1835
|
+
let { unresolvedKeyframes: e, element: t, name: n } = this;
|
|
1836
|
+
if (!t || !t.current) return;
|
|
1837
|
+
super.readKeyframes();
|
|
1838
|
+
for (let n = 0; n < e.length; n++) {
|
|
1839
|
+
let r = e[n];
|
|
1840
|
+
if (typeof r == "string" && (r = r.trim(), qe(r))) {
|
|
1841
|
+
let i = wr(r, t.current);
|
|
1842
|
+
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
if (this.resolveNoneKeyframes(), !Ir.has(n) || e.length !== 2) return;
|
|
1846
|
+
let [r, i] = e, a = ci(r), o = ci(i);
|
|
1847
|
+
if (Ye(r) !== Ye(i) && W[n]) {
|
|
1848
|
+
this.needsMeasurement = !0;
|
|
1849
|
+
return;
|
|
1850
|
+
}
|
|
1851
|
+
if (a !== o) if (Ln(a) && Ln(o)) for (let t = 0; t < e.length; t++) {
|
|
1852
|
+
let n = e[t];
|
|
1853
|
+
typeof n == "string" && (e[t] = parseFloat(n));
|
|
1854
|
+
}
|
|
1855
|
+
else W[n] && (this.needsMeasurement = !0);
|
|
1856
|
+
}
|
|
1857
|
+
resolveNoneKeyframes() {
|
|
1858
|
+
let { unresolvedKeyframes: e, name: t } = this, n = [];
|
|
1859
|
+
for (let t = 0; t < e.length; t++) (e[t] === null || li(e[t])) && n.push(t);
|
|
1860
|
+
n.length && bi(e, n, t);
|
|
1861
|
+
}
|
|
1862
|
+
measureInitialState() {
|
|
1863
|
+
let { element: e, unresolvedKeyframes: t, name: n } = this;
|
|
1864
|
+
if (!e || !e.current) return;
|
|
1865
|
+
n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = W[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
|
|
1866
|
+
let r = t[t.length - 1];
|
|
1867
|
+
r !== void 0 && e.getValue(n, r).jump(r, !1);
|
|
1868
|
+
}
|
|
1869
|
+
measureEndState() {
|
|
1870
|
+
let { element: e, name: t, unresolvedKeyframes: n } = this;
|
|
1871
|
+
if (!e || !e.current) return;
|
|
1872
|
+
let r = e.getValue(t);
|
|
1873
|
+
r && r.jump(this.measuredOrigin, !1);
|
|
1874
|
+
let i = n.length - 1, a = n[i];
|
|
1875
|
+
n[i] = W[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
|
|
1876
|
+
e.getValue(t).set(n);
|
|
1877
|
+
}), this.resolveNoneKeyframes();
|
|
1878
|
+
}
|
|
1879
|
+
};
|
|
1880
|
+
//#endregion
|
|
1881
|
+
//#region node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
|
|
1882
|
+
function Si(e, t, n) {
|
|
1883
|
+
if (e instanceof EventTarget) return [e];
|
|
1884
|
+
if (typeof e == "string") {
|
|
1885
|
+
let r = document;
|
|
1886
|
+
t && (r = t.current);
|
|
1887
|
+
let i = n?.[e] ?? r.querySelectorAll(e);
|
|
1888
|
+
return i ? Array.from(i) : [];
|
|
1889
|
+
}
|
|
1890
|
+
return Array.from(e);
|
|
1891
|
+
}
|
|
1892
|
+
//#endregion
|
|
1893
|
+
//#region node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
|
|
1894
|
+
var Ci = (e, t) => t && typeof e == "number" ? t.transform(e) : e;
|
|
1895
|
+
//#endregion
|
|
1896
|
+
//#region node_modules/motion-dom/dist/es/utils/is-html-element.mjs
|
|
1897
|
+
function wi(e) {
|
|
1898
|
+
return ie(e) && "offsetHeight" in e;
|
|
1899
|
+
}
|
|
1900
|
+
//#endregion
|
|
1901
|
+
//#region node_modules/motion-dom/dist/es/frameloop/microtask.mjs
|
|
1902
|
+
var { schedule: Ti, cancel: Ei } = /* @__PURE__ */ ze(queueMicrotask, !1), q = {
|
|
1903
|
+
x: !1,
|
|
1904
|
+
y: !1
|
|
1905
|
+
};
|
|
1906
|
+
function Di() {
|
|
1907
|
+
return q.x || q.y;
|
|
1908
|
+
}
|
|
1909
|
+
//#endregion
|
|
1910
|
+
//#region node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
|
|
1911
|
+
function Oi(e) {
|
|
1912
|
+
return e === "x" || e === "y" ? q[e] ? null : (q[e] = !0, () => {
|
|
1913
|
+
q[e] = !1;
|
|
1914
|
+
}) : q.x || q.y ? null : (q.x = q.y = !0, () => {
|
|
1915
|
+
q.x = q.y = !1;
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
//#endregion
|
|
1919
|
+
//#region node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
|
|
1920
|
+
function ki(e, t) {
|
|
1921
|
+
let n = Si(e), r = new AbortController();
|
|
1922
|
+
return [
|
|
1923
|
+
n,
|
|
1924
|
+
{
|
|
1925
|
+
passive: !0,
|
|
1926
|
+
...t,
|
|
1927
|
+
signal: r.signal
|
|
1928
|
+
},
|
|
1929
|
+
() => r.abort()
|
|
1930
|
+
];
|
|
1931
|
+
}
|
|
1932
|
+
//#endregion
|
|
1933
|
+
//#region node_modules/motion-dom/dist/es/gestures/hover.mjs
|
|
1934
|
+
function Ai(e) {
|
|
1935
|
+
return !(e.pointerType === "touch" || Di());
|
|
1936
|
+
}
|
|
1937
|
+
function ji(e, t, n = {}) {
|
|
1938
|
+
let [r, i, a] = ki(e, n), o = (e) => {
|
|
1939
|
+
if (!Ai(e)) return;
|
|
1940
|
+
let { target: n } = e, r = t(n, e);
|
|
1941
|
+
if (typeof r != "function" || !n) return;
|
|
1942
|
+
let a = (e) => {
|
|
1943
|
+
Ai(e) && (r(e), n.removeEventListener("pointerleave", a));
|
|
1944
|
+
};
|
|
1945
|
+
n.addEventListener("pointerleave", a, i);
|
|
1946
|
+
};
|
|
1947
|
+
return r.forEach((e) => {
|
|
1948
|
+
e.addEventListener("pointerenter", o, i);
|
|
1949
|
+
}), a;
|
|
1950
|
+
}
|
|
1951
|
+
//#endregion
|
|
1952
|
+
//#region node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
|
|
1953
|
+
var Mi = (e, t) => t ? e === t ? !0 : Mi(e, t.parentElement) : !1, Ni = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, Pi = new Set([
|
|
1954
|
+
"BUTTON",
|
|
1955
|
+
"INPUT",
|
|
1956
|
+
"SELECT",
|
|
1957
|
+
"TEXTAREA",
|
|
1958
|
+
"A"
|
|
1959
|
+
]);
|
|
1960
|
+
function Fi(e) {
|
|
1961
|
+
return Pi.has(e.tagName) || e.isContentEditable === !0;
|
|
1962
|
+
}
|
|
1963
|
+
//#endregion
|
|
1964
|
+
//#region node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
|
|
1965
|
+
var Ii = /* @__PURE__ */ new WeakSet();
|
|
1966
|
+
//#endregion
|
|
1967
|
+
//#region node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
|
|
1968
|
+
function Li(e) {
|
|
1969
|
+
return (t) => {
|
|
1970
|
+
t.key === "Enter" && e(t);
|
|
1971
|
+
};
|
|
1972
|
+
}
|
|
1973
|
+
function Ri(e, t) {
|
|
1974
|
+
e.dispatchEvent(new PointerEvent("pointer" + t, {
|
|
1975
|
+
isPrimary: !0,
|
|
1976
|
+
bubbles: !0
|
|
1977
|
+
}));
|
|
1978
|
+
}
|
|
1979
|
+
var zi = (e, t) => {
|
|
1980
|
+
let n = e.currentTarget;
|
|
1981
|
+
if (!n) return;
|
|
1982
|
+
let r = Li(() => {
|
|
1983
|
+
if (Ii.has(n)) return;
|
|
1984
|
+
Ri(n, "down");
|
|
1985
|
+
let e = Li(() => {
|
|
1986
|
+
Ri(n, "up");
|
|
1987
|
+
});
|
|
1988
|
+
n.addEventListener("keyup", e, t), n.addEventListener("blur", () => Ri(n, "cancel"), t);
|
|
1989
|
+
});
|
|
1990
|
+
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
|
|
1991
|
+
};
|
|
1992
|
+
//#endregion
|
|
1993
|
+
//#region node_modules/motion-dom/dist/es/gestures/press/index.mjs
|
|
1994
|
+
function Bi(e) {
|
|
1995
|
+
return Ni(e) && !Di();
|
|
1996
|
+
}
|
|
1997
|
+
function Vi(e, t, n = {}) {
|
|
1998
|
+
let [r, i, a] = ki(e, n), o = (e) => {
|
|
1999
|
+
let r = e.currentTarget;
|
|
2000
|
+
if (!Bi(e)) return;
|
|
2001
|
+
Ii.add(r);
|
|
2002
|
+
let a = t(r, e), o = (e, t) => {
|
|
2003
|
+
window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), Ii.has(r) && Ii.delete(r), Bi(e) && typeof a == "function" && a(e, { success: t });
|
|
2004
|
+
}, s = (e) => {
|
|
2005
|
+
o(e, r === window || r === document || n.useGlobalTarget || Mi(r, e.target));
|
|
2006
|
+
}, c = (e) => {
|
|
2007
|
+
o(e, !1);
|
|
2008
|
+
};
|
|
2009
|
+
window.addEventListener("pointerup", s, i), window.addEventListener("pointercancel", c, i);
|
|
2010
|
+
};
|
|
2011
|
+
return r.forEach((e) => {
|
|
2012
|
+
(n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), wi(e) && (e.addEventListener("focus", (e) => zi(e, i)), !Fi(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
|
|
2013
|
+
}), a;
|
|
2014
|
+
}
|
|
2015
|
+
//#endregion
|
|
2016
|
+
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
2017
|
+
function Hi(e) {
|
|
2018
|
+
return ie(e) && "ownerSVGElement" in e;
|
|
2019
|
+
}
|
|
2020
|
+
//#endregion
|
|
2021
|
+
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
|
|
2022
|
+
function Ui(e) {
|
|
2023
|
+
return Hi(e) && e.tagName === "svg";
|
|
2024
|
+
}
|
|
2025
|
+
//#endregion
|
|
2026
|
+
//#region node_modules/motion-dom/dist/es/value/types/utils/find.mjs
|
|
2027
|
+
var Wi = [
|
|
2028
|
+
...si,
|
|
2029
|
+
z,
|
|
2030
|
+
B
|
|
2031
|
+
], Gi = (e) => Wi.find(oi(e)), Ki = () => ({
|
|
2032
|
+
translate: 0,
|
|
2033
|
+
scale: 1,
|
|
2034
|
+
origin: 0,
|
|
2035
|
+
originPoint: 0
|
|
2036
|
+
}), qi = () => ({
|
|
2037
|
+
x: Ki(),
|
|
2038
|
+
y: Ki()
|
|
2039
|
+
}), Ji = () => ({
|
|
2040
|
+
min: 0,
|
|
2041
|
+
max: 0
|
|
2042
|
+
}), J = () => ({
|
|
2043
|
+
x: Ji(),
|
|
2044
|
+
y: Ji()
|
|
2045
|
+
}), Yi = { current: null }, Xi = { current: !1 }, Zi = typeof window < "u";
|
|
2046
|
+
function Qi() {
|
|
2047
|
+
if (Xi.current = !0, Zi) if (window.matchMedia) {
|
|
2048
|
+
let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Yi.current = e.matches;
|
|
2049
|
+
e.addEventListener("change", t), t();
|
|
2050
|
+
} else Yi.current = !1;
|
|
2051
|
+
}
|
|
2052
|
+
//#endregion
|
|
2053
|
+
//#region node_modules/motion-dom/dist/es/render/store.mjs
|
|
2054
|
+
var $i = /* @__PURE__ */ new WeakMap();
|
|
2055
|
+
//#endregion
|
|
2056
|
+
//#region node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
|
|
2057
|
+
function ea(e) {
|
|
2058
|
+
return typeof e == "object" && !!e && typeof e.start == "function";
|
|
2059
|
+
}
|
|
2060
|
+
//#endregion
|
|
2061
|
+
//#region node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
|
|
2062
|
+
function ta(e) {
|
|
2063
|
+
return typeof e == "string" || Array.isArray(e);
|
|
2064
|
+
}
|
|
2065
|
+
//#endregion
|
|
2066
|
+
//#region node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
|
|
2067
|
+
var na = [
|
|
2068
|
+
"animate",
|
|
2069
|
+
"whileInView",
|
|
2070
|
+
"whileFocus",
|
|
2071
|
+
"whileHover",
|
|
2072
|
+
"whileTap",
|
|
2073
|
+
"whileDrag",
|
|
2074
|
+
"exit"
|
|
2075
|
+
], ra = ["initial", ...na];
|
|
2076
|
+
//#endregion
|
|
2077
|
+
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
|
|
2078
|
+
function ia(e) {
|
|
2079
|
+
return ea(e.animate) || ra.some((t) => ta(e[t]));
|
|
2080
|
+
}
|
|
2081
|
+
function aa(e) {
|
|
2082
|
+
return !!(ia(e) || e.variants);
|
|
2083
|
+
}
|
|
2084
|
+
//#endregion
|
|
2085
|
+
//#region node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
|
|
2086
|
+
function oa(e, t, n) {
|
|
2087
|
+
for (let r in t) {
|
|
2088
|
+
let i = t[r], a = n[r];
|
|
2089
|
+
if (K(i)) e.addValue(r, i);
|
|
2090
|
+
else if (K(a)) e.addValue(r, Vr(i, { owner: e }));
|
|
2091
|
+
else if (a !== i) if (e.hasValue(r)) {
|
|
2092
|
+
let t = e.getValue(r);
|
|
2093
|
+
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
|
|
2094
|
+
} else {
|
|
2095
|
+
let t = e.getStaticValue(r);
|
|
2096
|
+
e.addValue(r, Vr(t === void 0 ? i : t, { owner: e }));
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
for (let r in n) t[r] === void 0 && e.removeValue(r);
|
|
2100
|
+
return t;
|
|
2101
|
+
}
|
|
2102
|
+
//#endregion
|
|
2103
|
+
//#region node_modules/motion-dom/dist/es/render/VisualElement.mjs
|
|
2104
|
+
var sa = [
|
|
2105
|
+
"AnimationStart",
|
|
2106
|
+
"AnimationComplete",
|
|
2107
|
+
"Update",
|
|
2108
|
+
"BeforeLayoutMeasure",
|
|
2109
|
+
"LayoutMeasure",
|
|
2110
|
+
"LayoutAnimationStart",
|
|
2111
|
+
"LayoutAnimationComplete"
|
|
2112
|
+
], ca = {};
|
|
2113
|
+
function la(e) {
|
|
2114
|
+
ca = e;
|
|
2115
|
+
}
|
|
2116
|
+
function ua() {
|
|
2117
|
+
return ca;
|
|
2118
|
+
}
|
|
2119
|
+
var da = class {
|
|
2120
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
2121
|
+
return {};
|
|
2122
|
+
}
|
|
2123
|
+
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, blockInitialAnimation: i, visualState: a }, o = {}) {
|
|
2124
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = qn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2125
|
+
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2126
|
+
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2127
|
+
let e = P.now();
|
|
2128
|
+
this.renderScheduledAt < e && (this.renderScheduledAt = e, j.render(this.render, !1, !0));
|
|
2129
|
+
};
|
|
2130
|
+
let { latestValues: s, renderState: c } = a;
|
|
2131
|
+
this.latestValues = s, this.baseTarget = { ...s }, this.initialValues = t.initial ? { ...s } : {}, this.renderState = c, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.options = o, this.blockInitialAnimation = !!i, this.isControllingVariants = ia(t), this.isVariantNode = aa(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2132
|
+
let { willChange: l, ...u } = this.scrapeMotionValuesFromProps(t, {}, this);
|
|
2133
|
+
for (let e in u) {
|
|
2134
|
+
let t = u[e];
|
|
2135
|
+
s[e] !== void 0 && K(t) && t.set(s[e]);
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
mount(e) {
|
|
2139
|
+
this.current = e, $i.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 : (Xi.current || Qi(), this.shouldReduceMotion = Yi.current), process.env.NODE_ENV !== "production" && pe(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.parent?.addChild(this), this.update(this.props, this.presenceContext);
|
|
2140
|
+
}
|
|
2141
|
+
unmount() {
|
|
2142
|
+
this.projection && this.projection.unmount(), M(this.notifyUpdate), M(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
2143
|
+
for (let e in this.events) this.events[e].clear();
|
|
2144
|
+
for (let e in this.features) {
|
|
2145
|
+
let t = this.features[e];
|
|
2146
|
+
t && (t.unmount(), t.isMounted = !1);
|
|
2147
|
+
}
|
|
2148
|
+
this.current = null;
|
|
2149
|
+
}
|
|
2150
|
+
addChild(e) {
|
|
2151
|
+
this.children.add(e), this.enteringChildren ??= /* @__PURE__ */ new Set(), this.enteringChildren.add(e);
|
|
2152
|
+
}
|
|
2153
|
+
removeChild(e) {
|
|
2154
|
+
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
|
|
2155
|
+
}
|
|
2156
|
+
bindToMotionValue(e, t) {
|
|
2157
|
+
this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)();
|
|
2158
|
+
let n = In.has(e);
|
|
2159
|
+
n && this.onBindTransform && this.onBindTransform();
|
|
2160
|
+
let r = t.on("change", (t) => {
|
|
2161
|
+
this.latestValues[e] = t, this.props.onUpdate && j.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
2162
|
+
}), i;
|
|
2163
|
+
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
|
|
2164
|
+
r(), i && i(), t.owner && t.stop();
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
sortNodePosition(e) {
|
|
2168
|
+
return !this.current || !this.sortInstanceNodePosition || this.type !== e.type ? 0 : this.sortInstanceNodePosition(this.current, e.current);
|
|
2169
|
+
}
|
|
2170
|
+
updateFeatures() {
|
|
2171
|
+
let e = "animation";
|
|
2172
|
+
for (e in ca) {
|
|
2173
|
+
let t = ca[e];
|
|
2174
|
+
if (!t) continue;
|
|
2175
|
+
let { isEnabled: n, Feature: r } = t;
|
|
2176
|
+
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
|
|
2177
|
+
let t = this.features[e];
|
|
2178
|
+
t.isMounted ? t.update() : (t.mount(), t.isMounted = !0);
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
triggerBuild() {
|
|
2183
|
+
this.build(this.renderState, this.latestValues, this.props);
|
|
2184
|
+
}
|
|
2185
|
+
measureViewportBox() {
|
|
2186
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : J();
|
|
2187
|
+
}
|
|
2188
|
+
getStaticValue(e) {
|
|
2189
|
+
return this.latestValues[e];
|
|
2190
|
+
}
|
|
2191
|
+
setStaticValue(e, t) {
|
|
2192
|
+
this.latestValues[e] = t;
|
|
2193
|
+
}
|
|
2194
|
+
update(e, t) {
|
|
2195
|
+
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
|
|
2196
|
+
for (let t = 0; t < sa.length; t++) {
|
|
2197
|
+
let n = sa[t];
|
|
2198
|
+
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
|
|
2199
|
+
let r = e["on" + n];
|
|
2200
|
+
r && (this.propEventSubscriptions[n] = this.on(n, r));
|
|
2201
|
+
}
|
|
2202
|
+
this.prevMotionValues = oa(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
2203
|
+
}
|
|
2204
|
+
getProps() {
|
|
2205
|
+
return this.props;
|
|
2206
|
+
}
|
|
2207
|
+
getVariant(e) {
|
|
2208
|
+
return this.props.variants ? this.props.variants[e] : void 0;
|
|
2209
|
+
}
|
|
2210
|
+
getDefaultTransition() {
|
|
2211
|
+
return this.props.transition;
|
|
2212
|
+
}
|
|
2213
|
+
getTransformPagePoint() {
|
|
2214
|
+
return this.props.transformPagePoint;
|
|
2215
|
+
}
|
|
2216
|
+
getClosestVariantNode() {
|
|
2217
|
+
return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
|
|
2218
|
+
}
|
|
2219
|
+
addVariantChild(e) {
|
|
2220
|
+
let t = this.getClosestVariantNode();
|
|
2221
|
+
if (t) return t.variantChildren && t.variantChildren.add(e), () => t.variantChildren.delete(e);
|
|
2222
|
+
}
|
|
2223
|
+
addValue(e, t) {
|
|
2224
|
+
let n = this.values.get(e);
|
|
2225
|
+
t !== n && (n && this.removeValue(e), this.bindToMotionValue(e, t), this.values.set(e, t), this.latestValues[e] = t.get());
|
|
2226
|
+
}
|
|
2227
|
+
removeValue(e) {
|
|
2228
|
+
this.values.delete(e);
|
|
2229
|
+
let t = this.valueSubscriptions.get(e);
|
|
2230
|
+
t && (t(), this.valueSubscriptions.delete(e)), delete this.latestValues[e], this.removeValueFromRenderState(e, this.renderState);
|
|
2231
|
+
}
|
|
2232
|
+
hasValue(e) {
|
|
2233
|
+
return this.values.has(e);
|
|
2234
|
+
}
|
|
2235
|
+
getValue(e, t) {
|
|
2236
|
+
if (this.props.values && this.props.values[e]) return this.props.values[e];
|
|
2237
|
+
let n = this.values.get(e);
|
|
2238
|
+
return n === void 0 && t !== void 0 && (n = Vr(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
|
|
2239
|
+
}
|
|
2240
|
+
readValue(e, t) {
|
|
2241
|
+
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2242
|
+
return n != null && (typeof n == "string" && (re(n) || ae(n)) ? n = parseFloat(n) : !Gi(n) && B.test(t) && (n = vi(e, t)), this.setBaseTarget(e, K(n) ? n.get() : n)), K(n) ? n.get() : n;
|
|
2243
|
+
}
|
|
2244
|
+
setBaseTarget(e, t) {
|
|
2245
|
+
this.baseTarget[e] = t;
|
|
2246
|
+
}
|
|
2247
|
+
getBaseTarget(e) {
|
|
2248
|
+
let { initial: t } = this.props, n;
|
|
2249
|
+
if (typeof t == "string" || typeof t == "object") {
|
|
2250
|
+
let r = Ur(this.props, t, this.presenceContext?.custom);
|
|
2251
|
+
r && (n = r[e]);
|
|
2252
|
+
}
|
|
2253
|
+
if (t && n !== void 0) return n;
|
|
2254
|
+
let r = this.getBaseTargetFromProps(this.props, e);
|
|
2255
|
+
return r !== void 0 && !K(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
|
|
2256
|
+
}
|
|
2257
|
+
on(e, t) {
|
|
2258
|
+
return this.events[e] || (this.events[e] = new ue()), this.events[e].add(t);
|
|
2259
|
+
}
|
|
2260
|
+
notify(e, ...t) {
|
|
2261
|
+
this.events[e] && this.events[e].notify(...t);
|
|
2262
|
+
}
|
|
2263
|
+
scheduleRenderMicrotask() {
|
|
2264
|
+
Ti.render(this.render);
|
|
2265
|
+
}
|
|
2266
|
+
}, Y = class {
|
|
2267
|
+
constructor(e) {
|
|
2268
|
+
this.isMounted = !1, this.node = e;
|
|
2269
|
+
}
|
|
2270
|
+
update() {}
|
|
2271
|
+
}, fa = class extends da {
|
|
2272
|
+
constructor() {
|
|
2273
|
+
super(...arguments), this.KeyframeResolver = xi;
|
|
2274
|
+
}
|
|
2275
|
+
sortInstanceNodePosition(e, t) {
|
|
2276
|
+
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
|
|
2277
|
+
}
|
|
2278
|
+
getBaseTargetFromProps(e, t) {
|
|
2279
|
+
let n = e.style;
|
|
2280
|
+
return n ? n[t] : void 0;
|
|
2281
|
+
}
|
|
2282
|
+
removeValueFromRenderState(e, { vars: t, style: n }) {
|
|
2283
|
+
delete t[e], delete n[e];
|
|
2284
|
+
}
|
|
2285
|
+
handleChildMotionValue() {
|
|
2286
|
+
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
2287
|
+
let { children: e } = this.props;
|
|
2288
|
+
K(e) && (this.childSubscription = e.on("change", (e) => {
|
|
2289
|
+
this.current && (this.current.textContent = `${e}`);
|
|
2290
|
+
}));
|
|
2291
|
+
}
|
|
2292
|
+
};
|
|
2293
|
+
//#endregion
|
|
2294
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
|
|
2295
|
+
function pa({ top: e, left: t, right: n, bottom: r }) {
|
|
2296
|
+
return {
|
|
2297
|
+
x: {
|
|
2298
|
+
min: t,
|
|
2299
|
+
max: n
|
|
2300
|
+
},
|
|
2301
|
+
y: {
|
|
2302
|
+
min: e,
|
|
2303
|
+
max: r
|
|
2304
|
+
}
|
|
2305
|
+
};
|
|
2306
|
+
}
|
|
2307
|
+
function ma({ x: e, y: t }) {
|
|
2308
|
+
return {
|
|
2309
|
+
top: t.min,
|
|
2310
|
+
right: e.max,
|
|
2311
|
+
bottom: t.max,
|
|
2312
|
+
left: e.min
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2315
|
+
function ha(e, t) {
|
|
2316
|
+
if (!t) return e;
|
|
2317
|
+
let n = t({
|
|
2318
|
+
x: e.left,
|
|
2319
|
+
y: e.top
|
|
2320
|
+
}), r = t({
|
|
2321
|
+
x: e.right,
|
|
2322
|
+
y: e.bottom
|
|
2323
|
+
});
|
|
2324
|
+
return {
|
|
2325
|
+
top: n.y,
|
|
2326
|
+
left: n.x,
|
|
2327
|
+
bottom: r.y,
|
|
2328
|
+
right: r.x
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
//#endregion
|
|
2332
|
+
//#region node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
|
|
2333
|
+
function ga(e) {
|
|
2334
|
+
return e === void 0 || e === 1;
|
|
2335
|
+
}
|
|
2336
|
+
function _a({ scale: e, scaleX: t, scaleY: n }) {
|
|
2337
|
+
return !ga(e) || !ga(t) || !ga(n);
|
|
2338
|
+
}
|
|
2339
|
+
function X(e) {
|
|
2340
|
+
return _a(e) || va(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
|
|
2341
|
+
}
|
|
2342
|
+
function va(e) {
|
|
2343
|
+
return ya(e.x) || ya(e.y);
|
|
2344
|
+
}
|
|
2345
|
+
function ya(e) {
|
|
2346
|
+
return e && e !== "0%";
|
|
2347
|
+
}
|
|
2348
|
+
//#endregion
|
|
2349
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
|
|
2350
|
+
function ba(e, t, n) {
|
|
2351
|
+
return n + t * (e - n);
|
|
2352
|
+
}
|
|
2353
|
+
function xa(e, t, n, r, i) {
|
|
2354
|
+
return i !== void 0 && (e = ba(e, i, r)), ba(e, n, r) + t;
|
|
2355
|
+
}
|
|
2356
|
+
function Sa(e, t = 0, n = 1, r, i) {
|
|
2357
|
+
e.min = xa(e.min, t, n, r, i), e.max = xa(e.max, t, n, r, i);
|
|
2358
|
+
}
|
|
2359
|
+
function Ca(e, { x: t, y: n }) {
|
|
2360
|
+
Sa(e.x, t.translate, t.scale, t.originPoint), Sa(e.y, n.translate, n.scale, n.originPoint);
|
|
2361
|
+
}
|
|
2362
|
+
var wa = .999999999999, Ta = 1.0000000000001;
|
|
2363
|
+
function Ea(e, t, n, r = !1) {
|
|
2364
|
+
let i = n.length;
|
|
2365
|
+
if (!i) return;
|
|
2366
|
+
t.x = t.y = 1;
|
|
2367
|
+
let a, o;
|
|
2368
|
+
for (let s = 0; s < i; s++) {
|
|
2369
|
+
a = n[s], o = a.projectionDelta;
|
|
2370
|
+
let { visualElement: i } = a.options;
|
|
2371
|
+
i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && ka(e, {
|
|
2372
|
+
x: -a.scroll.offset.x,
|
|
2373
|
+
y: -a.scroll.offset.y
|
|
2374
|
+
}), o && (t.x *= o.x.scale, t.y *= o.y.scale, Ca(e, o)), r && X(a.latestValues) && ka(e, a.latestValues));
|
|
2375
|
+
}
|
|
2376
|
+
t.x < Ta && t.x > wa && (t.x = 1), t.y < Ta && t.y > wa && (t.y = 1);
|
|
2377
|
+
}
|
|
2378
|
+
function Da(e, t) {
|
|
2379
|
+
e.min += t, e.max += t;
|
|
2380
|
+
}
|
|
2381
|
+
function Oa(e, t, n, r, i = .5) {
|
|
2382
|
+
Sa(e, t, n, V(e.min, e.max, i), r);
|
|
2383
|
+
}
|
|
2384
|
+
function ka(e, t) {
|
|
2385
|
+
Oa(e.x, t.x, t.scaleX, t.scale, t.originX), Oa(e.y, t.y, t.scaleY, t.scale, t.originY);
|
|
2386
|
+
}
|
|
2387
|
+
//#endregion
|
|
2388
|
+
//#region node_modules/motion-dom/dist/es/projection/utils/measure.mjs
|
|
2389
|
+
function Aa(e, t) {
|
|
2390
|
+
return pa(ha(e.getBoundingClientRect(), t));
|
|
2391
|
+
}
|
|
2392
|
+
function ja(e, t, n) {
|
|
2393
|
+
let r = Aa(e, n), { scroll: i } = t;
|
|
2394
|
+
return i && (Da(r.x, i.offset.x), Da(r.y, i.offset.y)), r;
|
|
2395
|
+
}
|
|
2396
|
+
//#endregion
|
|
2397
|
+
//#region node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
|
|
2398
|
+
var Ma = {
|
|
2399
|
+
x: "translateX",
|
|
2400
|
+
y: "translateY",
|
|
2401
|
+
z: "translateZ",
|
|
2402
|
+
transformPerspective: "perspective"
|
|
2403
|
+
}, Na = Fn.length;
|
|
2404
|
+
function Pa(e, t, n) {
|
|
2405
|
+
let r = "", i = !0;
|
|
2406
|
+
for (let a = 0; a < Na; a++) {
|
|
2407
|
+
let o = Fn[a], s = e[o];
|
|
2408
|
+
if (s === void 0) continue;
|
|
2409
|
+
let c = !0;
|
|
2410
|
+
if (c = typeof s == "number" ? s === +!!o.startsWith("scale") : parseFloat(s) === 0, !c || n) {
|
|
2411
|
+
let e = Ci(s, hi[o]);
|
|
2412
|
+
if (!c) {
|
|
2413
|
+
i = !1;
|
|
2414
|
+
let t = Ma[o] || o;
|
|
2415
|
+
r += `${t}(${e}) `;
|
|
2416
|
+
}
|
|
2417
|
+
n && (t[o] = e);
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
return r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
|
|
2421
|
+
}
|
|
2422
|
+
//#endregion
|
|
2423
|
+
//#region node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
|
|
2424
|
+
function Fa(e, t, n) {
|
|
2425
|
+
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
|
|
2426
|
+
for (let e in t) {
|
|
2427
|
+
let n = t[e];
|
|
2428
|
+
if (In.has(e)) {
|
|
2429
|
+
o = !0;
|
|
2430
|
+
continue;
|
|
2431
|
+
} else if (Ge(e)) {
|
|
2432
|
+
i[e] = n;
|
|
2433
|
+
continue;
|
|
2434
|
+
} else {
|
|
2435
|
+
let t = Ci(n, hi[e]);
|
|
2436
|
+
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
if (t.transform || (o || n ? r.transform = Pa(t, e.transform, n) : r.transform &&= "none"), s) {
|
|
2440
|
+
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
|
|
2441
|
+
r.transformOrigin = `${e} ${t} ${n}`;
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
//#endregion
|
|
2445
|
+
//#region node_modules/motion-dom/dist/es/render/html/utils/render.mjs
|
|
2446
|
+
function Ia(e, { style: t, vars: n }, r, i) {
|
|
2447
|
+
let a = e.style, o;
|
|
2448
|
+
for (o in t) a[o] = t[o];
|
|
2449
|
+
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
|
|
2450
|
+
}
|
|
2451
|
+
//#endregion
|
|
2452
|
+
//#region node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
|
|
2453
|
+
function La(e, t) {
|
|
2454
|
+
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
2455
|
+
}
|
|
2456
|
+
var Ra = { correct: (e, t) => {
|
|
2457
|
+
if (!t.target) return e;
|
|
2458
|
+
if (typeof e == "string") if (R.test(e)) e = parseFloat(e);
|
|
2459
|
+
else return e;
|
|
2460
|
+
return `${La(e, t.target.x)}% ${La(e, t.target.y)}%`;
|
|
2461
|
+
} }, za = { correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
2462
|
+
let r = e, i = B.parse(e);
|
|
2463
|
+
if (i.length > 5) return r;
|
|
2464
|
+
let a = B.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
|
|
2465
|
+
i[0 + o] /= s, i[1 + o] /= c;
|
|
2466
|
+
let l = V(s, c, .5);
|
|
2467
|
+
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
|
|
2468
|
+
} }, Ba = {
|
|
2469
|
+
borderRadius: {
|
|
2470
|
+
...Ra,
|
|
2471
|
+
applyTo: [
|
|
2472
|
+
"borderTopLeftRadius",
|
|
2473
|
+
"borderTopRightRadius",
|
|
2474
|
+
"borderBottomLeftRadius",
|
|
2475
|
+
"borderBottomRightRadius"
|
|
2476
|
+
]
|
|
2477
|
+
},
|
|
2478
|
+
borderTopLeftRadius: Ra,
|
|
2479
|
+
borderTopRightRadius: Ra,
|
|
2480
|
+
borderBottomLeftRadius: Ra,
|
|
2481
|
+
borderBottomRightRadius: Ra,
|
|
2482
|
+
boxShadow: za
|
|
2483
|
+
};
|
|
2484
|
+
//#endregion
|
|
2485
|
+
//#region node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
|
|
2486
|
+
function Va(e, { layout: t, layoutId: n }) {
|
|
2487
|
+
return In.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Ba[e] || e === "opacity");
|
|
2488
|
+
}
|
|
2489
|
+
//#endregion
|
|
2490
|
+
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
2491
|
+
function Ha(e, t, n) {
|
|
2492
|
+
let r = e.style, i = t?.style, a = {};
|
|
2493
|
+
if (!r) return a;
|
|
2494
|
+
for (let t in r) (K(r[t]) || i && K(i[t]) || Va(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
|
|
2495
|
+
return a;
|
|
2496
|
+
}
|
|
2497
|
+
//#endregion
|
|
2498
|
+
//#region node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
|
|
2499
|
+
function Ua(e) {
|
|
2500
|
+
return window.getComputedStyle(e);
|
|
2501
|
+
}
|
|
2502
|
+
var Wa = class extends fa {
|
|
2503
|
+
constructor() {
|
|
2504
|
+
super(...arguments), this.type = "html", this.renderInstance = Ia;
|
|
2505
|
+
}
|
|
2506
|
+
readValueFromInstance(e, t) {
|
|
2507
|
+
if (In.has(t)) return this.projection?.isProjecting ? jn(t) : Nn(e, t);
|
|
2508
|
+
{
|
|
2509
|
+
let n = Ua(e), r = (Ge(t) ? n.getPropertyValue(t) : n[t]) || 0;
|
|
2510
|
+
return typeof r == "string" ? r.trim() : r;
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
measureInstanceViewportBox(e, { transformPagePoint: t }) {
|
|
2514
|
+
return Aa(e, t);
|
|
2515
|
+
}
|
|
2516
|
+
build(e, t, n) {
|
|
2517
|
+
Fa(e, t, n.transformTemplate);
|
|
2518
|
+
}
|
|
2519
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
2520
|
+
return Ha(e, t, n);
|
|
2521
|
+
}
|
|
2522
|
+
}, Ga = {
|
|
2523
|
+
offset: "stroke-dashoffset",
|
|
2524
|
+
array: "stroke-dasharray"
|
|
2525
|
+
}, Ka = {
|
|
2526
|
+
offset: "strokeDashoffset",
|
|
2527
|
+
array: "strokeDasharray"
|
|
2528
|
+
};
|
|
2529
|
+
function qa(e, t, n = 1, r = 0, i = !0) {
|
|
2530
|
+
e.pathLength = 1;
|
|
2531
|
+
let a = i ? Ga : Ka;
|
|
2532
|
+
e[a.offset] = R.transform(-r);
|
|
2533
|
+
let o = R.transform(t), s = R.transform(n);
|
|
2534
|
+
e[a.array] = `${o} ${s}`;
|
|
2535
|
+
}
|
|
2536
|
+
//#endregion
|
|
2537
|
+
//#region node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
|
|
2538
|
+
var Ja = [
|
|
2539
|
+
"offsetDistance",
|
|
2540
|
+
"offsetPath",
|
|
2541
|
+
"offsetRotate",
|
|
2542
|
+
"offsetAnchor"
|
|
2543
|
+
];
|
|
2544
|
+
function Ya(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
|
|
2545
|
+
if (Fa(e, s, l), c) {
|
|
2546
|
+
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
2547
|
+
return;
|
|
2548
|
+
}
|
|
2549
|
+
e.attrs = e.style, e.style = {};
|
|
2550
|
+
let { attrs: d, style: f } = e;
|
|
2551
|
+
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);
|
|
2552
|
+
for (let e of Ja) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
|
|
2553
|
+
t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && qa(d, i, a, o, !1);
|
|
2554
|
+
}
|
|
2555
|
+
//#endregion
|
|
2556
|
+
//#region node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
|
|
2557
|
+
var Xa = new Set([
|
|
2558
|
+
"baseFrequency",
|
|
2559
|
+
"diffuseConstant",
|
|
2560
|
+
"kernelMatrix",
|
|
2561
|
+
"kernelUnitLength",
|
|
2562
|
+
"keySplines",
|
|
2563
|
+
"keyTimes",
|
|
2564
|
+
"limitingConeAngle",
|
|
2565
|
+
"markerHeight",
|
|
2566
|
+
"markerWidth",
|
|
2567
|
+
"numOctaves",
|
|
2568
|
+
"targetX",
|
|
2569
|
+
"targetY",
|
|
2570
|
+
"surfaceScale",
|
|
2571
|
+
"specularConstant",
|
|
2572
|
+
"specularExponent",
|
|
2573
|
+
"stdDeviation",
|
|
2574
|
+
"tableValues",
|
|
2575
|
+
"viewBox",
|
|
2576
|
+
"gradientTransform",
|
|
2577
|
+
"pathLength",
|
|
2578
|
+
"startOffset",
|
|
2579
|
+
"textLength",
|
|
2580
|
+
"lengthAdjust"
|
|
2581
|
+
]), Za = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
2582
|
+
//#endregion
|
|
2583
|
+
//#region node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
|
|
2584
|
+
function Qa(e, t, n, r) {
|
|
2585
|
+
Ia(e, t, void 0, r);
|
|
2586
|
+
for (let n in t.attrs) e.setAttribute(Xa.has(n) ? n : Zr(n), t.attrs[n]);
|
|
2587
|
+
}
|
|
2588
|
+
//#endregion
|
|
2589
|
+
//#region node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
|
|
2590
|
+
function $a(e, t, n) {
|
|
2591
|
+
let r = Ha(e, t, n);
|
|
2592
|
+
for (let n in e) if (K(e[n]) || K(t[n])) {
|
|
2593
|
+
let t = Fn.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
|
|
2594
|
+
r[t] = e[n];
|
|
2595
|
+
}
|
|
2596
|
+
return r;
|
|
2597
|
+
}
|
|
2598
|
+
//#endregion
|
|
2599
|
+
//#region node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
|
|
2600
|
+
var eo = class extends fa {
|
|
2601
|
+
constructor() {
|
|
2602
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = J;
|
|
2603
|
+
}
|
|
2604
|
+
getBaseTargetFromProps(e, t) {
|
|
2605
|
+
return e[t];
|
|
2606
|
+
}
|
|
2607
|
+
readValueFromInstance(e, t) {
|
|
2608
|
+
if (In.has(t)) {
|
|
2609
|
+
let e = _i(t);
|
|
2610
|
+
return e && e.default || 0;
|
|
2611
|
+
}
|
|
2612
|
+
return t = Xa.has(t) ? t : Zr(t), e.getAttribute(t);
|
|
2613
|
+
}
|
|
2614
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
2615
|
+
return $a(e, t, n);
|
|
2616
|
+
}
|
|
2617
|
+
build(e, t, n) {
|
|
2618
|
+
Ya(e, t, this.isSVGTag, n.transformTemplate, n.style);
|
|
2619
|
+
}
|
|
2620
|
+
renderInstance(e, t, n, r) {
|
|
2621
|
+
Qa(e, t, n, r);
|
|
2622
|
+
}
|
|
2623
|
+
mount(e) {
|
|
2624
|
+
this.isSVGTag = Za(e.tagName), super.mount(e);
|
|
2625
|
+
}
|
|
2626
|
+
}, to = ra.length;
|
|
2627
|
+
function no(e) {
|
|
2628
|
+
if (!e) return;
|
|
2629
|
+
if (!e.isControllingVariants) {
|
|
2630
|
+
let t = e.parent && no(e.parent) || {};
|
|
2631
|
+
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
|
|
2632
|
+
}
|
|
2633
|
+
let t = {};
|
|
2634
|
+
for (let n = 0; n < to; n++) {
|
|
2635
|
+
let r = ra[n], i = e.props[r];
|
|
2636
|
+
(ta(i) || i === !1) && (t[r] = i);
|
|
2637
|
+
}
|
|
2638
|
+
return t;
|
|
2639
|
+
}
|
|
2640
|
+
//#endregion
|
|
2641
|
+
//#region node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
|
|
2642
|
+
function ro(e, t) {
|
|
2643
|
+
if (!Array.isArray(t)) return !1;
|
|
2644
|
+
let n = t.length;
|
|
2645
|
+
if (n !== e.length) return !1;
|
|
2646
|
+
for (let r = 0; r < n; r++) if (t[r] !== e[r]) return !1;
|
|
2647
|
+
return !0;
|
|
2648
|
+
}
|
|
2649
|
+
//#endregion
|
|
2650
|
+
//#region node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
|
|
2651
|
+
var io = [...na].reverse(), ao = na.length;
|
|
2652
|
+
function oo(e) {
|
|
2653
|
+
return (t) => Promise.all(t.map(({ animation: t, options: n }) => ii(e, t, n)));
|
|
2654
|
+
}
|
|
2655
|
+
function so(e) {
|
|
2656
|
+
let t = oo(e), n = uo(), r = !0, i = (t) => (n, r) => {
|
|
2657
|
+
let i = Wr(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
|
|
2658
|
+
if (i) {
|
|
2659
|
+
let { transition: e, transitionEnd: t, ...r } = i;
|
|
2660
|
+
n = {
|
|
2661
|
+
...n,
|
|
2662
|
+
...r,
|
|
2663
|
+
...t
|
|
2664
|
+
};
|
|
2665
|
+
}
|
|
2666
|
+
return n;
|
|
2667
|
+
};
|
|
2668
|
+
function a(n) {
|
|
2669
|
+
t = n(e);
|
|
2670
|
+
}
|
|
2671
|
+
function o(a) {
|
|
2672
|
+
let { props: o } = e, s = no(e.parent) || {}, c = [], l = /* @__PURE__ */ new Set(), u = {}, d = Infinity;
|
|
2673
|
+
for (let t = 0; t < ao; t++) {
|
|
2674
|
+
let f = io[t], p = n[f], m = o[f] === void 0 ? s[f] : o[f], h = ta(m), g = f === a ? p.isActive : null;
|
|
2675
|
+
g === !1 && (d = t);
|
|
2676
|
+
let _ = m === s[f] && m !== o[f] && h;
|
|
2677
|
+
if (_ && r && e.manuallyAnimateOnMount && (_ = !1), p.protectedKeys = { ...u }, !p.isActive && g === null || !m && !p.prevProp || ea(m) || typeof m == "boolean") continue;
|
|
2678
|
+
let v = co(p.prevProp, m), y = v || f === a && p.isActive && !_ && h || t > d && h, b = !1, x = Array.isArray(m) ? m : [m], S = x.reduce(i(f), {});
|
|
2679
|
+
g === !1 && (S = {});
|
|
2680
|
+
let { prevResolvedValues: C = {} } = p, ee = {
|
|
2681
|
+
...C,
|
|
2682
|
+
...S
|
|
2683
|
+
}, w = (t) => {
|
|
2684
|
+
y = !0, l.has(t) && (b = !0, l.delete(t)), p.needsAnimating[t] = !0;
|
|
2685
|
+
let n = e.getValue(t);
|
|
2686
|
+
n && (n.liveStyle = !1);
|
|
2687
|
+
};
|
|
2688
|
+
for (let e in ee) {
|
|
2689
|
+
let t = S[e], n = C[e];
|
|
2690
|
+
if (u.hasOwnProperty(e)) continue;
|
|
2691
|
+
let r = !1;
|
|
2692
|
+
r = Gr(t) && Gr(n) ? !ro(t, n) : t !== n, r ? t == null ? l.add(e) : w(e) : t !== void 0 && l.has(e) ? w(e) : p.protectedKeys[e] = !0;
|
|
2693
|
+
}
|
|
2694
|
+
p.prevProp = m, p.prevResolvedValues = S, p.isActive && (u = {
|
|
2695
|
+
...u,
|
|
2696
|
+
...S
|
|
2697
|
+
}), r && e.blockInitialAnimation && (y = !1);
|
|
2698
|
+
let te = _ && v;
|
|
2699
|
+
y && (!te || b) && c.push(...x.map((t) => {
|
|
2700
|
+
let n = { type: f };
|
|
2701
|
+
if (typeof t == "string" && r && !te && e.manuallyAnimateOnMount && e.parent) {
|
|
2702
|
+
let { parent: r } = e, i = Wr(r, t);
|
|
2703
|
+
if (r.enteringChildren && i) {
|
|
2704
|
+
let { delayChildren: t } = i.transition || {};
|
|
2705
|
+
n.delay = Pr(r.enteringChildren, e, t);
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
return {
|
|
2709
|
+
animation: t,
|
|
2710
|
+
options: n
|
|
2711
|
+
};
|
|
2712
|
+
}));
|
|
2713
|
+
}
|
|
2714
|
+
if (l.size) {
|
|
2715
|
+
let t = {};
|
|
2716
|
+
if (typeof o.initial != "boolean") {
|
|
2717
|
+
let n = Wr(e, Array.isArray(o.initial) ? o.initial[0] : o.initial);
|
|
2718
|
+
n && n.transition && (t.transition = n.transition);
|
|
2719
|
+
}
|
|
2720
|
+
l.forEach((n) => {
|
|
2721
|
+
let r = e.getBaseTarget(n), i = e.getValue(n);
|
|
2722
|
+
i && (i.liveStyle = !0), t[n] = r ?? null;
|
|
2723
|
+
}), c.push({ animation: t });
|
|
2724
|
+
}
|
|
2725
|
+
let f = !!c.length;
|
|
2726
|
+
return r && (o.initial === !1 || o.initial === o.animate) && !e.manuallyAnimateOnMount && (f = !1), r = !1, f ? t(c) : Promise.resolve();
|
|
2727
|
+
}
|
|
2728
|
+
function s(t, r) {
|
|
2729
|
+
if (n[t].isActive === r) return Promise.resolve();
|
|
2730
|
+
e.variantChildren?.forEach((e) => e.animationState?.setActive(t, r)), n[t].isActive = r;
|
|
2731
|
+
let i = o(t);
|
|
2732
|
+
for (let e in n) n[e].protectedKeys = {};
|
|
2733
|
+
return i;
|
|
2734
|
+
}
|
|
2735
|
+
return {
|
|
2736
|
+
animateChanges: o,
|
|
2737
|
+
setActive: s,
|
|
2738
|
+
setAnimateFunction: a,
|
|
2739
|
+
getState: () => n,
|
|
2740
|
+
reset: () => {
|
|
2741
|
+
n = uo();
|
|
2742
|
+
}
|
|
2743
|
+
};
|
|
2744
|
+
}
|
|
2745
|
+
function co(e, t) {
|
|
2746
|
+
return typeof t == "string" ? t !== e : Array.isArray(t) ? !ro(t, e) : !1;
|
|
2747
|
+
}
|
|
2748
|
+
function lo(e = !1) {
|
|
2749
|
+
return {
|
|
2750
|
+
isActive: e,
|
|
2751
|
+
protectedKeys: {},
|
|
2752
|
+
needsAnimating: {},
|
|
2753
|
+
prevResolvedValues: {}
|
|
2754
|
+
};
|
|
2755
|
+
}
|
|
2756
|
+
function uo() {
|
|
2757
|
+
return {
|
|
2758
|
+
animate: lo(!0),
|
|
2759
|
+
whileInView: lo(),
|
|
2760
|
+
whileHover: lo(),
|
|
2761
|
+
whileTap: lo(),
|
|
2762
|
+
whileDrag: lo(),
|
|
2763
|
+
whileFocus: lo(),
|
|
2764
|
+
exit: lo()
|
|
2765
|
+
};
|
|
2766
|
+
}
|
|
2767
|
+
//#endregion
|
|
2768
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
|
|
2769
|
+
var fo = 1e-4, po = 1 - fo, mo = 1 + fo, ho = .01, go = 0 - ho, _o = 0 + ho;
|
|
2770
|
+
function Z(e) {
|
|
2771
|
+
return e.max - e.min;
|
|
2772
|
+
}
|
|
2773
|
+
function vo(e, t, n) {
|
|
2774
|
+
return Math.abs(e - t) <= n;
|
|
2775
|
+
}
|
|
2776
|
+
function yo(e, t, n, r = .5) {
|
|
2777
|
+
e.origin = r, e.originPoint = V(t.min, t.max, e.origin), e.scale = Z(n) / Z(t), e.translate = V(n.min, n.max, e.origin) - e.originPoint, (e.scale >= po && e.scale <= mo || isNaN(e.scale)) && (e.scale = 1), (e.translate >= go && e.translate <= _o || isNaN(e.translate)) && (e.translate = 0);
|
|
2778
|
+
}
|
|
2779
|
+
function bo(e, t, n, r) {
|
|
2780
|
+
yo(e.x, t.x, n.x, r ? r.originX : void 0), yo(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
2781
|
+
}
|
|
2782
|
+
function xo(e, t, n) {
|
|
2783
|
+
e.min = n.min + t.min, e.max = e.min + Z(t);
|
|
2784
|
+
}
|
|
2785
|
+
function So(e, t, n) {
|
|
2786
|
+
xo(e.x, t.x, n.x), xo(e.y, t.y, n.y);
|
|
2787
|
+
}
|
|
2788
|
+
function Co(e, t, n) {
|
|
2789
|
+
e.min = t.min - n.min, e.max = e.min + Z(t);
|
|
2790
|
+
}
|
|
2791
|
+
function wo(e, t, n) {
|
|
2792
|
+
Co(e.x, t.x, n.x), Co(e.y, t.y, n.y);
|
|
2793
|
+
}
|
|
2794
|
+
//#endregion
|
|
2795
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
|
|
2796
|
+
function To(e, t, n, r, i) {
|
|
2797
|
+
return e -= t, e = ba(e, 1 / n, r), i !== void 0 && (e = ba(e, 1 / i, r)), e;
|
|
2798
|
+
}
|
|
2799
|
+
function Eo(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
|
|
2800
|
+
if (L.test(t) && (t = parseFloat(t), t = V(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
|
|
2801
|
+
let s = V(a.min, a.max, r);
|
|
2802
|
+
e === a && (s -= t), e.min = To(e.min, t, n, s, i), e.max = To(e.max, t, n, s, i);
|
|
2803
|
+
}
|
|
2804
|
+
function Do(e, t, [n, r, i], a, o) {
|
|
2805
|
+
Eo(e, t[n], t[r], t[i], t.scale, a, o);
|
|
2806
|
+
}
|
|
2807
|
+
var Oo = [
|
|
2808
|
+
"x",
|
|
2809
|
+
"scaleX",
|
|
2810
|
+
"originX"
|
|
2811
|
+
], ko = [
|
|
2812
|
+
"y",
|
|
2813
|
+
"scaleY",
|
|
2814
|
+
"originY"
|
|
2815
|
+
];
|
|
2816
|
+
function Ao(e, t, n, r) {
|
|
2817
|
+
Do(e.x, t, Oo, n ? n.x : void 0, r ? r.x : void 0), Do(e.y, t, ko, n ? n.y : void 0, r ? r.y : void 0);
|
|
2818
|
+
}
|
|
2819
|
+
//#endregion
|
|
2820
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
|
|
2821
|
+
function jo(e, t) {
|
|
2822
|
+
e.min = t.min, e.max = t.max;
|
|
2823
|
+
}
|
|
2824
|
+
function Q(e, t) {
|
|
2825
|
+
jo(e.x, t.x), jo(e.y, t.y);
|
|
2826
|
+
}
|
|
2827
|
+
function Mo(e, t) {
|
|
2828
|
+
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
2829
|
+
}
|
|
2830
|
+
//#endregion
|
|
2831
|
+
//#region node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
|
|
2832
|
+
function No(e) {
|
|
2833
|
+
return e.translate === 0 && e.scale === 1;
|
|
2834
|
+
}
|
|
2835
|
+
function Po(e) {
|
|
2836
|
+
return No(e.x) && No(e.y);
|
|
2837
|
+
}
|
|
2838
|
+
function Fo(e, t) {
|
|
2839
|
+
return e.min === t.min && e.max === t.max;
|
|
2840
|
+
}
|
|
2841
|
+
function Io(e, t) {
|
|
2842
|
+
return Fo(e.x, t.x) && Fo(e.y, t.y);
|
|
2843
|
+
}
|
|
2844
|
+
function Lo(e, t) {
|
|
2845
|
+
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
|
|
2846
|
+
}
|
|
2847
|
+
function Ro(e, t) {
|
|
2848
|
+
return Lo(e.x, t.x) && Lo(e.y, t.y);
|
|
2849
|
+
}
|
|
2850
|
+
function zo(e) {
|
|
2851
|
+
return Z(e.x) / Z(e.y);
|
|
2852
|
+
}
|
|
2853
|
+
function Bo(e, t) {
|
|
2854
|
+
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
2855
|
+
}
|
|
2856
|
+
//#endregion
|
|
2857
|
+
//#region node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
|
|
2858
|
+
function $(e) {
|
|
2859
|
+
return [e("x"), e("y")];
|
|
2860
|
+
}
|
|
2861
|
+
//#endregion
|
|
2862
|
+
//#region node_modules/motion-dom/dist/es/projection/styles/transform.mjs
|
|
2863
|
+
function Vo(e, t, n) {
|
|
2864
|
+
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
|
|
2865
|
+
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) {
|
|
2866
|
+
let { transformPerspective: e, rotate: t, rotateX: i, rotateY: a, skewX: o, skewY: s } = n;
|
|
2867
|
+
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) `);
|
|
2868
|
+
}
|
|
2869
|
+
let s = e.x.scale * t.x, c = e.y.scale * t.y;
|
|
2870
|
+
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
|
|
2871
|
+
}
|
|
2872
|
+
//#endregion
|
|
2873
|
+
//#region node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
|
|
2874
|
+
var Ho = [
|
|
2875
|
+
"TopLeft",
|
|
2876
|
+
"TopRight",
|
|
2877
|
+
"BottomLeft",
|
|
2878
|
+
"BottomRight"
|
|
2879
|
+
], Uo = Ho.length, Wo = (e) => typeof e == "string" ? parseFloat(e) : e, Go = (e) => typeof e == "number" || R.test(e);
|
|
2880
|
+
function Ko(e, t, n, r, i, a) {
|
|
2881
|
+
i ? (e.opacity = V(0, n.opacity ?? 1, Jo(r)), e.opacityExit = V(t.opacity ?? 1, 0, Yo(r))) : a && (e.opacity = V(t.opacity ?? 1, n.opacity ?? 1, r));
|
|
2882
|
+
for (let i = 0; i < Uo; i++) {
|
|
2883
|
+
let a = `border${Ho[i]}Radius`, o = qo(t, a), s = qo(n, a);
|
|
2884
|
+
o === void 0 && s === void 0 || (o ||= 0, s ||= 0, o === 0 || s === 0 || Go(o) === Go(s) ? (e[a] = Math.max(V(Wo(o), Wo(s), r), 0), (L.test(s) || L.test(o)) && (e[a] += "%")) : e[a] = s);
|
|
2885
|
+
}
|
|
2886
|
+
(t.rotate || n.rotate) && (e.rotate = V(t.rotate || 0, n.rotate || 0, r));
|
|
2887
|
+
}
|
|
2888
|
+
function qo(e, t) {
|
|
2889
|
+
return e[t] === void 0 ? e.borderRadius : e[t];
|
|
2890
|
+
}
|
|
2891
|
+
var Jo = /* @__PURE__ */ Xo(0, .5, Ee), Yo = /* @__PURE__ */ Xo(.5, .95, D);
|
|
2892
|
+
function Xo(e, t, n) {
|
|
2893
|
+
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ le(e, t, r));
|
|
2894
|
+
}
|
|
2895
|
+
//#endregion
|
|
2896
|
+
//#region node_modules/motion-dom/dist/es/utils/delay.mjs
|
|
2897
|
+
function Zo(e, t) {
|
|
2898
|
+
let n = P.now(), r = ({ timestamp: i }) => {
|
|
2899
|
+
let a = i - n;
|
|
2900
|
+
a >= t && (M(r), e(a - t));
|
|
2901
|
+
};
|
|
2902
|
+
return j.setup(r, !0), () => M(r);
|
|
2903
|
+
}
|
|
2904
|
+
//#endregion
|
|
2905
|
+
//#region node_modules/motion-dom/dist/es/events/add-dom-event.mjs
|
|
2906
|
+
function Qo(e, t, n, r = { passive: !0 }) {
|
|
2907
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
|
|
2908
|
+
}
|
|
2909
|
+
//#endregion
|
|
2910
|
+
//#region node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
|
|
2911
|
+
function $o(e) {
|
|
2912
|
+
return K(e) ? e.get() : e;
|
|
2913
|
+
}
|
|
2914
|
+
//#endregion
|
|
2915
|
+
//#region node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
|
|
2916
|
+
function es(e, t, n) {
|
|
2917
|
+
let r = K(e) ? e : Vr(e);
|
|
2918
|
+
return r.start(Fr("", r, t, n)), r.animation;
|
|
2919
|
+
}
|
|
2920
|
+
//#endregion
|
|
2921
|
+
//#region node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
|
|
2922
|
+
var ts = (e, t) => e.depth - t.depth, ns = class {
|
|
2923
|
+
constructor() {
|
|
2924
|
+
this.children = [], this.isDirty = !1;
|
|
2925
|
+
}
|
|
2926
|
+
add(e) {
|
|
2927
|
+
C(this.children, e), this.isDirty = !0;
|
|
2928
|
+
}
|
|
2929
|
+
remove(e) {
|
|
2930
|
+
ee(this.children, e), this.isDirty = !0;
|
|
2931
|
+
}
|
|
2932
|
+
forEach(e) {
|
|
2933
|
+
this.isDirty && this.children.sort(ts), this.isDirty = !1, this.children.forEach(e);
|
|
2934
|
+
}
|
|
2935
|
+
}, rs = class {
|
|
2936
|
+
constructor() {
|
|
2937
|
+
this.members = [];
|
|
2938
|
+
}
|
|
2939
|
+
add(e) {
|
|
2940
|
+
C(this.members, e), e.scheduleRender();
|
|
2941
|
+
}
|
|
2942
|
+
remove(e) {
|
|
2943
|
+
if (ee(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
2944
|
+
let e = this.members[this.members.length - 1];
|
|
2945
|
+
e && this.promote(e);
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
relegate(e) {
|
|
2949
|
+
let t = this.members.findIndex((t) => e === t);
|
|
2950
|
+
if (t === 0) return !1;
|
|
2951
|
+
let n;
|
|
2952
|
+
for (let e = t; e >= 0; e--) {
|
|
2953
|
+
let t = this.members[e];
|
|
2954
|
+
if (t.isPresent !== !1) {
|
|
2955
|
+
n = t;
|
|
2956
|
+
break;
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
return n ? (this.promote(n), !0) : !1;
|
|
2960
|
+
}
|
|
2961
|
+
promote(e, t) {
|
|
2962
|
+
let n = this.lead;
|
|
2963
|
+
if (e !== n && (this.prevLead = n, this.lead = e, e.show(), n)) {
|
|
2964
|
+
n.instance && n.scheduleRender(), e.scheduleRender(), e.resumeFrom = n, t && (e.resumeFrom.preserveOpacity = !0), n.snapshot && (e.snapshot = n.snapshot, e.snapshot.latestValues = n.animationValues || n.latestValues), e.root && e.root.isUpdating && (e.isLayoutDirty = !0);
|
|
2965
|
+
let { crossfade: r } = e.options;
|
|
2966
|
+
r === !1 && n.hide();
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
exitAnimationComplete() {
|
|
2970
|
+
this.members.forEach((e) => {
|
|
2971
|
+
let { options: t, resumingFrom: n } = e;
|
|
2972
|
+
t.onExitComplete && t.onExitComplete(), n && n.options.onExitComplete && n.options.onExitComplete();
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
scheduleRender() {
|
|
2976
|
+
this.members.forEach((e) => {
|
|
2977
|
+
e.instance && e.scheduleRender(!1);
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2980
|
+
removeLeadSnapshot() {
|
|
2981
|
+
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
2982
|
+
}
|
|
2983
|
+
}, is = {
|
|
2984
|
+
hasAnimatedSinceResize: !0,
|
|
2985
|
+
hasEverUpdated: !1
|
|
2986
|
+
}, as = {
|
|
2987
|
+
nodes: 0,
|
|
2988
|
+
calculatedTargetDeltas: 0,
|
|
2989
|
+
calculatedProjections: 0
|
|
2990
|
+
}, os = [
|
|
2991
|
+
"",
|
|
2992
|
+
"X",
|
|
2993
|
+
"Y",
|
|
2994
|
+
"Z"
|
|
2995
|
+
], ss = 1e3, cs = 0;
|
|
2996
|
+
function ls(e, t, n, r) {
|
|
2997
|
+
let { latestValues: i } = t;
|
|
2998
|
+
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
|
|
2999
|
+
}
|
|
3000
|
+
function us(e) {
|
|
3001
|
+
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
|
|
3002
|
+
let { visualElement: t } = e.options;
|
|
3003
|
+
if (!t) return;
|
|
3004
|
+
let n = $r(t);
|
|
3005
|
+
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
3006
|
+
let { layout: t, layoutId: r } = e.options;
|
|
3007
|
+
window.MotionCancelOptimisedAnimation(n, "transform", j, !(t || r));
|
|
3008
|
+
}
|
|
3009
|
+
let { parent: r } = e;
|
|
3010
|
+
r && !r.hasCheckedOptimisedAppear && us(r);
|
|
3011
|
+
}
|
|
3012
|
+
function ds({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
|
|
3013
|
+
return class {
|
|
3014
|
+
constructor(e = {}, n = t?.()) {
|
|
3015
|
+
this.id = cs++, 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 = {
|
|
3016
|
+
x: 1,
|
|
3017
|
+
y: 1
|
|
3018
|
+
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
3019
|
+
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
3020
|
+
}, this.updateProjection = () => {
|
|
3021
|
+
this.projectionUpdateScheduled = !1, A.value && (as.nodes = as.calculatedTargetDeltas = as.calculatedProjections = 0), this.nodes.forEach(ms), this.nodes.forEach(xs), this.nodes.forEach(Ss), this.nodes.forEach(hs), A.addProjectionMetrics && A.addProjectionMetrics(as);
|
|
3022
|
+
}, 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;
|
|
3023
|
+
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
|
|
3024
|
+
this.root === this && (this.nodes = new ns());
|
|
3025
|
+
}
|
|
3026
|
+
addEventListener(e, t) {
|
|
3027
|
+
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new ue()), this.eventHandlers.get(e).add(t);
|
|
3028
|
+
}
|
|
3029
|
+
notifyListeners(e, ...t) {
|
|
3030
|
+
let n = this.eventHandlers.get(e);
|
|
3031
|
+
n && n.notify(...t);
|
|
3032
|
+
}
|
|
3033
|
+
hasListeners(e) {
|
|
3034
|
+
return this.eventHandlers.has(e);
|
|
3035
|
+
}
|
|
3036
|
+
mount(t) {
|
|
3037
|
+
if (this.instance) return;
|
|
3038
|
+
this.isSVG = Hi(t) && !Ui(t), this.instance = t;
|
|
3039
|
+
let { layoutId: n, layout: r, visualElement: i } = this.options;
|
|
3040
|
+
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) {
|
|
3041
|
+
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
|
|
3042
|
+
j.read(() => {
|
|
3043
|
+
r = window.innerWidth;
|
|
3044
|
+
}), e(t, () => {
|
|
3045
|
+
let e = window.innerWidth;
|
|
3046
|
+
e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = Zo(i, 250), is.hasAnimatedSinceResize && (is.hasAnimatedSinceResize = !1, this.nodes.forEach(bs)));
|
|
3047
|
+
});
|
|
3048
|
+
}
|
|
3049
|
+
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
|
|
3050
|
+
if (this.isTreeAnimationBlocked()) {
|
|
3051
|
+
this.target = void 0, this.relativeTarget = void 0;
|
|
3052
|
+
return;
|
|
3053
|
+
}
|
|
3054
|
+
let a = this.options.transition || i.getDefaultTransition() || ks, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !Ro(this.targetLayout, r), l = !t && n;
|
|
3055
|
+
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
|
|
3056
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
3057
|
+
let t = {
|
|
3058
|
+
...Tr(a, "layout"),
|
|
3059
|
+
onPlay: o,
|
|
3060
|
+
onComplete: s
|
|
3061
|
+
};
|
|
3062
|
+
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l);
|
|
3063
|
+
} else t || bs(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
3064
|
+
this.targetLayout = r;
|
|
3065
|
+
});
|
|
3066
|
+
}
|
|
3067
|
+
unmount() {
|
|
3068
|
+
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
3069
|
+
let e = this.getStack();
|
|
3070
|
+
e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), M(this.updateProjection);
|
|
3071
|
+
}
|
|
3072
|
+
blockUpdate() {
|
|
3073
|
+
this.updateManuallyBlocked = !0;
|
|
3074
|
+
}
|
|
3075
|
+
unblockUpdate() {
|
|
3076
|
+
this.updateManuallyBlocked = !1;
|
|
3077
|
+
}
|
|
3078
|
+
isUpdateBlocked() {
|
|
3079
|
+
return this.updateManuallyBlocked || this.updateBlockedByResize;
|
|
3080
|
+
}
|
|
3081
|
+
isTreeAnimationBlocked() {
|
|
3082
|
+
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
3083
|
+
}
|
|
3084
|
+
startUpdate() {
|
|
3085
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Cs), this.animationId++);
|
|
3086
|
+
}
|
|
3087
|
+
getTransformTemplate() {
|
|
3088
|
+
let { visualElement: e } = this.options;
|
|
3089
|
+
return e && e.getProps().transformTemplate;
|
|
3090
|
+
}
|
|
3091
|
+
willUpdate(e = !0) {
|
|
3092
|
+
if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
|
|
3093
|
+
this.options.onExitComplete && this.options.onExitComplete();
|
|
3094
|
+
return;
|
|
3095
|
+
}
|
|
3096
|
+
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && us(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
|
|
3097
|
+
this.isLayoutDirty = !0;
|
|
3098
|
+
for (let e = 0; e < this.path.length; e++) {
|
|
3099
|
+
let t = this.path[e];
|
|
3100
|
+
t.shouldResetTransform = !0, t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1);
|
|
3101
|
+
}
|
|
3102
|
+
let { layoutId: t, layout: n } = this.options;
|
|
3103
|
+
if (t === void 0 && !n) return;
|
|
3104
|
+
let r = this.getTransformTemplate();
|
|
3105
|
+
this.prevTransformTemplateValue = r ? r(this.latestValues, "") : void 0, this.updateSnapshot(), e && this.notifyListeners("willUpdate");
|
|
3106
|
+
}
|
|
3107
|
+
update() {
|
|
3108
|
+
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
3109
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(_s);
|
|
3110
|
+
return;
|
|
3111
|
+
}
|
|
3112
|
+
if (this.animationId <= this.animationCommitId) {
|
|
3113
|
+
this.nodes.forEach(vs);
|
|
3114
|
+
return;
|
|
3115
|
+
}
|
|
3116
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ys), this.nodes.forEach(fs), this.nodes.forEach(ps)) : this.nodes.forEach(vs), this.clearAllSnapshots();
|
|
3117
|
+
let e = P.now();
|
|
3118
|
+
N.delta = w(0, 1e3 / 60, e - N.timestamp), N.timestamp = e, N.isProcessing = !0, Be.update.process(N), Be.preRender.process(N), Be.render.process(N), N.isProcessing = !1;
|
|
3119
|
+
}
|
|
3120
|
+
didUpdate() {
|
|
3121
|
+
this.updateScheduled || (this.updateScheduled = !0, Ti.read(this.scheduleUpdate));
|
|
3122
|
+
}
|
|
3123
|
+
clearAllSnapshots() {
|
|
3124
|
+
this.nodes.forEach(gs), this.sharedNodes.forEach(ws);
|
|
3125
|
+
}
|
|
3126
|
+
scheduleUpdateProjection() {
|
|
3127
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, j.preRender(this.updateProjection, !1, !0));
|
|
3128
|
+
}
|
|
3129
|
+
scheduleCheckAfterUnmount() {
|
|
3130
|
+
j.postRender(() => {
|
|
3131
|
+
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
updateSnapshot() {
|
|
3135
|
+
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Z(this.snapshot.measuredBox.x) && !Z(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
3136
|
+
}
|
|
3137
|
+
updateLayout() {
|
|
3138
|
+
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
|
|
3139
|
+
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
|
|
3140
|
+
let e = this.layout;
|
|
3141
|
+
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected = J(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
3142
|
+
let { visualElement: t } = this.options;
|
|
3143
|
+
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
|
|
3144
|
+
}
|
|
3145
|
+
updateScroll(e = "measure") {
|
|
3146
|
+
let t = !!(this.options.layoutScroll && this.instance);
|
|
3147
|
+
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === e && (t = !1), t && this.instance) {
|
|
3148
|
+
let t = r(this.instance);
|
|
3149
|
+
this.scroll = {
|
|
3150
|
+
animationId: this.root.animationId,
|
|
3151
|
+
phase: e,
|
|
3152
|
+
isRoot: t,
|
|
3153
|
+
offset: n(this.instance),
|
|
3154
|
+
wasRoot: this.scroll ? this.scroll.isRoot : t
|
|
3155
|
+
};
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
resetTransform() {
|
|
3159
|
+
if (!i) return;
|
|
3160
|
+
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !Po(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
|
|
3161
|
+
e && this.instance && (t || X(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
|
|
3162
|
+
}
|
|
3163
|
+
measure(e = !0) {
|
|
3164
|
+
let t = this.measurePageBox(), n = this.removeElementScroll(t);
|
|
3165
|
+
return e && (n = this.removeTransform(n)), Ns(n), {
|
|
3166
|
+
animationId: this.root.animationId,
|
|
3167
|
+
measuredBox: t,
|
|
3168
|
+
layoutBox: n,
|
|
3169
|
+
latestValues: {},
|
|
3170
|
+
source: this.id
|
|
3171
|
+
};
|
|
3172
|
+
}
|
|
3173
|
+
measurePageBox() {
|
|
3174
|
+
let { visualElement: e } = this.options;
|
|
3175
|
+
if (!e) return J();
|
|
3176
|
+
let t = e.measureViewportBox();
|
|
3177
|
+
if (!(this.scroll?.wasRoot || this.path.some(Fs))) {
|
|
3178
|
+
let { scroll: e } = this.root;
|
|
3179
|
+
e && (Da(t.x, e.offset.x), Da(t.y, e.offset.y));
|
|
3180
|
+
}
|
|
3181
|
+
return t;
|
|
3182
|
+
}
|
|
3183
|
+
removeElementScroll(e) {
|
|
3184
|
+
let t = J();
|
|
3185
|
+
if (Q(t, e), this.scroll?.wasRoot) return t;
|
|
3186
|
+
for (let n = 0; n < this.path.length; n++) {
|
|
3187
|
+
let r = this.path[n], { scroll: i, options: a } = r;
|
|
3188
|
+
r !== this.root && i && a.layoutScroll && (i.wasRoot && Q(t, e), Da(t.x, i.offset.x), Da(t.y, i.offset.y));
|
|
3189
|
+
}
|
|
3190
|
+
return t;
|
|
3191
|
+
}
|
|
3192
|
+
applyTransform(e, t = !1) {
|
|
3193
|
+
let n = J();
|
|
3194
|
+
Q(n, e);
|
|
3195
|
+
for (let e = 0; e < this.path.length; e++) {
|
|
3196
|
+
let r = this.path[e];
|
|
3197
|
+
!t && r.options.layoutScroll && r.scroll && r !== r.root && ka(n, {
|
|
3198
|
+
x: -r.scroll.offset.x,
|
|
3199
|
+
y: -r.scroll.offset.y
|
|
3200
|
+
}), X(r.latestValues) && ka(n, r.latestValues);
|
|
3201
|
+
}
|
|
3202
|
+
return X(this.latestValues) && ka(n, this.latestValues), n;
|
|
3203
|
+
}
|
|
3204
|
+
removeTransform(e) {
|
|
3205
|
+
let t = J();
|
|
3206
|
+
Q(t, e);
|
|
3207
|
+
for (let e = 0; e < this.path.length; e++) {
|
|
3208
|
+
let n = this.path[e];
|
|
3209
|
+
if (!n.instance || !X(n.latestValues)) continue;
|
|
3210
|
+
_a(n.latestValues) && n.updateSnapshot();
|
|
3211
|
+
let r = J();
|
|
3212
|
+
Q(r, n.measurePageBox()), Ao(t, n.latestValues, n.snapshot ? n.snapshot.layoutBox : void 0, r);
|
|
3213
|
+
}
|
|
3214
|
+
return X(this.latestValues) && Ao(t, this.latestValues), t;
|
|
3215
|
+
}
|
|
3216
|
+
setTargetDelta(e) {
|
|
3217
|
+
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
3218
|
+
}
|
|
3219
|
+
setOptions(e) {
|
|
3220
|
+
this.options = {
|
|
3221
|
+
...this.options,
|
|
3222
|
+
...e,
|
|
3223
|
+
crossfade: e.crossfade === void 0 ? !0 : e.crossfade
|
|
3224
|
+
};
|
|
3225
|
+
}
|
|
3226
|
+
clearMeasurements() {
|
|
3227
|
+
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;
|
|
3228
|
+
}
|
|
3229
|
+
forceRelativeParentToResolveTarget() {
|
|
3230
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== N.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
3231
|
+
}
|
|
3232
|
+
resolveTargetDelta(e = !1) {
|
|
3233
|
+
let t = this.getLead();
|
|
3234
|
+
this.isProjectionDirty ||= t.isProjectionDirty, this.isTransformDirty ||= t.isTransformDirty, this.isSharedProjectionDirty ||= t.isSharedProjectionDirty;
|
|
3235
|
+
let n = !!this.resumingFrom || this !== t;
|
|
3236
|
+
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
|
|
3237
|
+
let { layout: r, layoutId: i } = this.options;
|
|
3238
|
+
if (!this.layout || !(r || i)) return;
|
|
3239
|
+
this.resolvedRelativeTargetAt = N.timestamp;
|
|
3240
|
+
let a = this.getClosestProjectingParent();
|
|
3241
|
+
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (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(), So(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Q(this.target, this.layout.layoutBox), Ca(this.target, this.targetDelta)) : Q(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !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), A.value && as.calculatedTargetDeltas++);
|
|
3242
|
+
}
|
|
3243
|
+
getClosestProjectingParent() {
|
|
3244
|
+
if (!(!this.parent || _a(this.parent.latestValues) || va(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
3245
|
+
}
|
|
3246
|
+
isProjecting() {
|
|
3247
|
+
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
3248
|
+
}
|
|
3249
|
+
createRelativeTarget(e, t, n) {
|
|
3250
|
+
this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = J(), this.relativeTargetOrigin = J(), wo(this.relativeTargetOrigin, t, n), Q(this.relativeTarget, this.relativeTargetOrigin);
|
|
3251
|
+
}
|
|
3252
|
+
removeRelativeTarget() {
|
|
3253
|
+
this.relativeParent = this.relativeTarget = void 0;
|
|
3254
|
+
}
|
|
3255
|
+
calcProjection() {
|
|
3256
|
+
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
|
|
3257
|
+
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === N.timestamp && (n = !1), n) return;
|
|
3258
|
+
let { layout: r, layoutId: i } = this.options;
|
|
3259
|
+
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;
|
|
3260
|
+
Q(this.layoutCorrected, this.layout.layoutBox);
|
|
3261
|
+
let a = this.treeScale.x, o = this.treeScale.y;
|
|
3262
|
+
Ea(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());
|
|
3263
|
+
let { target: s } = e;
|
|
3264
|
+
if (!s) {
|
|
3265
|
+
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
3266
|
+
return;
|
|
3267
|
+
}
|
|
3268
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Mo(this.prevProjectionDelta.x, this.projectionDelta.x), Mo(this.prevProjectionDelta.y, this.projectionDelta.y)), bo(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !Bo(this.projectionDelta.x, this.prevProjectionDelta.x) || !Bo(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), A.value && as.calculatedProjections++;
|
|
3269
|
+
}
|
|
3270
|
+
hide() {
|
|
3271
|
+
this.isVisible = !1;
|
|
3272
|
+
}
|
|
3273
|
+
show() {
|
|
3274
|
+
this.isVisible = !0;
|
|
3275
|
+
}
|
|
3276
|
+
scheduleRender(e = !0) {
|
|
3277
|
+
if (this.options.visualElement?.scheduleRender(), e) {
|
|
3278
|
+
let e = this.getStack();
|
|
3279
|
+
e && e.scheduleRender();
|
|
3280
|
+
}
|
|
3281
|
+
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
3282
|
+
}
|
|
3283
|
+
createProjectionDeltas() {
|
|
3284
|
+
this.prevProjectionDelta = qi(), this.projectionDelta = qi(), this.projectionDeltaWithTransform = qi();
|
|
3285
|
+
}
|
|
3286
|
+
setAnimationOrigin(e, t = !1) {
|
|
3287
|
+
let n = this.snapshot, r = n ? n.latestValues : {}, i = { ...this.latestValues }, a = qi();
|
|
3288
|
+
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
|
|
3289
|
+
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(Os));
|
|
3290
|
+
this.animationProgress = 0;
|
|
3291
|
+
let d;
|
|
3292
|
+
this.mixTargetDelta = (t) => {
|
|
3293
|
+
let n = t / 1e3;
|
|
3294
|
+
Ts(a.x, e.x, n), Ts(a.y, e.y, n), this.setTargetDelta(a), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (wo(o, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ds(this.relativeTarget, this.relativeTargetOrigin, o, n), d && Io(this.relativeTarget, d) && (this.isProjectionDirty = !1), d ||= J(), Q(d, this.relativeTarget)), s && (this.animationValues = i, Ko(i, r, this.latestValues, n, u, l)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
|
|
3295
|
+
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3296
|
+
}
|
|
3297
|
+
startAnimation(e) {
|
|
3298
|
+
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (M(this.pendingAnimation), void 0), this.pendingAnimation = j.update(() => {
|
|
3299
|
+
is.hasAnimatedSinceResize = !0, Ue.layout++, this.motionValue ||= Vr(0), this.currentAnimation = es(this.motionValue, [0, 1e3], {
|
|
3300
|
+
...e,
|
|
3301
|
+
velocity: 0,
|
|
3302
|
+
isSync: !0,
|
|
3303
|
+
onUpdate: (t) => {
|
|
3304
|
+
this.mixTargetDelta(t), e.onUpdate && e.onUpdate(t);
|
|
3305
|
+
},
|
|
3306
|
+
onStop: () => {
|
|
3307
|
+
Ue.layout--;
|
|
3308
|
+
},
|
|
3309
|
+
onComplete: () => {
|
|
3310
|
+
Ue.layout--, e.onComplete && e.onComplete(), this.completeAnimation();
|
|
3311
|
+
}
|
|
3312
|
+
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
3313
|
+
});
|
|
3314
|
+
}
|
|
3315
|
+
completeAnimation() {
|
|
3316
|
+
this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
|
|
3317
|
+
let e = this.getStack();
|
|
3318
|
+
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
3319
|
+
}
|
|
3320
|
+
finishAnimation() {
|
|
3321
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(ss), this.currentAnimation.stop()), this.completeAnimation();
|
|
3322
|
+
}
|
|
3323
|
+
applyTransformsToTarget() {
|
|
3324
|
+
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
|
|
3325
|
+
if (!(!t || !n || !r)) {
|
|
3326
|
+
if (this !== e && this.layout && r && Ps(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
|
|
3327
|
+
n = this.target || J();
|
|
3328
|
+
let t = Z(this.layout.layoutBox.x);
|
|
3329
|
+
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
|
|
3330
|
+
let r = Z(this.layout.layoutBox.y);
|
|
3331
|
+
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
|
|
3332
|
+
}
|
|
3333
|
+
Q(t, n), ka(t, i), bo(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
registerSharedNode(e, t) {
|
|
3337
|
+
this.sharedNodes.has(e) || this.sharedNodes.set(e, new rs()), this.sharedNodes.get(e).add(t);
|
|
3338
|
+
let n = t.options.initialPromotionConfig;
|
|
3339
|
+
t.promote({
|
|
3340
|
+
transition: n ? n.transition : void 0,
|
|
3341
|
+
preserveFollowOpacity: n && n.shouldPreserveFollowOpacity ? n.shouldPreserveFollowOpacity(t) : void 0
|
|
3342
|
+
});
|
|
3343
|
+
}
|
|
3344
|
+
isLead() {
|
|
3345
|
+
let e = this.getStack();
|
|
3346
|
+
return e ? e.lead === this : !0;
|
|
3347
|
+
}
|
|
3348
|
+
getLead() {
|
|
3349
|
+
let { layoutId: e } = this.options;
|
|
3350
|
+
return e && this.getStack()?.lead || this;
|
|
3351
|
+
}
|
|
3352
|
+
getPrevLead() {
|
|
3353
|
+
let { layoutId: e } = this.options;
|
|
3354
|
+
return e ? this.getStack()?.prevLead : void 0;
|
|
3355
|
+
}
|
|
3356
|
+
getStack() {
|
|
3357
|
+
let { layoutId: e } = this.options;
|
|
3358
|
+
if (e) return this.root.sharedNodes.get(e);
|
|
3359
|
+
}
|
|
3360
|
+
promote({ needsReset: e, transition: t, preserveFollowOpacity: n } = {}) {
|
|
3361
|
+
let r = this.getStack();
|
|
3362
|
+
r && r.promote(this, n), e && (this.projectionDelta = void 0, this.needsReset = !0), t && this.setOptions({ transition: t });
|
|
3363
|
+
}
|
|
3364
|
+
relegate() {
|
|
3365
|
+
let e = this.getStack();
|
|
3366
|
+
return e ? e.relegate(this) : !1;
|
|
3367
|
+
}
|
|
3368
|
+
resetSkewAndRotation() {
|
|
3369
|
+
let { visualElement: e } = this.options;
|
|
3370
|
+
if (!e) return;
|
|
3371
|
+
let t = !1, { latestValues: n } = e;
|
|
3372
|
+
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
|
|
3373
|
+
let r = {};
|
|
3374
|
+
n.z && ls("z", e, r, this.animationValues);
|
|
3375
|
+
for (let t = 0; t < os.length; t++) ls(`rotate${os[t]}`, e, r, this.animationValues), ls(`skew${os[t]}`, e, r, this.animationValues);
|
|
3376
|
+
e.render();
|
|
3377
|
+
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
|
|
3378
|
+
e.scheduleRender();
|
|
3379
|
+
}
|
|
3380
|
+
applyProjectionStyles(e, t) {
|
|
3381
|
+
if (!this.instance || this.isSVG) return;
|
|
3382
|
+
if (!this.isVisible) {
|
|
3383
|
+
e.visibility = "hidden";
|
|
3384
|
+
return;
|
|
3385
|
+
}
|
|
3386
|
+
let n = this.getTransformTemplate();
|
|
3387
|
+
if (this.needsReset) {
|
|
3388
|
+
this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = $o(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
|
|
3389
|
+
return;
|
|
3390
|
+
}
|
|
3391
|
+
let r = this.getLead();
|
|
3392
|
+
if (!this.projectionDelta || !this.layout || !r.target) {
|
|
3393
|
+
this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = $o(t?.pointerEvents) || ""), this.hasProjected && !X(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
|
|
3394
|
+
return;
|
|
3395
|
+
}
|
|
3396
|
+
e.visibility = "";
|
|
3397
|
+
let i = r.animationValues || r.latestValues;
|
|
3398
|
+
this.applyTransformsToTarget();
|
|
3399
|
+
let a = Vo(this.projectionDeltaWithTransform, this.treeScale, i);
|
|
3400
|
+
n && (a = n(i, a)), e.transform = a;
|
|
3401
|
+
let { x: o, y: s } = this.projectionDelta;
|
|
3402
|
+
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;
|
|
3403
|
+
for (let t in Ba) {
|
|
3404
|
+
if (i[t] === void 0) continue;
|
|
3405
|
+
let { correct: n, applyTo: o, isCSSVariable: s } = Ba[t], c = a === "none" ? i[t] : n(i[t], r);
|
|
3406
|
+
if (o) {
|
|
3407
|
+
let t = o.length;
|
|
3408
|
+
for (let n = 0; n < t; n++) e[o[n]] = c;
|
|
3409
|
+
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
|
|
3410
|
+
}
|
|
3411
|
+
this.options.layoutId && (e.pointerEvents = r === this ? $o(t?.pointerEvents) || "" : "none");
|
|
3412
|
+
}
|
|
3413
|
+
clearSnapshot() {
|
|
3414
|
+
this.resumeFrom = this.snapshot = void 0;
|
|
3415
|
+
}
|
|
3416
|
+
resetTree() {
|
|
3417
|
+
this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(_s), this.root.sharedNodes.clear();
|
|
3418
|
+
}
|
|
3419
|
+
};
|
|
3420
|
+
}
|
|
3421
|
+
function fs(e) {
|
|
3422
|
+
e.updateLayout();
|
|
3423
|
+
}
|
|
3424
|
+
function ps(e) {
|
|
3425
|
+
let t = e.resumeFrom?.snapshot || e.snapshot;
|
|
3426
|
+
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
3427
|
+
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
|
|
3428
|
+
i === "size" ? $((e) => {
|
|
3429
|
+
let r = a ? t.measuredBox[e] : t.layoutBox[e], i = Z(r);
|
|
3430
|
+
r.min = n[e].min, r.max = r.min + i;
|
|
3431
|
+
}) : Ps(i, t.layoutBox, n) && $((r) => {
|
|
3432
|
+
let i = a ? t.measuredBox[r] : t.layoutBox[r], o = Z(n[r]);
|
|
3433
|
+
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
|
|
3434
|
+
});
|
|
3435
|
+
let o = qi();
|
|
3436
|
+
bo(o, n, t.layoutBox);
|
|
3437
|
+
let s = qi();
|
|
3438
|
+
a ? bo(s, e.applyTransform(r, !0), t.measuredBox) : bo(s, n, t.layoutBox);
|
|
3439
|
+
let c = !Po(o), l = !1;
|
|
3440
|
+
if (!e.resumeFrom) {
|
|
3441
|
+
let r = e.getClosestProjectingParent();
|
|
3442
|
+
if (r && !r.resumeFrom) {
|
|
3443
|
+
let { snapshot: i, layout: a } = r;
|
|
3444
|
+
if (i && a) {
|
|
3445
|
+
let o = J();
|
|
3446
|
+
wo(o, t.layoutBox, i.layoutBox);
|
|
3447
|
+
let s = J();
|
|
3448
|
+
wo(s, n, a.layoutBox), Ro(o, s) || (l = !0), r.options.layoutRoot && (e.relativeTarget = s, e.relativeTargetOrigin = o, e.relativeParent = r);
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3452
|
+
e.notifyListeners("didUpdate", {
|
|
3453
|
+
layout: n,
|
|
3454
|
+
snapshot: t,
|
|
3455
|
+
delta: s,
|
|
3456
|
+
layoutDelta: o,
|
|
3457
|
+
hasLayoutChanged: c,
|
|
3458
|
+
hasRelativeLayoutChanged: l
|
|
3459
|
+
});
|
|
3460
|
+
} else if (e.isLead()) {
|
|
3461
|
+
let { onExitComplete: t } = e.options;
|
|
3462
|
+
t && t();
|
|
3463
|
+
}
|
|
3464
|
+
e.options.transition = void 0;
|
|
3465
|
+
}
|
|
3466
|
+
function ms(e) {
|
|
3467
|
+
A.value && as.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);
|
|
3468
|
+
}
|
|
3469
|
+
function hs(e) {
|
|
3470
|
+
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
3471
|
+
}
|
|
3472
|
+
function gs(e) {
|
|
3473
|
+
e.clearSnapshot();
|
|
3474
|
+
}
|
|
3475
|
+
function _s(e) {
|
|
3476
|
+
e.clearMeasurements();
|
|
3477
|
+
}
|
|
3478
|
+
function vs(e) {
|
|
3479
|
+
e.isLayoutDirty = !1;
|
|
3480
|
+
}
|
|
3481
|
+
function ys(e) {
|
|
3482
|
+
let { visualElement: t } = e.options;
|
|
3483
|
+
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
3484
|
+
}
|
|
3485
|
+
function bs(e) {
|
|
3486
|
+
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
3487
|
+
}
|
|
3488
|
+
function xs(e) {
|
|
3489
|
+
e.resolveTargetDelta();
|
|
3490
|
+
}
|
|
3491
|
+
function Ss(e) {
|
|
3492
|
+
e.calcProjection();
|
|
3493
|
+
}
|
|
3494
|
+
function Cs(e) {
|
|
3495
|
+
e.resetSkewAndRotation();
|
|
3496
|
+
}
|
|
3497
|
+
function ws(e) {
|
|
3498
|
+
e.removeLeadSnapshot();
|
|
3499
|
+
}
|
|
3500
|
+
function Ts(e, t, n) {
|
|
3501
|
+
e.translate = V(t.translate, 0, n), e.scale = V(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
3502
|
+
}
|
|
3503
|
+
function Es(e, t, n, r) {
|
|
3504
|
+
e.min = V(t.min, n.min, r), e.max = V(t.max, n.max, r);
|
|
3505
|
+
}
|
|
3506
|
+
function Ds(e, t, n, r) {
|
|
3507
|
+
Es(e.x, t.x, n.x, r), Es(e.y, t.y, n.y, r);
|
|
3508
|
+
}
|
|
3509
|
+
function Os(e) {
|
|
3510
|
+
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
3511
|
+
}
|
|
3512
|
+
var ks = {
|
|
3513
|
+
duration: .45,
|
|
3514
|
+
ease: [
|
|
3515
|
+
.4,
|
|
3516
|
+
0,
|
|
3517
|
+
.1,
|
|
3518
|
+
1
|
|
3519
|
+
]
|
|
3520
|
+
}, As = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), js = As("applewebkit/") && !As("chrome/") ? Math.round : D;
|
|
3521
|
+
function Ms(e) {
|
|
3522
|
+
e.min = js(e.min), e.max = js(e.max);
|
|
3523
|
+
}
|
|
3524
|
+
function Ns(e) {
|
|
3525
|
+
Ms(e.x), Ms(e.y);
|
|
3526
|
+
}
|
|
3527
|
+
function Ps(e, t, n) {
|
|
3528
|
+
return e === "position" || e === "preserve-aspect" && !vo(zo(t), zo(n), .2);
|
|
3529
|
+
}
|
|
3530
|
+
function Fs(e) {
|
|
3531
|
+
return e !== e.root && e.scroll?.wasRoot;
|
|
3532
|
+
}
|
|
3533
|
+
//#endregion
|
|
3534
|
+
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
|
|
3535
|
+
var Is = ds({
|
|
3536
|
+
attachResizeListener: (e, t) => Qo(e, "resize", t),
|
|
3537
|
+
measureScroll: () => ({
|
|
3538
|
+
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
3539
|
+
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
3540
|
+
}),
|
|
3541
|
+
checkIsScrollRoot: () => !0
|
|
3542
|
+
}), Ls = { current: void 0 }, Rs = ds({
|
|
3543
|
+
measureScroll: (e) => ({
|
|
3544
|
+
x: e.scrollLeft,
|
|
3545
|
+
y: e.scrollTop
|
|
3546
|
+
}),
|
|
3547
|
+
defaultParent: () => {
|
|
3548
|
+
if (!Ls.current) {
|
|
3549
|
+
let e = new Is({});
|
|
3550
|
+
e.mount(window), e.setOptions({ layoutScroll: !0 }), Ls.current = e;
|
|
3551
|
+
}
|
|
3552
|
+
return Ls.current;
|
|
3553
|
+
},
|
|
3554
|
+
resetTransform: (e, t) => {
|
|
3555
|
+
e.style.transform = t === void 0 ? "none" : t;
|
|
3556
|
+
},
|
|
3557
|
+
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
|
|
3558
|
+
}), zs = o({
|
|
3559
|
+
transformPagePoint: (e) => e,
|
|
3560
|
+
isStatic: !1,
|
|
3561
|
+
reducedMotion: "never"
|
|
3562
|
+
});
|
|
3563
|
+
//#endregion
|
|
3564
|
+
//#region node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
|
|
3565
|
+
function Bs(e = !0) {
|
|
3566
|
+
let t = u(S);
|
|
3567
|
+
if (t === null) return [!0, null];
|
|
3568
|
+
let { isPresent: n, onExitComplete: r, register: i } = t, a = f();
|
|
3569
|
+
d(() => {
|
|
3570
|
+
if (e) return i(a);
|
|
3571
|
+
}, [e]);
|
|
3572
|
+
let o = l(() => e && r && r(a), [
|
|
3573
|
+
a,
|
|
3574
|
+
r,
|
|
3575
|
+
e
|
|
3576
|
+
]);
|
|
3577
|
+
return !n && r ? [!1, o] : [!0];
|
|
3578
|
+
}
|
|
3579
|
+
//#endregion
|
|
3580
|
+
//#region node_modules/framer-motion/dist/es/context/LazyContext.mjs
|
|
3581
|
+
var Vs = o({ strict: !1 }), Hs = {
|
|
3582
|
+
animation: [
|
|
3583
|
+
"animate",
|
|
3584
|
+
"variants",
|
|
3585
|
+
"whileHover",
|
|
3586
|
+
"whileTap",
|
|
3587
|
+
"exit",
|
|
3588
|
+
"whileInView",
|
|
3589
|
+
"whileFocus",
|
|
3590
|
+
"whileDrag"
|
|
3591
|
+
],
|
|
3592
|
+
exit: ["exit"],
|
|
3593
|
+
drag: ["drag", "dragControls"],
|
|
3594
|
+
focus: ["whileFocus"],
|
|
3595
|
+
hover: [
|
|
3596
|
+
"whileHover",
|
|
3597
|
+
"onHoverStart",
|
|
3598
|
+
"onHoverEnd"
|
|
3599
|
+
],
|
|
3600
|
+
tap: [
|
|
3601
|
+
"whileTap",
|
|
3602
|
+
"onTap",
|
|
3603
|
+
"onTapStart",
|
|
3604
|
+
"onTapCancel"
|
|
3605
|
+
],
|
|
3606
|
+
pan: [
|
|
3607
|
+
"onPan",
|
|
3608
|
+
"onPanStart",
|
|
3609
|
+
"onPanSessionStart",
|
|
3610
|
+
"onPanEnd"
|
|
3611
|
+
],
|
|
3612
|
+
inView: [
|
|
3613
|
+
"whileInView",
|
|
3614
|
+
"onViewportEnter",
|
|
3615
|
+
"onViewportLeave"
|
|
3616
|
+
],
|
|
3617
|
+
layout: ["layout", "layoutId"]
|
|
3618
|
+
}, Us = !1;
|
|
3619
|
+
function Ws() {
|
|
3620
|
+
if (Us) return;
|
|
3621
|
+
let e = {};
|
|
3622
|
+
for (let t in Hs) e[t] = { isEnabled: (e) => Hs[t].some((t) => !!e[t]) };
|
|
3623
|
+
la(e), Us = !0;
|
|
3624
|
+
}
|
|
3625
|
+
function Gs() {
|
|
3626
|
+
return Ws(), ua();
|
|
3627
|
+
}
|
|
3628
|
+
//#endregion
|
|
3629
|
+
//#region node_modules/framer-motion/dist/es/motion/features/load-features.mjs
|
|
3630
|
+
function Ks(e) {
|
|
3631
|
+
let t = Gs();
|
|
3632
|
+
for (let n in e) t[n] = {
|
|
3633
|
+
...t[n],
|
|
3634
|
+
...e[n]
|
|
3635
|
+
};
|
|
3636
|
+
la(t);
|
|
3637
|
+
}
|
|
3638
|
+
//#endregion
|
|
3639
|
+
//#region node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
|
|
3640
|
+
var qs = 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.ignoreStrict.viewport".split("."));
|
|
3641
|
+
function Js(e) {
|
|
3642
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || qs.has(e);
|
|
3643
|
+
}
|
|
3644
|
+
//#endregion
|
|
3645
|
+
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
|
|
3646
|
+
var Ys = /* @__PURE__ */ n({ default: () => Xs }), Xs, Zs = t((() => {
|
|
3647
|
+
throw Xs = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
|
|
3648
|
+
})), Qs = (e) => !Js(e);
|
|
3649
|
+
function $s(e) {
|
|
3650
|
+
typeof e == "function" && (Qs = (t) => t.startsWith("on") ? !Js(t) : e(t));
|
|
3651
|
+
}
|
|
3652
|
+
try {
|
|
3653
|
+
$s((Zs(), e(Ys)).default);
|
|
3654
|
+
} catch {}
|
|
3655
|
+
function ec(e, t, n) {
|
|
3656
|
+
let r = {};
|
|
3657
|
+
for (let i in e) i === "values" && typeof e.values == "object" || (Qs(i) || n === !0 && Js(i) || !t && !Js(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
3658
|
+
return r;
|
|
3659
|
+
}
|
|
3660
|
+
//#endregion
|
|
3661
|
+
//#region node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
|
|
3662
|
+
var tc = /* @__PURE__ */ o({});
|
|
3663
|
+
//#endregion
|
|
3664
|
+
//#region node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
|
|
3665
|
+
function nc(e, t) {
|
|
3666
|
+
if (ia(e)) {
|
|
3667
|
+
let { initial: t, animate: n } = e;
|
|
3668
|
+
return {
|
|
3669
|
+
initial: t === !1 || ta(t) ? t : void 0,
|
|
3670
|
+
animate: ta(n) ? n : void 0
|
|
3671
|
+
};
|
|
3672
|
+
}
|
|
3673
|
+
return e.inherit === !1 ? {} : t;
|
|
3674
|
+
}
|
|
3675
|
+
//#endregion
|
|
3676
|
+
//#region node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
|
|
3677
|
+
function rc(e) {
|
|
3678
|
+
let { initial: t, animate: n } = nc(e, u(tc));
|
|
3679
|
+
return h(() => ({
|
|
3680
|
+
initial: t,
|
|
3681
|
+
animate: n
|
|
3682
|
+
}), [ic(t), ic(n)]);
|
|
3683
|
+
}
|
|
3684
|
+
function ic(e) {
|
|
3685
|
+
return Array.isArray(e) ? e.join(" ") : e;
|
|
3686
|
+
}
|
|
3687
|
+
//#endregion
|
|
3688
|
+
//#region node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
|
|
3689
|
+
var ac = () => ({
|
|
3690
|
+
style: {},
|
|
3691
|
+
transform: {},
|
|
3692
|
+
transformOrigin: {},
|
|
3693
|
+
vars: {}
|
|
3694
|
+
});
|
|
3695
|
+
//#endregion
|
|
3696
|
+
//#region node_modules/framer-motion/dist/es/render/html/use-props.mjs
|
|
3697
|
+
function oc(e, t, n) {
|
|
3698
|
+
for (let r in t) !K(t[r]) && !Va(r, n) && (e[r] = t[r]);
|
|
3699
|
+
}
|
|
3700
|
+
function sc({ transformTemplate: e }, t) {
|
|
3701
|
+
return h(() => {
|
|
3702
|
+
let n = ac();
|
|
3703
|
+
return Fa(n, t, e), Object.assign({}, n.vars, n.style);
|
|
3704
|
+
}, [t]);
|
|
3705
|
+
}
|
|
3706
|
+
function cc(e, t) {
|
|
3707
|
+
let n = e.style || {}, r = {};
|
|
3708
|
+
return oc(r, n, e), Object.assign(r, sc(e, t)), r;
|
|
3709
|
+
}
|
|
3710
|
+
function lc(e, t) {
|
|
3711
|
+
let n = {}, r = cc(e, t);
|
|
3712
|
+
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;
|
|
3713
|
+
}
|
|
3714
|
+
//#endregion
|
|
3715
|
+
//#region node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
|
|
3716
|
+
var uc = () => ({
|
|
3717
|
+
...ac(),
|
|
3718
|
+
attrs: {}
|
|
3719
|
+
});
|
|
3720
|
+
//#endregion
|
|
3721
|
+
//#region node_modules/framer-motion/dist/es/render/svg/use-props.mjs
|
|
3722
|
+
function dc(e, t, n, r) {
|
|
3723
|
+
let i = h(() => {
|
|
3724
|
+
let n = uc();
|
|
3725
|
+
return Ya(n, t, Za(r), e.transformTemplate, e.style), {
|
|
3726
|
+
...n.attrs,
|
|
3727
|
+
style: { ...n.style }
|
|
3728
|
+
};
|
|
3729
|
+
}, [t]);
|
|
3730
|
+
if (e.style) {
|
|
3731
|
+
let t = {};
|
|
3732
|
+
oc(t, e.style, e), i.style = {
|
|
3733
|
+
...t,
|
|
3734
|
+
...i.style
|
|
3735
|
+
};
|
|
3736
|
+
}
|
|
3737
|
+
return i;
|
|
3738
|
+
}
|
|
3739
|
+
//#endregion
|
|
3740
|
+
//#region node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
|
|
3741
|
+
var fc = [
|
|
3742
|
+
"animate",
|
|
3743
|
+
"circle",
|
|
3744
|
+
"defs",
|
|
3745
|
+
"desc",
|
|
3746
|
+
"ellipse",
|
|
3747
|
+
"g",
|
|
3748
|
+
"image",
|
|
3749
|
+
"line",
|
|
3750
|
+
"filter",
|
|
3751
|
+
"marker",
|
|
3752
|
+
"mask",
|
|
3753
|
+
"metadata",
|
|
3754
|
+
"path",
|
|
3755
|
+
"pattern",
|
|
3756
|
+
"polygon",
|
|
3757
|
+
"polyline",
|
|
3758
|
+
"rect",
|
|
3759
|
+
"stop",
|
|
3760
|
+
"switch",
|
|
3761
|
+
"symbol",
|
|
3762
|
+
"svg",
|
|
3763
|
+
"text",
|
|
3764
|
+
"tspan",
|
|
3765
|
+
"use",
|
|
3766
|
+
"view"
|
|
3767
|
+
];
|
|
3768
|
+
//#endregion
|
|
3769
|
+
//#region node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
|
|
3770
|
+
function pc(e) {
|
|
3771
|
+
return typeof e != "string" || e.includes("-") ? !1 : !!(fc.indexOf(e) > -1 || /[A-Z]/u.test(e));
|
|
3772
|
+
}
|
|
3773
|
+
//#endregion
|
|
3774
|
+
//#region node_modules/framer-motion/dist/es/render/dom/use-render.mjs
|
|
3775
|
+
function mc(e, t, n, { latestValues: r }, i, o = !1, c) {
|
|
3776
|
+
let l = (c ?? pc(e) ? dc : lc)(t, r, i, e), u = ec(t, typeof e == "string", o), d = e === a ? {} : {
|
|
3777
|
+
...u,
|
|
3778
|
+
...l,
|
|
3779
|
+
ref: n
|
|
3780
|
+
}, { children: f } = t, p = h(() => K(f) ? f.get() : f, [f]);
|
|
3781
|
+
return s(e, {
|
|
3782
|
+
...d,
|
|
3783
|
+
children: p
|
|
3784
|
+
});
|
|
3785
|
+
}
|
|
3786
|
+
//#endregion
|
|
3787
|
+
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
|
|
3788
|
+
function hc({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
|
|
3789
|
+
return {
|
|
3790
|
+
latestValues: gc(n, r, i, e),
|
|
3791
|
+
renderState: t()
|
|
3792
|
+
};
|
|
3793
|
+
}
|
|
3794
|
+
function gc(e, t, n, r) {
|
|
3795
|
+
let i = {}, a = r(e, {});
|
|
3796
|
+
for (let e in a) i[e] = $o(a[e]);
|
|
3797
|
+
let { initial: o, animate: s } = e, c = ia(e), l = aa(e);
|
|
3798
|
+
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
|
|
3799
|
+
let u = n ? n.initial === !1 : !1;
|
|
3800
|
+
u ||= o === !1;
|
|
3801
|
+
let d = u ? s : o;
|
|
3802
|
+
if (d && typeof d != "boolean" && !ea(d)) {
|
|
3803
|
+
let t = Array.isArray(d) ? d : [d];
|
|
3804
|
+
for (let n = 0; n < t.length; n++) {
|
|
3805
|
+
let r = Ur(e, t[n]);
|
|
3806
|
+
if (r) {
|
|
3807
|
+
let { transitionEnd: e, transition: t, ...n } = r;
|
|
3808
|
+
for (let e in n) {
|
|
3809
|
+
let t = n[e];
|
|
3810
|
+
if (Array.isArray(t)) {
|
|
3811
|
+
let e = u ? t.length - 1 : 0;
|
|
3812
|
+
t = t[e];
|
|
3813
|
+
}
|
|
3814
|
+
t !== null && (i[e] = t);
|
|
3815
|
+
}
|
|
3816
|
+
for (let t in e) i[t] = e[t];
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
}
|
|
3820
|
+
return i;
|
|
3821
|
+
}
|
|
3822
|
+
var _c = (e) => (t, n) => {
|
|
3823
|
+
let r = u(tc), i = u(S), a = () => hc(e, t, r, i);
|
|
3824
|
+
return n ? a() : y(a);
|
|
3825
|
+
}, vc = /* @__PURE__ */ _c({
|
|
3826
|
+
scrapeMotionValuesFromProps: Ha,
|
|
3827
|
+
createRenderState: ac
|
|
3828
|
+
}), yc = /* @__PURE__ */ _c({
|
|
3829
|
+
scrapeMotionValuesFromProps: $a,
|
|
3830
|
+
createRenderState: uc
|
|
3831
|
+
}), bc = Symbol.for("motionComponentSymbol");
|
|
3832
|
+
//#endregion
|
|
3833
|
+
//#region node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
|
|
3834
|
+
function xc(e, t, n) {
|
|
3835
|
+
let r = g(n);
|
|
3836
|
+
p(() => {
|
|
3837
|
+
r.current = n;
|
|
3838
|
+
});
|
|
3839
|
+
let i = g(null);
|
|
3840
|
+
return l((n) => {
|
|
3841
|
+
n && e.onMount?.(n), t && (n ? t.mount(n) : t.unmount());
|
|
3842
|
+
let a = r.current;
|
|
3843
|
+
if (typeof a == "function") if (n) {
|
|
3844
|
+
let e = a(n);
|
|
3845
|
+
typeof e == "function" && (i.current = e);
|
|
3846
|
+
} else i.current ? (i.current(), i.current = null) : a(n);
|
|
3847
|
+
else a && (a.current = n);
|
|
3848
|
+
}, [t]);
|
|
3849
|
+
}
|
|
3850
|
+
//#endregion
|
|
3851
|
+
//#region node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
|
|
3852
|
+
var Sc = o({});
|
|
3853
|
+
//#endregion
|
|
3854
|
+
//#region node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
|
|
3855
|
+
function Cc(e) {
|
|
3856
|
+
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
3857
|
+
}
|
|
3858
|
+
//#endregion
|
|
3859
|
+
//#region node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
|
|
3860
|
+
function wc(e, t, n, r, i, a) {
|
|
3861
|
+
let { visualElement: o } = u(tc), s = u(Vs), c = u(S), l = u(zs).reducedMotion, f = g(null);
|
|
3862
|
+
r ||= s.renderer, !f.current && r && (f.current = r(e, {
|
|
3863
|
+
visualState: t,
|
|
3864
|
+
parent: o,
|
|
3865
|
+
props: n,
|
|
3866
|
+
presenceContext: c,
|
|
3867
|
+
blockInitialAnimation: c ? c.initial === !1 : !1,
|
|
3868
|
+
reducedMotionConfig: l,
|
|
3869
|
+
isSVG: a
|
|
3870
|
+
}));
|
|
3871
|
+
let m = f.current, h = u(Sc);
|
|
3872
|
+
m && !m.projection && i && (m.type === "html" || m.type === "svg") && Tc(f.current, n, i, h);
|
|
3873
|
+
let _ = g(!1);
|
|
3874
|
+
p(() => {
|
|
3875
|
+
m && _.current && m.update(n, c);
|
|
3876
|
+
});
|
|
3877
|
+
let v = n[Qr], y = g(!!v && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
|
|
3878
|
+
return x(() => {
|
|
3879
|
+
m && (_.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), y.current && m.animationState && m.animationState.animateChanges());
|
|
3880
|
+
}), d(() => {
|
|
3881
|
+
m && (!y.current && m.animationState && m.animationState.animateChanges(), y.current &&= (queueMicrotask(() => {
|
|
3882
|
+
window.MotionHandoffMarkAsComplete?.(v);
|
|
3883
|
+
}), !1), m.enteringChildren = void 0);
|
|
3884
|
+
}), m;
|
|
3885
|
+
}
|
|
3886
|
+
function Tc(e, t, n, r) {
|
|
3887
|
+
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutCrossfade: u } = t;
|
|
3888
|
+
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Ec(e.parent)), e.projection.setOptions({
|
|
3889
|
+
layoutId: i,
|
|
3890
|
+
layout: a,
|
|
3891
|
+
alwaysMeasureLayout: !!o || s && Cc(s),
|
|
3892
|
+
visualElement: e,
|
|
3893
|
+
animationType: typeof a == "string" ? a : "both",
|
|
3894
|
+
initialPromotionConfig: r,
|
|
3895
|
+
crossfade: u,
|
|
3896
|
+
layoutScroll: c,
|
|
3897
|
+
layoutRoot: l
|
|
3898
|
+
});
|
|
3899
|
+
}
|
|
3900
|
+
function Ec(e) {
|
|
3901
|
+
if (e) return e.options.allowProjection === !1 ? Ec(e.parent) : e.projection;
|
|
3902
|
+
}
|
|
3903
|
+
//#endregion
|
|
3904
|
+
//#region node_modules/framer-motion/dist/es/motion/index.mjs
|
|
3905
|
+
function Dc(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
|
|
3906
|
+
r && Ks(r);
|
|
3907
|
+
let a = n ? n === "svg" : pc(e), o = a ? yc : vc;
|
|
3908
|
+
function s(n, s) {
|
|
3909
|
+
let c, l = {
|
|
3910
|
+
...u(zs),
|
|
3911
|
+
...n,
|
|
3912
|
+
layoutId: Oc(n)
|
|
3913
|
+
}, { isStatic: d } = l, f = rc(n), p = o(n, d);
|
|
3914
|
+
if (!d && b) {
|
|
3915
|
+
kc(l, r);
|
|
3916
|
+
let t = Ac(l);
|
|
3917
|
+
c = t.MeasureLayout, f.visualElement = wc(e, p, l, i, t.ProjectionNode, a);
|
|
3918
|
+
}
|
|
3919
|
+
return (0, _.jsxs)(tc.Provider, {
|
|
3920
|
+
value: f,
|
|
3921
|
+
children: [c && f.visualElement ? (0, _.jsx)(c, {
|
|
3922
|
+
visualElement: f.visualElement,
|
|
3923
|
+
...l
|
|
3924
|
+
}) : null, mc(e, n, xc(p, f.visualElement, s), p, d, t, a)]
|
|
3925
|
+
});
|
|
3926
|
+
}
|
|
3927
|
+
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
3928
|
+
let l = c(s);
|
|
3929
|
+
return l[bc] = e, l;
|
|
3930
|
+
}
|
|
3931
|
+
function Oc({ layoutId: e }) {
|
|
3932
|
+
let t = u(v).id;
|
|
3933
|
+
return t && e !== void 0 ? t + "-" + e : e;
|
|
3934
|
+
}
|
|
3935
|
+
function kc(e, t) {
|
|
3936
|
+
let n = u(Vs).strict;
|
|
3937
|
+
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
3938
|
+
let t = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
3939
|
+
e.ignoreStrict ? ne(!1, t, "lazy-strict-mode") : T(!1, t, "lazy-strict-mode");
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
function Ac(e) {
|
|
3943
|
+
let { drag: t, layout: n } = Gs();
|
|
3944
|
+
if (!t && !n) return {};
|
|
3945
|
+
let r = {
|
|
3946
|
+
...t,
|
|
3947
|
+
...n
|
|
3948
|
+
};
|
|
3949
|
+
return {
|
|
3950
|
+
MeasureLayout: t?.isEnabled(e) || n?.isEnabled(e) ? r.MeasureLayout : void 0,
|
|
3951
|
+
ProjectionNode: r.ProjectionNode
|
|
3952
|
+
};
|
|
3953
|
+
}
|
|
3954
|
+
//#endregion
|
|
3955
|
+
//#region node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
|
|
3956
|
+
function jc(e, t) {
|
|
3957
|
+
if (typeof Proxy > "u") return Dc;
|
|
3958
|
+
let n = /* @__PURE__ */ new Map(), r = (n, r) => Dc(n, r, e, t);
|
|
3959
|
+
return new Proxy((e, t) => (process.env.NODE_ENV !== "production" && pe(!1, "motion() is deprecated. Use motion.create() instead."), r(e, t)), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Dc(a, void 0, e, t)), n.get(a)) });
|
|
3960
|
+
}
|
|
3961
|
+
//#endregion
|
|
3962
|
+
//#region node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
|
|
3963
|
+
var Mc = (e, t) => t.isSVG ?? pc(e) ? new eo(t) : new Wa(t, { allowProjection: e !== a }), Nc = class extends Y {
|
|
3964
|
+
constructor(e) {
|
|
3965
|
+
super(e), e.animationState ||= so(e);
|
|
3966
|
+
}
|
|
3967
|
+
updateAnimationControlsSubscription() {
|
|
3968
|
+
let { animate: e } = this.node.getProps();
|
|
3969
|
+
ea(e) && (this.unmountControls = e.subscribe(this.node));
|
|
3970
|
+
}
|
|
3971
|
+
mount() {
|
|
3972
|
+
this.updateAnimationControlsSubscription();
|
|
3973
|
+
}
|
|
3974
|
+
update() {
|
|
3975
|
+
let { animate: e } = this.node.getProps(), { animate: t } = this.node.prevProps || {};
|
|
3976
|
+
e !== t && this.updateAnimationControlsSubscription();
|
|
3977
|
+
}
|
|
3978
|
+
unmount() {
|
|
3979
|
+
this.node.animationState.reset(), this.unmountControls?.();
|
|
3980
|
+
}
|
|
3981
|
+
}, Pc = 0, Fc = {
|
|
3982
|
+
animation: { Feature: Nc },
|
|
3983
|
+
exit: { Feature: class extends Y {
|
|
3984
|
+
constructor() {
|
|
3985
|
+
super(...arguments), this.id = Pc++;
|
|
3986
|
+
}
|
|
3987
|
+
update() {
|
|
3988
|
+
if (!this.node.presenceContext) return;
|
|
3989
|
+
let { isPresent: e, onExitComplete: t } = this.node.presenceContext, { isPresent: n } = this.node.prevPresenceContext || {};
|
|
3990
|
+
if (!this.node.animationState || e === n) return;
|
|
3991
|
+
let r = this.node.animationState.setActive("exit", !e);
|
|
3992
|
+
t && !e && r.then(() => {
|
|
3993
|
+
t(this.id);
|
|
3994
|
+
});
|
|
3995
|
+
}
|
|
3996
|
+
mount() {
|
|
3997
|
+
let { register: e, onExitComplete: t } = this.node.presenceContext || {};
|
|
3998
|
+
t && t(this.id), e && (this.unmount = e(this.id));
|
|
3999
|
+
}
|
|
4000
|
+
unmount() {}
|
|
4001
|
+
} }
|
|
4002
|
+
};
|
|
4003
|
+
//#endregion
|
|
4004
|
+
//#region node_modules/framer-motion/dist/es/events/event-info.mjs
|
|
4005
|
+
function Ic(e) {
|
|
4006
|
+
return { point: {
|
|
4007
|
+
x: e.pageX,
|
|
4008
|
+
y: e.pageY
|
|
4009
|
+
} };
|
|
4010
|
+
}
|
|
4011
|
+
var Lc = (e) => (t) => Ni(t) && e(t, Ic(t));
|
|
4012
|
+
//#endregion
|
|
4013
|
+
//#region node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
|
|
4014
|
+
function Rc(e, t, n, r) {
|
|
4015
|
+
return Qo(e, t, Lc(n), r);
|
|
4016
|
+
}
|
|
4017
|
+
//#endregion
|
|
4018
|
+
//#region node_modules/framer-motion/dist/es/utils/get-context-window.mjs
|
|
4019
|
+
var zc = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Bc = (e, t) => Math.abs(e - t);
|
|
4020
|
+
function Vc(e, t) {
|
|
4021
|
+
let n = Bc(e.x, t.x), r = Bc(e.y, t.y);
|
|
4022
|
+
return Math.sqrt(n ** 2 + r ** 2);
|
|
4023
|
+
}
|
|
4024
|
+
//#endregion
|
|
4025
|
+
//#region node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
|
|
4026
|
+
var Hc = /* @__PURE__ */ new Set(["auto", "scroll"]), Uc = class {
|
|
4027
|
+
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
|
|
4028
|
+
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
|
|
4029
|
+
this.handleScroll(e.target);
|
|
4030
|
+
}, this.onWindowScroll = () => {
|
|
4031
|
+
this.handleScroll(window);
|
|
4032
|
+
}, this.updatePoint = () => {
|
|
4033
|
+
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
4034
|
+
let e = Kc(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = Vc(e.offset, {
|
|
4035
|
+
x: 0,
|
|
4036
|
+
y: 0
|
|
4037
|
+
}) >= this.distanceThreshold;
|
|
4038
|
+
if (!t && !n) return;
|
|
4039
|
+
let { point: r } = e, { timestamp: i } = N;
|
|
4040
|
+
this.history.push({
|
|
4041
|
+
...r,
|
|
4042
|
+
timestamp: i
|
|
4043
|
+
});
|
|
4044
|
+
let { onStart: a, onMove: o } = this.handlers;
|
|
4045
|
+
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
|
|
4046
|
+
}, this.handlePointerMove = (e, t) => {
|
|
4047
|
+
this.lastMoveEvent = e, this.lastMoveEventInfo = Wc(t, this.transformPagePoint), j.update(this.updatePoint, !0);
|
|
4048
|
+
}, this.handlePointerUp = (e, t) => {
|
|
4049
|
+
this.end();
|
|
4050
|
+
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
|
|
4051
|
+
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
4052
|
+
let a = Kc(e.type === "pointercancel" ? this.lastMoveEventInfo : Wc(t, this.transformPagePoint), this.history);
|
|
4053
|
+
this.startEvent && n && n(e, a), r && r(e, a);
|
|
4054
|
+
}, !Ni(e)) return;
|
|
4055
|
+
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
|
|
4056
|
+
let s = Wc(Ic(e), this.transformPagePoint), { point: c } = s, { timestamp: l } = N;
|
|
4057
|
+
this.history = [{
|
|
4058
|
+
...c,
|
|
4059
|
+
timestamp: l
|
|
4060
|
+
}];
|
|
4061
|
+
let { onSessionStart: u } = t;
|
|
4062
|
+
u && u(e, Kc(s, this.history)), this.removeListeners = ce(Rc(this.contextWindow, "pointermove", this.handlePointerMove), Rc(this.contextWindow, "pointerup", this.handlePointerUp), Rc(this.contextWindow, "pointercancel", this.handlePointerUp)), o && this.startScrollTracking(o);
|
|
4063
|
+
}
|
|
4064
|
+
startScrollTracking(e) {
|
|
4065
|
+
let t = e.parentElement;
|
|
4066
|
+
for (; t;) {
|
|
4067
|
+
let e = getComputedStyle(t);
|
|
4068
|
+
(Hc.has(e.overflowX) || Hc.has(e.overflowY)) && this.scrollPositions.set(t, {
|
|
4069
|
+
x: t.scrollLeft,
|
|
4070
|
+
y: t.scrollTop
|
|
4071
|
+
}), t = t.parentElement;
|
|
4072
|
+
}
|
|
4073
|
+
this.scrollPositions.set(window, {
|
|
4074
|
+
x: window.scrollX,
|
|
4075
|
+
y: window.scrollY
|
|
4076
|
+
}), window.addEventListener("scroll", this.onElementScroll, {
|
|
4077
|
+
capture: !0,
|
|
4078
|
+
passive: !0
|
|
4079
|
+
}), window.addEventListener("scroll", this.onWindowScroll, { passive: !0 }), this.removeScrollListeners = () => {
|
|
4080
|
+
window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
|
|
4081
|
+
};
|
|
4082
|
+
}
|
|
4083
|
+
handleScroll(e) {
|
|
4084
|
+
let t = this.scrollPositions.get(e);
|
|
4085
|
+
if (!t) return;
|
|
4086
|
+
let n = e === window, r = n ? {
|
|
4087
|
+
x: window.scrollX,
|
|
4088
|
+
y: window.scrollY
|
|
4089
|
+
} : {
|
|
4090
|
+
x: e.scrollLeft,
|
|
4091
|
+
y: e.scrollTop
|
|
4092
|
+
}, i = {
|
|
4093
|
+
x: r.x - t.x,
|
|
4094
|
+
y: r.y - t.y
|
|
4095
|
+
};
|
|
4096
|
+
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), j.update(this.updatePoint, !0));
|
|
4097
|
+
}
|
|
4098
|
+
updateHandlers(e) {
|
|
4099
|
+
this.handlers = e;
|
|
4100
|
+
}
|
|
4101
|
+
end() {
|
|
4102
|
+
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), M(this.updatePoint);
|
|
4103
|
+
}
|
|
4104
|
+
};
|
|
4105
|
+
function Wc(e, t) {
|
|
4106
|
+
return t ? { point: t(e.point) } : e;
|
|
4107
|
+
}
|
|
4108
|
+
function Gc(e, t) {
|
|
4109
|
+
return {
|
|
4110
|
+
x: e.x - t.x,
|
|
4111
|
+
y: e.y - t.y
|
|
4112
|
+
};
|
|
4113
|
+
}
|
|
4114
|
+
function Kc({ point: e }, t) {
|
|
4115
|
+
return {
|
|
4116
|
+
point: e,
|
|
4117
|
+
delta: Gc(e, Jc(t)),
|
|
4118
|
+
offset: Gc(e, qc(t)),
|
|
4119
|
+
velocity: Yc(t, .1)
|
|
4120
|
+
};
|
|
4121
|
+
}
|
|
4122
|
+
function qc(e) {
|
|
4123
|
+
return e[0];
|
|
4124
|
+
}
|
|
4125
|
+
function Jc(e) {
|
|
4126
|
+
return e[e.length - 1];
|
|
4127
|
+
}
|
|
4128
|
+
function Yc(e, t) {
|
|
4129
|
+
if (e.length < 2) return {
|
|
4130
|
+
x: 0,
|
|
4131
|
+
y: 0
|
|
4132
|
+
};
|
|
4133
|
+
let n = e.length - 1, r = null, i = Jc(e);
|
|
4134
|
+
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ O(t)));) n--;
|
|
4135
|
+
if (!r) return {
|
|
4136
|
+
x: 0,
|
|
4137
|
+
y: 0
|
|
4138
|
+
};
|
|
4139
|
+
let a = /* @__PURE__ */ k(i.timestamp - r.timestamp);
|
|
4140
|
+
if (a === 0) return {
|
|
4141
|
+
x: 0,
|
|
4142
|
+
y: 0
|
|
4143
|
+
};
|
|
4144
|
+
let o = {
|
|
4145
|
+
x: (i.x - r.x) / a,
|
|
4146
|
+
y: (i.y - r.y) / a
|
|
4147
|
+
};
|
|
4148
|
+
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
|
|
4149
|
+
}
|
|
4150
|
+
//#endregion
|
|
4151
|
+
//#region node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
|
|
4152
|
+
function Xc(e, { min: t, max: n }, r) {
|
|
4153
|
+
return t !== void 0 && e < t ? e = r ? V(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? V(n, e, r.max) : Math.min(e, n)), e;
|
|
4154
|
+
}
|
|
4155
|
+
function Zc(e, t, n) {
|
|
4156
|
+
return {
|
|
4157
|
+
min: t === void 0 ? void 0 : e.min + t,
|
|
4158
|
+
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
|
|
4159
|
+
};
|
|
4160
|
+
}
|
|
4161
|
+
function Qc(e, { top: t, left: n, bottom: r, right: i }) {
|
|
4162
|
+
return {
|
|
4163
|
+
x: Zc(e.x, n, i),
|
|
4164
|
+
y: Zc(e.y, t, r)
|
|
4165
|
+
};
|
|
4166
|
+
}
|
|
4167
|
+
function $c(e, t) {
|
|
4168
|
+
let n = t.min - e.min, r = t.max - e.max;
|
|
4169
|
+
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
|
|
4170
|
+
min: n,
|
|
4171
|
+
max: r
|
|
4172
|
+
};
|
|
4173
|
+
}
|
|
4174
|
+
function el(e, t) {
|
|
4175
|
+
return {
|
|
4176
|
+
x: $c(e.x, t.x),
|
|
4177
|
+
y: $c(e.y, t.y)
|
|
4178
|
+
};
|
|
4179
|
+
}
|
|
4180
|
+
function tl(e, t) {
|
|
4181
|
+
let n = .5, r = Z(e), i = Z(t);
|
|
4182
|
+
return i > r ? n = /* @__PURE__ */ le(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ le(e.min, e.max - i, t.min)), w(0, 1, n);
|
|
4183
|
+
}
|
|
4184
|
+
function nl(e, t) {
|
|
4185
|
+
let n = {};
|
|
4186
|
+
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
4187
|
+
}
|
|
4188
|
+
var rl = .35;
|
|
4189
|
+
function il(e = rl) {
|
|
4190
|
+
return e === !1 ? e = 0 : e === !0 && (e = rl), {
|
|
4191
|
+
x: al(e, "left", "right"),
|
|
4192
|
+
y: al(e, "top", "bottom")
|
|
4193
|
+
};
|
|
4194
|
+
}
|
|
4195
|
+
function al(e, t, n) {
|
|
4196
|
+
return {
|
|
4197
|
+
min: ol(e, t),
|
|
4198
|
+
max: ol(e, n)
|
|
4199
|
+
};
|
|
4200
|
+
}
|
|
4201
|
+
function ol(e, t) {
|
|
4202
|
+
return typeof e == "number" ? e : e[t] || 0;
|
|
4203
|
+
}
|
|
4204
|
+
//#endregion
|
|
4205
|
+
//#region node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
|
|
4206
|
+
var sl = /* @__PURE__ */ new WeakMap(), cl = class {
|
|
4207
|
+
constructor(e) {
|
|
4208
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
|
|
4209
|
+
x: 0,
|
|
4210
|
+
y: 0
|
|
4211
|
+
}, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = J(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
|
|
4212
|
+
}
|
|
4213
|
+
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
|
|
4214
|
+
let { presenceContext: r } = this.visualElement;
|
|
4215
|
+
if (r && r.isPresent === !1) return;
|
|
4216
|
+
let i = (e) => {
|
|
4217
|
+
t ? (this.stopAnimation(), this.snapToCursor(Ic(e).point)) : this.pauseAnimation();
|
|
4218
|
+
}, a = (e, t) => {
|
|
4219
|
+
this.stopAnimation();
|
|
4220
|
+
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
|
|
4221
|
+
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = Oi(n), !this.openDragLock)) return;
|
|
4222
|
+
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) => {
|
|
4223
|
+
let t = this.getAxisMotionValue(e).get() || 0;
|
|
4224
|
+
if (L.test(t)) {
|
|
4225
|
+
let { projection: n } = this.visualElement;
|
|
4226
|
+
if (n && n.layout) {
|
|
4227
|
+
let r = n.layout.layoutBox[e];
|
|
4228
|
+
r && (t = Z(r) * (parseFloat(t) / 100));
|
|
4229
|
+
}
|
|
4230
|
+
}
|
|
4231
|
+
this.originPoint[e] = t;
|
|
4232
|
+
}), i && j.postRender(() => i(e, t)), Xr(this.visualElement, "transform");
|
|
4233
|
+
let { animationState: a } = this.visualElement;
|
|
4234
|
+
a && a.setActive("whileDrag", !0);
|
|
4235
|
+
}, o = (e, t) => {
|
|
4236
|
+
this.latestPointerEvent = e, this.latestPanInfo = t;
|
|
4237
|
+
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
|
|
4238
|
+
if (!n && !this.openDragLock) return;
|
|
4239
|
+
let { offset: o } = t;
|
|
4240
|
+
if (r && this.currentDirection === null) {
|
|
4241
|
+
this.currentDirection = ul(o), this.currentDirection !== null && i && i(this.currentDirection);
|
|
4242
|
+
return;
|
|
4243
|
+
}
|
|
4244
|
+
this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && a(e, t);
|
|
4245
|
+
}, s = (e, t) => {
|
|
4246
|
+
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
4247
|
+
}, c = () => $((e) => this.getAnimationState(e) === "paused" && this.getAxisMotionValue(e).animation?.play()), { dragSnapToOrigin: l } = this.getProps();
|
|
4248
|
+
this.panSession = new Uc(e, {
|
|
4249
|
+
onSessionStart: i,
|
|
4250
|
+
onStart: a,
|
|
4251
|
+
onMove: o,
|
|
4252
|
+
onSessionEnd: s,
|
|
4253
|
+
resumeAnimation: c
|
|
4254
|
+
}, {
|
|
4255
|
+
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
4256
|
+
dragSnapToOrigin: l,
|
|
4257
|
+
distanceThreshold: n,
|
|
4258
|
+
contextWindow: zc(this.visualElement),
|
|
4259
|
+
element: this.visualElement.current
|
|
4260
|
+
});
|
|
4261
|
+
}
|
|
4262
|
+
stop(e, t) {
|
|
4263
|
+
let n = e || this.latestPointerEvent, r = t || this.latestPanInfo, i = this.isDragging;
|
|
4264
|
+
if (this.cancel(), !i || !r || !n) return;
|
|
4265
|
+
let { velocity: a } = r;
|
|
4266
|
+
this.startAnimation(a);
|
|
4267
|
+
let { onDragEnd: o } = this.getProps();
|
|
4268
|
+
o && j.postRender(() => o(n, r));
|
|
4269
|
+
}
|
|
4270
|
+
cancel() {
|
|
4271
|
+
this.isDragging = !1;
|
|
4272
|
+
let { projection: e, animationState: t } = this.visualElement;
|
|
4273
|
+
e && (e.isAnimationBlocked = !1), this.panSession && this.panSession.end(), this.panSession = void 0;
|
|
4274
|
+
let { dragPropagation: n } = this.getProps();
|
|
4275
|
+
!n && this.openDragLock && (this.openDragLock(), this.openDragLock = null), t && t.setActive("whileDrag", !1);
|
|
4276
|
+
}
|
|
4277
|
+
updateAxis(e, t, n) {
|
|
4278
|
+
let { drag: r } = this.getProps();
|
|
4279
|
+
if (!n || !ll(e, r, this.currentDirection)) return;
|
|
4280
|
+
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
|
|
4281
|
+
this.constraints && this.constraints[e] && (a = Xc(a, this.constraints[e], this.elastic[e])), i.set(a);
|
|
4282
|
+
}
|
|
4283
|
+
resolveConstraints() {
|
|
4284
|
+
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;
|
|
4285
|
+
e && Cc(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints = Qc(n.layoutBox, e) : this.constraints = !1, this.elastic = il(t), r !== this.constraints && n && this.constraints && !this.hasMutatedConstraints && $((e) => {
|
|
4286
|
+
this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = nl(n.layoutBox[e], this.constraints[e]));
|
|
4287
|
+
});
|
|
4288
|
+
}
|
|
4289
|
+
resolveRefConstraints() {
|
|
4290
|
+
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
|
|
4291
|
+
if (!e || !Cc(e)) return !1;
|
|
4292
|
+
let n = e.current;
|
|
4293
|
+
T(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
|
|
4294
|
+
let { projection: r } = this.visualElement;
|
|
4295
|
+
if (!r || !r.layout) return !1;
|
|
4296
|
+
let i = ja(n, r.root, this.visualElement.getTransformPagePoint()), a = el(r.layout.layoutBox, i);
|
|
4297
|
+
if (t) {
|
|
4298
|
+
let e = t(ma(a));
|
|
4299
|
+
this.hasMutatedConstraints = !!e, e && (a = pa(e));
|
|
4300
|
+
}
|
|
4301
|
+
return a;
|
|
4302
|
+
}
|
|
4303
|
+
startAnimation(e) {
|
|
4304
|
+
let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = $((o) => {
|
|
4305
|
+
if (!ll(o, t, this.currentDirection)) return;
|
|
4306
|
+
let c = s && s[o] || {};
|
|
4307
|
+
a && (c = {
|
|
4308
|
+
min: 0,
|
|
4309
|
+
max: 0
|
|
4310
|
+
});
|
|
4311
|
+
let l = r ? 200 : 1e6, u = r ? 40 : 1e7, d = {
|
|
4312
|
+
type: "inertia",
|
|
4313
|
+
velocity: n ? e[o] : 0,
|
|
4314
|
+
bounceStiffness: l,
|
|
4315
|
+
bounceDamping: u,
|
|
4316
|
+
timeConstant: 750,
|
|
4317
|
+
restDelta: 1,
|
|
4318
|
+
restSpeed: 10,
|
|
4319
|
+
...i,
|
|
4320
|
+
...c
|
|
4321
|
+
};
|
|
4322
|
+
return this.startAxisValueAnimation(o, d);
|
|
4323
|
+
});
|
|
4324
|
+
return Promise.all(c).then(o);
|
|
4325
|
+
}
|
|
4326
|
+
startAxisValueAnimation(e, t) {
|
|
4327
|
+
let n = this.getAxisMotionValue(e);
|
|
4328
|
+
return Xr(this.visualElement, e), n.start(Fr(e, n, 0, t, this.visualElement, !1));
|
|
4329
|
+
}
|
|
4330
|
+
stopAnimation() {
|
|
4331
|
+
$((e) => this.getAxisMotionValue(e).stop());
|
|
4332
|
+
}
|
|
4333
|
+
pauseAnimation() {
|
|
4334
|
+
$((e) => this.getAxisMotionValue(e).animation?.pause());
|
|
4335
|
+
}
|
|
4336
|
+
getAnimationState(e) {
|
|
4337
|
+
return this.getAxisMotionValue(e).animation?.state;
|
|
4338
|
+
}
|
|
4339
|
+
getAxisMotionValue(e) {
|
|
4340
|
+
let t = `_drag${e.toUpperCase()}`, n = this.visualElement.getProps();
|
|
4341
|
+
return n[t] || this.visualElement.getValue(e, (n.initial ? n.initial[e] : void 0) || 0);
|
|
4342
|
+
}
|
|
4343
|
+
snapToCursor(e) {
|
|
4344
|
+
$((t) => {
|
|
4345
|
+
let { drag: n } = this.getProps();
|
|
4346
|
+
if (!ll(t, n, this.currentDirection)) return;
|
|
4347
|
+
let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
|
|
4348
|
+
if (r && r.layout) {
|
|
4349
|
+
let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
|
|
4350
|
+
i.set(e[t] - V(n, a, .5) + o);
|
|
4351
|
+
}
|
|
4352
|
+
});
|
|
4353
|
+
}
|
|
4354
|
+
scalePositionWithinConstraints() {
|
|
4355
|
+
if (!this.visualElement.current) return;
|
|
4356
|
+
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
|
|
4357
|
+
if (!Cc(t) || !n || !this.constraints) return;
|
|
4358
|
+
this.stopAnimation();
|
|
4359
|
+
let r = {
|
|
4360
|
+
x: 0,
|
|
4361
|
+
y: 0
|
|
4362
|
+
};
|
|
4363
|
+
$((e) => {
|
|
4364
|
+
let t = this.getAxisMotionValue(e);
|
|
4365
|
+
if (t && this.constraints !== !1) {
|
|
4366
|
+
let n = t.get();
|
|
4367
|
+
r[e] = tl({
|
|
4368
|
+
min: n,
|
|
4369
|
+
max: n
|
|
4370
|
+
}, this.constraints[e]);
|
|
4371
|
+
}
|
|
4372
|
+
});
|
|
4373
|
+
let { transformTemplate: i } = this.visualElement.getProps();
|
|
4374
|
+
this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.resolveConstraints(), $((t) => {
|
|
4375
|
+
if (!ll(t, e, null)) return;
|
|
4376
|
+
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
|
|
4377
|
+
n.set(V(i, a, r[t]));
|
|
4378
|
+
});
|
|
4379
|
+
}
|
|
4380
|
+
addListeners() {
|
|
4381
|
+
if (!this.visualElement.current) return;
|
|
4382
|
+
sl.set(this.visualElement, this);
|
|
4383
|
+
let e = this.visualElement.current, t = Rc(e, "pointerdown", (e) => {
|
|
4384
|
+
let { drag: t, dragListener: n = !0 } = this.getProps();
|
|
4385
|
+
t && n && !Fi(e.target) && this.start(e);
|
|
4386
|
+
}), n = () => {
|
|
4387
|
+
let { dragConstraints: e } = this.getProps();
|
|
4388
|
+
Cc(e) && e.current && (this.constraints = this.resolveRefConstraints());
|
|
4389
|
+
}, { projection: r } = this.visualElement, i = r.addEventListener("measure", n);
|
|
4390
|
+
r && !r.layout && (r.root && r.root.updateScroll(), r.updateLayout()), j.read(n);
|
|
4391
|
+
let a = Qo(window, "resize", () => this.scalePositionWithinConstraints()), o = r.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
|
|
4392
|
+
this.isDragging && t && ($((t) => {
|
|
4393
|
+
let n = this.getAxisMotionValue(t);
|
|
4394
|
+
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
|
|
4395
|
+
}), this.visualElement.render());
|
|
4396
|
+
}));
|
|
4397
|
+
return () => {
|
|
4398
|
+
a(), t(), i(), o && o();
|
|
4399
|
+
};
|
|
4400
|
+
}
|
|
4401
|
+
getProps() {
|
|
4402
|
+
let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = rl, dragMomentum: o = !0 } = e;
|
|
4403
|
+
return {
|
|
4404
|
+
...e,
|
|
4405
|
+
drag: t,
|
|
4406
|
+
dragDirectionLock: n,
|
|
4407
|
+
dragPropagation: r,
|
|
4408
|
+
dragConstraints: i,
|
|
4409
|
+
dragElastic: a,
|
|
4410
|
+
dragMomentum: o
|
|
4411
|
+
};
|
|
4412
|
+
}
|
|
4413
|
+
};
|
|
4414
|
+
function ll(e, t, n) {
|
|
4415
|
+
return (t === !0 || t === e) && (n === null || n === e);
|
|
4416
|
+
}
|
|
4417
|
+
function ul(e, t = 10) {
|
|
4418
|
+
let n = null;
|
|
4419
|
+
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
4420
|
+
}
|
|
4421
|
+
//#endregion
|
|
4422
|
+
//#region node_modules/framer-motion/dist/es/gestures/drag/index.mjs
|
|
4423
|
+
var dl = class extends Y {
|
|
4424
|
+
constructor(e) {
|
|
4425
|
+
super(e), this.removeGroupControls = D, this.removeListeners = D, this.controls = new cl(e);
|
|
4426
|
+
}
|
|
4427
|
+
mount() {
|
|
4428
|
+
let { dragControls: e } = this.node.getProps();
|
|
4429
|
+
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || D;
|
|
4430
|
+
}
|
|
4431
|
+
update() {
|
|
4432
|
+
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
|
|
4433
|
+
e !== t && (this.removeGroupControls(), e && (this.removeGroupControls = e.subscribe(this.controls)));
|
|
4434
|
+
}
|
|
4435
|
+
unmount() {
|
|
4436
|
+
this.removeGroupControls(), this.removeListeners();
|
|
4437
|
+
}
|
|
4438
|
+
}, fl = (e) => (t, n) => {
|
|
4439
|
+
e && j.postRender(() => e(t, n));
|
|
4440
|
+
}, pl = class extends Y {
|
|
4441
|
+
constructor() {
|
|
4442
|
+
super(...arguments), this.removePointerDownListener = D;
|
|
4443
|
+
}
|
|
4444
|
+
onPointerDown(e) {
|
|
4445
|
+
this.session = new Uc(e, this.createPanHandlers(), {
|
|
4446
|
+
transformPagePoint: this.node.getTransformPagePoint(),
|
|
4447
|
+
contextWindow: zc(this.node)
|
|
4448
|
+
});
|
|
4449
|
+
}
|
|
4450
|
+
createPanHandlers() {
|
|
4451
|
+
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
|
|
4452
|
+
return {
|
|
4453
|
+
onSessionStart: fl(e),
|
|
4454
|
+
onStart: fl(t),
|
|
4455
|
+
onMove: n,
|
|
4456
|
+
onEnd: (e, t) => {
|
|
4457
|
+
delete this.session, r && j.postRender(() => r(e, t));
|
|
4458
|
+
}
|
|
4459
|
+
};
|
|
4460
|
+
}
|
|
4461
|
+
mount() {
|
|
4462
|
+
this.removePointerDownListener = Rc(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
|
|
4463
|
+
}
|
|
4464
|
+
update() {
|
|
4465
|
+
this.session && this.session.updateHandlers(this.createPanHandlers());
|
|
4466
|
+
}
|
|
4467
|
+
unmount() {
|
|
4468
|
+
this.removePointerDownListener(), this.session && this.session.end();
|
|
4469
|
+
}
|
|
4470
|
+
}, ml = !1, hl = class extends i {
|
|
4471
|
+
componentDidMount() {
|
|
4472
|
+
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
|
|
4473
|
+
i && (t.group && t.group.add(i), n && n.register && r && n.register(i), ml && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
|
|
4474
|
+
this.safeToRemove();
|
|
4475
|
+
}), i.setOptions({
|
|
4476
|
+
...i.options,
|
|
4477
|
+
onExitComplete: () => this.safeToRemove()
|
|
4478
|
+
})), is.hasEverUpdated = !0;
|
|
4479
|
+
}
|
|
4480
|
+
getSnapshotBeforeUpdate(e) {
|
|
4481
|
+
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
|
|
4482
|
+
return a ? (a.isPresent = i, ml = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || j.postRender(() => {
|
|
4483
|
+
let e = a.getStack();
|
|
4484
|
+
(!e || !e.members.length) && this.safeToRemove();
|
|
4485
|
+
})), null) : null;
|
|
4486
|
+
}
|
|
4487
|
+
componentDidUpdate() {
|
|
4488
|
+
let { projection: e } = this.props.visualElement;
|
|
4489
|
+
e && (e.root.didUpdate(), Ti.postRender(() => {
|
|
4490
|
+
!e.currentAnimation && e.isLead() && this.safeToRemove();
|
|
4491
|
+
}));
|
|
4492
|
+
}
|
|
4493
|
+
componentWillUnmount() {
|
|
4494
|
+
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
|
|
4495
|
+
ml = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
|
|
4496
|
+
}
|
|
4497
|
+
safeToRemove() {
|
|
4498
|
+
let { safeToRemove: e } = this.props;
|
|
4499
|
+
e && e();
|
|
4500
|
+
}
|
|
4501
|
+
render() {
|
|
4502
|
+
return null;
|
|
4503
|
+
}
|
|
4504
|
+
};
|
|
4505
|
+
function gl(e) {
|
|
4506
|
+
let [t, n] = Bs(), r = u(v);
|
|
4507
|
+
return (0, _.jsx)(hl, {
|
|
4508
|
+
...e,
|
|
4509
|
+
layoutGroup: r,
|
|
4510
|
+
switchLayoutGroup: u(Sc),
|
|
4511
|
+
isPresent: t,
|
|
4512
|
+
safeToRemove: n
|
|
4513
|
+
});
|
|
4514
|
+
}
|
|
4515
|
+
//#endregion
|
|
4516
|
+
//#region node_modules/framer-motion/dist/es/motion/features/drag.mjs
|
|
4517
|
+
var _l = {
|
|
4518
|
+
pan: { Feature: pl },
|
|
4519
|
+
drag: {
|
|
4520
|
+
Feature: dl,
|
|
4521
|
+
ProjectionNode: Rs,
|
|
4522
|
+
MeasureLayout: gl
|
|
4523
|
+
}
|
|
4524
|
+
};
|
|
4525
|
+
//#endregion
|
|
4526
|
+
//#region node_modules/framer-motion/dist/es/gestures/hover.mjs
|
|
4527
|
+
function vl(e, t, n) {
|
|
4528
|
+
let { props: r } = e;
|
|
4529
|
+
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
4530
|
+
let i = r["onHover" + n];
|
|
4531
|
+
i && j.postRender(() => i(t, Ic(t)));
|
|
4532
|
+
}
|
|
4533
|
+
var yl = class extends Y {
|
|
4534
|
+
mount() {
|
|
4535
|
+
let { current: e } = this.node;
|
|
4536
|
+
e && (this.unmount = ji(e, (e, t) => (vl(this.node, t, "Start"), (e) => vl(this.node, e, "End"))));
|
|
4537
|
+
}
|
|
4538
|
+
unmount() {}
|
|
4539
|
+
}, bl = class extends Y {
|
|
4540
|
+
constructor() {
|
|
4541
|
+
super(...arguments), this.isActive = !1;
|
|
4542
|
+
}
|
|
4543
|
+
onFocus() {
|
|
4544
|
+
let e = !1;
|
|
4545
|
+
try {
|
|
4546
|
+
e = this.node.current.matches(":focus-visible");
|
|
4547
|
+
} catch {
|
|
4548
|
+
e = !0;
|
|
4549
|
+
}
|
|
4550
|
+
!e || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
|
|
4551
|
+
}
|
|
4552
|
+
onBlur() {
|
|
4553
|
+
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
4554
|
+
}
|
|
4555
|
+
mount() {
|
|
4556
|
+
this.unmount = ce(Qo(this.node.current, "focus", () => this.onFocus()), Qo(this.node.current, "blur", () => this.onBlur()));
|
|
4557
|
+
}
|
|
4558
|
+
unmount() {}
|
|
4559
|
+
};
|
|
4560
|
+
//#endregion
|
|
4561
|
+
//#region node_modules/framer-motion/dist/es/gestures/press.mjs
|
|
4562
|
+
function xl(e, t, n) {
|
|
4563
|
+
let { props: r } = e;
|
|
4564
|
+
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
|
|
4565
|
+
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
4566
|
+
let i = r["onTap" + (n === "End" ? "" : n)];
|
|
4567
|
+
i && j.postRender(() => i(t, Ic(t)));
|
|
4568
|
+
}
|
|
4569
|
+
var Sl = class extends Y {
|
|
4570
|
+
mount() {
|
|
4571
|
+
let { current: e } = this.node;
|
|
4572
|
+
e && (this.unmount = Vi(e, (e, t) => (xl(this.node, t, "Start"), (e, { success: t }) => xl(this.node, e, t ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
4573
|
+
}
|
|
4574
|
+
unmount() {}
|
|
4575
|
+
}, Cl = /* @__PURE__ */ new WeakMap(), wl = /* @__PURE__ */ new WeakMap(), Tl = (e) => {
|
|
4576
|
+
let t = Cl.get(e.target);
|
|
4577
|
+
t && t(e);
|
|
4578
|
+
}, El = (e) => {
|
|
4579
|
+
e.forEach(Tl);
|
|
4580
|
+
};
|
|
4581
|
+
function Dl({ root: e, ...t }) {
|
|
4582
|
+
let n = e || document;
|
|
4583
|
+
wl.has(n) || wl.set(n, {});
|
|
4584
|
+
let r = wl.get(n), i = JSON.stringify(t);
|
|
4585
|
+
return r[i] || (r[i] = new IntersectionObserver(El, {
|
|
4586
|
+
root: e,
|
|
4587
|
+
...t
|
|
4588
|
+
})), r[i];
|
|
4589
|
+
}
|
|
4590
|
+
function Ol(e, t, n) {
|
|
4591
|
+
let r = Dl(t);
|
|
4592
|
+
return Cl.set(e, n), r.observe(e), () => {
|
|
4593
|
+
Cl.delete(e), r.unobserve(e);
|
|
4594
|
+
};
|
|
4595
|
+
}
|
|
4596
|
+
//#endregion
|
|
4597
|
+
//#region node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
|
|
4598
|
+
var kl = {
|
|
4599
|
+
some: 0,
|
|
4600
|
+
all: 1
|
|
4601
|
+
}, Al = class extends Y {
|
|
4602
|
+
constructor() {
|
|
4603
|
+
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
4604
|
+
}
|
|
4605
|
+
startObserver() {
|
|
4606
|
+
this.unmount();
|
|
4607
|
+
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
|
|
4608
|
+
root: t ? t.current : void 0,
|
|
4609
|
+
rootMargin: n,
|
|
4610
|
+
threshold: typeof r == "number" ? r : kl[r]
|
|
4611
|
+
};
|
|
4612
|
+
return Ol(this.node.current, a, (e) => {
|
|
4613
|
+
let { isIntersecting: t } = e;
|
|
4614
|
+
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
|
|
4615
|
+
t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
|
|
4616
|
+
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
|
|
4617
|
+
a && a(e);
|
|
4618
|
+
});
|
|
4619
|
+
}
|
|
4620
|
+
mount() {
|
|
4621
|
+
this.startObserver();
|
|
4622
|
+
}
|
|
4623
|
+
update() {
|
|
4624
|
+
if (typeof IntersectionObserver > "u") return;
|
|
4625
|
+
let { props: e, prevProps: t } = this.node;
|
|
4626
|
+
[
|
|
4627
|
+
"amount",
|
|
4628
|
+
"margin",
|
|
4629
|
+
"root"
|
|
4630
|
+
].some(jl(e, t)) && this.startObserver();
|
|
4631
|
+
}
|
|
4632
|
+
unmount() {}
|
|
4633
|
+
};
|
|
4634
|
+
function jl({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
4635
|
+
return (n) => e[n] !== t[n];
|
|
4636
|
+
}
|
|
4637
|
+
//#endregion
|
|
4638
|
+
//#region node_modules/framer-motion/dist/es/motion/features/gestures.mjs
|
|
4639
|
+
var Ml = {
|
|
4640
|
+
inView: { Feature: Al },
|
|
4641
|
+
tap: { Feature: Sl },
|
|
4642
|
+
focus: { Feature: bl },
|
|
4643
|
+
hover: { Feature: yl }
|
|
4644
|
+
}, Nl = { layout: {
|
|
4645
|
+
ProjectionNode: Rs,
|
|
4646
|
+
MeasureLayout: gl
|
|
4647
|
+
} }, Pl = /* @__PURE__ */ jc({
|
|
4648
|
+
...Fc,
|
|
4649
|
+
...Ml,
|
|
4650
|
+
..._l,
|
|
4651
|
+
...Nl
|
|
4652
|
+
}, Mc);
|
|
4653
|
+
//#endregion
|
|
4654
|
+
export { Si as a, y as c, wi as i, v as l, Bs as n, S as o, zs as r, x as s, Pl as t };
|
|
4655
|
+
|
|
4656
|
+
//# sourceMappingURL=proxy-BiRrIImK.js.map
|