lorgg-v2-components 0.0.22
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/.vscode/extensions.json +3 -0
- package/README.md +18 -0
- package/dist/components/assets/CardbackRuneterra.webp.d.ts +3 -0
- package/dist/components/assets/CardbackRuneterra.webp.d.ts.map +1 -0
- package/dist/components/helpers/charts.d.ts +5 -0
- package/dist/components/helpers/charts.d.ts.map +1 -0
- package/dist/components/helpers/components.d.ts +3 -0
- package/dist/components/helpers/components.d.ts.map +1 -0
- package/dist/components/helpers/functions.d.ts +29 -0
- package/dist/components/helpers/functions.d.ts.map +1 -0
- package/dist/components/index.d.ts +135 -0
- package/dist/components/library/.CopyMeComponent/CopyMeComponent.vue.d.ts +4 -0
- package/dist/components/library/.CopyMeComponent/CopyMeComponent.vue.d.ts.map +1 -0
- package/dist/components/library/ArchetypeSidePanel/ArchetypeSidePanel.vue.d.ts +49 -0
- package/dist/components/library/ArchetypeSidePanel/ArchetypeSidePanel.vue.d.ts.map +1 -0
- package/dist/components/library/ArchetypeSidePanel/types.d.ts +32 -0
- package/dist/components/library/ArchetypeSidePanelHighlight/ArchetypeSidePanelHighlight.vue.d.ts +27 -0
- package/dist/components/library/ArchetypeSidePanelHighlight/ArchetypeSidePanelHighlight.vue.d.ts.map +1 -0
- package/dist/components/library/ArchetypeSidePanelHighlight/types.d.ts +17 -0
- package/dist/components/library/ArchetypesRow/ArchetypesRow.vue.d.ts +100 -0
- package/dist/components/library/ArchetypesRow/ArchetypesRow.vue.d.ts.map +1 -0
- package/dist/components/library/ArchetypesRow/types.d.ts +56 -0
- package/dist/components/library/ArchetypesTable/ArchetypesTable.vue.d.ts +16 -0
- package/dist/components/library/ArchetypesTable/ArchetypesTable.vue.d.ts.map +1 -0
- package/dist/components/library/ArchetypesTable/types.d.ts +12 -0
- package/dist/components/library/BuiltDecksTable/BuiltDecksTable.vue.d.ts +16 -0
- package/dist/components/library/BuiltDecksTable/BuiltDecksTable.vue.d.ts.map +1 -0
- package/dist/components/library/BuiltDecksTable/types.d.ts +18 -0
- package/dist/components/library/Buttons/CopyDeckButton/CopyDeckButton.vue.d.ts +16 -0
- package/dist/components/library/Buttons/CopyDeckButton/CopyDeckButton.vue.d.ts.map +1 -0
- package/dist/components/library/Buttons/CopyDeckButton/types.d.ts +10 -0
- package/dist/components/library/Buttons/DeleteDeckButton/DeleteDeckButton.vue.d.ts +16 -0
- package/dist/components/library/Buttons/DeleteDeckButton/DeleteDeckButton.vue.d.ts.map +1 -0
- package/dist/components/library/Buttons/DeleteDeckButton/types.d.ts +10 -0
- package/dist/components/library/Buttons/EditDeckNameButton/EditDeckNameButton.vue.d.ts +27 -0
- package/dist/components/library/Buttons/EditDeckNameButton/EditDeckNameButton.vue.d.ts.map +1 -0
- package/dist/components/library/Buttons/EditDeckNameButton/types.d.ts +16 -0
- package/dist/components/library/Buttons/OpenArchetypePageButton/OpenArchetypePageButton.vue.d.ts +16 -0
- package/dist/components/library/Buttons/OpenArchetypePageButton/OpenArchetypePageButton.vue.d.ts.map +1 -0
- package/dist/components/library/Buttons/OpenArchetypePageButton/types.d.ts +10 -0
- package/dist/components/library/Buttons/OpenInDeckBuilderButton/OpenInDeckBuilderButton.vue.d.ts +16 -0
- package/dist/components/library/Buttons/OpenInDeckBuilderButton/OpenInDeckBuilderButton.vue.d.ts.map +1 -0
- package/dist/components/library/Buttons/OpenInDeckBuilderButton/types.d.ts +10 -0
- package/dist/components/library/Buttons/SimulateMulliganButton/SimulateMulliganButton.vue.d.ts +16 -0
- package/dist/components/library/Buttons/SimulateMulliganButton/SimulateMulliganButton.vue.d.ts.map +1 -0
- package/dist/components/library/Buttons/SimulateMulliganButton/types.d.ts +12 -0
- package/dist/components/library/Buttons/UpdateDeckPrivacyButton/UpdateDeckPrivacyButton.vue.d.ts +29 -0
- package/dist/components/library/Buttons/UpdateDeckPrivacyButton/UpdateDeckPrivacyButton.vue.d.ts.map +1 -0
- package/dist/components/library/Buttons/UpdateDeckPrivacyButton/types.d.ts +16 -0
- package/dist/components/library/Buttons/UploadDeckToLorButton/UploadDeckToLorButton.vue.d.ts +27 -0
- package/dist/components/library/Buttons/UploadDeckToLorButton/UploadDeckToLorButton.vue.d.ts.map +1 -0
- package/dist/components/library/Buttons/UploadDeckToLorButton/types.d.ts +16 -0
- package/dist/components/library/CardCarousel/CardCarousel.vue.d.ts +18 -0
- package/dist/components/library/CardCarousel/CardCarousel.vue.d.ts.map +1 -0
- package/dist/components/library/CardCarousel/types.d.ts +16 -0
- package/dist/components/library/CardItem/CardItem.vue.d.ts +104 -0
- package/dist/components/library/CardItem/CardItem.vue.d.ts.map +1 -0
- package/dist/components/library/CardItem/types.d.ts +59 -0
- package/dist/components/library/CardItem3d/CardItem3d.vue.d.ts +27 -0
- package/dist/components/library/CardItem3d/CardItem3d.vue.d.ts.map +1 -0
- package/dist/components/library/CardItem3d/types.d.ts +16 -0
- package/dist/components/library/CardItemLinkWrapper/CardItemLinkWrapper.vue.d.ts +114 -0
- package/dist/components/library/CardItemLinkWrapper/CardItemLinkWrapper.vue.d.ts.map +1 -0
- package/dist/components/library/CardItemLinkWrapper/types.d.ts +54 -0
- package/dist/components/library/CardLottery/CardLottery.vue.d.ts +2 -0
- package/dist/components/library/CardLottery/CardLottery.vue.d.ts.map +1 -0
- package/dist/components/library/CardLottery/types.d.ts +6 -0
- package/dist/components/library/CardMultiselect/CardMultiselect.vue.d.ts +40 -0
- package/dist/components/library/CardMultiselect/CardMultiselect.vue.d.ts.map +1 -0
- package/dist/components/library/CardMultiselect/types.d.ts +28 -0
- package/dist/components/library/CardOverview/CardOverview.vue.d.ts +28 -0
- package/dist/components/library/CardOverview/CardOverview.vue.d.ts.map +1 -0
- package/dist/components/library/CardOverview/types.d.ts +18 -0
- package/dist/components/library/CardSimilarCards/CardSimilarCards.vue.d.ts +68 -0
- package/dist/components/library/CardSimilarCards/CardSimilarCards.vue.d.ts.map +1 -0
- package/dist/components/library/CardSimilarCards/types.d.ts +42 -0
- package/dist/components/library/CardSliceItem/CardSliceItem.vue.d.ts +106 -0
- package/dist/components/library/CardSliceItem/CardSliceItem.vue.d.ts.map +1 -0
- package/dist/components/library/CardSliceItem/types.d.ts +64 -0
- package/dist/components/library/CardTogglePage/CardTogglePage.vue.d.ts +2 -0
- package/dist/components/library/CardTogglePage/CardTogglePage.vue.d.ts.map +1 -0
- package/dist/components/library/CardsRow/CardsRow.vue.d.ts +157 -0
- package/dist/components/library/CardsRow/CardsRow.vue.d.ts.map +1 -0
- package/dist/components/library/CardsRow/types.d.ts +101 -0
- package/dist/components/library/CardsTable/CardsTable.vue.d.ts +50 -0
- package/dist/components/library/CardsTable/CardsTable.vue.d.ts.map +1 -0
- package/dist/components/library/CardsTable/types.d.ts +29 -0
- package/dist/components/library/Charts/CardQuantityBarChart/CardQuantityBarChart.vue.d.ts +38 -0
- package/dist/components/library/Charts/CardQuantityBarChart/CardQuantityBarChart.vue.d.ts.map +1 -0
- package/dist/components/library/Charts/CardQuantityBarChart/types.d.ts +29 -0
- package/dist/components/library/Charts/InfoDoughnutChart/InfoDoughnutChart.vue.d.ts +27 -0
- package/dist/components/library/Charts/InfoDoughnutChart/InfoDoughnutChart.vue.d.ts.map +1 -0
- package/dist/components/library/Charts/InfoDoughnutChart/types.d.ts +26 -0
- package/dist/components/library/Charts/LeaderboardChart/LeaderboardChart.vue.d.ts +61 -0
- package/dist/components/library/Charts/LeaderboardChart/LeaderboardChart.vue.d.ts.map +1 -0
- package/dist/components/library/Charts/LeaderboardChart/types.d.ts +50 -0
- package/dist/components/library/Charts/LineChart/LineChart.vue.d.ts +64 -0
- package/dist/components/library/Charts/LineChart/LineChart.vue.d.ts.map +1 -0
- package/dist/components/library/Charts/LineChart/types.d.ts +44 -0
- package/dist/components/library/Charts/ManaCurveChart/ManaCurveChart.vue.d.ts +90 -0
- package/dist/components/library/Charts/ManaCurveChart/ManaCurveChart.vue.d.ts.map +1 -0
- package/dist/components/library/Charts/ManaCurveChart/types.d.ts +58 -0
- package/dist/components/library/Charts/RoundCardInfoBarChart/RoundCardInfoBarChart.vue.d.ts +38 -0
- package/dist/components/library/Charts/RoundCardInfoBarChart/RoundCardInfoBarChart.vue.d.ts.map +1 -0
- package/dist/components/library/Charts/RoundCardInfoBarChart/types.d.ts +30 -0
- package/dist/components/library/Charts/WinrateDoughnutChart/WinrateDoughnutChart.vue.d.ts +38 -0
- package/dist/components/library/Charts/WinrateDoughnutChart/WinrateDoughnutChart.vue.d.ts.map +1 -0
- package/dist/components/library/Charts/WinrateDoughnutChart/types.d.ts +22 -0
- package/dist/components/library/Charts/WinsLossesBarChart/WinsLossesBarChart.vue.d.ts +16 -0
- package/dist/components/library/Charts/WinsLossesBarChart/WinsLossesBarChart.vue.d.ts.map +1 -0
- package/dist/components/library/Charts/WinsLossesBarChart/types.d.ts +16 -0
- package/dist/components/library/CheckboxItem/CheckboxItem.vue.d.ts +40 -0
- package/dist/components/library/CheckboxItem/CheckboxItem.vue.d.ts.map +1 -0
- package/dist/components/library/CheckboxItem/types.d.ts +22 -0
- package/dist/components/library/CheckboxItemManaCost/CheckboxItemManaCost.vue.d.ts +29 -0
- package/dist/components/library/CheckboxItemManaCost/CheckboxItemManaCost.vue.d.ts.map +1 -0
- package/dist/components/library/CheckboxItemManaCost/types.d.ts +16 -0
- package/dist/components/library/CircleCardItem/CircleCardItem.vue.d.ts +58 -0
- package/dist/components/library/CircleCardItem/CircleCardItem.vue.d.ts.map +1 -0
- package/dist/components/library/CircleCardItem/types.d.ts +35 -0
- package/dist/components/library/ColorPicker/ColorPicker.vue.d.ts +18 -0
- package/dist/components/library/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
- package/dist/components/library/ColorPicker/types.d.ts +10 -0
- package/dist/components/library/DashboardCardRow/DashboardCardRow.vue.d.ts +49 -0
- package/dist/components/library/DashboardCardRow/DashboardCardRow.vue.d.ts.map +1 -0
- package/dist/components/library/DashboardCardRow/types.d.ts +28 -0
- package/dist/components/library/DashboardCardTable/DashboardCardTable.vue.d.ts +16 -0
- package/dist/components/library/DashboardCardTable/DashboardCardTable.vue.d.ts.map +1 -0
- package/dist/components/library/DashboardCardTable/types.d.ts +12 -0
- package/dist/components/library/DashboardLeaderboardRow/DashboardLeaderboardRow.vue.d.ts +93 -0
- package/dist/components/library/DashboardLeaderboardRow/DashboardLeaderboardRow.vue.d.ts.map +1 -0
- package/dist/components/library/DashboardLeaderboardRow/types.d.ts +52 -0
- package/dist/components/library/DashboardLeaderboardTable/DashboardLeaderboardTable.vue.d.ts +30 -0
- package/dist/components/library/DashboardLeaderboardTable/DashboardLeaderboardTable.vue.d.ts.map +1 -0
- package/dist/components/library/DashboardLeaderboardTable/types.d.ts +19 -0
- package/dist/components/library/DashboardNewCards/DashboardNewCards.vue.d.ts +16 -0
- package/dist/components/library/DashboardNewCards/DashboardNewCards.vue.d.ts.map +1 -0
- package/dist/components/library/DashboardNewCards/types.d.ts +11 -0
- package/dist/components/library/DashboardProfile/DashboardProfile.vue.d.ts +104 -0
- package/dist/components/library/DashboardProfile/DashboardProfile.vue.d.ts.map +1 -0
- package/dist/components/library/DashboardProfile/types.d.ts +59 -0
- package/dist/components/library/DashboardSignUp/DashboardSignUp.vue.d.ts +2 -0
- package/dist/components/library/DashboardSignUp/DashboardSignUp.vue.d.ts.map +1 -0
- package/dist/components/library/Deck/DeckSummary/DeckSummary.vue.d.ts +28 -0
- package/dist/components/library/Deck/DeckSummary/DeckSummary.vue.d.ts.map +1 -0
- package/dist/components/library/Deck/DeckSummary/types.d.ts +18 -0
- package/dist/components/library/Deck/SimulateMulligan/SimulateMulligan.vue.d.ts +16 -0
- package/dist/components/library/Deck/SimulateMulligan/SimulateMulligan.vue.d.ts.map +1 -0
- package/dist/components/library/Deck/SimulateMulligan/types.d.ts +16 -0
- package/dist/components/library/DeckBlock/DeckBlock.vue.d.ts +104 -0
- package/dist/components/library/DeckBlock/DeckBlock.vue.d.ts.map +1 -0
- package/dist/components/library/DeckBlock/types.d.ts +64 -0
- package/dist/components/library/DeckBuilderSidePanel/DeckBuilderSidePanel.vue.d.ts +18 -0
- package/dist/components/library/DeckBuilderSidePanel/DeckBuilderSidePanel.vue.d.ts.map +1 -0
- package/dist/components/library/DeckBuilderSidePanel/types.d.ts +10 -0
- package/dist/components/library/DeckBuilderSummary/DeckBuilderSummary.vue.d.ts +28 -0
- package/dist/components/library/DeckBuilderSummary/DeckBuilderSummary.vue.d.ts.map +1 -0
- package/dist/components/library/DeckBuilderSummary/types.d.ts +18 -0
- package/dist/components/library/DeckBuilderSummaryType/DeckBuilderSummaryType.vue.d.ts +24 -0
- package/dist/components/library/DeckBuilderSummaryType/DeckBuilderSummaryType.vue.d.ts.map +1 -0
- package/dist/components/library/DeckBuilderSummaryType/types.d.ts +22 -0
- package/dist/components/library/DeckButtons/DeckButtons.vue.d.ts +57 -0
- package/dist/components/library/DeckButtons/DeckButtons.vue.d.ts.map +1 -0
- package/dist/components/library/DeckButtons/types.d.ts +45 -0
- package/dist/components/library/DeckDifferenceItem/DeckDifferenceItem.vue.d.ts +69 -0
- package/dist/components/library/DeckDifferenceItem/DeckDifferenceItem.vue.d.ts.map +1 -0
- package/dist/components/library/DeckDifferenceItem/types.d.ts +35 -0
- package/dist/components/library/DeckDifferences/DeckDifferences.vue.d.ts +16 -0
- package/dist/components/library/DeckDifferences/DeckDifferences.vue.d.ts.map +1 -0
- package/dist/components/library/DeckDifferences/types.d.ts +12 -0
- package/dist/components/library/DeckHighlight/DeckHighlight.vue.d.ts +43 -0
- package/dist/components/library/DeckHighlight/DeckHighlight.vue.d.ts.map +1 -0
- package/dist/components/library/DeckHighlight/types.d.ts +28 -0
- package/dist/components/library/DeckHighlightCards/DeckHighlightCards.vue.d.ts +39 -0
- package/dist/components/library/DeckHighlightCards/DeckHighlightCards.vue.d.ts.map +1 -0
- package/dist/components/library/DeckHighlightCards/types.d.ts +24 -0
- package/dist/components/library/DeckHighlightEye/DeckHighlightEye.vue.d.ts +32 -0
- package/dist/components/library/DeckHighlightEye/DeckHighlightEye.vue.d.ts.map +1 -0
- package/dist/components/library/DeckHighlightEye/types.d.ts +22 -0
- package/dist/components/library/DeckHighlightRegions/DeckHighlightRegions.vue.d.ts +16 -0
- package/dist/components/library/DeckHighlightRegions/DeckHighlightRegions.vue.d.ts.map +1 -0
- package/dist/components/library/DeckHighlightRegions/types.d.ts +11 -0
- package/dist/components/library/DeckPreview/DeckPreview.vue.d.ts +40 -0
- package/dist/components/library/DeckPreview/DeckPreview.vue.d.ts.map +1 -0
- package/dist/components/library/DeckPreview/types.d.ts +27 -0
- package/dist/components/library/DeckSidePanel/DeckSidePanel.vue.d.ts +38 -0
- package/dist/components/library/DeckSidePanel/DeckSidePanel.vue.d.ts.map +1 -0
- package/dist/components/library/DeckSidePanel/types.d.ts +26 -0
- package/dist/components/library/DecksRow/DecksRow.vue.d.ts +115 -0
- package/dist/components/library/DecksRow/DecksRow.vue.d.ts.map +1 -0
- package/dist/components/library/DecksRow/types.d.ts +78 -0
- package/dist/components/library/DecksTable/DecksTable.vue.d.ts +16 -0
- package/dist/components/library/DecksTable/DecksTable.vue.d.ts.map +1 -0
- package/dist/components/library/DecksTable/types.d.ts +16 -0
- package/dist/components/library/Filters/AdvancedFilterItem/AdvancedFilterItem.vue.d.ts +27 -0
- package/dist/components/library/Filters/AdvancedFilterItem/AdvancedFilterItem.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/AdvancedFilterItem/types.d.ts +16 -0
- package/dist/components/library/Filters/FilterAdvanced/FilterAdvanced.vue.d.ts +19 -0
- package/dist/components/library/Filters/FilterAdvanced/FilterAdvanced.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterAdvanced/types.d.ts +12 -0
- package/dist/components/library/Filters/FilterCardCodes/FilterCardCodes.vue.d.ts +18 -0
- package/dist/components/library/Filters/FilterCardCodes/FilterCardCodes.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterCardCodes/types.d.ts +11 -0
- package/dist/components/library/Filters/FilterCards/FilterCards.vue.d.ts +35 -0
- package/dist/components/library/Filters/FilterCards/FilterCards.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterCards/types.d.ts +20 -0
- package/dist/components/library/Filters/FilterDecks/FilterDecks.vue.d.ts +46 -0
- package/dist/components/library/Filters/FilterDecks/FilterDecks.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterDecks/types.d.ts +26 -0
- package/dist/components/library/Filters/FilterFormat/FilterFormat.vue.d.ts +44 -0
- package/dist/components/library/Filters/FilterFormat/FilterFormat.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterFormat/types.d.ts +23 -0
- package/dist/components/library/Filters/FilterKeywords/FilterKeywords.vue.d.ts +18 -0
- package/dist/components/library/Filters/FilterKeywords/FilterKeywords.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterKeywords/types.d.ts +11 -0
- package/dist/components/library/Filters/FilterManaCost/FilterManaCost.vue.d.ts +44 -0
- package/dist/components/library/Filters/FilterManaCost/FilterManaCost.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterManaCost/types.d.ts +23 -0
- package/dist/components/library/Filters/FilterQueues/FilterQueues.vue.d.ts +29 -0
- package/dist/components/library/Filters/FilterQueues/FilterQueues.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterQueues/types.d.ts +18 -0
- package/dist/components/library/Filters/FilterRanks/FilterRanks.vue.d.ts +18 -0
- package/dist/components/library/Filters/FilterRanks/FilterRanks.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterRanks/types.d.ts +11 -0
- package/dist/components/library/Filters/FilterRarities/FilterRarities.vue.d.ts +44 -0
- package/dist/components/library/Filters/FilterRarities/FilterRarities.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterRarities/types.d.ts +23 -0
- package/dist/components/library/Filters/FilterRegions/FilterRegions.vue.d.ts +44 -0
- package/dist/components/library/Filters/FilterRegions/FilterRegions.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterRegions/types.d.ts +23 -0
- package/dist/components/library/Filters/FilterSampleSize/FilterSampleSize.vue.d.ts +18 -0
- package/dist/components/library/Filters/FilterSampleSize/FilterSampleSize.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterSampleSize/types.d.ts +11 -0
- package/dist/components/library/Filters/FilterServers/FilterServers.vue.d.ts +44 -0
- package/dist/components/library/Filters/FilterServers/FilterServers.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterServers/types.d.ts +23 -0
- package/dist/components/library/Filters/FilterSets/FilterSets.vue.d.ts +18 -0
- package/dist/components/library/Filters/FilterSets/FilterSets.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterSets/types.d.ts +11 -0
- package/dist/components/library/Filters/FilterTime/FilterTime.vue.d.ts +44 -0
- package/dist/components/library/Filters/FilterTime/FilterTime.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterTime/types.d.ts +23 -0
- package/dist/components/library/Filters/FilterTypes/FilterTypes.vue.d.ts +44 -0
- package/dist/components/library/Filters/FilterTypes/FilterTypes.vue.d.ts.map +1 -0
- package/dist/components/library/Filters/FilterTypes/types.d.ts +23 -0
- package/dist/components/library/GemsCost/GemsCost.vue.d.ts +16 -0
- package/dist/components/library/GemsCost/GemsCost.vue.d.ts.map +1 -0
- package/dist/components/library/GemsCost/types.d.ts +12 -0
- package/dist/components/library/LanguageSelection/LanguageSelection.vue.d.ts +2 -0
- package/dist/components/library/LanguageSelection/LanguageSelection.vue.d.ts.map +1 -0
- package/dist/components/library/LargeTable/LargeTable.vue.d.ts +18 -0
- package/dist/components/library/LargeTable/LargeTable.vue.d.ts.map +1 -0
- package/dist/components/library/LargeTable/types.d.ts +29 -0
- package/dist/components/library/LeaderboardDetailRow/LeaderboardDetailRow.vue.d.ts +148 -0
- package/dist/components/library/LeaderboardDetailRow/LeaderboardDetailRow.vue.d.ts.map +1 -0
- package/dist/components/library/LeaderboardDetailRow/types.d.ts +73 -0
- package/dist/components/library/LeaderboardDetailTable/LeaderboardDetailTable.vue.d.ts +16 -0
- package/dist/components/library/LeaderboardDetailTable/LeaderboardDetailTable.vue.d.ts.map +1 -0
- package/dist/components/library/LeaderboardDetailTable/types.d.ts +12 -0
- package/dist/components/library/LeaderboardOptions/LeaderboardOptions.vue.d.ts +77 -0
- package/dist/components/library/LeaderboardOptions/LeaderboardOptions.vue.d.ts.map +1 -0
- package/dist/components/library/LeaderboardOptions/types.d.ts +48 -0
- package/dist/components/library/LeaderboardTop/LeaderboardTop.vue.d.ts +16 -0
- package/dist/components/library/LeaderboardTop/LeaderboardTop.vue.d.ts.map +1 -0
- package/dist/components/library/LeaderboardTop/types.d.ts +12 -0
- package/dist/components/library/LeaderboardTop10Region/LeaderboardTop10Region.vue.d.ts +16 -0
- package/dist/components/library/LeaderboardTop10Region/LeaderboardTop10Region.vue.d.ts.map +1 -0
- package/dist/components/library/LeaderboardTop10Region/types.d.ts +26 -0
- package/dist/components/library/MatchItem/MatchItem.vue.d.ts +93 -0
- package/dist/components/library/MatchItem/MatchItem.vue.d.ts.map +1 -0
- package/dist/components/library/MatchItem/types.d.ts +52 -0
- package/dist/components/library/ModalItem/ModalItem.vue.d.ts +18 -0
- package/dist/components/library/ModalItem/ModalItem.vue.d.ts.map +1 -0
- package/dist/components/library/ModalItem/types.d.ts +10 -0
- package/dist/components/library/NavigationSide/NavigationSide.vue.d.ts +82 -0
- package/dist/components/library/NavigationSide/NavigationSide.vue.d.ts.map +1 -0
- package/dist/components/library/NavigationSide/types.d.ts +41 -0
- package/dist/components/library/NavigationTop/NavigationTop.vue.d.ts +71 -0
- package/dist/components/library/NavigationTop/NavigationTop.vue.d.ts.map +1 -0
- package/dist/components/library/NavigationTopDesktop/NavigationTopDesktop.vue.d.ts +71 -0
- package/dist/components/library/NavigationTopDesktop/NavigationTopDesktop.vue.d.ts.map +1 -0
- package/dist/components/library/NavigationTopMobile/NavigationTopMobile.vue.d.ts +71 -0
- package/dist/components/library/NavigationTopMobile/NavigationTopMobile.vue.d.ts.map +1 -0
- package/dist/components/library/ProfileArchetypeRow/ProfileArchetypeRow.vue.d.ts +60 -0
- package/dist/components/library/ProfileArchetypeRow/ProfileArchetypeRow.vue.d.ts.map +1 -0
- package/dist/components/library/ProfileArchetypeRow/types.d.ts +34 -0
- package/dist/components/library/ProfileArchetypeTable/ProfileArchetypeTable.vue.d.ts +16 -0
- package/dist/components/library/ProfileArchetypeTable/ProfileArchetypeTable.vue.d.ts.map +1 -0
- package/dist/components/library/ProfileArchetypeTable/types.d.ts +12 -0
- package/dist/components/library/ProfileDropdown/ProfileDropdown.vue.d.ts +16 -0
- package/dist/components/library/ProfileDropdown/ProfileDropdown.vue.d.ts.map +1 -0
- package/dist/components/library/ProfileDropdown/types.d.ts +10 -0
- package/dist/components/library/ProfileGameTypeWinrate/ProfileGameTypeWinrate.vue.d.ts +38 -0
- package/dist/components/library/ProfileGameTypeWinrate/ProfileGameTypeWinrate.vue.d.ts.map +1 -0
- package/dist/components/library/ProfileGameTypeWinrate/types.d.ts +22 -0
- package/dist/components/library/ProfileRegionRow/ProfileRegionRow.vue.d.ts +49 -0
- package/dist/components/library/ProfileRegionRow/ProfileRegionRow.vue.d.ts.map +1 -0
- package/dist/components/library/ProfileRegionRow/types.d.ts +30 -0
- package/dist/components/library/ProfileRegionTable/ProfileRegionTable.vue.d.ts +16 -0
- package/dist/components/library/ProfileRegionTable/ProfileRegionTable.vue.d.ts.map +1 -0
- package/dist/components/library/ProfileRegionTable/types.d.ts +12 -0
- package/dist/components/library/RegionItem/RegionItem.vue.d.ts +16 -0
- package/dist/components/library/RegionItem/RegionItem.vue.d.ts.map +1 -0
- package/dist/components/library/RegionItem/types.d.ts +12 -0
- package/dist/components/library/RegionsLine/RegionsLine.vue.d.ts +44 -0
- package/dist/components/library/RegionsLine/RegionsLine.vue.d.ts.map +1 -0
- package/dist/components/library/RegionsLine/types.d.ts +28 -0
- package/dist/components/library/RevealCarousel/RevealCarousel.vue.d.ts +16 -0
- package/dist/components/library/RevealCarousel/RevealCarousel.vue.d.ts.map +1 -0
- package/dist/components/library/RevealCarousel/types.d.ts +11 -0
- package/dist/components/library/RevealDayOption/RevealDayOption.vue.d.ts +38 -0
- package/dist/components/library/RevealDayOption/RevealDayOption.vue.d.ts.map +1 -0
- package/dist/components/library/RevealDayOption/types.d.ts +22 -0
- package/dist/components/library/RevealDayOptions/RevealDayOptions.vue.d.ts +19 -0
- package/dist/components/library/RevealDayOptions/RevealDayOptions.vue.d.ts.map +1 -0
- package/dist/components/library/RevealDayOptions/types.d.ts +12 -0
- package/dist/components/library/SearchBar/SearchBar.vue.d.ts +2 -0
- package/dist/components/library/SearchBar/SearchBar.vue.d.ts.map +1 -0
- package/dist/components/library/SearchBar/types.d.ts +15 -0
- package/dist/components/library/ShareButton/ShareButton.vue.d.ts +2 -0
- package/dist/components/library/ShareButton/ShareButton.vue.d.ts.map +1 -0
- package/dist/components/library/SidePanel/SidePanel.vue.d.ts +29 -0
- package/dist/components/library/SidePanel/SidePanel.vue.d.ts.map +1 -0
- package/dist/components/library/SidePanel/types.d.ts +18 -0
- package/dist/components/library/SidePanelSectionPane/SidePanelSectionPane.vue.d.ts +29 -0
- package/dist/components/library/SidePanelSectionPane/SidePanelSectionPane.vue.d.ts.map +1 -0
- package/dist/components/library/SidePanelSectionPane/types.d.ts +16 -0
- package/dist/components/library/SimilarDecksTable/SimilarDecksTable.vue.d.ts +27 -0
- package/dist/components/library/SimilarDecksTable/SimilarDecksTable.vue.d.ts.map +1 -0
- package/dist/components/library/SimilarDecksTable/types.d.ts +22 -0
- package/dist/components/library/SmallTable/SmallTable.vue.d.ts +16 -0
- package/dist/components/library/SmallTable/SmallTable.vue.d.ts.map +1 -0
- package/dist/components/library/SmallTable/types.d.ts +15 -0
- package/dist/components/library/SocialLinks/SocialLinks.vue.d.ts +2 -0
- package/dist/components/library/SocialLinks/SocialLinks.vue.d.ts.map +1 -0
- package/dist/components/library/SocialMediaLinks/SocialMediaLinks.vue.d.ts +2 -0
- package/dist/components/library/SocialMediaLinks/SocialMediaLinks.vue.d.ts.map +1 -0
- package/dist/components/library/StatisticsPaneContainer/StatisticsPaneContainer.vue.d.ts +16 -0
- package/dist/components/library/StatisticsPaneContainer/StatisticsPaneContainer.vue.d.ts.map +1 -0
- package/dist/components/library/StatisticsPaneContainer/types.d.ts +10 -0
- package/dist/components/library/TestComponent/TestComponent.vue.d.ts +2 -0
- package/dist/components/library/TestComponent/TestComponent.vue.d.ts.map +1 -0
- package/dist/components/library/TippyText/TippyText.vue.d.ts +16 -0
- package/dist/components/library/TippyText/TippyText.vue.d.ts.map +1 -0
- package/dist/components/library/TippyText/types.d.ts +10 -0
- package/dist/components/library/ToggleSwitch/ToggleSwitch.vue.d.ts +55 -0
- package/dist/components/library/ToggleSwitch/ToggleSwitch.vue.d.ts.map +1 -0
- package/dist/components/library/ToggleSwitch/types.d.ts +29 -0
- package/dist/components/library/WinsLossesLine/WinsLossesLine.vue.d.ts +38 -0
- package/dist/components/library/WinsLossesLine/WinsLossesLine.vue.d.ts.map +1 -0
- package/dist/components/library/WinsLossesLine/types.d.ts +22 -0
- package/dist/components/library/ZoomSlider/ZoomSlider.vue.d.ts +18 -0
- package/dist/components/library/ZoomSlider/ZoomSlider.vue.d.ts.map +1 -0
- package/dist/components/library/ZoomSlider/types.d.ts +10 -0
- package/dist/components/library/icons/ChampionIcon/ChampionIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/ChampionIcon/ChampionIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/DeckIcon/DeckIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/DeckIcon/DeckIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/EquipmentIcon/EquipmentIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/EquipmentIcon/EquipmentIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/EternalIcon/EternalIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/EternalIcon/EternalIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/FollowerIcon/FollowerIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/FollowerIcon/FollowerIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/GauntletIcon/GauntletIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/GauntletIcon/GauntletIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/InfoIcon/InfoIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/InfoIcon/InfoIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/LandmarkIcon/LandmarkIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/LandmarkIcon/LandmarkIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/LogoIcon/LogoIcon.vue.d.ts +16 -0
- package/dist/components/library/icons/LogoIcon/LogoIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/LogoIcon/types.d.ts +12 -0
- package/dist/components/library/icons/ManaHexagonIcon/ManaHexagonIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/ManaHexagonIcon/ManaHexagonIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/RuneterraIcon/RuneterraIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/RuneterraIcon/RuneterraIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/ShardsIcon/ShardsIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/ShardsIcon/ShardsIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/SpellIcon/SpellIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/SpellIcon/SpellIcon.vue.d.ts.map +1 -0
- package/dist/components/library/icons/StandardIcon/StandardIcon.vue.d.ts +2 -0
- package/dist/components/library/icons/StandardIcon/StandardIcon.vue.d.ts.map +1 -0
- package/dist/components/main.d.ts +6 -0
- package/dist/components/setup/i18n.d.ts +281 -0
- package/dist/components/setup/i18n.d.ts.map +1 -0
- package/dist/components/setup/icons.d.ts +1 -0
- package/dist/components/setup/icons.d.ts.map +1 -0
- package/dist/components/setup/stores/cardJson.d.ts +8 -0
- package/dist/components/setup/stores/cardJson.d.ts.map +1 -0
- package/dist/components/setup/stores/cardJsonObject.d.ts +8 -0
- package/dist/components/setup/stores/cardJsonObject.d.ts.map +1 -0
- package/dist/components/setup/stores/dataJson.d.ts +8 -0
- package/dist/components/setup/stores/dataJson.d.ts.map +1 -0
- package/dist/components/types/filters.d.ts +25 -0
- package/dist/components/types/filters.d.ts.map +1 -0
- package/dist/components/types/jsons.d.ts +181 -0
- package/dist/components/types/jsons.d.ts.map +1 -0
- package/dist/components/types/navigation.d.ts +52 -0
- package/dist/components/types/navigation.d.ts.map +1 -0
- package/dist/components/types/providers.d.ts +11 -0
- package/dist/components/types/providers.d.ts.map +1 -0
- package/dist/lorgg-components.cjs.js +860 -0
- package/dist/lorgg-components.css +1 -0
- package/dist/lorgg-components.es.js +36465 -0
- package/dist/lorgg-components.umd.js +861 -0
- package/dist/main.d.ts +3 -0
- package/dist/vite.svg +1 -0
- package/package.json +81 -0
|
@@ -0,0 +1,860 @@
|
|
|
1
|
+
"use strict";var A3=Object.defineProperty;var I3=(e,t,n)=>t in e?A3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(I3(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),bf=require("pinia"),L3=require("vue-router");var xn=(e=>(e.Standard="client_Formats_Standard_name",e.Eternal="client_Formats_Eternal_name",e.CommonsOnly="client_Formats_CommonsOnly_name",e.Singleton="client_Deckbuilder_RulesFilters_Singleton",e.EvenCost="client_Formats_EvenCostCards_name",e))(xn||{}),r0=(e=>(e.Normal="Normal",e.Ranked="Ranked",e))(r0||{}),ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a0={},bi={},kf={};Object.defineProperty(kf,"__esModule",{value:!0});class Ma{constructor(t){this.bytes=new Uint8Array(t)}get length(){return this.bytes.length}PopVarint(){let t=0,n=0,r=0;for(let a=0;a<this.bytes.length;a++){r++;const i=this.bytes[a]&Ma.AllButMSB;if(t|=i<<n,(this.bytes[a]&Ma.JustMSB)!=Ma.JustMSB)return this.bytes=this.bytes.slice(r),t;n+=7}throw"Byte array did not contain valid varints."}sliceAndSet(t,n){this.bytes=this.bytes.slice(t,n)}get(t){return this.bytes[t]}static GetVarint(t){const n=new Uint8Array(10);let r=0;if(t==0)return new Uint8Array([0]);for(;t!==0;){let a=t&this.AllButMSB;t>>=7,t!=0&&(a|=this.JustMSB),n[r++]=a}return n.slice(0,r)}}kf.default=Ma;Ma.AllButMSB=127;Ma.JustMSB=128;var ki={};Object.defineProperty(ki,"__esModule",{value:!0});ki.mergeUint8Arrays=ki.sortDeck=void 0;function R3(e){e.sort((t,n)=>t.cardCode<n.cardCode?-1:1)}ki.sortDeck=R3;function B3(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}ki.mergeUint8Arrays=B3;var wi={};Object.defineProperty(wi,"__esModule",{value:!0});wi.base32Decode=wi.base32Encode=void 0;const sd="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";function V3(e){const t=e.byteLength,n=new Uint8Array(e);let r=0,a="",i=0;for(let s=0;s<t;s++)for(i=i<<8|n[s],r+=8;r>=5;)a+=sd[i>>>r-5&31],r-=5;for(r>0&&(a+=sd[i<<5-r&31]);a.length%8!==0;)a+="=";return a}wi.base32Encode=V3;function $3(e){function t(l){const c=sd.indexOf(l);if(c===-1)throw new Error("Invalid character found: "+l);return c}const n=e.toUpperCase().replace(/\=+$/,"");let r=0,a=0,i=0;const s=new Uint8Array(n.length*5/8|0);for(let l=0;l<n.length;l++)i=i<<5|t(n[l]),r+=5,r>=8&&(s[a++]=i>>>r-8&255,r-=8);return s.buffer}wi.base32Decode=$3;var F3=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bi,"__esModule",{value:!0});bi.getCodeFromDeck=bi.getDeckFromCode=void 0;const Ln=F3(kf),Rt=ki,nm=wi;class ze{static getMinSupportedLibraryVersion(t){if(!t)return ze.INITIAL_VERSION;const n=t.map(r=>r.cardCode.substr(2,2)).map(r=>this.FACTION_CODE_TO_LIBRARY_VERSION[r]||this.INITIAL_VERSION);return Math.max(...n)}static getDeckFromCode(t){const n=[],r=nm.base32Decode(t);if(!r)throw"Invalid deck code";const a=new Ln.default(r);a.get(0)>>4;const i=a.get(0)&15;if(a.sliceAndSet(1),i>ze.MAX_KNOWN_VERSION)throw"The provided code requires a higher version of this library; please update.";for(let s=3;s>0;s--){const l=a.PopVarint();for(let c=0;c<l;c++){const u=a.PopVarint(),d=a.PopVarint(),f=a.PopVarint();for(let p=0;p<u;p++){const h=a.PopVarint(),g=d.toString().padStart(2,"0"),v=this.INT_TO_FACTION_CODE[f],b=h.toString().padStart(3,"0"),m={cardCode:g+v+b,count:s};n.push(m)}}}for(;a.length>0;){const s=a.PopVarint(),l=a.PopVarint(),c=a.PopVarint(),u=a.PopVarint(),d=l.toString().padStart(2,"0"),f=this.INT_TO_FACTION_CODE[c],p=u.toString().padStart(3,"0"),h={cardCode:d+f+p,count:s};n.push(h)}return n}static getCodeFromDeck(t){const n=this.getDeckCodeBytes(t);return nm.base32Encode(n)}static getDeckCodeBytes(t){if(!ze.ValidCardCodesAndCounts(t))throw"The provided deck contains invalid card codes.";const n=this.FORMAT<<this.MAX_KNOWN_VERSION|this.getMinSupportedLibraryVersion(t)&15;let r=new Uint8Array([n]);const a=[],i=[],s=[],l=[];for(const v of t)if(v.count==3)a.push(v);else if(v.count==2)i.push(v);else if(v.count==1)s.push(v);else{if(v.count<1)throw"Invalid count of "+v.count+" for card "+v.cardCode;l.push(v)}let c=ze.GetGroupedOfs(a),u=ze.GetGroupedOfs(i),d=ze.GetGroupedOfs(s);c=ze.SortGroupOf(c),u=ze.SortGroupOf(u),d=ze.SortGroupOf(d),Rt.sortDeck(l);const f=ze.EncodeGroupOf(c),p=ze.EncodeGroupOf(u),h=ze.EncodeGroupOf(d),g=ze.EncodeNOfs(l);return r=Rt.mergeUint8Arrays(r,f),r=Rt.mergeUint8Arrays(r,p),r=Rt.mergeUint8Arrays(r,h),r=Rt.mergeUint8Arrays(r,g),r}static GetGroupedOfs(t){const n=[];for(;t.length>0;){const r=[],a=t[0].cardCode,{set:i,faction:s,number:l}=ze.ParseCardCode(a);r.push(t[0]),t.shift();for(let c=t.length-1;c>=0;c--){const u=t[c].cardCode,d=Number(u.substring(0,2)),f=u.substring(2,4);d===i&&f===s&&(r.push(t[c]),t.splice(c,1))}n.push(r)}return n}static EncodeNOfs(t){let n=new Uint8Array;for(const r of t){n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(r.count));const{set:a,faction:i,number:s}=ze.ParseCardCode(r.cardCode),l=this.FACTION_CODE_TO_INT[i];n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(a)),n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(l)),n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(s))}return n}static SortGroupOf(t){const n=t.sort((r,a)=>r.length<a.length?-1:1);return n.forEach(r=>Rt.sortDeck(r)),n}static EncodeGroupOf(t){let n=new Uint8Array([]);n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(t.length));for(const r of t){n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(r.length));const a=r[0].cardCode,{set:i,faction:s}=ze.ParseCardCode(a),l=this.FACTION_CODE_TO_INT[s];n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(i)),n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(l));for(const c of r){const u=c.cardCode,d=Number(u.substring(4,7));n=Rt.mergeUint8Arrays(n,Ln.default.GetVarint(d))}}return n}static ParseCardCode(t){return{set:Number(t.substring(0,2)),faction:t.substring(2,4),number:Number(t.substring(4,7))}}static ValidCardCodesAndCounts(t){for(const n of t){if(n.cardCode.length!=ze.CARD_CODE_LENGTH||isNaN(Number(n.cardCode.substring(0,2))))return!1;const r=n.cardCode.substring(2,4);if(this.FACTION_CODE_TO_INT[r]===void 0||isNaN(Number(n.cardCode.substring(4,7)))||n.count<1)return!1}return!0}}ze.CARD_CODE_LENGTH=7;ze.MAX_KNOWN_VERSION=5;ze.FORMAT=1;ze.INITIAL_VERSION=1;ze.FACTION_CODE_TO_INT={DE:0,FR:1,IO:2,NX:3,PZ:4,SI:5,BW:6,SH:7,MT:9,BC:10,RU:12};ze.INT_TO_FACTION_CODE={0:"DE",1:"FR",2:"IO",3:"NX",4:"PZ",5:"SI",6:"BW",7:"SH",9:"MT",10:"BC",12:"RU"};ze.FACTION_CODE_TO_LIBRARY_VERSION={DE:1,FR:1,IO:1,NX:1,PZ:1,SI:1,BW:2,MT:2,SH:3,BC:4,RU:5};const z3=e=>ze.getDeckFromCode(e);bi.getDeckFromCode=z3;const j3=e=>ze.getCodeFromDeck(e);bi.getCodeFromDeck=j3;var i0={};Object.defineProperty(i0,"__esModule",{value:!0});(function(e){var t=ci&&ci.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i),Object.defineProperty(r,s,{enumerable:!0,get:function(){return a[i]}})}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=ci&&ci.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(bi,e),n(i0,e)})(a0);const Pt=bf.defineStore("cardJsonObject",{state:()=>({cardJsonObject:{}}),actions:{update(e){this.cardJsonObject=e}}}),_e=bf.defineStore("dataJson",{state:()=>({dataJson:{keywords:[],patches:[],ranks:[],rarities:[],regions:[],runeterraChampions:[],seasons:[],servers:[],sets:[],spellSpeeds:[],types:[],vocabTerms:[],formats:{},queues:{}}}),actions:{update(e){this.dataJson=e}}});function Bs(e){return/^\d+$/.test(e[0])}function Si(e){return e===void 0?!1:e.supertype==="Champion"&&e.typeRef==="Unit"}function H3(e){if(e===void 0)return Math.random();typeof e=="string"&&(e=Number(e.split("").map(function(n){return n.charCodeAt(0)+1}).join("")));const t=Math.sin(e++)*1e4;return t-Math.floor(t)}function rm(e){return`#${Math.floor(H3(e)*16777215).toString(16)}`}function Mn(e,t=.5){return e>=t+.15||e>=1?"--color-excellent":e>=t+.05?"--color-good":e>=t+.005?"--color-good-lite":e<t+.005&&e>t-.005?"--color-median":e>=t-.05?"--color-bad-lite":"--color-bad"}function Me(e,t=0,n){return Number(e.toFixed(t)).toLocaleString(void 0,{maximumSignificantDigits:n===void 0?e>1e4?3:2:n})}function W3(e,t){return Math.floor(Math.random()*(t-e)+e)}function U3(e,t){return e.reduce((n,r)=>{var a;return(n[a=t(r)]||(n[a]=[])).push(r),n},{})}function Wl(e,t){var i;if(t)return null;const n=Pt().cardJsonObject,r=_e().dataJson;let a=0;for(const s in e){const l=(i=r.rarities.find(u=>u.nameRef===n[s].rarityRef))==null?void 0:i.cost;if(l===void 0)continue;const c=t?Math.max(0,e[s]):e[s];a+=l*c}return a}function Aa(e,t,n){const r=[],a=[i=>Si(i),i=>i.typeRef==="Landmark",i=>i.typeRef==="Unit"&&!Si(i),i=>i.typeRef==="Spell",i=>i.typeRef==="Equipment"];for(;r.length<n;){const i=a.shift();if(!i)break;r.push(...Y3(e.filter(i),t,n-r.length))}return r}function Y3(e,t,n){return e.sort((r,a)=>t[a.cardCode]-t[r.cardCode]).sort((r,a)=>a.cost-r.cost).slice(0,n)}function vt(e){return e===""?{}:a0.getDeckFromCode(e).reduce((t,n)=>({...t,[n.cardCode]:n.count}),{})}function Jt(e){return Object.keys(e).map(t=>Pt().cardJsonObject[t]).filter(t=>t!==void 0).sort((t,n)=>t.name.localeCompare(n.name)).sort((t,n)=>t.cost-n.cost)}function q3(e){return bc(vt(e))}function bc(e){const t=Pt().cardJsonObject,n=Object.keys(e).map(r=>t[r]).filter(r=>r!==void 0);return kc(n)}function kc(e){const t=[];for(const n of e)n.regionRefs.length===1&&!t.includes(n.regionRefs[0])&&t.push(n.regionRefs[0]);if(e.every(n=>n.regionRefs.filter(r=>t.includes(r)).length>0))return t;for(const n of e){const r=n.regionRefs.filter(a=>!Bs(a));r.length===1&&t.push(r[0])}return t}function Sa(e,t,n=!1){var i,s;const r=_e().dataJson,a=`var(${((i=r.regions.find(l=>l.nameRef===e.regionRefs[0]))==null?void 0:i.color)||"--color-primary-2"}${n?"-rgb":""})`;if(e.regionRefs.length===1||!t||t.length<2)return a;for(const l of t)if(e.regionRefs.includes(l))return`var(${((s=r.regions.find(c=>c.nameRef===l))==null?void 0:s.color)||"--color-primary-2"}${n?"-rgb":""})`;return a}function G3(e){return Vs(`--color-${e}`)||Vs("--color-primary-2")}function Vs(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function X3(e){var t,n;return Bs(e)?((t=Pt().cardJsonObject[e])==null?void 0:t.name)||"Runeterra":(n=_e().dataJson.regions.find(r=>r.nameRef===e))==null?void 0:n.name}function K3(e,t){t||(t=bc(e));const n={};for(const r of t)n[r]=0;for(const r in e){const a=Pt().cardJsonObject[r];a&&(n[s0(a,t)]+=e[r])}return n}function s0(e,t){for(const n of e.regionRefs)if(t.includes(n))return n;throw new Error("Card's region was unfound.")}function J3(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}const t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t)}function co(e,t,n=!0){return o.computed(()=>{if(e)return e;if(!t){if(n)throw new Error("CardProp or CardCodeProp must be defined.");return}return Pt().cardJsonObject[t]})}function Z3(e,t,n){if(!e&&t&&(e=Jt(t)),!e&&n&&(e=Jt(vt(n))),!e)throw new Error("At least one argument must be defined.");let r=[xn.CommonsOnly,xn.Eternal,xn.Standard,xn.EvenCost,xn.Singleton];for(const a of e)r=r.filter(i=>a.formats.includes(i));return r}function Q3(e){var t;(t=document.querySelector('meta[name="description"]'))==null||t.setAttribute("content",e)}function e4(e){document.title=e}/*!
|
|
2
|
+
* shared v9.2.2
|
|
3
|
+
* (c) 2022 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/const qn=typeof window<"u";let on,Ia;if(process.env.NODE_ENV!=="production"){const e=qn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(on=t=>e.mark(t),Ia=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const t4=/\{([0-9a-zA-Z]+)\}/g;function wc(e,...t){return t.length===1&&Be(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(t4,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const n4=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Jn=e=>n4?Symbol(e):e,r4=(e,t,n)=>a4({l:e,k:t,s:n}),a4=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),bt=e=>typeof e=="number"&&isFinite(e),i4=e=>Sf(e)==="[object Date]",Jr=e=>Sf(e)==="[object RegExp]",Sc=e=>pe(e)&&Object.keys(e).length===0;function Ut(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Et=Object.assign;let am;const vs=()=>am||(am=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function im(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const s4=Object.prototype.hasOwnProperty;function wf(e,t){return s4.call(e,t)}const je=Array.isArray,ct=e=>typeof e=="function",U=e=>typeof e=="string",we=e=>typeof e=="boolean",Be=e=>e!==null&&typeof e=="object",o0=Object.prototype.toString,Sf=e=>o0.call(e),pe=e=>Sf(e)==="[object Object]",o4=e=>e==null?"":je(e)||pe(e)&&e.toString===o0?JSON.stringify(e,null,2):String(e),sm=2;function l4(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const i=[];for(let s=0;s<r.length;s++)if(a+=r[s].length+1,a>=t){for(let l=s-sm;l<=s+sm||n>a;l++){if(l<0||l>=r.length)continue;const c=l+1;i.push(`${c}${" ".repeat(3-String(c).length)}| ${r[l]}`);const u=r[l].length;if(l===s){const d=t-(a-u)+1,f=Math.max(1,n>a?u-d:n-t);i.push(" | "+" ".repeat(d)+"^".repeat(f))}else if(l>s){if(n>a){const d=Math.max(Math.min(n-a,u),1);i.push(" | "+"^".repeat(d))}a+=u+1}}break}return i.join(`
|
|
6
|
+
`)}function xf(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}/*!
|
|
7
|
+
* message-compiler v9.2.2
|
|
8
|
+
* (c) 2022 kazuya kawaguchi
|
|
9
|
+
* Released under the MIT License.
|
|
10
|
+
*/const fe={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},c4={[fe.EXPECTED_TOKEN]:"Expected token: '{0}'",[fe.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[fe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[fe.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[fe.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[fe.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[fe.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[fe.EMPTY_PLACEHOLDER]:"Empty placeholder",[fe.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[fe.INVALID_LINKED_FORMAT]:"Invalid linked format",[fe.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[fe.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[fe.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[fe.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function xc(e,t,n={}){const{domain:r,messages:a,args:i}=n,s=process.env.NODE_ENV!=="production"?wc((a||c4)[e]||"",...i||[]):e,l=new SyntaxError(String(s));return l.code=e,t&&(l.location=t),l.domain=r,l}function u4(e){throw e}function d4(e,t,n){return{line:e,column:t,offset:n}}function od(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const nr=" ",f4="\r",Bt=`
|
|
11
|
+
`,p4=String.fromCharCode(8232),h4=String.fromCharCode(8233);function m4(e){const t=e;let n=0,r=1,a=1,i=0;const s=C=>t[C]===f4&&t[C+1]===Bt,l=C=>t[C]===Bt,c=C=>t[C]===h4,u=C=>t[C]===p4,d=C=>s(C)||l(C)||c(C)||u(C),f=()=>n,p=()=>r,h=()=>a,g=()=>i,v=C=>s(C)||c(C)||u(C)?Bt:t[C],b=()=>v(n),m=()=>v(n+i);function y(){return i=0,d(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}function k(){return s(n+i)&&i++,i++,t[n+i]}function _(){n=0,r=1,a=1,i=0}function w(C=0){i=C}function S(){const C=n+i;for(;C!==n;)y();i=0}return{index:f,line:p,column:h,peekOffset:g,charAt:v,currentChar:b,currentPeek:m,next:y,peek:k,reset:_,resetPeek:w,skipToPeek:S}}const Lr=void 0,om="'",g4="tokenizer";function v4(e,t={}){const n=t.location!==!1,r=m4(e),a=()=>r.index(),i=()=>d4(r.line(),r.column(),r.index()),s=i(),l=a(),c={currentType:14,offset:l,startLoc:s,endLoc:s,lastType:14,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=t;function f(T,x,P,...H){const te=u();if(x.column+=P,x.offset+=P,d){const ue=od(te.startLoc,x),yt=xc(T,ue,{domain:g4,args:H});d(yt)}}function p(T,x,P){T.endLoc=i(),T.currentType=x;const H={type:x};return n&&(H.loc=od(T.startLoc,T.endLoc)),P!=null&&(H.value=P),H}const h=T=>p(T,14);function g(T,x){return T.currentChar()===x?(T.next(),x):(f(fe.EXPECTED_TOKEN,i(),0,x),"")}function v(T){let x="";for(;T.currentPeek()===nr||T.currentPeek()===Bt;)x+=T.currentPeek(),T.peek();return x}function b(T){const x=v(T);return T.skipToPeek(),x}function m(T){if(T===Lr)return!1;const x=T.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x===95}function y(T){if(T===Lr)return!1;const x=T.charCodeAt(0);return x>=48&&x<=57}function k(T,x){const{currentType:P}=x;if(P!==2)return!1;v(T);const H=m(T.currentPeek());return T.resetPeek(),H}function _(T,x){const{currentType:P}=x;if(P!==2)return!1;v(T);const H=T.currentPeek()==="-"?T.peek():T.currentPeek(),te=y(H);return T.resetPeek(),te}function w(T,x){const{currentType:P}=x;if(P!==2)return!1;v(T);const H=T.currentPeek()===om;return T.resetPeek(),H}function S(T,x){const{currentType:P}=x;if(P!==8)return!1;v(T);const H=T.currentPeek()===".";return T.resetPeek(),H}function C(T,x){const{currentType:P}=x;if(P!==9)return!1;v(T);const H=m(T.currentPeek());return T.resetPeek(),H}function E(T,x){const{currentType:P}=x;if(!(P===8||P===12))return!1;v(T);const H=T.currentPeek()===":";return T.resetPeek(),H}function O(T,x){const{currentType:P}=x;if(P!==10)return!1;const H=()=>{const ue=T.currentPeek();return ue==="{"?m(T.peek()):ue==="@"||ue==="%"||ue==="|"||ue===":"||ue==="."||ue===nr||!ue?!1:ue===Bt?(T.peek(),H()):m(ue)},te=H();return T.resetPeek(),te}function L(T){v(T);const x=T.currentPeek()==="|";return T.resetPeek(),x}function D(T){const x=v(T),P=T.currentPeek()==="%"&&T.peek()==="{";return T.resetPeek(),{isModulo:P,hasSpace:x.length>0}}function N(T,x=!0){const P=(te=!1,ue="",yt=!1)=>{const st=T.currentPeek();return st==="{"?ue==="%"?!1:te:st==="@"||!st?ue==="%"?!0:te:st==="%"?(T.peek(),P(te,"%",!0)):st==="|"?ue==="%"||yt?!0:!(ue===nr||ue===Bt):st===nr?(T.peek(),P(!0,nr,yt)):st===Bt?(T.peek(),P(!0,Bt,yt)):!0},H=P();return x&&T.resetPeek(),H}function R(T,x){const P=T.currentChar();return P===Lr?Lr:x(P)?(T.next(),P):null}function re(T){return R(T,P=>{const H=P.charCodeAt(0);return H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===95||H===36})}function K(T){return R(T,P=>{const H=P.charCodeAt(0);return H>=48&&H<=57})}function Z(T){return R(T,P=>{const H=P.charCodeAt(0);return H>=48&&H<=57||H>=65&&H<=70||H>=97&&H<=102})}function X(T){let x="",P="";for(;x=K(T);)P+=x;return P}function ce(T){b(T);const x=T.currentChar();return x!=="%"&&f(fe.EXPECTED_TOKEN,i(),0,x),T.next(),"%"}function Y(T){let x="";for(;;){const P=T.currentChar();if(P==="{"||P==="}"||P==="@"||P==="|"||!P)break;if(P==="%")if(N(T))x+=P,T.next();else break;else if(P===nr||P===Bt)if(N(T))x+=P,T.next();else{if(L(T))break;x+=P,T.next()}else x+=P,T.next()}return x}function se(T){b(T);let x="",P="";for(;x=re(T);)P+=x;return T.currentChar()===Lr&&f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),P}function de(T){b(T);let x="";return T.currentChar()==="-"?(T.next(),x+=`-${X(T)}`):x+=X(T),T.currentChar()===Lr&&f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),x}function Te(T){b(T),g(T,"'");let x="",P="";const H=ue=>ue!==om&&ue!==Bt;for(;x=R(T,H);)x==="\\"?P+=Fe(T):P+=x;const te=T.currentChar();return te===Bt||te===Lr?(f(fe.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),te===Bt&&(T.next(),g(T,"'")),P):(g(T,"'"),P)}function Fe(T){const x=T.currentChar();switch(x){case"\\":case"'":return T.next(),`\\${x}`;case"u":return ve(T,x,4);case"U":return ve(T,x,6);default:return f(fe.UNKNOWN_ESCAPE_SEQUENCE,i(),0,x),""}}function ve(T,x,P){g(T,x);let H="";for(let te=0;te<P;te++){const ue=Z(T);if(!ue){f(fe.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${x}${H}${T.currentChar()}`);break}H+=ue}return`\\${x}${H}`}function ie(T){b(T);let x="",P="";const H=te=>te!=="{"&&te!=="}"&&te!==nr&&te!==Bt;for(;x=R(T,H);)P+=x;return P}function V(T){let x="",P="";for(;x=re(T);)P+=x;return P}function Q(T){const x=(P=!1,H)=>{const te=T.currentChar();return te==="{"||te==="%"||te==="@"||te==="|"||!te||te===nr?H:te===Bt?(H+=te,T.next(),x(P,H)):(H+=te,T.next(),x(!0,H))};return x(!1,"")}function Ae(T){b(T);const x=g(T,"|");return b(T),x}function et(T,x){let P=null;switch(T.currentChar()){case"{":return x.braceNest>=1&&f(fe.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),T.next(),P=p(x,2,"{"),b(T),x.braceNest++,P;case"}":return x.braceNest>0&&x.currentType===2&&f(fe.EMPTY_PLACEHOLDER,i(),0),T.next(),P=p(x,3,"}"),x.braceNest--,x.braceNest>0&&b(T),x.inLinked&&x.braceNest===0&&(x.inLinked=!1),P;case"@":return x.braceNest>0&&f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),P=_t(T,x)||h(x),x.braceNest=0,P;default:let te=!0,ue=!0,yt=!0;if(L(T))return x.braceNest>0&&f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),P=p(x,1,Ae(T)),x.braceNest=0,x.inLinked=!1,P;if(x.braceNest>0&&(x.currentType===5||x.currentType===6||x.currentType===7))return f(fe.UNTERMINATED_CLOSING_BRACE,i(),0),x.braceNest=0,ut(T,x);if(te=k(T,x))return P=p(x,5,se(T)),b(T),P;if(ue=_(T,x))return P=p(x,6,de(T)),b(T),P;if(yt=w(T,x))return P=p(x,7,Te(T)),b(T),P;if(!te&&!ue&&!yt)return P=p(x,13,ie(T)),f(fe.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,P.value),b(T),P;break}return P}function _t(T,x){const{currentType:P}=x;let H=null;const te=T.currentChar();switch((P===8||P===9||P===12||P===10)&&(te===Bt||te===nr)&&f(fe.INVALID_LINKED_FORMAT,i(),0),te){case"@":return T.next(),H=p(x,8,"@"),x.inLinked=!0,H;case".":return b(T),T.next(),p(x,9,".");case":":return b(T),T.next(),p(x,10,":");default:return L(T)?(H=p(x,1,Ae(T)),x.braceNest=0,x.inLinked=!1,H):S(T,x)||E(T,x)?(b(T),_t(T,x)):C(T,x)?(b(T),p(x,12,V(T))):O(T,x)?(b(T),te==="{"?et(T,x)||H:p(x,11,Q(T))):(P===8&&f(fe.INVALID_LINKED_FORMAT,i(),0),x.braceNest=0,x.inLinked=!1,ut(T,x))}}function ut(T,x){let P={type:14};if(x.braceNest>0)return et(T,x)||h(x);if(x.inLinked)return _t(T,x)||h(x);switch(T.currentChar()){case"{":return et(T,x)||h(x);case"}":return f(fe.UNBALANCED_CLOSING_BRACE,i(),0),T.next(),p(x,3,"}");case"@":return _t(T,x)||h(x);default:if(L(T))return P=p(x,1,Ae(T)),x.braceNest=0,x.inLinked=!1,P;const{isModulo:te,hasSpace:ue}=D(T);if(te)return ue?p(x,0,Y(T)):p(x,4,ce(T));if(N(T))return p(x,0,Y(T));break}return P}function fn(){const{currentType:T,offset:x,startLoc:P,endLoc:H}=c;return c.lastType=T,c.lastOffset=x,c.lastStartLoc=P,c.lastEndLoc=H,c.offset=a(),c.startLoc=i(),r.currentChar()===Lr?p(c,14):ut(r,c)}return{nextToken:fn,currentOffset:a,currentPosition:i,context:u}}const _4="parser",y4=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function b4(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function k4(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,y,k,_,...w){const S=m.currentPosition();if(S.offset+=_,S.column+=_,n){const C=od(k,S),E=xc(y,C,{domain:_4,args:w});n(E)}}function a(m,y,k){const _={type:m,start:y,end:y};return t&&(_.loc={start:k,end:k}),_}function i(m,y,k,_){m.end=y,_&&(m.type=_),t&&m.loc&&(m.loc.end=k)}function s(m,y){const k=m.context(),_=a(3,k.offset,k.startLoc);return _.value=y,i(_,m.currentOffset(),m.currentPosition()),_}function l(m,y){const k=m.context(),{lastOffset:_,lastStartLoc:w}=k,S=a(5,_,w);return S.index=parseInt(y,10),m.nextToken(),i(S,m.currentOffset(),m.currentPosition()),S}function c(m,y){const k=m.context(),{lastOffset:_,lastStartLoc:w}=k,S=a(4,_,w);return S.key=y,m.nextToken(),i(S,m.currentOffset(),m.currentPosition()),S}function u(m,y){const k=m.context(),{lastOffset:_,lastStartLoc:w}=k,S=a(9,_,w);return S.value=y.replace(y4,b4),m.nextToken(),i(S,m.currentOffset(),m.currentPosition()),S}function d(m){const y=m.nextToken(),k=m.context(),{lastOffset:_,lastStartLoc:w}=k,S=a(8,_,w);return y.type!==12?(r(m,fe.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),S.value="",i(S,_,w),{nextConsumeToken:y,node:S}):(y.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Rn(y)),S.value=y.value||"",i(S,m.currentOffset(),m.currentPosition()),{node:S})}function f(m,y){const k=m.context(),_=a(7,k.offset,k.startLoc);return _.value=y,i(_,m.currentOffset(),m.currentPosition()),_}function p(m){const y=m.context(),k=a(6,y.offset,y.startLoc);let _=m.nextToken();if(_.type===9){const w=d(m);k.modifier=w.node,_=w.nextConsumeToken||m.nextToken()}switch(_.type!==10&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(_)),_=m.nextToken(),_.type===2&&(_=m.nextToken()),_.type){case 11:_.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(_)),k.key=f(m,_.value||"");break;case 5:_.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(_)),k.key=c(m,_.value||"");break;case 6:_.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(_)),k.key=l(m,_.value||"");break;case 7:_.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(_)),k.key=u(m,_.value||"");break;default:r(m,fe.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const w=m.context(),S=a(7,w.offset,w.startLoc);return S.value="",i(S,w.offset,w.startLoc),k.key=S,i(k,w.offset,w.startLoc),{nextConsumeToken:_,node:k}}return i(k,m.currentOffset(),m.currentPosition()),{node:k}}function h(m){const y=m.context(),k=y.currentType===1?m.currentOffset():y.offset,_=y.currentType===1?y.endLoc:y.startLoc,w=a(2,k,_);w.items=[];let S=null;do{const O=S||m.nextToken();switch(S=null,O.type){case 0:O.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(O)),w.items.push(s(m,O.value||""));break;case 6:O.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(O)),w.items.push(l(m,O.value||""));break;case 5:O.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(O)),w.items.push(c(m,O.value||""));break;case 7:O.value==null&&r(m,fe.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rn(O)),w.items.push(u(m,O.value||""));break;case 8:const L=p(m);w.items.push(L.node),S=L.nextConsumeToken||null;break}}while(y.currentType!==14&&y.currentType!==1);const C=y.currentType===1?y.lastOffset:m.currentOffset(),E=y.currentType===1?y.lastEndLoc:m.currentPosition();return i(w,C,E),w}function g(m,y,k,_){const w=m.context();let S=_.items.length===0;const C=a(1,y,k);C.cases=[],C.cases.push(_);do{const E=h(m);S||(S=E.items.length===0),C.cases.push(E)}while(w.currentType!==14);return S&&r(m,fe.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),i(C,m.currentOffset(),m.currentPosition()),C}function v(m){const y=m.context(),{offset:k,startLoc:_}=y,w=h(m);return y.currentType===14?w:g(m,k,_,w)}function b(m){const y=v4(m,Et({},e)),k=y.context(),_=a(0,k.offset,k.startLoc);return t&&_.loc&&(_.loc.source=m),_.body=v(y),k.currentType!==14&&r(y,fe.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,m[k.offset]||""),i(_,y.currentOffset(),y.currentPosition()),_}return{parse:b}}function Rn(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function w4(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function lm(e,t){for(let n=0;n<e.length;n++)Cf(e[n],t)}function Cf(e,t){switch(e.type){case 1:lm(e.cases,t),t.helper("plural");break;case 2:lm(e.items,t);break;case 6:Cf(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function S4(e,t={}){const n=w4(e);n.helper("normalize"),e.body&&Cf(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function x4(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:i}=t,s={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:i,indentLevel:0},l=()=>s;function c(v,b){s.code+=v}function u(v,b=!0){const m=b?a:"";c(i?m+" ".repeat(v):m)}function d(v=!0){const b=++s.indentLevel;v&&u(b)}function f(v=!0){const b=--s.indentLevel;v&&u(b)}function p(){u(s.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:p,helper:v=>`_${v}`,needIndent:()=>s.needIndent}}function C4(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),xi(e,t.key),t.modifier?(e.push(", "),xi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function E4(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let i=0;i<a&&(xi(e,t.items[i]),i!==a-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function T4(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let i=0;i<a&&(xi(e,t.cases[i]),i!==a-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function O4(e,t){t.body?xi(e,t.body):e.push("null")}function xi(e,t){const{helper:n}=e;switch(t.type){case 0:O4(e,t);break;case 1:T4(e,t);break;case 2:E4(e,t);break;case 6:C4(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw new Error(`unhandled codegen node type: ${t.type}`)}}const M4=(e,t={})=>{const n=U(t.mode)?t.mode:"normal",r=U(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
12
|
+
`,s=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],c=x4(e,{mode:n,filename:r,sourceMap:a,breakLineCode:i,needIndent:s});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${l.map(f=>`${f}: _${f}`).join(", ")} } = ctx`),c.newline()),c.push("return "),xi(c,e),c.deindent(s),c.push("}");const{code:u,map:d}=c.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function N4(e,t={}){const n=Et({},t),a=k4(n).parse(e);return S4(a,n),M4(a,n)}/*!
|
|
13
|
+
* devtools-if v9.2.2
|
|
14
|
+
* (c) 2022 kazuya kawaguchi
|
|
15
|
+
* Released under the MIT License.
|
|
16
|
+
*/const l0={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
|
17
|
+
* core-base v9.2.2
|
|
18
|
+
* (c) 2022 kazuya kawaguchi
|
|
19
|
+
* Released under the MIT License.
|
|
20
|
+
*/const oa=[];oa[0]={w:[0],i:[3,0],["["]:[4],o:[7]};oa[1]={w:[1],["."]:[2],["["]:[4],o:[7]};oa[2]={w:[2],i:[3,0],[0]:[3,0]};oa[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};oa[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};oa[5]={["'"]:[4,0],o:8,l:[5,0]};oa[6]={['"']:[4,0],o:8,l:[6,0]};const D4=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function P4(e){return D4.test(e)}function A4(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function I4(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function L4(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:P4(t)?A4(t):"*"+t}function R4(e){const t=[];let n=-1,r=0,a=0,i,s,l,c,u,d,f;const p=[];p[0]=()=>{s===void 0?s=l:s+=l},p[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},p[2]=()=>{p[0](),a++},p[3]=()=>{if(a>0)a--,r=4,p[0]();else{if(a=0,s===void 0||(s=L4(s),s===!1))return!1;p[1]()}};function h(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,l="\\"+g,p[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&h())){if(c=I4(i),f=oa[r],u=f[c]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=p[u[1]],d&&(l=i,d()===!1))))return;if(r===7)return t}}const cm=new Map;function B4(e,t){return Be(e)?e[t]:null}function V4(e,t){if(!Be(e))return null;let n=cm.get(t);if(n||(n=R4(t),n&&cm.set(t,n)),!n)return null;const r=n.length;let a=e,i=0;for(;i<r;){const s=a[n[i]];if(s===void 0)return null;a=s,i++}return a}const $4=e=>e,F4=e=>"",z4="text",j4=e=>e.length===0?"":e.join(""),H4=o4;function um(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function W4(e){const t=bt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(bt(e.named.count)||bt(e.named.n))?bt(e.named.count)?e.named.count:bt(e.named.n)?e.named.n:t:t}function U4(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Y4(e={}){const t=e.locale,n=W4(e),r=Be(e.pluralRules)&&U(t)&&ct(e.pluralRules[t])?e.pluralRules[t]:um,a=Be(e.pluralRules)&&U(t)&&ct(e.pluralRules[t])?um:void 0,i=m=>m[r(n,m.length,a)],s=e.list||[],l=m=>s[m],c=e.named||{};bt(e.pluralIndex)&&U4(n,c);const u=m=>c[m];function d(m){const y=ct(e.messages)?e.messages(m):Be(e.messages)?e.messages[m]:!1;return y||(e.parent?e.parent.message(m):F4)}const f=m=>e.modifiers?e.modifiers[m]:$4,p=pe(e.processor)&&ct(e.processor.normalize)?e.processor.normalize:j4,h=pe(e.processor)&&ct(e.processor.interpolate)?e.processor.interpolate:H4,g=pe(e.processor)&&U(e.processor.type)?e.processor.type:z4,b={list:l,named:u,plural:i,linked:(m,...y)=>{const[k,_]=y;let w="text",S="";y.length===1?Be(k)?(S=k.modifier||S,w=k.type||w):U(k)&&(S=k||S):y.length===2&&(U(k)&&(S=k||S),U(_)&&(w=_||w));let C=d(m)(b);return w==="vnode"&&je(C)&&S&&(C=C[0]),S?f(S)(C,w):C},message:d,type:g,interpolate:h,normalize:p};return b}let $s=null;function q4(e){$s=e}function G4(e,t,n){$s&&$s.emit(l0.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const X4=K4(l0.FunctionTranslate);function K4(e){return t=>$s&&$s.emit(e,t)}const rn={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},J4={[rn.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[rn.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[rn.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[rn.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[rn.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[rn.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function Ci(e,...t){return wc(J4[e],...t)}function Z4(e,t,n){return[...new Set([n,...je(t)?t:Be(t)?Object.keys(t):U(t)?[t]:[n]])]}function c0(e,t,n){const r=U(n)?n:uo,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;je(s);)s=dm(i,s,t);const l=je(t)||!pe(t)?t:t.default?t.default:null;s=U(l)?[l]:l,je(s)&&dm(i,s,!1),a.__localeChainCache.set(r,i)}return i}function dm(e,t,n){let r=!0;for(let a=0;a<t.length&&we(r);a++){const i=t[a];U(i)&&(r=Q4(e,t[a],n))}return r}function Q4(e,t,n){let r;const a=t.split("-");do{const i=a.join("-");r=e5(e,i,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function e5(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(je(n)||pe(n))&&n[a]&&(r=n[a])}return r}const t5="9.2.2",Cc=-1,uo="en-US",Ul="",fm=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function n5(){return{upper:(e,t)=>t==="text"&&U(e)?e.toUpperCase():t==="vnode"&&Be(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&U(e)?e.toLowerCase():t==="vnode"&&Be(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&U(e)?fm(e):t==="vnode"&&Be(e)&&"__v_isVNode"in e?fm(e.children):e}}let u0;function r5(e){u0=e}let d0;function a5(e){d0=e}let f0;function i5(e){f0=e}let p0=null;const pm=e=>{p0=e},s5=()=>p0;let h0=null;const hm=e=>{h0=e},o5=()=>h0;let mm=0;function l5(e={}){const t=U(e.version)?e.version:t5,n=U(e.locale)?e.locale:uo,r=je(e.fallbackLocale)||pe(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,a=pe(e.messages)?e.messages:{[n]:{}},i=pe(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=pe(e.numberFormats)?e.numberFormats:{[n]:{}},l=Et({},e.modifiers||{},n5()),c=e.pluralRules||{},u=ct(e.missing)?e.missing:null,d=we(e.missingWarn)||Jr(e.missingWarn)?e.missingWarn:!0,f=we(e.fallbackWarn)||Jr(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,h=!!e.unresolving,g=ct(e.postTranslation)?e.postTranslation:null,v=pe(e.processor)?e.processor:null,b=we(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter,y=ct(e.messageCompiler)?e.messageCompiler:u0,k=ct(e.messageResolver)?e.messageResolver:d0||B4,_=ct(e.localeFallbacker)?e.localeFallbacker:f0||Z4,w=Be(e.fallbackContext)?e.fallbackContext:void 0,S=ct(e.onWarn)?e.onWarn:Ut,C=e,E=Be(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,O=Be(C.__numberFormatters)?C.__numberFormatters:new Map,L=Be(C.__meta)?C.__meta:{};mm++;const D={version:t,cid:mm,locale:n,fallbackLocale:r,messages:a,modifiers:l,pluralRules:c,missing:u,missingWarn:d,fallbackWarn:f,fallbackFormat:p,unresolving:h,postTranslation:g,processor:v,warnHtmlMessage:b,escapeParameter:m,messageCompiler:y,messageResolver:k,localeFallbacker:_,fallbackContext:w,onWarn:S,__meta:L};return D.datetimeFormats=i,D.numberFormats=s,D.__datetimeFormatters=E,D.__numberFormatters=O,process.env.NODE_ENV!=="production"&&(D.__v_emitter=C.__v_emitter!=null?C.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&G4(D,t,L),D}function Ec(e,t){return e instanceof RegExp?e.test(t):e}function m0(e,t){return e instanceof RegExp?e.test(t):e}function Ef(e,t,n,r,a){const{missing:i,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(i!==null){const l=i(e,n,t,a);return U(l)?l:t}else return process.env.NODE_ENV!=="production"&&m0(r,t)&&s(Ci(rn.NOT_FOUND_KEY,{key:t,locale:n})),t}function Qi(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const c5=/<\/?[\w\s="/.':;#-\/]+>/,u5="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function d5(e,t){(we(t.warnHtmlMessage)?t.warnHtmlMessage:!0)&&c5.test(e)&&Ut(wc(u5,{source:e}))}const f5=e=>e;let gm=Object.create(null);function p5(e,t={}){{process.env.NODE_ENV!=="production"&&d5(e,t);const r=(t.onCacheKey||f5)(e),a=gm[r];if(a)return a;let i=!1;const s=t.onError||u4;t.onError=u=>{i=!0,s(u)};const{code:l}=N4(e,t),c=new Function(`return ${l}`)();return i?c:gm[r]=c}}let g0=fe.__EXTEND_POINT__;const bu=()=>++g0,dr={INVALID_ARGUMENT:g0,INVALID_DATE_ARGUMENT:bu(),INVALID_ISO_DATE_ARGUMENT:bu(),__EXTEND_POINT__:bu()};function ui(e){return xc(e,null,process.env.NODE_ENV!=="production"?{messages:h5}:void 0)}const h5={[dr.INVALID_ARGUMENT]:"Invalid arguments",[dr.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[dr.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string"},vm=()=>"",Fn=e=>ct(e);function _m(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:s,messages:l}=e,[c,u]=ld(...t),d=we(u.missingWarn)?u.missingWarn:e.missingWarn,f=we(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=we(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,g=U(u.default)||we(u.default)?we(u.default)?i?c:()=>c:u.default:n?i?c:()=>c:"",v=n||g!=="",b=U(u.locale)?u.locale:e.locale;p&&m5(u);let[m,y,k]=h?[c,b,l[b]||{}]:v0(e,c,b,s,f,d),_=m,w=c;if(!h&&!(U(_)||Fn(_))&&v&&(_=g,w=_),!h&&(!(U(_)||Fn(_))||!U(y)))return a?Cc:c;if(process.env.NODE_ENV!=="production"&&U(_)&&e.messageCompiler==null)return Ut(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let S=!1;const C=()=>{S=!0},E=Fn(_)?_:_0(e,c,y,_,w,C);if(S)return _;const O=_5(e,y,k,u),L=Y4(O),D=g5(e,E,L),N=r?r(D,c):D;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:U(c)?c:Fn(_)?_.key:"",locale:y||(Fn(_)?_.locale:""),format:U(_)?_:Fn(_)?_.source:"",message:N};R.meta=Et({},e.__meta,s5()||{}),X4(R)}return N}function m5(e){je(e.list)?e.list=e.list.map(t=>U(t)?im(t):t):Be(e.named)&&Object.keys(e.named).forEach(t=>{U(e.named[t])&&(e.named[t]=im(e.named[t]))})}function v0(e,t,n,r,a,i){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:u}=e,d=u(e,r,n);let f={},p,h=null,g=n,v=null;const b="translate";for(let m=0;m<d.length;m++){if(p=v=d[m],process.env.NODE_ENV!=="production"&&n!==p&&Ec(a,t)&&l(Ci(rn.FALLBACK_TO_TRANSLATE,{key:t,target:p})),process.env.NODE_ENV!=="production"&&n!==p){const S=e.__v_emitter;S&&S.emit("fallback",{type:b,key:t,from:g,to:v,groupId:`${b}:${t}`})}f=s[p]||{};let y=null,k,_;if(process.env.NODE_ENV!=="production"&&qn&&(y=window.performance.now(),k="intlify-message-resolve-start",_="intlify-message-resolve-end",on&&on(k)),(h=c(f,t))===null&&(h=f[t]),process.env.NODE_ENV!=="production"&&qn){const S=window.performance.now(),C=e.__v_emitter;C&&y&&h&&C.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:S-y,groupId:`${b}:${t}`}),k&&_&&on&&Ia&&(on(_),Ia("intlify message resolve",k,_))}if(U(h)||ct(h))break;const w=Ef(e,t,p,i,b);w!==t&&(h=w),g=v}return[h,p,f]}function _0(e,t,n,r,a,i){const{messageCompiler:s,warnHtmlMessage:l}=e;if(Fn(r)){const p=r;return p.locale=p.locale||n,p.key=p.key||t,p}if(s==null){const p=()=>r;return p.locale=n,p.key=t,p}let c=null,u,d;process.env.NODE_ENV!=="production"&&qn&&(c=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",on&&on(u));const f=s(r,v5(e,n,a,r,l,i));if(process.env.NODE_ENV!=="production"&&qn){const p=window.performance.now(),h=e.__v_emitter;h&&c&&h.emit("message-compilation",{type:"message-compilation",message:r,time:p-c,groupId:`translate:${t}`}),u&&d&&on&&Ia&&(on(d),Ia("intlify message compilation",u,d))}return f.locale=n,f.key=t,f.source=r,f}function g5(e,t,n){let r=null,a,i;process.env.NODE_ENV!=="production"&&qn&&(r=window.performance.now(),a="intlify-message-evaluation-start",i="intlify-message-evaluation-end",on&&on(a));const s=t(n);if(process.env.NODE_ENV!=="production"&&qn){const l=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:s,time:l-r,groupId:`translate:${t.key}`}),a&&i&&on&&Ia&&(on(i),Ia("intlify message evaluation",a,i))}return s}function ld(...e){const[t,n,r]=e,a={};if(!U(t)&&!bt(t)&&!Fn(t))throw ui(dr.INVALID_ARGUMENT);const i=bt(t)?String(t):(Fn(t),t);return bt(n)?a.plural=n:U(n)?a.default=n:pe(n)&&!Sc(n)?a.named=n:je(n)&&(a.list=n),bt(r)?a.plural=r:U(r)?a.default=r:pe(r)&&Et(a,r),[i,a]}function v5(e,t,n,r,a,i){return{warnHtmlMessage:a,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const l=`Message compilation error: ${s.message}`,c=s.location&&l4(r,s.location.start.offset,s.location.end.offset),u=e.__v_emitter;u&&u.emit("compile-error",{message:r,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${l}
|
|
21
|
+
${c}`:l)}else throw s},onCacheKey:s=>r4(t,n,s)}}function _5(e,t,n,r){const{modifiers:a,pluralRules:i,messageResolver:s,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,p={locale:t,modifiers:a,pluralRules:i,messages:h=>{let g=s(n,h);if(g==null&&d){const[,,v]=v0(d,h,t,l,c,u);g=s(v,h)}if(U(g)){let v=!1;const m=_0(e,h,t,g,h,()=>{v=!0});return v?vm:m}else return Fn(g)?g:vm}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),bt(r.plural)&&(p.pluralIndex=r.plural),p}const ym=typeof Intl<"u",y0={dateTimeFormat:ym&&typeof Intl.DateTimeFormat<"u",numberFormat:ym&&typeof Intl.NumberFormat<"u"};function bm(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:s}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!y0.dateTimeFormat)return i(Ci(rn.CANNOT_FORMAT_DATE)),Ul;const[c,u,d,f]=cd(...t),p=we(d.missingWarn)?d.missingWarn:e.missingWarn,h=we(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,g=!!d.part,v=U(d.locale)?d.locale:e.locale,b=s(e,a,v);if(!U(c)||c==="")return new Intl.DateTimeFormat(v,f).format(u);let m={},y,k=null,_=v,w=null;const S="datetime format";for(let O=0;O<b.length;O++){if(y=w=b[O],process.env.NODE_ENV!=="production"&&v!==y&&Ec(h,c)&&i(Ci(rn.FALLBACK_TO_DATE_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&v!==y){const L=e.__v_emitter;L&&L.emit("fallback",{type:S,key:c,from:_,to:w,groupId:`${S}:${c}`})}if(m=n[y]||{},k=m[c],pe(k))break;Ef(e,c,y,p,S),_=w}if(!pe(k)||!U(y))return r?Cc:c;let C=`${y}__${c}`;Sc(f)||(C=`${C}__${JSON.stringify(f)}`);let E=l.get(C);return E||(E=new Intl.DateTimeFormat(y,Et({},k,f)),l.set(C,E)),g?E.formatToParts(u):E.format(u)}const b0=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function cd(...e){const[t,n,r,a]=e,i={};let s={},l;if(U(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw ui(dr.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(u);try{l.toISOString()}catch{throw ui(dr.INVALID_ISO_DATE_ARGUMENT)}}else if(i4(t)){if(isNaN(t.getTime()))throw ui(dr.INVALID_DATE_ARGUMENT);l=t}else if(bt(t))l=t;else throw ui(dr.INVALID_ARGUMENT);return U(n)?i.key=n:pe(n)&&Object.keys(n).forEach(c=>{b0.includes(c)?s[c]=n[c]:i[c]=n[c]}),U(r)?i.locale=r:pe(r)&&(s=r),pe(a)&&(s=a),[i.key||"",l,i,s]}function km(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function wm(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!y0.numberFormat)return i(Ci(rn.CANNOT_FORMAT_NUMBER)),Ul;const[c,u,d,f]=ud(...t),p=we(d.missingWarn)?d.missingWarn:e.missingWarn,h=we(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,g=!!d.part,v=U(d.locale)?d.locale:e.locale,b=s(e,a,v);if(!U(c)||c==="")return new Intl.NumberFormat(v,f).format(u);let m={},y,k=null,_=v,w=null;const S="number format";for(let O=0;O<b.length;O++){if(y=w=b[O],process.env.NODE_ENV!=="production"&&v!==y&&Ec(h,c)&&i(Ci(rn.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&v!==y){const L=e.__v_emitter;L&&L.emit("fallback",{type:S,key:c,from:_,to:w,groupId:`${S}:${c}`})}if(m=n[y]||{},k=m[c],pe(k))break;Ef(e,c,y,p,S),_=w}if(!pe(k)||!U(y))return r?Cc:c;let C=`${y}__${c}`;Sc(f)||(C=`${C}__${JSON.stringify(f)}`);let E=l.get(C);return E||(E=new Intl.NumberFormat(y,Et({},k,f)),l.set(C,E)),g?E.formatToParts(u):E.format(u)}const k0=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ud(...e){const[t,n,r,a]=e,i={};let s={};if(!bt(t))throw ui(dr.INVALID_ARGUMENT);const l=t;return U(n)?i.key=n:pe(n)&&Object.keys(n).forEach(c=>{k0.includes(c)?s[c]=n[c]:i[c]=n[c]}),U(r)?i.locale=r:pe(r)&&(s=r),pe(a)&&(s=a),[i.key||"",l,i,s]}function Sm(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vs().__INTLIFY_PROD_DEVTOOLS__=!1);function y5(){return w0().__VUE_DEVTOOLS_GLOBAL_HOOK__}function w0(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const b5=typeof Proxy=="function",k5="devtools-plugin:setup",w5="plugin:settings:set";let ti,dd;function S5(){var e;return ti!==void 0||(typeof window<"u"&&window.performance?(ti=!0,dd=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(ti=!0,dd=global.perf_hooks.performance):ti=!1),ti}function x5(){return S5()?dd.now():Date.now()}class C5{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const l=t.settings[s];r[s]=l.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const s=localStorage.getItem(a),l=JSON.parse(s);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(a,JSON.stringify(s))}catch{}i=s},now(){return x5()}},n&&n.on(w5,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function E5(e,t){const n=e,r=w0(),a=y5(),i=b5&&n.enableEarlyProxy;if(a&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))a.emit(k5,e,t);else{const s=i?new C5(n,a):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
|
|
22
|
+
* vue-devtools v9.2.2
|
|
23
|
+
* (c) 2022 kazuya kawaguchi
|
|
24
|
+
* Released under the MIT License.
|
|
25
|
+
*/const ku={["vue-devtools-plugin-vue-i18n"]:"Vue I18n devtools",["vue-i18n-resource-inspector"]:"I18n Resources",["vue-i18n-timeline"]:"Vue I18n"},T5={["vue-i18n-resource-inspector"]:"Search for scopes ..."},O5={["vue-i18n-timeline"]:16764185};/*!
|
|
26
|
+
* vue-i18n v9.2.2
|
|
27
|
+
* (c) 2022 kazuya kawaguchi
|
|
28
|
+
* Released under the MIT License.
|
|
29
|
+
*/const M5="9.2.2";function N5(){let e=!1;typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(e=!0,vs().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(e=!0,vs().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(vs().__INTLIFY_PROD_DEVTOOLS__=!1),process.env.NODE_ENV!=="production"&&e&&console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.")}let S0=rn.__EXTEND_POINT__;const ni=()=>++S0,xt={FALLBACK_TO_ROOT:S0,NOT_SUPPORTED_PRESERVE:ni(),NOT_SUPPORTED_FORMATTER:ni(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ni(),NOT_SUPPORTED_GET_CHOICE_INDEX:ni(),COMPONENT_NAME_LEGACY_COMPATIBLE:ni(),NOT_FOUND_PARENT_SCOPE:ni()},D5={[xt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[xt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[xt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[xt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[xt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[xt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[xt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function Cn(e,...t){return wc(D5[e],...t)}let x0=fe.__EXTEND_POINT__;const Ft=()=>++x0,Ce={UNEXPECTED_RETURN_TYPE:x0,INVALID_ARGUMENT:Ft(),MUST_BE_CALL_SETUP_TOP:Ft(),NOT_INSLALLED:Ft(),NOT_AVAILABLE_IN_LEGACY_MODE:Ft(),REQUIRED_VALUE:Ft(),INVALID_VALUE:Ft(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ft(),NOT_INSLALLED_WITH_PROVIDE:Ft(),UNEXPECTED_ERROR:Ft(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ft(),BRIDGE_SUPPORT_VUE_2_ONLY:Ft(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ft(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ft(),__EXTEND_POINT__:Ft()};function gt(e,...t){return xc(e,null,process.env.NODE_ENV!=="production"?{messages:P5,args:t}:void 0)}const P5={[Ce.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ce.INVALID_ARGUMENT]:"Invalid argument",[Ce.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ce.NOT_INSLALLED]:"Need to install with `app.use` function",[Ce.UNEXPECTED_ERROR]:"Unexpected error",[Ce.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Ce.REQUIRED_VALUE]:"Required in value: {0}",[Ce.INVALID_VALUE]:"Invalid value",[Ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ce.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ce.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ce.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},fd=Jn("__transrateVNode"),pd=Jn("__datetimeParts"),hd=Jn("__numberParts"),La=Jn("__enableEmitter"),Fs=Jn("__disableEmitter"),C0=Jn("__setPluralRules");Jn("__intlifyMeta");const E0=Jn("__injectWithOption");function md(e){if(!Be(e))return e;for(const t in e)if(wf(e,t))if(!t.includes("."))Be(e[t])&&md(e[t]);else{const n=t.split("."),r=n.length-1;let a=e;for(let i=0;i<r;i++)n[i]in a||(a[n[i]]={}),a=a[n[i]];a[n[r]]=e[t],delete e[t],Be(a[n[r]])&&md(a[n[r]])}return e}function Tc(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:i}=t,s=pe(n)?n:je(r)?{}:{[e]:{}};if(je(r)&&r.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(s[c]=s[c]||{},_s(u,s[c])):_s(u,s)}else U(l)&&_s(JSON.parse(l),s)}),a==null&&i)for(const l in s)wf(s,l)&&md(s[l]);return s}const Yo=e=>!Be(e)||je(e);function _s(e,t){if(Yo(e)||Yo(t))throw gt(Ce.INVALID_VALUE);for(const n in e)wf(e,n)&&(Yo(e[n])||Yo(t[n])?t[n]=e[n]:_s(e[n],t[n]))}function T0(e){return e.type}function O0(e,t,n){let r=Be(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Tc(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Be(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(Be(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function xm(e){return o.createVNode(o.Text,null,e,0)}const Cm="__INTLIFY_META__";let Em=0;function Tm(e){return(t,n,r,a)=>e(n,r,o.getCurrentInstance()||void 0,a)}const A5=()=>{const e=o.getCurrentInstance();let t=null;return e&&(t=T0(e)[Cm])?{[Cm]:t}:null};function Tf(e={},t){const{__root:n}=e,r=n===void 0;let a=we(e.inheritLocale)?e.inheritLocale:!0;const i=o.ref(n&&a?n.locale.value:U(e.locale)?e.locale:uo),s=o.ref(n&&a?n.fallbackLocale.value:U(e.fallbackLocale)||je(e.fallbackLocale)||pe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),l=o.ref(Tc(i.value,e)),c=o.ref(pe(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),u=o.ref(pe(e.numberFormats)?e.numberFormats:{[i.value]:{}});let d=n?n.missingWarn:we(e.missingWarn)||Jr(e.missingWarn)?e.missingWarn:!0,f=n?n.fallbackWarn:we(e.fallbackWarn)||Jr(e.fallbackWarn)?e.fallbackWarn:!0,p=n?n.fallbackRoot:we(e.fallbackRoot)?e.fallbackRoot:!0,h=!!e.fallbackFormat,g=ct(e.missing)?e.missing:null,v=ct(e.missing)?Tm(e.missing):null,b=ct(e.postTranslation)?e.postTranslation:null,m=n?n.warnHtmlMessage:we(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const k=n?n.modifiers:pe(e.modifiers)?e.modifiers:{};let _=e.pluralRules||n&&n.pluralRules,w;w=(()=>{r&&hm(null);const I={version:M5,locale:i.value,fallbackLocale:s.value,messages:l.value,modifiers:k,pluralRules:_,missing:v===null?void 0:v,missingWarn:d,fallbackWarn:f,fallbackFormat:h,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:m,escapeParameter:y,messageResolver:e.messageResolver,__meta:{framework:"vue"}};I.datetimeFormats=c.value,I.numberFormats=u.value,I.__datetimeFormatters=pe(w)?w.__datetimeFormatters:void 0,I.__numberFormatters=pe(w)?w.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(I.__v_emitter=pe(w)?w.__v_emitter:void 0);const $=l5(I);return r&&hm($),$})(),Qi(w,i.value,s.value);function C(){return[i.value,s.value,l.value,c.value,u.value]}const E=o.computed({get:()=>i.value,set:I=>{i.value=I,w.locale=i.value}}),O=o.computed({get:()=>s.value,set:I=>{s.value=I,w.fallbackLocale=s.value,Qi(w,i.value,I)}}),L=o.computed(()=>l.value),D=o.computed(()=>c.value),N=o.computed(()=>u.value);function R(){return ct(b)?b:null}function re(I){b=I,w.postTranslation=I}function K(){return g}function Z(I){I!==null&&(v=Tm(I)),g=I,w.missing=v}function X(I,$){return I!=="translate"||!$.resolvedMessage}const ce=(I,$,Ye,qe,In,pn)=>{C();let hn;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)try{pm(A5()),r||(w.fallbackContext=n?o5():void 0),hn=I(w)}finally{pm(null),r||(w.fallbackContext=void 0)}else hn=I(w);if(bt(hn)&&hn===Cc){const[Sn,Xi]=$();if(process.env.NODE_ENV!=="production"&&n&&U(Sn)&&X(Ye,Xi)&&(p&&(Ec(f,Sn)||m0(d,Sn))&&Ut(Cn(xt.FALLBACK_TO_ROOT,{key:Sn,type:Ye})),process.env.NODE_ENV!=="production")){const{__v_emitter:ei}=w;ei&&p&&ei.emit("fallback",{type:Ye,key:Sn,to:"global",groupId:`${Ye}:${Sn}`})}return n&&p?qe(n):In(Sn)}else{if(pn(hn))return hn;throw gt(Ce.UNEXPECTED_RETURN_TYPE)}};function Y(...I){return ce($=>Reflect.apply(_m,null,[$,...I]),()=>ld(...I),"translate",$=>Reflect.apply($.t,$,[...I]),$=>$,$=>U($))}function se(...I){const[$,Ye,qe]=I;if(qe&&!Be(qe))throw gt(Ce.INVALID_ARGUMENT);return Y($,Ye,Et({resolvedMessage:!0},qe||{}))}function de(...I){return ce($=>Reflect.apply(bm,null,[$,...I]),()=>cd(...I),"datetime format",$=>Reflect.apply($.d,$,[...I]),()=>Ul,$=>U($))}function Te(...I){return ce($=>Reflect.apply(wm,null,[$,...I]),()=>ud(...I),"number format",$=>Reflect.apply($.n,$,[...I]),()=>Ul,$=>U($))}function Fe(I){return I.map($=>U($)||bt($)||we($)?xm(String($)):$)}const ie={normalize:Fe,interpolate:I=>I,type:"vnode"};function V(...I){return ce($=>{let Ye;const qe=$;try{qe.processor=ie,Ye=Reflect.apply(_m,null,[qe,...I])}finally{qe.processor=null}return Ye},()=>ld(...I),"translate",$=>$[fd](...I),$=>[xm($)],$=>je($))}function Q(...I){return ce($=>Reflect.apply(wm,null,[$,...I]),()=>ud(...I),"number format",$=>$[hd](...I),()=>[],$=>U($)||je($))}function Ae(...I){return ce($=>Reflect.apply(bm,null,[$,...I]),()=>cd(...I),"datetime format",$=>$[pd](...I),()=>[],$=>U($)||je($))}function et(I){_=I,w.pluralRules=_}function _t(I,$){const Ye=U($)?$:i.value,qe=T(Ye);return w.messageResolver(qe,I)!==null}function ut(I){let $=null;const Ye=c0(w,s.value,i.value);for(let qe=0;qe<Ye.length;qe++){const In=l.value[Ye[qe]]||{},pn=w.messageResolver(In,I);if(pn!=null){$=pn;break}}return $}function fn(I){const $=ut(I);return $??(n?n.tm(I)||{}:{})}function T(I){return l.value[I]||{}}function x(I,$){l.value[I]=$,w.messages=l.value}function P(I,$){l.value[I]=l.value[I]||{},_s($,l.value[I]),w.messages=l.value}function H(I){return c.value[I]||{}}function te(I,$){c.value[I]=$,w.datetimeFormats=c.value,km(w,I,$)}function ue(I,$){c.value[I]=Et(c.value[I]||{},$),w.datetimeFormats=c.value,km(w,I,$)}function yt(I){return u.value[I]||{}}function st(I,$){u.value[I]=$,w.numberFormats=u.value,Sm(w,I,$)}function Qt(I,$){u.value[I]=Et(u.value[I]||{},$),w.numberFormats=u.value,Sm(w,I,$)}Em++,n&&qn&&(o.watch(n.locale,I=>{a&&(i.value=I,w.locale=I,Qi(w,i.value,s.value))}),o.watch(n.fallbackLocale,I=>{a&&(s.value=I,w.fallbackLocale=I,Qi(w,i.value,s.value))}));const Ve={id:Em,locale:E,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(I){a=I,I&&n&&(i.value=n.locale.value,s.value=n.fallbackLocale.value,Qi(w,i.value,s.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:L,get modifiers(){return k},get pluralRules(){return _||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(I){d=I,w.missingWarn=d},get fallbackWarn(){return f},set fallbackWarn(I){f=I,w.fallbackWarn=f},get fallbackRoot(){return p},set fallbackRoot(I){p=I},get fallbackFormat(){return h},set fallbackFormat(I){h=I,w.fallbackFormat=h},get warnHtmlMessage(){return m},set warnHtmlMessage(I){m=I,w.warnHtmlMessage=I},get escapeParameter(){return y},set escapeParameter(I){y=I,w.escapeParameter=I},t:Y,getLocaleMessage:T,setLocaleMessage:x,mergeLocaleMessage:P,getPostTranslationHandler:R,setPostTranslationHandler:re,getMissingHandler:K,setMissingHandler:Z,[C0]:et};return Ve.datetimeFormats=D,Ve.numberFormats=N,Ve.rt=se,Ve.te=_t,Ve.tm=fn,Ve.d=de,Ve.n=Te,Ve.getDateTimeFormat=H,Ve.setDateTimeFormat=te,Ve.mergeDateTimeFormat=ue,Ve.getNumberFormat=yt,Ve.setNumberFormat=st,Ve.mergeNumberFormat=Qt,Ve[E0]=e.__injectWithOption,Ve[fd]=V,Ve[pd]=Ae,Ve[hd]=Q,process.env.NODE_ENV!=="production"&&(Ve[La]=I=>{w.__v_emitter=I},Ve[Fs]=()=>{w.__v_emitter=void 0}),Ve}function I5(e){const t=U(e.locale)?e.locale:uo,n=U(e.fallbackLocale)||je(e.fallbackLocale)||pe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ct(e.missing)?e.missing:void 0,a=we(e.silentTranslationWarn)||Jr(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=we(e.silentFallbackWarn)||Jr(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=we(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=pe(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=ct(e.postTranslation)?e.postTranslation:void 0,f=U(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,h=we(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Ut(Cn(xt.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Ut(Cn(xt.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let g=e.messages;if(pe(e.sharedMessages)){const w=e.sharedMessages;g=Object.keys(w).reduce((C,E)=>{const O=C[E]||(C[E]={});return Et(O,w[E]),C},g||{})}const{__i18n:v,__root:b,__injectWithOption:m}=e,y=e.datetimeFormats,k=e.numberFormats,_=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:_,datetimeFormats:y,numberFormats:k,missing:r,missingWarn:a,fallbackWarn:i,fallbackRoot:s,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:h,__i18n:v,__root:b,__injectWithOption:m}}function gd(e={},t){{const n=Tf(I5(e)),r={id:n.id,get locale(){return n.locale.value},set locale(a){n.locale.value=a},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(a){n.fallbackLocale.value=a},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Ut(Cn(xt.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(a){process.env.NODE_ENV!=="production"&&Ut(Cn(xt.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(a){n.setMissingHandler(a)},get silentTranslationWarn(){return we(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(a){n.missingWarn=we(a)?!a:a},get silentFallbackWarn(){return we(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(a){n.fallbackWarn=we(a)?!a:a},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(a){n.fallbackFormat=a},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(a){n.setPostTranslationHandler(a)},get sync(){return n.inheritLocale},set sync(a){n.inheritLocale=a},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){n.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(a){n.escapeParameter=a},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Ut(Cn(xt.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(a){process.env.NODE_ENV!=="production"&&Ut(Cn(xt.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...a){const[i,s,l]=a,c={};let u=null,d=null;if(!U(i))throw gt(Ce.INVALID_ARGUMENT);const f=i;return U(s)?c.locale=s:je(s)?u=s:pe(s)&&(d=s),je(l)?u=l:pe(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},rt(...a){return Reflect.apply(n.rt,n,[...a])},tc(...a){const[i,s,l]=a,c={plural:1};let u=null,d=null;if(!U(i))throw gt(Ce.INVALID_ARGUMENT);const f=i;return U(s)?c.locale=s:bt(s)?c.plural=s:je(s)?u=s:pe(s)&&(d=s),U(l)?c.locale=l:je(l)?u=l:pe(l)&&(d=l),Reflect.apply(n.t,n,[f,u||d||{},c])},te(a,i){return n.te(a,i)},tm(a){return n.tm(a)},getLocaleMessage(a){return n.getLocaleMessage(a)},setLocaleMessage(a,i){n.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){n.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(n.d,n,[...a])},getDateTimeFormat(a){return n.getDateTimeFormat(a)},setDateTimeFormat(a,i){n.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){n.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(n.n,n,[...a])},getNumberFormat(a){return n.getNumberFormat(a)},setNumberFormat(a,i){n.setNumberFormat(a,i)},mergeNumberFormat(a,i){n.mergeNumberFormat(a,i)},getChoiceIndex(a,i){return process.env.NODE_ENV!=="production"&&Ut(Cn(xt.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(a){const{componentInstanceCreatedListener:i}=e;i&&i(a,r)}};return process.env.NODE_ENV!=="production"&&(r.__enableEmitter=a=>{const i=n;i[La]&&i[La](a)},r.__disableEmitter=()=>{const a=n;a[Fs]&&a[Fs]()}),r}}const Of={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function L5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>r=[...r,...je(a.children)?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function M0(e){return o.Fragment}const wu={name:"i18n-t",props:Et({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>bt(e)||!isNaN(e)}},Of),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||ne({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=U(e.plural)?+e.plural:e.plural);const l=L5(t,i),c=a[fd](e.keypath,l,s),u=Et({},r),d=U(e.tag)||Be(e.tag)?e.tag:M0();return o.h(d,u,c)}}};function R5(e){return je(e)&&!U(e[0])}function N0(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const s={part:!0};let l={};e.locale&&(s.locale=e.locale),U(e.format)?s.key=e.format:Be(e.format)&&(U(e.format.key)&&(s.key=e.format.key),l=Object.keys(e.format).reduce((p,h)=>n.includes(h)?Et({},p,{[h]:e.format[h]}):p,{}));const c=r(e.value,s,l);let u=[s.key];je(c)?u=c.map((p,h)=>{const g=a[p.type],v=g?g({[p.type]:p.value,index:h,parts:c}):[p.value];return R5(v)&&(v[0].key=`${p.type}-${h}`),v}):U(c)&&(u=[c]);const d=Et({},i),f=U(e.tag)||Be(e.tag)?e.tag:M0();return o.h(f,d,u)}}const Om={name:"i18n-n",props:Et({value:{type:Number,required:!0},format:{type:[String,Object]}},Of),setup(e,t){const n=e.i18n||ne({useScope:"parent",__useComponent:!0});return N0(e,t,k0,(...r)=>n[hd](...r))}},Mm={name:"i18n-d",props:Et({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Of),setup(e,t){const n=e.i18n||ne({useScope:"parent",__useComponent:!0});return N0(e,t,b0,(...r)=>n[pd](...r))}};function B5(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function V5(e){const t=s=>{const{instance:l,modifiers:c,value:u}=s;if(!l||!l.$)throw gt(Ce.UNEXPECTED_ERROR);const d=B5(e,l.$);process.env.NODE_ENV!=="production"&&c.preserve&&Ut(Cn(xt.NOT_SUPPORTED_PRESERVE));const f=Nm(u);return[Reflect.apply(d.t,d,[...Dm(f)]),d]};return{created:(s,l)=>{const[c,u]=t(l);qn&&e.global===u&&(s.__i18nWatcher=o.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),s.__composer=u,s.textContent=c},unmounted:s=>{qn&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:l})=>{if(s.__composer){const c=s.__composer,u=Nm(l);s.textContent=Reflect.apply(c.t,c,[...Dm(u)])}},getSSRProps:s=>{const[l]=t(s);return{textContent:l}}}}function Nm(e){if(U(e))return{path:e};if(pe(e)){if(!("path"in e))throw gt(Ce.REQUIRED_VALUE,"path");return e}else throw gt(Ce.INVALID_VALUE)}function Dm(e){const{path:t,locale:n,args:r,choice:a,plural:i}=e,s={},l=r||{};return U(n)&&(s.locale=n),bt(a)&&(s.plural=a),bt(i)&&(s.plural=i),[t,l,s]}function $5(e,t,...n){const r=pe(n[0])?n[0]:{},a=!!r.useI18nComponentName,i=we(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&i&&a&&Ut(Cn(xt.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:wu.name})),i&&(e.component(a?"i18n":wu.name,wu),e.component(Om.name,Om),e.component(Mm.name,Mm)),e.directive("t",V5(t))}const D0="vue-i18n: composer properties";let vd;async function F5(e,t){return new Promise((n,r)=>{try{E5({id:"vue-devtools-plugin-vue-i18n",label:ku["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[D0],app:e},a=>{vd=a,a.on.visitComponentTree(({componentInstance:s,treeNode:l})=>{z5(s,l,t)}),a.on.inspectComponent(({componentInstance:s,instanceData:l})=>{s.vnode.el&&s.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?s.vnode.el.__VUE_I18N__!==t.global.__composer&&Pm(l,s.vnode.el.__VUE_I18N__):Pm(l,s.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:ku["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:T5["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&Y5(s,t)});const i=new Map;a.on.getInspectorState(async s=>{if(s.app===e&&s.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),G5(s,t),s.nodeId==="global"){if(!i.has(s.app)){const[l]=await a.getComponentInstances(s.app);i.set(s.app,l)}a.highlightElement(i.get(s.app))}else{const l=q5(s.nodeId,t);l&&a.highlightElement(l)}}),a.on.editInspectorState(s=>{s.app===e&&s.inspectorId==="vue-i18n-resource-inspector"&&K5(s,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:ku["vue-i18n-timeline"],color:O5["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),r(!1)}})}function P0(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function z5(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const a={label:`i18n (${P0(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Pm(e,t){const n=D0;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Mf(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Mf(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ct(r)&&"source"in r?t[n]=U5(r):Be(r)?t[n]=Mf(r):t[n]=r}),t}const j5={"<":"<",">":">",'"':""","&":"&"};function H5(e){return e.replace(/[<>"&]/g,W5)}function W5(e){return j5[e]||e}function U5(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${H5(e.source)}")`:"(?)"}`}}}function Y5(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,a]of t.__instances){const i=t.mode==="composition"?a:a.__composer;n!==i&&e.rootNodes.push({id:i.id.toString(),label:`${P0(r)} Scope`})}}function q5(e,t){let n=null;if(e!=="global"){for(const[r,a]of t.__instances.entries())if(a.id.toString()===e){n=r;break}}return n}function A0(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function G5(e,t){const n=A0(e.nodeId,t);return n&&(e.state=X5(n)),null}function X5(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const a="Locale messages info",i=[{type:a,key:"messages",editable:!1,value:Mf(e.messages.value)}];t[a]=i;{const s="Datetime formats info",l=[{type:s,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[s]=l;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function zs(e,t){if(vd){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),vd.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function K5(e,t){const n=A0(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&U(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(U(e.state.value)||je(e.state.value)||Be(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&we(e.state.value)&&(n.inheritLocale=e.state.value)}}function J5(e,t,n){return{beforeCreate(){const r=o.getCurrentInstance();if(!r)throw gt(Ce.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;a.__i18n&&(i.__i18n=a.__i18n),i.__root=t,this===this.$root?this.$i18n=Am(e,i):(i.__injectWithOption=!0,this.$i18n=gd(i))}else a.__i18n?this===this.$root?this.$i18n=Am(e,a):this.$i18n=gd({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;a.__i18nGlobal&&O0(t,a,a),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,s)=>this.$i18n.te(i,s),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){this.$el.__VUE_I18N__=this.$i18n.__composer;const r=this.__v_emitter=xf(),a=this.$i18n;a.__enableEmitter&&a.__enableEmitter(r),r.on("*",zs)}},unmounted(){const r=o.getCurrentInstance();if(!r)throw gt(Ce.UNEXPECTED_ERROR);if(process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",zs),delete this.__v_emitter),this.$i18n)){const a=this.$i18n;a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Am(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[C0](t.pluralizationRules||e.pluralizationRules);const n=Tc(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const Z5=Jn("global-vue-i18n");function Q5(e={},t){const n=__VUE_I18N_LEGACY_API__&&we(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=we(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[s,l]=ek(e,n),c=Jn(process.env.NODE_ENV!=="production"?"vue-i18n":"");function u(p){return i.get(p)||null}function d(p,h){i.set(p,h)}function f(p){i.delete(p)}{const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(h,...g){process.env.NODE_ENV!=="production"&&(h.__VUE_I18N__=p),h.__VUE_I18N_SYMBOL__=c,h.provide(h.__VUE_I18N_SYMBOL__,p),!n&&r&&ck(h,p.global),__VUE_I18N_FULL_INSTALL__&&$5(h,p,...g),__VUE_I18N_LEGACY_API__&&n&&h.mixin(J5(l,l.__composer,p));const v=h.unmount;if(h.unmount=()=>{p.dispose(),v()},process.env.NODE_ENV!=="production"){if(!await F5(h,p))throw gt(Ce.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const m=xf();if(n){const y=l;y.__enableEmitter&&y.__enableEmitter(m)}else{const y=l;y[La]&&y[La](m)}m.on("*",zs)}},get global(){return l},dispose(){s.stop()},__instances:i,__getInstance:u,__setInstance:d,__deleteInstance:f};return p}}function ne(e={}){const t=o.getCurrentInstance();if(t==null)throw gt(Ce.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw gt(Ce.NOT_INSLALLED);const n=tk(t),r=rk(n),a=T0(t),i=nk(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw gt(Ce.NOT_AVAILABLE_IN_LEGACY_MODE);return sk(t,i,r,e)}if(i==="global")return O0(r,e,a),r;if(i==="parent"){let c=ak(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&Ut(Cn(xt.NOT_FOUND_PARENT_SCOPE)),c=r),c}const s=n;let l=s.__getInstance(t);if(l==null){const c=Et({},e);"__i18n"in a&&(c.__i18n=a.__i18n),r&&(c.__root=r),l=Tf(c),ik(s,t,l),s.__setInstance(t,l)}return l}function ek(e,t,n){const r=o.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>gd(e)):r.run(()=>Tf(e));if(a==null)throw gt(Ce.UNEXPECTED_ERROR);return[r,a]}}function tk(e){{const t=o.inject(e.isCE?Z5:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw gt(e.isCE?Ce.NOT_INSLALLED_WITH_PROVIDE:Ce.UNEXPECTED_ERROR);return t}}function nk(e,t){return Sc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function rk(e){return e.mode==="composition"?e.global:e.global.__composer}function ak(e,t,n=!1){let r=null;const a=t.root;let i=t.parent;for(;i!=null;){const s=e;if(e.mode==="composition")r=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const l=s.__getInstance(i);l!=null&&(r=l.__composer,n&&r&&!r[E0]&&(r=null))}if(r!=null||a===i)break;i=i.parent}return r}function ik(e,t,n){let r=null;o.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=xf();const a=n;a[La]&&a[La](r),r.on("*",zs)}},t),o.onUnmounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",zs);const a=n;a[Fs]&&a[Fs](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)},t)}function sk(e,t,n,r={}){const a=t==="local",i=o.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw gt(Ce.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=we(r.inheritLocale)?r.inheritLocale:!0,l=o.ref(a&&s?n.locale.value:U(r.locale)?r.locale:uo),c=o.ref(a&&s?n.fallbackLocale.value:U(r.fallbackLocale)||je(r.fallbackLocale)||pe(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),u=o.ref(Tc(l.value,r)),d=o.ref(pe(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),f=o.ref(pe(r.numberFormats)?r.numberFormats:{[l.value]:{}}),p=a?n.missingWarn:we(r.missingWarn)||Jr(r.missingWarn)?r.missingWarn:!0,h=a?n.fallbackWarn:we(r.fallbackWarn)||Jr(r.fallbackWarn)?r.fallbackWarn:!0,g=a?n.fallbackRoot:we(r.fallbackRoot)?r.fallbackRoot:!0,v=!!r.fallbackFormat,b=ct(r.missing)?r.missing:null,m=ct(r.postTranslation)?r.postTranslation:null,y=a?n.warnHtmlMessage:we(r.warnHtmlMessage)?r.warnHtmlMessage:!0,k=!!r.escapeParameter,_=a?n.modifiers:pe(r.modifiers)?r.modifiers:{},w=r.pluralRules||a&&n.pluralRules;function S(){return[l.value,c.value,u.value,d.value,f.value]}const C=o.computed({get:()=>i.value?i.value.locale.value:l.value,set:x=>{i.value&&(i.value.locale.value=x),l.value=x}}),E=o.computed({get:()=>i.value?i.value.fallbackLocale.value:c.value,set:x=>{i.value&&(i.value.fallbackLocale.value=x),c.value=x}}),O=o.computed(()=>i.value?i.value.messages.value:u.value),L=o.computed(()=>d.value),D=o.computed(()=>f.value);function N(){return i.value?i.value.getPostTranslationHandler():m}function R(x){i.value&&i.value.setPostTranslationHandler(x)}function re(){return i.value?i.value.getMissingHandler():b}function K(x){i.value&&i.value.setMissingHandler(x)}function Z(x){return S(),x()}function X(...x){return i.value?Z(()=>Reflect.apply(i.value.t,null,[...x])):Z(()=>"")}function ce(...x){return i.value?Reflect.apply(i.value.rt,null,[...x]):""}function Y(...x){return i.value?Z(()=>Reflect.apply(i.value.d,null,[...x])):Z(()=>"")}function se(...x){return i.value?Z(()=>Reflect.apply(i.value.n,null,[...x])):Z(()=>"")}function de(x){return i.value?i.value.tm(x):{}}function Te(x,P){return i.value?i.value.te(x,P):!1}function Fe(x){return i.value?i.value.getLocaleMessage(x):{}}function ve(x,P){i.value&&(i.value.setLocaleMessage(x,P),u.value[x]=P)}function ie(x,P){i.value&&i.value.mergeLocaleMessage(x,P)}function V(x){return i.value?i.value.getDateTimeFormat(x):{}}function Q(x,P){i.value&&(i.value.setDateTimeFormat(x,P),d.value[x]=P)}function Ae(x,P){i.value&&i.value.mergeDateTimeFormat(x,P)}function et(x){return i.value?i.value.getNumberFormat(x):{}}function _t(x,P){i.value&&(i.value.setNumberFormat(x,P),f.value[x]=P)}function ut(x,P){i.value&&i.value.mergeNumberFormat(x,P)}const fn={get id(){return i.value?i.value.id:-1},locale:C,fallbackLocale:E,messages:O,datetimeFormats:L,numberFormats:D,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(x){i.value&&(i.value.inheritLocale=x)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:_},get pluralRules(){return i.value?i.value.pluralRules:w},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:p},set missingWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(x){i.value&&(i.value.missingWarn=x)},get fallbackRoot(){return i.value?i.value.fallbackRoot:g},set fallbackRoot(x){i.value&&(i.value.fallbackRoot=x)},get fallbackFormat(){return i.value?i.value.fallbackFormat:v},set fallbackFormat(x){i.value&&(i.value.fallbackFormat=x)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:y},set warnHtmlMessage(x){i.value&&(i.value.warnHtmlMessage=x)},get escapeParameter(){return i.value?i.value.escapeParameter:k},set escapeParameter(x){i.value&&(i.value.escapeParameter=x)},t:X,getPostTranslationHandler:N,setPostTranslationHandler:R,getMissingHandler:re,setMissingHandler:K,rt:ce,d:Y,n:se,tm:de,te:Te,getLocaleMessage:Fe,setLocaleMessage:ve,mergeLocaleMessage:ie,getDateTimeFormat:V,setDateTimeFormat:Q,mergeDateTimeFormat:Ae,getNumberFormat:et,setNumberFormat:_t,mergeNumberFormat:ut};function T(x){x.locale.value=l.value,x.fallbackLocale.value=c.value,Object.keys(u.value).forEach(P=>{x.mergeLocaleMessage(P,u.value[P])}),Object.keys(d.value).forEach(P=>{x.mergeDateTimeFormat(P,d.value[P])}),Object.keys(f.value).forEach(P=>{x.mergeNumberFormat(P,f.value[P])}),x.escapeParameter=k,x.fallbackFormat=v,x.fallbackRoot=g,x.fallbackWarn=h,x.missingWarn=p,x.warnHtmlMessage=y}return o.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw gt(Ce.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const x=i.value=e.proxy.$i18n.__composer;t==="global"?(l.value=x.locale.value,c.value=x.fallbackLocale.value,u.value=x.messages.value,d.value=x.datetimeFormats.value,f.value=x.numberFormats.value):a&&T(x)}),fn}const ok=["locale","fallbackLocale","availableLocales"],lk=["t","rt","d","n","tm"];function ck(e,t){const n=Object.create(null);ok.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a)throw gt(Ce.UNEXPECTED_ERROR);const i=o.isRef(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,i)}),e.config.globalProperties.$i18n=n,lk.forEach(r=>{const a=Object.getOwnPropertyDescriptor(t,r);if(!a||!a.value)throw gt(Ce.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,a)})}r5(p5);a5(V4);i5(c0);N5();if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=vs();e.__INTLIFY__=!0,q4(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function uk(e="en"){return Q5({legacy:!1,locale:e,fallbackLocale:"en",messages:{en:{cardLottery:{setBanner:"Set As Banner",setIcon:"Set As Icon",openAnother:"Open Another"},cards:{roundDrawn:"Round Drawn",roundPlayed:"Round Played",card:"Card",cards:"Cards",inclusion:"Inclusion",avgCopies:"Avg. Copies",mulliganWinrate:"Mull. Winrate",keptInMulligan:"Kept In Mull.",drawnWinrate:"Drawn Winrate",turnPlayed:"Turn Played",turnsHeld:"Turns Held",recommendedDecks:"Recommended Decks",similarCards:"Similar Cards",attack:"Attack",health:"Health",quantityOwned:"Quantity Owned"},deck:{copyDeckCode:"Copy Deck Code",deckCodeCopied:"Deck Code Copied",deleteDeck:"Delete Deck",deleteDeckConfirmation:"Are you sure you would like to delete this deck?",editDeckName:"Edit Deck Name",signInToUpload:"Please sign in to upload deck to LoR",uploadDeckToLor:"Upload Deck to Legends of Runeterra",deckUploaded:"Deck Uploaded!",updatePrivacy:"Update Deck Privacy",deckPrivate:"Currently Private",deckPublic:"Currently Public",openInDeckBuilder:"Open in Deck Builder",numManaCards:"{num} Mana Cards",simulateMulligan:"Simulate Mulligan",replaceAllCards:"Replace All Cards",replaceSelectedCards:"Replace Selected Cards",personalCost:"Personal Cost",originalCost:"Original Cost",openArchetypePage:"Open Archetype Page",shareDeck:"Share Deck"},archetype:{abbreviation:"A"},leaderboard:{totalPlayers:"Total Players",lp:"LP",rank:"Rank",updated:"Updated"},general:{manaCost:"Mana Cost",cost:"Cost",regions:"Regions",clear:"Clear",clearAll:"Clear All",copy:"Copy",patch:"Patch",matches:"Matches",wins:"Wins",losses:"Losses",winrate:"Winrate",quantity:"Quantity",round:"Round",total:"Total",champion:"Champion",follower:"Follower",spell:"Spell",landmark:"Landmark",equipment:"Equipment",champions:"Champions",followers:"Followers",spells:"Spells",landmarks:"Landmarks",equipments:"Equipment",statistics:"Statistics",advanced:"Advanced",newAdvancedFilter:"New Advanced Filter",types:"Types",rarities:"Rarities",sets:"Sets",keywords:"Keywords",pastDays:"Past {count} Days",pastHours:"Past {count} Hours",pastHour:"Past Hour",season:"Season",servers:"Servers",sampleSize:"Sample Size",minimumMatches:"Minimum Matches",ranks:"Ranks",allRanks:"All Ranks",platPlus:"Platinum+",deck:"Deck",manaCurve:"Mana Curve",name:"Name",updated:"Updated",created:"Created",card:"Card",cards:"Cards",inclusion:"Inclusion",avgCopies:"Avg. Copies",turnsHeld:"Turns Held",mulliganWinrate:"Mulligan WR",keptInMulligan:"Kept in Mulligan",drawnWinrate:"Drawn Winrate",turnPlayed:"Turn Played",playrate:"Playrate",deckDifferences:"Deck Differences",player:"Player",lp:"LP",change:"Change",favoriteDeck:"Favorite Deck",server:"Server",players:"Players",time:"Time",type:"Type",rarity:"Rarity",archetypes:"Archetypes",leaderboard:"Leaderboard",victory:"Victory",defeat:"Defeat",newCards:"New Cards",signIn:"Log In",syncUserData:"Sync User Data",settings:"Settings",gamesPlayed:"Games Played",premium:"Premium",renews:"Renews",expires:"Expires",getPremium:"Get Premium!",becomeTheMaster:"Become The Master",format:"Format",otherFormats:"Other Formats",queues:"Queues",saveDeck:"Save Deck"}},de:{cardLottery:{setBanner:"1Set As Banner",setIcon:"1Set As Icon",openAnother:"1Open Another"},cards:{roundDrawn:"1Round Drawn",roundPlayed:"1Round Played",card:"1Card",cards:"1Cards",inclusion:"1Inclusion",avgCopies:"1Avg. Copies",mulliganWinrate:"1Mull. Winrate",keptInMulligan:"1Kept In Mull.",drawnWinrate:"1Drawn Winrate",turnPlayed:"1Turn Played",turnsHeld:"1Turns Held",recommendedDecks:"1Recommended Decks",similarCards:"1Similar Cards",attack:"1Attack",health:"1Health",quantityOwned:"1Quantity Owned"},deck:{copyDeckCode:"1Copy Deck Code",deckCodeCopied:"1Deck Code Copied",deleteDeck:"1Delete Deck",deleteDeckConfirmation:"Are you sure you would like to delete this deck?",editDeckName:"1Edit Deck Name",signInToUpload:"1Please sign in to upload deck to LoR",uploadDeckToLor:"1Upload Deck to Legends of Runeterra",deckUploaded:"1Deck Uploaded!",updatePrivacy:"1Update Deck Privacy",deckPrivate:"1Currently Private",deckPublic:"1Currently Public",openInDeckBuilder:"1Open in Deck Builder",numManaCards:"1{num} Mana Cards",simulateMulligan:"1Simulate Mulligan",replaceAllCards:"1Replace All Cards",replaceSelectedCards:"1Replace Selected Cards",personalCost:"1Personal Cost",originalCost:"1Original Cost",openArchetypePage:"1Open Archetype Page",shareDeck:"1Share Deck"},archetype:{abbreviation:"1A"},leaderboard:{totalPlayers:"1Total Players",lp:"1LP",rank:"1Rank",updated:"1Updated"},general:{manaCost:"1Mana Cost",cost:"1Cost",regions:"1Regions",clear:"1Clear",copy:"1Copy",patch:"1Patch",matches:"1Matches",wins:"1Wins",losses:"1Losses",winrate:"1Winrate",quantity:"1Quantity",round:"1Round",total:"1Total",champion:"1Champion",follower:"1Follower",spell:"1Spell",landmark:"1Landmark",equipment:"1Equipment",champions:"1Champions",followers:"1Followers",spells:"1Spells",landmarks:"1Landmarks",equipments:"1Equipment",statistics:"1Statistics",advanced:"1Advanced",newAdvancedFilter:"1New Advanced Filter",types:"1Types",rarities:"1Rarities",sets:"1Sets",keywords:"1Keywords",pastDays:"1Past {count} Days",pastHours:"1Past {count} Hours",pastHour:"1Past Hour",season:"1Season",servers:"1Servers",sampleSize:"1Sample Size",minimumMatches:"1Minimum Matches",ranks:"1Ranks",allRanks:"1All Ranks",platPlus:"1Platinum+",deck:"1Deck",manaCurve:"1Mana Curve",name:"1Name",updated:"1Updated",created:"1Created",card:"1Card",cards:"1Cards",inclusion:"1Inclusion",avgCopies:"1Avg. Copies",turnsHeld:"1Turns Held",mulliganWinrate:"1Mulligan WR",keptInMulligan:"1Kept in Mulligan",drawnWinrate:"1Drawn Winrate",turnPlayed:"1Turn Played",playrate:"1Playrate",deckDifferences:"1Deck Differences",player:"1Player",lp:"1LP",change:"1Change",favoriteDeck:"1Favorite Deck",server:"1Server",players:"1Players",time:"1Time",type:"1Type",rarity:"1Rarity",archetypes:"1Archetypes",leaderboard:"1Leaderboard",victory:"1Victory",defeat:"1Defeat",newCards:"1New Cards",signIn:"1Log In",syncUserData:"1Sync User Data",settings:"1Settings",gamesPlayed:"1Games Played",premium:"1Premium",renews:"1Renews",expires:"1Expires",getPremium:"1Get Premium!",becomeTheMaster:"1Become The Master"}}}})}function Im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Im(Object(n),!0).forEach(function(r){wt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Im(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yl(e){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(e)}function dk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fk(e,t,n){return t&&Lm(e.prototype,t),n&&Lm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nf(e,t){return hk(e)||gk(e,t)||I0(e,t)||_k()}function fo(e){return pk(e)||mk(e)||I0(e)||vk()}function pk(e){if(Array.isArray(e))return _d(e)}function hk(e){if(Array.isArray(e))return e}function mk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,s,l;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(c){i=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function I0(e,t){if(e){if(typeof e=="string")return _d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _d(e,t)}}function _d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
31
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Rm=function(){},Df={},L0={},R0=null,B0={mark:Rm,measure:Rm};try{typeof window<"u"&&(Df=window),typeof document<"u"&&(L0=document),typeof MutationObserver<"u"&&(R0=MutationObserver),typeof performance<"u"&&(B0=performance)}catch{}var yk=Df.navigator||{},Bm=yk.userAgent,Vm=Bm===void 0?"":Bm,Zr=Df,Je=L0,$m=R0,qo=B0;Zr.document;var Er=!!Je.documentElement&&!!Je.head&&typeof Je.addEventListener=="function"&&typeof Je.createElement=="function",V0=~Vm.indexOf("MSIE")||~Vm.indexOf("Trident/"),Go,Xo,Ko,Jo,Zo,br="___FONT_AWESOME___",yd=16,$0="fa",F0="svg-inline--fa",Ra="data-fa-i2svg",bd="data-fa-pseudo-element",bk="data-fa-pseudo-element-pending",Pf="data-prefix",Af="data-icon",Fm="fontawesome-i2svg",kk="async",wk=["HTML","HEAD","STYLE","SCRIPT"],z0=function(){try{return process.env.NODE_ENV==="production"}catch{return!1}}(),Ke="classic",lt="sharp",If=[Ke,lt];function po(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[Ke]}})}var js=po((Go={},wt(Go,Ke,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),wt(Go,lt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Go)),Hs=po((Xo={},wt(Xo,Ke,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),wt(Xo,lt,{solid:"fass",regular:"fasr",light:"fasl"}),Xo)),Ws=po((Ko={},wt(Ko,Ke,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),wt(Ko,lt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Ko)),Sk=po((Jo={},wt(Jo,Ke,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),wt(Jo,lt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Jo)),xk=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,j0="fa-layers-text",Ck=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Ek=po((Zo={},wt(Zo,Ke,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),wt(Zo,lt,{900:"fass",400:"fasr",300:"fasl"}),Zo)),H0=[1,2,3,4,5,6,7,8,9,10],Tk=H0.concat([11,12,13,14,15,16,17,18,19,20]),Ok=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],xa={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Us=new Set;Object.keys(Hs[Ke]).map(Us.add.bind(Us));Object.keys(Hs[lt]).map(Us.add.bind(Us));var Mk=[].concat(If,fo(Us),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",xa.GROUP,xa.SWAP_OPACITY,xa.PRIMARY,xa.SECONDARY]).concat(H0.map(function(e){return"".concat(e,"x")})).concat(Tk.map(function(e){return"w-".concat(e)})),ys=Zr.FontAwesomeConfig||{};function Nk(e){var t=Je.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Dk(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Je&&typeof Je.querySelector=="function"){var Pk=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Pk.forEach(function(e){var t=Nf(e,2),n=t[0],r=t[1],a=Dk(Nk(n));a!=null&&(ys[r]=a)})}var W0={styleDefault:"solid",familyDefault:"classic",cssPrefix:$0,replacementClass:F0,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ys.familyPrefix&&(ys.cssPrefix=ys.familyPrefix);var Ei=q(q({},W0),ys);Ei.autoReplaceSvg||(Ei.observeMutations=!1);var ee={};Object.keys(W0).forEach(function(e){Object.defineProperty(ee,e,{enumerable:!0,set:function(n){Ei[e]=n,bs.forEach(function(r){return r(ee)})},get:function(){return Ei[e]}})});Object.defineProperty(ee,"familyPrefix",{enumerable:!0,set:function(t){Ei.cssPrefix=t,bs.forEach(function(n){return n(ee)})},get:function(){return Ei.cssPrefix}});Zr.FontAwesomeConfig=ee;var bs=[];function Ak(e){return bs.push(e),function(){bs.splice(bs.indexOf(e),1)}}var Rr=yd,Hn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Ik(e){if(!(!e||!Er)){var t=Je.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Je.head.childNodes,r=null,a=n.length-1;a>-1;a--){var i=n[a],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return Je.head.insertBefore(t,r),e}}var Lk="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ys(){for(var e=12,t="";e-- >0;)t+=Lk[Math.random()*62|0];return t}function Fi(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Lf(e){return e.classList?Fi(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function U0(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Rk(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(U0(e[n]),'" ')},"").trim()}function Oc(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Rf(e){return e.size!==Hn.size||e.x!==Hn.x||e.y!==Hn.y||e.rotate!==Hn.rotate||e.flipX||e.flipY}function Bk(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(i," ").concat(s," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:a,inner:c,path:u}}function Vk(e){var t=e.transform,n=e.width,r=n===void 0?yd:n,a=e.height,i=a===void 0?yd:a,s=e.startCentered,l=s===void 0?!1:s,c="";return l&&V0?c+="translate(".concat(t.x/Rr-r/2,"em, ").concat(t.y/Rr-i/2,"em) "):l?c+="translate(calc(-50% + ".concat(t.x/Rr,"em), calc(-50% + ").concat(t.y/Rr,"em)) "):c+="translate(".concat(t.x/Rr,"em, ").concat(t.y/Rr,"em) "),c+="scale(".concat(t.size/Rr*(t.flipX?-1:1),", ").concat(t.size/Rr*(t.flipY?-1:1),") "),c+="rotate(".concat(t.rotate,"deg) "),c}var $k=`:root, :host {
|
|
32
|
+
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
|
|
33
|
+
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
|
|
34
|
+
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
|
|
35
|
+
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
|
|
36
|
+
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
|
37
|
+
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
|
38
|
+
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
|
39
|
+
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
|
40
|
+
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
44
|
+
overflow: visible;
|
|
45
|
+
box-sizing: content-box;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.svg-inline--fa {
|
|
49
|
+
display: var(--fa-display, inline-block);
|
|
50
|
+
height: 1em;
|
|
51
|
+
overflow: visible;
|
|
52
|
+
vertical-align: -0.125em;
|
|
53
|
+
}
|
|
54
|
+
.svg-inline--fa.fa-2xs {
|
|
55
|
+
vertical-align: 0.1em;
|
|
56
|
+
}
|
|
57
|
+
.svg-inline--fa.fa-xs {
|
|
58
|
+
vertical-align: 0em;
|
|
59
|
+
}
|
|
60
|
+
.svg-inline--fa.fa-sm {
|
|
61
|
+
vertical-align: -0.0714285705em;
|
|
62
|
+
}
|
|
63
|
+
.svg-inline--fa.fa-lg {
|
|
64
|
+
vertical-align: -0.2em;
|
|
65
|
+
}
|
|
66
|
+
.svg-inline--fa.fa-xl {
|
|
67
|
+
vertical-align: -0.25em;
|
|
68
|
+
}
|
|
69
|
+
.svg-inline--fa.fa-2xl {
|
|
70
|
+
vertical-align: -0.3125em;
|
|
71
|
+
}
|
|
72
|
+
.svg-inline--fa.fa-pull-left {
|
|
73
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
74
|
+
width: auto;
|
|
75
|
+
}
|
|
76
|
+
.svg-inline--fa.fa-pull-right {
|
|
77
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
78
|
+
width: auto;
|
|
79
|
+
}
|
|
80
|
+
.svg-inline--fa.fa-li {
|
|
81
|
+
width: var(--fa-li-width, 2em);
|
|
82
|
+
top: 0.25em;
|
|
83
|
+
}
|
|
84
|
+
.svg-inline--fa.fa-fw {
|
|
85
|
+
width: var(--fa-fw-width, 1.25em);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.fa-layers svg.svg-inline--fa {
|
|
89
|
+
bottom: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
margin: auto;
|
|
92
|
+
position: absolute;
|
|
93
|
+
right: 0;
|
|
94
|
+
top: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.fa-layers-counter, .fa-layers-text {
|
|
98
|
+
display: inline-block;
|
|
99
|
+
position: absolute;
|
|
100
|
+
text-align: center;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.fa-layers {
|
|
104
|
+
display: inline-block;
|
|
105
|
+
height: 1em;
|
|
106
|
+
position: relative;
|
|
107
|
+
text-align: center;
|
|
108
|
+
vertical-align: -0.125em;
|
|
109
|
+
width: 1em;
|
|
110
|
+
}
|
|
111
|
+
.fa-layers svg.svg-inline--fa {
|
|
112
|
+
-webkit-transform-origin: center center;
|
|
113
|
+
transform-origin: center center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.fa-layers-text {
|
|
117
|
+
left: 50%;
|
|
118
|
+
top: 50%;
|
|
119
|
+
-webkit-transform: translate(-50%, -50%);
|
|
120
|
+
transform: translate(-50%, -50%);
|
|
121
|
+
-webkit-transform-origin: center center;
|
|
122
|
+
transform-origin: center center;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.fa-layers-counter {
|
|
126
|
+
background-color: var(--fa-counter-background-color, #ff253a);
|
|
127
|
+
border-radius: var(--fa-counter-border-radius, 1em);
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
color: var(--fa-inverse, #fff);
|
|
130
|
+
line-height: var(--fa-counter-line-height, 1);
|
|
131
|
+
max-width: var(--fa-counter-max-width, 5em);
|
|
132
|
+
min-width: var(--fa-counter-min-width, 1.5em);
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
|
135
|
+
right: var(--fa-right, 0);
|
|
136
|
+
text-overflow: ellipsis;
|
|
137
|
+
top: var(--fa-top, 0);
|
|
138
|
+
-webkit-transform: scale(var(--fa-counter-scale, 0.25));
|
|
139
|
+
transform: scale(var(--fa-counter-scale, 0.25));
|
|
140
|
+
-webkit-transform-origin: top right;
|
|
141
|
+
transform-origin: top right;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.fa-layers-bottom-right {
|
|
145
|
+
bottom: var(--fa-bottom, 0);
|
|
146
|
+
right: var(--fa-right, 0);
|
|
147
|
+
top: auto;
|
|
148
|
+
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
149
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
150
|
+
-webkit-transform-origin: bottom right;
|
|
151
|
+
transform-origin: bottom right;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.fa-layers-bottom-left {
|
|
155
|
+
bottom: var(--fa-bottom, 0);
|
|
156
|
+
left: var(--fa-left, 0);
|
|
157
|
+
right: auto;
|
|
158
|
+
top: auto;
|
|
159
|
+
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
160
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
161
|
+
-webkit-transform-origin: bottom left;
|
|
162
|
+
transform-origin: bottom left;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.fa-layers-top-right {
|
|
166
|
+
top: var(--fa-top, 0);
|
|
167
|
+
right: var(--fa-right, 0);
|
|
168
|
+
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
169
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
170
|
+
-webkit-transform-origin: top right;
|
|
171
|
+
transform-origin: top right;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.fa-layers-top-left {
|
|
175
|
+
left: var(--fa-left, 0);
|
|
176
|
+
right: auto;
|
|
177
|
+
top: var(--fa-top, 0);
|
|
178
|
+
-webkit-transform: scale(var(--fa-layers-scale, 0.25));
|
|
179
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
180
|
+
-webkit-transform-origin: top left;
|
|
181
|
+
transform-origin: top left;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.fa-1x {
|
|
185
|
+
font-size: 1em;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.fa-2x {
|
|
189
|
+
font-size: 2em;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.fa-3x {
|
|
193
|
+
font-size: 3em;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.fa-4x {
|
|
197
|
+
font-size: 4em;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.fa-5x {
|
|
201
|
+
font-size: 5em;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.fa-6x {
|
|
205
|
+
font-size: 6em;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.fa-7x {
|
|
209
|
+
font-size: 7em;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.fa-8x {
|
|
213
|
+
font-size: 8em;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.fa-9x {
|
|
217
|
+
font-size: 9em;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.fa-10x {
|
|
221
|
+
font-size: 10em;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.fa-2xs {
|
|
225
|
+
font-size: 0.625em;
|
|
226
|
+
line-height: 0.1em;
|
|
227
|
+
vertical-align: 0.225em;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.fa-xs {
|
|
231
|
+
font-size: 0.75em;
|
|
232
|
+
line-height: 0.0833333337em;
|
|
233
|
+
vertical-align: 0.125em;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.fa-sm {
|
|
237
|
+
font-size: 0.875em;
|
|
238
|
+
line-height: 0.0714285718em;
|
|
239
|
+
vertical-align: 0.0535714295em;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.fa-lg {
|
|
243
|
+
font-size: 1.25em;
|
|
244
|
+
line-height: 0.05em;
|
|
245
|
+
vertical-align: -0.075em;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.fa-xl {
|
|
249
|
+
font-size: 1.5em;
|
|
250
|
+
line-height: 0.0416666682em;
|
|
251
|
+
vertical-align: -0.125em;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.fa-2xl {
|
|
255
|
+
font-size: 2em;
|
|
256
|
+
line-height: 0.03125em;
|
|
257
|
+
vertical-align: -0.1875em;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.fa-fw {
|
|
261
|
+
text-align: center;
|
|
262
|
+
width: 1.25em;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.fa-ul {
|
|
266
|
+
list-style-type: none;
|
|
267
|
+
margin-left: var(--fa-li-margin, 2.5em);
|
|
268
|
+
padding-left: 0;
|
|
269
|
+
}
|
|
270
|
+
.fa-ul > li {
|
|
271
|
+
position: relative;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.fa-li {
|
|
275
|
+
left: calc(var(--fa-li-width, 2em) * -1);
|
|
276
|
+
position: absolute;
|
|
277
|
+
text-align: center;
|
|
278
|
+
width: var(--fa-li-width, 2em);
|
|
279
|
+
line-height: inherit;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.fa-border {
|
|
283
|
+
border-color: var(--fa-border-color, #eee);
|
|
284
|
+
border-radius: var(--fa-border-radius, 0.1em);
|
|
285
|
+
border-style: var(--fa-border-style, solid);
|
|
286
|
+
border-width: var(--fa-border-width, 0.08em);
|
|
287
|
+
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.fa-pull-left {
|
|
291
|
+
float: left;
|
|
292
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.fa-pull-right {
|
|
296
|
+
float: right;
|
|
297
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.fa-beat {
|
|
301
|
+
-webkit-animation-name: fa-beat;
|
|
302
|
+
animation-name: fa-beat;
|
|
303
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
304
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
305
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
306
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
307
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
308
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
309
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
310
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
311
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
312
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.fa-bounce {
|
|
316
|
+
-webkit-animation-name: fa-bounce;
|
|
317
|
+
animation-name: fa-bounce;
|
|
318
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
319
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
320
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
321
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
322
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
323
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
324
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
325
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
326
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
327
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.fa-fade {
|
|
331
|
+
-webkit-animation-name: fa-fade;
|
|
332
|
+
animation-name: fa-fade;
|
|
333
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
334
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
335
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
336
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
337
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
338
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
339
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
340
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
341
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
342
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.fa-beat-fade {
|
|
346
|
+
-webkit-animation-name: fa-beat-fade;
|
|
347
|
+
animation-name: fa-beat-fade;
|
|
348
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
349
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
350
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
351
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
352
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
353
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
354
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
355
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
356
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
357
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.fa-flip {
|
|
361
|
+
-webkit-animation-name: fa-flip;
|
|
362
|
+
animation-name: fa-flip;
|
|
363
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
364
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
365
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
366
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
367
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
368
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
369
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
370
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
371
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
372
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.fa-shake {
|
|
376
|
+
-webkit-animation-name: fa-shake;
|
|
377
|
+
animation-name: fa-shake;
|
|
378
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
379
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
380
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
381
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
382
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
383
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
384
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
385
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
386
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
|
387
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.fa-spin {
|
|
391
|
+
-webkit-animation-name: fa-spin;
|
|
392
|
+
animation-name: fa-spin;
|
|
393
|
+
-webkit-animation-delay: var(--fa-animation-delay, 0s);
|
|
394
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
395
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
396
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
397
|
+
-webkit-animation-duration: var(--fa-animation-duration, 2s);
|
|
398
|
+
animation-duration: var(--fa-animation-duration, 2s);
|
|
399
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
400
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
401
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, linear);
|
|
402
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.fa-spin-reverse {
|
|
406
|
+
--fa-animation-direction: reverse;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.fa-pulse,
|
|
410
|
+
.fa-spin-pulse {
|
|
411
|
+
-webkit-animation-name: fa-spin;
|
|
412
|
+
animation-name: fa-spin;
|
|
413
|
+
-webkit-animation-direction: var(--fa-animation-direction, normal);
|
|
414
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
415
|
+
-webkit-animation-duration: var(--fa-animation-duration, 1s);
|
|
416
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
417
|
+
-webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
418
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
419
|
+
-webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
420
|
+
animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@media (prefers-reduced-motion: reduce) {
|
|
424
|
+
.fa-beat,
|
|
425
|
+
.fa-bounce,
|
|
426
|
+
.fa-fade,
|
|
427
|
+
.fa-beat-fade,
|
|
428
|
+
.fa-flip,
|
|
429
|
+
.fa-pulse,
|
|
430
|
+
.fa-shake,
|
|
431
|
+
.fa-spin,
|
|
432
|
+
.fa-spin-pulse {
|
|
433
|
+
-webkit-animation-delay: -1ms;
|
|
434
|
+
animation-delay: -1ms;
|
|
435
|
+
-webkit-animation-duration: 1ms;
|
|
436
|
+
animation-duration: 1ms;
|
|
437
|
+
-webkit-animation-iteration-count: 1;
|
|
438
|
+
animation-iteration-count: 1;
|
|
439
|
+
-webkit-transition-delay: 0s;
|
|
440
|
+
transition-delay: 0s;
|
|
441
|
+
-webkit-transition-duration: 0s;
|
|
442
|
+
transition-duration: 0s;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
@-webkit-keyframes fa-beat {
|
|
446
|
+
0%, 90% {
|
|
447
|
+
-webkit-transform: scale(1);
|
|
448
|
+
transform: scale(1);
|
|
449
|
+
}
|
|
450
|
+
45% {
|
|
451
|
+
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
|
452
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
@keyframes fa-beat {
|
|
456
|
+
0%, 90% {
|
|
457
|
+
-webkit-transform: scale(1);
|
|
458
|
+
transform: scale(1);
|
|
459
|
+
}
|
|
460
|
+
45% {
|
|
461
|
+
-webkit-transform: scale(var(--fa-beat-scale, 1.25));
|
|
462
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
@-webkit-keyframes fa-bounce {
|
|
466
|
+
0% {
|
|
467
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
468
|
+
transform: scale(1, 1) translateY(0);
|
|
469
|
+
}
|
|
470
|
+
10% {
|
|
471
|
+
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
472
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
473
|
+
}
|
|
474
|
+
30% {
|
|
475
|
+
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
476
|
+
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
477
|
+
}
|
|
478
|
+
50% {
|
|
479
|
+
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
480
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
481
|
+
}
|
|
482
|
+
57% {
|
|
483
|
+
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
484
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
485
|
+
}
|
|
486
|
+
64% {
|
|
487
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
488
|
+
transform: scale(1, 1) translateY(0);
|
|
489
|
+
}
|
|
490
|
+
100% {
|
|
491
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
492
|
+
transform: scale(1, 1) translateY(0);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
@keyframes fa-bounce {
|
|
496
|
+
0% {
|
|
497
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
498
|
+
transform: scale(1, 1) translateY(0);
|
|
499
|
+
}
|
|
500
|
+
10% {
|
|
501
|
+
-webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
502
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
503
|
+
}
|
|
504
|
+
30% {
|
|
505
|
+
-webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
506
|
+
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
507
|
+
}
|
|
508
|
+
50% {
|
|
509
|
+
-webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
510
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
511
|
+
}
|
|
512
|
+
57% {
|
|
513
|
+
-webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
514
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
515
|
+
}
|
|
516
|
+
64% {
|
|
517
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
518
|
+
transform: scale(1, 1) translateY(0);
|
|
519
|
+
}
|
|
520
|
+
100% {
|
|
521
|
+
-webkit-transform: scale(1, 1) translateY(0);
|
|
522
|
+
transform: scale(1, 1) translateY(0);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
@-webkit-keyframes fa-fade {
|
|
526
|
+
50% {
|
|
527
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
@keyframes fa-fade {
|
|
531
|
+
50% {
|
|
532
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
@-webkit-keyframes fa-beat-fade {
|
|
536
|
+
0%, 100% {
|
|
537
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
538
|
+
-webkit-transform: scale(1);
|
|
539
|
+
transform: scale(1);
|
|
540
|
+
}
|
|
541
|
+
50% {
|
|
542
|
+
opacity: 1;
|
|
543
|
+
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
544
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
@keyframes fa-beat-fade {
|
|
548
|
+
0%, 100% {
|
|
549
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
550
|
+
-webkit-transform: scale(1);
|
|
551
|
+
transform: scale(1);
|
|
552
|
+
}
|
|
553
|
+
50% {
|
|
554
|
+
opacity: 1;
|
|
555
|
+
-webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
556
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
@-webkit-keyframes fa-flip {
|
|
560
|
+
50% {
|
|
561
|
+
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
562
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
@keyframes fa-flip {
|
|
566
|
+
50% {
|
|
567
|
+
-webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
568
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
@-webkit-keyframes fa-shake {
|
|
572
|
+
0% {
|
|
573
|
+
-webkit-transform: rotate(-15deg);
|
|
574
|
+
transform: rotate(-15deg);
|
|
575
|
+
}
|
|
576
|
+
4% {
|
|
577
|
+
-webkit-transform: rotate(15deg);
|
|
578
|
+
transform: rotate(15deg);
|
|
579
|
+
}
|
|
580
|
+
8%, 24% {
|
|
581
|
+
-webkit-transform: rotate(-18deg);
|
|
582
|
+
transform: rotate(-18deg);
|
|
583
|
+
}
|
|
584
|
+
12%, 28% {
|
|
585
|
+
-webkit-transform: rotate(18deg);
|
|
586
|
+
transform: rotate(18deg);
|
|
587
|
+
}
|
|
588
|
+
16% {
|
|
589
|
+
-webkit-transform: rotate(-22deg);
|
|
590
|
+
transform: rotate(-22deg);
|
|
591
|
+
}
|
|
592
|
+
20% {
|
|
593
|
+
-webkit-transform: rotate(22deg);
|
|
594
|
+
transform: rotate(22deg);
|
|
595
|
+
}
|
|
596
|
+
32% {
|
|
597
|
+
-webkit-transform: rotate(-12deg);
|
|
598
|
+
transform: rotate(-12deg);
|
|
599
|
+
}
|
|
600
|
+
36% {
|
|
601
|
+
-webkit-transform: rotate(12deg);
|
|
602
|
+
transform: rotate(12deg);
|
|
603
|
+
}
|
|
604
|
+
40%, 100% {
|
|
605
|
+
-webkit-transform: rotate(0deg);
|
|
606
|
+
transform: rotate(0deg);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
@keyframes fa-shake {
|
|
610
|
+
0% {
|
|
611
|
+
-webkit-transform: rotate(-15deg);
|
|
612
|
+
transform: rotate(-15deg);
|
|
613
|
+
}
|
|
614
|
+
4% {
|
|
615
|
+
-webkit-transform: rotate(15deg);
|
|
616
|
+
transform: rotate(15deg);
|
|
617
|
+
}
|
|
618
|
+
8%, 24% {
|
|
619
|
+
-webkit-transform: rotate(-18deg);
|
|
620
|
+
transform: rotate(-18deg);
|
|
621
|
+
}
|
|
622
|
+
12%, 28% {
|
|
623
|
+
-webkit-transform: rotate(18deg);
|
|
624
|
+
transform: rotate(18deg);
|
|
625
|
+
}
|
|
626
|
+
16% {
|
|
627
|
+
-webkit-transform: rotate(-22deg);
|
|
628
|
+
transform: rotate(-22deg);
|
|
629
|
+
}
|
|
630
|
+
20% {
|
|
631
|
+
-webkit-transform: rotate(22deg);
|
|
632
|
+
transform: rotate(22deg);
|
|
633
|
+
}
|
|
634
|
+
32% {
|
|
635
|
+
-webkit-transform: rotate(-12deg);
|
|
636
|
+
transform: rotate(-12deg);
|
|
637
|
+
}
|
|
638
|
+
36% {
|
|
639
|
+
-webkit-transform: rotate(12deg);
|
|
640
|
+
transform: rotate(12deg);
|
|
641
|
+
}
|
|
642
|
+
40%, 100% {
|
|
643
|
+
-webkit-transform: rotate(0deg);
|
|
644
|
+
transform: rotate(0deg);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
@-webkit-keyframes fa-spin {
|
|
648
|
+
0% {
|
|
649
|
+
-webkit-transform: rotate(0deg);
|
|
650
|
+
transform: rotate(0deg);
|
|
651
|
+
}
|
|
652
|
+
100% {
|
|
653
|
+
-webkit-transform: rotate(360deg);
|
|
654
|
+
transform: rotate(360deg);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
@keyframes fa-spin {
|
|
658
|
+
0% {
|
|
659
|
+
-webkit-transform: rotate(0deg);
|
|
660
|
+
transform: rotate(0deg);
|
|
661
|
+
}
|
|
662
|
+
100% {
|
|
663
|
+
-webkit-transform: rotate(360deg);
|
|
664
|
+
transform: rotate(360deg);
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
.fa-rotate-90 {
|
|
668
|
+
-webkit-transform: rotate(90deg);
|
|
669
|
+
transform: rotate(90deg);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.fa-rotate-180 {
|
|
673
|
+
-webkit-transform: rotate(180deg);
|
|
674
|
+
transform: rotate(180deg);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.fa-rotate-270 {
|
|
678
|
+
-webkit-transform: rotate(270deg);
|
|
679
|
+
transform: rotate(270deg);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.fa-flip-horizontal {
|
|
683
|
+
-webkit-transform: scale(-1, 1);
|
|
684
|
+
transform: scale(-1, 1);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.fa-flip-vertical {
|
|
688
|
+
-webkit-transform: scale(1, -1);
|
|
689
|
+
transform: scale(1, -1);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.fa-flip-both,
|
|
693
|
+
.fa-flip-horizontal.fa-flip-vertical {
|
|
694
|
+
-webkit-transform: scale(-1, -1);
|
|
695
|
+
transform: scale(-1, -1);
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.fa-rotate-by {
|
|
699
|
+
-webkit-transform: rotate(var(--fa-rotate-angle, none));
|
|
700
|
+
transform: rotate(var(--fa-rotate-angle, none));
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.fa-stack {
|
|
704
|
+
display: inline-block;
|
|
705
|
+
vertical-align: middle;
|
|
706
|
+
height: 2em;
|
|
707
|
+
position: relative;
|
|
708
|
+
width: 2.5em;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.fa-stack-1x,
|
|
712
|
+
.fa-stack-2x {
|
|
713
|
+
bottom: 0;
|
|
714
|
+
left: 0;
|
|
715
|
+
margin: auto;
|
|
716
|
+
position: absolute;
|
|
717
|
+
right: 0;
|
|
718
|
+
top: 0;
|
|
719
|
+
z-index: var(--fa-stack-z-index, auto);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.svg-inline--fa.fa-stack-1x {
|
|
723
|
+
height: 1em;
|
|
724
|
+
width: 1.25em;
|
|
725
|
+
}
|
|
726
|
+
.svg-inline--fa.fa-stack-2x {
|
|
727
|
+
height: 2em;
|
|
728
|
+
width: 2.5em;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.fa-inverse {
|
|
732
|
+
color: var(--fa-inverse, #fff);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.sr-only,
|
|
736
|
+
.fa-sr-only {
|
|
737
|
+
position: absolute;
|
|
738
|
+
width: 1px;
|
|
739
|
+
height: 1px;
|
|
740
|
+
padding: 0;
|
|
741
|
+
margin: -1px;
|
|
742
|
+
overflow: hidden;
|
|
743
|
+
clip: rect(0, 0, 0, 0);
|
|
744
|
+
white-space: nowrap;
|
|
745
|
+
border-width: 0;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.sr-only-focusable:not(:focus),
|
|
749
|
+
.fa-sr-only-focusable:not(:focus) {
|
|
750
|
+
position: absolute;
|
|
751
|
+
width: 1px;
|
|
752
|
+
height: 1px;
|
|
753
|
+
padding: 0;
|
|
754
|
+
margin: -1px;
|
|
755
|
+
overflow: hidden;
|
|
756
|
+
clip: rect(0, 0, 0, 0);
|
|
757
|
+
white-space: nowrap;
|
|
758
|
+
border-width: 0;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.svg-inline--fa .fa-primary {
|
|
762
|
+
fill: var(--fa-primary-color, currentColor);
|
|
763
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.svg-inline--fa .fa-secondary {
|
|
767
|
+
fill: var(--fa-secondary-color, currentColor);
|
|
768
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
|
772
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
|
776
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.svg-inline--fa mask .fa-primary,
|
|
780
|
+
.svg-inline--fa mask .fa-secondary {
|
|
781
|
+
fill: black;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.fad.fa-inverse,
|
|
785
|
+
.fa-duotone.fa-inverse {
|
|
786
|
+
color: var(--fa-inverse, #fff);
|
|
787
|
+
}`;function Y0(){var e=$0,t=F0,n=ee.cssPrefix,r=ee.replacementClass,a=$k;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(l,".".concat(r))}return a}var zm=!1;function Su(){ee.autoAddCss&&!zm&&(Ik(Y0()),zm=!0)}var Fk={mixout:function(){return{dom:{css:Y0,insertCss:Su}}},hooks:function(){return{beforeDOMElementCreation:function(){Su()},beforeI2svg:function(){Su()}}}},kr=Zr||{};kr[br]||(kr[br]={});kr[br].styles||(kr[br].styles={});kr[br].hooks||(kr[br].hooks={});kr[br].shims||(kr[br].shims=[]);var Tn=kr[br],q0=[],zk=function e(){Je.removeEventListener("DOMContentLoaded",e),ql=1,q0.map(function(t){return t()})},ql=!1;Er&&(ql=(Je.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Je.readyState),ql||Je.addEventListener("DOMContentLoaded",zk));function jk(e){Er&&(ql?setTimeout(e,0):q0.push(e))}function ho(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?U0(e):"<".concat(t," ").concat(Rk(r),">").concat(i.map(ho).join(""),"</").concat(t,">")}function jm(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Hk=function(t,n){return function(r,a,i,s){return t.call(n,r,a,i,s)}},xu=function(t,n,r,a){var i=Object.keys(t),s=i.length,l=a!==void 0?Hk(n,a):n,c,u,d;for(r===void 0?(c=1,d=t[i[0]]):(c=0,d=r);c<s;c++)u=i[c],d=l(d,t[u],u,t);return d};function Wk(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),n--)}else t.push(a)}return t}function kd(e){var t=Wk(e);return t.length===1?t[0].toString(16):null}function Uk(e,t){var n=e.length,r=e.charCodeAt(t),a;return r>=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function Hm(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function wd(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=Hm(t);typeof Tn.hooks.addPack=="function"&&!a?Tn.hooks.addPack(e,Hm(t)):Tn.styles[e]=q(q({},Tn.styles[e]||{}),i),e==="fas"&&wd("fa",t)}var Qo,el,tl,di=Tn.styles,Yk=Tn.shims,qk=(Qo={},wt(Qo,Ke,Object.values(Ws[Ke])),wt(Qo,lt,Object.values(Ws[lt])),Qo),Bf=null,G0={},X0={},K0={},J0={},Z0={},Gk=(el={},wt(el,Ke,Object.keys(js[Ke])),wt(el,lt,Object.keys(js[lt])),el);function Xk(e){return~Mk.indexOf(e)}function Kk(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!Xk(a)?a:null}var Q0=function(){var t=function(i){return xu(di,function(s,l,c){return s[c]=xu(l,i,{}),s},{})};G0=t(function(a,i,s){if(i[3]&&(a[i[3]]=s),i[2]){var l=i[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){a[c.toString(16)]=s})}return a}),X0=t(function(a,i,s){if(a[s]=s,i[2]){var l=i[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){a[c]=s})}return a}),Z0=t(function(a,i,s){var l=i[2];return a[s]=s,l.forEach(function(c){a[c]=s}),a});var n="far"in di||ee.autoFetchSvg,r=xu(Yk,function(a,i){var s=i[0],l=i[1],c=i[2];return l==="far"&&!n&&(l="fas"),typeof s=="string"&&(a.names[s]={prefix:l,iconName:c}),typeof s=="number"&&(a.unicodes[s.toString(16)]={prefix:l,iconName:c}),a},{names:{},unicodes:{}});K0=r.names,J0=r.unicodes,Bf=Mc(ee.styleDefault,{family:ee.familyDefault})};Ak(function(e){Bf=Mc(e.styleDefault,{family:ee.familyDefault})});Q0();function Vf(e,t){return(G0[e]||{})[t]}function Jk(e,t){return(X0[e]||{})[t]}function Ca(e,t){return(Z0[e]||{})[t]}function e2(e){return K0[e]||{prefix:null,iconName:null}}function Zk(e){var t=J0[e],n=Vf("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Qr(){return Bf}var $f=function(){return{prefix:null,iconName:null,rest:[]}};function Mc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?Ke:n,a=js[r][e],i=Hs[r][e]||Hs[r][a],s=e in Tn.styles?e:null;return i||s||null}var Wm=(tl={},wt(tl,Ke,Object.keys(Ws[Ke])),wt(tl,lt,Object.keys(Ws[lt])),tl);function Nc(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},wt(t,Ke,"".concat(ee.cssPrefix,"-").concat(Ke)),wt(t,lt,"".concat(ee.cssPrefix,"-").concat(lt)),t),s=null,l=Ke;(e.includes(i[Ke])||e.some(function(u){return Wm[Ke].includes(u)}))&&(l=Ke),(e.includes(i[lt])||e.some(function(u){return Wm[lt].includes(u)}))&&(l=lt);var c=e.reduce(function(u,d){var f=Kk(ee.cssPrefix,d);if(di[d]?(d=qk[l].includes(d)?Sk[l][d]:d,s=d,u.prefix=d):Gk[l].indexOf(d)>-1?(s=d,u.prefix=Mc(d,{family:l})):f?u.iconName=f:d!==ee.replacementClass&&d!==i[Ke]&&d!==i[lt]&&u.rest.push(d),!a&&u.prefix&&u.iconName){var p=s==="fa"?e2(u.iconName):{},h=Ca(u.prefix,u.iconName);p.prefix&&(s=null),u.iconName=p.iconName||h||u.iconName,u.prefix=p.prefix||u.prefix,u.prefix==="far"&&!di.far&&di.fas&&!ee.autoFetchSvg&&(u.prefix="fas")}return u},$f());return(e.includes("fa-brands")||e.includes("fab"))&&(c.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(c.prefix="fad"),!c.prefix&&l===lt&&(di.fass||ee.autoFetchSvg)&&(c.prefix="fass",c.iconName=Ca(c.prefix,c.iconName)||c.iconName),(c.prefix==="fa"||s==="fa")&&(c.prefix=Qr()||"fas"),c}var Qk=function(){function e(){dk(this,e),this.definitions={}}return fk(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(l){n.definitions[l]=q(q({},n.definitions[l]||{}),s[l]),wd(l,s[l]);var c=Ws[Ke][l];c&&wd(c,s[l]),Q0()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var a=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(a).map(function(i){var s=a[i],l=s.prefix,c=s.iconName,u=s.icon,d=u[2];n[l]||(n[l]={}),d.length>0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}]),e}(),Um=[],fi={},mi={},e6=Object.keys(mi);function t6(e,t){var n=t.mixoutsTo;return Um=e,fi={},Object.keys(mi).forEach(function(r){e6.indexOf(r)===-1&&delete mi[r]}),Um.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(s){typeof a[s]=="function"&&(n[s]=a[s]),Yl(a[s])==="object"&&Object.keys(a[s]).forEach(function(l){n[s]||(n[s]={}),n[s][l]=a[s][l]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(s){fi[s]||(fi[s]=[]),fi[s].push(i[s])})}r.provides&&r.provides(mi)}),n}function Sd(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=fi[e]||[];return i.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function Ba(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=fi[e]||[];a.forEach(function(i){i.apply(null,n)})}function wr(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return mi[e]?mi[e].apply(null,t):void 0}function xd(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Qr();if(t)return t=Ca(n,t)||t,jm(t2.definitions,n,t)||jm(Tn.styles,n,t)}var t2=new Qk,n6=function(){ee.autoReplaceSvg=!1,ee.observeMutations=!1,Ba("noAuto")},r6={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Er?(Ba("beforeI2svg",t),wr("pseudoElements2svg",t),wr("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ee.autoReplaceSvg===!1&&(ee.autoReplaceSvg=!0),ee.observeMutations=!0,jk(function(){i6({autoReplaceSvgRoot:n}),Ba("watch",t)})}},a6={icon:function(t){if(t===null)return null;if(Yl(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Ca(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Mc(t[0]);return{prefix:r,iconName:Ca(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ee.cssPrefix,"-"))>-1||t.match(xk))){var a=Nc(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||Qr(),iconName:Ca(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=Qr();return{prefix:i,iconName:Ca(i,t)||t}}}},cn={noAuto:n6,config:ee,dom:r6,parse:a6,library:t2,findIconDefinition:xd,toHtml:ho},i6=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?Je:n;(Object.keys(Tn.styles).length>0||ee.autoFetchSvg)&&Er&&ee.autoReplaceSvg&&cn.dom.i2svg({node:r})};function Dc(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ho(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Er){var r=Je.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function s6(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,s=e.transform;if(Rf(s)&&n.found&&!r.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};a.style=Oc(q(q({},i),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function o6(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,s=i===!0?"".concat(t,"-").concat(ee.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:q(q({},a),{},{id:s}),children:r}]}]}function Ff(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,s=e.transform,l=e.symbol,c=e.title,u=e.maskId,d=e.titleId,f=e.extra,p=e.watchable,h=p===void 0?!1:p,g=r.found?r:n,v=g.width,b=g.height,m=a==="fak",y=[ee.replacementClass,i?"".concat(ee.cssPrefix,"-").concat(i):""].filter(function(O){return f.classes.indexOf(O)===-1}).filter(function(O){return O!==""||!!O}).concat(f.classes).join(" "),k={children:[],attributes:q(q({},f.attributes),{},{"data-prefix":a,"data-icon":i,class:y,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(b)})},_=m&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/b*16*.0625,"em")}:{};h&&(k.attributes[Ra]=""),c&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(d||Ys())},children:[c]}),delete k.attributes.title);var w=q(q({},k),{},{prefix:a,iconName:i,main:n,mask:r,maskId:u,transform:s,symbol:l,styles:q(q({},_),f.styles)}),S=r.found&&n.found?wr("generateAbstractMask",w)||{children:[],attributes:{}}:wr("generateAbstractIcon",w)||{children:[],attributes:{}},C=S.children,E=S.attributes;return w.children=C,w.attributes=E,l?o6(w):s6(w)}function Ym(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,s=e.extra,l=e.watchable,c=l===void 0?!1:l,u=q(q(q({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});c&&(u[Ra]="");var d=q({},s.styles);Rf(a)&&(d.transform=Vk({transform:a,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);var f=Oc(d);f.length>0&&(u.style=f);var p=[];return p.push({tag:"span",attributes:u,children:[t]}),i&&p.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),p}function l6(e){var t=e.content,n=e.title,r=e.extra,a=q(q(q({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=Oc(r.styles);i.length>0&&(a.style=i);var s=[];return s.push({tag:"span",attributes:a,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var Cu=Tn.styles;function Cd(e){var t=e[0],n=e[1],r=e.slice(4),a=Nf(r,1),i=a[0],s=null;return Array.isArray(i)?s={tag:"g",attributes:{class:"".concat(ee.cssPrefix,"-").concat(xa.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ee.cssPrefix,"-").concat(xa.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(ee.cssPrefix,"-").concat(xa.PRIMARY),fill:"currentColor",d:i[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:s}}var c6={found:!1,width:512,height:512};function u6(e,t){!z0&&!ee.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Ed(e,t){var n=t;return t==="fa"&&ee.styleDefault!==null&&(t=Qr()),new Promise(function(r,a){if(wr("missingIconAbstract"),n==="fa"){var i=e2(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Cu[t]&&Cu[t][e]){var s=Cu[t][e];return r(Cd(s))}u6(e,t),r(q(q({},c6),{},{icon:ee.showMissingIcons&&e?wr("missingIconAbstract")||{}:{}}))})}var qm=function(){},Td=ee.measurePerformance&&qo&&qo.mark&&qo.measure?qo:{mark:qm,measure:qm},ds='FA "6.4.0"',d6=function(t){return Td.mark("".concat(ds," ").concat(t," begins")),function(){return n2(t)}},n2=function(t){Td.mark("".concat(ds," ").concat(t," ends")),Td.measure("".concat(ds," ").concat(t),"".concat(ds," ").concat(t," begins"),"".concat(ds," ").concat(t," ends"))},zf={begin:d6,end:n2},Ol=function(){};function Gm(e){var t=e.getAttribute?e.getAttribute(Ra):null;return typeof t=="string"}function f6(e){var t=e.getAttribute?e.getAttribute(Pf):null,n=e.getAttribute?e.getAttribute(Af):null;return t&&n}function p6(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ee.replacementClass)}function h6(){if(ee.autoReplaceSvg===!0)return Ml.replace;var e=Ml[ee.autoReplaceSvg];return e||Ml.replace}function m6(e){return Je.createElementNS("http://www.w3.org/2000/svg",e)}function g6(e){return Je.createElement(e)}function r2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?m6:g6:n;if(typeof e=="string")return Je.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){a.setAttribute(s,e.attributes[s])});var i=e.children||[];return i.forEach(function(s){a.appendChild(r2(s,{ceFn:r}))}),a}function v6(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Ml={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(r2(a),n)}),n.getAttribute(Ra)===null&&ee.keepOriginalSource){var r=Je.createComment(v6(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Lf(n).indexOf(ee.replacementClass))return Ml.replace(t);var a=new RegExp("".concat(ee.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(l,c){return c===ee.replacementClass||c.match(a)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var s=r.map(function(l){return ho(l)}).join(`
|
|
788
|
+
`);n.setAttribute(Ra,""),n.innerHTML=s}};function Xm(e){e()}function a2(e,t){var n=typeof t=="function"?t:Ol;if(e.length===0)n();else{var r=Xm;ee.mutateApproach===kk&&(r=Zr.requestAnimationFrame||Xm),r(function(){var a=h6(),i=zf.begin("mutate");e.map(a),i(),n()})}}var jf=!1;function i2(){jf=!0}function Od(){jf=!1}var Gl=null;function Km(e){if($m&&ee.observeMutations){var t=e.treeCallback,n=t===void 0?Ol:t,r=e.nodeCallback,a=r===void 0?Ol:r,i=e.pseudoElementsCallback,s=i===void 0?Ol:i,l=e.observeMutationsRoot,c=l===void 0?Je:l;Gl=new $m(function(u){if(!jf){var d=Qr();Fi(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!Gm(f.addedNodes[0])&&(ee.searchPseudoElements&&s(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&ee.searchPseudoElements&&s(f.target.parentNode),f.type==="attributes"&&Gm(f.target)&&~Ok.indexOf(f.attributeName))if(f.attributeName==="class"&&f6(f.target)){var p=Nc(Lf(f.target)),h=p.prefix,g=p.iconName;f.target.setAttribute(Pf,h||d),g&&f.target.setAttribute(Af,g)}else p6(f.target)&&a(f.target)})}}),Er&&Gl.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function _6(){Gl&&Gl.disconnect()}function y6(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),s=i[0],l=i.slice(1);return s&&l.length>0&&(r[s]=l.join(":").trim()),r},{})),n}function b6(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Nc(Lf(e));return a.prefix||(a.prefix=Qr()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=Jk(a.prefix,e.innerText)||Vf(a.prefix,kd(e.innerText))),!a.iconName&&ee.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function k6(e){var t=Fi(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ee.autoA11y&&(n?t["aria-labelledby"]="".concat(ee.replacementClass,"-title-").concat(r||Ys()):(t["aria-hidden"]="true",t.focusable="false")),t}function w6(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Hn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Jm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=b6(e),r=n.iconName,a=n.prefix,i=n.rest,s=k6(e),l=Sd("parseNodeAttributes",{},e),c=t.styleParser?y6(e):[];return q({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Hn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:s}},l)}var S6=Tn.styles;function s2(e){var t=ee.autoReplaceSvg==="nest"?Jm(e,{styleParser:!1}):Jm(e);return~t.extra.classes.indexOf(j0)?wr("generateLayersText",e,t):wr("generateSvgReplacementMutation",e,t)}var ea=new Set;If.map(function(e){ea.add("fa-".concat(e))});Object.keys(js[Ke]).map(ea.add.bind(ea));Object.keys(js[lt]).map(ea.add.bind(ea));ea=fo(ea);function Zm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Er)return Promise.resolve();var n=Je.documentElement.classList,r=function(f){return n.add("".concat(Fm,"-").concat(f))},a=function(f){return n.remove("".concat(Fm,"-").concat(f))},i=ee.autoFetchSvg?ea:If.map(function(d){return"fa-".concat(d)}).concat(Object.keys(S6));i.includes("fa")||i.push("fa");var s=[".".concat(j0,":not([").concat(Ra,"])")].concat(i.map(function(d){return".".concat(d,":not([").concat(Ra,"])")})).join(", ");if(s.length===0)return Promise.resolve();var l=[];try{l=Fi(e.querySelectorAll(s))}catch{}if(l.length>0)r("pending"),a("complete");else return Promise.resolve();var c=zf.begin("onTree"),u=l.reduce(function(d,f){try{var p=s2(f);p&&d.push(p)}catch(h){z0||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){a2(p,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function x6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;s2(e).then(function(n){n&&a2([n],t)})}function C6(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:xd(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:xd(a||{})),e(r,q(q({},n),{},{mask:a}))}}var E6=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?Hn:r,i=n.symbol,s=i===void 0?!1:i,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.title,p=f===void 0?null:f,h=n.titleId,g=h===void 0?null:h,v=n.classes,b=v===void 0?[]:v,m=n.attributes,y=m===void 0?{}:m,k=n.styles,_=k===void 0?{}:k;if(t){var w=t.prefix,S=t.iconName,C=t.icon;return Dc(q({type:"icon"},t),function(){return Ba("beforeDOMElementCreation",{iconDefinition:t,params:n}),ee.autoA11y&&(p?y["aria-labelledby"]="".concat(ee.replacementClass,"-title-").concat(g||Ys()):(y["aria-hidden"]="true",y.focusable="false")),Ff({icons:{main:Cd(C),mask:c?Cd(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:S,transform:q(q({},Hn),a),symbol:s,title:p,maskId:d,titleId:g,extra:{attributes:y,styles:_,classes:b}})})}},T6={mixout:function(){return{icon:C6(E6)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Zm,n.nodeCallback=x6,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?Je:r,i=n.callback,s=i===void 0?function(){}:i;return Zm(a,s)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,s=r.titleId,l=r.prefix,c=r.transform,u=r.symbol,d=r.mask,f=r.maskId,p=r.extra;return new Promise(function(h,g){Promise.all([Ed(a,l),d.iconName?Ed(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(v){var b=Nf(v,2),m=b[0],y=b[1];h([n,Ff({icons:{main:m,mask:y},prefix:l,iconName:a,transform:c,symbol:u,maskId:f,title:i,titleId:s,extra:p,watchable:!0})])}).catch(g)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,s=n.transform,l=n.styles,c=Oc(l);c.length>0&&(a.style=c);var u;return Rf(s)&&(u=wr("generateAbstractTransformGrouping",{main:i,transform:s,containerWidth:i.width,iconWidth:i.width})),r.push(u||i.icon),{children:r,attributes:a}}}},O6={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return Dc({type:"layer"},function(){Ba("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(l){Array.isArray(l)?l.map(function(c){s=s.concat(c.abstract)}):s=s.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(ee.cssPrefix,"-layers")].concat(fo(i)).join(" ")},children:s}]})}}}},M6={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,s=r.classes,l=s===void 0?[]:s,c=r.attributes,u=c===void 0?{}:c,d=r.styles,f=d===void 0?{}:d;return Dc({type:"counter",content:n},function(){return Ba("beforeDOMElementCreation",{content:n,params:r}),l6({content:n.toString(),title:i,extra:{attributes:u,styles:f,classes:["".concat(ee.cssPrefix,"-layers-counter")].concat(fo(l))}})})}}}},N6={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?Hn:a,s=r.title,l=s===void 0?null:s,c=r.classes,u=c===void 0?[]:c,d=r.attributes,f=d===void 0?{}:d,p=r.styles,h=p===void 0?{}:p;return Dc({type:"text",content:n},function(){return Ba("beforeDOMElementCreation",{content:n,params:r}),Ym({content:n,transform:q(q({},Hn),i),title:l,extra:{attributes:f,styles:h,classes:["".concat(ee.cssPrefix,"-layers-text")].concat(fo(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,s=r.extra,l=null,c=null;if(V0){var u=parseInt(getComputedStyle(n).fontSize,10),d=n.getBoundingClientRect();l=d.width/u,c=d.height/u}return ee.autoA11y&&!a&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,Ym({content:n.innerHTML,width:l,height:c,transform:i,title:a,extra:s,watchable:!0})])}}},D6=new RegExp('"',"ug"),Qm=[1105920,1112319];function P6(e){var t=e.replace(D6,""),n=Uk(t,0),r=n>=Qm[0]&&n<=Qm[1],a=t.length===2?t[0]===t[1]:!1;return{value:kd(a?t[0]:t),isSecondary:r||a}}function e1(e,t){var n="".concat(bk).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=Fi(e.children),s=i.filter(function(C){return C.getAttribute(bd)===t})[0],l=Zr.getComputedStyle(e,t),c=l.getPropertyValue("font-family").match(Ck),u=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(s&&!c)return e.removeChild(s),r();if(c&&d!=="none"&&d!==""){var f=l.getPropertyValue("content"),p=~["Sharp"].indexOf(c[2])?lt:Ke,h=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(c[2])?Hs[p][c[2].toLowerCase()]:Ek[p][u],g=P6(f),v=g.value,b=g.isSecondary,m=c[0].startsWith("FontAwesome"),y=Vf(h,v),k=y;if(m){var _=Zk(v);_.iconName&&_.prefix&&(y=_.iconName,h=_.prefix)}if(y&&!b&&(!s||s.getAttribute(Pf)!==h||s.getAttribute(Af)!==k)){e.setAttribute(n,k),s&&e.removeChild(s);var w=w6(),S=w.extra;S.attributes[bd]=t,Ed(y,h).then(function(C){var E=Ff(q(q({},w),{},{icons:{main:C,mask:$f()},prefix:h,iconName:k,extra:S,watchable:!0})),O=Je.createElement("svg");t==="::before"?e.insertBefore(O,e.firstChild):e.appendChild(O),O.outerHTML=E.map(function(L){return ho(L)}).join(`
|
|
789
|
+
`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function A6(e){return Promise.all([e1(e,"::before"),e1(e,"::after")])}function I6(e){return e.parentNode!==document.head&&!~wk.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(bd)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function t1(e){if(Er)return new Promise(function(t,n){var r=Fi(e.querySelectorAll("*")).filter(I6).map(A6),a=zf.begin("searchPseudoElements");i2(),Promise.all(r).then(function(){a(),Od(),t()}).catch(function(){a(),Od(),n()})})}var L6={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=t1,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?Je:r;ee.searchPseudoElements&&t1(a)}}},n1=!1,R6={mixout:function(){return{dom:{unwatch:function(){i2(),n1=!0}}}},hooks:function(){return{bootstrap:function(){Km(Sd("mutationObserverCallbacks",{}))},noAuto:function(){_6()},watch:function(n){var r=n.observeMutationsRoot;n1?Od():Km(Sd("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},r1=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),s=i[0],l=i.slice(1).join("-");if(s&&l==="h")return r.flipX=!0,r;if(s&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(s){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},B6={mixout:function(){return{parse:{transform:function(n){return r1(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=r1(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,s=n.iconWidth,l={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(a.x*32,", ").concat(a.y*32,") "),u="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),d="rotate(".concat(a.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(s/2*-1," -256)")},h={outer:l,inner:f,path:p};return{tag:"g",attributes:q({},h.outer),children:[{tag:"g",attributes:q({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:q(q({},r.icon.attributes),h.path)}]}]}}}},Eu={x:0,y:0,width:"100%",height:"100%"};function a1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function V6(e){return e.tag==="g"?e.children:[e]}var $6={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Nc(a.split(" ").map(function(s){return s.trim()})):$f();return i.prefix||(i.prefix=Qr()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,s=n.mask,l=n.maskId,c=n.transform,u=i.width,d=i.icon,f=s.width,p=s.icon,h=Bk({transform:c,containerWidth:f,iconWidth:u}),g={tag:"rect",attributes:q(q({},Eu),{},{fill:"white"})},v=d.children?{children:d.children.map(a1)}:{},b={tag:"g",attributes:q({},h.inner),children:[a1(q({tag:d.tag,attributes:q(q({},d.attributes),h.path)},v))]},m={tag:"g",attributes:q({},h.outer),children:[b]},y="mask-".concat(l||Ys()),k="clip-".concat(l||Ys()),_={tag:"mask",attributes:q(q({},Eu),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,m]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:V6(p)},_]};return r.push(w,{tag:"rect",attributes:q({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(y,")")},Eu)}),{children:r,attributes:a}}}},F6={provides:function(t){var n=!1;Zr.matchMedia&&(n=Zr.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:q(q({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=q(q({},i),{},{attributeName:"opacity"}),l={tag:"circle",attributes:q(q({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:q(q({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:q(q({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:q(q({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:q(q({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:q(q({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:q(q({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},z6={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},j6=[Fk,T6,O6,M6,N6,L6,R6,B6,$6,F6,z6];t6(j6,{mixoutsTo:cn});cn.noAuto;var o2=cn.config,i1=cn.library;cn.dom;var Xl=cn.parse;cn.findIconDefinition;cn.toHtml;var H6=cn.icon;cn.layer;var W6=cn.text;cn.counter;var U6={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},Y6=U6,q6={prefix:"fas",iconName:"sort-down",icon:[320,512,["sort-desc"],"f0dd","M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128z"]},G6={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},X6=G6,K6={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},J6=K6,Z6={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},Q6={prefix:"fas",iconName:"circle-chevron-down",icon:[512,512,["chevron-circle-down"],"f13a","M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM135 241c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l87 87 87-87c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 345c-9.4 9.4-24.6 9.4-33.9 0L135 241z"]},e8=Q6,t8={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},n8={prefix:"fas",iconName:"share-nodes",icon:[448,512,["share-alt"],"f1e0","M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"]},r8={prefix:"fas",iconName:"hand",icon:[512,512,[129306,9995,"hand-paper"],"f256","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V336c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64H304c97.2 0 176-78.8 176-176V128c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V32z"]},a8=r8,i8={prefix:"fas",iconName:"maximize",icon:[512,512,["expand-arrows-alt"],"f31e","M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2s14.8-12.5 14.8-22.2V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z"]},s8={prefix:"fas",iconName:"arrow-right-to-bracket",icon:[512,512,["sign-in"],"f090","M352 96l64 0c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c53 0 96-43 96-96l0-256c0-53-43-96-96-96l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-9.4 182.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L242.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"]},o8={prefix:"fas",iconName:"unlock",icon:[448,512,[128275],"f09c","M144 144c0-44.2 35.8-80 80-80c31.9 0 59.4 18.6 72.3 45.7c7.6 16 26.7 22.8 42.6 15.2s22.8-26.7 15.2-42.6C331 33.7 281.5 0 224 0C144.5 0 80 64.5 80 144v48H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V256c0-35.3-28.7-64-64-64H144V144z"]},l8={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z"]},c8={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6h96 32H424c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},u8={prefix:"fas",iconName:"newspaper",icon:[512,512,[128240],"f1ea","M96 96c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H80c-44.2 0-80-35.8-80-80V128c0-17.7 14.3-32 32-32s32 14.3 32 32V400c0 8.8 7.2 16 16 16s16-7.2 16-16V96zm64 24v80c0 13.3 10.7 24 24 24H296c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm208-8c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zM160 304c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},d8={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"]},f8={prefix:"fas",iconName:"language",icon:[640,512,[],"f1ab","M0 128C0 92.7 28.7 64 64 64H256h48 16H576c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H320 304 256 64c-35.3 0-64-28.7-64-64V128zm320 0V384H576V128H320zM178.3 175.9c-3.2-7.2-10.4-11.9-18.3-11.9s-15.1 4.7-18.3 11.9l-64 144c-4.5 10.1 .1 21.9 10.2 26.4s21.9-.1 26.4-10.2l8.9-20.1h73.6l8.9 20.1c4.5 10.1 16.3 14.6 26.4 10.2s14.6-16.3 10.2-26.4l-64-144zM160 233.2L179 276H141l19-42.8zM448 164c11 0 20 9 20 20v4h44 16c11 0 20 9 20 20s-9 20-20 20h-2l-1.6 4.5c-8.9 24.4-22.4 46.6-39.6 65.4c.9 .6 1.8 1.1 2.7 1.6l18.9 11.3c9.5 5.7 12.5 18 6.9 27.4s-18 12.5-27.4 6.9l-18.9-11.3c-4.5-2.7-8.8-5.5-13.1-8.5c-10.6 7.5-21.9 14-34 19.4l-3.6 1.6c-10.1 4.5-21.9-.1-26.4-10.2s.1-21.9 10.2-26.4l3.6-1.6c6.4-2.9 12.6-6.1 18.5-9.8l-12.2-12.2c-7.8-7.8-7.8-20.5 0-28.3s20.5-7.8 28.3 0l14.6 14.6 .5 .5c12.4-13.1 22.5-28.3 29.8-45H448 376c-11 0-20-9-20-20s9-20 20-20h52v-4c0-11 9-20 20-20z"]},p8={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},h8={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7H336c-8.8 0-16-7.2-16-16V118.6c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},m8={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},g8=m8,v8={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},_8={prefix:"fas",iconName:"sort-up",icon:[320,512,["sort-asc"],"f0de","M182.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},y8={prefix:"fas",iconName:"table-cells",icon:[512,512,["th"],"f00a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm88 64v64H64V96h88zm56 0h88v64H208V96zm240 0v64H360V96h88zM64 224h88v64H64V224zm232 0v64H208V224h88zm64 0h88v64H360V224zM152 352v64H64V352h88zm56 0h88v64H208V352zm240 0v64H360V352h88z"]},b8=y8,k8={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},w8=k8,S8={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},x8={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},C8=x8,E8={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},T8=E8,O8={prefix:"fas",iconName:"rotate-right",icon:[512,512,["redo-alt","rotate-forward"],"f2f9","M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"]},M8={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},N8=M8,D8={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},P8={prefix:"fas",iconName:"ranking-star",icon:[640,512,[],"e561","M353.8 54.1L330.2 6.3c-3.9-8.3-16.1-8.6-20.4 0L286.2 54.1l-52.3 7.5c-9.3 1.4-13.3 12.9-6.4 19.8l38 37-9 52.1c-1.4 9.3 8.2 16.5 16.8 12.2l46.9-24.8 46.6 24.4c8.6 4.3 18.3-2.9 16.8-12.2l-9-52.1 38-36.6c6.8-6.8 2.9-18.3-6.4-19.8l-52.3-7.5zM256 256c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32V288c0-17.7-14.3-32-32-32H256zM32 320c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H160c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zm416 96v64c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V416c0-17.7-14.3-32-32-32H480c-17.7 0-32 14.3-32 32z"]},A8={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M272 0H396.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128H192v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},I8={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},L8={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},R8=L8,B8={prefix:"fas",iconName:"hammer",icon:[576,512,[128296],"f6e3","M413.5 237.5c-28.2 4.8-58.2-3.6-80-25.4l-38.1-38.1C280.4 159 272 138.8 272 117.6V105.5L192.3 62c-5.3-2.9-8.6-8.6-8.3-14.7s3.9-11.5 9.5-14l47.2-21C259.1 4.2 279 0 299.2 0h18.1c36.7 0 72 14 98.7 39.1l44.6 42c24.2 22.8 33.2 55.7 26.6 86L503 183l8-8c9.4-9.4 24.6-9.4 33.9 0l24 24c9.4 9.4 9.4 24.6 0 33.9l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-24-24c-9.4-9.4-9.4-24.6 0-33.9l8-8-17.5-17.5zM27.4 377.1L260.9 182.6c3.5 4.9 7.5 9.6 11.8 14l38.1 38.1c6 6 12.4 11.2 19.2 15.7L134.9 484.6c-14.5 17.4-36 27.4-58.6 27.4C34.1 512 0 477.8 0 435.7c0-22.6 10.1-44.1 27.4-58.6z"]},V8={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},$8=V8,F8={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},z8={prefix:"fas",iconName:"magnifying-glass-plus",icon:[512,512,["search-plus"],"f00e","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24V232h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H232V120c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"]},j8=z8,H8={prefix:"fas",iconName:"books",icon:[512,512,[128218],"f5db","M0 32C0 14.3 14.3 0 32 0H96c17.7 0 32 14.3 32 32V96H0V32zm0 96H128V384H0V128zM0 416H128v64c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V416zM160 32c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32V96H160V32zm0 96H288V384H160V128zm0 288H288v64c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V416zm203.6-19.9L320 232.6V142.8l100.4-26.9 66 247.4L363.6 396.1zM412.2 85L320 109.6V11l36.9-9.9c16.9-4.6 34.4 5.5 38.9 22.6L412.2 85zM371.8 427l122.8-32.9 16.3 61.1c4.5 17-5.5 34.5-22.5 39.1l-61.4 16.5c-16.9 4.6-34.4-5.5-38.9-22.6L371.8 427z"]},W8={prefix:"fas",iconName:"treasure-chest",icon:[576,512,[],"f723","M0 160v96H128V32C57.3 32 0 89.3 0 160zM0 432c0 26.5 21.5 48 48 48h80V288H0V432zM416 288H352v32c0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32V288H160V480H416V288zM528 480c26.5 0 48-21.5 48-48V288H448V480h80zm48-320c0-70.7-57.3-128-128-128V256H576V160zM416 256V32H160V256h64V224c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32v32h64zM304 240c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16V240z"]},U8={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},Y8={prefix:"fas",iconName:"chart-mixed",icon:[512,512,["analytics"],"f643","M500 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L319.4 151.5 211.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L12 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L192.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L500 89zM160 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM32 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm288-64c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V320c0-17.7-14.3-32-32-32zm96-32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32z"]},q8={prefix:"fas",iconName:"chart-simple-horizontal",icon:[448,512,[],"e474","M400 320c26.5 0 48-21.5 48-48l0-32c0-26.5-21.5-48-48-48L48 192c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l352 0zM208 480c26.5 0 48-21.5 48-48l0-32c0-26.5-21.5-48-48-48L48 352c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l160 0zM384 112l0-32c0-26.5-21.5-48-48-48L48 32C21.5 32 0 53.5 0 80l0 32c0 26.5 21.5 48 48 48l288 0c26.5 0 48-21.5 48-48z"]},G8={prefix:"fas",iconName:"cards-blank",icon:[640,512,[],"e4df","M27.8 118.8C1.2 134.2-7.9 168.2 7.5 194.9l167 289.3c15.4 26.6 49.4 35.8 76.1 20.4L443.4 393.2c26.6-15.4 35.8-49.4 20.4-76.1L296.8 27.8C281.4 1.2 247.3-7.9 220.7 7.5L27.8 118.8zM459.4 420.9L324.1 499c9.7 8.1 22.2 13 35.9 13H584c30.9 0 56-25.1 56-56V120c0-30.9-25.1-56-56-56H360c-1.8 0-3.5 .1-5.3 .2L491.5 301.1c24.2 41.9 9.8 95.6-32.1 119.8z"]},X8={prefix:"fab",iconName:"discord",icon:[640,512,[],"f392","M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"]},K8={prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"]},J8={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"]},Z8={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function Q8(){i1.add(e8,D8,j8,p8,R8,I8,S8,w8,v8,F8,g8,d8,_8,q6,t8,o8,Z6,N8,f8,b8,i8,A8,a8,h8,J6,Y6,T8,Z8,c8,J8,K8,X8,X6,$8,C8,n8,l8,G8,W8,u8,Y8,H8,P8,B8,q8,U8,s8,O8),i1.add({prefix:"fak",iconName:"chart-decks",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zM352 464c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16z"]},{prefix:"fak",iconName:"chart-cards",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm480-96c0-16-16-32-32-32H448c-16 0-32.6 16-32.6 32s0 176 .6 192s16 32 32 32h96c16 0 32-16 32-32V256z"]},{prefix:"fak",iconName:"chart-decks-2",icon:[603,512,[],"","M467.1 210.8c4.3 0-60.2 0 15.1 0C467.8 108.4 377.7 0 271.4 0c-5.1 0-10.1 .2-15.1 .6V225.9h75.3c0-15.1 45.2-15.1 135.5-15.1zM301.5 346.4c0-27.1 0-45.2 0-75.3H211.1V30.6C93.4 38.4 .3 136.3 .3 256c0 124.8 101.2 225.9 225.9 225.9c41.2 0 42.1 4.2 75.3-15.1c0-45.2 0-80.5 0-120.5zm45.2 105.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1z"]},{prefix:"fak",iconName:"chart-cards-2",icon:[603,512,[],"","M376.8 195.8c28.3-14.2 60.2 0 75.3 30.1h60.2c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2V256c0 24.9 20.2 45.2 45.2 45.2H256.3c-15.1-30.1 15.1-45.2 15.1-45.2s75.3-45.2 105.4-60.2zm-90.4 256c12.8 0 45.2 0 45.2 0L271.4 331.3H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H286.4zM452.1 105.4V75.3c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H406.9c24.9 0 45.2-20.2 45.2-45.2zM285.8 273.7c-13.8 8.2-18.5 26.2-10.5 40.3l86.4 153.2c8 14.1 25.6 19 39.4 10.8l99.8-59c13.8-8.2 18.5-26.2 10.6-40.3L425 225.5c-8-14.1-25.6-18.9-39.4-10.7l-99.9 58.9zM509.2 433.7l-70 41.3c5 4.3 11.5 6.9 18.6 6.9h116c16 0 29-13.3 29-29.6V274.4c0-16.4-13-29.6-29-29.6h-116c-.9 0-1.8 .1-2.7 .1l70.8 125.4c12.5 22.2 5.1 50.6-16.6 63.4z"]})}const Hf=bf.defineStore("cardJson",{state:()=>({cardJson:[]}),actions:{update(e){this.cardJson=e}}});function s1(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Wf(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:s1(t[n])&&s1(e[n])&&Object.keys(t[n]).length>0&&Wf(e[n],t[n])})}const l2={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ua(){const e=typeof document<"u"?document:{};return Wf(e,l2),e}const ew={document:l2,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function un(){const e=typeof window<"u"?window:{};return Wf(e,ew),e}function tw(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Md(e,t=0){return setTimeout(e,t)}function Kl(){return Date.now()}function nw(e){const t=un();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function rw(e,t="x"){const n=un();let r,a,i;const s=nw(e);return n.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(l=>l.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=i.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=i.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function nl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function aw(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function tn(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!aw(a)){const i=Object.keys(Object(a)).filter(s=>n.indexOf(s)<0);for(let s=0,l=i.length;s<l;s+=1){const c=i[s],u=Object.getOwnPropertyDescriptor(a,c);u!==void 0&&u.enumerable&&(nl(t[c])&&nl(a[c])?a[c].__swiper__?t[c]=a[c]:tn(t[c],a[c]):!nl(t[c])&&nl(a[c])?(t[c]={},a[c].__swiper__?t[c]=a[c]:tn(t[c],a[c])):t[c]=a[c])}}}return t}function rl(e,t,n){e.style.setProperty(t,n)}function c2({swiper:e,targetPosition:t,side:n}){const r=un(),a=-e.translate;let i=null,s;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const c=t>a?"next":"prev",u=(f,p)=>c==="next"&&f>=p||c==="prev"&&f<=p,d=()=>{s=new Date().getTime(),i===null&&(i=s);const f=Math.max(Math.min((s-i)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let h=a+p*(t-a);if(u(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),u(h,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(d)};d()}function Wn(e,t=""){return[...e.children].filter(n=>n.matches(t))}function u2(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function iw(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function sw(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function $r(e,t){return un().getComputedStyle(e,null).getPropertyValue(t)}function o1(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function ow(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function l1(e,t,n){const r=un();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Tu;function lw(){const e=un(),t=Ua();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function d2(){return Tu||(Tu=lw()),Tu}let Ou;function cw({userAgent:e}={}){const t=d2(),n=un(),r=n.navigator.platform,a=e||n.navigator.userAgent,i={ios:!1,android:!1},s=n.screen.width,l=n.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=r==="Win32";let h=r==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&h&&t.touch&&g.indexOf(`${s}x${l}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),c&&!p&&(i.os="android",i.android=!0),(u||f||d)&&(i.os="ios",i.ios=!0),i}function uw(e={}){return Ou||(Ou=cw(e)),Ou}let Mu;function dw(){const e=un();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[a,i]=r.split("Version/")[1].split(" ")[0].split(".").map(s=>Number(s));t=a<16||a===16&&i<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function fw(){return Mu||(Mu=dw()),Mu}function pw({swiper:e,on:t,emit:n}){const r=un();let a=null,i=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(d=>{i=r.requestAnimationFrame(()=>{const{width:f,height:p}=e;let h=f,g=p;d.forEach(({contentBoxSize:v,contentRect:b,target:m})=>{m&&m!==e.el||(h=b?b.width:(v[0]||v).inlineSize,g=b?b.height:(v[0]||v).blockSize)}),(h!==f||g!==p)&&s()})}),a.observe(e.el))},c=()=>{i&&r.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},u=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",u)})}function hw({swiper:e,extendParams:t,on:n,emit:r}){const a=[],i=un(),s=(u,d={})=>{const f=i.MutationObserver||i.WebkitMutationObserver,p=new f(h=>{if(e.__preventObserver__)return;if(h.length===1){r("observerUpdate",h[0]);return}const g=function(){r("observerUpdate",h[0])};i.requestAnimationFrame?i.requestAnimationFrame(g):i.setTimeout(g,0)});p.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),a.push(p)},l=()=>{if(e.params.observer){if(e.params.observeParents){const u=ow(e.el);for(let d=0;d<u.length;d+=1)s(u[d])}s(e.el,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},c=()=>{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",c)}const mw={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...i){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,i)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(l=>{l.apply(a,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(l=>{l.apply(a,r)})}),t}};function gw(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt($r(r,"padding-left")||0,10)-parseInt($r(r,"padding-right")||0,10),n=n-parseInt($r(r,"padding-top")||0,10)-parseInt($r(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function vw(){const e=this;function t(D){return e.isHorizontal()?D:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[D]}function n(D,N){return parseFloat(D.getPropertyValue(t(N))||0)}const r=e.params,{wrapperEl:a,slidesEl:i,size:s,rtlTranslate:l,wrongRTL:c}=e,u=e.virtual&&r.virtual.enabled,d=u?e.virtual.slides.length:e.slides.length,f=Wn(i,`.${e.params.slideClass}, swiper-slide`),p=u?e.virtual.slides.length:f.length;let h=[];const g=[],v=[];let b=r.slidesOffsetBefore;typeof b=="function"&&(b=r.slidesOffsetBefore.call(e));let m=r.slidesOffsetAfter;typeof m=="function"&&(m=r.slidesOffsetAfter.call(e));const y=e.snapGrid.length,k=e.slidesGrid.length;let _=r.spaceBetween,w=-b,S=0,C=0;if(typeof s>"u")return;typeof _=="string"&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*s:typeof _=="string"&&(_=parseFloat(_)),e.virtualSize=-_,f.forEach(D=>{l?D.style.marginLeft="":D.style.marginRight="",D.style.marginBottom="",D.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(rl(a,"--swiper-centered-offset-before",""),rl(a,"--swiper-centered-offset-after",""));const E=r.grid&&r.grid.rows>1&&e.grid;E&&e.grid.initSlides(p);let O;const L=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(D=>typeof r.breakpoints[D].slidesPerView<"u").length>0;for(let D=0;D<p;D+=1){O=0;let N;if(f[D]&&(N=f[D]),E&&e.grid.updateSlide(D,N,p,t),!(f[D]&&$r(N,"display")==="none")){if(r.slidesPerView==="auto"){L&&(f[D].style[t("width")]="");const R=getComputedStyle(N),re=N.style.transform,K=N.style.webkitTransform;if(re&&(N.style.transform="none"),K&&(N.style.webkitTransform="none"),r.roundLengths)O=e.isHorizontal()?l1(N,"width",!0):l1(N,"height",!0);else{const Z=n(R,"width"),X=n(R,"padding-left"),ce=n(R,"padding-right"),Y=n(R,"margin-left"),se=n(R,"margin-right"),de=R.getPropertyValue("box-sizing");if(de&&de==="border-box")O=Z+Y+se;else{const{clientWidth:Te,offsetWidth:Fe}=N;O=Z+X+ce+Y+se+(Fe-Te)}}re&&(N.style.transform=re),K&&(N.style.webkitTransform=K),r.roundLengths&&(O=Math.floor(O))}else O=(s-(r.slidesPerView-1)*_)/r.slidesPerView,r.roundLengths&&(O=Math.floor(O)),f[D]&&(f[D].style[t("width")]=`${O}px`);f[D]&&(f[D].swiperSlideSize=O),v.push(O),r.centeredSlides?(w=w+O/2+S/2+_,S===0&&D!==0&&(w=w-s/2-_),D===0&&(w=w-s/2-_),Math.abs(w)<1/1e3&&(w=0),r.roundLengths&&(w=Math.floor(w)),C%r.slidesPerGroup===0&&h.push(w),g.push(w)):(r.roundLengths&&(w=Math.floor(w)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&h.push(w),g.push(w),w=w+O+_),e.virtualSize+=O+_,S=O,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+m,l&&c&&(r.effect==="slide"||r.effect==="coverflow")&&(a.style.width=`${e.virtualSize+_}px`),r.setWrapperSize&&(a.style[t("width")]=`${e.virtualSize+_}px`),E&&e.grid.updateWrapperSize(O,h,t),!r.centeredSlides){const D=[];for(let N=0;N<h.length;N+=1){let R=h[N];r.roundLengths&&(R=Math.floor(R)),h[N]<=e.virtualSize-s&&D.push(R)}h=D,Math.floor(e.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-s)}if(u&&r.loop){const D=v[0]+_;if(r.slidesPerGroup>1){const N=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),R=D*r.slidesPerGroup;for(let re=0;re<N;re+=1)h.push(h[h.length-1]+R)}for(let N=0;N<e.virtual.slidesBefore+e.virtual.slidesAfter;N+=1)r.slidesPerGroup===1&&h.push(h[h.length-1]+D),g.push(g[g.length-1]+D),e.virtualSize+=D}if(h.length===0&&(h=[0]),_!==0){const D=e.isHorizontal()&&l?"marginLeft":t("marginRight");f.filter((N,R)=>!r.cssMode||r.loop?!0:R!==f.length-1).forEach(N=>{N.style[D]=`${_}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let D=0;v.forEach(R=>{D+=R+(_||0)}),D-=_;const N=D-s;h=h.map(R=>R<0?-b:R>N?N+m:R)}if(r.centerInsufficientSlides){let D=0;if(v.forEach(N=>{D+=N+(_||0)}),D-=_,D<s){const N=(s-D)/2;h.forEach((R,re)=>{h[re]=R-N}),g.forEach((R,re)=>{g[re]=R+N})}}if(Object.assign(e,{slides:f,snapGrid:h,slidesGrid:g,slidesSizesGrid:v}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){rl(a,"--swiper-centered-offset-before",`${-h[0]}px`),rl(a,"--swiper-centered-offset-after",`${e.size/2-v[v.length-1]/2}px`);const D=-e.snapGrid[0],N=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(R=>R+D),e.slidesGrid=e.slidesGrid.map(R=>R+N)}if(p!==d&&e.emit("slidesLengthChange"),h.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),g.length!==k&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const D=`${r.containerModifierClass}backface-hidden`,N=e.el.classList.contains(D);p<=r.maxBackfaceHiddenSlides?N||e.el.classList.add(D):N&&e.el.classList.remove(D)}}function _w(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=l=>r?t.slides[t.getSlideIndexByData(l)]:t.slides[l];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(l=>{n.push(l)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const l=t.activeIndex+i;if(l>t.slides.length&&!r)break;n.push(s(l))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const l=n[i].offsetHeight;a=l>a?l:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function yw(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function bw(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;a&&(s=e),r.forEach(c=>{c.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:typeof l=="string"&&(l=parseFloat(l));for(let c=0;c<r.length;c+=1){const u=r[c];let d=u.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(d-=r[0].swiperSlideOffset);const f=(s+(n.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+l),p=(s-i[0]+(n.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+l),h=-(s-d),g=h+t.slidesSizesGrid[c];(h>=0&&h<t.size-1||g>1&&g<=t.size||h<=0&&g>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(c),r[c].classList.add(n.slideVisibleClass)),u.progress=a?-f:f,u.originalProgress=a?-p:p}}function kw(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:s,progressLoop:l}=t;const c=i,u=s;if(r===0)a=0,i=!0,s=!0;else{a=(e-t.minTranslate())/r;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=d||a<=0,s=f||a>=1,d&&(a=0),f&&(a=1)}if(n.loop){const d=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[d],h=t.slidesGrid[f],g=t.slidesGrid[t.slidesGrid.length-1],v=Math.abs(e);v>=p?l=(v-p)/g:l=(v+g-h)/g,l>1&&(l-=1)}Object.assign(t,{progress:a,progressLoop:l,isBeginning:i,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!c&&t.emit("reachBeginning toEdge"),s&&!u&&t.emit("reachEnd toEdge"),(c&&!i||u&&!s)&&t.emit("fromEdge"),t.emit("progress",a)}function ww(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,i=e.virtual&&n.virtual.enabled,s=c=>Wn(r,`.${n.slideClass}${c}, swiper-slide${c}`)[0];t.forEach(c=>{c.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let l;if(i)if(n.loop){let c=a-e.virtual.slidesBefore;c<0&&(c=e.virtual.slides.length+c),c>=e.virtual.slides.length&&(c-=e.virtual.slides.length),l=s(`[data-swiper-slide-index="${c}"]`)}else l=s(`[data-swiper-slide-index="${a}"]`);else l=t[a];if(l){l.classList.add(n.slideActiveClass);let c=sw(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c&&(c=t[0]),c&&c.classList.add(n.slideNextClass);let u=iw(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const Nl=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const a=r.querySelector(`.${e.params.lazyPreloaderClass}`);a&&a.remove()}},c1=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Nd=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex,i=a+r-1;if(e.params.rewind)for(let s=a-t;s<=i+t;s+=1){const l=(s%n+n)%n;l!==a&&l>i&&c1(e,l)}else for(let s=Math.max(i-t,0);s<=Math.min(i+t,n-1);s+=1)s!==a&&s>i&&c1(e,s)};function Sw(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?a=i:r>=t[i]&&r<t[i+1]&&(a=i+1):r>=t[i]&&(a=i);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function xw(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:i,realIndex:s,snapIndex:l}=t;let c=e,u;const d=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof c>"u"&&(c=Sw(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(a.slidesPerGroupSkip,c);u=p+Math.floor((c-p)/a.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),c===i){u!==l&&(t.snapIndex=u,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=d(c));return}let f;t.virtual&&a.virtual.enabled&&a.loop?f=d(c):t.slides[c]?f=parseInt(t.slides[c].getAttribute("data-swiper-slide-index")||c,10):f=c,Object.assign(t,{previousSnapIndex:l,snapIndex:u,previousRealIndex:s,realIndex:f,previousIndex:i,activeIndex:c}),t.initialized&&Nd(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function Cw(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let a=!1,i;if(r){for(let s=0;s<t.slides.length;s+=1)if(t.slides[s]===r){a=!0,i=s;break}}if(r&&a)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=i;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const Ew={updateSize:gw,updateSlides:vw,updateAutoHeight:_w,updateSlidesOffset:yw,updateSlidesProgress:bw,updateProgress:kw,updateSlidesClasses:ww,updateActiveIndex:xw,updateClickedSlide:Cw};function Tw(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:i}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let s=rw(i,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function Ow(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:i,progress:s}=n;let l=0,c=0;const u=0;n.isHorizontal()?l=r?-e:e:c=e,a.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,a.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:a.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${l}px, ${c}px, ${u}px)`);let d;const f=n.maxTranslate()-n.minTranslate();f===0?d=0:d=(e-n.minTranslate())/f,d!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function Mw(){return-this.snapGrid[0]}function Nw(){return-this.snapGrid[this.snapGrid.length-1]}function Dw(e=0,t=this.params.speed,n=!0,r=!0,a){const i=this,{params:s,wrapperEl:l}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const c=i.minTranslate(),u=i.maxTranslate();let d;if(r&&e>c?d=c:r&&e<u?d=u:d=e,i.updateProgress(d),s.cssMode){const f=i.isHorizontal();if(t===0)l[f?"scrollLeft":"scrollTop"]=-d;else{if(!i.support.smoothScroll)return c2({swiper:i,targetPosition:-d,side:f?"left":"top"}),!0;l.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(d),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(d),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(p){!i||i.destroyed||p.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}const Pw={getTranslate:Tw,setTranslate:Ow,minTranslate:Mw,maxTranslate:Nw,translateTo:Dw};function Aw(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function f2({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:i}=e;let s=n;if(s||(a>i?s="next":a<i?s="prev":s="reset"),e.emit(`transition${r}`),t&&a!==i){if(s==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function Iw(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),f2({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function Lw(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),f2({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const Rw={setTransition:Aw,transitionStart:Iw,transitionEnd:Lw};function Bw(e=0,t=this.params.speed,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;s<0&&(s=0);const{params:l,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:p,wrapperEl:h,enabled:g}=i;if(i.animating&&l.preventInteractionOnTransition||!g&&!r&&!a)return!1;const v=Math.min(i.params.slidesPerGroupSkip,s);let b=v+Math.floor((s-v)/i.params.slidesPerGroup);b>=c.length&&(b=c.length-1);const m=-c[b];if(l.normalizeSlideIndex)for(let k=0;k<u.length;k+=1){const _=-Math.floor(m*100),w=Math.floor(u[k]*100),S=Math.floor(u[k+1]*100);typeof u[k+1]<"u"?_>=w&&_<S-(S-w)/2?s=k:_>=w&&_<S&&(s=k+1):_>=w&&(s=k)}if(i.initialized&&s!==f&&(!i.allowSlideNext&&m<i.translate&&m<i.minTranslate()||!i.allowSlidePrev&&m>i.translate&&m>i.maxTranslate()&&(f||0)!==s))return!1;s!==(d||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(m);let y;if(s>f?y="next":s<f?y="prev":y="reset",p&&-m===i.translate||!p&&m===i.translate)return i.updateActiveIndex(s),l.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),l.effect!=="slide"&&i.setTranslate(m),y!=="reset"&&(i.transitionStart(n,y),i.transitionEnd(n,y)),!1;if(l.cssMode){const k=i.isHorizontal(),_=p?m:-m;if(t===0){const w=i.virtual&&i.params.virtual.enabled;w&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),w&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[k?"scrollLeft":"scrollTop"]=_})):h[k?"scrollLeft":"scrollTop"]=_,w&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return c2({swiper:i,targetPosition:_,side:k?"left":"top"}),!0;h.scrollTo({[k?"left":"top"]:_,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(m),i.updateActiveIndex(s),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,y),t===0?i.transitionEnd(n,y):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(_){!i||i.destroyed||_.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,y))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function Vw(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;let i=e;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?i=i+a.virtual.slidesBefore:i=a.getSlideIndexByData(i)),a.slideTo(i,t,n,r)}function $w(e=this.params.speed,t=!0,n){const r=this,{enabled:a,params:i,animating:s}=r;if(!a)return r;let l=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const c=r.activeIndex<i.slidesPerGroupSkip?1:l,u=r.virtual&&i.virtual.enabled;if(i.loop){if(s&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function Fw(e=this.params.speed,t=!0,n){const r=this,{params:a,snapGrid:i,slidesGrid:s,rtlTranslate:l,enabled:c,animating:u}=r;if(!c)return r;const d=r.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=l?r.translate:-r.translate;function p(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}const h=p(f),g=i.map(m=>p(m));let v=i[g.indexOf(h)-1];if(typeof v>"u"&&a.cssMode){let m;i.forEach((y,k)=>{h>=y&&(m=k)}),typeof m<"u"&&(v=i[m>0?m-1:m])}let b=0;if(typeof v<"u"&&(b=s.indexOf(v),b<0&&(b=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(b=b-r.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),a.rewind&&r.isBeginning){const m=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(m,e,t,n)}return r.slideTo(b,e,t,n)}function zw(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function jw(e=this.params.speed,t=!0,n,r=.5){const a=this;let i=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,i),l=s+Math.floor((i-s)/a.params.slidesPerGroup),c=a.rtlTranslate?a.translate:-a.translate;if(c>=a.snapGrid[l]){const u=a.snapGrid[l],d=a.snapGrid[l+1];c-u>(d-u)*r&&(i+=a.params.slidesPerGroup)}else{const u=a.snapGrid[l-1],d=a.snapGrid[l];c-u<=(d-u)*r&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,n)}function Hw(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.clickedIndex,i;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(Wn(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Md(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(Wn(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Md(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}const Ww={slideTo:Bw,slideToLoop:Vw,slideNext:$w,slidePrev:Fw,slideReset:zw,slideToClosest:jw,slideToClickedSlide:Hw};function Uw(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;Wn(r,`.${n.slideClass}, swiper-slide`).forEach((i,s)=>{i.setAttribute("data-swiper-slide-index",s)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function Yw({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,byController:i,byMousewheel:s}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled){t&&(!p.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):p.centeredSlides&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,l.emit("loopFix");return}const h=p.slidesPerView==="auto"?l.slidesPerViewDynamic():Math.ceil(parseFloat(p.slidesPerView,10));let g=p.loopedSlides||h;g%p.slidesPerGroup!==0&&(g+=p.slidesPerGroup-g%p.slidesPerGroup),l.loopedSlides=g;const v=[],b=[];let m=l.activeIndex;typeof a>"u"?a=l.getSlideIndex(l.slides.filter(S=>S.classList.contains(p.slideActiveClass))[0]):m=a;const y=n==="next"||!n,k=n==="prev"||!n;let _=0,w=0;if(a<g){_=Math.max(g-a,p.slidesPerGroup);for(let S=0;S<g-a;S+=1){const C=S-Math.floor(S/c.length)*c.length;v.push(c.length-C-1)}}else if(a>l.slides.length-g*2){w=Math.max(a-(l.slides.length-g*2),p.slidesPerGroup);for(let S=0;S<w;S+=1){const C=S-Math.floor(S/c.length)*c.length;b.push(C)}}if(k&&v.forEach(S=>{l.slides[S].swiperLoopMoveDOM=!0,f.prepend(l.slides[S]),l.slides[S].swiperLoopMoveDOM=!1}),y&&b.forEach(S=>{l.slides[S].swiperLoopMoveDOM=!0,f.append(l.slides[S]),l.slides[S].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"&&l.updateSlides(),p.watchSlidesProgress&&l.updateSlidesOffset(),t){if(v.length>0&&k)if(typeof e>"u"){const S=l.slidesGrid[m],E=l.slidesGrid[m+_]-S;s?l.setTranslate(l.translate-E):(l.slideTo(m+_,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=E))}else r&&l.slideToLoop(e,0,!1,!0);else if(b.length>0&&y)if(typeof e>"u"){const S=l.slidesGrid[m],E=l.slidesGrid[m-w]-S;s?l.setTranslate(l.translate-E):(l.slideTo(m-w,0,!1,!0),r&&(l.touches[l.isHorizontal()?"startX":"startY"]+=E))}else l.slideToLoop(e,0,!1,!0)}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!i){const S={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(C=>{!C.destroyed&&C.params.loop&&C.loopFix(S)}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix(S)}l.emit("loopFix")}function qw(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const Gw={loopCreate:Uw,loopFix:Yw,loopDestroy:qw};function Xw(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Kw(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const Jw={setGrabCursor:Xw,unsetGrabCursor:Kw};function Zw(e,t=this){function n(r){if(!r||r===Ua()||r===un())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function Qw(e){const t=this,n=Ua(),r=un(),a=t.touchEventsData;a.evCache.push(e);const{params:i,touches:s,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let c=e;c.originalEvent&&(c=c.originalEvent);let u=c.target;if(i.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(u)||"which"in c&&c.which===3||"button"in c&&c.button>0||a.isTouched&&a.isMoved)return;const d=!!i.noSwipingClass&&i.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;d&&c.target&&c.target.shadowRoot&&f&&(u=f[0]);const p=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,h=!!(c.target&&c.target.shadowRoot);if(i.noSwiping&&(h?Zw(p,u):u.closest(p))){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;s.currentX=c.pageX,s.currentY=c.pageY;const g=s.currentX,v=s.currentY,b=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,m=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(b&&(g<=m||g>=r.innerWidth-m))if(b==="prevent")e.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=g,s.startY=v,a.touchStartTime=Kl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let y=!0;u.matches(a.focusableElements)&&(y=!1,u.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const k=y&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||k)&&!u.isContentEditable&&c.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",c)}function eS(e){const t=Ua(),n=this,r=n.touchEventsData,{params:a,touches:i,rtlTranslate:s,enabled:l}=n;if(!l||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c);return}const u=r.evCache.findIndex(S=>S.pointerId===c.pointerId);u>=0&&(r.evCache[u]=c);const d=r.evCache.length>1?r.evCache[0]:c,f=d.pageX,p=d.pageY;if(c.preventedByNestedSwiper){i.startX=f,i.startY=p;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:f,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:f,currentY:p}),r.touchStartTime=Kl());return}if(a.touchReleaseOnEdges&&!a.loop){if(n.isVertical()){if(p<i.startY&&n.translate<=n.maxTranslate()||p>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(f<i.startX&&n.translate<=n.maxTranslate()||f>i.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;i.currentX=f,i.currentY=p;const h=i.currentX-i.startX,g=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(h**2+g**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let S;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:h*h+g*g>=25&&(S=Math.atan2(Math.abs(g),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?S>a.touchAngle:90-S>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&c.cancelable&&c.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&c.stopPropagation();let v=n.isHorizontal()?h:g,b=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(v=Math.abs(v)*(s?1:-1),b=Math.abs(b)*(s?1:-1)),i.diff=v,v*=a.touchRatio,s&&(v=-v,b=-b);const m=n.touchesDirection;n.swipeDirection=v>0?"prev":"next",n.touchesDirection=b>0?"prev":"next";const y=n.params.loop&&!a.cssMode;if(!r.isMoved){if(y&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const S=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(S)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}let k;r.isMoved&&m!==n.touchesDirection&&y&&Math.abs(v)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),k=!0),n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=v+r.startTranslate;let _=!0,w=a.resistanceRatio;if(a.touchReleaseOnEdges&&(w=0),v>0?(y&&!k&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(_=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+v)**w))):v<0&&(y&&!k&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(_=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-v)**w))),_&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(v)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function tS(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(k=>k.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:a,touches:i,rtlTranslate:s,slidesGrid:l,enabled:c}=t;if(!c||!a.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Kl(),f=d-n.touchStartTime;if(t.allowClick){const k=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(k&&k[0]||u.target),t.emit("tap click",u),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=Kl(),Md(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(a.followFinger?p=s?t.translate:-t.translate:p=-n.currentTranslate,a.cssMode)return;if(t.params.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}let h=0,g=t.slidesSizesGrid[0];for(let k=0;k<l.length;k+=k<a.slidesPerGroupSkip?1:a.slidesPerGroup){const _=k<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof l[k+_]<"u"?p>=l[k]&&p<l[k+_]&&(h=k,g=l[k+_]-l[k]):p>=l[k]&&(h=k,g=l[l.length-1]-l[l.length-2])}let v=null,b=null;a.rewind&&(t.isBeginning?b=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const m=(p-l[h])/g,y=h<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(m>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?v:h+y):t.slideTo(h)),t.swipeDirection==="prev"&&(m>1-a.longSwipesRatio?t.slideTo(h+y):b!==null&&m<0&&Math.abs(m)>a.longSwipesRatio?t.slideTo(b):t.slideTo(h))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(h+y):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(v!==null?v:h+y),t.swipeDirection==="prev"&&t.slideTo(b!==null?b:h))}}function u1(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:i}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!l?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function nS(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function rS(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function aS(e){const t=this;Nl(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let d1=!1;function iS(){}const p2=(e,t)=>{const n=Ua(),{params:r,el:a,wrapperEl:i,device:s}=e,l=!!r.nested,c=t==="on"?"addEventListener":"removeEventListener",u=t;a[c]("pointerdown",e.onTouchStart,{passive:!1}),n[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[c]("pointerup",e.onTouchEnd,{passive:!0}),n[c]("pointercancel",e.onTouchEnd,{passive:!0}),n[c]("pointerout",e.onTouchEnd,{passive:!0}),n[c]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[c]("click",e.onClick,!0),r.cssMode&&i[c]("scroll",e.onScroll),r.updateOnWindowResize?e[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",u1,!0):e[u]("observerUpdate",u1,!0),a[c]("load",e.onLoad,{capture:!0})};function sS(){const e=this,t=Ua(),{params:n}=e;e.onTouchStart=Qw.bind(e),e.onTouchMove=eS.bind(e),e.onTouchEnd=tS.bind(e),n.cssMode&&(e.onScroll=rS.bind(e)),e.onClick=nS.bind(e),e.onLoad=aS.bind(e),d1||(t.addEventListener("touchstart",iS),d1=!0),p2(e,"on")}function oS(){p2(this,"off")}const lS={attachEvents:sS,detachEvents:oS},f1=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function cS(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const s=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const c=(s in i?i[s]:void 0)||e.originalParams,u=f1(e,r),d=f1(e,c),f=r.enabled;u&&!d?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&d&&(a.classList.add(`${r.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(v=>{const b=r[v]&&r[v].enabled,m=c[v]&&c[v].enabled;b&&!m&&e[v].disable(),!b&&m&&e[v].enable()});const p=c.direction&&c.direction!==r.direction,h=r.loop&&(c.slidesPerView!==r.slidesPerView||p);p&&n&&e.changeDirection(),tn(e.params,c);const g=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!g?e.disable():!f&&g&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",c),h&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",c)}function uS(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=un(),i=t==="window"?a.innerHeight:n.clientHeight,s=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const c=parseFloat(l.substr(1));return{value:i*c,point:l}}return{value:l,point:l}});s.sort((l,c)=>parseInt(l.value,10)-parseInt(c.value,10));for(let l=0;l<s.length;l+=1){const{point:c,value:u}=s[l];t==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(r=c):u<=n.clientWidth&&(r=c)}return r||"max"}const dS={setBreakpoint:cS,getBreakpoint:uS};function fS(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function pS(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:i}=e,s=fS(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),a.classList.add(...t),e.emitContainerClasses()}function hS(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const mS={addClasses:pS,removeClasses:hS};function gS(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const vS={checkOverflow:gS},p1={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function _S(e,t){return function(r={}){const a=Object.keys(r)[0],i=r[a];if(typeof i!="object"||i===null){tn(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&e[a]===!0&&(e[a]={auto:!0}),!(a in e&&"enabled"in i)){tn(t,r);return}e[a]===!0&&(e[a]={enabled:!0}),typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),tn(t,r)}}const Nu={eventsEmitter:mw,update:Ew,translate:Pw,transition:Rw,slide:Ww,loop:Gw,grabCursor:Jw,events:lS,breakpoints:dS,checkOverflow:vS,classes:mS},Du={};let qs=class ir{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=tn({},r),n&&!r.el&&(r.el=n);const a=Ua();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const c=[];return a.querySelectorAll(r.el).forEach(u=>{const d=tn({},r,{el:u});c.push(new ir(d))}),c}const i=this;i.__swiper__=!0,i.support=d2(),i.device=uw({userAgent:r.userAgent}),i.browser=fw(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const s={};i.modules.forEach(c=>{c({params:r,swiper:i,extendParams:_S(r,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const l=tn({},p1,s);return i.params=tn({},l,Du,r),i.originalParams=tn({},i.params),i.passedParams=tn({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(c=>{i.on(c,i.params.on[c])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=Wn(n,`.${r.slideClass}, swiper-slide`),i=o1(a[0]);return o1(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Wn(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),s=(r.maxTranslate()-a)*t+a;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:i,slidesGrid:s,slidesSizesGrid:l,size:c,activeIndex:u}=r;let d=1;if(a.centeredSlides){let f=i[u].swiperSlideSize,p;for(let h=u+1;h<i.length;h+=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,d+=1,f>c&&(p=!0));for(let h=u-1;h>=0;h-=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,d+=1,f>c&&(p=!0))}else if(t==="current")for(let f=u+1;f<i.length;f+=1)(n?s[f]+l[f]-s[u]<c:s[f]-s[u]<c)&&(d+=1);else for(let f=u-1;f>=0;f-=1)s[u]-s[f]<c&&(d+=1);return d}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Nl(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const s=t.rtlTranslate?t.translate*-1:t.translate,l=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(t.params.freeMode&&t.params.freeMode.enabled)a(),t.params.autoHeight&&t.updateAutoHeight();else{if((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides){const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(s.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):Wn(r,a())[0])();return!s&&n.params.createElements&&(s=u2("div",n.params.wrapperClass),r.append(s),Wn(r,`.${n.params.slideClass}`).forEach(l=>{s.append(l)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement?r:s,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||$r(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||$r(r,"direction")==="rtl"),wrongRTL:$r(s,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete?Nl(n,a):a.addEventListener("load",i=>{Nl(n,i.target)})}),Nd(n),n.initialized=!0,Nd(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:a,el:i,wrapperEl:s,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),i.removeAttribute("style"),s.removeAttribute("style"),l&&l.length&&l.forEach(c=>{c.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(c=>{r.off(c)}),t!==!1&&(r.el.swiper=null,tw(r)),r.destroyed=!0),null}static extendDefaults(t){tn(Du,t)}static get extendedDefaults(){return Du}static get defaults(){return p1}static installModule(t){ir.prototype.__modules__||(ir.prototype.__modules__=[]);const n=ir.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>ir.installModule(n)),ir):(ir.installModule(t),ir)}};Object.keys(Nu).forEach(e=>{Object.keys(Nu[e]).forEach(t=>{qs.prototype[t]=Nu[e][t]})});qs.use([pw,hw]);function yS(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let i=Wn(e.el,`.${r[a]}`)[0];i||(i=u2("div",r[a]),i.className=r[a],e.el.append(i)),n[a]=i,t[a]=i}}),n}function bS({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const a=g=>(Array.isArray(g)||(g=[g].filter(v=>!!v)),g);function i(g){let v;return g&&typeof g=="string"&&e.isElement&&(v=e.el.shadowRoot.querySelector(g),v)?v:(g&&(typeof g=="string"&&(v=[...document.querySelectorAll(g)]),e.params.uniqueNavElements&&typeof g=="string"&&v.length>1&&e.el.querySelectorAll(g).length===1&&(v=e.el.querySelector(g))),g&&!v?g:v)}function s(g,v){const b=e.params.navigation;g=a(g),g.forEach(m=>{m&&(m.classList[v?"add":"remove"](...b.disabledClass.split(" ")),m.tagName==="BUTTON"&&(m.disabled=v),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](b.lockClass))})}function l(){const{nextEl:g,prevEl:v}=e.navigation;if(e.params.loop){s(v,!1),s(g,!1);return}s(v,e.isBeginning&&!e.params.rewind),s(g,e.isEnd&&!e.params.rewind)}function c(g){g.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(g){g.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function d(){const g=e.params.navigation;if(e.params.navigation=yS(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(g.nextEl||g.prevEl))return;let v=i(g.nextEl),b=i(g.prevEl);Object.assign(e.navigation,{nextEl:v,prevEl:b}),v=a(v),b=a(b);const m=(y,k)=>{y&&y.addEventListener("click",k==="next"?u:c),!e.enabled&&y&&y.classList.add(...g.lockClass.split(" "))};v.forEach(y=>m(y,"next")),b.forEach(y=>m(y,"prev"))}function f(){let{nextEl:g,prevEl:v}=e.navigation;g=a(g),v=a(v);const b=(m,y)=>{m.removeEventListener("click",y==="next"?u:c),m.classList.remove(...e.params.navigation.disabledClass.split(" "))};g.forEach(m=>b(m,"next")),v.forEach(m=>b(m,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?h():(d(),l())}),n("toEdge fromEdge lock unlock",()=>{l()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:g,prevEl:v}=e.navigation;g=a(g),v=a(v),[...g,...v].filter(b=>!!b).forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(g,v)=>{let{nextEl:b,prevEl:m}=e.navigation;b=a(b),m=a(m);const y=v.target;if(e.params.navigation.hideOnClick&&!m.includes(y)&&!b.includes(y)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===y||e.pagination.el.contains(y)))return;let k;b.length?k=b[0].classList.contains(e.params.navigation.hiddenClass):m.length&&(k=m[0].classList.contains(e.params.navigation.hiddenClass)),r(k===!0?"navigationShow":"navigationHide"),[...b,...m].filter(_=>!!_).forEach(_=>_.classList.toggle(e.params.navigation.hiddenClass))}});const p=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),l()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:p,disable:h,update:l,init:d,destroy:f})}function Va(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Fr(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Va(t[r])&&Va(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Fr(e[r],t[r]):e[r]=t[r]})}function h2(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function m2(e={}){return e.pagination&&typeof e.pagination.el>"u"}function g2(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function v2(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function kS(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const _2=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function h1(e={},t=!0){const n={on:{}},r={},a={};Fr(n,qs.defaults),Fr(n,qs.extendedDefaults),n._emitClasses=!0,n.init=!1;const i={},s=_2.map(c=>c.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(c=>{typeof e[c]>"u"||(s.indexOf(c)>=0?Va(e[c])?(n[c]={},a[c]={},Fr(n[c],e[c]),Fr(a[c],e[c])):(n[c]=e[c],a[c]=e[c]):c.search(/on[A-Z]/)===0&&typeof e[c]=="function"?t?r[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:n.on[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:i[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{n[c]===!0&&(n[c]={}),n[c]===!1&&delete n[c]}),{params:n,passedParams:a,rest:i,events:r}}function wS({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:i},s){h2(s)&&t&&n&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),m2(s)&&r&&(i.params.pagination.el=r,i.originalParams.pagination.el=r),g2(s)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function SS(e,t,n,r,a){const i=[];if(!t)return i;const s=c=>{i.indexOf(c)<0&&i.push(c)};if(n&&r){const c=r.map(a),u=n.map(a);c.join("")!==u.join("")&&s("children"),r.length!==n.length&&s("children")}return _2.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in e&&c in t)if(Va(e[c])&&Va(t[c])){const u=Object.keys(e[c]),d=Object.keys(t[c]);u.length!==d.length?s(c):(u.forEach(f=>{e[c][f]!==t[c][f]&&s(c)}),d.forEach(f=>{e[c][f]!==t[c][f]&&s(c)}))}else e[c]!==t[c]&&s(c)}),i}function Pu(e,t,n){e===void 0&&(e={});const r=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i=(s,l)=>{Array.isArray(s)&&s.forEach(c=>{const u=typeof c.type=="symbol";l==="default"&&(l="container-end"),u&&c.children?i(c.children,l):c.type&&(c.type.name==="SwiperSlide"||c.type.name==="AsyncComponentWrapper")?r.push(c):a[l]&&a[l].push(c)})};return Object.keys(e).forEach(s=>{if(typeof e[s]!="function")return;const l=e[s]();i(l,s)}),n.value=t.value,t.value=r,{slides:r,slots:a}}function xS({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:i,scrollbarEl:s,paginationEl:l}){const c=r.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:u,pagination:d,navigation:f,scrollbar:p,virtual:h,thumbs:g}=e;let v,b,m,y,k,_,w,S;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(v=!0),r.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(b=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(u.pagination||u.pagination===!1)&&d&&!d.el&&(m=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(u.scrollbar||u.scrollbar===!1)&&p&&!p.el&&(y=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||i)&&(n.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(k=!0);const C=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),u[E].prevEl=void 0,u[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),u[E].el=void 0,e[E].el=void 0))};r.includes("loop")&&e.isElement&&(u.loop&&!n.loop?_=!0:!u.loop&&n.loop?w=!0:S=!0),c.forEach(E=>{if(Va(u[E])&&Va(n[E]))Fr(u[E],n[E]),(E==="navigation"||E==="pagination"||E==="scrollbar")&&"enabled"in n[E]&&!n[E].enabled&&C(E);else{const O=n[E];(O===!0||O===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?O===!1&&C(E):u[E]=n[E]}}),c.includes("controller")&&!b&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&t&&h&&u.virtual.enabled&&(h.slides=t,h.update(!0)),r.includes("children")&&t&&u.loop&&(S=!0),v&&g.init()&&g.update(!0),b&&(e.controller.control=u.controller.control),m&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(l)),l&&(u.pagination.el=l),d.init(),d.render(),d.update()),y&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(s)),s&&(u.scrollbar.el=s),p.init(),p.updateSize(),p.setTranslate()),k&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(i))),a&&(u.navigation.nextEl=a),i&&(u.navigation.prevEl=i),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(_||S)&&e.loopDestroy(),(w||S)&&e.loopCreate(),e.update()}function CS(e,t,n){if(!n)return null;const r=d=>{let f=d;return d<0?f=t.length+d:f>=t.length&&(f=f-t.length),f},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:s}=n,l=e.value.params.loop?-t.length:0,c=e.value.params.loop?t.length*2:t.length,u=[];for(let d=l;d<c;d+=1)d>=i&&d<=s&&u.push(t[r(d)]);return u.map(d=>(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=e,d.props.style=a,o.h(d.type,{...d.props},d.children)))}const ES=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},y2={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:r}=t;const{tag:a,wrapperTag:i}=e,s=o.ref("swiper"),l=o.ref(null),c=o.ref(!1),u=o.ref(!1),d=o.ref(null),f=o.ref(null),p=o.ref(null),h={value:[]},g={value:[]},v=o.ref(null),b=o.ref(null),m=o.ref(null),y=o.ref(null),{params:k,passedParams:_}=h1(e,!1);Pu(n,h,g),p.value=_,g.value=h.value;const w=()=>{Pu(n,h,g),c.value=!0};k.onAny=function(E){for(var O=arguments.length,L=new Array(O>1?O-1:0),D=1;D<O;D++)L[D-1]=arguments[D];r(E,...L)},Object.assign(k.on,{_beforeBreakpoint:w,_containerClasses(E,O){s.value=O}});const S={...k};if(delete S.wrapperClass,f.value=new qs(S),f.value.virtual&&f.value.params.virtual.enabled){f.value.virtual.slides=h.value;const E={cache:!1,slides:h.value,renderExternal:O=>{l.value=O},renderExternalUpdate:!1};Fr(f.value.params.virtual,E),Fr(f.value.originalParams.virtual,E)}o.onUpdated(()=>{!u.value&&f.value&&(f.value.emitSlidesClasses(),u.value=!0);const{passedParams:E}=h1(e,!1),O=SS(E,p.value,h.value,g.value,L=>L.props&&L.props.key);p.value=E,(O.length||c.value)&&f.value&&!f.value.destroyed&&xS({swiper:f.value,slides:h.value,passedParams:E,changedParams:O,nextEl:v.value,prevEl:b.value,scrollbarEl:y.value,paginationEl:m.value}),c.value=!1}),o.provide("swiper",f),o.watch(l,()=>{o.nextTick(()=>{ES(f.value)})}),o.onMounted(()=>{d.value&&(wS({el:d.value,nextEl:v.value,prevEl:b.value,paginationEl:m.value,scrollbarEl:y.value,swiper:f.value},k),r("swiper",f.value))}),o.onBeforeUnmount(()=>{f.value&&!f.value.destroyed&&f.value.destroy(!0,!1)});function C(E){return k.virtual?CS(f,E,l.value):(E.forEach((O,L)=>{O.props||(O.props={}),O.props.swiperRef=f,O.props.swiperSlideIndex=L}),E)}return()=>{const{slides:E,slots:O}=Pu(n,h,g);return o.h(a,{ref:d,class:v2(s.value)},[O["container-start"],o.h(i,{class:kS(k.wrapperClass)},[O["wrapper-start"],C(E),O["wrapper-end"]]),h2(e)&&[o.h("div",{ref:b,class:"swiper-button-prev"}),o.h("div",{ref:v,class:"swiper-button-next"})],g2(e)&&o.h("div",{ref:y,class:"swiper-scrollbar"}),m2(e)&&o.h("div",{ref:m,class:"swiper-pagination"}),O["container-end"]])}}},b2={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,r=!1;const{swiperRef:a}=e,i=o.ref(null),s=o.ref("swiper-slide"),l=o.ref(!1);function c(f,p,h){p===i.value&&(s.value=h)}o.onMounted(()=>{!a||!a.value||(a.value.on("_slideClass",c),r=!0)}),o.onBeforeUpdate(()=>{r||!a||!a.value||(a.value.on("_slideClass",c),r=!0)}),o.onUpdated(()=>{!i.value||!a||!a.value||(typeof e.swiperSlideIndex<"u"&&(i.value.swiperSlideIndex=e.swiperSlideIndex),a.value.destroyed&&s.value!=="swiper-slide"&&(s.value="swiper-slide"))}),o.onBeforeUnmount(()=>{!a||!a.value||a.value.off("_slideClass",c)});const u=o.computed(()=>({isActive:s.value.indexOf("swiper-slide-active")>=0,isVisible:s.value.indexOf("swiper-slide-visible")>=0,isPrev:s.value.indexOf("swiper-slide-prev")>=0,isNext:s.value.indexOf("swiper-slide-next")>=0}));o.provide("swiperSlide",u);const d=()=>{l.value=!0};return()=>o.h(e.tag,{class:v2(`${s.value}`),ref:i,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&a&&a.value&&a.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:d},e.zoom?o.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[n.default&&n.default(u.value),e.lazy&&!l.value&&o.h("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(u.value),e.lazy&&!l.value&&o.h("div",{class:"swiper-lazy-preloader"})])}};const TS={cardCodes:{type:Array,required:!0,default:[]}};var Gt="top",yn="bottom",bn="right",Xt="left",Uf="auto",mo=[Gt,yn,bn,Xt],Ti="start",Gs="end",OS="clippingParents",k2="viewport",es="popper",MS="reference",m1=mo.reduce(function(e,t){return e.concat([t+"-"+Ti,t+"-"+Gs])},[]),w2=[].concat(mo,[Uf]).reduce(function(e,t){return e.concat([t,t+"-"+Ti,t+"-"+Gs])},[]),NS="beforeRead",DS="read",PS="afterRead",AS="beforeMain",IS="main",LS="afterMain",RS="beforeWrite",BS="write",VS="afterWrite",$S=[NS,DS,PS,AS,IS,LS,RS,BS,VS];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $a(e){var t=ln(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yf(e){if(typeof ShadowRoot>"u")return!1;var t=ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function FS(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!_n(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function zS(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!_n(a)||!Gn(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(c){a.removeAttribute(c)}))})}}const S2={name:"applyStyles",enabled:!0,phase:"write",fn:FS,effect:zS,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Na=Math.max,Jl=Math.min,Oi=Math.round;function Dd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function x2(){return!/^((?!chrome|android).)*safari/i.test(Dd())}function Mi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&_n(e)&&(a=e.offsetWidth>0&&Oi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Oi(r.height)/e.offsetHeight||1);var s=$a(e)?ln(e):window,l=s.visualViewport,c=!x2()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/a,d=(r.top+(c&&l?l.offsetTop:0))/i,f=r.width/a,p=r.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function qf(e){var t=Mi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Sr(e){return ln(e).getComputedStyle(e)}function jS(e){return["table","td","th"].indexOf(Gn(e))>=0}function la(e){return(($a(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pc(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yf(e)?e.host:null)||la(e)}function g1(e){return!_n(e)||Sr(e).position==="fixed"?null:e.offsetParent}function HS(e){var t=/firefox/i.test(Dd()),n=/Trident/i.test(Dd());if(n&&_n(e)){var r=Sr(e);if(r.position==="fixed")return null}var a=Pc(e);for(Yf(a)&&(a=a.host);_n(a)&&["html","body"].indexOf(Gn(a))<0;){var i=Sr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function go(e){for(var t=ln(e),n=g1(e);n&&jS(n)&&Sr(n).position==="static";)n=g1(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&Sr(n).position==="static")?t:n||HS(e)||t}function Gf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ks(e,t,n){return Na(e,Jl(t,n))}function WS(e,t,n){var r=ks(e,t,n);return r>n?n:r}function E2(){return{top:0,right:0,bottom:0,left:0}}function T2(e){return Object.assign({},E2(),e)}function O2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var US=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,T2(typeof t!="number"?t:O2(t,mo))};function YS(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Un(n.placement),c=Gf(l),u=[Xt,bn].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!s)){var f=US(a.padding,n),p=qf(i),h=c==="y"?Gt:Xt,g=c==="y"?yn:bn,v=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],b=s[c]-n.rects.reference[c],m=go(i),y=m?c==="y"?m.clientHeight||0:m.clientWidth||0:0,k=v/2-b/2,_=f[h],w=y-p[d]-f[g],S=y/2-p[d]/2+k,C=ks(_,S,w),E=c;n.modifiersData[r]=(t={},t[E]=C,t.centerOffset=C-S,t)}}function qS(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||C2(t.elements.popper,a)&&(t.elements.arrow=a))}const GS={name:"arrow",enabled:!0,phase:"main",fn:YS,effect:qS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ni(e){return e.split("-")[1]}var XS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function KS(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Oi(n*a)/a||0,y:Oi(r*a)/a||0}}function v1(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,h=p===void 0?0:p,g=s.y,v=g===void 0?0:g,b=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=b.x,v=b.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),k=Xt,_=Gt,w=window;if(u){var S=go(n),C="clientHeight",E="clientWidth";if(S===ln(n)&&(S=la(n),Sr(S).position!=="static"&&l==="absolute"&&(C="scrollHeight",E="scrollWidth")),S=S,a===Gt||(a===Xt||a===bn)&&i===Gs){_=yn;var O=f&&S===w&&w.visualViewport?w.visualViewport.height:S[C];v-=O-r.height,v*=c?1:-1}if(a===Xt||(a===Gt||a===yn)&&i===Gs){k=bn;var L=f&&S===w&&w.visualViewport?w.visualViewport.width:S[E];h-=L-r.width,h*=c?1:-1}}var D=Object.assign({position:l},u&&XS),N=d===!0?KS({x:h,y:v},ln(n)):{x:h,y:v};if(h=N.x,v=N.y,c){var R;return Object.assign({},D,(R={},R[_]=y?"0":"",R[k]=m?"0":"",R.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",R))}return Object.assign({},D,(t={},t[_]=y?v+"px":"",t[k]=m?h+"px":"",t.transform="",t))}function JS(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Un(t.placement),variation:Ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,v1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,v1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ZS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JS,data:{}};var al={passive:!0};function QS(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,c=ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,al)}),l&&c.addEventListener("resize",n.update,al),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,al)}),l&&c.removeEventListener("resize",n.update,al)}}const ex={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:QS,data:{}};var tx={left:"right",right:"left",bottom:"top",top:"bottom"};function Dl(e){return e.replace(/left|right|bottom|top/g,function(t){return tx[t]})}var nx={start:"end",end:"start"};function _1(e){return e.replace(/start|end/g,function(t){return nx[t]})}function Xf(e){var t=ln(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Kf(e){return Mi(la(e)).left+Xf(e).scrollLeft}function rx(e,t){var n=ln(e),r=la(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;var u=x2();(u||!u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l+Kf(e),y:c}}function ax(e){var t,n=la(e),r=Xf(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Na(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Na(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+Kf(e),c=-r.scrollTop;return Sr(a||n).direction==="rtl"&&(l+=Na(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Jf(e){var t=Sr(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function M2(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:_n(e)&&Jf(e)?e:M2(Pc(e))}function ws(e,t){var n;t===void 0&&(t=[]);var r=M2(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=ln(r),s=a?[i].concat(i.visualViewport||[],Jf(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(ws(Pc(s)))}function Pd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ix(e,t){var n=Mi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function y1(e,t,n){return t===k2?Pd(rx(e,n)):$a(t)?ix(t,n):Pd(ax(la(e)))}function sx(e){var t=ws(Pc(e)),n=["absolute","fixed"].indexOf(Sr(e).position)>=0,r=n&&_n(e)?go(e):e;return $a(r)?t.filter(function(a){return $a(a)&&C2(a,r)&&Gn(a)!=="body"}):[]}function ox(e,t,n,r){var a=t==="clippingParents"?sx(e):[].concat(t),i=[].concat(a,[n]),s=i[0],l=i.reduce(function(c,u){var d=y1(e,u,r);return c.top=Na(d.top,c.top),c.right=Jl(d.right,c.right),c.bottom=Jl(d.bottom,c.bottom),c.left=Na(d.left,c.left),c},y1(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function N2(e){var t=e.reference,n=e.element,r=e.placement,a=r?Un(r):null,i=r?Ni(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(a){case Gt:c={x:s,y:t.y-n.height};break;case yn:c={x:s,y:t.y+t.height};break;case bn:c={x:t.x+t.width,y:l};break;case Xt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=a?Gf(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ti:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Gs:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Xs(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?OS:l,u=n.rootBoundary,d=u===void 0?k2:u,f=n.elementContext,p=f===void 0?es:f,h=n.altBoundary,g=h===void 0?!1:h,v=n.padding,b=v===void 0?0:v,m=T2(typeof b!="number"?b:O2(b,mo)),y=p===es?MS:es,k=e.rects.popper,_=e.elements[g?y:p],w=ox($a(_)?_:_.contextElement||la(e.elements.popper),c,d,s),S=Mi(e.elements.reference),C=N2({reference:S,element:k,strategy:"absolute",placement:a}),E=Pd(Object.assign({},k,C)),O=p===es?E:S,L={top:w.top-O.top+m.top,bottom:O.bottom-w.bottom+m.bottom,left:w.left-O.left+m.left,right:O.right-w.right+m.right},D=e.modifiersData.offset;if(p===es&&D){var N=D[a];Object.keys(L).forEach(function(R){var re=[bn,yn].indexOf(R)>=0?1:-1,K=[Gt,yn].indexOf(R)>=0?"y":"x";L[R]+=N[K]*re})}return L}function lx(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?w2:c,d=Ni(r),f=d?l?m1:m1.filter(function(g){return Ni(g)===d}):mo,p=f.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=f);var h=p.reduce(function(g,v){return g[v]=Xs(e,{placement:v,boundary:a,rootBoundary:i,padding:s})[Un(v)],g},{});return Object.keys(h).sort(function(g,v){return h[g]-h[v]})}function cx(e){if(Un(e)===Uf)return[];var t=Dl(e);return[_1(e),t,_1(t)]}function ux(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,v=n.allowedAutoPlacements,b=t.options.placement,m=Un(b),y=m===b,k=c||(y||!g?[Dl(b)]:cx(b)),_=[b].concat(k).reduce(function(ve,ie){return ve.concat(Un(ie)===Uf?lx(t,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:v}):ie)},[]),w=t.rects.reference,S=t.rects.popper,C=new Map,E=!0,O=_[0],L=0;L<_.length;L++){var D=_[L],N=Un(D),R=Ni(D)===Ti,re=[Gt,yn].indexOf(N)>=0,K=re?"width":"height",Z=Xs(t,{placement:D,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),X=re?R?bn:Xt:R?yn:Gt;w[K]>S[K]&&(X=Dl(X));var ce=Dl(X),Y=[];if(i&&Y.push(Z[N]<=0),l&&Y.push(Z[X]<=0,Z[ce]<=0),Y.every(function(ve){return ve})){O=D,E=!1;break}C.set(D,Y)}if(E)for(var se=g?3:1,de=function(ie){var V=_.find(function(Q){var Ae=C.get(Q);if(Ae)return Ae.slice(0,ie).every(function(et){return et})});if(V)return O=V,"break"},Te=se;Te>0;Te--){var Fe=de(Te);if(Fe==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const dx={name:"flip",enabled:!0,phase:"main",fn:ux,requiresIfExists:["offset"],data:{_skip:!1}};function b1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function k1(e){return[Gt,bn,yn,Xt].some(function(t){return e[t]>=0})}function fx(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=Xs(t,{elementContext:"reference"}),l=Xs(t,{altBoundary:!0}),c=b1(s,r),u=b1(l,a,i),d=k1(c),f=k1(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const px={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fx};function hx(e,t,n){var r=Un(e),a=[Xt,Gt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[Xt,bn].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function mx(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=w2.reduce(function(d,f){return d[f]=hx(f,t.rects,i),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const gx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mx};function vx(e){var t=e.state,n=e.name;t.modifiersData[n]=N2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const _x={name:"popperOffsets",enabled:!0,phase:"read",fn:vx,data:{}};function yx(e){return e==="x"?"y":"x"}function bx(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,v=g===void 0?0:g,b=Xs(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),m=Un(t.placement),y=Ni(t.placement),k=!y,_=Gf(m),w=yx(_),S=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,O=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,L=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(S){if(i){var R,re=_==="y"?Gt:Xt,K=_==="y"?yn:bn,Z=_==="y"?"height":"width",X=S[_],ce=X+b[re],Y=X-b[K],se=h?-E[Z]/2:0,de=y===Ti?C[Z]:E[Z],Te=y===Ti?-E[Z]:-C[Z],Fe=t.elements.arrow,ve=h&&Fe?qf(Fe):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:E2(),V=ie[re],Q=ie[K],Ae=ks(0,C[Z],ve[Z]),et=k?C[Z]/2-se-Ae-V-L.mainAxis:de-Ae-V-L.mainAxis,_t=k?-C[Z]/2+se+Ae+Q+L.mainAxis:Te+Ae+Q+L.mainAxis,ut=t.elements.arrow&&go(t.elements.arrow),fn=ut?_==="y"?ut.clientTop||0:ut.clientLeft||0:0,T=(R=D==null?void 0:D[_])!=null?R:0,x=X+et-T-fn,P=X+_t-T,H=ks(h?Jl(ce,x):ce,X,h?Na(Y,P):Y);S[_]=H,N[_]=H-X}if(l){var te,ue=_==="x"?Gt:Xt,yt=_==="x"?yn:bn,st=S[w],Qt=w==="y"?"height":"width",Ve=st+b[ue],I=st-b[yt],$=[Gt,Xt].indexOf(m)!==-1,Ye=(te=D==null?void 0:D[w])!=null?te:0,qe=$?Ve:st-C[Qt]-E[Qt]-Ye+L.altAxis,In=$?st+C[Qt]+E[Qt]-Ye-L.altAxis:I,pn=h&&$?WS(qe,st,In):ks(h?qe:Ve,st,h?In:I);S[w]=pn,N[w]=pn-st}t.modifiersData[r]=N}}const kx={name:"preventOverflow",enabled:!0,phase:"main",fn:bx,requiresIfExists:["offset"]};function wx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Sx(e){return e===ln(e)||!_n(e)?Xf(e):wx(e)}function xx(e){var t=e.getBoundingClientRect(),n=Oi(t.width)/e.offsetWidth||1,r=Oi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Cx(e,t,n){n===void 0&&(n=!1);var r=_n(t),a=_n(t)&&xx(t),i=la(t),s=Mi(e,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||Jf(i))&&(l=Sx(t)),_n(t)?(c=Mi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Kf(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Ex(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function Tx(e){var t=Ex(e);return $S.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Ox(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Mx(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var w1={placement:"bottom",modifiers:[],strategy:"absolute"};function S1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Nx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?w1:a;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},w1,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(m){var y=typeof m=="function"?m(d.options):m;v(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:$a(l)?ws(l):l.contextElement?ws(l.contextElement):[],popper:ws(c)};var k=Tx(Mx([].concat(r,d.options.modifiers)));return d.orderedModifiers=k.filter(function(_){return _.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var m=d.elements,y=m.reference,k=m.popper;if(S1(y,k)){d.rects={reference:Cx(y,go(k),d.options.strategy==="fixed"),popper:qf(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var _=0;_<d.orderedModifiers.length;_++){if(d.reset===!0){d.reset=!1,_=-1;continue}var w=d.orderedModifiers[_],S=w.fn,C=w.options,E=C===void 0?{}:C,O=w.name;typeof S=="function"&&(d=S({state:d,options:E,name:O,instance:h})||d)}}}},update:Ox(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){v(),p=!0}};if(!S1(l,c))return h;h.setOptions(u).then(function(b){!p&&u.onFirstUpdate&&u.onFirstUpdate(b)});function g(){d.orderedModifiers.forEach(function(b){var m=b.name,y=b.options,k=y===void 0?{}:y,_=b.effect;if(typeof _=="function"){var w=_({state:d,name:m,instance:h,options:k}),S=function(){};f.push(w||S)}})}function v(){f.forEach(function(b){return b()}),f=[]}return h}}var Dx=[ex,_x,ZS,S2,gx,dx,kx,GS,px],Px=Nx({defaultModifiers:Dx}),Ax="tippy-box",D2="tippy-content",Ix="tippy-backdrop",P2="tippy-arrow",A2="tippy-svg-arrow",ya={passive:!0,capture:!0},I2=function(){return document.body};function Lx(e,t){return{}.hasOwnProperty.call(e,t)}function Au(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Zf(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function L2(e,t){return typeof e=="function"?e.apply(void 0,t):e}function x1(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Rx(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function Bx(e){return e.split(/\s+/).filter(Boolean)}function oi(e){return[].concat(e)}function C1(e,t){e.indexOf(t)===-1&&e.push(t)}function Vx(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function $x(e){return e.split("-")[0]}function Zl(e){return[].slice.call(e)}function E1(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Ss(){return document.createElement("div")}function Ks(e){return["Element","Fragment"].some(function(t){return Zf(e,t)})}function Fx(e){return Zf(e,"NodeList")}function zx(e){return Zf(e,"MouseEvent")}function jx(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Hx(e){return Ks(e)?[e]:Fx(e)?Zl(e):Array.isArray(e)?e:Zl(document.querySelectorAll(e))}function Iu(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function T1(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Wx(e){var t,n=oi(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Ux(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var i=a.popperRect,s=a.popperState,l=a.props,c=l.interactiveBorder,u=$x(s.placement),d=s.modifiersData.offset;if(!d)return!0;var f=u==="bottom"?d.top.y:0,p=u==="top"?d.bottom.y:0,h=u==="right"?d.left.x:0,g=u==="left"?d.right.x:0,v=i.top-r+f>c,b=r-i.bottom-p>c,m=i.left-n+h>c,y=n-i.right-g>c;return v||b||m||y})}function Lu(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function O1(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var zn={isTouch:!1},M1=0;function Yx(){zn.isTouch||(zn.isTouch=!0,window.performance&&document.addEventListener("mousemove",R2))}function R2(){var e=performance.now();e-M1<20&&(zn.isTouch=!1,document.removeEventListener("mousemove",R2)),M1=e}function qx(){var e=document.activeElement;if(jx(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Gx(){document.addEventListener("touchstart",Yx,ya),window.addEventListener("blur",qx)}var Xx=typeof window<"u"&&typeof document<"u",Kx=Xx?!!window.msCrypto:!1;function ri(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function N1(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function Jx(e){return N1(`
|
|
790
|
+
%ctippy.js
|
|
791
|
+
|
|
792
|
+
%c`+N1(e)+`
|
|
793
|
+
|
|
794
|
+
%c👷 This is a development-only message. It will be removed in production.
|
|
795
|
+
`)}function B2(e){return[Jx(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Js;process.env.NODE_ENV!=="production"&&Zx();function Zx(){Js=new Set}function lr(e,t){if(e&&!Js.has(t)){var n;Js.add(t),(n=console).warn.apply(n,B2(t))}}function Ad(e,t){if(e&&!Js.has(t)){var n;Js.add(t),(n=console).error.apply(n,B2(t))}}function Qx(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;Ad(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Ad(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var V2={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},eC={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},sn=Object.assign({appendTo:I2,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},V2,eC),tC=Object.keys(sn),nC=function(t){process.env.NODE_ENV!=="production"&&F2(t,[]);var n=Object.keys(t);n.forEach(function(r){sn[r]=t[r]})};function $2(e){var t=e.plugins||[],n=t.reduce(function(r,a){var i=a.name,s=a.defaultValue;if(i){var l;r[i]=e[i]!==void 0?e[i]:(l=sn[i])!=null?l:s}return r},{});return Object.assign({},e,n)}function rC(e,t){var n=t?Object.keys($2(Object.assign({},sn,{plugins:t}))):tC,r=n.reduce(function(a,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return a;if(i==="content")a[i]=s;else try{a[i]=JSON.parse(s)}catch{a[i]=s}return a},{});return r}function D1(e,t){var n=Object.assign({},t,{content:L2(t.content,[e])},t.ignoreAttributes?{}:rC(e,t.plugins));return n.aria=Object.assign({},sn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}function F2(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var a=Rx(sn,Object.keys(V2)),i=!Lx(a,r);i&&(i=t.filter(function(s){return s.name===r}).length===0),lr(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
796
|
+
|
|
797
|
+
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
798
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var aC=function(){return"innerHTML"};function Id(e,t){e[aC()]=t}function P1(e){var t=Ss();return e===!0?t.className=P2:(t.className=A2,Ks(e)?t.appendChild(e):Id(t,e)),t}function A1(e,t){Ks(t.content)?(Id(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Id(e,t.content):e.textContent=t.content)}function Ld(e){var t=e.firstElementChild,n=Zl(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(D2)}),arrow:n.find(function(r){return r.classList.contains(P2)||r.classList.contains(A2)}),backdrop:n.find(function(r){return r.classList.contains(Ix)})}}function z2(e){var t=Ss(),n=Ss();n.className=Ax,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ss();r.className=D2,r.setAttribute("data-state","hidden"),A1(r,e.props),t.appendChild(n),n.appendChild(r),a(e.props,e.props);function a(i,s){var l=Ld(t),c=l.box,u=l.content,d=l.arrow;s.theme?c.setAttribute("data-theme",s.theme):c.removeAttribute("data-theme"),typeof s.animation=="string"?c.setAttribute("data-animation",s.animation):c.removeAttribute("data-animation"),s.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?c.setAttribute("role",s.role):c.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&A1(u,e.props),s.arrow?d?i.arrow!==s.arrow&&(c.removeChild(d),c.appendChild(P1(s.arrow))):c.appendChild(P1(s.arrow)):d&&c.removeChild(d)}return{popper:t,onUpdate:a}}z2.$$tippy=!0;var iC=1,il=[],Ru=[];function sC(e,t){var n=D1(e,Object.assign({},sn,$2(E1(t)))),r,a,i,s=!1,l=!1,c=!1,u=!1,d,f,p,h=[],g=x1(x,n.interactiveDebounce),v,b=iC++,m=null,y=Vx(n.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:b,reference:e,popper:Ss(),popperInstance:m,props:n,state:k,plugins:y,clearDelayTimeouts:qe,setProps:In,setContent:pn,show:hn,hide:Sn,hideWithInteractivity:Xi,enable:$,disable:Ye,unmount:ei,destroy:Nr};if(!n.render)return process.env.NODE_ENV!=="production"&&Ad(!0,"render() function has not been supplied."),_;var w=n.render(_),S=w.popper,C=w.onUpdate;S.setAttribute("data-tippy-root",""),S.id="tippy-"+_.id,_.popper=S,e._tippy=_,S._tippy=_;var E=y.map(function(A){return A.fn(_)}),O=e.hasAttribute("aria-expanded");return ut(),se(),X(),ce("onCreate",[_]),n.showOnCreate&&Ve(),S.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),S.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&re().addEventListener("mousemove",g)}),_;function L(){var A=_.props.touch;return Array.isArray(A)?A:[A,0]}function D(){return L()[0]==="hold"}function N(){var A;return!!((A=_.props.render)!=null&&A.$$tippy)}function R(){return v||e}function re(){var A=R().parentNode;return A?Wx(A):document}function K(){return Ld(S)}function Z(A){return _.state.isMounted&&!_.state.isVisible||zn.isTouch||d&&d.type==="focus"?0:Au(_.props.delay,A?0:1,sn.delay)}function X(A){A===void 0&&(A=!1),S.style.pointerEvents=_.props.interactive&&!A?"":"none",S.style.zIndex=""+_.props.zIndex}function ce(A,J,oe){if(oe===void 0&&(oe=!0),E.forEach(function(ge){ge[A]&&ge[A].apply(ge,J)}),oe){var Se;(Se=_.props)[A].apply(Se,J)}}function Y(){var A=_.props.aria;if(A.content){var J="aria-"+A.content,oe=S.id,Se=oi(_.props.triggerTarget||e);Se.forEach(function(ge){var St=ge.getAttribute(J);if(_.state.isVisible)ge.setAttribute(J,St?St+" "+oe:oe);else{var Lt=St&&St.replace(oe,"").trim();Lt?ge.setAttribute(J,Lt):ge.removeAttribute(J)}})}}function se(){if(!(O||!_.props.aria.expanded)){var A=oi(_.props.triggerTarget||e);A.forEach(function(J){_.props.interactive?J.setAttribute("aria-expanded",_.state.isVisible&&J===R()?"true":"false"):J.removeAttribute("aria-expanded")})}}function de(){re().removeEventListener("mousemove",g),il=il.filter(function(A){return A!==g})}function Te(A){if(!(zn.isTouch&&(c||A.type==="mousedown"))){var J=A.composedPath&&A.composedPath()[0]||A.target;if(!(_.props.interactive&&O1(S,J))){if(oi(_.props.triggerTarget||e).some(function(oe){return O1(oe,J)})){if(zn.isTouch||_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else ce("onClickOutside",[_,A]);_.props.hideOnClick===!0&&(_.clearDelayTimeouts(),_.hide(),l=!0,setTimeout(function(){l=!1}),_.state.isMounted||V())}}}function Fe(){c=!0}function ve(){c=!1}function ie(){var A=re();A.addEventListener("mousedown",Te,!0),A.addEventListener("touchend",Te,ya),A.addEventListener("touchstart",ve,ya),A.addEventListener("touchmove",Fe,ya)}function V(){var A=re();A.removeEventListener("mousedown",Te,!0),A.removeEventListener("touchend",Te,ya),A.removeEventListener("touchstart",ve,ya),A.removeEventListener("touchmove",Fe,ya)}function Q(A,J){et(A,function(){!_.state.isVisible&&S.parentNode&&S.parentNode.contains(S)&&J()})}function Ae(A,J){et(A,J)}function et(A,J){var oe=K().box;function Se(ge){ge.target===oe&&(Lu(oe,"remove",Se),J())}if(A===0)return J();Lu(oe,"remove",f),Lu(oe,"add",Se),f=Se}function _t(A,J,oe){oe===void 0&&(oe=!1);var Se=oi(_.props.triggerTarget||e);Se.forEach(function(ge){ge.addEventListener(A,J,oe),h.push({node:ge,eventType:A,handler:J,options:oe})})}function ut(){D()&&(_t("touchstart",T,{passive:!0}),_t("touchend",P,{passive:!0})),Bx(_.props.trigger).forEach(function(A){if(A!=="manual")switch(_t(A,T),A){case"mouseenter":_t("mouseleave",P);break;case"focus":_t(Kx?"focusout":"blur",H);break;case"focusin":_t("focusout",H);break}})}function fn(){h.forEach(function(A){var J=A.node,oe=A.eventType,Se=A.handler,ge=A.options;J.removeEventListener(oe,Se,ge)}),h=[]}function T(A){var J,oe=!1;if(!(!_.state.isEnabled||te(A)||l)){var Se=((J=d)==null?void 0:J.type)==="focus";d=A,v=A.currentTarget,se(),!_.state.isVisible&&zx(A)&&il.forEach(function(ge){return ge(A)}),A.type==="click"&&(_.props.trigger.indexOf("mouseenter")<0||s)&&_.props.hideOnClick!==!1&&_.state.isVisible?oe=!0:Ve(A),A.type==="click"&&(s=!oe),oe&&!Se&&I(A)}}function x(A){var J=A.target,oe=R().contains(J)||S.contains(J);if(!(A.type==="mousemove"&&oe)){var Se=Qt().concat(S).map(function(ge){var St,Lt=ge._tippy,Dr=(St=Lt.popperInstance)==null?void 0:St.state;return Dr?{popperRect:ge.getBoundingClientRect(),popperState:Dr,props:n}:null}).filter(Boolean);Ux(Se,A)&&(de(),I(A))}}function P(A){var J=te(A)||_.props.trigger.indexOf("click")>=0&&s;if(!J){if(_.props.interactive){_.hideWithInteractivity(A);return}I(A)}}function H(A){_.props.trigger.indexOf("focusin")<0&&A.target!==R()||_.props.interactive&&A.relatedTarget&&S.contains(A.relatedTarget)||I(A)}function te(A){return zn.isTouch?D()!==A.type.indexOf("touch")>=0:!1}function ue(){yt();var A=_.props,J=A.popperOptions,oe=A.placement,Se=A.offset,ge=A.getReferenceClientRect,St=A.moveTransition,Lt=N()?Ld(S).arrow:null,Dr=ge?{getBoundingClientRect:ge,contextElement:ge.contextElement||R()}:e,Ki={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Pr){var Ar=Pr.state;if(N()){var jo=K(),Ji=jo.box;["placement","reference-hidden","escaped"].forEach(function(Ir){Ir==="placement"?Ji.setAttribute("data-placement",Ar.placement):Ar.attributes.popper["data-popper-"+Ir]?Ji.setAttribute("data-"+Ir,""):Ji.removeAttribute("data-"+Ir)}),Ar.attributes.popper={}}}},Tt=[{name:"offset",options:{offset:Se}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!St}},Ki];N()&&Lt&&Tt.push({name:"arrow",options:{element:Lt,padding:3}}),Tt.push.apply(Tt,(J==null?void 0:J.modifiers)||[]),_.popperInstance=Px(Dr,S,Object.assign({},J,{placement:oe,onFirstUpdate:p,modifiers:Tt}))}function yt(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function st(){var A=_.props.appendTo,J,oe=R();_.props.interactive&&A===I2||A==="parent"?J=oe.parentNode:J=L2(A,[oe]),J.contains(S)||J.appendChild(S),_.state.isMounted=!0,ue(),process.env.NODE_ENV!=="production"&&lr(_.props.interactive&&A===sn.appendTo&&oe.nextElementSibling!==S,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
799
|
+
|
|
800
|
+
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
801
|
+
|
|
802
|
+
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
803
|
+
|
|
804
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Qt(){return Zl(S.querySelectorAll("[data-tippy-root]"))}function Ve(A){_.clearDelayTimeouts(),A&&ce("onTrigger",[_,A]),ie();var J=Z(!0),oe=L(),Se=oe[0],ge=oe[1];zn.isTouch&&Se==="hold"&&ge&&(J=ge),J?r=setTimeout(function(){_.show()},J):_.show()}function I(A){if(_.clearDelayTimeouts(),ce("onUntrigger",[_,A]),!_.state.isVisible){V();return}if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(A.type)>=0&&s)){var J=Z(!1);J?a=setTimeout(function(){_.state.isVisible&&_.hide()},J):i=requestAnimationFrame(function(){_.hide()})}}function $(){_.state.isEnabled=!0}function Ye(){_.hide(),_.state.isEnabled=!1}function qe(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(i)}function In(A){if(process.env.NODE_ENV!=="production"&&lr(_.state.isDestroyed,ri("setProps")),!_.state.isDestroyed){ce("onBeforeUpdate",[_,A]),fn();var J=_.props,oe=D1(e,Object.assign({},J,E1(A),{ignoreAttributes:!0}));_.props=oe,ut(),J.interactiveDebounce!==oe.interactiveDebounce&&(de(),g=x1(x,oe.interactiveDebounce)),J.triggerTarget&&!oe.triggerTarget?oi(J.triggerTarget).forEach(function(Se){Se.removeAttribute("aria-expanded")}):oe.triggerTarget&&e.removeAttribute("aria-expanded"),se(),X(),C&&C(J,oe),_.popperInstance&&(ue(),Qt().forEach(function(Se){requestAnimationFrame(Se._tippy.popperInstance.forceUpdate)})),ce("onAfterUpdate",[_,A])}}function pn(A){_.setProps({content:A})}function hn(){process.env.NODE_ENV!=="production"&&lr(_.state.isDestroyed,ri("show"));var A=_.state.isVisible,J=_.state.isDestroyed,oe=!_.state.isEnabled,Se=zn.isTouch&&!_.props.touch,ge=Au(_.props.duration,0,sn.duration);if(!(A||J||oe||Se)&&!R().hasAttribute("disabled")&&(ce("onShow",[_],!1),_.props.onShow(_)!==!1)){if(_.state.isVisible=!0,N()&&(S.style.visibility="visible"),X(),ie(),_.state.isMounted||(S.style.transition="none"),N()){var St=K(),Lt=St.box,Dr=St.content;Iu([Lt,Dr],0)}p=function(){var Tt;if(!(!_.state.isVisible||u)){if(u=!0,S.offsetHeight,S.style.transition=_.props.moveTransition,N()&&_.props.animation){var ha=K(),Pr=ha.box,Ar=ha.content;Iu([Pr,Ar],ge),T1([Pr,Ar],"visible")}Y(),se(),C1(Ru,_),(Tt=_.popperInstance)==null||Tt.forceUpdate(),ce("onMount",[_]),_.props.animation&&N()&&Ae(ge,function(){_.state.isShown=!0,ce("onShown",[_])})}},st()}}function Sn(){process.env.NODE_ENV!=="production"&&lr(_.state.isDestroyed,ri("hide"));var A=!_.state.isVisible,J=_.state.isDestroyed,oe=!_.state.isEnabled,Se=Au(_.props.duration,1,sn.duration);if(!(A||J||oe)&&(ce("onHide",[_],!1),_.props.onHide(_)!==!1)){if(_.state.isVisible=!1,_.state.isShown=!1,u=!1,s=!1,N()&&(S.style.visibility="hidden"),de(),V(),X(!0),N()){var ge=K(),St=ge.box,Lt=ge.content;_.props.animation&&(Iu([St,Lt],Se),T1([St,Lt],"hidden"))}Y(),se(),_.props.animation?N()&&Q(Se,_.unmount):_.unmount()}}function Xi(A){process.env.NODE_ENV!=="production"&&lr(_.state.isDestroyed,ri("hideWithInteractivity")),re().addEventListener("mousemove",g),C1(il,g),g(A)}function ei(){process.env.NODE_ENV!=="production"&&lr(_.state.isDestroyed,ri("unmount")),_.state.isVisible&&_.hide(),_.state.isMounted&&(yt(),Qt().forEach(function(A){A._tippy.unmount()}),S.parentNode&&S.parentNode.removeChild(S),Ru=Ru.filter(function(A){return A!==_}),_.state.isMounted=!1,ce("onHidden",[_]))}function Nr(){process.env.NODE_ENV!=="production"&&lr(_.state.isDestroyed,ri("destroy")),!_.state.isDestroyed&&(_.clearDelayTimeouts(),_.unmount(),fn(),delete e._tippy,_.state.isDestroyed=!0,ce("onDestroy",[_]))}}function ot(e,t){t===void 0&&(t={});var n=sn.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&(Qx(e),F2(t,n)),Gx();var r=Object.assign({},t,{plugins:n}),a=Hx(e);if(process.env.NODE_ENV!=="production"){var i=Ks(r.content),s=a.length>1;lr(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
805
|
+
|
|
806
|
+
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
807
|
+
|
|
808
|
+
`,`1) content: element.innerHTML
|
|
809
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=a.reduce(function(c,u){var d=u&&sC(u,r);return d&&c.push(d),c},[]);return Ks(e)?l[0]:l}ot.defaultProps=sn;ot.setDefaultProps=nC;ot.currentInput=zn;Object.assign({},S2,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});ot.setDefaultProps({render:z2});const j2={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},isRoot:{type:Boolean,required:!0},quantityNeeded:{type:Number,required:!1,default:void 0},deckList:{type:Object,required:!1,default(){return{}}},isDeckBuilder:{type:Boolean,required:!1,default:!1},userCardQuantity:{type:Object,required:!1,default:void 0},showTippyLocation:{type:String,required:!1,default:null}},oC=["alt","src"],lC={key:0,class:"quantity-ticks-container"},cC={key:0},uC={key:0,class:"card-info-quantity-possessed"},dC={key:1,class:"line"},fC={class:"card-info-title"},pC={class:"card-info-text"},hC={key:2,class:"line"},mC={key:3,class:"card-info-text"},gC={key:1,class:"associated-card-container"},vC=o.defineComponent({__name:"CardItem",props:j2,setup(e){const t=e,n=o.ref(null),r=o.ref(null);let a=null;const i=o.ref(!1),s=co(t.cardProp,t.cardCodeProp),l=o.computed(()=>s.value===void 0?null:t.quantityNeeded!=null&&t.userCardQuantity!=null&&s.value.cardCode in t.userCardQuantity&&t.quantityNeeded>t.userCardQuantity[s.value.cardCode]?"bad":null),c=o.computed(()=>{if(s.value===void 0)return[];const b=[];if(t.isRoot)for(const m of s.value.associatedCardRefs)b.push(Pt().cardJsonObject[m]);return b}),u=o.computed(()=>{if(s.value===void 0)return[];const b=[];for(const m of s.value.keywordRefs){const y=_e().dataJson.keywords.find(k=>k.nameRef===m);y&&b.push(y)}return b}),d=o.computed(()=>t.isRoot&&(t.userCardQuantity!=null||s.value&&(s.value.keywordRefs.length>0||s.value.associatedCardRefs.length>0))),f=o.computed(()=>{var b;return t.userCardQuantity==null||s.value&&!(s.value.cardCode in t.userCardQuantity)?0:t.userCardQuantity[((b=s.value)==null?void 0:b.cardCode)??0]}),p=o.computed(()=>s.value===void 0?null:t.isDeckBuilder&&t.deckList[s.value.cardCode]===3?"disabled":null);o.watch(()=>t.showTippyLocation,b=>{a&&(b?(a.setProps({placement:b}),a.show()):a.hide())});function h(){window.addEventListener("keyup",b=>{b.key=="Shift"&&(i.value=!1)})}function g(){window.addEventListener("keydown",b=>{b.key=="Shift"&&(i.value=!0)})}function v(b){return s.value===void 0?null:t.isDeckBuilder?!(s.value.cardCode in t.deckList)||b>t.deckList[s.value.cardCode]?"disabled":null:b>f.value?"disabled":null}return o.onMounted(()=>{(s.value===void 0||t.userCardQuantity!=null||s.value.keywordRefs.length>0||s.value.associatedCardRefs.length>0)&&(a=ot(n.value,{allowHTML:!0,content:r.value,placement:"right-start",duration:0,role:"card-info",maxWidth:"50vw"})),(s.value===void 0||s.value.associatedCardRefs.length>0)&&(h(),g())}),(b,m)=>{var k,_,w;const y=o.resolveComponent("CardItem",!0);return o.openBlock(),o.createElementBlock("div",{class:"card-item-container",onMouseover:m[0]||(m[0]=S=>!0),onMouseleave:m[1]||(m[1]=S=>!1)},[o.createElementVNode("img",{ref_key:"cardItem",ref:n,alt:(k=o.unref(s))==null?void 0:k.name,class:o.normalizeClass(["card-item",p.value]),src:`https://lor.gg/storage/cards/card/en_us/${(_=o.unref(s))==null?void 0:_.cardCode}.webp`},null,10,oC),(b.isDeckBuilder||b.userCardQuantity!=null)&&((w=o.unref(s))!=null&&w.collectible)?(o.openBlock(),o.createElementBlock("div",lC,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(3,S=>o.createElementVNode("div",{key:S,class:o.normalizeClass(["quantity-tick",v(S)])},null,2)),64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"cardInfo",ref:r,class:o.normalizeClass(i.value?null:"card-info")},[!i.value&&d.value&&o.unref(s)?(o.openBlock(),o.createElementBlock("div",cC,[f.value!==void 0?(o.openBlock(),o.createElementBlock("div",uC,[o.createTextVNode(o.toDisplayString("You have: ")+" "),o.createElementVNode("b",{class:o.normalizeClass(l.value)},o.toDisplayString(f.value+" / "+(b.quantityNeeded||3)),3)])):o.createCommentVNode("",!0),f.value!==void 0&&(o.unref(s).keywordRefs.length>0||o.unref(s).associatedCardRefs.length>0)?(o.openBlock(),o.createElementBlock("hr",dC)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,S=>(o.openBlock(),o.createElementBlock("div",{key:S.nameRef,class:"card-info-section"},[o.createElementVNode("h4",fC,o.toDisplayString(S.name),1),o.createElementVNode("p",pC,o.toDisplayString(S.description),1)]))),128)),o.unref(s).keywordRefs.length>0&&o.unref(s).associatedCardRefs.length>0?(o.openBlock(),o.createElementBlock("hr",hC)):o.createCommentVNode("",!0),o.unref(s).associatedCardRefs.length>0?(o.openBlock(),o.createElementBlock("div",mC,o.toDisplayString("Hold Shift to see Associated Cards"))):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",gC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,S=>(o.openBlock(),o.createBlock(y,{key:S.cardCode,"card-code-prop":S.cardCode,"is-deck-builder":!1,"is-root":!1,class:"associated-card"},null,8,["card-code-prop"]))),128))]))],2)],32)}}});const B=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},xr=B(vC,[["__scopeId","data-v-41c84b70"]]),_C=o.defineComponent({__name:"RevealCarousel",props:TS,setup(e){var l;const t=e,n=[bS],r=o.ref(null),a=o.ref((l=r.value)==null?void 0:l.clientWidth),i=o.computed(()=>a.value===void 0?!0:a.value<400);function s(){var c;a.value=(c=r.value)==null?void 0:c.clientWidth}return o.onMounted(()=>{window.addEventListener("resize",s),s()}),o.onUnmounted(()=>{window.removeEventListener("resize",s)}),(c,u)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"revealCarousel",ref:r,class:"reveal-carousel"},[o.createVNode(o.unref(y2),{"slides-per-view":"auto","space-between":15,"centered-slides":i.value,navigation:!0,modules:n},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.cardCodes,d=>(o.openBlock(),o.createBlock(o.unref(b2),{key:d},{default:o.withCtx(()=>[o.createVNode(xr,{class:"card-item-called","card-code-prop":d,"is-root":!0},null,8,["card-code-prop"])]),_:2},1024))),128))]),_:1},8,["centered-slides"])],512))}});const Qf=B(_C,[["__scopeId","data-v-430f2bb4"]]),yC={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1,default:void 0},color:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},manaNumber:{type:Number,required:!1,default:void 0},quantityNumber:{type:Number,required:!1,default:void 0},maintainAspectRatio:{type:Boolean,required:!1,default:!0},showPlusMinus:{type:Boolean,required:!1,default:!1}},bC={},kC={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 31 36"},wC=o.createStaticVNode('<defs><linearGradient id="a" x1=".08" y1=".82" x2="1" y2=".19" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#0466c8"></stop><stop offset="1" stop-color="#003a9e"></stop></linearGradient></defs><g transform="rotate(90 15.5 15.5)" fill="url(#a)"><path d="M23.55 30.5h-11.1a5.52 5.52 0 0 1-4.75-2.74l-5.52-9.5a5.51 5.51 0 0 1 0-5.52l5.52-9.5A5.52 5.52 0 0 1 12.45.5h11.1a5.52 5.52 0 0 1 4.75 2.74l5.52 9.5c.99 1.7.99 3.82 0 5.52l-5.52 9.5a5.52 5.52 0 0 1-4.75 2.74Z"></path><path d="M12.45 1c-1.77 0-3.43.95-4.32 2.49l-5.52 9.5a5.01 5.01 0 0 0 0 5.02l5.52 9.5A5.02 5.02 0 0 0 12.45 30h11.1c1.77 0 3.43-.95 4.32-2.49l5.52-9.5c.9-1.55.9-3.47 0-5.02l-5.52-9.5A5.02 5.02 0 0 0 23.55 1h-11.1m0-1h11.1a6 6 0 0 1 5.18 2.99l5.52 9.5a6 6 0 0 1 0 6.02l-5.52 9.5A6 6 0 0 1 23.55 31h-11.1a6 6 0 0 1-5.18-2.99l-5.52-9.5a6 6 0 0 1 0-6.02l5.52-9.5A6 6 0 0 1 12.45 0Z" fill="var(--color-gold)"></path></g>',2),SC=[wC];function xC(e,t){return o.openBlock(),o.createElementBlock("svg",kC,SC)}const vo=B(bC,[["render",xC]]),CC={class:"card-slice"},EC={key:0,class:"mana-hexagon"},TC={class:"mana-number"},OC={class:"card-name"},MC={key:1,class:"quantity"},NC={class:"quantity-background"},DC={class:"num-quantity"},PC={class:"plus-minus-content"},AC={class:"plus-minus-quantity"},IC=o.defineComponent({__name:"CardSliceItem",props:yC,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,r=co(n.cardProp,n.cardCodeProp,!1),a=o.ref(null),i=o.ref(null),s=o.ref(null),l=o.ref(null),c=o.computed(()=>{let f=n.color;return!f&&r.value&&(f=Sa(r.value,null,!0)),f||(f="var(--color-background-2-rgb)"),`linear-gradient(90deg, rgba(${f}, 1) 0%, rgba(${f}, 1) 30%, rgba(${f}, .10) 70%, rgba(${f}, .00) 100%)`}),u=o.computed(()=>r.value?"https://lor.gg/storage/cards/slice/"+r.value.cardCode+"-slice.webp":""),d=o.computed(()=>{const f=["card-slice-wrapper"];return n.maintainAspectRatio&&f.push("maintain-aspect-ratio"),f});return o.onMounted(()=>{n.ignoreCardItem||ot(a.value,{content:s.value,placement:"right",arrow:!0,touch:"hold",duration:0,role:"card-image",onShown:f=>{const p=f.popper.innerHTML.includes("right")?"right-start":"left-start";l.value=p},onHidden:()=>{l.value=null}})}),(f,p)=>{var g,v;const h=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{ref_key:"cardSlice",ref:a,class:o.normalizeClass(d.value)},[o.createElementVNode("div",CC,[o.createElementVNode("div",{class:"card-image",style:o.normalizeStyle({backgroundImage:`url(${u.value})`})},null,4),o.createElementVNode("div",{class:"region-gradient",style:o.normalizeStyle({background:c.value})},null,4),o.unref(r)||n.manaNumber!==void 0&&n.manaNumber!==null?(o.openBlock(),o.createElementBlock("div",EC,[o.createVNode(vo,{class:"hexagon-icon"}),o.createElementVNode("div",TC,o.toDisplayString(n.manaNumber??((g=o.unref(r))==null?void 0:g.cost)),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",OC,o.toDisplayString(n.name??((v=o.unref(r))==null?void 0:v.name)),1),n.quantityNumber!==void 0&&n.quantityNumber!==null?(o.openBlock(),o.createElementBlock("div",MC,[o.createElementVNode("div",NC,[o.createElementVNode("p",DC,o.toDisplayString(n.quantityNumber),1)])])):o.createCommentVNode("",!0),n.showPlusMinus?(o.openBlock(),o.createElementBlock("div",{key:2,class:"plus-minus",onClick:p[2]||(p[2]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("div",PC,[o.createElementVNode("div",{class:"plus-minus-icon",onClick:p[0]||(p[0]=o.withModifiers(b=>{var m;return t("update:card-quantity",{cardCode:((m=o.unref(r))==null?void 0:m.cardCode)??"",quantity:-1})},["prevent"]))},[o.createVNode(h,{icon:"minus",class:"icon"})]),o.createElementVNode("div",{class:"plus-minus-icon",onClick:p[1]||(p[1]=o.withModifiers(b=>{var m;return t("update:card-quantity",{cardCode:((m=o.unref(r))==null?void 0:m.cardCode)??"",quantity:1})},["prevent"]))},[o.createVNode(h,{icon:"plus",class:"icon"})]),o.createElementVNode("div",AC,o.toDisplayString(n.quantityNumber),1)])])):o.createCommentVNode("",!0)])],2),o.createElementVNode("div",{ref_key:"cardItemWrapper",ref:s,class:"card-item-container"},[o.unref(r)&&!f.ignoreCardItem?(o.openBlock(),o.createBlock(xr,{key:0,ref_key:"cardItem",ref:i,"is-root":!0,"card-prop":o.unref(r),"quantity-needed":n.quantityNumber,"show-tippy-location":l.value,class:"card-image-hover"},null,8,["card-prop","quantity-needed","show-tippy-location"])):o.createCommentVNode("",!0)],512)])}}});const Yt=B(IC,[["__scopeId","data-v-843bae07"]]);function Vn(e){return[null,void 0].indexOf(e)!==-1}function LC(e,t,n){const{object:r,valueProp:a,mode:i}=o.toRefs(e),s=o.getCurrentInstance().proxy,l=n.iv,c=(f,p=!0)=>{l.value=d(f);const h=u(f);t.emit("change",h,s),p&&(t.emit("input",h),t.emit("update:modelValue",h))},u=f=>r.value||Vn(f)?f:Array.isArray(f)?f.map(p=>p[a.value]):f[a.value],d=f=>Vn(f)?i.value==="single"?{}:[]:f;return{update:c}}function RC(e,t){const{value:n,modelValue:r,mode:a,valueProp:i}=o.toRefs(e),s=o.ref(a.value!=="single"?[]:{}),l=r&&r.value!==void 0?r:n,c=o.computed(()=>a.value==="single"?s.value[i.value]:s.value.map(d=>d[i.value])),u=o.computed(()=>a.value!=="single"?s.value.map(d=>d[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:u,plainValue:c}}function BC(e,t,n){const{regex:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,i=n.isOpen,s=n.open,l=o.ref(null),c=o.ref(null),u=()=>{l.value=""},d=h=>{l.value=h.target.value},f=h=>{if(r&&r.value){let g=r.value;typeof g=="string"&&(g=new RegExp(g)),h.key.match(g)||h.preventDefault()}},p=h=>{if(r&&r.value){let v=(h.clipboardData||window.clipboardData).getData("Text"),b=r.value;typeof b=="string"&&(b=new RegExp(b)),v.split("").every(m=>!!m.match(b))||h.preventDefault()}t.emit("paste",h,a)};return o.watch(l,h=>{!i.value&&h&&s(),t.emit("search-change",h,a)}),{search:l,input:c,clearSearch:u,handleSearchInput:d,handleKeypress:f,handlePaste:p}}function VC(e,t,n){const{groupSelect:r,mode:a,groups:i,disabledProp:s}=o.toRefs(e),l=o.ref(null),c=d=>{d===void 0||d!==null&&d[s.value]||i.value&&d&&d.group&&(a.value==="single"||!r.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Bu(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function $C(e){return Object.prototype.toString.call(e)==="[object Object]"}function FC(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,a){return r===n[a]})}function zC(e,t,n){const{options:r,mode:a,trackBy:i,limit:s,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:f,appendNewOption:p,multipleLabel:h,object:g,loading:v,delay:b,resolveOnLoad:m,minChars:y,filterResults:k,clearOnSearch:_,clearOnSelect:w,valueProp:S,allowAbsent:C,groupLabel:E,canDeselect:O,max:L,strict:D,closeOnSelect:N,closeOnDeselect:R,groups:re,reverse:K,infinite:Z,groupOptions:X,groupHideEmpty:ce,groupSelect:Y,onCreate:se,disabledProp:de,searchStart:Te,searchFilter:Fe}=o.toRefs(e),ve=o.getCurrentInstance().proxy,ie=n.iv,V=n.ev,Q=n.search,Ae=n.clearSearch,et=n.update,_t=n.pointer,ut=n.clearPointer,fn=n.focus,T=n.deactivate,x=n.close,P=n.localize,H=o.ref([]),te=o.ref([]),ue=o.ref(!1),yt=o.ref(null),st=o.ref(Z.value&&s.value===-1?10:s.value),Qt=o.computed(()=>c.value||u.value||!1),Ve=o.computed(()=>f.value!==void 0?f.value:p.value!==void 0?p.value:!0),I=o.computed(()=>{if(re.value){let M=qe.value||[],W=[];return M.forEach(xe=>{_u(xe[X.value]).forEach(dt=>{W.push(Object.assign({},dt,xe[de.value]?{[de.value]:!0}:{}))})}),W}else{let M=_u(te.value||[]);return H.value.length&&(M=M.concat(H.value)),M}}),$=o.computed(()=>{let M=I.value;return K.value&&(M=M.reverse()),Nr.value.length&&(M=Nr.value.concat(M)),vu(M)}),Ye=o.computed(()=>{let M=$.value;return st.value>0&&(M=M.slice(0,st.value)),M}),qe=o.computed(()=>{if(!re.value)return[];let M=[],W=te.value||[];return H.value.length&&M.push({[E.value]:" ",[X.value]:[...H.value],__CREATE__:!0}),M.concat(W)}),In=o.computed(()=>{let M=[...qe.value].map(W=>({...W}));return Nr.value.length&&(M[0]&&M[0].__CREATE__?M[0][X.value]=[...Nr.value,...M[0][X.value]]:M=[{[E.value]:" ",[X.value]:[...Nr.value],__CREATE__:!0}].concat(M)),M}),pn=o.computed(()=>{if(!re.value)return[];let M=In.value;return D3((M||[]).map((W,xe)=>{const dt=_u(W[X.value]);return{...W,index:xe,group:!0,[X.value]:vu(dt,!1).map(Zi=>Object.assign({},Zi,W[de.value]?{[de.value]:!0}:{})),__VISIBLE__:vu(dt).map(Zi=>Object.assign({},Zi,W[de.value]?{[de.value]:!0}:{}))}}))}),hn=o.computed(()=>{switch(a.value){case"single":return!Vn(ie.value[S.value]);case"multiple":case"tags":return!Vn(ie.value)&&ie.value.length>0}}),Sn=o.computed(()=>h!==void 0&&h.value!==void 0?h.value(ie.value,ve):ie.value&&ie.value.length>1?`${ie.value.length} options selected`:"1 option selected"),Xi=o.computed(()=>!I.value.length&&!ue.value&&!Nr.value.length),ei=o.computed(()=>I.value.length>0&&Ye.value.length==0&&(Q.value&&re.value||!re.value)),Nr=o.computed(()=>Qt.value===!1||!Q.value?[]:O3(Q.value)!==-1?[]:[{[S.value]:Q.value,[A.value]:Q.value,[d.value]:Q.value,__CREATE__:!0}]),A=o.computed(()=>i.value||d.value),J=o.computed(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),oe=o.computed(()=>v.value||ue.value),Se=M=>{switch(typeof M!="object"&&(M=tr(M)),a.value){case"single":et(M);break;case"multiple":case"tags":et(ie.value.concat(M));break}t.emit("select",St(M),M,ve)},ge=M=>{switch(typeof M!="object"&&(M=tr(M)),a.value){case"single":Ki();break;case"tags":case"multiple":et(Array.isArray(M)?ie.value.filter(W=>M.map(xe=>xe[S.value]).indexOf(W[S.value])===-1):ie.value.filter(W=>W[S.value]!=M[S.value]));break}t.emit("deselect",St(M),M,ve)},St=M=>g.value?M:M[S.value],Lt=M=>{ge(M)},Dr=(M,W)=>{if(W.button!==0){W.preventDefault();return}Lt(M)},Ki=()=>{t.emit("clear",ve),et(J.value)},Tt=M=>{if(M.group!==void 0)return a.value==="single"?!1:T3(M[X.value])&&M[X.value].length;switch(a.value){case"single":return!Vn(ie.value)&&ie.value[S.value]==M[S.value];case"tags":case"multiple":return!Vn(ie.value)&&ie.value.map(W=>W[S.value]).indexOf(M[S.value])!==-1}},ha=M=>M[de.value]===!0,Pr=()=>L===void 0||L.value===-1||!hn.value&&L.value>0?!1:ie.value.length>=L.value,Ar=M=>{if(!ha(M)){if(se&&se.value&&!Tt(M)&&M.__CREATE__&&(M={...M},delete M.__CREATE__,M=se.value(M,ve),M instanceof Promise)){ue.value=!0,M.then(W=>{ue.value=!1,jo(W)});return}jo(M)}},jo=M=>{switch(M.__CREATE__&&(M={...M},delete M.__CREATE__),a.value){case"single":if(M&&Tt(M)){O.value&&ge(M),R.value&&(ut(),x());return}M&&Ir(M),w.value&&Ae(),N.value&&(ut(),x()),M&&Se(M);break;case"multiple":if(M&&Tt(M)){ge(M),R.value&&(ut(),x());return}if(Pr()){t.emit("max",ve);return}M&&(Ir(M),Se(M)),w.value&&Ae(),l.value&&ut(),N.value&&x();break;case"tags":if(M&&Tt(M)){ge(M),R.value&&(ut(),x());return}if(Pr()){t.emit("max",ve);return}M&&Ir(M),w.value&&Ae(),M&&Se(M),l.value&&ut(),N.value&&x();break}N.value||fn()},Ji=M=>{if(!(ha(M)||a.value==="single"||!Y.value)){switch(a.value){case"multiple":case"tags":E3(M[X.value])?ge(M[X.value]):Se(M[X.value].filter(W=>ie.value.map(xe=>xe[S.value]).indexOf(W[S.value])===-1).filter(W=>!W[de.value]).filter((W,xe)=>ie.value.length+1+xe<=L.value||L.value===-1));break}N.value&&T()}},Ir=M=>{tr(M[S.value])===void 0&&Qt.value&&(t.emit("tag",M[S.value],ve),t.emit("option",M[S.value],ve),t.emit("create",M[S.value],ve),Ve.value&&N3(M),Ae())},C3=()=>{a.value!=="single"&&Se(Ye.value.filter(M=>!M.disabled&&!Tt(M)))},E3=M=>M.find(W=>!Tt(W)&&!W[de.value])===void 0,T3=M=>M.find(W=>!Tt(W))===void 0,tr=M=>I.value[I.value.map(W=>String(W[S.value])).indexOf(String(M))],O3=(M,W=!0)=>I.value.map(xe=>parseInt(xe[A.value])==xe[A.value]?parseInt(xe[A.value]):xe[A.value]).indexOf(parseInt(M)==M?parseInt(M):M),M3=M=>["tags","multiple"].indexOf(a.value)!==-1&&l.value&&Tt(M),N3=M=>{H.value.push(M)},D3=M=>ce.value?M.filter(W=>Q.value?W.__VISIBLE__.length:W[X.value].length):M.filter(W=>Q.value?W.__VISIBLE__.length:!0),vu=(M,W=!0)=>{let xe=M;if(Q.value&&k.value){let dt=Fe.value;dt||(dt=(Zi,VJ)=>{let tm=Bu(P(Zi[A.value]),D.value);return Te.value?tm.startsWith(Bu(Q.value,D.value)):tm.indexOf(Bu(Q.value,D.value))!==-1}),xe=xe.filter(dt)}return l.value&&W&&(xe=xe.filter(dt=>!M3(dt))),xe},_u=M=>{let W=M;return $C(W)&&(W=Object.keys(W).map(xe=>{let dt=W[xe];return{[S.value]:xe,[A.value]:dt,[d.value]:dt}})),W=W.map(xe=>typeof xe=="object"?xe:{[S.value]:xe,[A.value]:xe,[d.value]:xe}),W},Ho=()=>{Vn(V.value)||(ie.value=Uo(V.value))},Wo=M=>(ue.value=!0,new Promise((W,xe)=>{r.value(Q.value,ve).then(dt=>{te.value=dt||[],typeof M=="function"&&M(dt),ue.value=!1}).catch(dt=>{console.error(dt),te.value=[],ue.value=!1}).finally(()=>{W()})})),yu=()=>{if(hn.value)if(a.value==="single"){let M=tr(ie.value[S.value]);if(M!==void 0){let W=M[d.value];ie.value[d.value]=W,g.value&&(V.value[d.value]=W)}}else ie.value.forEach((M,W)=>{let xe=tr(ie.value[W][S.value]);if(xe!==void 0){let dt=xe[d.value];ie.value[W][d.value]=dt,g.value&&(V.value[W][d.value]=dt)}})},P3=M=>{Wo(M)},Uo=M=>Vn(M)?a.value==="single"?{}:[]:g.value?M:a.value==="single"?tr(M)||(C.value?{[d.value]:M,[S.value]:M,[A.value]:M}:{}):M.filter(W=>!!tr(W)||C.value).map(W=>tr(W)||{[d.value]:W,[S.value]:W,[A.value]:W}),em=()=>{yt.value=o.watch(Q,M=>{M.length<y.value||!M&&y.value!==0||(ue.value=!0,_.value&&(te.value=[]),setTimeout(()=>{M==Q.value&&r.value(Q.value,ve).then(W=>{(M==Q.value||!Q.value)&&(te.value=W,_t.value=Ye.value.filter(xe=>xe[de.value]!==!0)[0]||null,ue.value=!1)}).catch(W=>{console.error(W)})},b.value))},{flush:"sync"})};if(a.value!=="single"&&!Vn(V.value)&&!Array.isArray(V.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return r&&typeof r.value=="function"?m.value?Wo(Ho):g.value==!0&&Ho():(te.value=r.value,Ho()),b.value>-1&&em(),o.watch(b,(M,W)=>{yt.value&&yt.value(),M>=0&&em()}),o.watch(V,M=>{if(Vn(M)){et(Uo(M),!1);return}switch(a.value){case"single":(g.value?M[S.value]!=ie.value[S.value]:M!=ie.value[S.value])&&et(Uo(M),!1);break;case"multiple":case"tags":FC(g.value?M.map(W=>W[S.value]):M,ie.value.map(W=>W[S.value]))||et(Uo(M),!1);break}},{deep:!0}),o.watch(r,(M,W)=>{typeof e.options=="function"?m.value&&(!W||M&&M.toString()!==W.toString())&&Wo():(te.value=e.options,Object.keys(ie.value).length||Ho(),yu())}),o.watch(d,yu),{pfo:$,fo:Ye,filteredOptions:Ye,hasSelected:hn,multipleLabelText:Sn,eo:I,extendedOptions:I,eg:qe,extendedGroups:qe,fg:pn,filteredGroups:pn,noOptions:Xi,noResults:ei,resolving:ue,busy:oe,offset:st,select:Se,deselect:ge,remove:Lt,selectAll:C3,clear:Ki,isSelected:Tt,isDisabled:ha,isMax:Pr,getOption:tr,handleOptionClick:Ar,handleGroupClick:Ji,handleTagRemove:Dr,refreshOptions:P3,resolveOptions:Wo,refreshLabels:yu}}function jC(e,t,n){const{valueProp:r,showOptions:a,searchable:i,groupLabel:s,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:f}=o.toRefs(e),p=n.fo,h=n.fg,g=n.handleOptionClick,v=n.handleGroupClick,b=n.search,m=n.pointer,y=n.setPointer,k=n.clearPointer,_=n.multiselect,w=n.isOpen,S=o.computed(()=>p.value.filter(V=>!V[d.value])),C=o.computed(()=>h.value.filter(V=>!V[d.value])),E=o.computed(()=>c.value!=="single"&&u.value),O=o.computed(()=>m.value&&m.value.group),L=o.computed(()=>ve(m.value)),D=o.computed(()=>{const V=O.value?m.value:ve(m.value),Q=C.value.map(et=>et[s.value]).indexOf(V[s.value]);let Ae=C.value[Q-1];return Ae===void 0&&(Ae=R.value),Ae}),N=o.computed(()=>{let V=C.value.map(Q=>Q.label).indexOf(O.value?m.value[s.value]:ve(m.value)[s.value])+1;return C.value.length<=V&&(V=0),C.value[V]}),R=o.computed(()=>[...C.value].slice(-1)[0]),re=o.computed(()=>m.value.__VISIBLE__.filter(V=>!V[d.value])[0]),K=o.computed(()=>{const V=L.value.__VISIBLE__.filter(Q=>!Q[d.value]);return V[V.map(Q=>Q[r.value]).indexOf(m.value[r.value])-1]}),Z=o.computed(()=>{const V=ve(m.value).__VISIBLE__.filter(Q=>!Q[d.value]);return V[V.map(Q=>Q[r.value]).indexOf(m.value[r.value])+1]}),X=o.computed(()=>[...D.value.__VISIBLE__.filter(V=>!V[d.value])].slice(-1)[0]),ce=o.computed(()=>[...R.value.__VISIBLE__.filter(V=>!V[d.value])].slice(-1)[0]),Y=V=>m.value&&(!V.group&&m.value[r.value]===V[r.value]||V.group!==void 0&&m.value[s.value]===V[s.value])?!0:void 0,se=()=>{y(S.value[0]||null)},de=()=>{!m.value||m.value[d.value]===!0||(O.value?v(m.value):g(m.value))},Te=()=>{if(m.value===null)y((l.value&&E.value?C.value[0].__CREATE__?S.value[0]:C.value[0]:S.value[0])||null);else if(l.value&&E.value){let V=O.value?re.value:Z.value;V===void 0&&(V=N.value,V.__CREATE__&&(V=V[f.value][0])),y(V||null)}else{let V=S.value.map(Q=>Q[r.value]).indexOf(m.value[r.value])+1;S.value.length<=V&&(V=0),y(S.value[V]||null)}o.nextTick(()=>{ie()})},Fe=()=>{if(m.value===null){let V=S.value[S.value.length-1];l.value&&E.value&&(V=ce.value,V===void 0&&(V=R.value)),y(V||null)}else if(l.value&&E.value){let V=O.value?X.value:K.value;V===void 0&&(V=O.value?D.value:L.value,V.__CREATE__&&(V=X.value,V===void 0&&(V=D.value))),y(V||null)}else{let V=S.value.map(Q=>Q[r.value]).indexOf(m.value[r.value])-1;V<0&&(V=S.value.length-1),y(S.value[V]||null)}o.nextTick(()=>{ie()})},ve=V=>C.value.find(Q=>Q.__VISIBLE__.map(Ae=>Ae[r.value]).indexOf(V[r.value])!==-1),ie=()=>{let V=_.value.querySelector("[data-pointed]");if(!V)return;let Q=V.parentElement.parentElement;l.value&&(Q=O.value?V.parentElement.parentElement.parentElement:V.parentElement.parentElement.parentElement.parentElement),V.offsetTop+V.offsetHeight>Q.clientHeight+Q.scrollTop&&(Q.scrollTop=V.offsetTop+V.offsetHeight-Q.clientHeight),V.offsetTop<Q.scrollTop&&(Q.scrollTop=V.offsetTop)};return o.watch(b,V=>{i.value&&(V.length&&a.value?se():k())}),o.watch(w,V=>{if(V){let Q=_.value.querySelectorAll("[data-selected]")[0];if(!Q)return;let Ae=Q.parentElement.parentElement;o.nextTick(()=>{Ae.scrollTop>0||(Ae.scrollTop=Q.offsetTop)})}}),{pointer:m,canPointGroups:E,isPointed:Y,setPointerFirst:se,selectPointer:de,forwardPointer:Te,backwardPointer:Fe}}function HC(e,t,n){const{disabled:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,i=o.ref(!1);return{isOpen:i,open:()=>{i.value||r.value||(i.value=!0,t.emit("open",a))},close:()=>{i.value&&(i.value=!1,t.emit("close",a))}}}function WC(e,t,n){const{searchable:r,disabled:a,clearOnBlur:i}=o.toRefs(e),s=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,f=o.ref(null),p=o.ref(null),h=o.ref(null),g=o.ref(!1),v=o.ref(!1),b=o.computed(()=>r.value||a.value?-1:0),m=()=>{r.value&&s.value.blur(),p.value.blur()},y=()=>{r.value&&!a.value&&s.value.focus()},k=(O=!0)=>{a.value||(g.value=!0,O&&l())},_=()=>{g.value=!1,setTimeout(()=>{g.value||(c(),i.value&&u())},1)};return{multiselect:f,wrapper:p,tags:h,tabindex:b,isActive:g,mouseClicked:v,blur:m,focus:y,activate:k,deactivate:_,handleFocusIn:O=>{O.target.closest("[data-tags]")&&O.target.nodeName!=="INPUT"||O.target.closest("[data-clear]")||k(v.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),m()},handleMousedown:O=>{v.value=!0,d.value&&(O.target.isEqualNode(p.value)||O.target.isEqualNode(h.value))?setTimeout(()=>{_()},0):document.activeElement.isEqualNode(p.value)&&!d.value&&k(),setTimeout(()=>{v.value=!1},0)}}}function UC(e,t,n){const{mode:r,addTagOn:a,openDirection:i,searchable:s,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:f,createOption:p,reverse:h}=o.toRefs(e),g=o.getCurrentInstance().proxy,v=n.iv,b=n.update,m=n.search,y=n.setPointer,k=n.selectPointer,_=n.backwardPointer,w=n.forwardPointer,S=n.multiselect,C=n.wrapper,E=n.tags,O=n.isOpen,L=n.open,D=n.blur,N=n.fo,R=o.computed(()=>f.value||p.value||!1),re=o.computed(()=>a.value!==void 0?a.value:d.value!==void 0?d.value:["enter"]),K=()=>{r.value==="tags"&&!l.value&&R.value&&s.value&&!u.value&&y(N.value[N.value.map(Y=>Y[c.value]).indexOf(m.value)])},Z=Y=>{let se=Y.length-1;for(;se>=0&&(Y[se].remove===!1||Y[se].disabled);)se--;return se<0||Y.splice(se,1),Y};return{handleKeydown:Y=>{t.emit("keydown",Y,g);let se,de;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(Y.key)!==-1&&r.value==="tags"&&(se=[...S.value.querySelectorAll("[data-tags] > *")].filter(Te=>Te!==E.value),de=se.findIndex(Te=>Te===document.activeElement)),Y.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(m.value)===-1||v.value.length===0)return;b(Z([...v.value]));break;case"Enter":if(Y.preventDefault(),Y.keyCode===229)return;if(de!==-1&&de!==void 0){b([...v.value].filter((Te,Fe)=>Fe!==de)),de===se.length-1&&(se.length-1?se[se.length-2].focus():s.value?E.value.querySelector("input").focus():C.value.focus());return}if(re.value.indexOf("enter")===-1&&R.value)return;K(),k();break;case" ":if(!R.value&&!s.value){Y.preventDefault(),K(),k();return}if(!R.value)return!1;if(re.value.indexOf("space")===-1&&R.value)return;Y.preventDefault(),K(),k();break;case"Tab":case";":case",":if(re.value.indexOf(Y.key.toLowerCase())===-1||!R.value)return;K(),k(),Y.preventDefault();break;case"Escape":D();break;case"ArrowUp":if(Y.preventDefault(),!l.value)return;O.value||L(),_();break;case"ArrowDown":if(Y.preventDefault(),!l.value)return;O.value||L(),w();break;case"ArrowLeft":if(s.value&&E.value&&E.value.querySelector("input").selectionStart||Y.shiftKey||r.value!=="tags"||!v.value||!v.value.length)return;Y.preventDefault(),de===-1?se[se.length-1].focus():de>0&&se[de-1].focus();break;case"ArrowRight":if(de===-1||Y.shiftKey||r.value!=="tags"||!v.value||!v.value.length)return;Y.preventDefault(),se.length>de+1?se[de+1].focus():s.value?E.value.querySelector("input").focus():s.value||C.value.focus();break}},handleKeyup:Y=>{t.emit("keyup",Y,g)},preparePointer:K}}function YC(e,t,n){const{classes:r,disabled:a,openDirection:i,showOptions:s}=o.toRefs(e),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,f=n.isActive,p=n.canPointGroups,h=n.resolving,g=n.fo,v=o.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),b=o.computed(()=>!!(l.value&&s.value&&(!h.value||h.value&&g.value.length)));return{classList:o.computed(()=>{const y=v.value;return{container:[y.container].concat(a.value?y.containerDisabled:[]).concat(b.value&&i.value==="top"?y.containerOpenTop:[]).concat(b.value&&i.value!=="top"?y.containerOpen:[]).concat(f.value?y.containerActive:[]),wrapper:y.wrapper,spacer:y.spacer,singleLabel:y.singleLabel,singleLabelText:y.singleLabelText,multipleLabel:y.multipleLabel,search:y.search,tags:y.tags,tag:[y.tag].concat(a.value?y.tagDisabled:[]),tagDisabled:y.tagDisabled,tagRemove:y.tagRemove,tagRemoveIcon:y.tagRemoveIcon,tagsSearchWrapper:y.tagsSearchWrapper,tagsSearch:y.tagsSearch,tagsSearchCopy:y.tagsSearchCopy,placeholder:y.placeholder,caret:[y.caret].concat(l.value?y.caretOpen:[]),clear:y.clear,clearIcon:y.clearIcon,spinner:y.spinner,inifinite:y.inifinite,inifiniteSpinner:y.inifiniteSpinner,dropdown:[y.dropdown].concat(i.value==="top"?y.dropdownTop:[]).concat(!l.value||!s.value||!b.value?y.dropdownHidden:[]),options:[y.options].concat(i.value==="top"?y.optionsTop:[]),group:y.group,groupLabel:k=>{let _=[y.groupLabel];return c(k)?_.push(u(k)?y.groupLabelSelectedPointed:y.groupLabelPointed):u(k)&&p.value?_.push(d(k)?y.groupLabelSelectedDisabled:y.groupLabelSelected):d(k)&&_.push(y.groupLabelDisabled),p.value&&_.push(y.groupLabelPointable),_},groupOptions:y.groupOptions,option:(k,_)=>{let w=[y.option];return c(k)?w.push(u(k)?y.optionSelectedPointed:y.optionPointed):u(k)?w.push(d(k)?y.optionSelectedDisabled:y.optionSelected):(d(k)||_&&d(_))&&w.push(y.optionDisabled),w},noOptions:y.noOptions,noResults:y.noResults,assist:y.assist,fakeInput:y.fakeInput}}),showDropdown:b}}function qC(e,t,n){const{limit:r,infinite:a}=o.toRefs(e),i=n.isOpen,s=n.offset,l=n.search,c=n.pfo,u=n.eo,d=o.ref(null),f=o.ref(null),p=o.computed(()=>s.value<c.value.length),h=v=>{const{isIntersecting:b,target:m}=v[0];if(b){const y=m.offsetParent,k=y.scrollTop;s.value+=r.value==-1?10:r.value,o.nextTick(()=>{y.scrollTop=k})}},g=()=>{i.value&&s.value<c.value.length?d.value.observe(f.value):!i.value&&d.value&&d.value.disconnect()};return o.watch(i,()=>{a.value&&g()}),o.watch(l,()=>{a.value&&(s.value=r.value,g())},{flush:"post"}),o.watch(u,()=>{a.value&&g()},{immediate:!1,flush:"post"}),o.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(h))}),{hasMore:p,infiniteLoader:f}}function GC(e,t,n){const{placeholder:r,id:a,valueProp:i,label:s,mode:l,groupLabel:c,aria:u,searchable:d}=o.toRefs(e),f=n.pointer,p=n.iv,h=n.hasSelected,g=n.multipleLabelText,v=o.ref(null),b=o.computed(()=>{let N=[];return a&&a.value&&N.push(a.value),N.push("assist"),N.join("-")}),m=o.computed(()=>{let N=[];return a&&a.value&&N.push(a.value),N.push("multiselect-options"),N.join("-")}),y=o.computed(()=>{let N=[];if(a&&a.value&&N.push(a.value),f.value)return N.push(f.value.group?"multiselect-group":"multiselect-option"),N.push(f.value.group?f.value.index:f.value[i.value]),N.join("-")}),k=o.computed(()=>r.value),_=o.computed(()=>l.value!=="single"),w=o.computed(()=>{let N="";return l.value==="single"&&h.value&&(N+=p.value[s.value]),l.value==="multiple"&&h.value&&(N+=g.value),l.value==="tags"&&h.value&&(N+=p.value.map(R=>R[s.value]).join(", ")),N}),S=o.computed(()=>{let N={...u.value};return d.value&&(N["aria-labelledby"]=N["aria-labelledby"]?`${b.value} ${N["aria-labelledby"]}`:b.value,w.value&&N["aria-label"]&&(N["aria-label"]=`${w.value}, ${N["aria-label"]}`)),N}),C=N=>{let R=[];return a&&a.value&&R.push(a.value),R.push("multiselect-option"),R.push(N[i.value]),R.join("-")},E=N=>{let R=[];return a&&a.value&&R.push(a.value),R.push("multiselect-group"),R.push(N.index),R.join("-")},O=N=>{let R=[];return R.push(N),R.join(" ")},L=N=>{let R=[];return R.push(N),R.join(" ")},D=N=>`${N} ❎`;return o.onMounted(()=>{if(a&&a.value&&document&&document.querySelector){let N=document.querySelector(`[for="${a.value}"]`);v.value=N?N.innerText:null}}),{arias:S,ariaLabel:w,ariaAssist:b,ariaControls:m,ariaPlaceholder:k,ariaMultiselectable:_,ariaActiveDescendant:y,ariaOptionId:C,ariaOptionLabel:O,ariaGroupId:E,ariaGroupLabel:L,ariaTagLabel:D}}function XC(e,t,n){const{locale:r,fallbackLocale:a}=o.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function KC(e,t,n,r={}){return n.forEach(a=>{a&&(r={...r,...a(e,t,r)})}),r}var Ot={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return KC(e,t,[XC,RC,VC,HC,BC,LC,WC,zC,qC,jC,UC,YC,GC])}};const JC=["id","dir"],ZC=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],QC=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],e7=["onKeyup","aria-label"],t7=["onClick"],n7=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],r7=["innerHTML"],a7=["id"],i7=["id","aria-label","aria-selected"],s7=["data-pointed","onMouseenter","onClick"],o7=["innerHTML"],l7=["aria-label"],c7=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],u7=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],d7=["innerHTML"],f7=["innerHTML"],p7=["value"],h7=["name","value"],m7=["name","value"],g7=["id"];function v7(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{ref:"multiselect",class:o.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[o.createElementVNode("div",o.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[o.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=o.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,QC)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.classList.tags),"data-tags":""},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.iv,(s,l,c)=>o.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:o.withKeys(u=>e.handleTagRemove(s,u),["enter"]),key:c,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[o.createTextVNode(o.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(e.classList.tagRemove),onClick:o.withModifiers(u=>e.handleTagRemove(s,u),["stop"])},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,t7)):o.createCommentVNode("v-if",!0)],42,e7))])),256)),o.createElementVNode("div",{class:o.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[o.createCommentVNode(" Used for measuring search width "),o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagsSearchCopy)},o.toDisplayString(e.search),3),o.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=o.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,n7)):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?o.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.singleLabel)},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.singleLabelText)},o.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?o.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,r7)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?o.renderSlot(e.$slots,"placeholder",{key:4},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},o.toDisplayString(n.placeholder),3)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Spinner "),n.loading||e.resolving?o.renderSlot(e.$slots,"spinner",{key:5},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?o.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[o.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:o.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=o.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.clearIcon)},null,2)],34)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Caret "),n.caret&&n.showOptions?o.renderSlot(e.$slots,"caret",{key:7},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0)],16,ZC),o.createCommentVNode(" Options "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.dropdown),tabindex:"-1"},[o.renderSlot(e.$slots,"beforelist",{options:e.fo}),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.fg,(s,l,c)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.group),key:c,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:u=>e.setPointer(s,l),onClick:u=>e.handleGroupClick(s)},[o.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[o.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,o7)])],42,s7)),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.__VISIBLE__,(u,d,f)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(u,s)),"data-pointed":e.isPointed(u),"data-selected":e.isSelected(u)||void 0,key:f,onMouseenter:p=>e.setPointer(u),onClick:p=>e.handleOptionClick(u),id:e.ariaOptionId(u),"aria-selected":e.isSelected(u),"aria-label":e.ariaOptionLabel(e.localize(u[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:u,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(u[n.label])),1)])],42,c7))),128))],10,l7)],10,i7))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.fo,(s,l,c)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:c,onMouseenter:u=>e.setPointer(s),onClick:u=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(s[n.label])),1)])],42,u7))),128))],10,a7),e.noOptions?o.renderSlot(e.$slots,"nooptions",{key:0},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,d7)]):o.createCommentVNode("v-if",!0),e.noResults?o.renderSlot(e.$slots,"noresults",{key:1},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,f7)]):o.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[o.renderSlot(e.$slots,"infinite",{},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):o.createCommentVNode("v-if",!0),o.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),o.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(o.openBlock(),o.createElementBlock("input",{key:0,class:o.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,p7)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Native input support "),n.nativeSupport?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.mode=="single"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,h7)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.plainValue,(s,l)=>(o.openBlock(),o.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:l},null,8,m7))),128))],64)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},o.toDisplayString(e.ariaLabel),11,g7)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Create height for empty input "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.spacer)},null,2)],42,JC)}Ot.render=v7;Ot.__file="src/Multiselect.vue";const _7={class:"search-bar"},y7=o.defineComponent({__name:"SearchBar",setup(e){const{t}=ne(),n=o.ref("");function r(u,d,f){f.clear(),f.search=n.value,console.log("LINK TO:",d.link)}function a(u){n.value=u}async function i(u){return u===null?[{label:t("general.cards"),options:s("test")},{label:t("general.players"),options:await c("test")}]:[{label:t("general.cards"),options:s(u)},{label:t("general.players"),options:await c(u)}]}function s(u){const d=new RegExp(u,"i"),f=new RegExp(`^${u}`,"i");return Hf().cardJson.filter(h=>!!h.name.match(d)||!!h.description.match(d)||!!h.descriptionRaw.match(d)).sort((h,g)=>h.name.localeCompare(g.name)).sort((h,g)=>h.cost-g.cost).sort((h,g)=>l(h.collectible,g.collectible)).sort((h,g)=>l(!!h.name.match(d),!!g.name.match(d))).sort((h,g)=>l(f.test(h.name),f.test(g.name))).slice(0,5).map(h=>({type:"card",link:`/test/card/${h.cardCode}`,card:h}))}function l(u,d){return u===d?0:u?-1:1}async function c(u){return[{type:"player",cardCode:"01IO001",color:"var(--color-background-2-rgb)",link:`/test/player/${u}`,name:u,rank:1},{type:"player",cardCode:"01IO002",color:"255, 255, 255",link:`/test/player/${u}2`,name:u,rank:2},{type:"player",color:"0, 0, 0",link:`/test/player/${u}3`,name:u,rank:3},{type:"player",link:`/test/player/${u}4`,name:u,rank:4},{type:"player",link:`/test/player/${u}5`,name:u}]}return(u,d)=>(o.openBlock(),o.createElementBlock("div",_7,[o.createVNode(o.unref(Ot),{placeholder:"Search Cards or Players","value-prop":"link","clear-on-blur":!1,"clear-on-search":!1,"clear-on-select":!1,"close-on-select":!0,delay:0,"filter-results":!1,groups:!0,"min-chars":0,"resolve-on-load":!1,searchable:!0,options:async f=>await i(f),onOpen:d[0]||(d[0]=f=>{f.noOptions&&f.resolveOptions()}),onSearchChange:a,onSelect:r},{option:o.withCtx(({option:f})=>[f.type==="card"?(o.openBlock(),o.createBlock(Yt,{key:`card-${f.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":f.card},null,8,["card-prop"])):(o.openBlock(),o.createBlock(Yt,{key:`player-${f.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":f.cardCode,color:f.color,name:f.name,"mana-number":f.rank},null,8,["card-code-prop","color","name","mana-number"]))]),_:1},8,["options"])]))}});const Ac=B(y7,[["__scopeId","data-v-8b9bf112"]]);function I1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I1(Object(n),!0).forEach(function(r){jt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ql(e){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ql(e)}function jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b7(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function k7(e,t){if(e==null)return{};var n=b7(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rd(e){return w7(e)||S7(e)||x7(e)||C7()}function w7(e){if(Array.isArray(e))return Bd(e)}function S7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x7(e,t){if(e){if(typeof e=="string")return Bd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bd(e,t)}}function Bd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
810
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H2={exports:{}};(function(e){(function(t){var n=function(m,y,k){if(!u(y)||f(y)||p(y)||h(y)||c(y))return y;var _,w=0,S=0;if(d(y))for(_=[],S=y.length;w<S;w++)_.push(n(m,y[w],k));else{_={};for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(_[m(C,k)]=n(m,y[C],k))}return _},r=function(m,y){y=y||{};var k=y.separator||"_",_=y.split||/(?=[A-Z])/;return m.split(_).join(k)},a=function(m){return g(m)?m:(m=m.replace(/[\-_\s]+(.)?/g,function(y,k){return k?k.toUpperCase():""}),m.substr(0,1).toLowerCase()+m.substr(1))},i=function(m){var y=a(m);return y.substr(0,1).toUpperCase()+y.substr(1)},s=function(m,y){return r(m,y).toLowerCase()},l=Object.prototype.toString,c=function(m){return typeof m=="function"},u=function(m){return m===Object(m)},d=function(m){return l.call(m)=="[object Array]"},f=function(m){return l.call(m)=="[object Date]"},p=function(m){return l.call(m)=="[object RegExp]"},h=function(m){return l.call(m)=="[object Boolean]"},g=function(m){return m=m-0,m===m},v=function(m,y){var k=y&&"process"in y?y.process:y;return typeof k!="function"?m:function(_,w){return k(_,m,w)}},b={camelize:a,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(m,y){return n(v(a,y),m)},decamelizeKeys:function(m,y){return n(v(s,y),m,y)},pascalizeKeys:function(m,y){return n(v(i,y),m)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b})(E7)})(H2);var T7=H2.exports,O7=["class","style"];function M7(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=T7.camelize(n.slice(0,r)),i=n.slice(r+1).trim();return t[a]=i,t},{})}function N7(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function ep(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(c){return ep(c)}),a=Object.keys(e.attributes||{}).reduce(function(c,u){var d=e.attributes[u];switch(u){case"class":c.class=N7(d);break;case"style":c.style=M7(d);break;default:c.attrs[u]=d}return c},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,l=k7(n,O7);return o.h(e.tag,En(En(En({},t),{},{class:a.class,style:En(En({},a.style),s)},a.attrs),l),r)}var W2=!1;try{W2=process.env.NODE_ENV==="production"}catch{}function D7(){if(!W2&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function xs(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?jt({},e,t):{}}function P7(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},jt(t,"fa-".concat(e.size),e.size!==null),jt(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),jt(t,"fa-pull-".concat(e.pull),e.pull!==null),jt(t,"fa-swap-opacity",e.swapOpacity),jt(t,"fa-bounce",e.bounce),jt(t,"fa-shake",e.shake),jt(t,"fa-beat",e.beat),jt(t,"fa-fade",e.fade),jt(t,"fa-beat-fade",e.beatFade),jt(t,"fa-flash",e.flash),jt(t,"fa-spin-pulse",e.spinPulse),jt(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function L1(e){if(e&&Ql(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Xl.icon)return Xl.icon(e);if(e===null)return null;if(Ql(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var nt=o.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,a=o.computed(function(){return L1(t.icon)}),i=o.computed(function(){return xs("classes",P7(t))}),s=o.computed(function(){return xs("transform",typeof t.transform=="string"?Xl.transform(t.transform):t.transform)}),l=o.computed(function(){return xs("mask",L1(t.mask))}),c=o.computed(function(){return H6(a.value,En(En(En(En({},i.value),s.value),l.value),{},{symbol:t.symbol,title:t.title}))});o.watch(c,function(d){if(!d)return D7("Could not find one or more icon(s)",a.value,l.value)},{immediate:!0});var u=o.computed(function(){return c.value?ep(c.value.abstract[0],{},r):null});return function(){return u.value}}});o.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,a=o2.familyPrefix,i=o.computed(function(){return["".concat(a,"-layers")].concat(Rd(t.fixedWidth?["".concat(a,"-fw")]:[]))});return function(){return o.h("div",{class:i.value},r.default?r.default():[])}}});o.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,a=o2.familyPrefix,i=o.computed(function(){return xs("classes",[].concat(Rd(t.counter?["".concat(a,"-layers-counter")]:[]),Rd(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),s=o.computed(function(){return xs("transform",typeof t.transform=="string"?Xl.transform(t.transform):t.transform)}),l=o.computed(function(){var u=W6(t.value.toString(),En(En({},s.value),i.value)),d=u.abstract;return t.counter&&(d[0].attributes.class=d[0].attributes.class.replace("fa-layers-text","")),d[0]}),c=o.computed(function(){return ep(l.value,{},r)});return function(){return c.value}}});const A7={class:"social-links"},I7=o.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",A7,[o.createVNode(o.unref(nt),{class:"icon",icon:"fa-brands fa-discord"}),o.createVNode(o.unref(nt),{class:"icon",icon:"fa-brands fa-twitter"})]))}});const tp=B(I7,[["__scopeId","data-v-5517438c"]]),L7={showModal:{type:Boolean,required:!0,default:!1}},R7=["onClick"],B7=o.defineComponent({__name:"ModalItem",props:L7,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=o.ref(null);function a(){t("update:showModal",!1)}return o.watch(()=>n.showModal,()=>{n.showModal&&o.nextTick(()=>{r.value&&document.body.appendChild(r.value)})}),(i,s)=>n.showModal?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"modalItem",ref:r,class:"modal-item",onClick:o.withModifiers(a,["self"])},[o.renderSlot(i.$slots,"default",{},void 0,!0)],8,R7)):o.createCommentVNode("",!0)}});const zi=B(B7,[["__scopeId","data-v-e2241387"]]),V7={filterArray:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},$7={class:"filter"},F7={key:0,class:"top"},z7={key:0,class:"title"},j7=o.defineComponent({__name:"SidePanelSectionPane",props:V7,emits:["clear:filterArray"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.filterArray&&n.filterArray.length>0?"clickable":null);function a(){t("clear:filterArray")}return(i,s)=>{const l=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",$7,[n.title||i.filterArray?(o.openBlock(),o.createElementBlock("div",F7,[n.title?(o.openBlock(),o.createElementBlock("h2",z7,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),i.filterArray?o.withDirectives((o.openBlock(),o.createElementBlock("p",{key:1,class:o.normalizeClass(["clear",r.value]),onClick:a},null,2)),[[l,"general.clear"]]):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const pt=B(j7,[["__scopeId","data-v-741cceed"]]),H7={filterArray:{type:Array,required:!0,default:[]}},W7=["placeholder"],U7=o.defineComponent({__name:"FilterSampleSize",props:H7,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.ref(n.filterArray),i=o.ref("");let s=setTimeout(()=>{},0);a.value.length>0&&(i.value=a.value[0]),o.watch(a,()=>{t("update:filterArray",a.value)}),o.watch(i,()=>{s&&clearTimeout(s),s=setTimeout(()=>{a.value.splice(0),i.value&&a.value.push(i.value)},1e3)});function l(){a.value.splice(0),i.value=""}return(c,u)=>(o.openBlock(),o.createBlock(pt,{"filter-array":a.value,title:o.unref(r)("general.sampleSize"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),placeholder:o.unref(r)("general.minimumMatches"),type:"number",min:"10",step:"10"},null,8,W7),[[o.vModelText,i.value]])]),_:1},8,["filter-array","title"]))}});const _o=B(U7,[["__scopeId","data-v-d66d5f9d"]]),Y7={filterArray:{type:Array,required:!0,default:[]}},q7={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},G7=["selected"],X7={class:"checkbox-name"},K7=o.defineComponent({__name:"CheckboxItem",props:q7,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=o.computed(()=>(console.log(n.icon),{content:n.icon}));function a(){t("update:isSelected",!n.isSelected)}return(i,s)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:a},[n.icon?(o.openBlock(),o.createElementBlock("div",{key:0,class:"checkbox-icon",style:o.normalizeStyle(r.value)},null,4)):o.createCommentVNode("",!0),o.createElementVNode("div",X7,o.toDisplayString(n.prompt),1)],8,G7))}});const Vt=B(K7,[["__scopeId","data-v-a4c6109c"]]),J7={selectedOption:{type:Number,required:!0,default:-1},options:{type:Array,required:!0,default:[]}},Z7=e=>(o.pushScopeId("data-v-d5d9745a"),e=e(),o.popScopeId(),e),Q7={class:"toggle-switch"},e9=Z7(()=>o.createElementVNode("div",{class:"selection"},null,-1)),t9=[e9],n9=["onClick"],r9={class:"option flex-center"},a9={class:"option-text"},i9=o.defineComponent({__name:"ToggleSwitch",props:J7,emits:["update:selectedOption"],setup(e,{emit:t}){const n=e,r=o.computed(()=>({left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${n.selectedOption})`,width:`calc((100% - calc(var(--spacing-1) * 2)) / ${n.options.length})`}));function a(s){return{cursor:n.selectedOption!=s?"pointer":"default",left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${s})`,width:`${1/n.options.length*100}%`}}function i(s){t("update:selectedOption",s)}return(s,l)=>(o.openBlock(),o.createElementBlock("div",Q7,[o.withDirectives(o.createElementVNode("div",{class:"selection-container",style:o.normalizeStyle(r.value)},t9,4),[[o.vShow,s.selectedOption>-1]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.options,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,ref_for:!0,ref:"option-container",style:o.normalizeStyle(a(u)),class:"option-container",onClick:d=>i(u)},[o.createElementVNode("div",r9,[o.createElementVNode("h1",a9,o.toDisplayString(c),1)])],12,n9))),128))]))}});const Ic=B(i9,[["__scopeId","data-v-d5d9745a"]]),s9={class:"checkboxes-container"},o9=o.defineComponent({__name:"FilterRanks",props:Y7,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.computed(()=>_e().dataJson.ranks.sort((u,d)=>d.order-u.order)),i=o.reactive(n.filterArray),s=o.ref(0);o.watch(i,()=>{t("update:filterArray",i)}),o.watch(s,()=>{s.value===0?i.splice(0):s.value===1&&(i.splice(0),i.push("Platinum","Diamond","Masters"))});function l(){i.splice(0),s.value=0}function c(u){const d=i.indexOf(u);if(d===-1){i.push(u);return}i.splice(d,1)}return(u,d)=>(o.openBlock(),o.createBlock(pt,{"filter-array":i,title:o.unref(r)("general.ranks"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.createElementVNode("div",s9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,f=>(o.openBlock(),o.createBlock(Vt,{key:f.nameRef,icon:`url(${f.icon})`,prompt:f.name,"is-selected":i.includes(f.nameRef),"onUpdate:isSelected":p=>c(f.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(Ic,{"selected-option":s.value,"onUpdate:selectedOption":d[0]||(d[0]=f=>s.value=f),options:[o.unref(r)("general.allRanks"),o.unref(r)("general.platPlus")]},null,8,["selected-option","options"])])]),_:1},8,["filter-array","title"]))}});const U2=B(o9,[["__scopeId","data-v-af7bc2a0"]]),l9={filterArray:{type:Array,required:!0,default:[]}},c9={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},u9=["selected"],d9={class:"prompt"},f9=o.defineComponent({__name:"CheckboxItemManaCost",props:c9,emits:["update:isSelected"],setup(e,{emit:t}){const n=e;function r(){t("update:isSelected",!n.isSelected)}return(a,i)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:r},[o.createVNode(vo),o.createElementVNode("div",d9,o.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,u9))}});const ec=B(f9,[["__scopeId","data-v-2c74c2ed"]]),p9={class:"checkbox-rows-container"},h9={class:"top-row checkbox-items-container"},m9={class:"bottom-row checkbox-items-container"},g9=o.defineComponent({__name:"FilterManaCost",props:l9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=Array(6).fill(1).map((c,u)=>u),i=Array(5).fill(1).map((c,u)=>u+6);function s(c){let u;n.filterArray.includes(c)?u=n.filterArray.filter(d=>d!==c):u=[...n.filterArray,c],t("update:filterArray",u)}function l(){t("update:filterArray",[])}return(c,u)=>(o.openBlock(),o.createBlock(pt,{"filter-array":n.filterArray,title:o.unref(r)("general.manaCost"),"onClear:filterArray":l},{default:o.withCtx(()=>[o.createElementVNode("div",p9,[o.createElementVNode("div",h9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),d=>(o.openBlock(),o.createBlock(ec,{key:d,class:"checkbox-item-mana-cost",prompt:d,"is-selected":n.filterArray.includes(d),"onUpdate:isSelected":f=>s(d)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))]),o.createElementVNode("div",m9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),d=>(o.openBlock(),o.createBlock(ec,{key:d,class:"checkbox-item-mana-cost",prompt:d,"is-selected":n.filterArray.includes(d),"onUpdate:isSelected":f=>s(d)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])])]),_:1},8,["filter-array","title"]))}});const np=B(g9,[["__scopeId","data-v-a94d786a"]]),v9={filterArray:{type:Array,required:!0,default:[]}},_9={class:"checkboxes-container"},rp=o.defineComponent({__name:"FilterRarities",props:v9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.computed(()=>_e().dataJson.rarities.filter(c=>c.nameRef!=="None")),i=o.reactive(n.filterArray);o.watch(i,()=>{t("update:filterArray",i)});function s(){i.splice(0)}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(pt,{"filter-array":i,title:o.unref(r)("general.rarities"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",_9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,d=>(o.openBlock(),o.createBlock(Vt,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),y9={filterArray:{type:Array,required:!0,default:[]}},b9={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},k9=["src"],w9={class:"multiselect-tag-remove"},S9=["onMousedown"],x9=["src"],ap=o.defineComponent({__name:"FilterSets",props:y9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.ref(n.filterArray);o.watch(a,()=>{t("update:filterArray",a.value)});function i(){a.value.splice(0)}return(s,l)=>(o.openBlock(),o.createBlock(pt,{"filter-array":a.value,title:o.unref(r)("general.sets"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(o.unref(Ot),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:o.unref(r)("general.sets"),class:"runeterra-select",mode:"tags",options:o.unref(_e)().dataJson.sets,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:c,handleTagRemove:u})=>[o.createElementVNode("span",b9,[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,k9),o.createElementVNode("span",w9,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(d=>u(c,d),["prevent"])},null,40,S9)])])]),option:o.withCtx(({option:c})=>[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,x9),o.createTextVNode(" "+o.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),C9={filterArray:{type:Array,required:!0,default:[]}},E9={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},T9=["src"],O9={class:"multiselect-tag-remove"},M9=["onMousedown"],N9=["src"],ip=o.defineComponent({__name:"FilterKeywords",props:C9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.ref(n.filterArray),i=o.computed(()=>_e().dataJson.keywords.filter(l=>l.showInFilter));o.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(l,c)=>(o.openBlock(),o.createBlock(pt,{"filter-array":a.value,title:o.unref(r)("general.keywords"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createVNode(o.unref(Ot),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value=u),placeholder:o.unref(r)("general.keywords"),class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:u,handleTagRemove:d})=>[o.createElementVNode("span",E9,[o.createElementVNode("img",{class:"label-icon",src:u.icon},null,8,T9),o.createElementVNode("span",O9,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(f=>d(u,f),["prevent"])},null,40,M9)])])]),option:o.withCtx(({option:u})=>[o.createElementVNode("img",{class:"label-icon",src:u.icon},null,8,N9),o.createTextVNode(" "+o.toDisplayString(u.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),D9={filterArray:{type:Array,required:!0,default:[]}},P9={class:"checkboxes-container"},yo=o.defineComponent({__name:"FilterServers",props:D9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.reactive(n.filterArray);o.watch(a,()=>{t("update:filterArray",a)});function i(){a.splice(0)}function s(l){const c=a.indexOf(l);if(c===-1){a.push(l);return}a.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(pt,{"filter-array":a,title:o.unref(r)("general.servers"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",P9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(_e)().dataJson.servers,u=>(o.openBlock(),o.createBlock(Vt,{key:u.nameRef,prompt:u.name,"is-selected":a.includes(u.nameRef),"onUpdate:isSelected":d=>s(u.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),A9={filterArray:{type:Array,required:!0,default:[]}},I9={class:"checkboxes-container"},L9=o.defineComponent({__name:"FilterTime",props:A9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.reactive(n.filterArray),i=o.ref(null),s=o.ref(null),l=a.find(p=>p.startsWith("patch_"));l&&(i.value=l);const c=a.find(p=>p.startsWith("season_"));c&&(s.value=c),o.watch(a,()=>{t("update:filterArray",a)}),o.watch(i,(p,h)=>{u(p,h)}),o.watch(s,(p,h)=>{u(p,h)});function u(p,h){console.log(h,p),h&&a.splice(a.indexOf(h),1),p&&a.push(p),console.log(a)}function d(){a.splice(0),i.value=null,s.value=null}function f(p){a.splice(0),p!=="patch"&&a.push(p),p==="patch"&&i.value&&a.push(i.value),p==="season"&&s.value&&a.push(s.value)}return(p,h)=>(o.openBlock(),o.createBlock(pt,{"filter-array":a,title:o.unref(r)("general.time"),"onClear:filterArray":d},{default:o.withCtx(()=>[o.createElementVNode("div",I9,[o.createVNode(Vt,{prompt:o.unref(r)("general.patch"),"is-selected":a.filter(g=>!g.startsWith("patch")).length===0,"onUpdate:isSelected":h[0]||(h[0]=g=>f("patch"))},null,8,["prompt","is-selected"]),o.createVNode(Vt,{prompt:o.unref(r)("general.season"),"is-selected":a.includes("season"),"onUpdate:isSelected":h[1]||(h[1]=g=>f("season"))},null,8,["prompt","is-selected"]),o.createVNode(Vt,{prompt:o.unref(r)("general.pastDays",7),"is-selected":a.includes("past7days"),"onUpdate:isSelected":h[2]||(h[2]=g=>f("past7days"))},null,8,["prompt","is-selected"]),o.createVNode(Vt,{prompt:o.unref(r)("general.pastDays",3),"is-selected":a.includes("past3days"),"onUpdate:isSelected":h[3]||(h[3]=g=>f("past3days"))},null,8,["prompt","is-selected"]),o.createVNode(Vt,{prompt:o.unref(r)("general.pastHours",24),"is-selected":a.includes("past24hours"),"onUpdate:isSelected":h[4]||(h[4]=g=>f("past24hours"))},null,8,["prompt","is-selected"]),o.createVNode(Vt,{prompt:o.unref(r)("general.pastHour"),"is-selected":a.includes("pastHour"),"onUpdate:isSelected":h[5]||(h[5]=g=>f("pastHour"))},null,8,["prompt","is-selected"]),a.filter(g=>!g.startsWith("patch")).length===0?(o.openBlock(),o.createBlock(o.unref(Ot),{key:0,modelValue:i.value,"onUpdate:modelValue":h[6]||(h[6]=g=>i.value=g),options:o.unref(_e)().dataJson.patches,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0),a.includes("season")?(o.openBlock(),o.createBlock(o.unref(Ot),{key:1,modelValue:s.value,"onUpdate:modelValue":h[7]||(h[7]=g=>s.value=g),options:o.unref(_e)().dataJson.seasons,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const bo=B(L9,[["__scopeId","data-v-1cf4e6d2"]]),R9={filterArray:{type:Array,required:!0,default:[]}},B9={cardCodes:{type:Array,required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},V9=o.defineComponent({__name:"CardMultiselect",props:B9,emits:["update:cardCodes"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.ref(n.cardCodes),i=o.computed(()=>{let s=Hf().cardJson.sort((l,c)=>l.name.localeCompare(c.name));return n.filterCallback&&(s=s.filter(n.filterCallback)),s});return o.watch(a,()=>{t("update:cardCodes",a.value)}),(s,l)=>(o.openBlock(),o.createBlock(o.unref(Ot),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),class:"multiselect",placeholder:o.unref(r)("cards.cards"),mode:n.mode,options:i.value,infinite:!0,limit:10,searchable:!0,label:"name","value-prop":"cardCode"},null,8,["modelValue","placeholder","mode","options"]))}});const sp=B(V9,[["__scopeId","data-v-968634df"]]),op=o.defineComponent({__name:"FilterCardCodes",props:R9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.ref(n.filterArray);o.watch(a,()=>{console.log("watch(filterArray)",a.value),t("update:filterArray",a.value)});function i(){a.value.splice(0)}function s(l){return l.collectible}return(l,c)=>(o.openBlock(),o.createBlock(pt,{"filter-array":a.value,title:o.unref(r)("cards.cards"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(sp,{cardCodes:a.value,"onUpdate:cardCodes":c[0]||(c[0]=u=>a.value=u),mode:"tags","filter-callback":s},null,8,["cardCodes"])]),_:1},8,["filter-array","title"]))}}),$9={filterArray:{type:Array,required:!0,default:[]}},F9={class:"checkboxes-container"},z9=o.defineComponent({__name:"FilterRegions",props:$9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.reactive(n.filterArray),i=o.ref([]);i.value.push(...a.filter(c=>Bs(c))),o.watch(a,()=>{t("update:filterArray",a)}),o.watch(i,(c,u)=>{let d=c.find(f=>!u.includes(f));if(d||(d=u.find(f=>!c.includes(f)),d))return l(d)});function s(){a.splice(0),i.value.slice(0)}function l(c){const u=a.indexOf(c);if(u===-1){a.push(c),c==="Runeterra"&&a.push(...i.value);return}if(a.splice(u,1),c==="Runeterra")for(let d=0;d<a.length;d++)Bs(a[d])&&a.splice(d--,1)}return(c,u)=>(o.openBlock(),o.createBlock(pt,{"filter-array":a,title:o.unref(r)("general.regions"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",F9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(_e)().dataJson.regions,d=>(o.openBlock(),o.createBlock(Vt,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":a.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(Vt,{class:"runeterra",prompt:"Runeterra","is-selected":a.includes("Runeterra"),"onUpdate:isSelected":u[0]||(u[0]=d=>l("Runeterra"))},null,8,["is-selected"]),a.includes("Runeterra")?(o.openBlock(),o.createBlock(o.unref(Ot),{key:0,modelValue:i.value,"onUpdate:modelValue":u[1]||(u[1]=d=>i.value=d),class:"runeterra-select",mode:"tags",options:o.unref(_e)().dataJson.runeterraChampions,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const Lc=B(z9,[["__scopeId","data-v-c93a9e90"]]),j9={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},H9={filterArray:{type:Array,required:!0,default:[]}},W9={class:"checkboxes-container"},U9=o.defineComponent({__name:"FilterFormat",props:H9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.computed(()=>{const f=_e().dataJson.queues;return Object.values(_e().dataJson.formats).filter(p=>p.availableQueues.some(h=>!f[h].excludeInMassFilter))}),i=o.computed(()=>a.value.filter(f=>!f.inDropdown)),s=o.computed(()=>a.value.filter(f=>f.inDropdown)),l=o.reactive(n.filterArray),c=o.ref(null);o.onMounted(()=>{l.length>0&&s.value.map(f=>f.nameRef).includes(l[0])&&(c.value=l[0])}),o.watch(l,()=>{t("update:filterArray",l),l.length===0&&(c.value=null)}),o.watch(c,()=>{c.value&&(l.splice(0),l.push(c.value))});function u(f){c.value=null,l.splice(0),f!==xn.Standard&&l.push(f)}function d(){l.splice(0)}return(f,p)=>(o.openBlock(),o.createBlock(pt,{"filter-array":l,title:o.unref(r)("general.format"),"onClear:filterArray":d},{default:o.withCtx(()=>[o.createElementVNode("div",W9,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,h=>(o.openBlock(),o.createBlock(Vt,{prompt:h.name,"is-selected":l.includes(h.nameRef)||h.nameRef===o.unref(xn).Standard&&l.length===0,"onUpdate:isSelected":g=>u(h.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),256)),s.value.length>0?(o.openBlock(),o.createBlock(o.unref(Ot),{key:0,modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=h=>c.value=h),options:s.value,searchable:!1,placeholder:o.unref(r)("general.otherFormats"),label:"name","value-prop":"nameRef",onClear:d},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const Y9=B(U9,[["__scopeId","data-v-82653377"]]),q9={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},G9=o.defineComponent({__name:"FilterQueues",props:q9,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.ref(n.filterArray),i=o.computed(()=>Object.values(_e().dataJson.queues).filter(l=>n.availableQueues.includes(l.nameRef)&&!l.excludeInMassFilter));o.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(l,c)=>n.availableQueues.length>1?(o.openBlock(),o.createBlock(pt,{key:0,"filter-array":a.value,title:o.unref(r)("general.queues"),"onClear:filterArray":s},{default:o.withCtx(()=>{var u,d;return[o.createVNode(o.unref(Ot),{modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=f=>a.value=f),placeholder:(d=(u=i.value)==null?void 0:u.find(f=>f.nameRef===o.unref(r0).Ranked))==null?void 0:d.name,class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])]}),_:1},8,["filter-array","title"])):o.createCommentVNode("",!0)}}),X9={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},K9={class:"filter"},J9={key:0,class:"top"},Z9=o.defineComponent({__name:"SidePanel",props:X9,emits:["clear:filterObject"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.filterObject&&Object.values(n.filterObject).some(i=>i.length>0)?"clickable":null);function a(){t("clear:filterObject")}return(i,s)=>{const l=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",K9,[n.showClearAll&&n.filterObject?(o.openBlock(),o.createElementBlock("div",J9,[o.withDirectives(o.createElementVNode("p",{class:o.normalizeClass(["clear",r.value]),onClick:a},null,2),[[l,"general.clearAll"]])])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const lp=B(Z9,[["__scopeId","data-v-6a93fcc1"]]),Y2=o.defineComponent({__name:"FilterDecks",props:j9,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);o.watch(r,()=>{t("update:filters",r)});const a=o.computed(()=>{var s;return(s=_e().dataJson.formats[r.formatFilters[0]??xn.Standard])==null?void 0:s.availableQueues});function i(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,l)=>(o.openBlock(),o.createBlock(lp,{"filter-object":n.filters,"onClear:filterObject":i},{default:o.withCtx(()=>[o.createVNode(Lc,{"filter-array":r.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>r.regionFilters=c)},null,8,["filter-array"]),o.createVNode(op,{"filter-array":r.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>r.cardFilters=c)},null,8,["filter-array"]),o.createVNode(Y9,{"filter-array":r.formatFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>r.formatFilters=c)},null,8,["filter-array"]),n.includeDataFilters?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(_o,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>r.sampleSizeFilters=c)},null,8,["filter-array"]),o.createVNode(G9,{"filter-array":r.queueFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>r.queueFilters=c),"available-queues":a.value},null,8,["filter-array","available-queues"]),o.createVNode(bo,{"filter-array":r.timeFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>r.timeFilters=c)},null,8,["filter-array"]),o.createVNode(yo,{"filter-array":r.serverFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>r.serverFilters=c)},null,8,["filter-array"])],64)):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),Q9={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},eE={class:"advanced-filter-item"},tE=["value"],nE=o.defineComponent({__name:"AdvancedFilterItem",props:Q9,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=[{value:"attack",label:r("cards.attack")},{value:"health",label:r("cards.health")},{value:"cost",label:r("cards.cost")},{value:"quantityOwned",label:r("cards.quantityOwned")}],i=o.ref(n.filterValue.attribute);o.watch(i,()=>{t("update:filterValue",{attribute:i.value,equality:n.filterValue.equality,number:n.filterValue.number})});function s(){let c=">";n.filterValue.equality===">"?c="<":n.filterValue.equality==="<"&&(c="="),t("update:filterValue",{attribute:n.filterValue.attribute,equality:c,number:n.filterValue.number})}function l(c){t("update:filterValue",{attribute:n.filterValue.attribute,equality:n.filterValue.equality,number:Number(c.target.value)})}return(c,u)=>(o.openBlock(),o.createElementBlock("div",eE,[o.createVNode(o.unref(Ot),{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),class:"advanced-attribute",options:a,"can-clear":!1,label:"label","value-prop":"value"},null,8,["modelValue"]),o.createElementVNode("div",{class:"equality-button",onClick:s},o.toDisplayString(n.filterValue.equality),1),o.createElementVNode("input",{type:"number",class:"equality-number",value:n.filterValue.number,onInput:l},null,40,tE)]))}});const cp=B(nE,[["__scopeId","data-v-eb2d535d"]]),rE={filterValue:{type:Array,required:!0,default:[]}},aE=o.defineComponent({__name:"FilterAdvanced",props:rE,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.reactive(n.filterValue);o.watch(a,()=>{t("update:filterValue",a)});function i(){a.splice(0)}function s(){a.push({attribute:"attack",equality:">",number:0})}return(l,c)=>(o.openBlock(),o.createBlock(pt,{class:"advanced-filters","filter-array":a,title:o.unref(r)("general.advanced"),"onClear:filterArray":i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a,(u,d)=>(o.openBlock(),o.createBlock(cp,{key:d,"filter-value":a[d],"onUpdate:filterValue":f=>a[d]=f,class:"advanced-filter-item"},null,8,["filter-value","onUpdate:filterValue"]))),128)),o.createElementVNode("div",{class:"new-advanced-filter",onClick:s},o.toDisplayString(o.unref(r)("general.newAdvancedFilter")),1)]),_:1},8,["filter-array","title"]))}});const up=B(aE,[["__scopeId","data-v-6c23ee29"]]),iE={filterArray:{type:Array,required:!0,default:[]}},sE={class:"checkboxes-container"},dp=o.defineComponent({__name:"FilterTypes",props:iE,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.computed(()=>_e().dataJson.types.filter(c=>["Unit","Spell","Landmark","Equipment"].includes(c.nameRef))),i=o.reactive(n.filterArray);o.watch(i,()=>{t("update:filterArray",i)});function s(){i.splice(0)}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(pt,{"filter-array":n.filterArray,title:o.unref(r)("general.types"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",sE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,d=>(o.openBlock(),o.createBlock(Vt,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),oE={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[]}}},q2=o.defineComponent({__name:"FilterCards",props:oE,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);o.watch(r,()=>{t("update:filters",r)});function a(){for(const[,i]of Object.entries(r))i.splice(0)}return(i,s)=>(o.openBlock(),o.createBlock(lp,{"filter-object":n.filters,"onClear:filterObject":a},{default:o.withCtx(()=>[o.createVNode(np,{"filter-array":r.manaCostFilters,"onUpdate:filterArray":s[0]||(s[0]=l=>r.manaCostFilters=l)},null,8,["filter-array"]),o.createVNode(Lc,{"filter-array":r.regionFilters,"onUpdate:filterArray":s[1]||(s[1]=l=>r.regionFilters=l)},null,8,["filter-array"]),o.createVNode(dp,{"filter-array":r.typeFilters,"onUpdate:filterArray":s[2]||(s[2]=l=>r.typeFilters=l)},null,8,["filter-array"]),o.createVNode(rp,{"filter-array":r.rarityFilters,"onUpdate:filterArray":s[3]||(s[3]=l=>r.rarityFilters=l)},null,8,["filter-array"]),o.createVNode(ap,{"filter-array":r.setFilters,"onUpdate:filterArray":s[4]||(s[4]=l=>r.setFilters=l)},null,8,["filter-array"]),o.createVNode(ip,{"filter-array":r.keywordFilters,"onUpdate:filterArray":s[5]||(s[5]=l=>r.keywordFilters=l)},null,8,["filter-array"]),o.createVNode(up,{"filter-value":r.advancedFilters,"onUpdate:filterValue":s[6]||(s[6]=l=>r.advancedFilters=l)},null,8,["filter-value"])]),_:1},8,["filter-object"]))}}),lE={cardCodes:{type:Array,required:!0,default:[]}},G2=o.defineComponent({__name:"CopyMeComponent",props:lE,setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div"))}}),cE={regionRef:{type:String,required:!0,default:"Ionia"}},uE={text:{type:String,required:!0,default:""}},dE=["innerHTML"],fE=o.defineComponent({__name:"TippyText",props:uE,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,dE))}});const Rc=B(fE,[["__scopeId","data-v-715107fe"]]),pE={class:"region-item"},hE=["alt","src"],mE=o.defineComponent({__name:"RegionItem",props:cE,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.computed(()=>_e().dataJson.regions.find(i=>i.nameRef==t.regionRef)??_e().dataJson.runeterraChampions.find(i=>i.nameRef===t.regionRef));return o.onMounted(()=>{ot(n.value,{content:r.value,arrow:!0})}),(i,s)=>{var l,c,u;return o.openBlock(),o.createElementBlock("div",pE,[o.createElementVNode("img",{ref_key:"regionImg",ref:n,alt:(l=a.value)==null?void 0:l.name,src:(c=a.value)==null?void 0:c.icon,class:"region-img"},null,8,hE),o.createElementVNode("div",{ref_key:"regionTippy",ref:r},[o.createVNode(Rc,{text:(u=a.value)==null?void 0:u.name},null,8,["text"])],512)])}}});const ko=B(mE,[["__scopeId","data-v-3d756f50"]]),gE={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},vE={class:"regions-line"},_E={key:0,class:"describe-regions"},yE={class:"lines"},bE=o.defineComponent({__name:"RegionsLine",props:gE,setup(e){const t=e,{t:n}=ne(),r=o.computed(()=>t.deck?t.deck:vt(t.deckCode)),a=o.computed(()=>t.cards?t.cards:Jt(r.value)),i=o.computed(()=>{const l={};for(const c of bc(r.value))l[c]=0;for(const c of a.value)for(const u of c.regionRefs)u in l&&(l[u]+=r.value[c.cardCode]);return l});function s(l,c){return{flexGrow:l,backgroundColor:`var(--color-${c}, var(--color-Runeterra))`}}return(l,c)=>(o.openBlock(),o.createElementBlock("div",vE,[t.describeRegions?(o.openBlock(),o.createElementBlock("div",_E,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(u,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,class:"region-description"},[o.createVNode(ko,{"region-ref":d,class:"icon"},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString(`${u} ${o.unref(n)("general.cards")}`),1)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",yE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(u,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,style:o.normalizeStyle(s(u,d)),class:"region-line"},null,4))),128))])]))}});const fp=B(bE,[["__scopeId","data-v-f1f94f8b"]]),kE={cardCode:{type:String,required:!0,default:"01IO001"},toggledStats:{type:Object,required:!0,default:{matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!1,kept:!1,drawnWinrate:!1,turnsHeld:!1,turnPlayed:!1}},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},inclusion:{type:Number,required:!0,default:.5},avgCopies:{type:Number,required:!0,default:1},mulliganWinrate:{type:Number,required:!1,default:void 0},keptInMulligan:{type:Number,required:!1,default:void 0},drawnWinrate:{type:Number,required:!1,default:void 0},turnsHeld:{type:Number,required:!1,default:void 0},turnPlayed:{type:Number,required:!1,default:void 0}},wE={href:"/test",class:"wrapper"},SE={class:"cards-row-background-wrapper"},xE={class:"cards-row-background"},CE={class:"cards-row wrapper"},EE={key:0,class:"column-content"},TE={key:2,class:"column-content"},OE={key:3,class:"column-content"},ME={key:5,class:"column-content"},NE={key:7,class:"column-content"},DE={key:8,class:"column-content"},PE=o.defineComponent({__name:"CardsRow",props:kE,setup(e){const t=e,n=o.computed(()=>["",`https://lor.gg/storage/cards/banner/${t.cardCode}.png`]);return(r,a)=>(o.openBlock(),o.createElementBlock("a",wE,[o.createElementVNode("div",{class:"cards-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",SE,[o.createElementVNode("div",xE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>(o.openBlock(),o.createElementBlock("div",{key:i,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${i})`})},null,4))),128))])]),o.createElementVNode("div",CE,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(Yt,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!0},null,8,["card-code-prop"])]),t.toggledStats.matches?(o.openBlock(),o.createElementBlock("div",EE,o.toDisplayString(o.unref(Me)(t.matches)),1)):o.createCommentVNode("",!0),t.toggledStats.winrate?(o.openBlock(),o.createElementBlock("div",{key:1,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,2,3)+"%"),5)):o.createCommentVNode("",!0),t.toggledStats.inclusion?(o.openBlock(),o.createElementBlock("div",TE,o.toDisplayString(o.unref(Me)(t.inclusion*100,2,3)+"%"),1)):o.createCommentVNode("",!0),t.toggledStats.avgCopies?(o.openBlock(),o.createElementBlock("div",OE,o.toDisplayString(o.unref(Me)(t.avgCopies,2,3)),1)):o.createCommentVNode("",!0),t.toggledStats.mulliganWinrate?(o.openBlock(),o.createElementBlock("div",{key:4,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.mulliganWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.mulliganWinrate?o.unref(Me)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(o.openBlock(),o.createElementBlock("div",ME,o.toDisplayString(t.keptInMulligan?o.unref(Me)(t.keptInMulligan*100,2,3)+"%":"-"),1)):o.createCommentVNode("",!0),t.toggledStats.drawnWinrate?(o.openBlock(),o.createElementBlock("div",{key:6,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.drawnWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.drawnWinrate?o.unref(Me)(t.drawnWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.turnPlayed?(o.openBlock(),o.createElementBlock("div",NE,o.toDisplayString(t.turnPlayed?o.unref(Me)(t.turnPlayed,2,3):"-"),1)):o.createCommentVNode("",!0),t.toggledStats.turnsHeld?(o.openBlock(),o.createElementBlock("div",DE,o.toDisplayString(t.turnsHeld?o.unref(Me)(t.turnsHeld,2,3):"-"),1)):o.createCommentVNode("",!0)])],4)]))}});const pp=B(PE,[["__scopeId","data-v-2d3d4246"]]),AE={cardRows:{type:Array,required:!0,default:[]},cardsRowToggle:{type:Object,requied:!0,default:{card:!0,matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!0,keptInMulligan:!0,drawnWinrate:!0,turnsHeld:!0,turnPlayed:!0}}};var ye=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(ye||{});const IE={headingItems:{type:Array,required:!0,default:[]}},LE=e=>(o.pushScopeId("data-v-43d2a2a5"),e=e(),o.popScopeId(),e),RE={class:"table-wrapper"},BE={class:"table no-scrollbar"},VE=LE(()=>o.createElementVNode("div",{class:"heading-background-outer"},[o.createElementVNode("div",{class:"heading-background-absolute"}),o.createElementVNode("div",{class:"heading-background-inner"})],-1)),$E={class:"heading wrapper"},FE=["onClick"],zE={class:"sort-icons"},jE=o.defineComponent({__name:"LargeTable",props:IE,emits:["toggleSort"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.headingItems.filter(a=>a.isShown));return(a,i)=>(o.openBlock(),o.createElementBlock("div",RE,[o.createElementVNode("div",BE,[VE,o.createElementVNode("div",$E,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,s=>(o.openBlock(),o.createElementBlock("div",{key:s.title,class:o.normalizeClass(["heading-cell column-content",s.sortDirection]),onClick:l=>t("toggleSort",s.id)},[o.createElementVNode("div",null,o.toDisplayString(s.title),1),o.createElementVNode("div",zE,[o.createVNode(o.unref(nt),{icon:"sort-up",class:"sort-icon"}),o.createVNode(o.unref(nt),{icon:"sort-down",class:"sort-icon"})])],10,FE))),128))]),o.renderSlot(a.$slots,"default",{},void 0,!0)])]))}});const ca=B(jE,[["__scopeId","data-v-43d2a2a5"]]);function ji(e,t){const n=t.value.find(a=>a.id===e);if(!n||n.sortDirection===ye.NOT_SORTABLE)return;const r=n.sortDirection;if(HE(t),r===ye.NEITHER){n.sortDirection=ye.DOWN;return}if(r===ye.DOWN){n.sortDirection=ye.UP;return}n.sortDirection=ye.DOWN}function HE(e){e.value.forEach(t=>{t.sortDirection!==ye.NOT_SORTABLE&&(t.sortDirection=ye.NEITHER)})}const WE=o.defineComponent({__name:"CardsTable",props:AE,setup(e){const t=e,{t:n}=ne(),r=[{id:"card",isAlwaysShown:!0,isSortable:!1,title:n("general.card")},{id:"matches",isAlwaysShown:!1,isSortable:!0,title:n("general.matches")},{id:"winrate",isAlwaysShown:!1,isSortable:!0,title:n("general.winrate")},{id:"inclusion",isAlwaysShown:!1,isSortable:!0,title:n("general.inclusion")},{id:"avgCopies",isAlwaysShown:!1,isSortable:!0,title:n("general.avgCopies")},{id:"mulliganWinrate",isAlwaysShown:!1,isSortable:!0,title:n("general.mulliganWinrate")},{id:"keptInMulligan",isAlwaysShown:!1,isSortable:!0,title:n("general.keptInMulligan")},{id:"drawnWinrate",isAlwaysShown:!1,isSortable:!0,title:n("general.drawnWinrate")},{id:"turnsHeld",isAlwaysShown:!1,isSortable:!0,title:n("general.turnsHeld")},{id:"turnPlayed",isAlwaysShown:!1,isSortable:!0,title:n("general.turnPlayed")}];let a=!1;const i=o.ref(r.map(c=>{let u=ye.NEITHER;return c.isSortable||(u=ye.NOT_SORTABLE),!a&&c.isSortable&&(u=ye.DOWN,a=!0),{id:c.id,isShown:t.cardsRowToggle[c.id],sortDirection:u,title:c.title}})),s=o.computed(()=>({"--table-grid-template-columns":`repeat(${Object.values(t.cardsRowToggle).reduce((u,d)=>d?u+1:u,0)}, 1fr)`}));function l(c){ji(c,i)}return(c,u)=>(o.openBlock(),o.createBlock(ca,{class:"large-table","heading-items":i.value,style:o.normalizeStyle(s.value),onToggleSort:l},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.cardRows,(d,f)=>(o.openBlock(),o.createBlock(pp,{key:d.cardCode,"card-code":d.cardCode,matches:d.matches,wins:d.wins,index:f+2,"avg-copies":d.avgCopies,"drawn-winrate":d.drawnWinrate,"kept-in-mulligan":d.keptInMulligan,"mulligan-winrate":d.mulliganWinrate,inclusion:d.inclusion,"turns-held":d.turnsHeld,"turn-played":d.turnPlayed,"toggled-stats":t.cardsRowToggle},null,8,["card-code","matches","wins","index","avg-copies","drawn-winrate","kept-in-mulligan","mulligan-winrate","inclusion","turns-held","turn-played","toggled-stats"]))),128))]),_:1},8,["heading-items","style"]))}});const X2=B(WE,[["__scopeId","data-v-0f368ec8"]]),UE={regions:{type:Array,required:!0,default:[]}},YE={class:"deck-highlight-regions"},qE=o.defineComponent({__name:"DeckHighlightRegions",props:UE,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",YE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.regions,a=>(o.openBlock(),o.createElementBlock("div",{key:a,class:"region-item-wrapper"},[o.createVNode(ko,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const wo=B(qE,[["__scopeId","data-v-d28f95f4"]]),GE={},XE={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"},KE=o.createStaticVNode('<path fill="#146743" d="m271 136-54 90 150 316 14-50 29-312-51-130-88 86Z"></path><path fill="#419a4a" d="m356 121-75 105 86 316 14-50 29-312-54-59Z"></path><path fill="#baffb6" d="M410 180 359 50l-3 71 54 59Z"></path><path fill="#437f41" d="m359 50-88 86 10 90 75-105 3-71ZM281 360l86 182-86-316v134Z"></path><path fill="#419a4a" d="m454 332 28 33-33 85-4-13-8-85 17-20Z"></path>',5),JE=[KE];function ZE(e,t){return o.openBlock(),o.createElementBlock("svg",XE,JE)}const hp=B(GE,[["render",ZE]]),QE={deck:{type:Object,required:!0,default:{}}},eT=e=>(o.pushScopeId("data-v-25f680e9"),e=e(),o.popScopeId(),e),tT={class:"gems-text"},nT={class:"gems-cost-title"},rT={class:"gems-cost-value"},aT=eT(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),iT={class:"gems-cost-title"},sT={class:"gems-cost-value"},oT=o.defineComponent({__name:"GemsCost",props:QE,setup(e){const t=e,{t:n}=ne(),r=o.ref(null),a=o.ref(null),i=o.computed(()=>Wl(t.deck,!1)),s=o.computed(()=>Wl(t.deck,!0));return o.onMounted(()=>{ot(r.value,{content:a.value,arrow:!0,duration:0})}),(l,c)=>{var u,d,f;return o.openBlock(),o.createElementBlock("div",{ref_key:"gemsCostDiv",ref:r,class:"gems-cost"},[o.createVNode(hp,{class:"shards-icon"}),o.createElementVNode("div",tT,o.toDisplayString((u=s.value!==null?s.value:i.value)==null?void 0:u.toLocaleString()),1),o.createElementVNode("div",{ref_key:"gemsCostTippyDiv",ref:a,class:"gems-cost-tippy"},[s.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",nT,o.toDisplayString(o.unref(n)("deck.personalCost")),1),o.createElementVNode("div",rT,o.toDisplayString((d=s.value)==null?void 0:d.toLocaleString()),1),aT],64)):o.createCommentVNode("",!0),o.createElementVNode("div",iT,o.toDisplayString(o.unref(n)("deck.originalCost")),1),o.createElementVNode("div",sT,o.toDisplayString((f=i.value)==null?void 0:f.toLocaleString()),1)],512)],512)}}});const mp=B(oT,[["__scopeId","data-v-25f680e9"]]),lT={class:"language-selection"},cT=["value"],uT=o.defineComponent({__name:"LanguageSelection",setup(e){const t=o.ref(!1);function n(){t.value=!0}return(r,a)=>(o.openBlock(),o.createElementBlock("div",lT,[o.createVNode(o.unref(nt),{ref:"languageIcon",icon:"language",class:"icon",onClick:n},null,512),o.createVNode(zi,{"show-modal":t.value,"onUpdate:showModal":a[1]||(a[1]=i=>t.value=i)},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("select",{"onUpdate:modelValue":a[0]||(a[0]=i=>r.$i18n.locale=i)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.$i18n.availableLocales,i=>(o.openBlock(),o.createElementBlock("option",{key:`locale-${i}`,value:i},o.toDisplayString(i),9,cT))),128))],512),[[o.vModelSelect,r.$i18n.locale]])]),_:1},8,["show-modal"])]))}});const gp=B(uT,[["__scopeId","data-v-741580c8"]]),dT={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},K2={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1},regions:{type:Array,required:!1,default:void 0},colorOverride:{type:String,required:!1,default:void 0}},fT={class:"circle-card-item"},pT=["alt","src"],hT=o.defineComponent({__name:"CircleCardItem",props:K2,setup(e){const t=e,n=co(t.cardProp,t.cardCodeProp,!0),r=o.ref(null),a=o.ref(null),i=o.ref(null),s=o.ref(null),l=o.computed(()=>{var u;return"https://lor.gg/storage/cards/icon/"+((u=n.value)==null?void 0:u.cardCode)+"-icon.webp"}),c=o.computed(()=>n.value===void 0?"--color-primary-2":Sa(n.value,t.regions));return o.onMounted(()=>{t.ignoreCardItem||ot(r.value,{content:a.value,placement:"right",arrow:!0,touch:"hold",duration:0,role:"card-image",onShown:u=>{const d=u.popper.innerHTML.includes("right")?"right-start":"left-start";s.value=d},onHidden:()=>{s.value=null}})}),(u,d)=>{var f;return o.openBlock(),o.createElementBlock("div",fT,[o.createElementVNode("a",{href:"test/card",class:"circle-card-link",onClick:d[0]||(d[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createElementVNode("img",{ref_key:"circleCardImg",ref:r,alt:(f=o.unref(n))==null?void 0:f.name,src:l.value,class:"circle-card-img",style:o.normalizeStyle({borderColor:t.colorOverride??c.value})},null,12,pT)]),o.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!u.ignoreCardItem&&o.unref(n)?(o.openBlock(),o.createBlock(xr,{key:0,ref_key:"cardItem",ref:i,"card-code-prop":o.unref(n).cardCode,"is-deck-builder":!1,"is-root":!0,"show-tippy-location":s.value},null,8,["card-code-prop","show-tippy-location"])):o.createCommentVNode("",!0)],512)])}}});const ua=B(hT,[["__scopeId","data-v-3769c05a"]]),mT={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]}},gT={class:"deck-highlight-cards"},vT=o.defineComponent({__name:"DeckHighlightCards",props:mT,setup(e){const t=e,n=o.computed(()=>{if(t.cards)return t.cards;if(t.cardCodes)return t.cardCodes.map(r=>Pt().cardJsonObject[r]).filter(r=>r!==void 0);throw new Error("Cards or CardCodes must be defined.")});return(r,a)=>(o.openBlock(),o.createElementBlock("div",gT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:i.cardCode??s,class:"circle-card-item-wrapper"},[o.createVNode(ua,{class:"circle-card-item","card-prop":i,regions:t.regions},null,8,["card-prop","regions"])]))),128))]))}});const So=B(vT,[["__scopeId","data-v-4d804eb7"]]),_T=o.defineComponent({__name:"ArchetypeSidePanelHighlight",props:dT,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(pt,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createVNode(wo,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),o.createVNode(So,{class:o.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const Bc=B(_T,[["__scopeId","data-v-ff538f6f"]]),yT={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},bT={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
|
|
811
|
+
* @kurkle/color v0.3.2
|
|
812
|
+
* https://github.com/kurkle/color#readme
|
|
813
|
+
* (c) 2023 Jukka Kurkela
|
|
814
|
+
* Released under the MIT License
|
|
815
|
+
*/function xo(e){return e+.5|0}const zr=(e,t,n)=>Math.max(Math.min(e,n),t);function fs(e){return zr(xo(e*2.55),0,255)}function qr(e){return zr(xo(e*255),0,255)}function ur(e){return zr(xo(e/2.55)/100,0,1)}function R1(e){return zr(xo(e*100),0,100)}const mn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Vd=[..."0123456789ABCDEF"],kT=e=>Vd[e&15],wT=e=>Vd[(e&240)>>4]+Vd[e&15],sl=e=>(e&240)>>4===(e&15),ST=e=>sl(e.r)&&sl(e.g)&&sl(e.b)&&sl(e.a);function xT(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&mn[e[1]]*17,g:255&mn[e[2]]*17,b:255&mn[e[3]]*17,a:t===5?mn[e[4]]*17:255}:(t===7||t===9)&&(n={r:mn[e[1]]<<4|mn[e[2]],g:mn[e[3]]<<4|mn[e[4]],b:mn[e[5]]<<4|mn[e[6]],a:t===9?mn[e[7]]<<4|mn[e[8]]:255})),n}const CT=(e,t)=>e<255?t(e):"";function ET(e){var t=ST(e)?kT:wT;return e?"#"+t(e.r)+t(e.g)+t(e.b)+CT(e.a,t):void 0}const TT=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function J2(e,t,n){const r=t*Math.min(n,1-n),a=(i,s=(i+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[a(0),a(8),a(4)]}function OT(e,t,n){const r=(a,i=(a+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function MT(e,t,n){const r=J2(e,1,.5);let a;for(t+n>1&&(a=1/(t+n),t*=a,n*=a),a=0;a<3;a++)r[a]*=1-t-n,r[a]+=t;return r}function NT(e,t,n,r,a){return e===a?(t-n)/r+(t<n?6:0):t===a?(n-e)/r+2:(e-t)/r+4}function vp(e){const n=e.r/255,r=e.g/255,a=e.b/255,i=Math.max(n,r,a),s=Math.min(n,r,a),l=(i+s)/2;let c,u,d;return i!==s&&(d=i-s,u=l>.5?d/(2-i-s):d/(i+s),c=NT(n,r,a,d,i),c=c*60+.5),[c|0,u||0,l]}function _p(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(qr)}function yp(e,t,n){return _p(J2,e,t,n)}function DT(e,t,n){return _p(MT,e,t,n)}function PT(e,t,n){return _p(OT,e,t,n)}function Z2(e){return(e%360+360)%360}function AT(e){const t=TT.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?fs(+t[5]):qr(+t[5]));const a=Z2(+t[2]),i=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=DT(a,i,s):t[1]==="hsv"?r=PT(a,i,s):r=yp(a,i,s),{r:r[0],g:r[1],b:r[2],a:n}}function IT(e,t){var n=vp(e);n[0]=Z2(n[0]+t),n=yp(n),e.r=n[0],e.g=n[1],e.b=n[2]}function LT(e){if(!e)return;const t=vp(e),n=t[0],r=R1(t[1]),a=R1(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${a}%, ${ur(e.a)})`:`hsl(${n}, ${r}%, ${a}%)`}const B1={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},V1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function RT(){const e={},t=Object.keys(V1),n=Object.keys(B1);let r,a,i,s,l;for(r=0;r<t.length;r++){for(s=l=t[r],a=0;a<n.length;a++)i=n[a],l=l.replace(i,B1[i]);i=parseInt(V1[s],16),e[l]=[i>>16&255,i>>8&255,i&255]}return e}let ol;function BT(e){ol||(ol=RT(),ol.transparent=[0,0,0,0]);const t=ol[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const VT=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function $T(e){const t=VT.exec(e);let n=255,r,a,i;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?fs(s):zr(s*255,0,255)}return r=+t[1],a=+t[3],i=+t[5],r=255&(t[2]?fs(r):zr(r,0,255)),a=255&(t[4]?fs(a):zr(a,0,255)),i=255&(t[6]?fs(i):zr(i,0,255)),{r,g:a,b:i,a:n}}}function FT(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ur(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Vu=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ai=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function zT(e,t,n){const r=ai(ur(e.r)),a=ai(ur(e.g)),i=ai(ur(e.b));return{r:qr(Vu(r+n*(ai(ur(t.r))-r))),g:qr(Vu(a+n*(ai(ur(t.g))-a))),b:qr(Vu(i+n*(ai(ur(t.b))-i))),a:e.a+n*(t.a-e.a)}}function ll(e,t,n){if(e){let r=vp(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=yp(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Q2(e,t){return e&&Object.assign(t||{},e)}function $1(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=qr(e[3]))):(t=Q2(e,{r:0,g:0,b:0,a:1}),t.a=qr(t.a)),t}function jT(e){return e.charAt(0)==="r"?$T(e):AT(e)}class Zs{constructor(t){if(t instanceof Zs)return t;const n=typeof t;let r;n==="object"?r=$1(t):n==="string"&&(r=xT(t)||BT(t)||jT(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Q2(this._rgb);return t&&(t.a=ur(t.a)),t}set rgb(t){this._rgb=$1(t)}rgbString(){return this._valid?FT(this._rgb):void 0}hexString(){return this._valid?ET(this._rgb):void 0}hslString(){return this._valid?LT(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,a=t.rgb;let i;const s=n===i?.5:n,l=2*s-1,c=r.a-a.a,u=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;i=1-u,r.r=255&u*r.r+i*a.r+.5,r.g=255&u*r.g+i*a.g+.5,r.b=255&u*r.b+i*a.b+.5,r.a=s*r.a+(1-s)*a.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=zT(this._rgb,t._rgb,n)),this}clone(){return new Zs(this.rgb)}alpha(t){return this._rgb.a=qr(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=xo(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ll(this._rgb,2,t),this}darken(t){return ll(this._rgb,2,-t),this}saturate(t){return ll(this._rgb,1,t),this}desaturate(t){return ll(this._rgb,1,-t),this}rotate(t){return IT(this._rgb,t),this}}/*!
|
|
816
|
+
* Chart.js v4.3.0
|
|
817
|
+
* https://www.chartjs.org
|
|
818
|
+
* (c) 2023 Chart.js Contributors
|
|
819
|
+
* Released under the MIT License
|
|
820
|
+
*/function rr(){}const HT=(()=>{let e=0;return()=>e++})();function be(e){return e===null||typeof e>"u"}function Ne(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function he(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function rt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function en(e,t){return rt(e)?e:t}function le(e,t){return typeof e>"u"?t:e}const WT=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,e_=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ie(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Le(e,t,n,r){let a,i,s;if(Ne(e))if(i=e.length,r)for(a=i-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<i;a++)t.call(n,e[a],a);else if(he(e))for(s=Object.keys(e),i=s.length,a=0;a<i;a++)t.call(n,e[s[a]],s[a])}function tc(e,t){let n,r,a,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],i=t[n],a.datasetIndex!==i.datasetIndex||a.index!==i.index)return!1;return!0}function nc(e){if(Ne(e))return e.map(nc);if(he(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let a=0;for(;a<r;++a)t[n[a]]=nc(e[n[a]]);return t}return e}function t_(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function UT(e,t,n,r){if(!t_(e))return;const a=t[e],i=n[e];he(a)&&he(i)?Xn(a,i,r):t[e]=nc(i)}function Xn(e,t,n){const r=Ne(t)?t:[t],a=r.length;if(!he(e))return e;n=n||{};const i=n.merger||UT;let s;for(let l=0;l<a;++l){if(s=r[l],!he(s))continue;const c=Object.keys(s);for(let u=0,d=c.length;u<d;++u)i(c[u],e,s,n)}return e}function Cs(e,t){return Xn(e,t,{merger:YT})}function YT(e,t,n){if(!t_(e))return;const r=t[e],a=n[e];he(r)&&he(a)?Cs(r,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=nc(a))}const F1={"":e=>e,x:e=>e.x,y:e=>e.y};function qT(e){const t=e.split("."),n=[];let r="";for(const a of t)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function GT(e){const t=qT(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function ta(e,t){return(F1[t]||(F1[t]=GT(t)))(e)}function bp(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Zt=e=>typeof e<"u",Kt=e=>typeof e=="function",z1=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function XT(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ee=Math.PI,We=2*Ee,KT=We+Ee,rc=Number.POSITIVE_INFINITY,kp=Ee/180,Ue=Ee/2,gn=Ee/4,ac=Ee*2/3,jr=Math.log10,Yn=Math.sign;function Es(e,t,n){return Math.abs(e-t)<n}function j1(e){const t=Math.round(e);e=Es(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(jr(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function JT(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((a,i)=>a-i).pop(),t}function na(e){return!isNaN(parseFloat(e))&&isFinite(e)}function ZT(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function n_(e,t,n){let r,a,i;for(r=0,a=e.length;r<a;r++)i=e[r][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function mt(e){return e*(Ee/180)}function Vc(e){return e*(180/Ee)}function H1(e){if(!rt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function r_(e,t){const n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*Ee&&(i+=We),{angle:i,distance:a}}function Di(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function QT(e,t){return(e-t+KT)%We-Ee}function nn(e){return(e%We+We)%We}function Qs(e,t,n,r){const a=nn(e),i=nn(t),s=nn(n),l=nn(i-a),c=nn(s-a),u=nn(a-i),d=nn(a-s);return a===i||a===s||r&&i===s||l>c&&u<d}function Ct(e,t,n){return Math.max(t,Math.min(n,e))}function eO(e){return Ct(e,-32768,32767)}function fr(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function wp(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,a=0,i;for(;r-a>1;)i=a+r>>1,n(i)?a=i:r=i;return{lo:a,hi:r}}const pr=(e,t,n,r)=>wp(e,n,r?a=>{const i=e[a][t];return i<n||i===n&&e[a+1][t]===n}:a=>e[a][t]<n),tO=(e,t,n)=>wp(e,n,r=>e[r][t]>=n);function nO(e,t,n){let r=0,a=e.length;for(;r<a&&e[r]<t;)r++;for(;a>r&&e[a-1]>n;)a--;return r>0||a<e.length?e.slice(r,a):e}const a_=["push","pop","shift","splice","unshift"];function rO(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),a_.forEach(n=>{const r="_onData"+bp(n),a=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const s=a.apply(this,i);return e._chartjs.listeners.forEach(l=>{typeof l[r]=="function"&&l[r](...i)}),s}})})}function W1(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,a=r.indexOf(t);a!==-1&&r.splice(a,1),!(r.length>0)&&(a_.forEach(i=>{delete e[i]}),delete e._chartjs)}function i_(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const s_=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function o_(e,t){let n=[],r=!1;return function(...a){n=a,r||(r=!0,s_.call(window,()=>{r=!1,e.apply(t,n)}))}}function aO(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Sp=e=>e==="start"?"left":e==="end"?"right":"center",Mt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,iO=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function l_(e,t,n){const r=t.length;let a=0,i=r;if(e._sorted){const{iScale:s,_parsed:l}=e,c=s.axis,{min:u,max:d,minDefined:f,maxDefined:p}=s.getUserBounds();f&&(a=Ct(Math.min(pr(l,s.axis,u).lo,n?r:pr(t,c,s.getPixelForValue(u)).lo),0,r-1)),p?i=Ct(Math.max(pr(l,s.axis,d,!0).hi+1,n?0:pr(t,c,s.getPixelForValue(d),!0).hi+1),a,r)-a:i=r-a}return{start:a,count:i}}function c_(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,a={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=a,!0;const i=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,a),i}const cl=e=>e===0||e===1,U1=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*We/n)),Y1=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*We/n)+1,Ts={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Ue)+1,easeOutSine:e=>Math.sin(e*Ue),easeInOutSine:e=>-.5*(Math.cos(Ee*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>cl(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>cl(e)?e:U1(e,.075,.3),easeOutElastic:e=>cl(e)?e:Y1(e,.075,.3),easeInOutElastic(e){return cl(e)?e:e<.5?.5*U1(e*2,.1125,.45):.5+.5*Y1(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ts.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ts.easeInBounce(e*2)*.5:Ts.easeOutBounce(e*2-1)*.5+.5};function xp(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function q1(e){return xp(e)?e:new Zs(e)}function $u(e){return xp(e)?e:new Zs(e).saturate(.5).darken(.1).hexString()}const sO=["x","y","borderWidth","radius","tension"],oO=["color","borderColor","backgroundColor"];function lO(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:oO},numbers:{type:"number",properties:sO}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function cO(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const G1=new Map;function uO(e,t){t=t||{};const n=e+JSON.stringify(t);let r=G1.get(n);return r||(r=new Intl.NumberFormat(e,t),G1.set(n,r)),r}function Co(e,t,n){return uO(t,n).format(e)}const u_={values(e){return Ne(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let a,i=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(a="scientific"),i=dO(e,n)}const s=jr(Math.abs(i)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:a,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Co(e,r,c)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(jr(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?u_.numeric.call(this,e,t,n):""}};function dO(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var $c={formatters:u_};function fO(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:$c.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Fa=Object.create(null),$d=Object.create(null);function Os(e,t){if(!t)return e;const n=t.split(".");for(let r=0,a=n.length;r<a;++r){const i=n[r];e=e[i]||(e[i]=Object.create(null))}return e}function Fu(e,t,n){return typeof t=="string"?Xn(Os(e,t),n):Xn(Os(e,""),t)}class pO{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,a)=>$u(a.backgroundColor),this.hoverBorderColor=(r,a)=>$u(a.borderColor),this.hoverColor=(r,a)=>$u(a.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Fu(this,t,n)}get(t){return Os(this,t)}describe(t,n){return Fu($d,t,n)}override(t,n){return Fu(Fa,t,n)}route(t,n,r,a){const i=Os(this,t),s=Os(this,r),l="_"+n;Object.defineProperties(i,{[l]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const c=this[l],u=s[a];return he(c)?Object.assign({},u,c):le(c,u)},set(c){this[l]=c}}})}apply(t){t.forEach(n=>n(this))}}var at=new pO({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[lO,cO,fO]);function hO(e){return!e||be(e.size)||be(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ic(e,t,n,r,a){let i=t[a];return i||(i=t[a]=e.measureText(a).width,n.push(a)),i>r&&(r=i),r}function mO(e,t,n,r){r=r||{};let a=r.data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const l=n.length;let c,u,d,f,p;for(c=0;c<l;c++)if(f=n[c],f!=null&&!Ne(f))s=ic(e,a,i,s,f);else if(Ne(f))for(u=0,d=f.length;u<d;u++)p=f[u],p!=null&&!Ne(p)&&(s=ic(e,a,i,s,p));e.restore();const h=i.length/2;if(h>n.length){for(c=0;c<h;c++)delete a[i[c]];i.splice(0,h)}return s}function ma(e,t,n){const r=e.currentDevicePixelRatio,a=n!==0?Math.max(n/2,.5):0;return Math.round((t-a)*r)/r+a}function X1(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Fd(e,t,n,r){d_(e,t,n,r,null)}function d_(e,t,n,r,a){let i,s,l,c,u,d,f,p;const h=t.pointStyle,g=t.rotation,v=t.radius;let b=(g||0)*kp;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(v)||v<=0)){switch(e.beginPath(),h){default:a?e.ellipse(n,r,a/2,v,0,0,We):e.arc(n,r,v,0,We),e.closePath();break;case"triangle":d=a?a/2:v,e.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*v),b+=ac,e.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*v),b+=ac,e.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*v),e.closePath();break;case"rectRounded":u=v*.516,c=v-u,s=Math.cos(b+gn)*c,f=Math.cos(b+gn)*(a?a/2-u:c),l=Math.sin(b+gn)*c,p=Math.sin(b+gn)*(a?a/2-u:c),e.arc(n-f,r-l,u,b-Ee,b-Ue),e.arc(n+p,r-s,u,b-Ue,b),e.arc(n+f,r+l,u,b,b+Ue),e.arc(n-p,r+s,u,b+Ue,b+Ee),e.closePath();break;case"rect":if(!g){c=Math.SQRT1_2*v,d=a?a/2:c,e.rect(n-d,r-c,2*d,2*c);break}b+=gn;case"rectRot":f=Math.cos(b)*(a?a/2:v),s=Math.cos(b)*v,l=Math.sin(b)*v,p=Math.sin(b)*(a?a/2:v),e.moveTo(n-f,r-l),e.lineTo(n+p,r-s),e.lineTo(n+f,r+l),e.lineTo(n-p,r+s),e.closePath();break;case"crossRot":b+=gn;case"cross":f=Math.cos(b)*(a?a/2:v),s=Math.cos(b)*v,l=Math.sin(b)*v,p=Math.sin(b)*(a?a/2:v),e.moveTo(n-f,r-l),e.lineTo(n+f,r+l),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s);break;case"star":f=Math.cos(b)*(a?a/2:v),s=Math.cos(b)*v,l=Math.sin(b)*v,p=Math.sin(b)*(a?a/2:v),e.moveTo(n-f,r-l),e.lineTo(n+f,r+l),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s),b+=gn,f=Math.cos(b)*(a?a/2:v),s=Math.cos(b)*v,l=Math.sin(b)*v,p=Math.sin(b)*(a?a/2:v),e.moveTo(n-f,r-l),e.lineTo(n+f,r+l),e.moveTo(n+p,r-s),e.lineTo(n-p,r+s);break;case"line":s=a?a/2:Math.cos(b)*v,l=Math.sin(b)*v,e.moveTo(n-s,r-l),e.lineTo(n+s,r+l);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(a?a/2:v),r+Math.sin(b)*v);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function hr(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Eo(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function To(e){e.restore()}function gO(e,t,n,r,a){if(!t)return e.lineTo(n.x,n.y);if(a==="middle"){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else a==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function vO(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function _O(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),be(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function yO(e,t,n,r,a){if(a.strikethrough||a.underline){const i=e.measureText(r),s=t-i.actualBoundingBoxLeft,l=t+i.actualBoundingBoxRight,c=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,d=a.strikethrough?(c+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(s,d),e.lineTo(l,d),e.stroke()}}function bO(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function za(e,t,n,r,a,i={}){const s=Ne(t)?t:[t],l=i.strokeWidth>0&&i.strokeColor!=="";let c,u;for(e.save(),e.font=a.string,_O(e,i),c=0;c<s.length;++c)u=s[c],i.backdrop&&bO(e,i.backdrop),l&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),be(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(u,n,r,i.maxWidth)),e.fillText(u,n,r,i.maxWidth),yO(e,n,r,u,i),r+=Number(a.lineHeight);e.restore()}function Pi(e,t){const{x:n,y:r,w:a,h:i,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-Ue,Ee,!0),e.lineTo(n,r+i-s.bottomLeft),e.arc(n+s.bottomLeft,r+i-s.bottomLeft,s.bottomLeft,Ee,Ue,!0),e.lineTo(n+a-s.bottomRight,r+i),e.arc(n+a-s.bottomRight,r+i-s.bottomRight,s.bottomRight,Ue,0,!0),e.lineTo(n+a,r+s.topRight),e.arc(n+a-s.topRight,r+s.topRight,s.topRight,0,-Ue,!0),e.lineTo(n+s.topLeft,r)}const kO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,wO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function SO(e,t){const n=(""+e).match(kO);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const xO=e=>+e||0;function Cp(e,t){const n={},r=he(t),a=r?Object.keys(t):t,i=he(e)?r?s=>le(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of a)n[s]=xO(i(s));return n}function f_(e){return Cp(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Gr(e){return Cp(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ht(e){const t=f_(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function it(e,t){e=e||{},t=t||at.font;let n=le(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=le(e.style,t.style);r&&!(""+r).match(wO)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const a={family:le(e.family,t.family),lineHeight:SO(le(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:le(e.weight,t.weight),string:""};return a.string=hO(a),a}function Ge(e,t,n,r){let a=!0,i,s,l;for(i=0,s=e.length;i<s;++i)if(l=e[i],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),a=!1),n!==void 0&&Ne(l)&&(l=l[n%l.length],a=!1),l!==void 0))return r&&!a&&(r.cacheable=!1),l}function CO(e,t,n){const{min:r,max:a}=e,i=e_(t,(a-r)/2),s=(l,c)=>n&&l===0?0:l+c;return{min:s(r,-Math.abs(i)),max:s(a,i)}}function da(e,t){return Object.assign(Object.create(e),t)}function Ep(e,t=[""],n,r,a=()=>e[0]){const i=n||e;typeof r>"u"&&(r=g_("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:r,_getTarget:a,override:l=>Ep([l,...e],t,i,r)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete e[0][c],!0},get(l,c){return h_(l,c,()=>AO(c,t,e,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(l,c){return J1(l).includes(c)},ownKeys(l){return J1(l)},set(l,c,u){const d=l._storage||(l._storage=a());return l[c]=d[c]=u,delete l._keys,!0}})}function Ai(e,t,n,r){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:p_(e,r),setContext:i=>Ai(e,i,n,r),override:i=>Ai(e.override(i),t,n,r)};return new Proxy(a,{deleteProperty(i,s){return delete i[s],delete e[s],!0},get(i,s,l){return h_(i,s,()=>TO(i,s,l))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(i,s,l){return e[s]=l,delete i[s],!0}})}function p_(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:n,indexable:r,isScriptable:Kt(n)?n:()=>n,isIndexable:Kt(r)?r:()=>r}}const EO=(e,t)=>e?e+bp(t):t,Tp=(e,t)=>he(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function h_(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function TO(e,t,n){const{_proxy:r,_context:a,_subProxy:i,_descriptors:s}=e;let l=r[t];return Kt(l)&&s.isScriptable(t)&&(l=OO(t,l,e,n)),Ne(l)&&l.length&&(l=MO(t,l,e,s.isIndexable)),Tp(t,l)&&(l=Ai(l,a,i&&i[t],s)),l}function OO(e,t,n,r){const{_proxy:a,_context:i,_subProxy:s,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let c=t(i,s||r);return l.delete(e),Tp(e,c)&&(c=Op(a._scopes,a,e,c)),c}function MO(e,t,n,r){const{_proxy:a,_context:i,_subProxy:s,_descriptors:l}=n;if(typeof i.index<"u"&&r(e))return t[i.index%t.length];if(he(t[0])){const c=t,u=a._scopes.filter(d=>d!==c);t=[];for(const d of c){const f=Op(u,a,e,d);t.push(Ai(f,i,s&&s[e],l))}}return t}function m_(e,t,n){return Kt(e)?e(t,n):e}const NO=(e,t)=>e===!0?t:typeof e=="string"?ta(t,e):void 0;function DO(e,t,n,r,a){for(const i of t){const s=NO(n,i);if(s){e.add(s);const l=m_(s._fallback,n,a);if(typeof l<"u"&&l!==n&&l!==r)return l}else if(s===!1&&typeof r<"u"&&n!==r)return null}return!1}function Op(e,t,n,r){const a=t._rootScopes,i=m_(t._fallback,n,r),s=[...e,...a],l=new Set;l.add(r);let c=K1(l,s,n,i||n,r);return c===null||typeof i<"u"&&i!==n&&(c=K1(l,s,i,c,r),c===null)?!1:Ep(Array.from(l),[""],a,i,()=>PO(t,n,r))}function K1(e,t,n,r,a){for(;n;)n=DO(e,t,n,r,a);return n}function PO(e,t,n){const r=e._getTarget();t in r||(r[t]={});const a=r[t];return Ne(a)&&he(n)?n:a||{}}function AO(e,t,n,r){let a;for(const i of t)if(a=g_(EO(i,e),n),typeof a<"u")return Tp(e,a)?Op(n,r,e,a):a}function g_(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function J1(e){let t=e._keys;return t||(t=e._keys=IO(e._scopes)),t}function IO(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(a=>!a.startsWith("_")))t.add(r);return Array.from(t)}function v_(e,t,n,r){const{iScale:a}=e,{key:i="r"}=this._parsing,s=new Array(r);let l,c,u,d;for(l=0,c=r;l<c;++l)u=l+n,d=t[u],s[l]={r:a.parse(ta(d,i),u)};return s}const LO=Number.EPSILON||1e-14,Ii=(e,t)=>t<e.length&&!e[t].skip&&e[t],__=e=>e==="x"?"y":"x";function RO(e,t,n,r){const a=e.skip?t:e,i=t,s=n.skip?t:n,l=Di(i,a),c=Di(s,i);let u=l/(l+c),d=c/(l+c);u=isNaN(u)?0:u,d=isNaN(d)?0:d;const f=r*u,p=r*d;return{previous:{x:i.x-f*(s.x-a.x),y:i.y-f*(s.y-a.y)},next:{x:i.x+p*(s.x-a.x),y:i.y+p*(s.y-a.y)}}}function BO(e,t,n){const r=e.length;let a,i,s,l,c,u=Ii(e,0);for(let d=0;d<r-1;++d)if(c=u,u=Ii(e,d+1),!(!c||!u)){if(Es(t[d],0,LO)){n[d]=n[d+1]=0;continue}a=n[d]/t[d],i=n[d+1]/t[d],l=Math.pow(a,2)+Math.pow(i,2),!(l<=9)&&(s=3/Math.sqrt(l),n[d]=a*s*t[d],n[d+1]=i*s*t[d])}}function VO(e,t,n="x"){const r=__(n),a=e.length;let i,s,l,c=Ii(e,0);for(let u=0;u<a;++u){if(s=l,l=c,c=Ii(e,u+1),!l)continue;const d=l[n],f=l[r];s&&(i=(d-s[n])/3,l[`cp1${n}`]=d-i,l[`cp1${r}`]=f-i*t[u]),c&&(i=(c[n]-d)/3,l[`cp2${n}`]=d+i,l[`cp2${r}`]=f+i*t[u])}}function $O(e,t="x"){const n=__(t),r=e.length,a=Array(r).fill(0),i=Array(r);let s,l,c,u=Ii(e,0);for(s=0;s<r;++s)if(l=c,c=u,u=Ii(e,s+1),!!c){if(u){const d=u[t]-c[t];a[s]=d!==0?(u[n]-c[n])/d:0}i[s]=l?u?Yn(a[s-1])!==Yn(a[s])?0:(a[s-1]+a[s])/2:a[s-1]:a[s]}BO(e,a,i),VO(e,i,t)}function ul(e,t,n){return Math.max(Math.min(e,n),t)}function FO(e,t){let n,r,a,i,s,l=hr(e[0],t);for(n=0,r=e.length;n<r;++n)s=i,i=l,l=n<r-1&&hr(e[n+1],t),i&&(a=e[n],s&&(a.cp1x=ul(a.cp1x,t.left,t.right),a.cp1y=ul(a.cp1y,t.top,t.bottom)),l&&(a.cp2x=ul(a.cp2x,t.left,t.right),a.cp2y=ul(a.cp2y,t.top,t.bottom)))}function zO(e,t,n,r,a){let i,s,l,c;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")$O(e,a);else{let u=r?e[e.length-1]:e[0];for(i=0,s=e.length;i<s;++i)l=e[i],c=RO(u,l,e[Math.min(i+1,s-(r?0:1))%s],t.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,u=l}t.capBezierPoints&&FO(e,n)}function y_(){return typeof window<"u"&&typeof document<"u"}function Mp(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function sc(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Fc=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function jO(e,t){return Fc(e).getPropertyValue(t)}const HO=["top","right","bottom","left"];function Da(e,t,n){const r={};n=n?"-"+n:"";for(let a=0;a<4;a++){const i=HO[a];r[i]=parseFloat(e[t+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const WO=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function UO(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:a,offsetY:i}=r;let s=!1,l,c;if(WO(a,i,e.target))l=a,c=i;else{const u=t.getBoundingClientRect();l=r.clientX-u.left,c=r.clientY-u.top,s=!0}return{x:l,y:c,box:s}}function ba(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,a=Fc(n),i=a.boxSizing==="border-box",s=Da(a,"padding"),l=Da(a,"border","width"),{x:c,y:u,box:d}=UO(e,n),f=s.left+(d&&l.left),p=s.top+(d&&l.top);let{width:h,height:g}=t;return i&&(h-=s.width+l.width,g-=s.height+l.height),{x:Math.round((c-f)/h*n.width/r),y:Math.round((u-p)/g*n.height/r)}}function YO(e,t,n){let r,a;if(t===void 0||n===void 0){const i=Mp(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const s=i.getBoundingClientRect(),l=Fc(i),c=Da(l,"border","width"),u=Da(l,"padding");t=s.width-u.width-c.width,n=s.height-u.height-c.height,r=sc(l.maxWidth,i,"clientWidth"),a=sc(l.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:r||rc,maxHeight:a||rc}}const dl=e=>Math.round(e*10)/10;function qO(e,t,n,r){const a=Fc(e),i=Da(a,"margin"),s=sc(a.maxWidth,e,"clientWidth")||rc,l=sc(a.maxHeight,e,"clientHeight")||rc,c=YO(e,t,n);let{width:u,height:d}=c;if(a.boxSizing==="content-box"){const p=Da(a,"border","width"),h=Da(a,"padding");u-=h.width+p.width,d-=h.height+p.height}return u=Math.max(0,u-i.width),d=Math.max(0,r?u/r:d-i.height),u=dl(Math.min(u,s,c.maxWidth)),d=dl(Math.min(d,l,c.maxHeight)),u&&!d&&(d=dl(u/2)),(t!==void 0||n!==void 0)&&r&&c.height&&d>c.height&&(d=c.height,u=dl(Math.floor(d*r))),{width:u,height:d}}function Z1(e,t,n){const r=t||1,a=Math.floor(e.height*r),i=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==a||s.width!==i?(e.currentDevicePixelRatio=r,s.height=a,s.width=i,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const GO=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function Q1(e,t){const n=jO(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function ka(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function XO(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function KO(e,t,n,r){const a={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},s=ka(e,a,n),l=ka(a,i,n),c=ka(i,t,n),u=ka(s,l,n),d=ka(l,c,n);return ka(u,d,n)}const JO=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},ZO=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function gi(e,t,n){return e?JO(t,n):ZO()}function b_(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function k_(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function w_(e){return e==="angle"?{between:Qs,compare:QT,normalize:nn}:{between:fr,compare:(t,n)=>t-n,normalize:t=>t}}function eg({start:e,end:t,count:n,loop:r,style:a}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:a}}function QO(e,t,n){const{property:r,start:a,end:i}=n,{between:s,normalize:l}=w_(r),c=t.length;let{start:u,end:d,loop:f}=e,p,h;if(f){for(u+=c,d+=c,p=0,h=c;p<h&&s(l(t[u%c][r]),a,i);++p)u--,d--;u%=c,d%=c}return d<u&&(d+=c),{start:u,end:d,loop:f,style:e.style}}function S_(e,t,n){if(!n)return[e];const{property:r,start:a,end:i}=n,s=t.length,{compare:l,between:c,normalize:u}=w_(r),{start:d,end:f,loop:p,style:h}=QO(e,t,n),g=[];let v=!1,b=null,m,y,k;const _=()=>c(a,k,m)&&l(a,k)!==0,w=()=>l(i,m)===0||c(i,k,m),S=()=>v||_(),C=()=>!v||w();for(let E=d,O=d;E<=f;++E)y=t[E%s],!y.skip&&(m=u(y[r]),m!==k&&(v=c(m,a,i),b===null&&S()&&(b=l(m,a)===0?E:O),b!==null&&C()&&(g.push(eg({start:b,end:E,loop:p,count:s,style:h})),b=null),O=E,k=m));return b!==null&&g.push(eg({start:b,end:f,loop:p,count:s,style:h})),g}function x_(e,t){const n=[],r=e.segments;for(let a=0;a<r.length;a++){const i=S_(r[a],e.points,t);i.length&&n.push(...i)}return n}function eM(e,t,n,r){let a=0,i=t-1;if(n&&!r)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,n&&(i+=a);i>a&&e[i%t].skip;)i--;return i%=t,{start:a,end:i}}function tM(e,t,n,r){const a=e.length,i=[];let s=t,l=e[t],c;for(c=t+1;c<=n;++c){const u=e[c%a];u.skip||u.stop?l.skip||(r=!1,i.push({start:t%a,end:(c-1)%a,loop:r}),t=s=u.stop?c:null):(s=c,l.skip&&(t=c)),l=u}return s!==null&&i.push({start:t%a,end:s%a,loop:r}),i}function nM(e,t){const n=e.points,r=e.options.spanGaps,a=n.length;if(!a)return[];const i=!!e._loop,{start:s,end:l}=eM(n,a,i,r);if(r===!0)return tg(e,[{start:s,end:l,loop:i}],n,t);const c=l<s?l+a:l,u=!!e._fullLoop&&s===0&&l===a-1;return tg(e,tM(n,s,c,u),n,t)}function tg(e,t,n,r){return!r||!r.setContext||!n?t:rM(e,t,n,r)}function rM(e,t,n,r){const a=e._chart.getContext(),i=ng(e.options),{_datasetIndex:s,options:{spanGaps:l}}=e,c=n.length,u=[];let d=i,f=t[0].start,p=f;function h(g,v,b,m){const y=l?-1:1;if(g!==v){for(g+=c;n[g%c].skip;)g-=y;for(;n[v%c].skip;)v+=y;g%c!==v%c&&(u.push({start:g%c,end:v%c,loop:b,style:m}),d=m,f=v%c)}}for(const g of t){f=l?f:g.start;let v=n[f%c],b;for(p=f+1;p<=g.end;p++){const m=n[p%c];b=ng(r.setContext(da(a,{type:"segment",p0:v,p1:m,p0DataIndex:(p-1)%c,p1DataIndex:p%c,datasetIndex:s}))),aM(b,d)&&h(f,p-1,g.loop,d),v=m,d=b}f<p-1&&h(f,p-1,g.loop,d)}return u}function ng(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function aM(e,t){if(!t)return!1;const n=[],r=function(a,i){return xp(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(e,r)!==JSON.stringify(t,r)}/*!
|
|
821
|
+
* Chart.js v4.3.0
|
|
822
|
+
* https://www.chartjs.org
|
|
823
|
+
* (c) 2023 Chart.js Contributors
|
|
824
|
+
* Released under the MIT License
|
|
825
|
+
*/class iM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,a){const i=n.listeners[a],s=n.duration;i.forEach(l=>l({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=s_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,l=!1,c;for(;s>=0;--s)c=i[s],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(t),l=!0):(i[s]=i[i.length-1],i.pop());l&&(a.draw(),this._notify(a,r,t,"progress")),i.length||(r.running=!1,this._notify(a,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var sr=new iM;const rg="transparent",sM={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=q1(e||rg),a=r.valid&&q1(t||rg);return a&&a.valid?a.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class oM{constructor(t,n,r,a){const i=n[r];a=Ge([t.to,a,i,t.from]);const s=Ge([t.from,i,a]);this._active=!0,this._fn=t.fn||sM[t.type||typeof s],this._easing=Ts[t.easing]||Ts.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=a,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const a=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Ge([t.to,n,a,t.from]),this._from=Ge([t.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,a=this._prop,i=this._from,s=this._loop,l=this._to;let c;if(this._active=i!==l&&(s||n<r),!this._active){this._target[a]=l,this._notify(!0);return}if(n<0){this._target[a]=i;return}c=n/r%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[a]=this._fn(i,l,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][n]()}}class Np{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!he(t))return;const n=Object.keys(at.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(a=>{const i=t[a];if(!he(i))return;const s={};for(const l of n)s[l]=i[l];(Ne(i.properties)&&i.properties||[a]).forEach(l=>{(l===a||!r.has(l))&&r.set(l,s)})})}_animateOptions(t,n){const r=n.options,a=cM(t,r);if(!a)return[];const i=this._createAnimations(a,r);return r.$shared&&lM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,a=[],i=t.$animations||(t.$animations={}),s=Object.keys(n),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const u=s[c];if(u.charAt(0)==="$")continue;if(u==="options"){a.push(...this._animateOptions(t,n));continue}const d=n[u];let f=i[u];const p=r.get(u);if(f)if(p&&f.active()){f.update(p,d,l);continue}else f.cancel();if(!p||!p.duration){t[u]=d;continue}i[u]=f=new oM(p,t,u,d),a.push(f)}return a}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return sr.add(this._chart,r),!0}}function lM(e,t){const n=[],r=Object.keys(t);for(let a=0;a<r.length;a++){const i=e[r[a]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function cM(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function ag(e,t){const n=e&&e.options||{},r=n.reverse,a=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:r?i:a,end:r?a:i}}function uM(e,t,n){if(n===!1)return!1;const r=ag(e,n),a=ag(t,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function dM(e){let t,n,r,a;return he(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a,disabled:e===!1}}function C_(e,t){const n=[],r=e._getSortedDatasetMetas(t);let a,i;for(a=0,i=r.length;a<i;++a)n.push(r[a].index);return n}function ig(e,t,n,r={}){const a=e.keys,i=r.mode==="single";let s,l,c,u;if(t!==null){for(s=0,l=a.length;s<l;++s){if(c=+a[s],c===n){if(r.all)continue;break}u=e.values[c],rt(u)&&(i||t===0||Yn(t)===Yn(u))&&(t+=u)}return t}}function fM(e){const t=Object.keys(e),n=new Array(t.length);let r,a,i;for(r=0,a=t.length;r<a;++r)i=t[r],n[r]={x:i,y:e[i]};return n}function sg(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function pM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function hM(e){const{min:t,max:n,minDefined:r,maxDefined:a}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function mM(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function og(e,t,n,r){for(const a of t.getMatchingVisibleMetas(r).reverse()){const i=e[a.index];if(n&&i>0||!n&&i<0)return a.index}return null}function lg(e,t){const{chart:n,_cachedMeta:r}=e,a=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:l}=r,c=i.axis,u=s.axis,d=pM(i,s,r),f=t.length;let p;for(let h=0;h<f;++h){const g=t[h],{[c]:v,[u]:b}=g,m=g._stacks||(g._stacks={});p=m[u]=mM(a,d,v),p[l]=b,p._top=og(p,s,!0,r.type),p._bottom=og(p,s,!1,r.type);const y=p._visualValues||(p._visualValues={});y[l]=b}}function zu(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function gM(e,t){return da(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function vM(e,t,n){return da(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ts(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const a of t){const i=a._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const ju=e=>e==="reset"||e==="none",cg=(e,t)=>t?e:Object.assign({},e),_M=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:C_(n,!0),values:null};class Nn{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=sg(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ts(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),a=(f,p,h,g)=>f==="x"?p:f==="r"?g:h,i=n.xAxisID=le(r.xAxisID,zu(t,"x")),s=n.yAxisID=le(r.yAxisID,zu(t,"y")),l=n.rAxisID=le(r.rAxisID,zu(t,"r")),c=n.indexAxis,u=n.iAxisID=a(c,i,s,l),d=n.vAxisID=a(c,s,i,l);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&W1(this._data,this),t._stacked&&ts(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(he(n))this._data=fM(n);else if(r!==n){if(r){W1(r,this);const a=this._cachedMeta;ts(a),a._parsed=[]}n&&Object.isExtensible(n)&&rO(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const i=n._stacked;n._stacked=sg(n.vScale,n),n.stack!==r.stack&&(a=!0,ts(n),n.stack=r.stack),this._resyncElements(t),(a||i!==n._stacked)&&lg(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:a}=this,{iScale:i,_stacked:s}=r,l=i.axis;let c=t===0&&n===a.length?!0:r._sorted,u=t>0&&r._parsed[t-1],d,f,p;if(this._parsing===!1)r._parsed=a,r._sorted=!0,p=a;else{Ne(a[t])?p=this.parseArrayData(r,a,t,n):he(a[t])?p=this.parseObjectData(r,a,t,n):p=this.parsePrimitiveData(r,a,t,n);const h=()=>f[l]===null||u&&f[l]<u[l];for(d=0;d<n;++d)r._parsed[d+t]=f=p[d],c&&(h()&&(c=!1),u=f);r._sorted=c}s&&lg(this,p)}parsePrimitiveData(t,n,r,a){const{iScale:i,vScale:s}=t,l=i.axis,c=s.axis,u=i.getLabels(),d=i===s,f=new Array(a);let p,h,g;for(p=0,h=a;p<h;++p)g=p+r,f[p]={[l]:d||i.parse(u[g],g),[c]:s.parse(n[g],g)};return f}parseArrayData(t,n,r,a){const{xScale:i,yScale:s}=t,l=new Array(a);let c,u,d,f;for(c=0,u=a;c<u;++c)d=c+r,f=n[d],l[c]={x:i.parse(f[0],d),y:s.parse(f[1],d)};return l}parseObjectData(t,n,r,a){const{xScale:i,yScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=new Array(a);let d,f,p,h;for(d=0,f=a;d<f;++d)p=d+r,h=n[p],u[d]={x:i.parse(ta(h,l),p),y:s.parse(ta(h,c),p)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const a=this.chart,i=this._cachedMeta,s=n[t.axis],l={keys:C_(a,!0),values:n._stacks[t.axis]._visualValues};return ig(l,s,i.index,{mode:r})}updateRangeFromParsed(t,n,r,a){const i=r[n.axis];let s=i===null?NaN:i;const l=a&&r._stacks[n.axis];a&&l&&(a.values=l,s=ig(a,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,a=r._parsed,i=r._sorted&&t===r.iScale,s=a.length,l=this._getOtherScale(t),c=_M(n,r,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:f}=hM(l);let p,h;function g(){h=a[p];const v=h[l.axis];return!rt(h[t.axis])||d>v||f<v}for(p=0;p<s&&!(!g()&&(this.updateRangeFromParsed(u,t,h,c),i));++p);if(i){for(p=s-1;p>=0;--p)if(!g()){this.updateRangeFromParsed(u,t,h,c);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let a,i,s;for(a=0,i=n.length;a<i;++a)s=n[a][t.axis],rt(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,a=n.vScale,i=this.getParsed(t);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:a?""+a.getLabelForValue(i[a.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=dM(le(this.options.clip,uM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,a=r.data||[],i=n.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||a.length-l,u=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(t,i,l,c),d=l;d<l+c;++d){const f=a[d];f.hidden||(f.active&&u?s.push(f):f.draw(t,i))}for(d=0;d<s.length;++d)s[d].draw(t,i)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const a=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=vM(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=a.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=gM(this.chart.getContext(),this.index)),i.dataset=a,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const a=n==="active",i=this._cachedDataOpts,s=t+"-"+n,l=i[s],c=this.enableOptionSharing&&Zt(r);if(l)return cg(l,c);const u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),f=a?[`${t}Hover`,"hover",t,""]:[t,""],p=u.getOptionScopes(this.getDataset(),d),h=Object.keys(at.elements[t]),g=()=>this.getContext(r,a,n),v=u.resolveNamedOptions(p,h,g,f);return v.$shared&&(v.$shared=c,i[s]=Object.freeze(cg(v,c))),v}_resolveAnimations(t,n,r){const a=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,l=i[s];if(l)return l;let c;if(a.options.animation!==!1){const d=this.chart.config,f=d.datasetAnimationScopeKeys(this._type,n),p=d.getOptionScopes(this.getDataset(),f);c=d.createResolver(p,this.getContext(t,r,n))}const u=new Np(a,c&&c.animations);return c&&c._cacheable&&(i[s]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ju(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),a=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(n,i)||i!==a;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:s}}updateElement(t,n,r,a){ju(a)?Object.assign(t,r):this._resolveAnimations(n,a).update(t,r)}updateSharedOptions(t,n,r){t&&!ju(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,a){t.active=a;const i=this.getStyle(n,a);this._resolveAnimations(n,r,a).update(t,{options:!a&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const a=r.length,i=n.length,s=Math.min(i,a);s&&this.parse(0,s),i>a?this._insertElements(a,i-a,t):i<a&&this._removeElements(i,a-i)}_insertElements(t,n,r=!0){const a=this._cachedMeta,i=a.data,s=t+n;let l;const c=u=>{for(u.length+=n,l=u.length-1;l>=s;l--)u[l]=u[l-n]};for(c(i),l=t;l<s;++l)i[l]=new this.dataElementType;this._parsing&&c(a._parsed),this.parse(t,n),r&&this.updateElements(i,t,n,"reset")}updateElements(t,n,r,a){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(t,n);r._stacked&&ts(r,a)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,a]=t;this[n](r,a)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}z(Nn,"defaults",{}),z(Nn,"datasetElementType",null),z(Nn,"dataElementType",null);function yM(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let a=0,i=n.length;a<i;a++)r=r.concat(n[a].controller.getAllParsedValues(e));e._cache.$bar=i_(r.sort((a,i)=>a-i))}return e._cache.$bar}function bM(e){const t=e.iScale,n=yM(t,e.type);let r=t._length,a,i,s,l;const c=()=>{s===32767||s===-32768||(Zt(l)&&(r=Math.min(r,Math.abs(s-l)||r)),l=s)};for(a=0,i=n.length;a<i;++a)s=t.getPixelForValue(n[a]),c();for(l=void 0,a=0,i=t.ticks.length;a<i;++a)s=t.getPixelForTick(a),c();return r}function kM(e,t,n,r){const a=n.barThickness;let i,s;return be(a)?(i=t.min*n.categoryPercentage,s=n.barPercentage):(i=a*r,s=1),{chunk:i/r,ratio:s,start:t.pixels[e]-i/2}}function wM(e,t,n,r){const a=t.pixels,i=a[e];let s=e>0?a[e-1]:null,l=e<a.length-1?a[e+1]:null;const c=n.categoryPercentage;s===null&&(s=i-(l===null?t.end-t.start:l-i)),l===null&&(l=i+i-s);const u=i-(i-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/r,ratio:n.barPercentage,start:u}}function SM(e,t,n,r){const a=n.parse(e[0],r),i=n.parse(e[1],r),s=Math.min(a,i),l=Math.max(a,i);let c=s,u=l;Math.abs(s)>Math.abs(l)&&(c=l,u=s),t[n.axis]=u,t._custom={barStart:c,barEnd:u,start:a,end:i,min:s,max:l}}function E_(e,t,n,r){return Ne(e)?SM(e,t,n,r):t[n.axis]=n.parse(e,r),t}function ug(e,t,n,r){const a=e.iScale,i=e.vScale,s=a.getLabels(),l=a===i,c=[];let u,d,f,p;for(u=n,d=n+r;u<d;++u)p=t[u],f={},f[a.axis]=l||a.parse(s[u],u),c.push(E_(p,f,i,u));return c}function Hu(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function xM(e,t,n){return e!==0?Yn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function CM(e){let t,n,r,a,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(a="end",i="start"):(a="start",i="end"),{start:n,end:r,reverse:t,top:a,bottom:i}}function EM(e,t,n,r){let a=t.borderSkipped;const i={};if(!a){e.borderSkipped=i;return}if(a===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:l,reverse:c,top:u,bottom:d}=CM(e);a==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?a=u:(n._bottom||0)===r?a=d:(i[dg(d,s,l,c)]=!0,a=u)),i[dg(a,s,l,c)]=!0,e.borderSkipped=i}function dg(e,t,n,r){return r?(e=TM(e,t,n),e=fg(e,n,t)):e=fg(e,t,n),e}function TM(e,t,n){return e===t?n:e===n?t:e}function fg(e,t,n){return e==="start"?t:e==="end"?n:e}function OM(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Pl extends Nn{parsePrimitiveData(t,n,r,a){return ug(t,n,r,a)}parseArrayData(t,n,r,a){return ug(t,n,r,a)}parseObjectData(t,n,r,a){const{iScale:i,vScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=i.axis==="x"?l:c,d=s.axis==="x"?l:c,f=[];let p,h,g,v;for(p=r,h=r+a;p<h;++p)v=n[p],g={},g[i.axis]=i.parse(ta(v,u),p),f.push(E_(ta(v,d),g,s,p));return f}updateRangeFromParsed(t,n,r,a){super.updateRangeFromParsed(t,n,r,a);const i=r._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:a}=n,i=this.getParsed(t),s=i._custom,l=Hu(s)?"["+s.start+", "+s.end+"]":""+a.getLabelForValue(i[a.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,a){const i=a==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),u=l.isHorizontal(),d=this._getRuler(),{sharedOptions:f,includeOptions:p}=this._getSharedOptions(n,a);for(let h=n;h<n+r;h++){const g=this.getParsed(h),v=i||be(g[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(h),b=this._calculateBarIndexPixels(h,d),m=(g._stacks||{})[l.axis],y={horizontal:u,base:v.base,enableBorderRadius:!m||Hu(g._custom)||s===m._top||s===m._bottom,x:u?v.head:b.center,y:u?b.center:v.head,height:u?b.size:Math.abs(v.size),width:u?Math.abs(v.size):b.size};p&&(y.options=f||this.resolveDataElementOptions(h,t[h].active?"active":a));const k=y.options||t[h].options;EM(y,k,m,s),OM(y,k,d.ratio),this.updateElement(t[h],h,y,a)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,a=r.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),i=r.options.stacked,s=[],l=c=>{const u=c.controller.getParsed(n),d=u&&u[c.vScale.axis];if(be(d)||isNaN(d))return!0};for(const c of a)if(!(n!==void 0&&l(c))&&((i===!1||s.indexOf(c.stack)===-1||i===void 0&&c.stack===void 0)&&s.push(c.stack),c.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const a=this._getStacks(t,r),i=n!==void 0?a.indexOf(n):-1;return i===-1?a.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,a=[];let i,s;for(i=0,s=n.data.length;i<s;++i)a.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const l=t.barThickness;return{min:l||bM(n),pixels:a,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:a},options:{base:i,minBarLength:s}}=this,l=i||0,c=this.getParsed(t),u=c._custom,d=Hu(u);let f=c[n.axis],p=0,h=r?this.applyStack(n,c,r):f,g,v;h!==f&&(p=h-f,h=f),d&&(f=u.barStart,h=u.barEnd-u.barStart,f!==0&&Yn(f)!==Yn(u.barEnd)&&(p=0),p+=f);const b=!be(i)&&!d?i:p;let m=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(p+h):g=m,v=g-m,Math.abs(v)<s){v=xM(v,n,l)*s,f===l&&(m-=v/2);const y=n.getPixelForDecimal(0),k=n.getPixelForDecimal(1),_=Math.min(y,k),w=Math.max(y,k);m=Math.max(Math.min(m,w),_),g=m+v,r&&!d&&(c._stacks[n.axis]._visualValues[a]=n.getValueForPixel(g)-n.getValueForPixel(m))}if(m===n.getPixelForValue(l)){const y=Yn(v)*n.getLineWidthForValue(l)/2;m+=y,v-=y}return{size:v,base:m,head:g,center:g+v/2}}_calculateBarIndexPixels(t,n){const r=n.scale,a=this.options,i=a.skipNull,s=le(a.maxBarThickness,1/0);let l,c;if(n.grouped){const u=i?this._getStackCount(t):n.stackCount,d=a.barThickness==="flex"?wM(t,n,a,u):kM(t,n,a,u),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);l=d.start+d.chunk*f+d.chunk/2,c=Math.min(s,d.chunk*d.ratio)}else l=r.getPixelForValue(this.getParsed(t)[r.axis],t),c=Math.min(s,n.min*n.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,a=r.length;let i=0;for(;i<a;++i)this.getParsed(i)[n.axis]!==null&&r[i].draw(this._ctx)}}z(Pl,"id","bar"),z(Pl,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),z(Pl,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Al extends Nn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,a){const i=super.parsePrimitiveData(t,n,r,a);for(let s=0;s<i.length;s++)i[s]._custom=this.resolveDataElementOptions(s+r).radius;return i}parseArrayData(t,n,r,a){const i=super.parseArrayData(t,n,r,a);for(let s=0;s<i.length;s++){const l=n[r+s];i[s]._custom=le(l[2],this.resolveDataElementOptions(s+r).radius)}return i}parseObjectData(t,n,r,a){const i=super.parseObjectData(t,n,r,a);for(let s=0;s<i.length;s++){const l=n[r+s];i[s]._custom=le(l&&l.r&&+l.r,this.resolveDataElementOptions(s+r).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:i}=n,s=this.getParsed(t),l=a.getLabelForValue(s.x),c=i.getLabelForValue(s.y),u=s._custom;return{label:r[t]||"",value:"("+l+", "+c+(u?", "+u:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,a),d=s.axis,f=l.axis;for(let p=n;p<n+r;p++){const h=t[p],g=!i&&this.getParsed(p),v={},b=v[d]=i?s.getPixelForDecimal(.5):s.getPixelForValue(g[d]),m=v[f]=i?l.getBasePixel():l.getPixelForValue(g[f]);v.skip=isNaN(b)||isNaN(m),u&&(v.options=c||this.resolveDataElementOptions(p,h.active?"active":a),i&&(v.options.radius=0)),this.updateElement(h,p,v,a)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let a=super.resolveDataElementOptions(t,n);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const i=a.radius;return n!=="active"&&(a.radius=0),a.radius+=le(r&&r._custom,i),a}}z(Al,"id","bubble"),z(Al,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),z(Al,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function MM(e,t,n){let r=1,a=1,i=0,s=0;if(t<We){const l=e,c=l+t,u=Math.cos(l),d=Math.sin(l),f=Math.cos(c),p=Math.sin(c),h=(k,_,w)=>Qs(k,l,c,!0)?1:Math.max(_,_*n,w,w*n),g=(k,_,w)=>Qs(k,l,c,!0)?-1:Math.min(_,_*n,w,w*n),v=h(0,u,f),b=h(Ue,d,p),m=g(Ee,u,f),y=g(Ee+Ue,d,p);r=(v-m)/2,a=(b-y)/2,i=-(v+m)/2,s=-(b+y)/2}return{ratioX:r,ratioY:a,offsetX:i,offsetY:s}}class Ea extends Nn{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let i=c=>+r[c];if(he(r[t])){const{key:c="value"}=this._parsing;i=u=>+ta(r[u],c)}let s,l;for(s=t,l=t+n;s<l;++s)a._parsed[s]=i(s)}}_getRotation(){return mt(this.options.rotation-90)}_getCircumference(){return mt(this.options.circumference)}_getRotationExtents(){let t=We,n=-We;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,i=a._getRotation(),s=a._getCircumference();t=Math.min(t,i),n=Math.max(n,i+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,a=this._cachedMeta,i=a.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,l=Math.max((Math.min(r.width,r.height)-s)/2,0),c=Math.min(WT(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:p,ratioY:h,offsetX:g,offsetY:v}=MM(f,d,c),b=(r.width-s)/p,m=(r.height-s)/h,y=Math.max(Math.min(b,m)/2,0),k=e_(this.options.radius,y),_=Math.max(k*c,0),w=(k-_)/this._getVisibleDatasetWeightTotal();this.offsetX=g*k,this.offsetY=v*k,a.total=this.calculateTotal(),this.outerRadius=k-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const r=this.options,a=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||a._parsed[t]===null||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*i/We)}updateElements(t,n,r,a){const i=a==="reset",s=this.chart,l=s.chartArea,u=s.options.animation,d=(l.left+l.right)/2,f=(l.top+l.bottom)/2,p=i&&u.animateScale,h=p?0:this.innerRadius,g=p?0:this.outerRadius,{sharedOptions:v,includeOptions:b}=this._getSharedOptions(n,a);let m=this._getRotation(),y;for(y=0;y<n;++y)m+=this._circumference(y,i);for(y=n;y<n+r;++y){const k=this._circumference(y,i),_=t[y],w={x:d+this.offsetX,y:f+this.offsetY,startAngle:m,endAngle:m+k,circumference:k,outerRadius:g,innerRadius:h};b&&(w.options=v||this.resolveDataElementOptions(y,_.active?"active":a)),m+=k,this.updateElement(_,y,w,a)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,a;for(a=0;a<n.length;a++){const i=t._parsed[a];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?We*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],i=Co(n._parsed[t],r.options.locale);return{label:a[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const r=this.chart;let a,i,s,l,c;if(!t){for(a=0,i=r.data.datasets.length;a<i;++a)if(r.isDatasetVisible(a)){s=r.getDatasetMeta(a),t=s.data,l=s.controller;break}}if(!t)return 0;for(a=0,i=t.length;a<i;++a)c=l.resolveDataElementOptions(a),c.borderAlign!=="inner"&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,a=t.length;r<a;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(le(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}z(Ea,"id","doughnut"),z(Ea,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),z(Ea,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),z(Ea,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=t.legend.options;return n.labels.map((i,s)=>{const c=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:a,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Il extends Nn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:a=[],_dataset:i}=n,s=this.chart._animationsDisabled;let{start:l,count:c}=l_(n,a,s);this._drawStart=l,this._drawCount=c,c_(n)&&(l=0,c=a.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=a;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},t),this.updateElements(a,l,c,t)}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,a),p=s.axis,h=l.axis,{spanGaps:g,segment:v}=this.options,b=na(g)?g:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||i||a==="none",y=n+r,k=t.length;let _=n>0&&this.getParsed(n-1);for(let w=0;w<k;++w){const S=t[w],C=m?S:{};if(w<n||w>=y){C.skip=!0;continue}const E=this.getParsed(w),O=be(E[h]),L=C[p]=s.getPixelForValue(E[p],w),D=C[h]=i||O?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,E,c):E[h],w);C.skip=isNaN(L)||isNaN(D)||O,C.stop=w>0&&Math.abs(E[p]-_[p])>b,v&&(C.parsed=E,C.raw=u.data[w]),f&&(C.options=d||this.resolveDataElementOptions(w,S.active?"active":a)),m||this.updateElement(S,w,C,a),_=E}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,a=t.data||[];if(!a.length)return r;const i=a[0].size(this.resolveDataElementOptions(0)),s=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(r,i,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}z(Il,"id","line"),z(Il,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),z(Il,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ms extends Nn{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],i=Co(n._parsed[t].r,r.options.locale);return{label:a[t]||"",value:i}}parseObjectData(t,n,r,a){return v_.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,a)=>{const i=this.getParsed(a).r;!isNaN(i)&&this.chart.getDataVisibility(a)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(a/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),l=(i-s)/t.getVisibleDatasetCount();this.outerRadius=i-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,n,r,a){const i=a==="reset",s=this.chart,c=s.options.animation,u=this._cachedMeta.rScale,d=u.xCenter,f=u.yCenter,p=u.getIndexAngle(0)-.5*Ee;let h=p,g;const v=360/this.countVisibleElements();for(g=0;g<n;++g)h+=this._computeAngle(g,a,v);for(g=n;g<n+r;g++){const b=t[g];let m=h,y=h+this._computeAngle(g,a,v),k=s.getDataVisibility(g)?u.getDistanceFromCenterForValue(this.getParsed(g).r):0;h=y,i&&(c.animateScale&&(k=0),c.animateRotate&&(m=y=p));const _={x:d,y:f,innerRadius:0,outerRadius:k,startAngle:m,endAngle:y,options:this.resolveDataElementOptions(g,b.active?"active":a)};this.updateElement(b,g,_,a)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?mt(this.resolveDataElementOptions(t,n).angle||r):0}}z(Ms,"id","polarArea"),z(Ms,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),z(Ms,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=t.legend.options;return n.labels.map((i,s)=>{const c=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:a,lineWidth:c.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class zd extends Ea{}z(zd,"id","pie"),z(zd,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Ll extends Nn{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,a){return v_.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta,r=n.dataset,a=n.data||[],i=n.iScale.getLabels();if(r.points=a,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:i.length===a.length,options:s};this.updateElement(r,void 0,l,t)}this.updateElements(a,0,a.length,t)}updateElements(t,n,r,a){const i=this._cachedMeta.rScale,s=a==="reset";for(let l=n;l<n+r;l++){const c=t[l],u=this.resolveDataElementOptions(l,c.active?"active":a),d=i.getPointPositionForValue(l,this.getParsed(l).r),f=s?i.xCenter:d.x,p=s?i.yCenter:d.y,h={x:f,y:p,angle:d.angle,skip:isNaN(f)||isNaN(p),options:u};this.updateElement(c,l,h,a)}}}z(Ll,"id","radar"),z(Ll,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),z(Ll,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Rl extends Nn{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:i}=n,s=this.getParsed(t),l=a.getLabelForValue(s.x),c=i.getLabelForValue(s.y);return{label:r[t]||"",value:"("+l+", "+c+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,a=this.chart._animationsDisabled;let{start:i,count:s}=l_(n,r,a);if(this._drawStart=i,this._drawCount=s,c_(n)&&(i=0,s=r.length),this.options.showLine){const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=r;const u=this.resolveDatasetElementOptions(t);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!a,options:u},t)}this.updateElements(r,i,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,d=this.resolveDataElementOptions(n,a),f=this.getSharedOptions(d),p=this.includeOptions(a,f),h=s.axis,g=l.axis,{spanGaps:v,segment:b}=this.options,m=na(v)?v:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||i||a==="none";let k=n>0&&this.getParsed(n-1);for(let _=n;_<n+r;++_){const w=t[_],S=this.getParsed(_),C=y?w:{},E=be(S[g]),O=C[h]=s.getPixelForValue(S[h],_),L=C[g]=i||E?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,S,c):S[g],_);C.skip=isNaN(O)||isNaN(L)||E,C.stop=_>0&&Math.abs(S[h]-k[h])>m,b&&(C.parsed=S,C.raw=u.data[_]),p&&(C.options=f||this.resolveDataElementOptions(_,w.active?"active":a)),y||this.updateElement(w,_,C,a),k=S}this.updateSharedOptions(f,a,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const r=t.dataset,a=r.options&&r.options.borderWidth||0;if(!n.length)return a;const i=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(a,i,s)/2}}z(Rl,"id","scatter"),z(Rl,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),z(Rl,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var NM=Object.freeze({__proto__:null,BarController:Pl,BubbleController:Al,DoughnutController:Ea,LineController:Il,PieController:zd,PolarAreaController:Ms,RadarController:Ll,ScatterController:Rl});function ga(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Dp{constructor(t){z(this,"options");this.options=t||{}}static override(t){Object.assign(Dp.prototype,t)}init(){}formats(){return ga()}parse(){return ga()}format(){return ga()}add(){return ga()}diff(){return ga()}startOf(){return ga()}endOf(){return ga()}}var T_={_date:Dp};function DM(e,t,n,r){const{controller:a,data:i,_sorted:s}=e,l=a._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&s&&i.length){const c=l._reversePixels?tO:pr;if(r){if(a._sharedOptions){const u=i[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){const f=c(i,t,n-d),p=c(i,t,n+d);return{lo:f.lo,hi:p.hi}}}}else return c(i,t,n)}return{lo:0,hi:i.length-1}}function Oo(e,t,n,r,a){const i=e.getSortedVisibleDatasetMetas(),s=n[t];for(let l=0,c=i.length;l<c;++l){const{index:u,data:d}=i[l],{lo:f,hi:p}=DM(i[l],t,s,a);for(let h=f;h<=p;++h){const g=d[h];g.skip||r(g,u,h)}}}function PM(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,a){const i=t?Math.abs(r.x-a.x):0,s=n?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function Wu(e,t,n,r,a){const i=[];return!a&&!e.isPointInArea(t)||Oo(e,n,t,function(l,c,u){!a&&!hr(l,e.chartArea,0)||l.inRange(t.x,t.y,r)&&i.push({element:l,datasetIndex:c,index:u})},!0),i}function AM(e,t,n,r){let a=[];function i(s,l,c){const{startAngle:u,endAngle:d}=s.getProps(["startAngle","endAngle"],r),{angle:f}=r_(s,{x:t.x,y:t.y});Qs(f,u,d)&&a.push({element:s,datasetIndex:l,index:c})}return Oo(e,n,t,i),a}function IM(e,t,n,r,a,i){let s=[];const l=PM(n);let c=Number.POSITIVE_INFINITY;function u(d,f,p){const h=d.inRange(t.x,t.y,a);if(r&&!h)return;const g=d.getCenterPoint(a);if(!(!!i||e.isPointInArea(g))&&!h)return;const b=l(t,g);b<c?(s=[{element:d,datasetIndex:f,index:p}],c=b):b===c&&s.push({element:d,datasetIndex:f,index:p})}return Oo(e,n,t,u),s}function Uu(e,t,n,r,a,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!r?AM(e,t,n,a):IM(e,t,n,r,a,i)}function pg(e,t,n,r,a){const i=[],s=n==="x"?"inXRange":"inYRange";let l=!1;return Oo(e,n,t,(c,u,d)=>{c[s](t[n],a)&&(i.push({element:c,datasetIndex:u,index:d}),l=l||c.inRange(t.x,t.y,a))}),r&&!l?[]:i}var LM={evaluateInteractionItems:Oo,modes:{index(e,t,n,r){const a=ba(t,e),i=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?Wu(e,a,i,r,s):Uu(e,a,i,!1,r,s),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const d=l[0].index,f=u.data[d];f&&!f.skip&&c.push({element:f,datasetIndex:u.index,index:d})}),c):[]},dataset(e,t,n,r){const a=ba(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?Wu(e,a,i,r,s):Uu(e,a,i,!1,r,s);if(l.length>0){const c=l[0].datasetIndex,u=e.getDatasetMeta(c).data;l=[];for(let d=0;d<u.length;++d)l.push({element:u[d],datasetIndex:c,index:d})}return l},point(e,t,n,r){const a=ba(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return Wu(e,a,i,r,s)},nearest(e,t,n,r){const a=ba(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return Uu(e,a,i,n.intersect,r,s)},x(e,t,n,r){const a=ba(t,e);return pg(e,a,"x",n.intersect,r)},y(e,t,n,r){const a=ba(t,e);return pg(e,a,"y",n.intersect,r)}}};const O_=["left","top","right","bottom"];function ns(e,t){return e.filter(n=>n.pos===t)}function hg(e,t){return e.filter(n=>O_.indexOf(n.pos)===-1&&n.box.axis===t)}function rs(e,t){return e.sort((n,r)=>{const a=t?r:n,i=t?n:r;return a.weight===i.weight?a.index-i.index:a.weight-i.weight})}function RM(e){const t=[];let n,r,a,i,s,l;for(n=0,r=(e||[]).length;n<r;++n)a=e[n],{position:i,options:{stack:s,stackWeight:l=1}}=a,t.push({index:n,box:a,pos:i,horizontal:a.isHorizontal(),weight:a.weight,stack:s&&i+s,stackWeight:l});return t}function BM(e){const t={};for(const n of e){const{stack:r,pos:a,stackWeight:i}=n;if(!r||!O_.includes(a))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function VM(e,t){const n=BM(e),{vBoxMaxWidth:r,hBoxMaxHeight:a}=t;let i,s,l;for(i=0,s=e.length;i<s;++i){l=e[i];const{fullSize:c}=l.box,u=n[l.stack],d=u&&l.stackWeight/u.weight;l.horizontal?(l.width=d?d*r:c&&t.availableWidth,l.height=a):(l.width=r,l.height=d?d*a:c&&t.availableHeight)}return n}function $M(e){const t=RM(e),n=rs(t.filter(u=>u.box.fullSize),!0),r=rs(ns(t,"left"),!0),a=rs(ns(t,"right")),i=rs(ns(t,"top"),!0),s=rs(ns(t,"bottom")),l=hg(t,"x"),c=hg(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:a.concat(c).concat(s).concat(l),chartArea:ns(t,"chartArea"),vertical:r.concat(a).concat(c),horizontal:i.concat(s).concat(l)}}function mg(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function M_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function FM(e,t,n,r){const{pos:a,box:i}=n,s=e.maxPadding;if(!he(a)){n.size&&(e[a]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,e[a]+=n.size}i.getPadding&&M_(s,i.getPadding());const l=Math.max(0,t.outerWidth-mg(s,e,"left","right")),c=Math.max(0,t.outerHeight-mg(s,e,"top","bottom")),u=l!==e.w,d=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:u,other:d}:{same:d,other:u}}function zM(e){const t=e.maxPadding;function n(r){const a=Math.max(t[r]-e[r],0);return e[r]+=a,a}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function jM(e,t){const n=t.maxPadding;function r(a){const i={left:0,top:0,right:0,bottom:0};return a.forEach(s=>{i[s]=Math.max(t[s],n[s])}),i}return r(e?["left","right"]:["top","bottom"])}function ps(e,t,n,r){const a=[];let i,s,l,c,u,d;for(i=0,s=e.length,u=0;i<s;++i){l=e[i],c=l.box,c.update(l.width||t.w,l.height||t.h,jM(l.horizontal,t));const{same:f,other:p}=FM(t,n,l,r);u|=f&&a.length,d=d||p,c.fullSize||a.push(l)}return u&&ps(a,t,n,r)||d}function fl(e,t,n,r,a){e.top=n,e.left=t,e.right=t+r,e.bottom=n+a,e.width=r,e.height=a}function gg(e,t,n,r){const a=n.padding;let{x:i,y:s}=t;for(const l of e){const c=l.box,u=r[l.stack]||{count:1,placed:0,weight:1},d=l.stackWeight/u.weight||1;if(l.horizontal){const f=t.w*d,p=u.size||c.height;Zt(u.start)&&(s=u.start),c.fullSize?fl(c,a.left,s,n.outerWidth-a.right-a.left,p):fl(c,t.left+u.placed,s,f,p),u.start=s,u.placed+=f,s=c.bottom}else{const f=t.h*d,p=u.size||c.width;Zt(u.start)&&(i=u.start),c.fullSize?fl(c,i,a.top,p,n.outerHeight-a.bottom-a.top):fl(c,i,t.top+u.placed,p,f),u.start=i,u.placed+=f,i=c.right}}t.x=i,t.y=s}var Nt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const a=ht(e.options.layout.padding),i=Math.max(t-a.width,0),s=Math.max(n-a.height,0),l=$M(e.boxes),c=l.vertical,u=l.horizontal;Le(e.boxes,v=>{typeof v.beforeLayout=="function"&&v.beforeLayout()});const d=c.reduce((v,b)=>b.box.options&&b.box.options.display===!1?v:v+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/d,hBoxMaxHeight:s/2}),p=Object.assign({},a);M_(p,ht(r));const h=Object.assign({maxPadding:p,w:i,h:s,x:a.left,y:a.top},a),g=VM(c.concat(u),f);ps(l.fullSize,h,f,g),ps(c,h,f,g),ps(u,h,f,g)&&ps(c,h,f,g),zM(h),gg(l.leftAndTop,h,f,g),h.x+=h.w,h.y+=h.h,gg(l.rightAndBottom,h,f,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Le(l.chartArea,v=>{const b=v.box;Object.assign(b,e.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class N_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,a){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,a?Math.floor(n/a):r)}}isAttached(t){return!0}updateConfig(t){}}class HM extends N_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bl="$chartjs",WM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},vg=e=>e===null||e==="";function UM(e,t){const n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[Bl]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",vg(a)){const i=Q1(e,"width");i!==void 0&&(e.width=i)}if(vg(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Q1(e,"height");i!==void 0&&(e.height=i)}return e}const D_=GO?{passive:!0}:!1;function YM(e,t,n){e.addEventListener(t,n,D_)}function qM(e,t,n){e.canvas.removeEventListener(t,n,D_)}function GM(e,t){const n=WM[e.type]||e.type,{x:r,y:a}=ba(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:a!==void 0?a:null}}function oc(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function XM(e,t,n){const r=e.canvas,a=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||oc(l.addedNodes,r),s=s&&!oc(l.removedNodes,r);s&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function KM(e,t,n){const r=e.canvas,a=new MutationObserver(i=>{let s=!1;for(const l of i)s=s||oc(l.removedNodes,r),s=s&&!oc(l.addedNodes,r);s&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const eo=new Map;let _g=0;function P_(){const e=window.devicePixelRatio;e!==_g&&(_g=e,eo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function JM(e,t){eo.size||window.addEventListener("resize",P_),eo.set(e,t)}function ZM(e){eo.delete(e),eo.size||window.removeEventListener("resize",P_)}function QM(e,t,n){const r=e.canvas,a=r&&Mp(r);if(!a)return;const i=o_((l,c)=>{const u=a.clientWidth;n(l,c),u<a.clientWidth&&n()},window),s=new ResizeObserver(l=>{const c=l[0],u=c.contentRect.width,d=c.contentRect.height;u===0&&d===0||i(u,d)});return s.observe(a),JM(e,i),s}function Yu(e,t,n){n&&n.disconnect(),t==="resize"&&ZM(e)}function eN(e,t,n){const r=e.canvas,a=o_(i=>{e.ctx!==null&&n(GM(i,e))},e);return YM(r,t,a),a}class tN extends N_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(UM(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Bl])return!1;const r=n[Bl].initial;["height","width"].forEach(i=>{const s=r[i];be(s)?n.removeAttribute(i):n.setAttribute(i,s)});const a=r.style||{};return Object.keys(a).forEach(i=>{n.style[i]=a[i]}),n.width=n.width,delete n[Bl],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const a=t.$proxies||(t.$proxies={}),s={attach:XM,detach:KM,resize:QM}[n]||eN;a[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),a=r[n];if(!a)return;({attach:Yu,detach:Yu,resize:Yu}[n]||qM)(t,n,a),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,a){return qO(t,n,r,a)}isAttached(t){const n=Mp(t);return!!(n&&n.isConnected)}}function nN(e){return!y_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?HM:tN}var Tl;let $t=(Tl=class{constructor(){z(this,"x");z(this,"y");z(this,"active",!1);z(this,"options");z(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return na(this.x)&&na(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const a={};return t.forEach(i=>{a[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),a}},z(Tl,"defaults",{}),z(Tl,"defaultRoutes"),Tl);function rN(e,t){const n=e.options.ticks,r=aN(e),a=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?sN(t):[],s=i.length,l=i[0],c=i[s-1],u=[];if(s>a)return oN(t,u,i,s/a),u;const d=iN(i,t,a);if(s>0){let f,p;const h=s>1?Math.round((c-l)/(s-1)):null;for(pl(t,u,d,be(h)?0:l-h,l),f=0,p=s-1;f<p;f++)pl(t,u,d,i[f],i[f+1]);return pl(t,u,d,c,be(h)?t.length:c+h),u}return pl(t,u,d),u}function aN(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(r,a))}function iN(e,t,n){const r=lN(e),a=t.length/n;if(!r)return Math.max(a,1);const i=JT(r);for(let s=0,l=i.length-1;s<l;s++){const c=i[s];if(c>a)return c}return Math.max(a,1)}function sN(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function oN(e,t,n,r){let a=0,i=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===i&&(t.push(e[s]),a++,i=n[a*r])}function pl(e,t,n,r,a){const i=le(r,0),s=Math.min(le(a,e.length),e.length);let l=0,c,u,d;for(n=Math.ceil(n),a&&(c=a-r,n=c/Math.floor(c/n)),d=i;d<0;)l++,d=Math.round(i+l*n);for(u=Math.max(i,0);u<s;u++)u===d&&(t.push(e[u]),l++,d=Math.round(i+l*n))}function lN(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const cN=e=>e==="left"?"right":e==="right"?"left":e,yg=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,bg=(e,t)=>Math.min(t||e,e);function kg(e,t){const n=[],r=e.length/t,a=e.length;let i=0;for(;i<a;i+=r)n.push(e[Math.floor(i)]);return n}function uN(e,t,n){const r=e.ticks.length,a=Math.min(t,r-1),i=e._startPixel,s=e._endPixel,l=1e-6;let c=e.getPixelForTick(a),u;if(!(n&&(r===1?u=Math.max(c-i,s-c):t===0?u=(e.getPixelForTick(1)-c)/2:u=(c-e.getPixelForTick(a-1))/2,c+=a<t?u:-u,c<i-l||c>s+l)))return c}function dN(e,t){Le(e,n=>{const r=n.gc,a=r.length/2;let i;if(a>t){for(i=0;i<a;++i)delete n.data[r[i]];r.splice(0,a)}})}function as(e){return e.drawTicks?e.tickLength:0}function wg(e,t){if(!e.display)return 0;const n=it(e.font,t),r=ht(e.padding);return(Ne(e.text)?e.text.length:1)*n.lineHeight+r.height}function fN(e,t){return da(e,{scale:t,type:"scale"})}function pN(e,t,n){return da(e,{tick:n,index:t,type:"tick"})}function hN(e,t,n){let r=Sp(e);return(n&&t!=="right"||!n&&t==="right")&&(r=cN(r)),r}function mN(e,t,n,r){const{top:a,left:i,bottom:s,right:l,chart:c}=e,{chartArea:u,scales:d}=c;let f=0,p,h,g;const v=s-a,b=l-i;if(e.isHorizontal()){if(h=Mt(r,i,l),he(n)){const m=Object.keys(n)[0],y=n[m];g=d[m].getPixelForValue(y)+v-t}else n==="center"?g=(u.bottom+u.top)/2+v-t:g=yg(e,n,t);p=l-i}else{if(he(n)){const m=Object.keys(n)[0],y=n[m];h=d[m].getPixelForValue(y)-b+t}else n==="center"?h=(u.left+u.right)/2-b+t:h=yg(e,n,t);g=Mt(r,s,a),f=n==="left"?-Ue:Ue}return{titleX:h,titleY:g,maxWidth:p,rotation:f}}class Ya extends $t{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:a}=this;return t=en(t,Number.POSITIVE_INFINITY),n=en(n,Number.NEGATIVE_INFINITY),r=en(r,Number.POSITIVE_INFINITY),a=en(a,Number.NEGATIVE_INFINITY),{min:en(t,r),max:en(n,a),minDefined:rt(t),maxDefined:rt(n)}}getMinMax(t){let{min:n,max:r,minDefined:a,maxDefined:i}=this.getUserBounds(),s;if(a&&i)return{min:n,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,u=l.length;c<u;++c)s=l[c].controller.getMinMax(this,t),a||(n=Math.min(n,s.min)),i||(r=Math.max(r,s.max));return n=i&&n>r?r:n,r=a&&n>r?n:r,{min:en(n,en(r,n)),max:en(r,en(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ie(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:a,grace:i,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=CO(this,i,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?kg(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=rN(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ie(this.options.afterUpdate,[this])}beforeSetDimensions(){Ie(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ie(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ie(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ie(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,a,i;for(r=0,a=t.length;r<a;r++)i=t[r],i.label=Ie(n.callback,[i.value,r,t],this)}afterTickToLabelConversion(){Ie(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ie(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=bg(this.ticks.length,t.ticks.maxTicksLimit),a=n.minRotation||0,i=n.maxRotation;let s=a,l,c,u;if(!this._isVisible()||!n.display||a>=i||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const d=this._getLabelSizes(),f=d.widest.width,p=d.highest.height,h=Ct(this.chart.width-f,0,this.maxWidth);l=t.offset?this.maxWidth/r:h/(r-1),f+6>l&&(l=h/(r-(t.offset?.5:1)),c=this.maxHeight-as(t.grid)-n.padding-wg(t.title,this.chart.options.font),u=Math.sqrt(f*f+p*p),s=Vc(Math.min(Math.asin(Ct((d.highest.height+6)/l,-1,1)),Math.asin(Ct(c/u,-1,1))-Math.asin(Ct(p/u,-1,1)))),s=Math.max(a,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ie(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ie(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:a,grid:i}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=wg(a,n.options.font);if(l?(t.width=this.maxWidth,t.height=as(i)+c):(t.height=this.maxHeight,t.width=as(i)+c),r.display&&this.ticks.length){const{first:u,last:d,widest:f,highest:p}=this._getLabelSizes(),h=r.padding*2,g=mt(this.labelRotation),v=Math.cos(g),b=Math.sin(g);if(l){const m=r.mirror?0:b*f.width+v*p.height;t.height=Math.min(this.maxHeight,t.height+m+h)}else{const m=r.mirror?0:v*f.width+b*p.height;t.width=Math.min(this.maxWidth,t.width+m+h)}this._calculatePadding(u,d,b,v)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,a){const{ticks:{align:i,padding:s},position:l}=this.options,c=this.labelRotation!==0,u=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,h=0;c?u?(p=a*t.width,h=r*n.height):(p=r*t.height,h=a*n.width):i==="start"?h=n.width:i==="end"?p=t.width:i!=="inner"&&(p=t.width/2,h=n.width/2),this.paddingLeft=Math.max((p-d+s)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-f+s)*this.width/(this.width-f),0)}else{let d=n.height/2,f=t.height/2;i==="start"?(d=0,f=t.height):i==="end"&&(d=n.height,f=0),this.paddingTop=d+s,this.paddingBottom=f+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ie(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)be(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=kg(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:a,_longestTextCache:i}=this,s=[],l=[],c=Math.floor(n/bg(n,r));let u=0,d=0,f,p,h,g,v,b,m,y,k,_,w;for(f=0;f<n;f+=c){if(g=t[f].label,v=this._resolveTickFontOptions(f),a.font=b=v.string,m=i[b]=i[b]||{data:{},gc:[]},y=v.lineHeight,k=_=0,!be(g)&&!Ne(g))k=ic(a,m.data,m.gc,k,g),_=y;else if(Ne(g))for(p=0,h=g.length;p<h;++p)w=g[p],!be(w)&&!Ne(w)&&(k=ic(a,m.data,m.gc,k,w),_+=y);s.push(k),l.push(_),u=Math.max(k,u),d=Math.max(_,d)}dN(i,n);const S=s.indexOf(u),C=l.indexOf(d),E=O=>({width:s[O]||0,height:l[O]||0});return{first:E(0),last:E(n-1),widest:E(S),highest:E(C),widths:s,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return eO(this._alignToPixels?ma(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=pN(this.getContext(),t,r))}return this.$context||(this.$context=fN(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=mt(this.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=t.autoSkipPadding||0,l=i?i.widest.width+s:0,c=i?i.highest.height+s:0;return this.isHorizontal()?c*r>l*a?l/r:c/a:c*a<l*r?c/r:l/a}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,a=this.options,{grid:i,position:s,border:l}=a,c=i.offset,u=this.isHorizontal(),f=this.ticks.length+(c?1:0),p=as(i),h=[],g=l.setContext(this.getContext()),v=g.display?g.width:0,b=v/2,m=function(Z){return ma(r,Z,v)};let y,k,_,w,S,C,E,O,L,D,N,R;if(s==="top")y=m(this.bottom),C=this.bottom-p,O=y-b,D=m(t.top)+b,R=t.bottom;else if(s==="bottom")y=m(this.top),D=t.top,R=m(t.bottom)-b,C=y+b,O=this.top+p;else if(s==="left")y=m(this.right),S=this.right-p,E=y-b,L=m(t.left)+b,N=t.right;else if(s==="right")y=m(this.left),L=t.left,N=m(t.right)-b,S=y+b,E=this.left+p;else if(n==="x"){if(s==="center")y=m((t.top+t.bottom)/2+.5);else if(he(s)){const Z=Object.keys(s)[0],X=s[Z];y=m(this.chart.scales[Z].getPixelForValue(X))}D=t.top,R=t.bottom,C=y+b,O=C+p}else if(n==="y"){if(s==="center")y=m((t.left+t.right)/2);else if(he(s)){const Z=Object.keys(s)[0],X=s[Z];y=m(this.chart.scales[Z].getPixelForValue(X))}S=y-b,E=S-p,L=t.left,N=t.right}const re=le(a.ticks.maxTicksLimit,f),K=Math.max(1,Math.ceil(f/re));for(k=0;k<f;k+=K){const Z=this.getContext(k),X=i.setContext(Z),ce=l.setContext(Z),Y=X.lineWidth,se=X.color,de=ce.dash||[],Te=ce.dashOffset,Fe=X.tickWidth,ve=X.tickColor,ie=X.tickBorderDash||[],V=X.tickBorderDashOffset;_=uN(this,k,c),_!==void 0&&(w=ma(r,_,Y),u?S=E=L=N=w:C=O=D=R=w,h.push({tx1:S,ty1:C,tx2:E,ty2:O,x1:L,y1:D,x2:N,y2:R,width:Y,color:se,borderDash:de,borderDashOffset:Te,tickWidth:Fe,tickColor:ve,tickBorderDash:ie,tickBorderDashOffset:V}))}return this._ticksLength=f,this._borderValue=y,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:a,ticks:i}=r,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:u,padding:d,mirror:f}=i,p=as(r.grid),h=p+d,g=f?-d:h,v=-mt(this.labelRotation),b=[];let m,y,k,_,w,S,C,E,O,L,D,N,R="middle";if(a==="top")S=this.bottom-g,C=this._getXAxisLabelAlignment();else if(a==="bottom")S=this.top+g,C=this._getXAxisLabelAlignment();else if(a==="left"){const K=this._getYAxisLabelAlignment(p);C=K.textAlign,w=K.x}else if(a==="right"){const K=this._getYAxisLabelAlignment(p);C=K.textAlign,w=K.x}else if(n==="x"){if(a==="center")S=(t.top+t.bottom)/2+h;else if(he(a)){const K=Object.keys(a)[0],Z=a[K];S=this.chart.scales[K].getPixelForValue(Z)+h}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")w=(t.left+t.right)/2-h;else if(he(a)){const K=Object.keys(a)[0],Z=a[K];w=this.chart.scales[K].getPixelForValue(Z)}C=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(c==="start"?R="top":c==="end"&&(R="bottom"));const re=this._getLabelSizes();for(m=0,y=l.length;m<y;++m){k=l[m],_=k.label;const K=i.setContext(this.getContext(m));E=this.getPixelForTick(m)+i.labelOffset,O=this._resolveTickFontOptions(m),L=O.lineHeight,D=Ne(_)?_.length:1;const Z=D/2,X=K.color,ce=K.textStrokeColor,Y=K.textStrokeWidth;let se=C;s?(w=E,C==="inner"&&(m===y-1?se=this.options.reverse?"left":"right":m===0?se=this.options.reverse?"right":"left":se="center"),a==="top"?u==="near"||v!==0?N=-D*L+L/2:u==="center"?N=-re.highest.height/2-Z*L+L:N=-re.highest.height+L/2:u==="near"||v!==0?N=L/2:u==="center"?N=re.highest.height/2-Z*L:N=re.highest.height-D*L,f&&(N*=-1),v!==0&&!K.showLabelBackdrop&&(w+=L/2*Math.sin(v))):(S=E,N=(1-D)*L/2);let de;if(K.showLabelBackdrop){const Te=ht(K.backdropPadding),Fe=re.heights[m],ve=re.widths[m];let ie=N-Te.top,V=0-Te.left;switch(R){case"middle":ie-=Fe/2;break;case"bottom":ie-=Fe;break}switch(C){case"center":V-=ve/2;break;case"right":V-=ve;break}de={left:V,top:ie,width:ve+Te.width,height:Fe+Te.height,color:K.backdropColor}}b.push({label:_,font:O,textOffset:N,options:{rotation:v,color:X,strokeColor:ce,strokeWidth:Y,textAlign:se,textBaseline:R,translation:[w,S],backdrop:de}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-mt(this.labelRotation))return t==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:a,padding:i}}=this.options,s=this._getLabelSizes(),l=t+i,c=s.widest.width;let u,d;return n==="left"?a?(d=this.right+i,r==="near"?u="left":r==="center"?(u="center",d+=c/2):(u="right",d+=c)):(d=this.right-l,r==="near"?u="right":r==="center"?(u="center",d-=c/2):(u="left",d=this.left)):n==="right"?a?(d=this.left+i,r==="near"?u="right":r==="center"?(u="center",d-=c/2):(u="left",d-=c)):(d=this.left+l,r==="near"?u="left":r==="center"?(u="center",d+=c/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:a,width:i,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,a,i,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(i=>i.value===t);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,s;const l=(c,u,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(i=0,s=a.length;i<s;++i){const c=a[i];n.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),n.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:a}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const l=a.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let u,d,f,p;this.isHorizontal()?(u=ma(t,this.left,s)-s/2,d=ma(t,this.right,l)+l/2,f=p=c):(f=ma(t,this.top,s)-s/2,p=ma(t,this.bottom,l)+l/2,u=d=c),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(u,f),n.lineTo(d,p),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Eo(r,a);const i=this.getLabelItems(t);for(const s of i){const l=s.options,c=s.font,u=s.label,d=s.textOffset;za(r,u,0,d,c,l)}a&&To(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:a}}=this;if(!r.display)return;const i=it(r.font),s=ht(r.padding),l=r.align;let c=i.lineHeight/2;n==="bottom"||n==="center"||he(n)?(c+=s.bottom,Ne(r.text)&&(c+=i.lineHeight*(r.text.length-1))):c+=s.top;const{titleX:u,titleY:d,maxWidth:f,rotation:p}=mN(this,c,n,l);za(t,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:p,textAlign:hN(l,n,a),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=le(t.grid&&t.grid.z,-1),a=le(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ya.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let i,s;for(i=0,s=n.length;i<s;++i){const l=n[i];l[r]===this.id&&(!t||l.type===t)&&a.push(l)}return a}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return it(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class hl{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;_N(n)&&(r=this.register(n));const a=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in a||(a[i]=t,gN(t,s,r),this.override&&at.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,a=this.scope;r in n&&delete n[r],a&&r in at[a]&&(delete at[a][r],this.override&&delete Fa[r])}}function gN(e,t,n){const r=Xn(Object.create(null),[n?at.get(n):{},at.get(t),e.defaults]);at.set(t,r),e.defaultRoutes&&vN(t,e.defaultRoutes),e.descriptors&&at.describe(t,e.descriptors)}function vN(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),a=r.pop(),i=[e].concat(r).join("."),s=t[n].split("."),l=s.pop(),c=s.join(".");at.route(i,a,c,l)})}function _N(e){return"id"in e&&"defaults"in e}class yN{constructor(){this.controllers=new hl(Nn,"datasets",!0),this.elements=new hl($t,"elements"),this.plugins=new hl(Object,"plugins"),this.scales=new hl(Ya,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(a=>{const i=r||this._getRegistryForType(a);r||i.isForType(a)||i===this.plugins&&a.id?this._exec(t,i,a):Le(a,s=>{const l=r||this._getRegistryForType(s);this._exec(t,l,s)})})}_exec(t,n,r){const a=bp(t);Ie(r["before"+a],[],r),n[t](r),Ie(r["after"+a],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const a=n.get(t);if(a===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return a}}var $n=new yN;class bN{constructor(){this._init=[]}notify(t,n,r,a){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=a?this._descriptors(t).filter(a):this._descriptors(t),s=this._notify(i,t,n,r);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,a){a=a||{};for(const i of t){const s=i.plugin,l=s[r],c=[n,a,i.options];if(Ie(l,c,s)===!1&&a.cancelable)return!1}return!0}invalidate(){be(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,a=le(r.options&&r.options.plugins,{}),i=kN(r);return a===!1&&!n?[]:SN(t,i,a,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,a=(i,s)=>i.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(a(n,r),t,"stop"),this._notify(a(r,n),t,"start")}}function kN(e){const t={},n=[],r=Object.keys($n.plugins.items);for(let i=0;i<r.length;i++)n.push($n.getPlugin(r[i]));const a=e.plugins||[];for(let i=0;i<a.length;i++){const s=a[i];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function wN(e,t){return!t&&e===!1?null:e===!0?{}:e}function SN(e,{plugins:t,localIds:n},r,a){const i=[],s=e.getContext();for(const l of t){const c=l.id,u=wN(r[c],a);u!==null&&i.push({plugin:l,options:xN(e.config,{plugin:l,local:n[c]},u,s)})}return i}function xN(e,{plugin:t,local:n},r,a){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(r,i);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function jd(e,t){const n=at.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function CN(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function EN(e,t){return e===t?"_index_":"_value_"}function Sg(e){if(e==="x"||e==="y"||e==="r")return e}function TN(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Hd(e,...t){if(Sg(e))return e;for(const n of t){const r=n.axis||TN(n.position)||e.length>1&&Sg(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function xg(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function ON(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return xg(e,"x",n[0])||xg(e,"y",n[0])}return{}}function MN(e,t){const n=Fa[e.type]||{scales:{}},r=t.scales||{},a=jd(e.type,t),i=Object.create(null);return Object.keys(r).forEach(s=>{const l=r[s];if(!he(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=Hd(s,l,ON(s,e),at.scales[l.type]),u=EN(c,a),d=n.scales||{};i[s]=Cs(Object.create(null),[{axis:c},l,d[c],d[u]])}),e.data.datasets.forEach(s=>{const l=s.type||e.type,c=s.indexAxis||jd(l,t),d=(Fa[l]||{}).scales||{};Object.keys(d).forEach(f=>{const p=CN(f,c),h=s[p+"AxisID"]||p;i[h]=i[h]||Object.create(null),Cs(i[h],[{axis:p},r[h],d[f]])})}),Object.keys(i).forEach(s=>{const l=i[s];Cs(l,[at.scales[l.type],at.scale])}),i}function A_(e){const t=e.options||(e.options={});t.plugins=le(t.plugins,{}),t.scales=MN(e,t)}function I_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function NN(e){return e=e||{},e.data=I_(e.data),A_(e),e}const Cg=new Map,L_=new Set;function ml(e,t){let n=Cg.get(e);return n||(n=t(),Cg.set(e,n),L_.add(n)),n}const is=(e,t,n)=>{const r=ta(t,n);r!==void 0&&e.add(r)};class DN{constructor(t){this._config=NN(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=I_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),A_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ml(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return ml(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return ml(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return ml(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let a=r.get(t);return(!a||n)&&(a=new Map,r.set(t,a)),a}getOptionScopes(t,n,r){const{options:a,type:i}=this,s=this._cachedScopes(t,r),l=s.get(n);if(l)return l;const c=new Set;n.forEach(d=>{t&&(c.add(t),d.forEach(f=>is(c,t,f))),d.forEach(f=>is(c,a,f)),d.forEach(f=>is(c,Fa[i]||{},f)),d.forEach(f=>is(c,at,f)),d.forEach(f=>is(c,$d,f))});const u=Array.from(c);return u.length===0&&u.push(Object.create(null)),L_.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,Fa[n]||{},at.datasets[n]||{},{type:n},at,$d]}resolveNamedOptions(t,n,r,a=[""]){const i={$shared:!0},{resolver:s,subPrefixes:l}=Eg(this._resolverCache,t,a);let c=s;if(AN(s,n)){i.$shared=!1,r=Kt(r)?r():r;const u=this.createResolver(t,r,l);c=Ai(s,r,u)}for(const u of n)i[u]=c[u];return i}createResolver(t,n,r=[""],a){const{resolver:i}=Eg(this._resolverCache,t,r);return he(n)?Ai(i,n,void 0,a):i}}function Eg(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const a=n.join();let i=r.get(a);return i||(i={resolver:Ep(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(a,i)),i}const PN=e=>he(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Kt(e[n]),!1);function AN(e,t){const{isScriptable:n,isIndexable:r}=p_(e);for(const a of t){const i=n(a),s=r(a),l=(s||i)&&e[a];if(i&&(Kt(l)||PN(l))||s&&Ne(l))return!0}return!1}var IN="4.3.0";const LN=["top","bottom","left","right","chartArea"];function Tg(e,t){return e==="top"||e==="bottom"||LN.indexOf(e)===-1&&t==="x"}function Og(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Mg(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ie(n&&n.onComplete,[e],t)}function RN(e){const t=e.chart,n=t.options.animation;Ie(n&&n.onProgress,[e],t)}function R_(e){return y_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Vl={},Ng=e=>{const t=R_(e);return Object.values(Vl).filter(n=>n.canvas===t).pop()};function BN(e,t,n){const r=Object.keys(e);for(const a of r){const i=+a;if(i>=t){const s=e[a];delete e[a],(n>0||i>t)&&(e[i+n]=s)}}}function VN(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function $N(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class Re{static register(...t){$n.add(...t),Dg()}static unregister(...t){$n.remove(...t),Dg()}constructor(t,n){const r=this.config=new DN(n),a=R_(t),i=Ng(a);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||nN(a)),this.platform.updateConfig(r);const l=this.platform.acquireContext(a,s.aspectRatio),c=l&&l.canvas,u=c&&c.height,d=c&&c.width;if(this.id=HT(),this.ctx=l,this.canvas=c,this.width=d,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new bN,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=aO(f=>this.update(f),s.resizeDelay||0),this._dataChanges=[],Vl[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}sr.listen(this,"complete",Mg),sr.listen(this,"progress",RN),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:a,_aspectRatio:i}=this;return be(t)?n&&i?i:a?r/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return $n}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Z1(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return X1(this.canvas,this.ctx),this}stop(){return sr.stop(this),this}resize(t,n){sr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,a=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(a,t,n,i),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Z1(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),Ie(r.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Le(n,(r,a)=>{r.id=a})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,a=Object.keys(r).reduce((s,l)=>(s[l]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const l=n[s],c=Hd(s,l),u=c==="r",d=c==="x";return{options:l,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),Le(i,s=>{const l=s.options,c=l.id,u=Hd(c,l),d=le(l.type,s.dtype);(l.position===void 0||Tg(l.position,u)!==Tg(s.dposition))&&(l.position=s.dposition),a[c]=!0;let f=null;if(c in r&&r[c].type===d)f=r[c];else{const p=$n.getScale(d);f=new p({id:c,type:d,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(l,t)}),Le(a,(s,l)=>{s||delete r[l]}),Le(r,s=>{Nt.configure(this,s,s.options),Nt.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((a,i)=>a.index-i.index),r>n){for(let a=n;a<r;++a)this._destroyDatasetMeta(a);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(Og("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,a)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=n.length;r<a;r++){const i=n[r];let s=this.getDatasetMeta(r);const l=i.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=l,s.indexAxis=i.indexAxis||jd(l,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const c=$n.getController(l),{datasetElementType:u,dataElementType:d}=at.datasets[l];Object.assign(c,{dataElementType:$n.getElement(d),datasetElementType:u&&$n.getElement(u)}),s.controller=new c(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Le(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,d=this.data.datasets.length;u<d;u++){const{controller:f}=this.getDatasetMeta(u),p=!a&&i.indexOf(f)===-1;f.buildOrUpdateElements(p),s=Math.max(+f.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),a||Le(i,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Og("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Le(this.scales,t=>{Nt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!z1(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:i}of n){const s=r==="_removeElements"?-i:i;BN(t,a,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(s=>s[0]===i).map((s,l)=>l+","+s.splice(1).join(","))),a=r(0);for(let i=1;i<n;i++)if(!z1(a,r(i)))return;return Array.from(a).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Nt.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Le(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,i)=>{a._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Kt(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),a={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(sr.has(this)?this.attached&&!sr.running(this)&&sr.start(this):(this.draw(),Mg({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resize(r,a),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let a,i;for(a=0,i=n.length;a<i;++a){const s=n[a];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,a=!r.disabled,i=$N(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(a&&Eo(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),a&&To(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return hr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,a){const i=LM.modes[n];return typeof i=="function"?i(this,t,r,a):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let a=r.filter(i=>i&&i._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=da(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const a=r?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,a);Zt(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(i,{visible:r}),this.update(l=>l.datasetIndex===t?a:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),sr.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),X1(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Vl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(i,s)=>{n.addEventListener(this,i,s),t[i]=s},a=(i,s,l)=>{i.offsetX=s,i.offsetY=l,this._eventHandler(i)};Le(this.options.events,i=>r(i,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(c,u)=>{n.addEventListener(this,c,u),t[c]=u},a=(c,u)=>{t[c]&&(n.removeEventListener(this,c,u),delete t[c])},i=(c,u)=>{this.canvas&&this.resize(c,u)};let s;const l=()=>{a("attach",l),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,a("resize",i),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():s()}unbindEvents(){Le(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Le(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const a=r?"set":"remove";let i,s,l,c;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+a+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){s=t[l];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[a+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:i,index:s})=>{const l=this.getDatasetMeta(i);if(!l)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:l.data[s],index:s}});!tc(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const a=this.options.hover,i=(c,u)=>c.filter(d=>!u.some(f=>d.datasetIndex===f.datasetIndex&&d.index===f.index)),s=i(n,t),l=r?t:i(t,n);s.length&&this.updateHoverStyle(s,a.mode,!1),l.length&&a.mode&&this.updateHoverStyle(l,a.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},a=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:a=[],options:i}=this,s=n,l=this._getActiveElements(t,a,r,s),c=XT(t),u=VN(t,this._lastEvent,r,c);r&&(this._lastEvent=null,Ie(i.onHover,[t,l,this],this),c&&Ie(i.onClick,[t,l,this],this));const d=!tc(l,a);return(d||n)&&(this._active=l,this._updateHoverStyles(l,a,n)),this._lastEvent=u,d}_getActiveElements(t,n,r,a){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,a)}}z(Re,"defaults",at),z(Re,"instances",Vl),z(Re,"overrides",Fa),z(Re,"registry",$n),z(Re,"version",IN),z(Re,"getChart",Ng);function Dg(){return Le(Re.instances,e=>e._plugins.invalidate())}function FN(e,t,n){const{startAngle:r,pixelMargin:a,x:i,y:s,outerRadius:l,innerRadius:c}=t;let u=a/l;e.beginPath(),e.arc(i,s,l,r-u,n+u),c>a?(u=a/c,e.arc(i,s,c,n+u,r-u,!0)):e.arc(i,s,a,n+Ue,r-Ue),e.closePath(),e.clip()}function zN(e){return Cp(e,["outerStart","outerEnd","innerStart","innerEnd"])}function jN(e,t,n,r){const a=zN(e.options.borderRadius),i=(n-t)/2,s=Math.min(i,r*t/2),l=c=>{const u=(n-Math.min(i,c))*r/2;return Ct(c,0,Math.min(i,u))};return{outerStart:l(a.outerStart),outerEnd:l(a.outerEnd),innerStart:Ct(a.innerStart,0,s),innerEnd:Ct(a.innerEnd,0,s)}}function ii(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function lc(e,t,n,r,a,i){const{x:s,y:l,startAngle:c,pixelMargin:u,innerRadius:d}=t,f=Math.max(t.outerRadius+r+n-u,0),p=d>0?d+r+n+u:0;let h=0;const g=a-c;if(r){const K=d>0?d-r:0,Z=f>0?f-r:0,X=(K+Z)/2,ce=X!==0?g*X/(X+r):g;h=(g-ce)/2}const v=Math.max(.001,g*f-n/Ee)/f,b=(g-v)/2,m=c+b+h,y=a-b-h,{outerStart:k,outerEnd:_,innerStart:w,innerEnd:S}=jN(t,p,f,y-m),C=f-k,E=f-_,O=m+k/C,L=y-_/E,D=p+w,N=p+S,R=m+w/D,re=y-S/N;if(e.beginPath(),i){const K=(O+L)/2;if(e.arc(s,l,f,O,K),e.arc(s,l,f,K,L),_>0){const Y=ii(E,L,s,l);e.arc(Y.x,Y.y,_,L,y+Ue)}const Z=ii(N,y,s,l);if(e.lineTo(Z.x,Z.y),S>0){const Y=ii(N,re,s,l);e.arc(Y.x,Y.y,S,y+Ue,re+Math.PI)}const X=(y-S/p+(m+w/p))/2;if(e.arc(s,l,p,y-S/p,X,!0),e.arc(s,l,p,X,m+w/p,!0),w>0){const Y=ii(D,R,s,l);e.arc(Y.x,Y.y,w,R+Math.PI,m-Ue)}const ce=ii(C,m,s,l);if(e.lineTo(ce.x,ce.y),k>0){const Y=ii(C,O,s,l);e.arc(Y.x,Y.y,k,m-Ue,O)}}else{e.moveTo(s,l);const K=Math.cos(O)*f+s,Z=Math.sin(O)*f+l;e.lineTo(K,Z);const X=Math.cos(L)*f+s,ce=Math.sin(L)*f+l;e.lineTo(X,ce)}e.closePath()}function HN(e,t,n,r,a){const{fullCircles:i,startAngle:s,circumference:l}=t;let c=t.endAngle;if(i){lc(e,t,n,r,c,a);for(let u=0;u<i;++u)e.fill();isNaN(l)||(c=s+(l%We||We))}return lc(e,t,n,r,c,a),e.fill(),c}function WN(e,t,n,r,a){const{fullCircles:i,startAngle:s,circumference:l,options:c}=t,{borderWidth:u,borderJoinStyle:d,borderDash:f,borderDashOffset:p}=c,h=c.borderAlign==="inner";if(!u)return;e.setLineDash(f||[]),e.lineDashOffset=p,h?(e.lineWidth=u*2,e.lineJoin=d||"round"):(e.lineWidth=u,e.lineJoin=d||"bevel");let g=t.endAngle;if(i){lc(e,t,n,r,g,a);for(let v=0;v<i;++v)e.stroke();isNaN(l)||(g=s+(l%We||We))}h&&FN(e,t,g),i||(lc(e,t,n,r,g,a),e.stroke())}class pi extends $t{constructor(n){super();z(this,"circumference");z(this,"endAngle");z(this,"fullCircles");z(this,"innerRadius");z(this,"outerRadius");z(this,"pixelMargin");z(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,a){const i=this.getProps(["x","y"],a),{angle:s,distance:l}=r_(i,{x:n,y:r}),{startAngle:c,endAngle:u,innerRadius:d,outerRadius:f,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),h=(this.options.spacing+this.options.borderWidth)/2,v=le(p,u-c)>=We||Qs(s,c,u),b=fr(l,d+h,f+h);return v&&b}getCenterPoint(n){const{x:r,y:a,startAngle:i,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:d}=this.options,f=(i+s)/2,p=(l+c+d+u)/2;return{x:r+Math.cos(f)*p,y:a+Math.sin(f)*p}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:a}=this,i=(r.offset||0)/4,s=(r.spacing||0)/2,l=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=a>We?Math.floor(a/We):0,a===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const c=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(c)*i,Math.sin(c)*i);const u=1-Math.sin(Math.min(Ee,a||0)),d=i*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,HN(n,this,d,s,l),WN(n,this,d,s,l),n.restore()}}z(pi,"id","arc"),z(pi,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),z(pi,"defaultRoutes",{backgroundColor:"backgroundColor"}),z(pi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function B_(e,t,n=t){e.lineCap=le(n.borderCapStyle,t.borderCapStyle),e.setLineDash(le(n.borderDash,t.borderDash)),e.lineDashOffset=le(n.borderDashOffset,t.borderDashOffset),e.lineJoin=le(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=le(n.borderWidth,t.borderWidth),e.strokeStyle=le(n.borderColor,t.borderColor)}function UN(e,t,n){e.lineTo(n.x,n.y)}function YN(e){return e.stepped?gO:e.tension||e.cubicInterpolationMode==="monotone"?vO:UN}function V_(e,t,n={}){const r=e.length,{start:a=0,end:i=r-1}=n,{start:s,end:l}=t,c=Math.max(a,s),u=Math.min(i,l),d=a<s&&i<s||a>l&&i>l;return{count:r,start:c,loop:t.loop,ilen:u<c&&!d?r+u-c:u-c}}function qN(e,t,n,r){const{points:a,options:i}=t,{count:s,start:l,loop:c,ilen:u}=V_(a,n,r),d=YN(i);let{move:f=!0,reverse:p}=r||{},h,g,v;for(h=0;h<=u;++h)g=a[(l+(p?u-h:h))%s],!g.skip&&(f?(e.moveTo(g.x,g.y),f=!1):d(e,v,g,p,i.stepped),v=g);return c&&(g=a[(l+(p?u:0))%s],d(e,v,g,p,i.stepped)),!!c}function GN(e,t,n,r){const a=t.points,{count:i,start:s,ilen:l}=V_(a,n,r),{move:c=!0,reverse:u}=r||{};let d=0,f=0,p,h,g,v,b,m;const y=_=>(s+(u?l-_:_))%i,k=()=>{v!==b&&(e.lineTo(d,b),e.lineTo(d,v),e.lineTo(d,m))};for(c&&(h=a[y(0)],e.moveTo(h.x,h.y)),p=0;p<=l;++p){if(h=a[y(p)],h.skip)continue;const _=h.x,w=h.y,S=_|0;S===g?(w<v?v=w:w>b&&(b=w),d=(f*d+_)/++f):(k(),e.lineTo(_,w),g=S,f=0,v=b=w),m=w}k()}function Wd(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?GN:qN}function XN(e){return e.stepped?XO:e.tension||e.cubicInterpolationMode==="monotone"?KO:ka}function KN(e,t,n,r){let a=t._path;a||(a=t._path=new Path2D,t.path(a,n,r)&&a.closePath()),B_(e,t.options),e.stroke(a)}function JN(e,t,n,r){const{segments:a,options:i}=t,s=Wd(t);for(const l of a)B_(e,i,l.style),e.beginPath(),s(e,t,l,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const ZN=typeof Path2D=="function";function QN(e,t,n,r){ZN&&!t.options.segment?KN(e,t,n,r):JN(e,t,n,r)}class Hr extends $t{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const a=r.spanGaps?this._loop:this._fullLoop;zO(this._points,r,t,a,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=nM(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,a=t[n],i=this.points,s=x_(this,{property:n,start:a,end:a});if(!s.length)return;const l=[],c=XN(r);let u,d;for(u=0,d=s.length;u<d;++u){const{start:f,end:p}=s[u],h=i[f],g=i[p];if(h===g){l.push(h);continue}const v=Math.abs((a-h[n])/(g[n]-h[n])),b=c(h,g,v,r.stepped);b[n]=t[n],l.push(b)}return l.length===1?l[0]:l}pathSegment(t,n,r){return Wd(this)(t,this,n,r)}path(t,n,r){const a=this.segments,i=Wd(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const l of a)s&=i(t,this,l,{start:n,end:n+r-1});return!!s}draw(t,n,r,a){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),QN(t,this,r,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}z(Hr,"id","line"),z(Hr,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),z(Hr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),z(Hr,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Pg(e,t,n,r){const a=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<a.radius+a.hitRadius}class Ns extends $t{constructor(n){super();z(this,"parsed");z(this,"skip");z(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,a){const i=this.options,{x:s,y:l}=this.getProps(["x","y"],a);return Math.pow(n-s,2)+Math.pow(r-l,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,r){return Pg(this,n,"x",r)}inYRange(n,r){return Pg(this,n,"y",r)}getCenterPoint(n){const{x:r,y:a}=this.getProps(["x","y"],n);return{x:r,y:a}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const a=r&&n.borderWidth||0;return(r+a)*2}draw(n,r){const a=this.options;this.skip||a.radius<.1||!hr(this,r,this.size(a)/2)||(n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.fillStyle=a.backgroundColor,Fd(n,a,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}z(Ns,"id","point"),z(Ns,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),z(Ns,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function $_(e,t){const{x:n,y:r,base:a,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let l,c,u,d,f;return e.horizontal?(f=s/2,l=Math.min(n,a),c=Math.max(n,a),u=r-f,d=r+f):(f=i/2,l=n-f,c=n+f,u=Math.min(r,a),d=Math.max(r,a)),{left:l,top:u,right:c,bottom:d}}function Wr(e,t,n,r){return e?0:Ct(t,n,r)}function eD(e,t,n){const r=e.options.borderWidth,a=e.borderSkipped,i=f_(r);return{t:Wr(a.top,i.top,0,n),r:Wr(a.right,i.right,0,t),b:Wr(a.bottom,i.bottom,0,n),l:Wr(a.left,i.left,0,t)}}function tD(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,i=Gr(a),s=Math.min(t,n),l=e.borderSkipped,c=r||he(a);return{topLeft:Wr(!c||l.top||l.left,i.topLeft,0,s),topRight:Wr(!c||l.top||l.right,i.topRight,0,s),bottomLeft:Wr(!c||l.bottom||l.left,i.bottomLeft,0,s),bottomRight:Wr(!c||l.bottom||l.right,i.bottomRight,0,s)}}function nD(e){const t=$_(e),n=t.right-t.left,r=t.bottom-t.top,a=eD(e,n/2,r/2),i=tD(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,i.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(a.b,a.r))}}}}function qu(e,t,n,r){const a=t===null,i=n===null,l=e&&!(a&&i)&&$_(e,r);return l&&(a||fr(t,l.left,l.right))&&(i||fr(n,l.top,l.bottom))}function rD(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function aD(e,t){e.rect(t.x,t.y,t.w,t.h)}function Gu(e,t,n={}){const r=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+i,h:e.h+s,radius:e.radius}}class Ds extends $t{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:a}}=this,{inner:i,outer:s}=nD(this),l=rD(s.radius)?Pi:aD;t.save(),(s.w!==i.w||s.h!==i.h)&&(t.beginPath(),l(t,Gu(s,n,i)),t.clip(),l(t,Gu(i,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,Gu(i,n)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,n,r){return qu(this,t,n,r)}inXRange(t,n){return qu(this,t,null,n)}inYRange(t,n){return qu(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:a,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+a)/2:n,y:i?r:(r+a)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}z(Ds,"id","bar"),z(Ds,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),z(Ds,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var iD=Object.freeze({__proto__:null,ArcElement:pi,BarElement:Ds,LineElement:Hr,PointElement:Ns});const Ud=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Ag=Ud.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function F_(e){return Ud[e%Ud.length]}function z_(e){return Ag[e%Ag.length]}function sD(e,t){return e.borderColor=F_(t),e.backgroundColor=z_(t),++t}function oD(e,t){return e.backgroundColor=e.data.map(()=>F_(t++)),t}function lD(e,t){return e.backgroundColor=e.data.map(()=>z_(t++)),t}function cD(e){let t=0;return(n,r)=>{const a=e.getDatasetMeta(r).controller;a instanceof Ea?t=oD(n,t):a instanceof Ms?t=lD(n,t):a&&(t=sD(n,t))}}function Ig(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function uD(e){return e&&(e.borderColor||e.backgroundColor)}var dD={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:a}=e.config,{elements:i}=a;if(!n.forceOverride&&(Ig(r)||uD(a)||i&&Ig(i)))return;const s=cD(e);r.forEach(s)}};function fD(e,t,n,r,a){const i=a.samples||r;if(i>=n)return e.slice(t,t+n);const s=[],l=(n-2)/(i-2);let c=0;const u=t+n-1;let d=t,f,p,h,g,v;for(s[c++]=e[d],f=0;f<i-2;f++){let b=0,m=0,y;const k=Math.floor((f+1)*l)+1+t,_=Math.min(Math.floor((f+2)*l)+1,n)+t,w=_-k;for(y=k;y<_;y++)b+=e[y].x,m+=e[y].y;b/=w,m/=w;const S=Math.floor(f*l)+1+t,C=Math.min(Math.floor((f+1)*l)+1,n)+t,{x:E,y:O}=e[d];for(h=g=-1,y=S;y<C;y++)g=.5*Math.abs((E-b)*(e[y].y-O)-(E-e[y].x)*(m-O)),g>h&&(h=g,p=e[y],v=y);s[c++]=p,d=v}return s[c++]=e[u],s}function pD(e,t,n,r){let a=0,i=0,s,l,c,u,d,f,p,h,g,v;const b=[],m=t+n-1,y=e[t].x,_=e[m].x-y;for(s=t;s<t+n;++s){l=e[s],c=(l.x-y)/_*r,u=l.y;const w=c|0;if(w===d)u<g?(g=u,f=s):u>v&&(v=u,p=s),a=(i*a+l.x)/++i;else{const S=s-1;if(!be(f)&&!be(p)){const C=Math.min(f,p),E=Math.max(f,p);C!==h&&C!==S&&b.push({...e[C],x:a}),E!==h&&E!==S&&b.push({...e[E],x:a})}s>0&&S!==h&&b.push(e[S]),b.push(l),d=w,i=0,g=v=u,f=p=h=s}}return b}function j_(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Lg(e){e.data.datasets.forEach(t=>{j_(t)})}function hD(e,t){const n=t.length;let r=0,a;const{iScale:i}=e,{min:s,max:l,minDefined:c,maxDefined:u}=i.getUserBounds();return c&&(r=Ct(pr(t,i.axis,s).lo,0,n-1)),u?a=Ct(pr(t,i.axis,l).hi+1,r,n)-r:a=n-r,{start:r,count:a}}var mD={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){Lg(e);return}const r=e.width;e.data.datasets.forEach((a,i)=>{const{_data:s,indexAxis:l}=a,c=e.getDatasetMeta(i),u=s||a.data;if(Ge([l,e.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const d=e.scales[c.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:f,count:p}=hD(c,u);const h=n.threshold||4*r;if(p<=h){j_(a);return}be(s)&&(a._data=u,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let g;switch(n.algorithm){case"lttb":g=fD(u,f,p,r,n);break;case"min-max":g=pD(u,f,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}a._decimated=g})},destroy(e){Lg(e)}};function gD(e,t,n){const r=e.segments,a=e.points,i=t.points,s=[];for(const l of r){let{start:c,end:u}=l;u=Pp(c,u,a);const d=Yd(n,a[c],a[u],l.loop);if(!t.segments){s.push({source:l,target:d,start:a[c],end:a[u]});continue}const f=x_(t,d);for(const p of f){const h=Yd(n,i[p.start],i[p.end],p.loop),g=S_(l,a,h);for(const v of g)s.push({source:v,target:p,start:{[n]:Rg(d,h,"start",Math.max)},end:{[n]:Rg(d,h,"end",Math.min)}})}}return s}function Yd(e,t,n,r){if(r)return;let a=t[e],i=n[e];return e==="angle"&&(a=nn(a),i=nn(i)),{property:e,start:a,end:i}}function vD(e,t){const{x:n=null,y:r=null}=e||{},a=t.points,i=[];return t.segments.forEach(({start:s,end:l})=>{l=Pp(s,l,a);const c=a[s],u=a[l];r!==null?(i.push({x:c.x,y:r}),i.push({x:u.x,y:r})):n!==null&&(i.push({x:n,y:c.y}),i.push({x:n,y:u.y}))}),i}function Pp(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function Rg(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function H_(e,t){let n=[],r=!1;return Ne(e)?(r=!0,n=e):n=vD(e,t),n.length?new Hr({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Bg(e){return e&&e.fill!==!1}function _D(e,t,n){let a=e[t].fill;const i=[t];let s;if(!n)return a;for(;a!==!1&&i.indexOf(a)===-1;){if(!rt(a))return a;if(s=e[a],!s)return!1;if(s.visible)return a;i.push(a),a=s.fill}return!1}function yD(e,t,n){const r=SD(e);if(he(r))return isNaN(r.value)?!1:r;let a=parseFloat(r);return rt(a)&&Math.floor(a)===a?bD(r[0],t,a,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function bD(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function kD(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:he(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function wD(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:he(e)?r=e.value:r=t.getBaseValue(),r}function SD(e){const t=e.options,n=t.fill;let r=le(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function xD(e){const{scale:t,index:n,line:r}=e,a=[],i=r.segments,s=r.points,l=CD(t,n);l.push(H_({x:null,y:t.bottom},r));for(let c=0;c<i.length;c++){const u=i[c];for(let d=u.start;d<=u.end;d++)ED(a,s[d],l)}return new Hr({points:a,options:{}})}function CD(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let a=0;a<r.length;a++){const i=r[a];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function ED(e,t,n){const r=[];for(let a=0;a<n.length;a++){const i=n[a],{first:s,last:l,point:c}=TD(i,t,"x");if(!(!c||s&&l)){if(s)r.unshift(c);else if(e.push(c),!l)break}}e.push(...r)}function TD(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const a=r[n],i=e.segments,s=e.points;let l=!1,c=!1;for(let u=0;u<i.length;u++){const d=i[u],f=s[d.start][n],p=s[d.end][n];if(fr(a,f,p)){l=a===f,c=a===p;break}}return{first:l,last:c,point:r}}class W_{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:a,y:i,radius:s}=this;return n=n||{start:0,end:We},t.arc(a,i,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:a}=this,i=t.angle;return{x:n+Math.cos(i)*a,y:r+Math.sin(i)*a,angle:i}}}function OD(e){const{chart:t,fill:n,line:r}=e;if(rt(n))return MD(t,n);if(n==="stack")return xD(e);if(n==="shape")return!0;const a=ND(e);return a instanceof W_?a:H_(a,r)}function MD(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function ND(e){return(e.scale||{}).getPointPositionForValue?PD(e):DD(e)}function DD(e){const{scale:t={},fill:n}=e,r=kD(n,t);if(rt(r)){const a=t.isHorizontal();return{x:a?r:null,y:a?null:r}}return null}function PD(e){const{scale:t,fill:n}=e,r=t.options,a=t.getLabels().length,i=r.reverse?t.max:t.min,s=wD(n,t,i),l=[];if(r.grid.circular){const c=t.getPointPositionForValue(0,i);return new W_({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(s)})}for(let c=0;c<a;++c)l.push(t.getPointPositionForValue(c,s));return l}function Xu(e,t,n){const r=OD(t),{line:a,scale:i,axis:s}=t,l=a.options,c=l.fill,u=l.backgroundColor,{above:d=u,below:f=u}=c||{};r&&a.points.length&&(Eo(e,n),AD(e,{line:a,target:r,above:d,below:f,area:n,scale:i,axis:s}),To(e))}function AD(e,t){const{line:n,target:r,above:a,below:i,area:s,scale:l}=t,c=n._loop?"angle":t.axis;e.save(),c==="x"&&i!==a&&(Vg(e,r,s.top),$g(e,{line:n,target:r,color:a,scale:l,property:c}),e.restore(),e.save(),Vg(e,r,s.bottom)),$g(e,{line:n,target:r,color:i,scale:l,property:c}),e.restore()}function Vg(e,t,n){const{segments:r,points:a}=t;let i=!0,s=!1;e.beginPath();for(const l of r){const{start:c,end:u}=l,d=a[c],f=a[Pp(c,u,a)];i?(e.moveTo(d.x,d.y),i=!1):(e.lineTo(d.x,n),e.lineTo(d.x,d.y)),s=!!t.pathSegment(e,l,{move:s}),s?e.closePath():e.lineTo(f.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function $g(e,t){const{line:n,target:r,property:a,color:i,scale:s}=t,l=gD(n,r,a);for(const{source:c,target:u,start:d,end:f}of l){const{style:{backgroundColor:p=i}={}}=c,h=r!==!0;e.save(),e.fillStyle=p,ID(e,s,h&&Yd(a,d,f)),e.beginPath();const g=!!n.pathSegment(e,c);let v;if(h){g?e.closePath():Fg(e,r,f,a);const b=!!r.pathSegment(e,u,{move:g,reverse:!0});v=g&&b,v||Fg(e,r,d,a)}e.closePath(),e.fill(v?"evenodd":"nonzero"),e.restore()}}function ID(e,t,n){const{top:r,bottom:a}=t.chart.chartArea,{property:i,start:s,end:l}=n||{};i==="x"&&(e.beginPath(),e.rect(s,r,l-s,a-r),e.clip())}function Fg(e,t,n,r){const a=t.interpolate(n,r);a&&e.lineTo(a.x,a.y)}var LD={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,a=[];let i,s,l,c;for(s=0;s<r;++s)i=e.getDatasetMeta(s),l=i.dataset,c=null,l&&l.options&&l instanceof Hr&&(c={visible:e.isDatasetVisible(s),index:s,fill:yD(l,s,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:l}),i.$filler=c,a.push(c);for(s=0;s<r;++s)c=a[s],!(!c||c.fill===!1)&&(c.fill=_D(a,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",a=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let s=a.length-1;s>=0;--s){const l=a[s].$filler;l&&(l.line.updateControlPoints(i,l.axis),r&&l.fill&&Xu(e.ctx,l,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let a=r.length-1;a>=0;--a){const i=r[a].$filler;Bg(i)&&Xu(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!Bg(r)||n.drawTime!=="beforeDatasetDraw"||Xu(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const zg=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},RD=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class jg extends $t{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ie(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,a)=>t.sort(r,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,a=it(r.font),i=a.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=zg(r,i);let u,d;n.font=a.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(s,i,l,c)+10):(d=this.maxHeight,u=this._fitCols(s,a,l,c)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,a){const{ctx:i,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.lineWidths=[0],d=a+l;let f=t;i.textAlign="left",i.textBaseline="middle";let p=-1,h=-d;return this.legendItems.forEach((g,v)=>{const b=r+n/2+i.measureText(g.text).width;(v===0||u[u.length-1]+b+2*l>s)&&(f+=d,u[u.length-(v>0?0:1)]=0,h+=d,p++),c[v]={left:0,top:h,row:p,width:b,height:a},u[u.length-1]+=b+l}),f}_fitCols(t,n,r,a){const{ctx:i,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.columnSizes=[],d=s-t;let f=l,p=0,h=0,g=0,v=0;return this.legendItems.forEach((b,m)=>{const{itemWidth:y,itemHeight:k}=BD(r,n,i,b,a);m>0&&h+k+2*l>d&&(f+=p+l,u.push({width:p,height:h}),g+=p+l,v++,p=h=0),c[m]={left:g,top:h,col:v,width:y,height:k},p=Math.max(p,y),h+=k+l}),f+=p,u.push({width:p,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:a},rtl:i}}=this,s=gi(i,this.left,this.width);if(this.isHorizontal()){let l=0,c=Mt(r,this.left+a,this.right-this.lineWidths[l]);for(const u of n)l!==u.row&&(l=u.row,c=Mt(r,this.left+a,this.right-this.lineWidths[l])),u.top+=this.top+t+a,u.left=s.leftForLtr(s.x(c),u.width),c+=u.width+a}else{let l=0,c=Mt(r,this.top+t+a,this.bottom-this.columnSizes[l].height);for(const u of n)u.col!==l&&(l=u.col,c=Mt(r,this.top+t+a,this.bottom-this.columnSizes[l].height)),u.top=c,u.left+=this.left+a,u.left=s.leftForLtr(s.x(u.left),u.width),c+=u.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Eo(t,this),this._draw(),To(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:a}=this,{align:i,labels:s}=t,l=at.color,c=gi(t.rtl,this.left,this.width),u=it(s.font),{padding:d}=s,f=u.size,p=f/2;let h;this.drawTitle(),a.textAlign=c.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=u.string;const{boxWidth:g,boxHeight:v,itemHeight:b}=zg(s,f),m=function(S,C,E){if(isNaN(g)||g<=0||isNaN(v)||v<0)return;a.save();const O=le(E.lineWidth,1);if(a.fillStyle=le(E.fillStyle,l),a.lineCap=le(E.lineCap,"butt"),a.lineDashOffset=le(E.lineDashOffset,0),a.lineJoin=le(E.lineJoin,"miter"),a.lineWidth=O,a.strokeStyle=le(E.strokeStyle,l),a.setLineDash(le(E.lineDash,[])),s.usePointStyle){const L={radius:v*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:O},D=c.xPlus(S,g/2),N=C+p;d_(a,L,D,N,s.pointStyleWidth&&g)}else{const L=C+Math.max((f-v)/2,0),D=c.leftForLtr(S,g),N=Gr(E.borderRadius);a.beginPath(),Object.values(N).some(R=>R!==0)?Pi(a,{x:D,y:L,w:g,h:v,radius:N}):a.rect(D,L,g,v),a.fill(),O!==0&&a.stroke()}a.restore()},y=function(S,C,E){za(a,E.text,S,C+b/2,u,{strikethrough:E.hidden,textAlign:c.textAlign(E.textAlign)})},k=this.isHorizontal(),_=this._computeTitleHeight();k?h={x:Mt(i,this.left+d,this.right-r[0]),y:this.top+d+_,line:0}:h={x:this.left+d,y:Mt(i,this.top+_+d,this.bottom-n[0].height),line:0},b_(this.ctx,t.textDirection);const w=b+d;this.legendItems.forEach((S,C)=>{a.strokeStyle=S.fontColor,a.fillStyle=S.fontColor;const E=a.measureText(S.text).width,O=c.textAlign(S.textAlign||(S.textAlign=s.textAlign)),L=g+p+E;let D=h.x,N=h.y;c.setWidth(this.width),k?C>0&&D+L+d>this.right&&(N=h.y+=w,h.line++,D=h.x=Mt(i,this.left+d,this.right-r[h.line])):C>0&&N+w>this.bottom&&(D=h.x=D+n[h.line].width+d,h.line++,N=h.y=Mt(i,this.top+_+d,this.bottom-n[h.line].height));const R=c.x(D);if(m(R,N,S),D=iO(O,D+g+p,k?D+L:this.right,t.rtl),y(c.x(D),N,S),k)h.x+=L+d;else if(typeof S.text!="string"){const re=u.lineHeight;h.y+=U_(S,re)}else h.y+=w}),k_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=it(n.font),a=ht(n.padding);if(!n.display)return;const i=gi(t.rtl,this.left,this.width),s=this.ctx,l=n.position,c=r.size/2,u=a.top+c;let d,f=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),d=this.top+u,f=Mt(t.align,f,this.right-p);else{const g=this.columnSizes.reduce((v,b)=>Math.max(v,b.height),0);d=u+Mt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const h=Mt(l,f,f+p);s.textAlign=i.textAlign(Sp(l)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,za(s,n.text,h,d,r)}_computeTitleHeight(){const t=this.options.title,n=it(t.font),r=ht(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,a,i;if(fr(t,this.left,this.right)&&fr(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(a=i[r],fr(t,a.left,a.left+a.width)&&fr(n,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!FD(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const a=this._hoveredItem,i=RD(a,r);a&&!i&&Ie(n.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!i&&Ie(n.onHover,[t,r,this],this)}else r&&Ie(n.onClick,[t,r,this],this)}}function BD(e,t,n,r,a){const i=VD(r,e,t,n),s=$D(a,r,t.lineHeight);return{itemWidth:i,itemHeight:s}}function VD(e,t,n,r){let a=e.text;return a&&typeof a!="string"&&(a=a.reduce((i,s)=>i.length>s.length?i:s)),t+n.size/2+r.measureText(a).width}function $D(e,t,n){let r=e;return typeof t.text!="string"&&(r=U_(t,n)),r}function U_(e,t){const n=e.text?e.text.length+.5:0;return t*n}function FD(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var zD={id:"legend",_element:jg,start(e,t,n){const r=e.legend=new jg({ctx:e.ctx,options:n,chart:e});Nt.configure(e,r,n),Nt.addBox(e,r)},stop(e){Nt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Nt.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),t.hidden=!0):(a.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:i,useBorderRadius:s,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const u=c.controller.getStyle(n?0:void 0),d=ht(u.borderWidth);return{text:t[c.index].label,fillStyle:u.backgroundColor,fontColor:i,hidden:!c.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:a||u.textAlign,borderRadius:s&&(l||u.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Ap extends $t{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const a=Ne(r.text)?r.text.length:1;this._padding=ht(r.padding);const i=a*it(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:a,right:i,options:s}=this,l=s.align;let c=0,u,d,f;return this.isHorizontal()?(d=Mt(l,r,i),f=n+t,u=i-r):(s.position==="left"?(d=r+t,f=Mt(l,a,n),c=Ee*-.5):(d=i-t,f=Mt(l,n,a),c=Ee*.5),u=a-n),{titleX:d,titleY:f,maxWidth:u,rotation:c}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=it(n.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:u}=this._drawArgs(i);za(t,n.text,0,0,r,{color:n.color,maxWidth:c,rotation:u,textAlign:Sp(n.align),textBaseline:"middle",translation:[s,l]})}}function jD(e,t){const n=new Ap({ctx:e.ctx,options:t,chart:e});Nt.configure(e,n,t),Nt.addBox(e,n),e.titleBlock=n}var HD={id:"title",_element:Ap,start(e,t,n){jD(e,n)},stop(e){const t=e.titleBlock;Nt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Nt.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gl=new WeakMap;var WD={id:"subtitle",start(e,t,n){const r=new Ap({ctx:e.ctx,options:n,chart:e});Nt.configure(e,r,n),Nt.addBox(e,r),gl.set(e,r)},stop(e){Nt.removeBox(e,gl.get(e)),gl.delete(e)},beforeUpdate(e,t,n){const r=gl.get(e);Nt.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hs={average(e){if(!e.length)return!1;let t,n,r=0,a=0,i=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r+=l.x,a+=l.y,++i}}return{x:r/i,y:a/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,a=Number.POSITIVE_INFINITY,i,s,l;for(i=0,s=e.length;i<s;++i){const c=e[i].element;if(c&&c.hasValue()){const u=c.getCenterPoint(),d=Di(t,u);d<a&&(a=d,l=c)}}if(l){const c=l.tooltipPosition();n=c.x,r=c.y}return{x:n,y:r}}};function Bn(e,t){return t&&(Ne(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function or(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
826
|
+
`)>-1?e.split(`
|
|
827
|
+
`):e}function UD(e,t){const{element:n,datasetIndex:r,index:a}=t,i=e.getDatasetMeta(r).controller,{label:s,value:l}=i.getLabelAndValue(a);return{chart:e,label:s,parsed:i.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:l,dataset:i.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function Hg(e,t){const n=e.chart.ctx,{body:r,footer:a,title:i}=e,{boxWidth:s,boxHeight:l}=t,c=it(t.bodyFont),u=it(t.titleFont),d=it(t.footerFont),f=i.length,p=a.length,h=r.length,g=ht(t.padding);let v=g.height,b=0,m=r.reduce((_,w)=>_+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),m){const _=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;v+=h*_+(m-h)*c.lineHeight+(m-1)*t.bodySpacing}p&&(v+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let y=0;const k=function(_){b=Math.max(b,n.measureText(_).width+y)};return n.save(),n.font=u.string,Le(e.title,k),n.font=c.string,Le(e.beforeBody.concat(e.afterBody),k),y=t.displayColors?s+2+t.boxPadding:0,Le(r,_=>{Le(_.before,k),Le(_.lines,k),Le(_.after,k)}),y=0,n.font=d.string,Le(e.footer,k),n.restore(),b+=g.width,{width:b,height:v}}function YD(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function qD(e,t,n,r){const{x:a,width:i}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&a+i+s>t.width||e==="right"&&a-i-s<0)return!0}function GD(e,t,n,r){const{x:a,width:i}=n,{width:s,chartArea:{left:l,right:c}}=e;let u="center";return r==="center"?u=a<=(l+c)/2?"left":"right":a<=i/2?u="left":a>=s-i/2&&(u="right"),qD(u,e,t,n)&&(u="center"),u}function Wg(e,t,n){const r=n.yAlign||t.yAlign||YD(e,n);return{xAlign:n.xAlign||t.xAlign||GD(e,t,n,r),yAlign:r}}function XD(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function KD(e,t,n){let{y:r,height:a}=e;return t==="top"?r+=n:t==="bottom"?r-=a+n:r-=a/2,r}function Ug(e,t,n,r){const{caretSize:a,caretPadding:i,cornerRadius:s}=e,{xAlign:l,yAlign:c}=n,u=a+i,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:h}=Gr(s);let g=XD(t,l);const v=KD(t,c,u);return c==="center"?l==="left"?g+=u:l==="right"&&(g-=u):l==="left"?g-=Math.max(d,p)+a:l==="right"&&(g+=Math.max(f,h)+a),{x:Ct(g,0,r.width-t.width),y:Ct(v,0,r.height-t.height)}}function vl(e,t,n){const r=ht(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Yg(e){return Bn([],or(e))}function JD(e,t,n){return da(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function qg(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Y_={beforeTitle:rr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:rr,beforeBody:rr,beforeLabel:rr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return be(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:rr,afterBody:rr,beforeFooter:rr,footer:rr,afterFooter:rr};function zt(e,t,n,r){const a=e[t].call(n,r);return typeof a>"u"?Y_[t].call(n,r):a}class qd extends $t{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,i=new Np(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=JD(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,a=zt(r,"beforeTitle",this,t),i=zt(r,"title",this,t),s=zt(r,"afterTitle",this,t);let l=[];return l=Bn(l,or(a)),l=Bn(l,or(i)),l=Bn(l,or(s)),l}getBeforeBody(t,n){return Yg(zt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,a=[];return Le(t,i=>{const s={before:[],lines:[],after:[]},l=qg(r,i);Bn(s.before,or(zt(l,"beforeLabel",this,i))),Bn(s.lines,zt(l,"label",this,i)),Bn(s.after,or(zt(l,"afterLabel",this,i))),a.push(s)}),a}getAfterBody(t,n){return Yg(zt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,a=zt(r,"beforeFooter",this,t),i=zt(r,"footer",this,t),s=zt(r,"afterFooter",this,t);let l=[];return l=Bn(l,or(a)),l=Bn(l,or(i)),l=Bn(l,or(s)),l}_createItems(t){const n=this._active,r=this.chart.data,a=[],i=[],s=[];let l=[],c,u;for(c=0,u=n.length;c<u;++c)l.push(UD(this.chart,n[c]));return t.filter&&(l=l.filter((d,f,p)=>t.filter(d,f,p,r))),t.itemSort&&(l=l.sort((d,f)=>t.itemSort(d,f,r))),Le(l,d=>{const f=qg(t.callbacks,d);a.push(zt(f,"labelColor",this,d)),i.push(zt(f,"labelPointStyle",this,d)),s.push(zt(f,"labelTextColor",this,d))}),this.labelColors=a,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),a=this._active;let i,s=[];if(!a.length)this.opacity!==0&&(i={opacity:0});else{const l=hs[r.position].call(this,a,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const c=this._size=Hg(this,r),u=Object.assign({},l,c),d=Wg(this.chart,r,u),f=Ug(r,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,i={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,a){const i=this.getCaretPosition(t,r,a);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:a,yAlign:i}=this,{caretSize:s,cornerRadius:l}=r,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=Gr(l),{x:p,y:h}=t,{width:g,height:v}=n;let b,m,y,k,_,w;return i==="center"?(_=h+v/2,a==="left"?(b=p,m=b-s,k=_+s,w=_-s):(b=p+g,m=b+s,k=_-s,w=_+s),y=b):(a==="left"?m=p+Math.max(c,d)+s:a==="right"?m=p+g-Math.max(u,f)-s:m=this.caretX,i==="top"?(k=h,_=k-s,b=m-s,y=m+s):(k=h+v,_=k+s,b=m+s,y=m-s),w=k),{x1:b,x2:m,x3:y,y1:k,y2:_,y3:w}}drawTitle(t,n,r){const a=this.title,i=a.length;let s,l,c;if(i){const u=gi(r.rtl,this.x,this.width);for(t.x=vl(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",s=it(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,c=0;c<i;++c)n.fillText(a[c],u.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+l,c+1===i&&(t.y+=r.titleMarginBottom-l)}}_drawColorBox(t,n,r,a,i){const s=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:u}=i,d=it(i.bodyFont),f=vl(this,"left",i),p=a.x(f),h=c<d.lineHeight?(d.lineHeight-c)/2:0,g=n.y+h;if(i.usePointStyle){const v={radius:Math.min(u,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=a.leftForLtr(p,u)+u/2,m=g+c/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Fd(t,v,b,m),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,Fd(t,v,b,m)}else{t.lineWidth=he(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const v=a.leftForLtr(p,u),b=a.leftForLtr(a.xPlus(p,1),u-2),m=Gr(s.borderRadius);Object.values(m).some(y=>y!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Pi(t,{x:v,y:g,w:u,h:c,radius:m}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Pi(t,{x:b,y:g+1,w:u-2,h:c-2,radius:m}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(v,g,u,c),t.strokeRect(v,g,u,c),t.fillStyle=s.backgroundColor,t.fillRect(b,g+1,u-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:a}=this,{bodySpacing:i,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:d}=r,f=it(r.bodyFont);let p=f.lineHeight,h=0;const g=gi(r.rtl,this.x,this.width),v=function(E){n.fillText(E,g.x(t.x+h),t.y+p/2),t.y+=p+i},b=g.textAlign(s);let m,y,k,_,w,S,C;for(n.textAlign=s,n.textBaseline="middle",n.font=f.string,t.x=vl(this,b,r),n.fillStyle=r.bodyColor,Le(this.beforeBody,v),h=l&&b!=="right"?s==="center"?u/2+d:u+2+d:0,_=0,S=a.length;_<S;++_){for(m=a[_],y=this.labelTextColors[_],n.fillStyle=y,Le(m.before,v),k=m.lines,l&&k.length&&(this._drawColorBox(n,t,_,g,r),p=Math.max(f.lineHeight,c)),w=0,C=k.length;w<C;++w)v(k[w]),p=f.lineHeight;Le(m.after,v)}h=0,p=f.lineHeight,Le(this.afterBody,v),t.y-=i}drawFooter(t,n,r){const a=this.footer,i=a.length;let s,l;if(i){const c=gi(r.rtl,this.x,this.width);for(t.x=vl(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=c.textAlign(r.footerAlign),n.textBaseline="middle",s=it(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,l=0;l<i;++l)n.fillText(a[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,a){const{xAlign:i,yAlign:s}=this,{x:l,y:c}=t,{width:u,height:d}=r,{topLeft:f,topRight:p,bottomLeft:h,bottomRight:g}=Gr(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(l+f,c),s==="top"&&this.drawCaret(t,n,r,a),n.lineTo(l+u-p,c),n.quadraticCurveTo(l+u,c,l+u,c+p),s==="center"&&i==="right"&&this.drawCaret(t,n,r,a),n.lineTo(l+u,c+d-g),n.quadraticCurveTo(l+u,c+d,l+u-g,c+d),s==="bottom"&&this.drawCaret(t,n,r,a),n.lineTo(l+h,c+d),n.quadraticCurveTo(l,c+d,l,c+d-h),s==="center"&&i==="left"&&this.drawCaret(t,n,r,a),n.lineTo(l,c+f),n.quadraticCurveTo(l,c,l+f,c),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,a=r&&r.x,i=r&&r.y;if(a||i){const s=hs[t.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=Hg(this,t),c=Object.assign({},s,this._size),u=Wg(n,t,c),d=Ug(t,c,u,n);(a._to!==d.x||i._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=ht(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,a,n),b_(t,n.textDirection),i.y+=s.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),k_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,a=t.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),i=!tc(r,a),s=this._positionChanged(a,n);(i||s)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,i=this._active||[],s=this._getActiveElements(t,i,n,r),l=this._positionChanged(s,t),c=n||!tc(s,i)||l;return c&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,r,a){const i=this.options;if(t.type==="mouseout")return[];if(!a)return n;const s=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:a,options:i}=this,s=hs[i.position].call(this,t,n);return s!==!1&&(r!==s.x||a!==s.y)}}z(qd,"positioners",hs);var ZD={id:"tooltip",_element:qd,positioners:hs,afterInit(e,t,n){n&&(e.tooltip=new qd({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Y_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},QD=Object.freeze({__proto__:null,Colors:dD,Decimation:mD,Filler:LD,Legend:zD,SubTitle:WD,Title:HD,Tooltip:ZD});const eP=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function tP(e,t,n,r){const a=e.indexOf(t);if(a===-1)return eP(e,t,n,r);const i=e.lastIndexOf(t);return a!==i?n:a}const nP=(e,t)=>e===null?null:Ct(Math.round(e),0,t);function Gg(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Gd extends Ya{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:a,label:i}of n)r[a]===i&&r.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(be(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:tP(r,t,le(n,t),this._addedLabels),nP(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(a=this.getLabels().length-1)),this.min=r,this.max=a}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,a=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)a.push({value:s});return a}getLabelForValue(t){return Gg.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}z(Gd,"id","category"),z(Gd,"defaults",{ticks:{callback:Gg}});function rP(e,t){const n=[],{bounds:a,step:i,min:s,max:l,precision:c,count:u,maxTicks:d,maxDigits:f,includeBounds:p}=e,h=i||1,g=d-1,{min:v,max:b}=t,m=!be(s),y=!be(l),k=!be(u),_=(b-v)/(f+1);let w=j1((b-v)/g/h)*h,S,C,E,O;if(w<1e-14&&!m&&!y)return[{value:v},{value:b}];O=Math.ceil(b/w)-Math.floor(v/w),O>g&&(w=j1(O*w/g/h)*h),be(c)||(S=Math.pow(10,c),w=Math.ceil(w*S)/S),a==="ticks"?(C=Math.floor(v/w)*w,E=Math.ceil(b/w)*w):(C=v,E=b),m&&y&&i&&ZT((l-s)/i,w/1e3)?(O=Math.round(Math.min((l-s)/w,d)),w=(l-s)/O,C=s,E=l):k?(C=m?s:C,E=y?l:E,O=u-1,w=(E-C)/O):(O=(E-C)/w,Es(O,Math.round(O),w/1e3)?O=Math.round(O):O=Math.ceil(O));const L=Math.max(H1(w),H1(C));S=Math.pow(10,be(c)?L:c),C=Math.round(C*S)/S,E=Math.round(E*S)/S;let D=0;for(m&&(p&&C!==s?(n.push({value:s}),C<s&&D++,Es(Math.round((C+D*w)*S)/S,s,Xg(s,_,e))&&D++):C<s&&D++);D<O;++D){const N=Math.round((C+D*w)*S)/S;if(y&&N>l)break;n.push({value:N})}return y&&p&&E!==l?n.length&&Es(n[n.length-1].value,l,Xg(l,_,e))?n[n.length-1].value=l:n.push({value:l}):(!y||E===l)&&n.push({value:E}),n}function Xg(e,t,{horizontal:n,minRotation:r}){const a=mt(r),i=(n?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class cc extends Ya{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return be(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:a,max:i}=this;const s=c=>a=n?a:c,l=c=>i=r?i:c;if(t){const c=Yn(a),u=Yn(i);c<0&&u<0?l(0):c>0&&u>0&&s(0)}if(a===i){let c=i===0?1:Math.abs(i*.05);l(i+c),t||s(a-c)}this.min=a,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,a;return r?(a=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const a={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=rP(a,i);return t.bounds==="ticks"&&n_(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const a=(r-n)/Math.max(t.length-1,1)/2;n-=a,r+=a}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Co(t,this.chart.options.locale,this.options.ticks.format)}}class Xd extends cc{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=rt(t)?t:0,this.max=rt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=mt(this.options.ticks.minRotation),a=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}z(Xd,"id","linear"),z(Xd,"defaults",{ticks:{callback:$c.formatters.numeric}});const to=e=>Math.floor(jr(e)),va=(e,t)=>Math.pow(10,to(e)+t);function Kg(e){return e/Math.pow(10,to(e))===1}function Jg(e,t,n){const r=Math.pow(10,n),a=Math.floor(e/r);return Math.ceil(t/r)-a}function aP(e,t){const n=t-e;let r=to(n);for(;Jg(e,t,r)>10;)r++;for(;Jg(e,t,r)<10;)r--;return Math.min(r,to(e))}function iP(e,{min:t,max:n}){t=en(e.min,t);const r=[],a=to(t);let i=aP(t,n),s=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),c=a>i?Math.pow(10,a):0,u=Math.round((t-c)*s)/s,d=Math.floor((t-c)/l/10)*l*10;let f=Math.floor((u-d)/Math.pow(10,i)),p=en(e.min,Math.round((c+d+f*Math.pow(10,i))*s)/s);for(;p<n;)r.push({value:p,major:Kg(p),significand:f}),f>=10?f=f<15?15:20:f++,f>=20&&(i++,f=2,s=i>=0?1:s),p=Math.round((c+d+f*Math.pow(10,i))*s)/s;const h=en(e.max,p);return r.push({value:h,major:Kg(h),significand:f}),r}class Kd extends Ya{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=cc.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return rt(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=rt(t)?Math.max(0,t):null,this.max=rt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!rt(this._userMin)&&(this.min=t===va(this.min,0)?va(this.min,-1):va(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,a=this.max;const i=l=>r=t?r:l,s=l=>a=n?a:l;r===a&&(r<=0?(i(1),s(10)):(i(va(r,-1)),s(va(a,1)))),r<=0&&i(va(a,-1)),a<=0&&s(va(r,1)),this.min=r,this.max=a}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=iP(n,this);return t.bounds==="ticks"&&n_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Co(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=jr(t),this._valueRange=jr(this.max)-jr(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(jr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}z(Kd,"id","logarithmic"),z(Kd,"defaults",{ticks:{callback:$c.formatters.logarithmic,major:{enabled:!0}}});function Jd(e){const t=e.ticks;if(t.display&&e.display){const n=ht(t.backdropPadding);return le(t.font&&t.font.size,at.font.size)+n.height}return 0}function sP(e,t,n){return n=Ne(n)?n:[n],{w:mO(e,t.string,n),h:n.length*t.lineHeight}}function Zg(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function oP(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],a=[],i=e._pointLabels.length,s=e.options.pointLabels,l=s.centerPointLabels?Ee/i:0;for(let c=0;c<i;c++){const u=s.setContext(e.getPointLabelContext(c));a[c]=u.padding;const d=e.getPointPosition(c,e.drawingArea+a[c],l),f=it(u.font),p=sP(e.ctx,f,e._pointLabels[c]);r[c]=p;const h=nn(e.getIndexAngle(c)+l),g=Math.round(Vc(h)),v=Zg(g,d.x,p.w,0,180),b=Zg(g,d.y,p.h,90,270);lP(n,t,h,v,b)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=dP(e,r,a)}function lP(e,t,n,r,a){const i=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let l=0,c=0;r.start<t.l?(l=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-l)):r.end>t.r&&(l=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+l)),a.start<t.t?(c=(t.t-a.start)/s,e.t=Math.min(e.t,t.t-c)):a.end>t.b&&(c=(a.end-t.b)/s,e.b=Math.max(e.b,t.b+c))}function cP(e,t,n){const r=e.drawingArea,{extra:a,additionalAngle:i,padding:s,size:l}=n,c=e.getPointPosition(t,r+a+s,i),u=Math.round(Vc(nn(c.angle+Ue))),d=hP(c.y,l.h,u),f=fP(u),p=pP(c.x,l.w,f);return{visible:!0,x:c.x,y:d,textAlign:f,left:p,top:d,right:p+l.w,bottom:d+l.h}}function uP(e,t){if(!t)return!0;const{left:n,top:r,right:a,bottom:i}=e;return!(hr({x:n,y:r},t)||hr({x:n,y:i},t)||hr({x:a,y:r},t)||hr({x:a,y:i},t))}function dP(e,t,n){const r=[],a=e._pointLabels.length,i=e.options,{centerPointLabels:s,display:l}=i.pointLabels,c={extra:Jd(i)/2,additionalAngle:s?Ee/a:0};let u;for(let d=0;d<a;d++){c.padding=n[d],c.size=t[d];const f=cP(e,d,c);r.push(f),l==="auto"&&(f.visible=uP(f,u),f.visible&&(u=f))}return r}function fP(e){return e===0||e===180?"center":e<180?"left":"right"}function pP(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function hP(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function mP(e,t,n){const{left:r,top:a,right:i,bottom:s}=n,{backdropColor:l}=t;if(!be(l)){const c=Gr(t.borderRadius),u=ht(t.backdropPadding);e.fillStyle=l;const d=r-u.left,f=a-u.top,p=i-r+u.width,h=s-a+u.height;Object.values(c).some(g=>g!==0)?(e.beginPath(),Pi(e,{x:d,y:f,w:p,h,radius:c}),e.fill()):e.fillRect(d,f,p,h)}}function gP(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let a=t-1;a>=0;a--){const i=e._pointLabelItems[a];if(!i.visible)continue;const s=r.setContext(e.getPointLabelContext(a));mP(n,s,i);const l=it(s.font),{x:c,y:u,textAlign:d}=i;za(n,e._pointLabels[a],c,u+l.lineHeight/2,l,{color:s.color,textAlign:d,textBaseline:"middle"})}}function q_(e,t,n,r){const{ctx:a}=e;if(n)a.arc(e.xCenter,e.yCenter,t,0,We);else{let i=e.getPointPosition(0,t);a.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=e.getPointPosition(s,t),a.lineTo(i.x,i.y)}}function vP(e,t,n,r,a){const i=e.ctx,s=t.circular,{color:l,lineWidth:c}=t;!s&&!r||!l||!c||n<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(a.dash),i.lineDashOffset=a.dashOffset,i.beginPath(),q_(e,n,s,r),i.closePath(),i.stroke(),i.restore())}function _P(e,t,n){return da(e,{label:n,index:t,type:"pointLabel"})}class ms extends cc{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=ht(Jd(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=rt(t)&&!isNaN(t)?t:0,this.max=rt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Jd(this.options))}generateTickLabels(t){cc.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const a=Ie(this.options.pointLabels.callback,[n,r],this);return a||a===0?a:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?oP(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,a){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,a))}getIndexAngle(t){const n=We/(this._pointLabels.length||1),r=this.options.startAngle||0;return nn(t*n+mt(r))}getDistanceFromCenterForValue(t){if(be(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(be(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return _P(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const a=this.getIndexAngle(t)-Ue+r;return{x:Math.cos(a)*n+this.xCenter,y:Math.sin(a)*n+this.yCenter,angle:a}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:a,bottom:i}=this._pointLabelItems[t];return{left:n,top:r,right:a,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),q_(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:a,border:i}=n,s=this._pointLabels.length;let l,c,u;if(n.pointLabels.display&&gP(this,s),a.display&&this.ticks.forEach((d,f)=>{if(f!==0){c=this.getDistanceFromCenterForValue(d.value);const p=this.getContext(f),h=a.setContext(p),g=i.setContext(p);vP(this,h,c,s,g)}}),r.display){for(t.save(),l=s-1;l>=0;l--){const d=r.setContext(this.getPointLabelContext(l)),{color:f,lineWidth:p}=d;!p||!f||(t.lineWidth=p,t.strokeStyle=f,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const a=this.getIndexAngle(0);let i,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&!n.reverse)return;const u=r.setContext(this.getContext(c)),d=it(u.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),u.showLabelBackdrop){t.font=d.string,s=t.measureText(l.label).width,t.fillStyle=u.backdropColor;const f=ht(u.backdropPadding);t.fillRect(-s/2-f.left,-i-d.size/2-f.top,s+f.width,d.size+f.height)}za(t,l.label,0,-i,d,{color:u.color})}),t.restore()}drawTitle(){}}z(ms,"id","radialLinear"),z(ms,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:$c.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),z(ms,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),z(ms,"descriptors",{angleLines:{_fallback:"grid"}});const zc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},qt=Object.keys(zc);function yP(e,t){return e-t}function Qg(e,t){if(be(t))return null;const n=e._adapter,{parser:r,round:a,isoWeekday:i}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),rt(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(a&&(s=a==="week"&&(na(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,a)),+s)}function ev(e,t,n,r){const a=qt.length;for(let i=qt.indexOf(e);i<a-1;++i){const s=zc[qt[i]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(l*s.size))<=r)return qt[i]}return qt[a-1]}function bP(e,t,n,r,a){for(let i=qt.length-1;i>=qt.indexOf(n);i--){const s=qt[i];if(zc[s].common&&e._adapter.diff(a,r,s)>=t-1)return s}return qt[n?qt.indexOf(n):0]}function kP(e){for(let t=qt.indexOf(e)+1,n=qt.length;t<n;++t)if(zc[qt[t]].common)return qt[t]}function tv(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:a}=wp(n,t),i=n[r]>=t?n[r]:n[a];e[i]=!0}}function wP(e,t,n,r){const a=e._adapter,i=+a.startOf(t[0].value,r),s=t[t.length-1].value;let l,c;for(l=i;l<=s;l=+a.add(l,1,r))c=n[l],c>=0&&(t[c].major=!0);return t}function nv(e,t,n){const r=[],a={},i=t.length;let s,l;for(s=0;s<i;++s)l=t[s],a[l]=s,r.push({value:l,major:!1});return i===0||!n?r:wP(e,r,a,n)}class no extends Ya{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),a=this._adapter=new T_._date(t.adapters.date);a.init(n),Cs(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Qg(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:a,max:i,minDefined:s,maxDefined:l}=this.getUserBounds();function c(u){!s&&!isNaN(u.min)&&(a=Math.min(a,u.min)),!l&&!isNaN(u.max)&&(i=Math.max(i,u.max))}(!s||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),a=rt(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),i=rt(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,i-1),this.max=Math.max(a+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const i=this.min,s=this.max,l=nO(a,i,s);return this._unit=n.unit||(r.autoSkip?ev(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):bP(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:kP(this._unit),this.initOffsets(a),t.reverse&&l.reverse(),nv(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,a,i;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?n=1-a:n=(this.getDecimalForValue(t[1])-a)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Ct(n,0,s),r=Ct(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,a=this.options,i=a.time,s=i.unit||ev(i.minUnit,n,r,this._getLabelCapacity(n)),l=le(a.ticks.stepSize,1),c=s==="week"?i.isoWeekday:!1,u=na(c)||c===!0,d={};let f=n,p,h;if(u&&(f=+t.startOf(f,"isoWeek",c)),f=+t.startOf(f,u?"day":s),t.diff(r,n,s)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+s);const g=a.ticks.source==="data"&&this.getDataTimestamps();for(p=f,h=0;p<r;p=+t.add(p,l,s),h++)tv(d,p,g);return(p===r||a.bounds==="ticks"||h===1)&&tv(d,p,g),Object.keys(d).sort((v,b)=>v-b).map(v=>+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const a=this.options.time.displayFormats,i=this._unit,s=n||a[i];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,a){const i=this.options,s=i.ticks.callback;if(s)return Ie(s,[t,n,r],this);const l=i.time.displayFormats,c=this._unit,u=this._majorUnit,d=c&&l[c],f=u&&l[u],p=r[n],h=u&&f&&p&&p.major;return this._adapter.format(t,a||(h?f:d))}generateTickLabels(t){let n,r,a;for(n=0,r=t.length;n<r;++n)a=t[n],a.label=this._tickFormatFunction(a.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,a=mt(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(a),s=Math.sin(a),l=this._resolveTickFontOptions(0).size;return{w:r*i+l*s,h:r*s+l*i}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,i=this._tickFormatFunction(t,0,nv(this,[t],this._majorUnit),a),s=this._getLabelSize(i),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)t=t.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)t.push(Qg(this,a[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return i_(t.sort(yP))}}z(no,"id","time"),z(no,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function _l(e,t,n){let r=0,a=e.length-1,i,s,l,c;n?(t>=e[r].pos&&t<=e[a].pos&&({lo:r,hi:a}=pr(e,"pos",t)),{pos:i,time:l}=e[r],{pos:s,time:c}=e[a]):(t>=e[r].time&&t<=e[a].time&&({lo:r,hi:a}=pr(e,"time",t)),{time:i,pos:l}=e[r],{time:s,pos:c}=e[a]);const u=s-i;return u?l+(c-l)*(t-i)/u:l}class Zd extends no{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=_l(n,this.min),this._tableRange=_l(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,a=[],i=[];let s,l,c,u,d;for(s=0,l=t.length;s<l;++s)u=t[s],u>=n&&u<=r&&a.push(u);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,l=a.length;s<l;++s)d=a[s+1],c=a[s-1],u=a[s],Math.round((d+c)/2)!==u&&i.push({time:u,pos:s/(l-1)});return i}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(_l(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return _l(this._table,r*this._tableRange+this._minPos,!0)}}z(Zd,"id","timeseries"),z(Zd,"defaults",no.defaults);var SP=Object.freeze({__proto__:null,CategoryScale:Gd,LinearScale:Xd,LogarithmicScale:Kd,RadialLinearScale:ms,TimeScale:no,TimeSeriesScale:Zd});const fa=[NM,iD,QD,SP];var xP=typeof global=="object"&&global&&global.Object===Object&&global;const G_=xP;var CP=typeof self=="object"&&self&&self.Object===Object&&self,EP=G_||CP||Function("return this")();const Zn=EP;var TP=Zn.Symbol;const ra=TP;var X_=Object.prototype,OP=X_.hasOwnProperty,MP=X_.toString,ss=ra?ra.toStringTag:void 0;function NP(e){var t=OP.call(e,ss),n=e[ss];try{e[ss]=void 0;var r=!0}catch{}var a=MP.call(e);return r&&(t?e[ss]=n:delete e[ss]),a}var DP=Object.prototype,PP=DP.toString;function AP(e){return PP.call(e)}var IP="[object Null]",LP="[object Undefined]",rv=ra?ra.toStringTag:void 0;function Mo(e){return e==null?e===void 0?LP:IP:rv&&rv in Object(e)?NP(e):AP(e)}function ja(e){return e!=null&&typeof e=="object"}var RP=Array.isArray;const Li=RP;function No(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var BP="[object AsyncFunction]",VP="[object Function]",$P="[object GeneratorFunction]",FP="[object Proxy]";function K_(e){if(!No(e))return!1;var t=Mo(e);return t==VP||t==$P||t==BP||t==FP}var zP=Zn["__core-js_shared__"];const Ku=zP;var av=function(){var e=/[^.]+$/.exec(Ku&&Ku.keys&&Ku.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jP(e){return!!av&&av in e}var HP=Function.prototype,WP=HP.toString;function qa(e){if(e!=null){try{return WP.call(e)}catch{}try{return e+""}catch{}}return""}var UP=/[\\^$.*+?()[\]{}|]/g,YP=/^\[object .+?Constructor\]$/,qP=Function.prototype,GP=Object.prototype,XP=qP.toString,KP=GP.hasOwnProperty,JP=RegExp("^"+XP.call(KP).replace(UP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZP(e){if(!No(e)||jP(e))return!1;var t=K_(e)?JP:YP;return t.test(qa(e))}function QP(e,t){return e==null?void 0:e[t]}function Ga(e,t){var n=QP(e,t);return ZP(n)?n:void 0}var eA=Ga(Zn,"WeakMap");const Qd=eA;var iv=Object.create,tA=function(){function e(){}return function(t){if(!No(t))return{};if(iv)return iv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const nA=tA;function rA(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var aA=function(){try{var e=Ga(Object,"defineProperty");return e({},"",{}),e}catch{}}();const sv=aA;function iA(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var sA=9007199254740991,oA=/^(?:0|[1-9]\d*)$/;function lA(e,t){var n=typeof e;return t=t??sA,!!t&&(n=="number"||n!="symbol"&&oA.test(e))&&e>-1&&e%1==0&&e<t}function J_(e,t,n){t=="__proto__"&&sv?sv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ip(e,t){return e===t||e!==e&&t!==t}var cA=Object.prototype,uA=cA.hasOwnProperty;function Z_(e,t,n){var r=e[t];(!(uA.call(e,t)&&Ip(r,n))||n===void 0&&!(t in e))&&J_(e,t,n)}function jc(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var l=t[i],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),a?J_(n,l,c):Z_(n,l,c)}return n}var dA=9007199254740991;function Q_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dA}function Lp(e){return e!=null&&Q_(e.length)&&!K_(e)}var fA=Object.prototype;function Hc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fA;return e===n}function pA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var hA="[object Arguments]";function ov(e){return ja(e)&&Mo(e)==hA}var ey=Object.prototype,mA=ey.hasOwnProperty,gA=ey.propertyIsEnumerable,vA=ov(function(){return arguments}())?ov:function(e){return ja(e)&&mA.call(e,"callee")&&!gA.call(e,"callee")};const ty=vA;function _A(){return!1}var ny=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lv=ny&&typeof module=="object"&&module&&!module.nodeType&&module,yA=lv&&lv.exports===ny,cv=yA?Zn.Buffer:void 0,bA=cv?cv.isBuffer:void 0,kA=bA||_A;const ro=kA;var wA="[object Arguments]",SA="[object Array]",xA="[object Boolean]",CA="[object Date]",EA="[object Error]",TA="[object Function]",OA="[object Map]",MA="[object Number]",NA="[object Object]",DA="[object RegExp]",PA="[object Set]",AA="[object String]",IA="[object WeakMap]",LA="[object ArrayBuffer]",RA="[object DataView]",BA="[object Float32Array]",VA="[object Float64Array]",$A="[object Int8Array]",FA="[object Int16Array]",zA="[object Int32Array]",jA="[object Uint8Array]",HA="[object Uint8ClampedArray]",WA="[object Uint16Array]",UA="[object Uint32Array]",Xe={};Xe[BA]=Xe[VA]=Xe[$A]=Xe[FA]=Xe[zA]=Xe[jA]=Xe[HA]=Xe[WA]=Xe[UA]=!0;Xe[wA]=Xe[SA]=Xe[LA]=Xe[xA]=Xe[RA]=Xe[CA]=Xe[EA]=Xe[TA]=Xe[OA]=Xe[MA]=Xe[NA]=Xe[DA]=Xe[PA]=Xe[AA]=Xe[IA]=!1;function YA(e){return ja(e)&&Q_(e.length)&&!!Xe[Mo(e)]}function Rp(e){return function(t){return e(t)}}var ry=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ps=ry&&typeof module=="object"&&module&&!module.nodeType&&module,qA=Ps&&Ps.exports===ry,Ju=qA&&G_.process,GA=function(){try{var e=Ps&&Ps.require&&Ps.require("util").types;return e||Ju&&Ju.binding&&Ju.binding("util")}catch{}}();const Ri=GA;var uv=Ri&&Ri.isTypedArray,XA=uv?Rp(uv):YA;const Bp=XA;var KA=Object.prototype,JA=KA.hasOwnProperty;function ay(e,t){var n=Li(e),r=!n&&ty(e),a=!n&&!r&&ro(e),i=!n&&!r&&!a&&Bp(e),s=n||r||a||i,l=s?pA(e.length,String):[],c=l.length;for(var u in e)(t||JA.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lA(u,c)))&&l.push(u);return l}function iy(e,t){return function(n){return e(t(n))}}var ZA=iy(Object.keys,Object);const QA=ZA;var eI=Object.prototype,tI=eI.hasOwnProperty;function sy(e){if(!Hc(e))return QA(e);var t=[];for(var n in Object(e))tI.call(e,n)&&n!="constructor"&&t.push(n);return t}function Vp(e){return Lp(e)?ay(e):sy(e)}function nI(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var rI=Object.prototype,aI=rI.hasOwnProperty;function iI(e){if(!No(e))return nI(e);var t=Hc(e),n=[];for(var r in e)r=="constructor"&&(t||!aI.call(e,r))||n.push(r);return n}function $p(e){return Lp(e)?ay(e,!0):iI(e)}var sI=Ga(Object,"create");const ao=sI;function oI(){this.__data__=ao?ao(null):{},this.size=0}function lI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cI="__lodash_hash_undefined__",uI=Object.prototype,dI=uI.hasOwnProperty;function fI(e){var t=this.__data__;if(ao){var n=t[e];return n===cI?void 0:n}return dI.call(t,e)?t[e]:void 0}var pI=Object.prototype,hI=pI.hasOwnProperty;function mI(e){var t=this.__data__;return ao?t[e]!==void 0:hI.call(t,e)}var gI="__lodash_hash_undefined__";function vI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ao&&t===void 0?gI:t,this}function Ha(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ha.prototype.clear=oI;Ha.prototype.delete=lI;Ha.prototype.get=fI;Ha.prototype.has=mI;Ha.prototype.set=vI;function _I(){this.__data__=[],this.size=0}function Wc(e,t){for(var n=e.length;n--;)if(Ip(e[n][0],t))return n;return-1}var yI=Array.prototype,bI=yI.splice;function kI(e){var t=this.__data__,n=Wc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():bI.call(t,n,1),--this.size,!0}function wI(e){var t=this.__data__,n=Wc(t,e);return n<0?void 0:t[n][1]}function SI(e){return Wc(this.__data__,e)>-1}function xI(e,t){var n=this.__data__,r=Wc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Tr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tr.prototype.clear=_I;Tr.prototype.delete=kI;Tr.prototype.get=wI;Tr.prototype.has=SI;Tr.prototype.set=xI;var CI=Ga(Zn,"Map");const io=CI;function EI(){this.size=0,this.__data__={hash:new Ha,map:new(io||Tr),string:new Ha}}function TI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Uc(e,t){var n=e.__data__;return TI(t)?n[typeof t=="string"?"string":"hash"]:n.map}function OI(e){var t=Uc(this,e).delete(e);return this.size-=t?1:0,t}function MI(e){return Uc(this,e).get(e)}function NI(e){return Uc(this,e).has(e)}function DI(e,t){var n=Uc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xa.prototype.clear=EI;Xa.prototype.delete=OI;Xa.prototype.get=MI;Xa.prototype.has=NI;Xa.prototype.set=DI;function oy(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var PI=iy(Object.getPrototypeOf,Object);const ly=PI;function AI(){this.__data__=new Tr,this.size=0}function II(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function LI(e){return this.__data__.get(e)}function RI(e){return this.__data__.has(e)}var BI=200;function VI(e,t){var n=this.__data__;if(n instanceof Tr){var r=n.__data__;if(!io||r.length<BI-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xa(r)}return n.set(e,t),this.size=n.size,this}function _r(e){var t=this.__data__=new Tr(e);this.size=t.size}_r.prototype.clear=AI;_r.prototype.delete=II;_r.prototype.get=LI;_r.prototype.has=RI;_r.prototype.set=VI;function $I(e,t){return e&&jc(t,Vp(t),e)}function FI(e,t){return e&&jc(t,$p(t),e)}var cy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dv=cy&&typeof module=="object"&&module&&!module.nodeType&&module,zI=dv&&dv.exports===cy,fv=zI?Zn.Buffer:void 0,pv=fv?fv.allocUnsafe:void 0;function jI(e,t){if(t)return e.slice();var n=e.length,r=pv?pv(n):new e.constructor(n);return e.copy(r),r}function HI(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}function uy(){return[]}var WI=Object.prototype,UI=WI.propertyIsEnumerable,hv=Object.getOwnPropertySymbols,YI=hv?function(e){return e==null?[]:(e=Object(e),HI(hv(e),function(t){return UI.call(e,t)}))}:uy;const Fp=YI;function qI(e,t){return jc(e,Fp(e),t)}var GI=Object.getOwnPropertySymbols,XI=GI?function(e){for(var t=[];e;)oy(t,Fp(e)),e=ly(e);return t}:uy;const dy=XI;function KI(e,t){return jc(e,dy(e),t)}function fy(e,t,n){var r=t(e);return Li(e)?r:oy(r,n(e))}function ef(e){return fy(e,Vp,Fp)}function JI(e){return fy(e,$p,dy)}var ZI=Ga(Zn,"DataView");const tf=ZI;var QI=Ga(Zn,"Promise");const nf=QI;var eL=Ga(Zn,"Set");const rf=eL;var mv="[object Map]",tL="[object Object]",gv="[object Promise]",vv="[object Set]",_v="[object WeakMap]",yv="[object DataView]",nL=qa(tf),rL=qa(io),aL=qa(nf),iL=qa(rf),sL=qa(Qd),wa=Mo;(tf&&wa(new tf(new ArrayBuffer(1)))!=yv||io&&wa(new io)!=mv||nf&&wa(nf.resolve())!=gv||rf&&wa(new rf)!=vv||Qd&&wa(new Qd)!=_v)&&(wa=function(e){var t=Mo(e),n=t==tL?e.constructor:void 0,r=n?qa(n):"";if(r)switch(r){case nL:return yv;case rL:return mv;case aL:return gv;case iL:return vv;case sL:return _v}return t});const Bi=wa;var oL=Object.prototype,lL=oL.hasOwnProperty;function cL(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&lL.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var uL=Zn.Uint8Array;const uc=uL;function zp(e){var t=new e.constructor(e.byteLength);return new uc(t).set(new uc(e)),t}function dL(e,t){var n=t?zp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var fL=/\w*$/;function pL(e){var t=new e.constructor(e.source,fL.exec(e));return t.lastIndex=e.lastIndex,t}var bv=ra?ra.prototype:void 0,kv=bv?bv.valueOf:void 0;function hL(e){return kv?Object(kv.call(e)):{}}function mL(e,t){var n=t?zp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var gL="[object Boolean]",vL="[object Date]",_L="[object Map]",yL="[object Number]",bL="[object RegExp]",kL="[object Set]",wL="[object String]",SL="[object Symbol]",xL="[object ArrayBuffer]",CL="[object DataView]",EL="[object Float32Array]",TL="[object Float64Array]",OL="[object Int8Array]",ML="[object Int16Array]",NL="[object Int32Array]",DL="[object Uint8Array]",PL="[object Uint8ClampedArray]",AL="[object Uint16Array]",IL="[object Uint32Array]";function LL(e,t,n){var r=e.constructor;switch(t){case xL:return zp(e);case gL:case vL:return new r(+e);case CL:return dL(e,n);case EL:case TL:case OL:case ML:case NL:case DL:case PL:case AL:case IL:return mL(e,n);case _L:return new r;case yL:case wL:return new r(e);case bL:return pL(e);case kL:return new r;case SL:return hL(e)}}function RL(e){return typeof e.constructor=="function"&&!Hc(e)?nA(ly(e)):{}}var BL="[object Map]";function VL(e){return ja(e)&&Bi(e)==BL}var wv=Ri&&Ri.isMap,$L=wv?Rp(wv):VL;const FL=$L;var zL="[object Set]";function jL(e){return ja(e)&&Bi(e)==zL}var Sv=Ri&&Ri.isSet,HL=Sv?Rp(Sv):jL;const WL=HL;var UL=1,YL=2,qL=4,py="[object Arguments]",GL="[object Array]",XL="[object Boolean]",KL="[object Date]",JL="[object Error]",hy="[object Function]",ZL="[object GeneratorFunction]",QL="[object Map]",eR="[object Number]",my="[object Object]",tR="[object RegExp]",nR="[object Set]",rR="[object String]",aR="[object Symbol]",iR="[object WeakMap]",sR="[object ArrayBuffer]",oR="[object DataView]",lR="[object Float32Array]",cR="[object Float64Array]",uR="[object Int8Array]",dR="[object Int16Array]",fR="[object Int32Array]",pR="[object Uint8Array]",hR="[object Uint8ClampedArray]",mR="[object Uint16Array]",gR="[object Uint32Array]",He={};He[py]=He[GL]=He[sR]=He[oR]=He[XL]=He[KL]=He[lR]=He[cR]=He[uR]=He[dR]=He[fR]=He[QL]=He[eR]=He[my]=He[tR]=He[nR]=He[rR]=He[aR]=He[pR]=He[hR]=He[mR]=He[gR]=!0;He[JL]=He[hy]=He[iR]=!1;function $l(e,t,n,r,a,i){var s,l=t&UL,c=t&YL,u=t&qL;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!No(e))return e;var d=Li(e);if(d){if(s=cL(e),!l)return rA(e,s)}else{var f=Bi(e),p=f==hy||f==ZL;if(ro(e))return jI(e,l);if(f==my||f==py||p&&!a){if(s=c||p?{}:RL(e),!l)return c?KI(e,FI(s,e)):qI(e,$I(s,e))}else{if(!He[f])return a?e:{};s=LL(e,f,l)}}i||(i=new _r);var h=i.get(e);if(h)return h;i.set(e,s),WL(e)?e.forEach(function(b){s.add($l(b,t,n,b,e,i))}):FL(e)&&e.forEach(function(b,m){s.set(m,$l(b,t,n,m,e,i))});var g=u?c?JI:ef:c?$p:Vp,v=d?void 0:g(e);return iA(v||e,function(b,m){v&&(m=b,b=e[m]),Z_(s,m,$l(b,t,n,m,e,i))}),s}var vR=1,_R=4;function os(e){return $l(e,vR|_R)}var yR="__lodash_hash_undefined__";function bR(e){return this.__data__.set(e,yR),this}function kR(e){return this.__data__.has(e)}function dc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xa;++t<n;)this.add(e[t])}dc.prototype.add=dc.prototype.push=bR;dc.prototype.has=kR;function wR(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function SR(e,t){return e.has(t)}var xR=1,CR=2;function gy(e,t,n,r,a,i){var s=n&xR,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=n&CR?new dc:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var g=e[f],v=t[f];if(r)var b=s?r(v,g,f,t,e,i):r(g,v,f,e,t,i);if(b!==void 0){if(b)continue;p=!1;break}if(h){if(!wR(t,function(m,y){if(!SR(h,y)&&(g===m||a(g,m,n,r,i)))return h.push(y)})){p=!1;break}}else if(!(g===v||a(g,v,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function ER(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function TR(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var OR=1,MR=2,NR="[object Boolean]",DR="[object Date]",PR="[object Error]",AR="[object Map]",IR="[object Number]",LR="[object RegExp]",RR="[object Set]",BR="[object String]",VR="[object Symbol]",$R="[object ArrayBuffer]",FR="[object DataView]",xv=ra?ra.prototype:void 0,Zu=xv?xv.valueOf:void 0;function zR(e,t,n,r,a,i,s){switch(n){case FR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $R:return!(e.byteLength!=t.byteLength||!i(new uc(e),new uc(t)));case NR:case DR:case IR:return Ip(+e,+t);case PR:return e.name==t.name&&e.message==t.message;case LR:case BR:return e==t+"";case AR:var l=ER;case RR:var c=r&OR;if(l||(l=TR),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=MR,s.set(e,t);var d=gy(l(e),l(t),r,a,i,s);return s.delete(e),d;case VR:if(Zu)return Zu.call(e)==Zu.call(t)}return!1}var jR=1,HR=Object.prototype,WR=HR.hasOwnProperty;function UR(e,t,n,r,a,i){var s=n&jR,l=ef(e),c=l.length,u=ef(t),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in t:WR.call(t,p)))return!1}var h=i.get(e),g=i.get(t);if(h&&g)return h==t&&g==e;var v=!0;i.set(e,t),i.set(t,e);for(var b=s;++f<c;){p=l[f];var m=e[p],y=t[p];if(r)var k=s?r(y,m,p,t,e,i):r(m,y,p,e,t,i);if(!(k===void 0?m===y||a(m,y,n,r,i):k)){v=!1;break}b||(b=p=="constructor")}if(v&&!b){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(v=!1)}return i.delete(e),i.delete(t),v}var YR=1,Cv="[object Arguments]",Ev="[object Array]",yl="[object Object]",qR=Object.prototype,Tv=qR.hasOwnProperty;function GR(e,t,n,r,a,i){var s=Li(e),l=Li(t),c=s?Ev:Bi(e),u=l?Ev:Bi(t);c=c==Cv?yl:c,u=u==Cv?yl:u;var d=c==yl,f=u==yl,p=c==u;if(p&&ro(e)){if(!ro(t))return!1;s=!0,d=!1}if(p&&!d)return i||(i=new _r),s||Bp(e)?gy(e,t,n,r,a,i):zR(e,t,c,n,r,a,i);if(!(n&YR)){var h=d&&Tv.call(e,"__wrapped__"),g=f&&Tv.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,b=g?t.value():t;return i||(i=new _r),a(v,b,n,r,i)}}return p?(i||(i=new _r),UR(e,t,n,r,a,i)):!1}function vy(e,t,n,r,a){return e===t?!0:e==null||t==null||!ja(e)&&!ja(t)?e!==e&&t!==t:GR(e,t,n,r,vy,a)}var XR="[object Map]",KR="[object Set]",JR=Object.prototype,ZR=JR.hasOwnProperty;function QR(e){if(e==null)return!0;if(Lp(e)&&(Li(e)||typeof e=="string"||typeof e.splice=="function"||ro(e)||Bp(e)||ty(e)))return!e.length;var t=Bi(e);if(t==XR||t==KR)return!e.size;if(Hc(e))return!sy(e).length;for(var n in e)if(ZR.call(e,n))return!1;return!0}function Ov(e,t){return vy(e,t)}var eB=Object.defineProperty,tB=Object.defineProperties,nB=Object.getOwnPropertyDescriptors,Mv=Object.getOwnPropertySymbols,rB=Object.prototype.hasOwnProperty,aB=Object.prototype.propertyIsEnumerable,Nv=(e,t,n)=>t in e?eB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iB=(e,t)=>{for(var n in t||(t={}))rB.call(t,n)&&Nv(e,n,t[n]);if(Mv)for(var n of Mv(t))aB.call(t,n)&&Nv(e,n,t[n]);return e},sB=(e,t)=>tB(e,nB(t));function oB(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var pa=(e,t)=>{const n={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},r=oB(e);return o.defineComponent({name:r,props:n,emits:{"labels:update":()=>!0,"chart:update":a=>!0,"chart:destroy":()=>!0,"chart:render":a=>!0},setup(a,{emit:i,expose:s}){const l=o.ref(null),c=`${a.chartId}`;let u=o.shallowRef(null);o.watch(()=>a.chartData,d,{deep:!0}),o.watch(()=>a.options,b=>{u.value&&b&&(u.value.options=os(b),g())},{deep:!0});function d(b){if(u.value){let m=u.value;Ov(b.labels,u.value.data.labels)||(m.data.labels=b.labels,p()),Ov(b.datasets,u.value.data.datasets)||b.datasets.forEach((y,k)=>{var _,w;if(QR(y))m.data.datasets=[];else{const S=os(m.data),C=Object.keys((w=(_=S.datasets)==null?void 0:_[k])!=null?w:{}),E=Object.keys(y);C.filter(L=>L!=="_meta"&&E.indexOf(L)===-1).forEach(L=>{m.data.datasets[k]&&delete m.data.datasets[k][L]});for(const L in y){const D=os(y[L]);m.data.datasets[k]||(m.data.datasets[k]={}),y.hasOwnProperty(L)&&D!=null&&m&&(m.data.datasets[k][L]=D)}}}),g()}else u.value&&v(),f()}function f(){l.value?(u.value=new Re(l.value,{data:os(a.chartData),type:t,options:os(a.options),plugins:a.plugins}),h()):console.error(`Error on component ${r}, canvas cannot be rendered. Check if the render appends server-side`)}function p(){i("labels:update"),a.onLabelsUpdate&&a.onLabelsUpdate()}function h(){u.value&&(i("chart:render",u.value),a.onChartRender&&a.onChartRender(u.value))}function g(){u.value&&(u.value.update(),i("chart:update",u.value),a.onChartUpdate&&a.onChartUpdate(u.value))}function v(){u.value&&u.value.destroy(),i("chart:destroy"),a.onChartDestroy&&a.onChartDestroy()}return o.onMounted(f),o.onBeforeUnmount(()=>{u.value&&u.value.destroy()}),s({canvasRef:l,renderChart:f,chartInstance:u,canvasId:c,update:g}),()=>o.h("div",{style:sB(iB({maxWidth:"100%"},a.styles),{position:"relative"}),class:a.cssClasses},[o.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:c,width:a.width,height:a.height,ref:l})])}})},Yc=pa("bar-chart","bar"),_y=pa("doughnut-chart","doughnut"),yy=pa("line-chart","line");pa("pie-chart","pie");pa("polar-chart","polarArea");pa("radar-chart","radar");pa("bubble-chart","bubble");pa("scatter-chart","scatter");const fc=o.defineComponent({__name:"InfoDoughnutChart",props:bT,setup(e){const t=e,n=o.ref(null);Re.register(...fa);const r=o.computed(()=>{const i=t.info==="typeRef"?"types":"rarities",s={},l=vt(t.deckCode);for(const u in l){const d=Pt().cardJsonObject[u];if(d===void 0)continue;let f=d[t.info];f==="Unit"&&(f=d.supertype==="Champion"?"Champion":"Follower"),s[f]===void 0&&(s[f]=0),s[f]+=l[u]}const c=[];for(const u in s){const d=_e().dataJson[i].find(p=>p.nameRef===u),f={key:u,value:s[u],color:d.color,name:d.name,order:d.order};c.push(f)}return console.log(c),c.sort((u,d)=>u.order-d.order),{labels:c.map(u=>u.name),datasets:[{data:c.map(u=>u.value),backgroundColor:c.map(u=>u.color)}]}}),a={cutout:55,layout:{padding:{top:10,bottom:10}},elements:{arc:{borderWidth:0}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(i){const s=[],l=i.data.labels;for(let c=0;c<i.data.labels.length;c++)s.push({text:`${l[c]} (${i.data.datasets[0].data[c]})`,borderRadius:999,datasetIndex:0,index:c,fontColor:Vs("--color-0"),fillStyle:i.data.datasets[0].backgroundColor[c]});return s}}},datalabels:{display:!1}}};return(i,s)=>(o.openBlock(),o.createBlock(o.unref(_y),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),lB={deck:{type:Object,required:!1,default:void 0},deckCode:{type:String,required:!1,default:void 0},paddingTop:{type:Number,required:!1,default:10},showDataLabels:{type:Boolean,required:!1,default:!0},dataLabelsOffset:{type:Number,required:!1,default:-10},tooltipsEnabled:{type:Boolean,required:!1,default:!0},displayXScale:{type:Boolean,required:!1,default:!0},animation:{type:Boolean,required:!1}};//! moment.js
|
|
828
|
+
//! version : 2.29.4
|
|
829
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
830
|
+
//! license : MIT
|
|
831
|
+
//! momentjs.com
|
|
832
|
+
var by;function j(){return by.apply(null,arguments)}function cB(e){by=e}function Dn(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Pa(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function De(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function jp(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(De(e,t))return!1;return!0}function Ht(e){return e===void 0}function Cr(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Do(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ky(e,t){var n=[],r,a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function Ur(e,t){for(var n in t)De(t,n)&&(e[n]=t[n]);return De(t,"toString")&&(e.toString=t.toString),De(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Qn(e,t,n,r){return Uy(e,t,n,r,!0).utc()}function uB(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function me(e){return e._pf==null&&(e._pf=uB()),e._pf}var af;Array.prototype.some?af=Array.prototype.some:af=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Hp(e){if(e._isValid==null){var t=me(e),n=af.call(t.parsedDateParts,function(a){return a!=null}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function qc(e){var t=Qn(NaN);return e!=null?Ur(me(t),e):me(t).userInvalidated=!0,t}var Dv=j.momentProperties=[],Qu=!1;function Wp(e,t){var n,r,a,i=Dv.length;if(Ht(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Ht(t._i)||(e._i=t._i),Ht(t._f)||(e._f=t._f),Ht(t._l)||(e._l=t._l),Ht(t._strict)||(e._strict=t._strict),Ht(t._tzm)||(e._tzm=t._tzm),Ht(t._isUTC)||(e._isUTC=t._isUTC),Ht(t._offset)||(e._offset=t._offset),Ht(t._pf)||(e._pf=me(t)),Ht(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=Dv[n],a=t[r],Ht(a)||(e[r]=a);return e}function Po(e){Wp(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Qu===!1&&(Qu=!0,j.updateOffset(this),Qu=!1)}function Pn(e){return e instanceof Po||e!=null&&e._isAMomentObject!=null}function wy(e){j.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function kn(e,t){var n=!0;return Ur(function(){if(j.deprecationHandler!=null&&j.deprecationHandler(null,e),n){var r=[],a,i,s,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
|
|
833
|
+
[`+i+"] ";for(s in arguments[0])De(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];r.push(a)}wy(e+`
|
|
834
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
835
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Pv={};function Sy(e,t){j.deprecationHandler!=null&&j.deprecationHandler(e,t),Pv[e]||(wy(t),Pv[e]=!0)}j.suppressDeprecationWarnings=!1;j.deprecationHandler=null;function er(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function dB(e){var t,n;for(n in e)De(e,n)&&(t=e[n],er(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function sf(e,t){var n=Ur({},e),r;for(r in t)De(t,r)&&(Pa(e[r])&&Pa(t[r])?(n[r]={},Ur(n[r],e[r]),Ur(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)De(e,r)&&!De(t,r)&&Pa(e[r])&&(n[r]=Ur({},n[r]));return n}function Up(e){e!=null&&this.set(e)}var of;Object.keys?of=Object.keys:of=function(e){var t,n=[];for(t in e)De(e,t)&&n.push(t);return n};var fB={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function pB(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return er(r)?r.call(t,n):r}function Kn(e,t,n){var r=""+Math.abs(e),a=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var Yp=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,bl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ed={},vi={};function ae(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(vi[e]=a),t&&(vi[t[0]]=function(){return Kn(a.apply(this,arguments),t[1],t[2])}),n&&(vi[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function hB(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function mB(e){var t=e.match(Yp),n,r;for(n=0,r=t.length;n<r;n++)vi[t[n]]?t[n]=vi[t[n]]:t[n]=hB(t[n]);return function(a){var i="",s;for(s=0;s<r;s++)i+=er(t[s])?t[s].call(a,e):t[s];return i}}function Fl(e,t){return e.isValid()?(t=xy(t,e.localeData()),ed[t]=ed[t]||mB(t),ed[t](e)):e.localeData().invalidDate()}function xy(e,t){var n=5;function r(a){return t.longDateFormat(a)||a}for(bl.lastIndex=0;n>=0&&bl.test(e);)e=e.replace(bl,r),bl.lastIndex=0,n-=1;return e}var gB={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function vB(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Yp).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var _B="Invalid date";function yB(){return this._invalidDate}var bB="%d",kB=/\d{1,2}/;function wB(e){return this._ordinal.replace("%d",e)}var SB={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function xB(e,t,n,r){var a=this._relativeTime[n];return er(a)?a(e,t,n,r):a.replace(/%d/i,e)}function CB(e,t){var n=this._relativeTime[e>0?"future":"past"];return er(n)?n(t):n.replace(/%s/i,t)}var As={};function At(e,t){var n=e.toLowerCase();As[n]=As[n+"s"]=As[t]=e}function wn(e){return typeof e=="string"?As[e]||As[e.toLowerCase()]:void 0}function qp(e){var t={},n,r;for(r in e)De(e,r)&&(n=wn(r),n&&(t[n]=e[r]));return t}var Cy={};function It(e,t){Cy[e]=t}function EB(e){var t=[],n;for(n in e)De(e,n)&&t.push({unit:n,priority:Cy[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}function Gc(e){return e%4===0&&e%100!==0||e%400===0}function vn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ke(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=vn(t)),n}function Hi(e,t){return function(n){return n!=null?(Ey(this,e,n),j.updateOffset(this,t),this):pc(this,e)}}function pc(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ey(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&Gc(e.year())&&e.month()===1&&e.date()===29?(n=ke(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),eu(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function TB(e){return e=wn(e),er(this[e])?this[e]():this}function OB(e,t){if(typeof e=="object"){e=qp(e);var n=EB(e),r,a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(e=wn(e),er(this[e]))return this[e](t);return this}var Ty=/\d/,dn=/\d\d/,Oy=/\d{3}/,Gp=/\d{4}/,Xc=/[+-]?\d{6}/,Qe=/\d\d?/,My=/\d\d\d\d?/,Ny=/\d\d\d\d\d\d?/,Kc=/\d{1,3}/,Xp=/\d{1,4}/,Jc=/[+-]?\d{1,6}/,Wi=/\d+/,Zc=/[+-]?\d+/,MB=/Z|[+-]\d\d:?\d\d/gi,Qc=/Z|[+-]\d\d(?::?\d\d)?/gi,NB=/[+-]?\d+(\.\d{1,3})?/,Ao=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,hc;hc={};function G(e,t,n){hc[e]=er(t)?t:function(r,a){return r&&n?n:t}}function DB(e,t){return De(hc,e)?hc[e](t._strict,t._locale):new RegExp(PB(e))}function PB(e){return an(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,i){return n||r||a||i}))}function an(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var lf={};function $e(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),Cr(t)&&(r=function(i,s){s[t]=ke(i)}),a=e.length,n=0;n<a;n++)lf[e[n]]=r}function Io(e,t){$e(e,function(n,r,a,i){a._w=a._w||{},t(n,a._w,a,i)})}function AB(e,t,n){t!=null&&De(lf,e)&&lf[e](t,n._a,n,e)}var Dt=0,mr=1,jn=2,kt=3,On=4,gr=5,Ta=6,IB=7,LB=8;function RB(e,t){return(e%t+t)%t}var ft;Array.prototype.indexOf?ft=Array.prototype.indexOf:ft=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function eu(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=RB(t,12);return e+=(t-n)/12,n===1?Gc(e)?29:28:31-n%7%2}ae("M",["MM",2],"Mo",function(){return this.month()+1});ae("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});ae("MMMM",0,0,function(e){return this.localeData().months(this,e)});At("month","M");It("month",8);G("M",Qe);G("MM",Qe,dn);G("MMM",function(e,t){return t.monthsShortRegex(e)});G("MMMM",function(e,t){return t.monthsRegex(e)});$e(["M","MM"],function(e,t){t[mr]=ke(e)-1});$e(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);a!=null?t[mr]=a:me(n).invalidMonth=e});var BB="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Py=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,VB=Ao,$B=Ao;function FB(e,t){return e?Dn(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Py).test(t)?"format":"standalone"][e.month()]:Dn(this._months)?this._months:this._months.standalone}function zB(e,t){return e?Dn(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Py.test(t)?"format":"standalone"][e.month()]:Dn(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function jB(e,t,n){var r,a,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Qn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(a=ft.call(this._shortMonthsParse,s),a!==-1?a:null):(a=ft.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=ft.call(this._shortMonthsParse,s),a!==-1?a:(a=ft.call(this._longMonthsParse,s),a!==-1?a:null)):(a=ft.call(this._longMonthsParse,s),a!==-1?a:(a=ft.call(this._shortMonthsParse,s),a!==-1?a:null))}function HB(e,t,n){var r,a,i;if(this._monthsParseExact)return jB.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=Qn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Ay(e,t){var n;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ke(t);else if(t=e.localeData().monthsParse(t),!Cr(t))return e}return n=Math.min(e.date(),eu(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Iy(e){return e!=null?(Ay(this,e),j.updateOffset(this,!0),this):pc(this,"Month")}function WB(){return eu(this.year(),this.month())}function UB(e){return this._monthsParseExact?(De(this,"_monthsRegex")||Ly.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(De(this,"_monthsShortRegex")||(this._monthsShortRegex=VB),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function YB(e){return this._monthsParseExact?(De(this,"_monthsRegex")||Ly.call(this),e?this._monthsStrictRegex:this._monthsRegex):(De(this,"_monthsRegex")||(this._monthsRegex=$B),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ly(){function e(s,l){return l.length-s.length}var t=[],n=[],r=[],a,i;for(a=0;a<12;a++)i=Qn([2e3,a]),t.push(this.monthsShort(i,"")),n.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(t.sort(e),n.sort(e),r.sort(e),a=0;a<12;a++)t[a]=an(t[a]),n[a]=an(n[a]);for(a=0;a<24;a++)r[a]=an(r[a]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}ae("Y",0,0,function(){var e=this.year();return e<=9999?Kn(e,4):"+"+e});ae(0,["YY",2],0,function(){return this.year()%100});ae(0,["YYYY",4],0,"year");ae(0,["YYYYY",5],0,"year");ae(0,["YYYYYY",6,!0],0,"year");At("year","y");It("year",1);G("Y",Zc);G("YY",Qe,dn);G("YYYY",Xp,Gp);G("YYYYY",Jc,Xc);G("YYYYYY",Jc,Xc);$e(["YYYYY","YYYYYY"],Dt);$e("YYYY",function(e,t){t[Dt]=e.length===2?j.parseTwoDigitYear(e):ke(e)});$e("YY",function(e,t){t[Dt]=j.parseTwoDigitYear(e)});$e("Y",function(e,t){t[Dt]=parseInt(e,10)});function Is(e){return Gc(e)?366:365}j.parseTwoDigitYear=function(e){return ke(e)+(ke(e)>68?1900:2e3)};var Ry=Hi("FullYear",!0);function qB(){return Gc(this.year())}function GB(e,t,n,r,a,i,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,a,i,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,s),l}function so(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function mc(e,t,n){var r=7+t-n,a=(7+so(e,0,r).getUTCDay()-t)%7;return-a+r-1}function By(e,t,n,r,a){var i=(7+n-r)%7,s=mc(e,r,a),l=1+7*(t-1)+i+s,c,u;return l<=0?(c=e-1,u=Is(c)+l):l>Is(e)?(c=e+1,u=l-Is(e)):(c=e,u=l),{year:c,dayOfYear:u}}function oo(e,t,n){var r=mc(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,i,s;return a<1?(s=e.year()-1,i=a+yr(s,t,n)):a>yr(e.year(),t,n)?(i=a-yr(e.year(),t,n),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function yr(e,t,n){var r=mc(e,t,n),a=mc(e+1,t,n);return(Is(e)-r+a)/7}ae("w",["ww",2],"wo","week");ae("W",["WW",2],"Wo","isoWeek");At("week","w");At("isoWeek","W");It("week",5);It("isoWeek",5);G("w",Qe);G("ww",Qe,dn);G("W",Qe);G("WW",Qe,dn);Io(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ke(e)});function XB(e){return oo(e,this._week.dow,this._week.doy).week}var KB={dow:0,doy:6};function JB(){return this._week.dow}function ZB(){return this._week.doy}function QB(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function eV(e){var t=oo(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ae("d",0,"do","day");ae("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ae("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ae("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ae("e",0,0,"weekday");ae("E",0,0,"isoWeekday");At("day","d");At("weekday","e");At("isoWeekday","E");It("day",11);It("weekday",11);It("isoWeekday",11);G("d",Qe);G("e",Qe);G("E",Qe);G("dd",function(e,t){return t.weekdaysMinRegex(e)});G("ddd",function(e,t){return t.weekdaysShortRegex(e)});G("dddd",function(e,t){return t.weekdaysRegex(e)});Io(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:me(n).invalidWeekday=e});Io(["d","e","E"],function(e,t,n,r){t[r]=ke(e)});function tV(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function nV(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Kp(e,t){return e.slice(t,7).concat(e.slice(0,t))}var rV="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vy="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),aV="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),iV=Ao,sV=Ao,oV=Ao;function lV(e,t){var n=Dn(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Kp(n,this._week.dow):e?n[e.day()]:n}function cV(e){return e===!0?Kp(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function uV(e){return e===!0?Kp(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function dV(e,t,n){var r,a,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Qn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(a=ft.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=ft.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=ft.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=ft.call(this._weekdaysParse,s),a!==-1||(a=ft.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=ft.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=ft.call(this._shortWeekdaysParse,s),a!==-1||(a=ft.call(this._weekdaysParse,s),a!==-1)?a:(a=ft.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=ft.call(this._minWeekdaysParse,s),a!==-1||(a=ft.call(this._weekdaysParse,s),a!==-1)?a:(a=ft.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function fV(e,t,n){var r,a,i;if(this._weekdaysParseExact)return dV.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Qn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function pV(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=tV(e,this.localeData()),this.add(e-t,"d")):t}function hV(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function mV(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=nV(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function gV(e){return this._weekdaysParseExact?(De(this,"_weekdaysRegex")||Jp.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(De(this,"_weekdaysRegex")||(this._weekdaysRegex=iV),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function vV(e){return this._weekdaysParseExact?(De(this,"_weekdaysRegex")||Jp.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(De(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=sV),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function _V(e){return this._weekdaysParseExact?(De(this,"_weekdaysRegex")||Jp.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(De(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oV),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jp(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],a=[],i,s,l,c,u;for(i=0;i<7;i++)s=Qn([2e3,1]).day(i),l=an(this.weekdaysMin(s,"")),c=an(this.weekdaysShort(s,"")),u=an(this.weekdays(s,"")),t.push(l),n.push(c),r.push(u),a.push(l),a.push(c),a.push(u);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Zp(){return this.hours()%12||12}function yV(){return this.hours()||24}ae("H",["HH",2],0,"hour");ae("h",["hh",2],0,Zp);ae("k",["kk",2],0,yV);ae("hmm",0,0,function(){return""+Zp.apply(this)+Kn(this.minutes(),2)});ae("hmmss",0,0,function(){return""+Zp.apply(this)+Kn(this.minutes(),2)+Kn(this.seconds(),2)});ae("Hmm",0,0,function(){return""+this.hours()+Kn(this.minutes(),2)});ae("Hmmss",0,0,function(){return""+this.hours()+Kn(this.minutes(),2)+Kn(this.seconds(),2)});function $y(e,t){ae(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}$y("a",!0);$y("A",!1);At("hour","h");It("hour",13);function Fy(e,t){return t._meridiemParse}G("a",Fy);G("A",Fy);G("H",Qe);G("h",Qe);G("k",Qe);G("HH",Qe,dn);G("hh",Qe,dn);G("kk",Qe,dn);G("hmm",My);G("hmmss",Ny);G("Hmm",My);G("Hmmss",Ny);$e(["H","HH"],kt);$e(["k","kk"],function(e,t,n){var r=ke(e);t[kt]=r===24?0:r});$e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});$e(["h","hh"],function(e,t,n){t[kt]=ke(e),me(n).bigHour=!0});$e("hmm",function(e,t,n){var r=e.length-2;t[kt]=ke(e.substr(0,r)),t[On]=ke(e.substr(r)),me(n).bigHour=!0});$e("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[kt]=ke(e.substr(0,r)),t[On]=ke(e.substr(r,2)),t[gr]=ke(e.substr(a)),me(n).bigHour=!0});$e("Hmm",function(e,t,n){var r=e.length-2;t[kt]=ke(e.substr(0,r)),t[On]=ke(e.substr(r))});$e("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[kt]=ke(e.substr(0,r)),t[On]=ke(e.substr(r,2)),t[gr]=ke(e.substr(a))});function bV(e){return(e+"").toLowerCase().charAt(0)==="p"}var kV=/[ap]\.?m?\.?/i,wV=Hi("Hours",!0);function SV(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var zy={calendar:fB,longDateFormat:gB,invalidDate:_B,ordinal:bB,dayOfMonthOrdinalParse:kB,relativeTime:SB,months:BB,monthsShort:Dy,week:KB,weekdays:rV,weekdaysMin:aV,weekdaysShort:Vy,meridiemParse:kV},tt={},ls={},lo;function xV(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Av(e){return e&&e.toLowerCase().replace("_","-")}function CV(e){for(var t=0,n,r,a,i;t<e.length;){for(i=Av(e[t]).split("-"),n=i.length,r=Av(e[t+1]),r=r?r.split("-"):null;n>0;){if(a=tu(i.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&xV(i,r)>=n-1)break;n--}t++}return lo}function EV(e){return e.match("^[^/\\\\]*$")!=null}function tu(e){var t=null,n;if(tt[e]===void 0&&typeof module<"u"&&module&&module.exports&&EV(e))try{t=lo._abbr,n=require,n("./locale/"+e),Xr(t)}catch{tt[e]=null}return tt[e]}function Xr(e,t){var n;return e&&(Ht(t)?n=Or(e):n=Qp(e,t),n?lo=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lo._abbr}function Qp(e,t){if(t!==null){var n,r=zy;if(t.abbr=e,tt[e]!=null)Sy("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(t.parentLocale!=null)if(tt[t.parentLocale]!=null)r=tt[t.parentLocale]._config;else if(n=tu(t.parentLocale),n!=null)r=n._config;else return ls[t.parentLocale]||(ls[t.parentLocale]=[]),ls[t.parentLocale].push({name:e,config:t}),null;return tt[e]=new Up(sf(r,t)),ls[e]&&ls[e].forEach(function(a){Qp(a.name,a.config)}),Xr(e),tt[e]}else return delete tt[e],null}function TV(e,t){if(t!=null){var n,r,a=zy;tt[e]!=null&&tt[e].parentLocale!=null?tt[e].set(sf(tt[e]._config,t)):(r=tu(e),r!=null&&(a=r._config),t=sf(a,t),r==null&&(t.abbr=e),n=new Up(t),n.parentLocale=tt[e],tt[e]=n),Xr(e)}else tt[e]!=null&&(tt[e].parentLocale!=null?(tt[e]=tt[e].parentLocale,e===Xr()&&Xr(e)):tt[e]!=null&&delete tt[e]);return tt[e]}function Or(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lo;if(!Dn(e)){if(t=tu(e),t)return t;e=[e]}return CV(e)}function OV(){return of(tt)}function eh(e){var t,n=e._a;return n&&me(e).overflow===-2&&(t=n[mr]<0||n[mr]>11?mr:n[jn]<1||n[jn]>eu(n[Dt],n[mr])?jn:n[kt]<0||n[kt]>24||n[kt]===24&&(n[On]!==0||n[gr]!==0||n[Ta]!==0)?kt:n[On]<0||n[On]>59?On:n[gr]<0||n[gr]>59?gr:n[Ta]<0||n[Ta]>999?Ta:-1,me(e)._overflowDayOfYear&&(t<Dt||t>jn)&&(t=jn),me(e)._overflowWeeks&&t===-1&&(t=IB),me(e)._overflowWeekday&&t===-1&&(t=LB),me(e).overflow=t),e}var MV=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,NV=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,DV=/Z|[+-]\d\d(?::?\d\d)?/,kl=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],td=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],PV=/^\/?Date\((-?\d+)/i,AV=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,IV={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function jy(e){var t,n,r=e._i,a=MV.exec(r)||NV.exec(r),i,s,l,c,u=kl.length,d=td.length;if(a){for(me(e).iso=!0,t=0,n=u;t<n;t++)if(kl[t][1].exec(a[1])){s=kl[t][0],i=kl[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,n=d;t<n;t++)if(td[t][1].exec(a[3])){l=(a[2]||" ")+td[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(a[4])if(DV.exec(a[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),nh(e)}else e._isValid=!1}function LV(e,t,n,r,a,i){var s=[RV(e),Dy.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&s.push(parseInt(i,10)),s}function RV(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function BV(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function VV(e,t,n){if(e){var r=Vy.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return me(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function $V(e,t,n){if(e)return IV[e];if(t)return 0;var r=parseInt(n,10),a=r%100,i=(r-a)/100;return i*60+a}function Hy(e){var t=AV.exec(BV(e._i)),n;if(t){if(n=LV(t[4],t[3],t[2],t[5],t[6],t[7]),!VV(t[1],n,e))return;e._a=n,e._tzm=$V(t[8],t[9],t[10]),e._d=so.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),me(e).rfc2822=!0}else e._isValid=!1}function FV(e){var t=PV.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(jy(e),e._isValid===!1)delete e._isValid;else return;if(Hy(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:j.createFromInputFallback(e)}j.createFromInputFallback=kn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function li(e,t,n){return e??t??n}function zV(e){var t=new Date(j.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function th(e){var t,n,r=[],a,i,s;if(!e._d){for(a=zV(e),e._w&&e._a[jn]==null&&e._a[mr]==null&&jV(e),e._dayOfYear!=null&&(s=li(e._a[Dt],a[Dt]),(e._dayOfYear>Is(s)||e._dayOfYear===0)&&(me(e)._overflowDayOfYear=!0),n=so(s,0,e._dayOfYear),e._a[mr]=n.getUTCMonth(),e._a[jn]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[kt]===24&&e._a[On]===0&&e._a[gr]===0&&e._a[Ta]===0&&(e._nextDay=!0,e._a[kt]=0),e._d=(e._useUTC?so:GB).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[kt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(me(e).weekdayMismatch=!0)}}function jV(e){var t,n,r,a,i,s,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,n=li(t.GG,e._a[Dt],oo(Ze(),1,4).year),r=li(t.W,1),a=li(t.E,1),(a<1||a>7)&&(c=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,u=oo(Ze(),i,s),n=li(t.gg,e._a[Dt],u.year),r=li(t.w,u.week),t.d!=null?(a=t.d,(a<0||a>6)&&(c=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(c=!0)):a=i),r<1||r>yr(n,i,s)?me(e)._overflowWeeks=!0:c!=null?me(e)._overflowWeekday=!0:(l=By(n,r,a,i,s),e._a[Dt]=l.year,e._dayOfYear=l.dayOfYear)}j.ISO_8601=function(){};j.RFC_2822=function(){};function nh(e){if(e._f===j.ISO_8601){jy(e);return}if(e._f===j.RFC_2822){Hy(e);return}e._a=[],me(e).empty=!0;var t=""+e._i,n,r,a,i,s,l=t.length,c=0,u,d;for(a=xy(e._f,e._locale).match(Yp)||[],d=a.length,n=0;n<d;n++)i=a[n],r=(t.match(DB(i,e))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&me(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),c+=r.length),vi[i]?(r?me(e).empty=!1:me(e).unusedTokens.push(i),AB(i,r,e)):e._strict&&!r&&me(e).unusedTokens.push(i);me(e).charsLeftOver=l-c,t.length>0&&me(e).unusedInput.push(t),e._a[kt]<=12&&me(e).bigHour===!0&&e._a[kt]>0&&(me(e).bigHour=void 0),me(e).parsedDateParts=e._a.slice(0),me(e).meridiem=e._meridiem,e._a[kt]=HV(e._locale,e._a[kt],e._meridiem),u=me(e).era,u!==null&&(e._a[Dt]=e._locale.erasConvertYear(u,e._a[Dt])),th(e),eh(e)}function HV(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function WV(e){var t,n,r,a,i,s,l=!1,c=e._f.length;if(c===0){me(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<c;a++)i=0,s=!1,t=Wp({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],nh(t),Hp(t)&&(s=!0),i+=me(t).charsLeftOver,i+=me(t).unusedTokens.length*10,me(t).score=i,l?i<r&&(r=i,n=t):(r==null||i<r||s)&&(r=i,n=t,s&&(l=!0));Ur(e,n||t)}function UV(e){if(!e._d){var t=qp(e._i),n=t.day===void 0?t.date:t.day;e._a=ky([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),th(e)}}function YV(e){var t=new Po(eh(Wy(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Wy(e){var t=e._i,n=e._f;return e._locale=e._locale||Or(e._l),t===null||n===void 0&&t===""?qc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Pn(t)?new Po(eh(t)):(Do(t)?e._d=t:Dn(n)?WV(e):n?nh(e):qV(e),Hp(e)||(e._d=null),e))}function qV(e){var t=e._i;Ht(t)?e._d=new Date(j.now()):Do(t)?e._d=new Date(t.valueOf()):typeof t=="string"?FV(e):Dn(t)?(e._a=ky(t.slice(0),function(n){return parseInt(n,10)}),th(e)):Pa(t)?UV(e):Cr(t)?e._d=new Date(t):j.createFromInputFallback(e)}function Uy(e,t,n,r,a){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Pa(e)&&jp(e)||Dn(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=n,i._i=e,i._f=t,i._strict=r,YV(i)}function Ze(e,t,n,r){return Uy(e,t,n,r,!1)}var GV=kn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:qc()}),XV=kn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ze.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:qc()});function Yy(e,t){var n,r;if(t.length===1&&Dn(t[0])&&(t=t[0]),!t.length)return Ze();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function KV(){var e=[].slice.call(arguments,0);return Yy("isBefore",e)}function JV(){var e=[].slice.call(arguments,0);return Yy("isAfter",e)}var ZV=function(){return Date.now?Date.now():+new Date},cs=["year","quarter","month","week","day","hour","minute","second","millisecond"];function QV(e){var t,n=!1,r,a=cs.length;for(t in e)if(De(e,t)&&!(ft.call(cs,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[cs[r]]){if(n)return!1;parseFloat(e[cs[r]])!==ke(e[cs[r]])&&(n=!0)}return!0}function e$(){return this._isValid}function t$(){return An(NaN)}function nu(e){var t=qp(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=QV(t),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+i*7,this._months=+a+r*3+n*12,this._data={},this._locale=Or(),this._bubble()}function zl(e){return e instanceof nu}function cf(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function n$(e,t,n){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,s;for(s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&ke(e[s])!==ke(t[s]))&&i++;return i+a}function qy(e,t){ae(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Kn(~~(n/60),2)+t+Kn(~~n%60,2)})}qy("Z",":");qy("ZZ","");G("Z",Qc);G("ZZ",Qc);$e(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=rh(Qc,e)});var r$=/([\+\-]|\d\d)/gi;function rh(e,t){var n=(t||"").match(e),r,a,i;return n===null?null:(r=n[n.length-1]||[],a=(r+"").match(r$)||["-",0,0],i=+(a[1]*60)+ke(a[2]),i===0?0:a[0]==="+"?i:-i)}function ah(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Pn(e)||Do(e)?e.valueOf():Ze(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),j.updateOffset(n,!1),n):Ze(e).local()}function uf(e){return-Math.round(e._d.getTimezoneOffset())}j.updateOffset=function(){};function a$(e,t,n){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=rh(Qc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=uf(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?Ky(this,An(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,j.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:uf(this)}function i$(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function s$(e){return this.utcOffset(0,e)}function o$(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(uf(this),"m")),this}function l$(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=rh(MB,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function c$(e){return this.isValid()?(e=e?Ze(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function u$(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function d$(){if(!Ht(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Wp(e,this),e=Wy(e),e._a?(t=e._isUTC?Qn(e._a):Ze(e._a),this._isDSTShifted=this.isValid()&&n$(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function f$(){return this.isValid()?!this._isUTC:!1}function p$(){return this.isValid()?this._isUTC:!1}function Gy(){return this.isValid()?this._isUTC&&this._offset===0:!1}var h$=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,m$=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function An(e,t){var n=e,r=null,a,i,s;return zl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Cr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=h$.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:ke(r[jn])*a,h:ke(r[kt])*a,m:ke(r[On])*a,s:ke(r[gr])*a,ms:ke(cf(r[Ta]*1e3))*a}):(r=m$.exec(e))?(a=r[1]==="-"?-1:1,n={y:_a(r[2],a),M:_a(r[3],a),w:_a(r[4],a),d:_a(r[5],a),h:_a(r[6],a),m:_a(r[7],a),s:_a(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=g$(Ze(n.from),Ze(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),i=new nu(n),zl(e)&&De(e,"_locale")&&(i._locale=e._locale),zl(e)&&De(e,"_isValid")&&(i._isValid=e._isValid),i}An.fn=nu.prototype;An.invalid=t$;function _a(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Iv(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function g$(e,t){var n;return e.isValid()&&t.isValid()?(t=ah(t,e),e.isBefore(t)?n=Iv(e,t):(n=Iv(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Xy(e,t){return function(n,r){var a,i;return r!==null&&!isNaN(+r)&&(Sy(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),a=An(n,r),Ky(this,a,e),this}}function Ky(e,t,n,r){var a=t._milliseconds,i=cf(t._days),s=cf(t._months);e.isValid()&&(r=r??!0,s&&Ay(e,pc(e,"Month")+s*n),i&&Ey(e,"Date",pc(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&j.updateOffset(e,i||s))}var v$=Xy(1,"add"),_$=Xy(-1,"subtract");function Jy(e){return typeof e=="string"||e instanceof String}function y$(e){return Pn(e)||Do(e)||Jy(e)||Cr(e)||k$(e)||b$(e)||e===null||e===void 0}function b$(e){var t=Pa(e)&&!jp(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,s=r.length;for(a=0;a<s;a+=1)i=r[a],n=n||De(e,i);return t&&n}function k$(e){var t=Dn(e),n=!1;return t&&(n=e.filter(function(r){return!Cr(r)&&Jy(e)}).length===0),t&&n}function w$(e){var t=Pa(e)&&!jp(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<r.length;a+=1)i=r[a],n=n||De(e,i);return t&&n}function S$(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function x$(e,t){arguments.length===1&&(arguments[0]?y$(arguments[0])?(e=arguments[0],t=void 0):w$(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ze(),r=ah(n,this).startOf("day"),a=j.calendarFormat(this,r)||"sameElse",i=t&&(er(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Ze(n)))}function C$(){return new Po(this)}function E$(e,t){var n=Pn(e)?e:Ze(e);return this.isValid()&&n.isValid()?(t=wn(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function T$(e,t){var n=Pn(e)?e:Ze(e);return this.isValid()&&n.isValid()?(t=wn(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function O$(e,t,n,r){var a=Pn(e)?e:Ze(e),i=Pn(t)?t:Ze(t);return this.isValid()&&a.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function M$(e,t){var n=Pn(e)?e:Ze(e),r;return this.isValid()&&n.isValid()?(t=wn(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function N$(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function D$(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function P$(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(r=ah(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=wn(t),t){case"year":i=jl(this,r)/12;break;case"month":i=jl(this,r);break;case"quarter":i=jl(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:vn(i)}function jl(e,t){if(e.date()<t.date())return-jl(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),a,i;return t-r<0?(a=e.clone().add(n-1,"months"),i=(t-r)/(r-a)):(a=e.clone().add(n+1,"months"),i=(t-r)/(a-r)),-(n+i)||0}j.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";j.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function A$(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function I$(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Fl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):er(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Fl(n,"Z")):Fl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function L$(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+a+i)}function R$(e){e||(e=this.isUtc()?j.defaultFormatUtc:j.defaultFormat);var t=Fl(this,e);return this.localeData().postformat(t)}function B$(e,t){return this.isValid()&&(Pn(e)&&e.isValid()||Ze(e).isValid())?An({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function V$(e){return this.from(Ze(),e)}function $$(e,t){return this.isValid()&&(Pn(e)&&e.isValid()||Ze(e).isValid())?An({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function F$(e){return this.to(Ze(),e)}function Zy(e){var t;return e===void 0?this._locale._abbr:(t=Or(e),t!=null&&(this._locale=t),this)}var Qy=kn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function eb(){return this._locale}var gc=1e3,_i=60*gc,vc=60*_i,tb=(365*400+97)*24*vc;function yi(e,t){return(e%t+t)%t}function nb(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-tb:new Date(e,t,n).valueOf()}function rb(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-tb:Date.UTC(e,t,n)}function z$(e){var t,n;if(e=wn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?rb:nb,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=yi(t+(this._isUTC?0:this.utcOffset()*_i),vc);break;case"minute":t=this._d.valueOf(),t-=yi(t,_i);break;case"second":t=this._d.valueOf(),t-=yi(t,gc);break}return this._d.setTime(t),j.updateOffset(this,!0),this}function j$(e){var t,n;if(e=wn(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?rb:nb,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=vc-yi(t+(this._isUTC?0:this.utcOffset()*_i),vc)-1;break;case"minute":t=this._d.valueOf(),t+=_i-yi(t,_i)-1;break;case"second":t=this._d.valueOf(),t+=gc-yi(t,gc)-1;break}return this._d.setTime(t),j.updateOffset(this,!0),this}function H$(){return this._d.valueOf()-(this._offset||0)*6e4}function W$(){return Math.floor(this.valueOf()/1e3)}function U$(){return new Date(this.valueOf())}function Y$(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function q$(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function G$(){return this.isValid()?this.toISOString():null}function X$(){return Hp(this)}function K$(){return Ur({},me(this))}function J$(){return me(this).overflow}function Z$(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ae("N",0,0,"eraAbbr");ae("NN",0,0,"eraAbbr");ae("NNN",0,0,"eraAbbr");ae("NNNN",0,0,"eraName");ae("NNNNN",0,0,"eraNarrow");ae("y",["y",1],"yo","eraYear");ae("y",["yy",2],0,"eraYear");ae("y",["yyy",3],0,"eraYear");ae("y",["yyyy",4],0,"eraYear");G("N",ih);G("NN",ih);G("NNN",ih);G("NNNN",cF);G("NNNNN",uF);$e(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?me(n).era=a:me(n).invalidEra=e});G("y",Wi);G("yy",Wi);G("yyy",Wi);G("yyyy",Wi);G("yo",dF);$e(["y","yy","yyy","yyyy"],Dt);$e(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Dt]=n._locale.eraYearOrdinalParse(e,a):t[Dt]=parseInt(e,10)});function Q$(e,t){var n,r,a,i=this._eras||Or("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":a=j(i[n].since).startOf("day"),i[n].since=a.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=j(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf();break}}return i}function eF(e,t,n){var r,a,i=this.eras(),s,l,c;for(e=e.toUpperCase(),r=0,a=i.length;r<a;++r)if(s=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),c=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(s===e)return i[r];break;case"NNNNN":if(c===e)return i[r];break}else if([s,l,c].indexOf(e)>=0)return i[r]}function tF(e,t){var n=e.since<=e.until?1:-1;return t===void 0?j(e.since).year():j(e.since).year()+(t-e.offset)*n}function nF(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function rF(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function aF(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function iF(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-j(a[e].since).year())*n+a[e].offset;return this.year()}function sF(e){return De(this,"_erasNameRegex")||sh.call(this),e?this._erasNameRegex:this._erasRegex}function oF(e){return De(this,"_erasAbbrRegex")||sh.call(this),e?this._erasAbbrRegex:this._erasRegex}function lF(e){return De(this,"_erasNarrowRegex")||sh.call(this),e?this._erasNarrowRegex:this._erasRegex}function ih(e,t){return t.erasAbbrRegex(e)}function cF(e,t){return t.erasNameRegex(e)}function uF(e,t){return t.erasNarrowRegex(e)}function dF(e,t){return t._eraYearOrdinalRegex||Wi}function sh(){var e=[],t=[],n=[],r=[],a,i,s=this.eras();for(a=0,i=s.length;a<i;++a)t.push(an(s[a].name)),e.push(an(s[a].abbr)),n.push(an(s[a].narrow)),r.push(an(s[a].name)),r.push(an(s[a].abbr)),r.push(an(s[a].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ae(0,["gg",2],0,function(){return this.weekYear()%100});ae(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ru(e,t){ae(0,[e,e.length],0,t)}ru("gggg","weekYear");ru("ggggg","weekYear");ru("GGGG","isoWeekYear");ru("GGGGG","isoWeekYear");At("weekYear","gg");At("isoWeekYear","GG");It("weekYear",1);It("isoWeekYear",1);G("G",Zc);G("g",Zc);G("GG",Qe,dn);G("gg",Qe,dn);G("GGGG",Xp,Gp);G("gggg",Xp,Gp);G("GGGGG",Jc,Xc);G("ggggg",Jc,Xc);Io(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ke(e)});Io(["gg","GG"],function(e,t,n,r){t[r]=j.parseTwoDigitYear(e)});function fF(e){return ab.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function pF(e){return ab.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function hF(){return yr(this.year(),1,4)}function mF(){return yr(this.isoWeekYear(),1,4)}function gF(){var e=this.localeData()._week;return yr(this.year(),e.dow,e.doy)}function vF(){var e=this.localeData()._week;return yr(this.weekYear(),e.dow,e.doy)}function ab(e,t,n,r,a){var i;return e==null?oo(this,r,a).year:(i=yr(e,r,a),t>i&&(t=i),_F.call(this,e,t,n,r,a))}function _F(e,t,n,r,a){var i=By(e,t,n,r,a),s=so(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ae("Q",0,"Qo","quarter");At("quarter","Q");It("quarter",7);G("Q",Ty);$e("Q",function(e,t){t[mr]=(ke(e)-1)*3});function yF(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ae("D",["DD",2],"Do","date");At("date","D");It("date",9);G("D",Qe);G("DD",Qe,dn);G("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});$e(["D","DD"],jn);$e("Do",function(e,t){t[jn]=ke(e.match(Qe)[0])});var ib=Hi("Date",!0);ae("DDD",["DDDD",3],"DDDo","dayOfYear");At("dayOfYear","DDD");It("dayOfYear",4);G("DDD",Kc);G("DDDD",Oy);$e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ke(e)});function bF(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ae("m",["mm",2],0,"minute");At("minute","m");It("minute",14);G("m",Qe);G("mm",Qe,dn);$e(["m","mm"],On);var kF=Hi("Minutes",!1);ae("s",["ss",2],0,"second");At("second","s");It("second",15);G("s",Qe);G("ss",Qe,dn);$e(["s","ss"],gr);var wF=Hi("Seconds",!1);ae("S",0,0,function(){return~~(this.millisecond()/100)});ae(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ae(0,["SSS",3],0,"millisecond");ae(0,["SSSS",4],0,function(){return this.millisecond()*10});ae(0,["SSSSS",5],0,function(){return this.millisecond()*100});ae(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ae(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ae(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ae(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});At("millisecond","ms");It("millisecond",16);G("S",Kc,Ty);G("SS",Kc,dn);G("SSS",Kc,Oy);var Yr,sb;for(Yr="SSSS";Yr.length<=9;Yr+="S")G(Yr,Wi);function SF(e,t){t[Ta]=ke(("0."+e)*1e3)}for(Yr="S";Yr.length<=9;Yr+="S")$e(Yr,SF);sb=Hi("Milliseconds",!1);ae("z",0,0,"zoneAbbr");ae("zz",0,0,"zoneName");function xF(){return this._isUTC?"UTC":""}function CF(){return this._isUTC?"Coordinated Universal Time":""}var F=Po.prototype;F.add=v$;F.calendar=x$;F.clone=C$;F.diff=P$;F.endOf=j$;F.format=R$;F.from=B$;F.fromNow=V$;F.to=$$;F.toNow=F$;F.get=TB;F.invalidAt=J$;F.isAfter=E$;F.isBefore=T$;F.isBetween=O$;F.isSame=M$;F.isSameOrAfter=N$;F.isSameOrBefore=D$;F.isValid=X$;F.lang=Qy;F.locale=Zy;F.localeData=eb;F.max=XV;F.min=GV;F.parsingFlags=K$;F.set=OB;F.startOf=z$;F.subtract=_$;F.toArray=Y$;F.toObject=q$;F.toDate=U$;F.toISOString=I$;F.inspect=L$;typeof Symbol<"u"&&Symbol.for!=null&&(F[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});F.toJSON=G$;F.toString=A$;F.unix=W$;F.valueOf=H$;F.creationData=Z$;F.eraName=nF;F.eraNarrow=rF;F.eraAbbr=aF;F.eraYear=iF;F.year=Ry;F.isLeapYear=qB;F.weekYear=fF;F.isoWeekYear=pF;F.quarter=F.quarters=yF;F.month=Iy;F.daysInMonth=WB;F.week=F.weeks=QB;F.isoWeek=F.isoWeeks=eV;F.weeksInYear=gF;F.weeksInWeekYear=vF;F.isoWeeksInYear=hF;F.isoWeeksInISOWeekYear=mF;F.date=ib;F.day=F.days=pV;F.weekday=hV;F.isoWeekday=mV;F.dayOfYear=bF;F.hour=F.hours=wV;F.minute=F.minutes=kF;F.second=F.seconds=wF;F.millisecond=F.milliseconds=sb;F.utcOffset=a$;F.utc=s$;F.local=o$;F.parseZone=l$;F.hasAlignedHourOffset=c$;F.isDST=u$;F.isLocal=f$;F.isUtcOffset=p$;F.isUtc=Gy;F.isUTC=Gy;F.zoneAbbr=xF;F.zoneName=CF;F.dates=kn("dates accessor is deprecated. Use date instead.",ib);F.months=kn("months accessor is deprecated. Use month instead",Iy);F.years=kn("years accessor is deprecated. Use year instead",Ry);F.zone=kn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",i$);F.isDSTShifted=kn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",d$);function EF(e){return Ze(e*1e3)}function TF(){return Ze.apply(null,arguments).parseZone()}function ob(e){return e}var Pe=Up.prototype;Pe.calendar=pB;Pe.longDateFormat=vB;Pe.invalidDate=yB;Pe.ordinal=wB;Pe.preparse=ob;Pe.postformat=ob;Pe.relativeTime=xB;Pe.pastFuture=CB;Pe.set=dB;Pe.eras=Q$;Pe.erasParse=eF;Pe.erasConvertYear=tF;Pe.erasAbbrRegex=oF;Pe.erasNameRegex=sF;Pe.erasNarrowRegex=lF;Pe.months=FB;Pe.monthsShort=zB;Pe.monthsParse=HB;Pe.monthsRegex=YB;Pe.monthsShortRegex=UB;Pe.week=XB;Pe.firstDayOfYear=ZB;Pe.firstDayOfWeek=JB;Pe.weekdays=lV;Pe.weekdaysMin=uV;Pe.weekdaysShort=cV;Pe.weekdaysParse=fV;Pe.weekdaysRegex=gV;Pe.weekdaysShortRegex=vV;Pe.weekdaysMinRegex=_V;Pe.isPM=bV;Pe.meridiem=SV;function _c(e,t,n,r){var a=Or(),i=Qn().set(r,t);return a[n](i,e)}function lb(e,t,n){if(Cr(e)&&(t=e,e=void 0),e=e||"",t!=null)return _c(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=_c(e,r,n,"month");return a}function oh(e,t,n,r){typeof e=="boolean"?(Cr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Cr(t)&&(n=t,t=void 0),t=t||"");var a=Or(),i=e?a._week.dow:0,s,l=[];if(n!=null)return _c(t,(n+i)%7,r,"day");for(s=0;s<7;s++)l[s]=_c(t,(s+i)%7,r,"day");return l}function OF(e,t){return lb(e,t,"months")}function MF(e,t){return lb(e,t,"monthsShort")}function NF(e,t,n){return oh(e,t,n,"weekdays")}function DF(e,t,n){return oh(e,t,n,"weekdaysShort")}function PF(e,t,n){return oh(e,t,n,"weekdaysMin")}Xr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ke(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});j.lang=kn("moment.lang is deprecated. Use moment.locale instead.",Xr);j.langData=kn("moment.langData is deprecated. Use moment.localeData instead.",Or);var ar=Math.abs;function AF(){var e=this._data;return this._milliseconds=ar(this._milliseconds),this._days=ar(this._days),this._months=ar(this._months),e.milliseconds=ar(e.milliseconds),e.seconds=ar(e.seconds),e.minutes=ar(e.minutes),e.hours=ar(e.hours),e.months=ar(e.months),e.years=ar(e.years),this}function cb(e,t,n,r){var a=An(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function IF(e,t){return cb(this,e,t,1)}function LF(e,t){return cb(this,e,t,-1)}function Lv(e){return e<0?Math.floor(e):Math.ceil(e)}function RF(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,i,s,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Lv(df(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=vn(e/1e3),r.seconds=a%60,i=vn(a/60),r.minutes=i%60,s=vn(i/60),r.hours=s%24,t+=vn(s/24),c=vn(ub(t)),n+=c,t-=Lv(df(c)),l=vn(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function ub(e){return e*4800/146097}function df(e){return e*146097/4800}function BF(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=wn(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+ub(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(df(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function VF(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ke(this._months/12)*31536e6:NaN}function Mr(e){return function(){return this.as(e)}}var $F=Mr("ms"),FF=Mr("s"),zF=Mr("m"),jF=Mr("h"),HF=Mr("d"),WF=Mr("w"),UF=Mr("M"),YF=Mr("Q"),qF=Mr("y");function GF(){return An(this)}function XF(e){return e=wn(e),this.isValid()?this[e+"s"]():NaN}function Ka(e){return function(){return this.isValid()?this._data[e]:NaN}}var KF=Ka("milliseconds"),JF=Ka("seconds"),ZF=Ka("minutes"),QF=Ka("hours"),ez=Ka("days"),tz=Ka("months"),nz=Ka("years");function rz(){return vn(this.days()/7)}var cr=Math.round,hi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function az(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function iz(e,t,n,r){var a=An(e).abs(),i=cr(a.as("s")),s=cr(a.as("m")),l=cr(a.as("h")),c=cr(a.as("d")),u=cr(a.as("M")),d=cr(a.as("w")),f=cr(a.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||s<=1&&["m"]||s<n.m&&["mm",s]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(p=p||d<=1&&["w"]||d<n.w&&["ww",d]),p=p||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],p[2]=t,p[3]=+e>0,p[4]=r,az.apply(null,p)}function sz(e){return e===void 0?cr:typeof e=="function"?(cr=e,!0):!1}function oz(e,t){return hi[e]===void 0?!1:t===void 0?hi[e]:(hi[e]=t,e==="s"&&(hi.ss=t-1),!0)}function lz(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=hi,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},hi,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),i=iz(this,!n,r,a),n&&(i=a.pastFuture(+this,i)),a.postformat(i)}var nd=Math.abs;function si(e){return(e>0)-(e<0)||+e}function au(){if(!this.isValid())return this.localeData().invalidDate();var e=nd(this._milliseconds)/1e3,t=nd(this._days),n=nd(this._months),r,a,i,s,l=this.asSeconds(),c,u,d,f;return l?(r=vn(e/60),a=vn(r/60),e%=60,r%=60,i=vn(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=si(this._months)!==si(l)?"-":"",d=si(this._days)!==si(l)?"-":"",f=si(this._milliseconds)!==si(l)?"-":"",c+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(a||r||e?"T":"")+(a?f+a+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Oe=nu.prototype;Oe.isValid=e$;Oe.abs=AF;Oe.add=IF;Oe.subtract=LF;Oe.as=BF;Oe.asMilliseconds=$F;Oe.asSeconds=FF;Oe.asMinutes=zF;Oe.asHours=jF;Oe.asDays=HF;Oe.asWeeks=WF;Oe.asMonths=UF;Oe.asQuarters=YF;Oe.asYears=qF;Oe.valueOf=VF;Oe._bubble=RF;Oe.clone=GF;Oe.get=XF;Oe.milliseconds=KF;Oe.seconds=JF;Oe.minutes=ZF;Oe.hours=QF;Oe.days=ez;Oe.weeks=rz;Oe.months=tz;Oe.years=nz;Oe.humanize=lz;Oe.toISOString=au;Oe.toString=au;Oe.toJSON=au;Oe.locale=Zy;Oe.localeData=eb;Oe.toIsoString=kn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",au);Oe.lang=Qy;ae("X",0,0,"unix");ae("x",0,0,"valueOf");G("x",Zc);G("X",NB);$e("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});$e("x",function(e,t,n){n._d=new Date(ke(e))});//! moment.js
|
|
836
|
+
j.version="2.29.4";cB(Ze);j.fn=F;j.min=KV;j.max=JV;j.now=ZV;j.utc=Qn;j.unix=EF;j.months=OF;j.isDate=Do;j.locale=Xr;j.invalid=qc;j.duration=An;j.isMoment=Pn;j.weekdays=NF;j.parseZone=TF;j.localeData=Or;j.isDuration=zl;j.monthsShort=MF;j.weekdaysMin=PF;j.defineLocale=Qp;j.updateLocale=TV;j.locales=OV;j.weekdaysShort=DF;j.normalizeUnits=wn;j.relativeTimeRounding=sz;j.relativeTimeThreshold=oz;j.calendarFormat=S$;j.prototype=F;j.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/*!
|
|
837
|
+
* chartjs-adapter-moment v1.0.1
|
|
838
|
+
* https://www.chartjs.org
|
|
839
|
+
* (c) 2022 chartjs-adapter-moment Contributors
|
|
840
|
+
* Released under the MIT license
|
|
841
|
+
*/const cz={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};T_._date.override(typeof j=="function"?{_id:"moment",formats:function(){return cz},parse:function(e,t){return typeof e=="string"&&typeof t=="string"?e=j(e,t):e instanceof j||(e=j(e)),e.isValid()?e.valueOf():null},format:function(e,t){return j(e).format(t)},add:function(e,t,n){return j(e).add(t,n).valueOf()},diff:function(e,t,n){return j(e).diff(j(t),n)},startOf:function(e,t,n){return e=j(e),t==="isoWeek"?(n=Math.trunc(Math.min(Math.max(0,n),6)),e.isoWeekday(n).startOf("day").valueOf()):e.startOf(t).valueOf()},endOf:function(e,t){return j(e).endOf(t).valueOf()}}:{});/*!
|
|
842
|
+
* chartjs-plugin-datalabels v2.2.0
|
|
843
|
+
* https://chartjs-plugin-datalabels.netlify.app
|
|
844
|
+
* (c) 2017-2022 chartjs-plugin-datalabels contributors
|
|
845
|
+
* Released under the MIT license
|
|
846
|
+
*/var Rv=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),Ls={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(`
|
|
847
|
+
`)):Array.isArray(n)?e.push.apply(e,n):be(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),a=r.length,i=e.font,s=0,l;for(e.font=n.string,l=0;l<a;++l)s=Math.max(e.measureText(r[l]).width,s);return e.font=i,{height:a*n.lineHeight,width:s}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),r=[],a,i,s,l;for(a=0,s=t.length;a<s;++a)l=t[a],i=n.indexOf(l),i===-1?r.push([l,1]):n.splice(i,1);for(a=0,s=n.length;a<s;++a)r.push([n[a],-1]);return r},rasterize:function(e){return Math.round(e*Rv)/Rv}};function rd(e,t){var n=t.x,r=t.y;if(n===null)return{x:0,y:-1};if(r===null)return{x:1,y:0};var a=e.x-n,i=e.y-r,s=Math.sqrt(a*a+i*i);return{x:s?a/s:0,y:s?i/s:-1}}function uz(e,t,n,r,a){switch(a){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:a*=Math.PI/180,n=Math.cos(a),r=Math.sin(a);break}return{x:e,y:t,vx:n,vy:r}}var dz=0,db=1,fb=2,pb=4,hb=8;function wl(e,t,n){var r=dz;return e<n.left?r|=db:e>n.right&&(r|=fb),t<n.top?r|=hb:t>n.bottom&&(r|=pb),r}function fz(e,t){for(var n=e.x0,r=e.y0,a=e.x1,i=e.y1,s=wl(n,r,t),l=wl(a,i,t),c,u,d;!(!(s|l)||s&l);)c=s||l,c&hb?(u=n+(a-n)*(t.top-r)/(i-r),d=t.top):c&pb?(u=n+(a-n)*(t.bottom-r)/(i-r),d=t.bottom):c&fb?(d=r+(i-r)*(t.right-n)/(a-n),u=t.right):c&db&&(d=r+(i-r)*(t.left-n)/(a-n),u=t.left),c===s?(n=u,r=d,s=wl(n,r,t)):(a=u,i=d,l=wl(a,i,t));return{x0:n,x1:a,y0:r,y1:i}}function Sl(e,t){var n=t.anchor,r=e,a,i;return t.clamp&&(r=fz(r,t.area)),n==="start"?(a=r.x0,i=r.y0):n==="end"?(a=r.x1,i=r.y1):(a=(r.x0+r.x1)/2,i=(r.y0+r.y1)/2),uz(a,i,e.vx,e.vy,t.align)}var xl={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),a=Math.sin(n),i=e.innerRadius,s=e.outerRadius;return Sl({x0:e.x+r*i,y0:e.y+a*i,x1:e.x+r*s,y1:e.y+a*s,vx:r,vy:a},t)},point:function(e,t){var n=rd(e,t.origin),r=n.x*e.options.radius,a=n.y*e.options.radius;return Sl({x0:e.x-r,y0:e.y-a,x1:e.x+r,y1:e.y+a,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=rd(e,t.origin),r=e.x,a=e.y,i=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),i=Math.abs(e.base-e.x)):(a=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),Sl({x0:r,y0:a+s,x1:r+i,y1:a,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=rd(e,t.origin);return Sl({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},vr=Ls.rasterize;function pz(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,a=e.size.width,i=-a/2,s=-r/2;return{frame:{x:i-n.left-t,y:s-n.top-t,w:a+n.width+t*2,h:r+n.height+t*2},text:{x:i,y:s,w:a,h:r}}}function hz(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function mz(e){return e instanceof pi?xl.arc:e instanceof Ns?xl.point:e instanceof Ds?xl.bar:xl.fallback}function gz(e,t,n,r,a,i){var s=Math.PI/2;if(i){var l=Math.min(i,a/2,r/2),c=t+l,u=n+l,d=t+r-l,f=n+a-l;e.moveTo(t,u),c<d&&u<f?(e.arc(c,u,l,-Math.PI,-s),e.arc(d,u,l,-s,0),e.arc(d,f,l,0,s),e.arc(c,f,l,s,Math.PI)):c<d?(e.moveTo(c,n),e.arc(d,u,l,-s,s),e.arc(c,u,l,s,Math.PI+s)):u<f?(e.arc(c,u,l,-Math.PI,0),e.arc(c,f,l,0,Math.PI)):e.arc(c,u,l,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)}function vz(e,t,n){var r=n.backgroundColor,a=n.borderColor,i=n.borderWidth;!r&&(!a||!i)||(e.beginPath(),gz(e,vr(t.x)+i/2,vr(t.y)+i/2,vr(t.w)-i,vr(t.h)-i,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),a&&i&&(e.strokeStyle=a,e.lineWidth=i,e.lineJoin="miter",e.stroke()))}function _z(e,t,n){var r=n.lineHeight,a=e.w,i=e.x,s=e.y+r/2;return t==="center"?i+=a/2:(t==="end"||t==="right")&&(i+=a),{h:r,w:a,x:i,y:s}}function yz(e,t,n){var r=e.shadowBlur,a=n.stroked,i=vr(n.x),s=vr(n.y),l=vr(n.w);a&&e.strokeText(t,i,s,l),n.filled&&(r&&a&&(e.shadowBlur=0),e.fillText(t,i,s,l),r&&a&&(e.shadowBlur=r))}function bz(e,t,n,r){var a=r.textAlign,i=r.color,s=!!i,l=r.font,c=t.length,u=r.textStrokeColor,d=r.textStrokeWidth,f=u&&d,p;if(!(!c||!s&&!f))for(n=_z(n,a,l),e.font=l.string,e.textAlign=a,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=i),f&&(e.lineJoin="round",e.lineWidth=d,e.strokeStyle=u),p=0,c=t.length;p<c;++p)yz(e,t[p],{stroked:f,filled:s,w:n.w,x:n.x,y:n.y+n.h*p})}var mb=function(e,t,n,r){var a=this;a._config=e,a._index=r,a._model=null,a._rects=null,a._ctx=t,a._el=n};Xn(mb.prototype,{_modelize:function(e,t,n,r){var a=this,i=a._index,s=it(Ge([n.font,{}],r,i)),l=Ge([n.color,at.color],r,i);return{align:Ge([n.align,"center"],r,i),anchor:Ge([n.anchor,"center"],r,i),area:r.chart.chartArea,backgroundColor:Ge([n.backgroundColor,null],r,i),borderColor:Ge([n.borderColor,null],r,i),borderRadius:Ge([n.borderRadius,0],r,i),borderWidth:Ge([n.borderWidth,0],r,i),clamp:Ge([n.clamp,!1],r,i),clip:Ge([n.clip,!1],r,i),color:l,display:e,font:s,lines:t,offset:Ge([n.offset,4],r,i),opacity:Ge([n.opacity,1],r,i),origin:hz(a._el,r),padding:ht(Ge([n.padding,4],r,i)),positioner:mz(a._el),rotation:Ge([n.rotation,0],r,i)*(Math.PI/180),size:Ls.textSize(a._ctx,t,s),textAlign:Ge([n.textAlign,"start"],r,i),textShadowBlur:Ge([n.textShadowBlur,0],r,i),textShadowColor:Ge([n.textShadowColor,l],r,i),textStrokeColor:Ge([n.textStrokeColor,l],r,i),textStrokeWidth:Ge([n.textStrokeWidth,0],r,i)}},update:function(e){var t=this,n=null,r=null,a=t._index,i=t._config,s,l,c,u=Ge([i.display,!0],e,a);u&&(s=e.dataset.data[a],l=le(Ie(i.formatter,[s,e]),s),c=be(l)?[]:Ls.toTextLines(l),c.length&&(n=t._modelize(u,c,i,e),r=pz(n))),t._model=n,t._rects=r},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,r=e.ctx,a=n._model,i=n._rects,s;this.visible()&&(r.save(),a.clip&&(s=a.area,r.beginPath(),r.rect(s.left,s.top,s.right-s.left,s.bottom-s.top),r.clip()),r.globalAlpha=Ls.bound(0,a.opacity,1),r.translate(vr(t.x),vr(t.y)),r.rotate(a.rotation),vz(r,i.frame,a),bz(r,a.lines,i.text,a),r.restore())}});var kz=Number.MIN_SAFE_INTEGER||-9007199254740991,wz=Number.MAX_SAFE_INTEGER||9007199254740991;function us(e,t,n){var r=Math.cos(n),a=Math.sin(n),i=t.x,s=t.y;return{x:i+r*(e.x-i)-a*(e.y-s),y:s+a*(e.x-i)+r*(e.y-s)}}function Bv(e,t){var n=wz,r=kz,a=t.origin,i,s,l,c,u;for(i=0;i<e.length;++i)s=e[i],l=s.x-a.x,c=s.y-a.y,u=t.vx*l+t.vy*c,n=Math.min(n,u),r=Math.max(r,u);return{min:n,max:r}}function Cl(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/a,vy:(t.y-e.y)/a,origin:e,ln:a}}var gb=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Xn(gb.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,r=t._rect;return e=us(e,t.center(),-t._rotation),!(e.x<r.x-n||e.y<r.y-n||e.x>r.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[Cl(t[0],t[1]),Cl(t[0],t[3])],a,i,s;for(this._rotation!==e._rotation&&r.push(Cl(n[0],n[1]),Cl(n[0],n[3])),a=0;a<r.length;++a)if(i=Bv(t,r[a]),s=Bv(n,r[a]),i.max<s.min||s.max<i.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,r=e.center();return[us({x:t.x,y:t.y},r,n),us({x:t.x+t.w,y:t.y},r,n),us({x:t.x+t.w,y:t.y+t.h},r,n),us({x:t.x,y:t.y+t.h},r,n)]}});function vb(e,t,n){var r=t.positioner(e,t),a=r.vx,i=r.vy;if(!a&&!i)return{x:r.x,y:r.y};var s=n.w,l=n.h,c=t.rotation,u=Math.abs(s/2*Math.cos(c))+Math.abs(l/2*Math.sin(c)),d=Math.abs(s/2*Math.sin(c))+Math.abs(l/2*Math.cos(c)),f=1/Math.max(Math.abs(a),Math.abs(i));return u*=a*f,d*=i*f,u+=t.offset*a,d+=t.offset*i,{x:r.x+u,y:r.y+d}}function Sz(e,t){var n,r,a,i;for(n=e.length-1;n>=0;--n)for(a=e[n].$layout,r=n-1;r>=0&&a._visible;--r)i=e[r].$layout,i._visible&&a._box.intersects(i._box)&&t(a,i);return e}function xz(e){var t,n,r,a,i,s,l;for(t=0,n=e.length;t<n;++t)r=e[t],a=r.$layout,a._visible&&(l=new Proxy(r._el,{get:(c,u)=>c.getProps([u],!0)[u]}),i=r.geometry(),s=vb(l,r.model(),i),a._box.update(s,i,r.rotation()));return Sz(e,function(c,u){var d=c._hidable,f=u._hidable;d&&f||f?u._visible=!1:d&&(c._visible=!1)})}var Rs={prepare:function(e){var t=[],n,r,a,i,s;for(n=0,a=e.length;n<a;++n)for(r=0,i=e[n].length;r<i;++r)s=e[n][r],t.push(s),s.$layout={_box:new gb,_hidable:!1,_visible:!0,_set:n,_idx:s._index};return t.sort(function(l,c){var u=l.$layout,d=c.$layout;return u._idx===d._idx?d._set-u._set:d._idx-u._idx}),this.update(t),t},update:function(e){var t=!1,n,r,a,i,s;for(n=0,r=e.length;n<r;++n)a=e[n],i=a.model(),s=a.$layout,s._hidable=i&&i.display==="auto",s._visible=a.visible(),t|=s._hidable;t&&xz(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,a,i,s,l;for(n=0,r=t.length;n<r;++n)a=t[n],i=a.$layout,i._visible&&(s=a.geometry(),l=vb(a._el,a.model(),s),i._box.update(l,s,a.rotation()),a.draw(e,l))}},Cz=function(e){if(be(e))return null;var t=e,n,r,a;if(he(e))if(!be(e.label))t=e.label;else if(!be(e.r))t=e.r;else for(t="",n=Object.keys(e),a=0,r=n.length;a<r;++a)t+=(a!==0?", ":"")+n[a]+": "+e[n[a]];return""+t},Ez={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:Cz,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},Wt="$datalabels",_b="$default";function Tz(e,t){var n=e.datalabels,r={},a=[],i,s;return n===!1?null:(n===!0&&(n={}),t=Xn({},[t,n]),i=t.labels||{},s=Object.keys(i),delete t.labels,s.length?s.forEach(function(l){i[l]&&a.push(Xn({},[t,i[l],{_key:l}]))}):a.push(t),r=a.reduce(function(l,c){return Le(c.listeners||{},function(u,d){l[d]=l[d]||{},l[d][c._key||_b]=u}),delete c.listeners,l},{}),{labels:a,listeners:r})}function ff(e,t,n,r){if(t){var a=n.$context,i=n.$groups,s;t[i._set]&&(s=t[i._set][i._key],s&&Ie(s,[a,r])===!0&&(e[Wt]._dirty=!0,n.update(a)))}}function Oz(e,t,n,r,a){var i,s;!n&&!r||(n?r?n!==r&&(s=i=!0):s=!0:i=!0,s&&ff(e,t.leave,n,a),i&&ff(e,t.enter,r,a))}function Mz(e,t){var n=e[Wt],r=n._listeners,a,i;if(!(!r.enter&&!r.leave)){if(t.type==="mousemove")i=Rs.lookup(n._labels,t);else if(t.type!=="mouseout")return;a=n._hovered,n._hovered=i,Oz(e,r,a,i,t)}}function Nz(e,t){var n=e[Wt],r=n._listeners.click,a=r&&Rs.lookup(n._labels,t);a&&ff(e,r,a,t)}var iu={id:"datalabels",defaults:Ez,beforeInit:function(e){e[Wt]={_actives:[]}},beforeUpdate:function(e){var t=e[Wt];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r=t.index,a=e[Wt],i=a._datasets[r]=[],s=e.isDatasetVisible(r),l=e.data.datasets[r],c=Tz(l,n),u=t.meta.data||[],d=e.ctx,f,p,h,g,v,b,m,y;for(d.save(),f=0,h=u.length;f<h;++f)if(m=u[f],m[Wt]=[],s&&m&&e.getDataVisibility(f)&&!m.skip)for(p=0,g=c.labels.length;p<g;++p)v=c.labels[p],b=v._key,y=new mb(v,d,m,f),y.$groups={_set:r,_key:b||_b},y.$context={active:!1,chart:e,dataIndex:f,dataset:l,datasetIndex:r},y.update(y.$context),m[Wt].push(y),i.push(y);d.restore(),Xn(a._listeners,c.listeners,{merger:function(k,_,w){_[k]=_[k]||{},_[k][t.index]=w[k],a._listened=!0}})},afterUpdate:function(e){e[Wt]._labels=Rs.prepare(e[Wt]._datasets)},afterDatasetsDraw:function(e){Rs.draw(e,e[Wt]._labels)},beforeEvent:function(e,t){if(e[Wt]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":Mz(e,n);break;case"click":Nz(e,n);break}}},afterEvent:function(e){var t=e[Wt],n=t._actives,r=t._actives=e.getActiveElements(),a=Ls.arrayDiff(n,r),i,s,l,c,u,d,f;for(i=0,s=a.length;i<s;++i)if(u=a[i],u[1])for(f=u[0].element[Wt]||[],l=0,c=f.length;l<c;++l)d=f[l],d.$context.active=u[1]===1,d.update(d.$context);(t._dirty||a.length)&&(Rs.update(t._labels),e.render()),delete t._dirty}};/*!
|
|
848
|
+
* chartjs-plugin-annotation v2.2.1
|
|
849
|
+
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
850
|
+
* (c) 2023 chartjs-plugin-annotation Contributors
|
|
851
|
+
* Released under the MIT License
|
|
852
|
+
*/const Vv={modes:{point(e,t){return Hl(e,t,{intersect:!0})},nearest(e,t,n){return Az(e,t,n)},x(e,t,n){return Hl(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return Hl(e,t,{intersect:n.intersect,axis:"y"})}}};function lh(e,t,n){return(Vv.modes[n.mode]||Vv.modes.nearest)(e,t,n)}function Dz(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function Pz(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function Hl(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):Dz(r,t,n.axis))}function Az(e,t,n){let r=Number.POSITIVE_INFINITY;return Hl(e,t,n).reduce((a,i)=>{const s=i.getCenterPoint(),l=Pz(t,s,n.axis),c=Di(t,l);return c<r?(a=[i],r=c):c===r&&a.push(i),a},[]).sort((a,i)=>a._index-i._index).slice(0,1)}const Iz=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,Oa=.001,su=(e,t,n)=>Math.min(n,Math.max(t,e));function Lz(e,t,n){for(const r of Object.keys(e))e[r]=su(e[r],t,n);return e}function Rz(e,t,n,r){if(!e||!t||n<=0)return!1;const a=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+a,2)}function yb(e,{x:t,y:n,x2:r,y2:a},i,s){const l=s/2,c=e.x>=t-l-Oa&&e.x<=r+l+Oa,u=e.y>=n-l-Oa&&e.y<=a+l+Oa;return i==="x"?c:(i==="y"||c)&&u}function Ui(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function Bz(e,t,n,r=!0){const a=n.split(".");let i=0;for(const s of t.split(".")){const l=a[i++];if(parseInt(s,10)<parseInt(l,10))break;if(Iz(l,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const bb=e=>typeof e=="string"&&e.endsWith("%"),kb=e=>parseFloat(e)/100,wb=e=>su(kb(e),0,1);function ch(e,t){return t==="start"?0:t==="end"?e:bb(t)?wb(t)*e:e/2}function aa(e,t,n=!0){return typeof t=="number"?t:bb(t)?(n?wb(t):kb(t))*e:e}function Vz(e,t){const{x:n,width:r}=e,a=t.textAlign;return a==="center"?n+r/2:a==="end"||a==="right"?n+r:n}function uh(e,t="center"){return he(e)?{x:le(e.x,t),y:le(e.y,t)}:(e=le(e,t),{x:e,y:e})}function Sb(e){return e&&(Zt(e.xValue)||Zt(e.yValue))}function Lo(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return Cb(t,r)}else return;return $z(t,r,Ie(a,[{chart:e,properties:t,options:n}]))}function xb(e,t,n){let r=!1;return t.forEach(a=>{Kt(e[a])?(r=!0,n[a]=e[a]):Zt(n[a])&&delete n[a]}),r}function Cb({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function $z(e,t,n){if(n===!0)return Cb(e,t);if(he(n))return n}const ad=new Map,Fz=e=>isNaN(e)||e<=0,zz=e=>e.reduce(function(t,n){return t+=n.string,t},"");function ou(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function dh(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(mt(r)),e.translate(-t,-n))}function ia(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function Yi(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function fh(e,t){const n=t.content;if(ou(n))return{width:aa(n.width,t.width),height:aa(n.height,t.height)};const r=t.font,a=Ne(r)?r.map(c=>it(c)):[it(r)],i=t.textStrokeWidth,s=Ne(n)?n:[n],l=s.join()+zz(a)+i+(e._measureText?"-spriting":"");return ad.has(l)||ad.set(l,Yz(e,s,a,i)),ad.get(l)}function Eb(e,t,n){const{x:r,y:a,width:i,height:s}=t;e.save(),Yi(e,n);const l=ia(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),Pi(e,{x:r,y:a,w:i,h:s,radius:Lz(Gr(n.borderRadius),0,Math.min(i,s)/2)}),e.closePath(),e.fill(),l&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function jz(e,t,n){const r=n.content;if(ou(r)){e.save(),e.globalAlpha=Xz(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const a=Ne(r)?r:[r],i=n.font,s=Ne(i)?i.map(f=>it(f)):[it(i)],l=n.color,c=Ne(l)?l:[l],u=Vz(t,n),d=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,Hz(e,n)&&qz(e,{x:u,y:d},a,s),Gz(e,{x:u,y:d},a,{fonts:s,colors:c}),e.restore()}function Hz(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function Wz(e,t,n,r){const{radius:a,options:i}=t,s=i.pointStyle,l=i.rotation;let c=(l||0)*kp;if(ou(s)){e.save(),e.translate(n,r),e.rotate(c),e.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),e.restore();return}Fz(a)||Uz(e,{x:n,y:r,radius:a,rotation:l,style:s,rad:c})}function Uz(e,{x:t,y:n,radius:r,rotation:a,style:i,rad:s}){let l,c,u,d;switch(e.beginPath(),i){default:e.arc(t,n,r,0,We),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=ac,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=ac,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),e.closePath();break;case"rectRounded":d=r*.516,u=r-d,l=Math.cos(s+gn)*u,c=Math.sin(s+gn)*u,e.arc(t-l,n-c,d,s-Ee,s-Ue),e.arc(t+c,n-l,d,s-Ue,s),e.arc(t+l,n+c,d,s,s+Ue),e.arc(t-c,n+l,d,s+Ue,s+Ee),e.closePath();break;case"rect":if(!a){u=Math.SQRT1_2*r,e.rect(t-u,n-u,2*u,2*u);break}s+=gn;case"rectRot":l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+c,n-l),e.lineTo(t+l,n+c),e.lineTo(t-c,n+l),e.closePath();break;case"crossRot":s+=gn;case"cross":l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+l,n+c),e.moveTo(t+c,n-l),e.lineTo(t-c,n+l);break;case"star":l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+l,n+c),e.moveTo(t+c,n-l),e.lineTo(t-c,n+l),s+=gn,l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+l,n+c),e.moveTo(t+c,n-l),e.lineTo(t-c,n+l);break;case"line":l=Math.cos(s)*r,c=Math.sin(s)*r,e.moveTo(t-l,n-c),e.lineTo(t+l,n+c);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(s)*r,n+Math.sin(s)*r);break}e.fill()}function Yz(e,t,n,r){e.save();const a=t.length;let i=0,s=r;for(let l=0;l<a;l++){const c=n[Math.min(l,n.length-1)];e.font=c.string;const u=t[l];i=Math.max(i,e.measureText(u).width+r),s+=c.lineHeight}return e.restore(),{width:i,height:s}}function qz(e,{x:t,y:n},r,a){e.beginPath();let i=0;r.forEach(function(s,l){const c=a[Math.min(l,a.length-1)],u=c.lineHeight;e.font=c.string,e.strokeText(s,t,n+u/2+i),i+=u}),e.stroke()}function Gz(e,{x:t,y:n},r,{fonts:a,colors:i}){let s=0;r.forEach(function(l,c){const u=i[Math.min(c,i.length-1)],d=a[Math.min(c,a.length-1)],f=d.lineHeight;e.beginPath(),e.font=d.string,e.fillStyle=u,e.fillText(l,t,n+f/2+s),s+=f,e.fill()})}function Xz(e,t){const n=na(e)?e:t;return na(n)?su(n,0,1):1}const $v={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function Vi(e,t,n){return t=typeof t=="number"?t:e.parse(t),rt(t)?e.getPixelForValue(t):n}function Wa(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const a=n.charAt(0),i=Object.values(e).filter(s=>s.axis&&s.axis===a);return i.length?i[0].id:a}function Tb(e,t){if(e){const n=e.options.reverse,r=Vi(e,t.min,n?t.end:t.start),a=Vi(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function Ob(e,t){const{chartArea:n,scales:r}=e,a=r[Wa(r,t,"xScaleID")],i=r[Wa(r,t,"yScaleID")];let s=n.width/2,l=n.height/2;return a&&(s=Vi(a,t.xValue,a.left+a.width/2)),i&&(l=Vi(i,t.yValue,i.top+i.height/2)),{x:s,y:l}}function ph(e,t){const n=e.scales,r=n[Wa(n,t,"xScaleID")],a=n[Wa(n,t,"yScaleID")];if(!r&&!a)return{};let{left:i,right:s}=r||e.chartArea,{top:l,bottom:c}=a||e.chartArea;const u=Fv(r,{min:t.xMin,max:t.xMax,start:i,end:s});i=u.start,s=u.end;const d=Fv(a,{min:t.yMin,max:t.yMax,start:c,end:l});return l=d.start,c=d.end,{x:i,y:l,x2:s,y2:c,width:s-i,height:c-l,centerX:i+(s-i)/2,centerY:l+(c-l)/2}}function Mb(e,t){if(!Sb(t)){const n=ph(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const a=r*2,i=n.centerX+t.xAdjust,s=n.centerY+t.yAdjust;return{x:i-r,y:s-r,x2:i+r,y2:s+r,centerX:i,centerY:s,width:a,height:a,radius:r}}return Jz(e,t)}function Kz(e,t){const{scales:n,chartArea:r}=e,a=n[t.scaleID],i={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return a?Zz(a,i,t):Qz(n,i,t),i}function Nb(e,t,n){const r=ph(e,t);return r.initProperties=Lo(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:nj(e,r,t),initProperties:r.initProperties}],r}function Jz(e,t){const n=Ob(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function Fv(e,t){const n=Tb(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Zz(e,t,n){const r=Vi(e,n.value,NaN),a=Vi(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function Qz(e,t,n){for(const r of Object.keys($v)){const a=e[Wa(e,n,r)];if(a){const{min:i,max:s,start:l,end:c,startProp:u,endProp:d}=$v[r],f=Tb(a,{min:n[i],max:n[s],start:a[l],end:a[c]});t[u]=f.start,t[d]=f.end}}}function ej({properties:e,options:t},n,r,a){const{x:i,x2:s,width:l}=e;return Db({start:i,end:s,size:l,borderWidth:t.borderWidth},{position:r.x,padding:{start:a.left,end:a.right},adjust:t.label.xAdjust,size:n.width})}function tj({properties:e,options:t},n,r,a){const{y:i,y2:s,height:l}=e;return Db({start:i,end:s,size:l,borderWidth:t.borderWidth},{position:r.y,padding:{start:a.top,end:a.bottom},adjust:t.label.yAdjust,size:n.height})}function Db(e,t){const{start:n,end:r,borderWidth:a}=e,{position:i,padding:{start:s,end:l},adjust:c}=t,u=r-a-n-s-l-t.size;return n+a/2+c+ch(u,i)}function nj(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=uh(r.position),i=ht(r.padding),s=fh(e.ctx,r),l=ej({properties:t,options:n},s,a,i),c=tj({properties:t,options:n},s,a,i),u=s.width+i.width,d=s.height+i.height;return{x:l,y:c,x2:l+u,y2:c+d,width:u,height:d,centerX:l+u/2,centerY:c+d/2,rotation:r.rotation}}function Ja(e,t,n){const r=Math.cos(n),a=Math.sin(n),i=t.x,s=t.y;return{x:i+r*(e.x-i)-a*(e.y-s),y:s+a*(e.x-i)+r*(e.y-s)}}const pf=["enter","leave"],hh=pf.concat("click");function rj(e,t,n){t.listened=xb(n,hh,t.listeners),t.moveListened=!1,t._getElements=lh,pf.forEach(r=>{Kt(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&Kt(r.click)&&(t.listened=!0),t.moveListened||pf.forEach(a=>{Kt(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function aj(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return ij(e,t,n);case"click":return sj(e,t,n)}}function ij(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=lh(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const i={state:e,event:t};let s=zv(i,"leave",a,r);return zv(i,"enter",r,a)||s}function zv({state:e,event:t},n,r,a){let i;for(const s of r)a.indexOf(s)<0&&(i=Pb(s.options[n]||e.listeners[n],s,t)||i);return i}function sj(e,t,n){const r=e.listeners,a=lh(e,t,n.interaction);let i;for(const s of a)i=Pb(s.options.click||r.click,s,t)||i;return i}function Pb(e,t,n){return Ie(e,[t.$context,n])===!0}const yc=["afterDraw","beforeDraw"];function oj(e,t,n){const r=t.visibleElements;t.hooked=xb(n,yc,t.hooks),t.hooked||r.forEach(a=>{t.hooked||yc.forEach(i=>{Kt(a.options[i])&&(t.hooked=!0)})})}function jv(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return Ie(r,[t.$context])}}function lj(e,t,n){const r=pj(e.scales,t,n);let a=Hv(t,r,"min","suggestedMin");a=Hv(t,r,"max","suggestedMax")||a,a&&Kt(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function cj(e,t){for(const n of e)dj(n,t)}function Hv(e,t,n,r){if(rt(t[n])&&!uj(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function uj(e,t,n){return Zt(e[t])||Zt(e[n])}function dj(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=Wa(t,e,n);r&&!t[r]&&fj(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function fj(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(Zt(e[n+r]))return!0;return!1}function pj(e,t,n){const r=t.axis,a=t.id,i=r+"ScaleID",s={min:le(t.min,Number.NEGATIVE_INFINITY),max:le(t.max,Number.POSITIVE_INFINITY)};for(const l of n)l.scaleID===a?Wv(l,t,["value","endValue"],s):Wa(e,l,i)===a&&Wv(l,t,[r+"Min",r+"Max",r+"Value"],s);return s}function Wv(e,t,n,r){for(const a of n){const i=e[a];if(Zt(i)){const s=t.parse(i);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class qi extends $t{inRange(t,n,r,a){const{x:i,y:s}=Ja({x:t,y:n},this.getCenterPoint(a),mt(-this.options.rotation));return yb({x:i,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return Ui(this,t)}draw(t){t.save(),dh(t,this.getCenterPoint(),this.options.rotation),Eb(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return Nb(t,n)}}qi.id="boxAnnotation";qi.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};qi.defaultRoutes={borderColor:"color",backgroundColor:"color"};qi.descriptors={label:{_fallback:!0}};const Ab=["left","bottom","top","right"];class Ro extends $t{inRange(t,n,r,a){const{x:i,y:s}=Ja({x:t,y:n},this.getCenterPoint(a),mt(-this.rotation));return yb({x:i,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return Ui(this,t)}draw(t){const n=this.options,r=!Zt(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),dh(t,this.getCenterPoint(),this.rotation),mj(t,this),Eb(t,this,n),jz(t,wj(this),n),t.restore())}resolveElementProperties(t,n){let r;if(Sb(n))r=Ob(t,n);else{const{centerX:l,centerY:c}=ph(t,n);r={x:l,y:c}}const a=ht(n.padding),i=fh(t.ctx,n),s=hj(r,i,n,a);return{initProperties:Lo(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}}Ro.id="labelAnnotation";Ro.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Ro.defaultRoutes={borderColor:"color"};function hj(e,t,n,r){const a=t.width+r.width+n.borderWidth,i=t.height+r.height+n.borderWidth,s=uh(n.position,"center"),l=Uv(e.x,a,n.xAdjust,s.x),c=Uv(e.y,i,n.yAdjust,s.y);return{x:l,y:c,x2:l+a,y2:c+i,width:a,height:i,centerX:l+a/2,centerY:c+i/2}}function Uv(e,t,n=0,r){return e-ch(t,r)+n}function mj(e,t){const{pointX:n,pointY:r,options:a}=t,i=a.callout,s=i&&i.display&&bj(t,i);if(!s||Sj(t,i,s))return;if(e.save(),e.beginPath(),!ia(e,i))return e.restore();const{separatorStart:c,separatorEnd:u}=gj(t,s),{sideStart:d,sideEnd:f}=_j(t,s,c);(i.margin>0||a.borderWidth===0)&&(e.moveTo(c.x,c.y),e.lineTo(u.x,u.y)),e.moveTo(d.x,d.y),e.lineTo(f.x,f.y);const p=Ja({x:n,y:r},t.getCenterPoint(),mt(-t.rotation));e.lineTo(p.x,p.y),e.stroke(),e.restore()}function gj(e,t){const{x:n,y:r,x2:a,y2:i}=e,s=vj(e,t);let l,c;return t==="left"||t==="right"?(l={x:n+s,y:r},c={x:l.x,y:i}):(l={x:n,y:r+s},c={x:a,y:l.y}),{separatorStart:l,separatorEnd:c}}function vj(e,t){const{width:n,height:r,options:a}=e,i=a.callout.margin+a.borderWidth/2;return t==="right"?n+i:t==="bottom"?r+i:-i}function _j(e,t,n){const{y:r,width:a,height:i,options:s}=e,l=s.callout.start,c=yj(t,s.callout);let u,d;return t==="left"||t==="right"?(u={x:n.x,y:r+aa(i,l)},d={x:u.x+c,y:u.y}):(u={x:n.x+aa(a,l),y:n.y},d={x:u.x,y:u.y+c}),{sideStart:u,sideEnd:d}}function yj(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function bj(e,t){const n=t.position;return Ab.includes(n)?n:kj(e,t)}function kj(e,t){const{x:n,y:r,x2:a,y2:i,width:s,height:l,pointX:c,pointY:u,centerX:d,centerY:f,rotation:p}=e,h={x:d,y:f},g=t.start,v=aa(s,g),b=aa(l,g),m=[n,n+v,n+v,a],y=[r+b,i,r,i],k=[];for(let _=0;_<4;_++){const w=Ja({x:m[_],y:y[_]},h,mt(p));k.push({position:Ab[_],distance:Di(w,{x:c,y:u})})}return k.sort((_,w)=>_.distance-w.distance)[0].position}function wj({x:e,y:t,width:n,height:r,options:a}){const i=a.borderWidth/2,s=ht(a.padding);return{x:e+s.left+i,y:t+s.top+i,width:n-s.left-s.right-a.borderWidth,height:r-s.top-s.bottom-a.borderWidth}}function Sj(e,t,n){const{pointX:r,pointY:a}=e,i=t.margin;let s=r,l=a;return n==="left"?s+=i:n==="right"?s-=i:n==="top"?l+=i:n==="bottom"&&(l-=i),e.inRange(s,l)}const mh=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),hf=(e,t,n)=>mh(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,Yv=(e,t,n)=>mh(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,gs=e=>e*e,xj=(e,t,{x:n,y:r,x2:a,y2:i},s)=>s==="y"?{start:Math.min(r,i),end:Math.max(r,i),value:t}:{start:Math.min(n,a),end:Math.max(n,a),value:e},qv=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,mf=(e,t,n,r)=>({x:qv(e.x,t.x,n.x,r),y:qv(e.y,t.y,n.y,r)}),Gv=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),Xv=(e,t,n,r)=>-Math.atan2(Gv(e.x,t.x,n.x,r),Gv(e.y,t.y,n.y,r))+.5*Ee;class Bo extends $t{inRange(t,n,r,a){const i=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const s={mouseX:t,mouseY:n},{path:l,ctx:c}=this;if(l){ia(c,this.options);const{chart:d}=this.$context,f=t*d.currentDevicePixelRatio,p=n*d.currentDevicePixelRatio,h=c.isPointInStroke(l,f,p)||gf(this,s,a);return c.restore(),h}const u=gs(i);return Oj(this,s,u,a)||gf(this,s,a)}return Cj(this,{mouseX:t,mouseY:n},r,{hBorderWidth:i,useFinalPosition:a})}getCenterPoint(t){return Ui(this,t)}draw(t){const{x:n,y:r,x2:a,y2:i,cp:s,options:l}=this;if(t.save(),!ia(t,l))return t.restore();Yi(t,l);const c=Math.sqrt(Math.pow(a-n,2)+Math.pow(i-r,2));if(l.curve&&s)return Rj(t,this,s,c),t.restore();const{startOpts:u,endOpts:d,startAdjust:f,endAdjust:p}=Ib(this),h=Math.atan2(i-r,a-n);t.translate(n,r),t.rotate(h),t.beginPath(),t.moveTo(0+f,0),t.lineTo(c-p,0),t.shadowColor=l.borderShadowColor,t.stroke(),vf(t,0,f,u),vf(t,c,-p,d),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=Kz(t,n),{x:a,y:i,x2:s,y2:l}=r,c=Ej(r,t.chartArea),u=c?Tj({x:a,y:i},{x:s,y:l},t.chartArea):{x:a,y:i,x2:s,y2:l,width:Math.abs(s-a),height:Math.abs(l-i)};if(u.centerX=(s+a)/2,u.centerY=(l+i)/2,u.initProperties=Lo(t,u,n),n.curve){const f={x:u.x,y:u.y},p={x:u.x2,y:u.y2};u.cp=Lj(u,n,Di(f,p))}const d=Mj(t,u,n.label);return d._visible=c,u.elements=[{type:"label",optionScope:"label",properties:d,initProperties:u.initProperties}],u}}Bo.id="lineAnnotation";const Kv={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Bo.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},Kv),fill:!1,length:12,start:Object.assign({},Kv),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},Ro.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Bo.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};Bo.defaultRoutes={borderColor:"color"};function Cj(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:i}){const s=xj(t,n,e.getProps(["x","y","x2","y2"],i),r);return s.value>=s.start-a&&s.value<=s.end+a||gf(e,{mouseX:t,mouseY:n},i,r)}function Ej({x:e,y:t,x2:n,y2:r},{top:a,right:i,bottom:s,left:l}){return!(e<l&&n<l||e>i&&n>i||t<a&&r<a||t>s&&r>s)}function Jv({x:e,y:t},n,{top:r,right:a,bottom:i,left:s}){return e<s&&(t=Yv(s,{x:e,y:t},n),e=s),e>a&&(t=Yv(a,{x:e,y:t},n),e=a),t<r&&(e=hf(r,{x:e,y:t},n),t=r),t>i&&(e=hf(i,{x:e,y:t},n),t=i),{x:e,y:t}}function Tj(e,t,n){const{x:r,y:a}=Jv(e,t,n),{x:i,y:s}=Jv(t,e,n);return{x:r,y:a,x2:i,y2:s,width:Math.abs(i-r),height:Math.abs(s-a)}}function Oj(e,{mouseX:t,mouseY:n},r=Oa,a){const{x:i,y:s,x2:l,y2:c}=e.getProps(["x","y","x2","y2"],a),u=l-i,d=c-s,f=gs(u)+gs(d),p=f===0?-1:((t-i)*u+(n-s)*d)/f;let h,g;return p<0?(h=i,g=s):p>1?(h=l,g=c):(h=i+p*u,g=s+p*d),gs(t-h)+gs(n-g)<=r}function gf(e,{mouseX:t,mouseY:n},r,a){const i=e.label;return i.options.display&&i.inRange(t,n,a,r)}function Mj(e,t,n){const r=n.borderWidth,a=ht(n.padding),i=fh(e.ctx,n),s=i.width+a.width+r,l=i.height+a.height+r;return Dj(t,n,{width:s,height:l,padding:a},e.chartArea)}function Nj(e){const{x:t,y:n,x2:r,y2:a}=e,i=Math.atan2(a-n,r-t);return i>Ee/2?i-Ee:i<Ee/-2?i+Ee:i}function Dj(e,t,n,r){const{width:a,height:i,padding:s}=n,{xAdjust:l,yAdjust:c}=t,u={x:e.x,y:e.y},d={x:e.x2,y:e.y2},f=t.rotation==="auto"?Nj(e):mt(t.rotation),p=Pj(a,i,f),h=Aj(e,t,{labelSize:p,padding:s},r),g=e.cp?mf(u,e.cp,d,h):mh(u,d,h),v={size:p.w,min:r.left,max:r.right,padding:s.left},b={size:p.h,min:r.top,max:r.bottom,padding:s.top},m=Qv(g.x,v)+l,y=Qv(g.y,b)+c;return{x:m-a/2,y:y-i/2,x2:m+a/2,y2:y+i/2,centerX:m,centerY:y,pointX:g.x,pointY:g.y,width:a,height:i,rotation:Vc(f)}}function Pj(e,t,n){const r=Math.cos(n),a=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*a),h:Math.abs(e*a)+Math.abs(t*r)}}function Aj(e,t,n,r){let a;const i=Ij(e,r);return t.position==="start"?a=Zv({w:e.x2-e.x,h:e.y2-e.y},n,t,i):t.position==="end"?a=1-Zv({w:e.x-e.x2,h:e.y-e.y2},n,t,i):a=ch(1,t.position),a}function Zv(e,t,n,r){const{labelSize:a,padding:i}=t,s=e.w*r.dx,l=e.h*r.dy,c=s>0&&(a.w/2+i.left-r.x)/s,u=l>0&&(a.h/2+i.top-r.y)/l;return su(Math.max(c,u),0,.25)}function Ij(e,t){const{x:n,x2:r,y:a,y2:i}=e,s=Math.min(a,i)-t.top,l=Math.min(n,r)-t.left,c=t.bottom-Math.max(a,i),u=t.right-Math.max(n,r);return{x:Math.min(l,u),y:Math.min(s,c),dx:l<=u?1:-1,dy:s<=c?1:-1}}function Qv(e,t){const{size:n,min:r,max:a,padding:i}=t,s=n/2;return n>a-r?(a+r)/2:(r>=e-i-s&&(e=r+i+s),a<=e+i+s&&(e=a-i-s),e)}function Ib(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:e0(e,n),endAdjust:e0(e,r)}}function e0(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,a=e.options.borderWidth/2,i={x:n,y:r+a};return Math.abs(hf(0,i,{x:0,y:a}))}function vf(e,t,n,r){if(!r||!r.display)return;const{length:a,width:i,fill:s,backgroundColor:l,borderColor:c}=r,u=Math.abs(t-a)+n;e.beginPath(),Yi(e,r),ia(e,r),e.moveTo(u,-i),e.lineTo(t+n,0),e.lineTo(u,i),s===!0?(e.fillStyle=l||c,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function Lj(e,t,n){const{x:r,y:a,x2:i,y2:s,centerX:l,centerY:c}=e,u=Math.atan2(s-a,i-r),d=uh(t.controlPoint,0),f={x:l+aa(n,d.x,!1),y:c+aa(n,d.y,!1)};return Ja(f,{x:l,y:c},u)}function t0(e,{x:t,y:n},{angle:r,adjust:a},i){!i||!i.display||(e.save(),e.translate(t,n),e.rotate(r),vf(e,0,-a,i),e.restore())}function Rj(e,t,n,r){const{x:a,y:i,x2:s,y2:l,options:c}=t,{startOpts:u,endOpts:d,startAdjust:f,endAdjust:p}=Ib(t),h={x:a,y:i},g={x:s,y:l},v=Xv(h,n,g,0),b=Xv(h,n,g,1)-Ee,m=mf(h,n,g,f/r),y=mf(h,n,g,1-p/r),k=new Path2D;e.beginPath(),k.moveTo(m.x,m.y),k.quadraticCurveTo(n.x,n.y,y.x,y.y),e.shadowColor=c.borderShadowColor,e.stroke(k),t.path=k,t.ctx=e,t0(e,m,{angle:v,adjust:f},u),t0(e,y,{angle:b,adjust:p},d)}class Vo extends $t{inRange(t,n,r,a){const i=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return Bj({x:t,y:n},this.getProps(["width","height","centerX","centerY"],a),i,s);const{x:l,y:c,x2:u,y2:d}=this.getProps(["x","y","x2","y2"],a),f=s/2,p=r==="y"?{start:c,end:d}:{start:l,end:u},h=Ja({x:t,y:n},this.getCenterPoint(a),mt(-i));return h[r]>=p.start-f-Oa&&h[r]<=p.end+f+Oa}getCenterPoint(t){return Ui(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:i,options:s}=this;t.save(),dh(t,this.getCenterPoint(),s.rotation),Yi(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const l=ia(t,s);t.ellipse(a,i,r/2,n/2,Ee/2,0,2*Ee),t.fill(),l&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return Nb(t,n,!0)}}Vo.id="ellipseAnnotation";Vo.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},qi.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Vo.defaultRoutes={borderColor:"color",backgroundColor:"color"};Vo.descriptors={label:{_fallback:!0}};function Bj(e,t,n,r){const{width:a,height:i,centerX:s,centerY:l}=t,c=a/2,u=i/2;if(c<=0||u<=0)return!1;const d=mt(n||0),f=r/2||0,p=Math.cos(d),h=Math.sin(d),g=Math.pow(p*(e.x-s)+h*(e.y-l),2),v=Math.pow(h*(e.x-s)-p*(e.y-l),2);return g/Math.pow(c+f,2)+v/Math.pow(u+f,2)<=1.0001}class lu extends $t{inRange(t,n,r,a){const{x:i,y:s,x2:l,y2:c,width:u}=this.getProps(["x","y","x2","y2","width"],a),d=this.options.borderWidth;if(r!=="x"&&r!=="y")return Rz({x:t,y:n},this.getCenterPoint(a),u/2,d);const f=d/2,p=r==="y"?{start:s,end:c,value:n}:{start:i,end:l,value:t};return p.value>=p.start-f&&p.value<=p.end+f}getCenterPoint(t){return Ui(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,Yi(t,n);const a=ia(t,n);Wz(t,this,this.centerX,this.centerY),a&&!ou(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=Mb(t,n);return r.initProperties=Lo(t,r,n,!0),r}}lu.id="pointAnnotation";lu.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};lu.defaultRoutes={borderColor:"color",backgroundColor:"color"};class cu extends $t{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&$j(this.elements,t,n,a);const i=Ja({x:t,y:n},this.getCenterPoint(a),mt(-this.options.rotation)),s=this.elements.map(u=>r==="y"?u.bY:u.bX),l=Math.min(...s),c=Math.max(...s);return i[r]>=l&&i[r]<=c}getCenterPoint(t){return Ui(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,Yi(t,r);const a=ia(t,r);let i=!0;for(const s of n)i?(t.moveTo(s.x,s.y),i=!1):t.lineTo(s.x,s.y);t.closePath(),t.fill(),a&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=Mb(t,n),{sides:a,rotation:i}=n,s=[],l=2*Ee/a;let c=i*kp;for(let u=0;u<a;u++,c+=l){const d=Vj(r,n,c);d.initProperties=Lo(t,r,n),s.push(d)}return r.elements=s,r}}cu.id="polygonAnnotation";cu.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};cu.defaultRoutes={borderColor:"color",backgroundColor:"color"};function Vj({centerX:e,centerY:t},{radius:n,borderWidth:r},a){const i=r/2,s=Math.sin(a),l=Math.cos(a),c={x:e+s*n,y:t-l*n};return{type:"point",optionScope:"point",properties:{x:c.x,y:c.y,centerX:c.x,centerY:c.y,bX:e+s*(n+i),bY:t-l*(n+i)}}}function $j(e,t,n,r){let a=!1,i=e[e.length-1].getProps(["bX","bY"],r);for(const s of e){const l=s.getProps(["bX","bY"],r);l.bY>n!=i.bY>n&&t<(i.bX-l.bX)*(n-l.bY)/(i.bY-l.bY)+l.bX&&(a=!a),i=l}return a}const Kr={box:qi,ellipse:Vo,label:Ro,line:Bo,point:lu,polygon:cu};Object.keys(Kr).forEach(e=>{at.describe(`elements.${Kr[e].id}`,{_fallback:"plugins.annotation.common"})});const Fj={update:Object.assign},zj=hh.concat(yc),n0=(e,t)=>he(t)?yf(e,t):e,_f=e=>e==="color"||e==="font";function gh(e="line"){return Kr[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function jj(e,t,n,r){const a=Wj(e,n.animations,r),i=t.annotations,s=qj(t.elements,i);for(let l=0;l<i.length;l++){const c=i[l],u=Lb(s,l,c.type),d=c.setContext(Yj(e,u,c)),f=u.resolveElementProperties(e,d);f.skip=Hj(f),"elements"in f&&(Uj(u,f.elements,d,a),delete f.elements),Zt(u.x)||Object.assign(u,f),Object.assign(u,f.initProperties),f.options=Rb(d),a.update(u,f)}}function Hj(e){return isNaN(e.x)||isNaN(e.y)}function Wj(e,t,n){return n==="reset"||n==="none"||n==="resize"?Fj:new Np(e,t)}function Uj(e,t,n,r){const a=e.elements||(e.elements=[]);a.length=t.length;for(let i=0;i<t.length;i++){const s=t[i],l=s.properties,c=Lb(a,i,s.type,s.initProperties),u=n[s.optionScope].override(s);l.options=Rb(u),r.update(c,l)}}function Lb(e,t,n,r){const a=Kr[gh(n)];let i=e[t];return(!i||!(i instanceof a))&&(i=e[t]=new a,Object.assign(i,r)),i}function Rb(e){const t=Kr[gh(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,yf(e,t.defaults),yf(e,t.defaultRoutes));for(const r of zj)n[r]=e[r];return n}function yf(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],i=e[r];_f(r)&&Ne(i)?n[r]=i.map(s=>n0(s,a)):n[r]=n0(i,a)}return n}function Yj(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function qj(e,t){const n=t.length,r=e.length;if(r<n){const a=n-r;e.splice(r,0,...new Array(a))}else r>n&&e.splice(n,r-n);return e}var Gj="2.2.1";const Br=new Map,Xj=hh.concat(yc);var Za={id:"annotation",version:Gj,beforeRegister(){Bz("chart.js","3.7",Re.version)},afterRegister(){Re.register(Kr)},afterUnregister(){Re.unregister(Kr)},beforeInit(e){Br.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=Br.get(e),a=r.annotations=[];let i=n.annotations;he(i)?Object.keys(i).forEach(s=>{const l=i[s];he(l)&&(l.id=s,a.push(l))}):Ne(i)&&a.push(...i),cj(a,e.scales)},afterDataLimits(e,t){const n=Br.get(e);lj(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=Br.get(e);rj(e,r,n),jj(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),oj(e,r,n)},beforeDatasetsDraw(e,t,n){El(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){El(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){El(e,"beforeDraw",n.clip)},afterDraw(e,t,n){El(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=Br.get(e);aj(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){Br.delete(e)},_getState(e){return Br.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!Xj.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Kr[gh(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:_f,_fallback:!0},_indexable:_f}},additionalOptionScopes:[""]};function El(e,t,n){const{ctx:r,chartArea:a}=e,i=Br.get(e);n&&Eo(r,a);const s=Kj(i.visibleElements,t).sort((l,c)=>l.element.options.z-c.element.options.z);for(const l of s)Jj(r,a,i,l);n&&To(r)}function Kj(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const a of r.elements)a.options.display&&a.options.drawTime===t&&n.push({element:a});return n}function Jj(e,t,n,r){const a=r.element;r.main?(jv(n,a,"beforeDraw"),a.draw(e,t),jv(n,a,"afterDraw")):a.draw(e,t)}const $o=o.defineComponent({__name:"ManaCurveChart",props:lB,setup(e){const t=e,{t:n}=ne(),r=o.ref();Re.register(...fa),Re.register(Za),Re.register(iu);const a={topLeft:9999,topRight:9999,bottomLeft:9999,bottomRight:9999},i=o.computed(()=>["0","1","2","3","4","5","6","7","8","9","+"]),s=o.computed(()=>{if(console.log(t.deck),t.deck)return t.deck;if(console.log(t.deckCode),t.deckCode)return vt(t.deckCode);throw console.log("props.deckCode"),new Error("Deck or DeckCode must be defined")}),l=o.computed(()=>{const d={},f=bc(s.value);for(const p of f)d[p]=i.value.map(()=>0);for(const p in s.value){const h=Pt().cardJsonObject[p];if(h===void 0)continue;const g=s0(h,f);if(h.cost>10){d[g][10]+=s.value[p];continue}d[g][h.cost]+=s.value[p]}return d}),c=o.computed(()=>{const d=[];for(let f=0;f<Object.keys(l.value).length;f++){const p=Object.keys(l.value)[f];d.push({backgroundColor:G3(p),data:l.value[p],borderRadius:a,borderSkipped:!1,label:X3(p),barPercentage:.5},{backgroundColor:"transparent",data:l.value[p].map(h=>h>0?1:0)})}return{labels:i.value,datasets:d}}),u={responsive:!0,animation:t.animation,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:t.tooltipsEnabled,mode:"index",intersect:!1,filter(d){return d.datasetIndex%2===0&&d.formattedValue!=="0"},callbacks:{title(d){return d.length===0?"":n("deck.numManaCards",{num:d[0].label==="+"?"10+":d[0].label})},footer(d){if(d.length===0)return"";let f=0;for(let p=0;p<d[0].chart.data.datasets.length;p++)p%2!==1&&(f+=d[0].chart.data.datasets[p].data[d[0].dataIndex]);return`${n("general.total")}: ${f}`}}},datalabels:{align:"end",anchor:"end",offset:t.dataLabelsOffset,formatter(d,f){let p=0;for(let h=0;h<f.chart.data.datasets.length;h++)h%2!==1&&(p+=f.chart.data.datasets[h].data[f.dataIndex]);return p||""},display(d){return t.showDataLabels?d.datasetIndex===d.chart.data.datasets.length-1:!1}}},scales:{x:{stacked:!0,grid:{display:!1},display:t.displayXScale},y:{stacked:!0,grid:{display:!1},display:!1}},layout:{padding:{top:t.paddingTop}}};return(d,f)=>(o.openBlock(),o.createBlock(o.unref(Yc),{ref_key:"chart",ref:r,"chart-data":c.value,options:u},null,8,["chart-data"]))}}),Zj=o.defineComponent({__name:"DeckSidePanel",props:yT,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.reactive(n.filters),i=o.computed(()=>q3(n.deckcode)),s=o.computed(()=>Object.keys(vt(n.deckcode)).filter(l=>Si(Pt().cardJsonObject[l])));return o.watch(a,()=>{t("update:filters",a)}),(l,c)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(Bc,{"card-codes":s.value,regions:i.value},null,8,["card-codes","regions"]),o.createVNode(pt,{title:o.unref(r)("general.regions")},{default:o.withCtx(()=>[o.createVNode(fp,{"deck-code":n.deckcode,"describe-regions":!0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(pt,{title:o.unref(r)("general.manaCurve")},{default:o.withCtx(()=>[o.createVNode($o,{class:"mana-curve-chart","deck-code":n.deckcode,"padding-top":5,"show-data-labels":!0,"data-labels-offset":-5,"tooltips-enabled":!0,"display-x-scale":!0,animation:void 0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(pt,{title:o.unref(r)("general.type")},{default:o.withCtx(()=>[o.createVNode(fc,{class:"side-panel-chart","deck-code":n.deckcode,info:"typeRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(pt,{title:o.unref(r)("general.rarity")},{default:o.withCtx(()=>[o.createVNode(fc,{class:"side-panel-chart","deck-code":n.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(_o,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":c[0]||(c[0]=u=>a.sampleSizeFilters=u)},null,8,["filter-array"]),o.createVNode(bo,{"filter-array":a.timeFilters,"onUpdate:filterArray":c[1]||(c[1]=u=>a.timeFilters=u)},null,8,["filter-array"]),o.createVNode(yo,{"filter-array":a.serverFilters,"onUpdate:filterArray":c[2]||(c[2]=u=>a.serverFilters=u)},null,8,["filter-array"])]))}});const Bb=B(Zj,[["__scopeId","data-v-d65ffd7b"]]),Qj={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}}},Fo=e=>(o.pushScopeId("data-v-71338c1b"),e=e(),o.popScopeId(),e),eH={class:"deck-summary"},tH={class:"deck-cards"},nH={class:"champions-landmarks column"},rH={key:0,class:"type"},aH={class:"type-heading"},iH=Fo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/champion.svg"},null,-1)),sH={class:"title"},oH={class:"type-quantity"},lH={class:"card-container"},cH={key:1,class:"type column"},uH={class:"type-heading"},dH=Fo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/landmark.svg"},null,-1)),fH={class:"title"},pH={class:"type-quantity"},hH={class:"card-container"},mH={key:2,class:"type column"},gH={class:"type-heading"},vH=Fo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/equipment.svg"},null,-1)),_H={class:"title"},yH={class:"type-quantity"},bH={class:"card-container"},kH={key:0,class:"type column"},wH={class:"type-heading"},SH=Fo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/follower.svg"},null,-1)),xH={class:"title"},CH={class:"type-quantity"},EH={class:"card-container"},TH={key:1,class:"type"},OH={class:"type-heading"},MH=Fo(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/spell.svg"},null,-1)),NH={class:"title"},DH={class:"type-quantity"},PH={class:"card-container"},AH=o.defineComponent({__name:"DeckSummary",props:Qj,setup(e){const t=e,n=o.computed(()=>t.cardsProp?t.cardsProp:Jt(t.deck)),r=o.computed(()=>kc(n.value)),a=o.computed(()=>n.value.filter(d=>Si(d))),i=o.computed(()=>n.value.filter(d=>d.typeRef==="Unit"&&d.supertype==="")),s=o.computed(()=>n.value.filter(d=>d.typeRef==="Spell")),l=o.computed(()=>n.value.filter(d=>d.typeRef==="Landmark")),c=o.computed(()=>n.value.filter(d=>d.typeRef==="Equipment"));function u(d){return d.reduce((f,p)=>f+t.deck[p.cardCode],0)}return(d,f)=>{const p=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",eH,[o.createElementVNode("div",tH,[o.createElementVNode("div",nH,[a.value.length>0?(o.openBlock(),o.createElementBlock("div",rH,[o.createElementVNode("div",aH,[iH,o.withDirectives(o.createElementVNode("div",sH,null,512),[[p,"general.champions"]]),o.createElementVNode("p",oH,o.toDisplayString(u(a.value)),1)]),o.createElementVNode("div",lH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,h=>(o.openBlock(),o.createBlock(Yt,{key:h.cardCode,"card-prop":h,color:o.unref(Sa)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0),l.value.length>0?(o.openBlock(),o.createElementBlock("div",cH,[o.createElementVNode("div",uH,[dH,o.withDirectives(o.createElementVNode("div",fH,null,512),[[p,"general.landmarks"]]),o.createElementVNode("p",pH,o.toDisplayString(u(l.value)),1)]),o.createElementVNode("div",hH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,h=>(o.openBlock(),o.createBlock(Yt,{key:h.cardCode,"card-prop":h,color:o.unref(Sa)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0),c.value.length>0?(o.openBlock(),o.createElementBlock("div",mH,[o.createElementVNode("div",gH,[vH,o.withDirectives(o.createElementVNode("div",_H,null,512),[[p,"general.equipments"]]),o.createElementVNode("p",yH,o.toDisplayString(u(c.value)),1)]),o.createElementVNode("div",bH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,h=>(o.openBlock(),o.createBlock(Yt,{key:h.cardCode,"card-prop":h,color:o.unref(Sa)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0)]),i.value.length>0?(o.openBlock(),o.createElementBlock("div",kH,[o.createElementVNode("div",wH,[SH,o.withDirectives(o.createElementVNode("div",xH,null,512),[[p,"general.followers"]]),o.createElementVNode("p",CH,o.toDisplayString(u(i.value)),1)]),o.createElementVNode("div",EH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,h=>(o.openBlock(),o.createBlock(Yt,{key:h.cardCode,"card-prop":h,color:o.unref(Sa)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0),s.value.length>0?(o.openBlock(),o.createElementBlock("div",TH,[o.createElementVNode("div",OH,[MH,o.withDirectives(o.createElementVNode("div",NH,null,512),[[p,"general.spells"]]),o.createElementVNode("p",DH,o.toDisplayString(u(s.value)),1)]),o.createElementVNode("div",PH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,h=>(o.openBlock(),o.createBlock(Yt,{key:h.cardCode,"card-prop":h,color:o.unref(Sa)(h,r.value,!0),name:h.name,"mana-number":h.cost,"quantity-number":t.deck[h.cardCode],"maintain-aspect-ratio":!0},null,8,["card-prop","color","name","mana-number","quantity-number"]))),128))])])):o.createCommentVNode("",!0)])])}}});const uu=B(AH,[["__scopeId","data-v-71338c1b"]]),IH={deckCode:{type:String,required:!0,default:""}},du=o.defineComponent({__name:"CopyDeckButton",props:IH,setup(e){const t=e,{t:n}=ne(),r=o.ref(null);let a,i;o.onMounted(()=>{i=ot(r.value,{content:n("deck.copyDeckCode"),arrow:!0}),a=ot(r.value,{content:n("deck.deckCodeCopied"),trigger:"manual",arrow:!0})});function s(){J3(t.deckCode),i.hide(),a.show()}return(l,c)=>{const u=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s},[o.createVNode(u,{icon:"copy",class:"icon"})],512)}}}),LH={deckId:{type:Number,required:!0,default:-1}},vh=o.defineComponent({__name:"DeleteDeckButton",props:LH,setup(e){const{t}=ne(),n=o.ref(null);o.onMounted(()=>{ot(n.value,{content:t("deck.deleteDeck"),arrow:!0})});function r(){confirm(t("deck.deleteDeckConfirmation"))}return(a,i)=>{const s=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button",onClick:r},[o.createVNode(s,{icon:"trash-alt",class:"icon"})],512)}}}),RH={deckId:{type:Number,required:!0,default:-1},deckName:{type:String,required:!0,default:""}},_h=o.defineComponent({__name:"EditDeckNameButton",props:RH,setup(e){const t=e,{t:n}=ne(),r=o.ref(null);o.onMounted(()=>{ot(r.value,{content:n("deck.editDeckName"),arrow:!0})});function a(){prompt(n("deck.editDeckName"),t.deckName)}return(i,s)=>{const l=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:a},[o.createVNode(l,{icon:"pencil-alt",class:"icon"})],512)}}}),BH={archetypeId:{type:Number,required:!0,default:0}},VH=["href"],$H=o.defineComponent({__name:"OpenArchetypePageButton",props:BH,setup(e){const t=e,{t:n}=ne(),r=o.ref(null),a=o.computed(()=>`/archetype/${t.archetypeId}`);return o.onMounted(()=>{ot(r.value,{content:n("deck.openArchetypePage"),arrow:!0})}),(i,s)=>(o.openBlock(),o.createElementBlock("a",{href:a.value},[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},o.toDisplayString(o.unref(n)("archetype.abbreviation")),513)],8,VH))}});const yh=B($H,[["__scopeId","data-v-7371ea3a"]]),FH={deckCode:{type:String,required:!0,default:""}},zH=["href"],bh=o.defineComponent({__name:"OpenInDeckBuilderButton",props:FH,setup(e){const t=e,{t:n}=ne(),r=o.ref(null),a=o.computed(()=>`/deck-builder/${t.deckCode}`);return o.onMounted(()=>{ot(r.value,{content:n("deck.openInDeckBuilder"),arrow:!0})}),(i,s)=>{const l=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("a",{href:a.value},[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(l,{icon:"pencil-alt",class:"icon"})],512)],8,zH)}}}),jH={deck:{type:Object,required:!0,default:{}}},HH={deck:{type:Object,required:!0,default:{}}},WH={class:"simulate-mulligan"},UH={class:"cards-container"},YH={class:"buttons"},qH=o.defineComponent({__name:"SimulateMulligan",props:HH,setup(e){const t=e,{t:n}=ne(),r=o.computed(()=>{const u=[];for(const d in t.deck)for(let f=0;f<t.deck[d];f++)u.push(d);return u}),a=o.computed(()=>{const u=Array.from(r.value);for(const d of i.value)d!==null&&u.splice(u.indexOf(d.cardCode),1);return u}),i=o.ref([null,null,null,null]);function s(){i.value.fill(null),c()}function l(){var u;for(let d=0;d<i.value.length;d++)i.value[d]===null||!((u=i.value[d])!=null&&u.isSelected)||(i.value[d]=null);c()}function c(){for(;i.value.some(u=>u===null);)i.value[i.value.indexOf(null)]={cardCode:a.value[W3(0,a.value.length)],isSelected:!1};console.log(i.value)}return c(),(u,d)=>(o.openBlock(),o.createElementBlock("div",WH,[o.createElementVNode("div",UH,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value.filter(f=>f!==null),(f,p)=>(o.openBlock(),o.createBlock(xr,{key:f.cardCode+p,"card-code-prop":f.cardCode,"is-root":!0,style:o.normalizeStyle(f.isSelected?{opacity:.5}:null),onClick:h=>f.isSelected=!f.isSelected},null,8,["card-code-prop","style","onClick"]))),128))]),o.createElementVNode("div",YH,[o.createElementVNode("button",{class:"primary-button",onClick:s},o.toDisplayString(o.unref(n)("deck.replaceAllCards")),1),o.createElementVNode("button",{class:"primary-button",onClick:l},o.toDisplayString(o.unref(n)("deck.replaceSelectedCards")),1)])]))}});const kh=B(qH,[["__scopeId","data-v-4f85d8dc"]]),GH={class:"simulate-mulligan-wrapper"},XH=o.defineComponent({__name:"SimulateMulliganButton",props:jH,setup(e){const t=e,{t:n}=ne(),r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{ot(r.value,{content:n("deck.simulateMulligan"),arrow:!0})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=l=>a.value=!0)},[o.createVNode(o.unref(nt),{icon:"hand-paper"})],512),o.createVNode(zi,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=l=>a.value=l)},{default:o.withCtx(()=>[o.createElementVNode("div",GH,[o.createVNode(kh,{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const fu=B(XH,[["__scopeId","data-v-63aa9043"]]),KH={deckId:{type:Number,required:!0,default:-1},deckIsPrivate:{type:Boolean,required:!0,default:!0}},wh=o.defineComponent({__name:"UpdateDeckPrivacyButton",props:KH,emits:["update:deckIsPrivate"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.ref(null);let i;o.onMounted(()=>{i=ot(a.value,{content:`${r("deck.updatePrivacy")}:
|
|
853
|
+
${n.deckIsPrivate?r("deck.deckPrivate"):r("deck.deckPublic")}`,arrow:!0})}),o.watch(()=>n.deckIsPrivate,l=>{i.setContent(`${r("deck.updatePrivacy")}:
|
|
854
|
+
${r(l?"deck.deckPrivate":"deck.deckPublic")}`)});function s(){t("update:deckIsPrivate",!n.deckIsPrivate)}return(l,c)=>{const u=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:a,class:"circle-button",onClick:s},[o.createVNode(u,{icon:n.deckIsPrivate?"lock":"unlock",class:"icon"},null,8,["icon"])],512)}}}),JH={deckCode:{type:String,required:!0,default:""},deckName:{type:String,required:!0,default:""}},ZH={},QH={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 496"},eW=o.createElementVNode("path",{d:"M75.8 25.4a3527.2 3527.2 0 0 1-32.2 16.2A429.1 429.1 0 0 0 24.8 51a117.6 117.6 0 0 0-8.6 4.4c-5.7 2.7-7.5 8-5.8 17 .2 1.2.6 4.9.8 8.2l.8 8.8c.2 1.5.4 4.2.4 6 0 1.8.2 3.8.4 4.6.2.8.5 3.8.6 6.8.1 3 .4 6 .6 6.6.2.7.5 3.5.6 6.3 0 2.7.4 6.3.6 7.8l.8 8.7c.2 3.3.7 8.2 1 10.8.3 2.6.6 6.2.6 8 0 1.8.2 3.8.4 4.6.2.7.5 3.7.6 6.6.2 2.8.4 6 .6 7 .2.8.5 4 .6 7.1.2 3 .4 6 .6 6.7.2.7.5 3.7.6 6.8.1 3 .3 5.7.5 6 .2.3.6 5 1.3 14.4C24 231 24 231 29.7 235.6A74.8 74.8 0 0 1 50 259.2c4.9 10.3 5.3 24 1 36.6l-1.5 5.3c0 .3-.4 1.3-1 2.2L47 307c-.3 1-1.4 3.2-2.3 4.7a43 43 0 0 1-6.2 9.3c-3.8 4.5-4.8 8.2-3.7 13 .4 2 1.4 10.4 1.8 15.6.2 1.9.4 3.8.6 4.3.2.4.6 3.4.8 6.5.3 3.2.7 6.2.9 6.8.2.5.5 3.4.7 6.4.2 3 .6 6 .8 6.6.2.6.6 3.3.8 6 .4 5 .9 8.6 1.8 14.2.3 2 .6 4.4.6 5.5 0 1.1.3 4 .8 6.6l1 7.4c.5 6.2 2.2 8.1 9.8 10.8a99.5 99.5 0 0 1 10 4c1.7.5 3.2 1.1 3.4 1.3.7.5 6.2 2.8 6.8 2.8.3 0 1.7.5 3 1.2l4.2 1.6 5.8 2.4a82.2 82.2 0 0 0 8.8 3.6l5 2c2.1.6 5 1.8 6.7 2.6 1.6.7 3.5 1.5 4.1 1.6l4 1.6c1.5.7 4 1.7 5.4 2.1l8 3.1a193.7 193.7 0 0 0 15.8 6.3l3.6 1.4 5.3 2.1c1.8.9 4.5 2 6 2.5 1.5.4 3 1 3.5 1.3a100 100 0 0 1 14.2 5.5l4.6 1.9a56 56 0 0 0 5.2 1.8 62 62 0 0 1 6.2 2.3c4 1.8 9.9.7 20.7-4 1.6-.7 3-1.3 3.4-1.3a60.5 60.5 0 0 1 9.3-3.7 73.4 73.4 0 0 0 8.9-3.3l4.9-2c1.6-.8 4.2-1.9 5.8-2.4 1.6-.5 3.5-1.2 4.2-1.6a41 41 0 0 1 4.3-1.7c1.7-.5 4-1.4 5.1-2 2.3-1.1 7-3 13.6-5.3a85.1 85.1 0 0 0 11-4.5 675 675 0 0 0 23.4-9.3 53 53 0 0 1 5.6-2.2 38 38 0 0 0 4.2-1.6l4-1.6 4.6-1.8c2.8-1.4 13.9-5.8 14.4-5.8 1.2 0 6.7-2.6 8.2-4 2.4-2 3.2-3.7 3.4-7.1l.8-6.7c1.2-7.8 1.8-13 1.8-14.9 0-1 .3-3 .6-4.3.3-1.3.7-4.9 1-7.8.2-3 .5-6 .8-6.6.2-.7.6-3.7.8-6.7.2-3 .6-5.9.8-6.4a245.2 245.2 0 0 1 2.9-23.7c.1-1.8.5-4.7.8-6.6 1.2-9.6 1-10.1-5.2-18a40 40 0 0 1-5-8.1l-1.5-3c0-.3-.7-2.1-1.6-4.2a54 54 0 0 1-3.6-10.4c-.8-2.4-2.1-12.5-2.1-16.3a44.4 44.4 0 0 1 10-27 103 103 0 0 1 16.8-16.1c2.8-2.2 3.9-6.1 4-14.8 0-1.6.3-3.7.5-4.6.2-1 .5-4.1.6-7.1.1-3 .4-6.1.6-7 .2-.9.5-4 .6-7 .1-2.9.3-5.5.5-5.7.1-.3.4-2.8.5-5.7l.7-8.8c.6-4.6 1.5-15 2.4-28 .2-2.7.5-5 .6-5.2l.5-5.6c0-3 .3-6 .6-7 .2-1 .5-4.2.6-7.2.1-3 .4-6 .6-6.8.2-.8.5-3.7.6-6.6.1-2.9.4-6 .6-6.8.2-.9.4-3 .4-4.6 0-1.7.2-4.4.4-6l.8-8.2.9-10c1-10.5.1-12.9-6.1-15.8l-4.4-2.1-5.8-3-8.2-4A783.8 783.8 0 0 0 342 34.7l-32.5-16.2c-1.5-.5-11-.6-110.2-.6H90.6l-14.8 7.4m228.5 32.4a129 129 0 0 0 11.7 5.6c.6.2 6.6 3 13.4 6.4 6.8 3.3 13.4 6.5 14.7 7 8 3.1 8.4 5 7 30.2a905.9 905.9 0 0 0-.8 19.4 354.8 354.8 0 0 0-1.2 15.8l-.7 11.8c-.8 13.3-1.2 18.8-1.6 21.2-.2 1.4-.4 4.2-.4 6.2s-.2 4.3-.4 5.2c-.2.9-.4 4.3-.6 7.6-.1 3.2-.3 6-.4 6.2-.1.2-.4 3.2-.6 6.7-.4 7.8-.9 9-5.1 13.6a92.3 92.3 0 0 0-19.5 31 73.8 73.8 0 0 0-2.8 44.1c.2 1.1.6 3 1 4.2.5 1.2 1.3 3.9 1.8 6a75.2 75.2 0 0 0 8 18.3 74 74 0 0 0 3.2 5.7c3.8 5.8 5 11.5 3.5 17a48 48 0 0 0-.7 6.6 67 67 0 0 1-.7 7.2 77 77 0 0 0-.7 7.2l-.8 9.2-1.8 19c-.8 10.2-.9 11.3-1.8 13.3-1 2.3-3.8 5.1-5.6 5.6l-4.4 1.8c-4.7 2.2-11 4.9-15.8 6.7-2.2.8-5 2-6.4 2.7l-4 1.7-3.8 1.6-4.6 2-4.4 1.6a227.8 227.8 0 0 0-12.4 5.3c-2.2 1-4.3 1.9-4.6 1.9-.3 0-1.2.4-1.9.8s-2.7 1.2-4.4 1.8a55 55 0 0 0-5.5 2.3l-5 2.2a52 52 0 0 0-4 1.7c-.7.4-3 1.3-4.9 2a83.9 83.9 0 0 0-9.5 3.8c-.6.2-2.6 1-4.6 2-2 1-4.7 2-6 2.5-1.4.4-3.4 1.3-4.5 1.9l-2.5 1c-.3 0-2.2.7-4.2 1.6-4.8 2-6.5 2-10.2.3a80.4 80.4 0 0 0-9.8-4l-4.8-2a80 80 0 0 1-4.8-2 13017.1 13017.1 0 0 0-27.6-11.6c-1.8-.7-4.1-1.7-5.2-2l-3.8-1.7c-1-.5-2.6-1.1-3.6-1.4-1-.3-3.6-1.3-5.8-2.4a66.4 66.4 0 0 0-7.6-3.2c-.6-.5-6.3-2.8-6.9-2.8a23 23 0 0 1-3.6-1.4 114 114 0 0 0-5.5-2.4c-1.3-.5-3.5-1.4-4.8-2.1-1.3-.7-3.6-1.6-5-2a45 45 0 0 1-4.8-2 22 22 0 0 0-3.4-1.5c-.6-.1-3.1-1.2-5.6-2.4l-5.9-2.6c-4-1.3-6.1-5.8-6.5-13.6-.1-2.8-.4-5.8-.6-6.7-.2-1-.6-4.4-.8-7.6l-.8-9.5-.8-9.2a75 75 0 0 0-.8-7.6c-.2-1-.5-4-.6-6.5-.1-2.6-.4-5.6-.7-6.7a20.5 20.5 0 0 1 3.3-17 2248.4 2248.4 0 0 1 6-11 82.4 82.4 0 0 0 7.8-22.4l1-4.4a87.8 87.8 0 0 0-1.2-34.2A98.2 98.2 0 0 0 58.4 219c-2-2-3.2-4.4-3.2-6.6l-.6-7.8c-.6-6-1-11.6-1.8-24.1-.2-3.6-.5-6.7-.6-7a1106.2 1106.2 0 0 1-4.6-81.1l-.1-8.3 1.5-2.5c1.4-2.2 2-2.6 4.6-3.9a2066.4 2066.4 0 0 0 24.6-12l16-7.6c2-1 4.1-1.9 4.9-2 .7-.2 46.3-.3 101.3-.3h100l3.9 2m-185 29c-3 .4-2 4.6 2.7 11.6a84.9 84.9 0 0 1 10 23.4c.7 5 .8 249.2.2 252.4a39.4 39.4 0 0 1-5 12.5c-.7 1.4-2.8 4.7-4.8 7.4-3.6 5-4.1 6.2-3.6 7.2.5.7 70.4 1 72.7.3 2.3-.8 2-2-1-5.8a60 60 0 0 1-3.2-4.5l-2.6-3.6a45.5 45.5 0 0 1-4.8-9.7c-.8-2.1-.8-3.4-1-34.6 0-40.3 0-42 1.7-43.5l10.3-8.8c7-5.7 10.7-8.9 10.7-9.1 0-.5 4-3.2 4.4-3 .6.4 2 3.7 4.6 11.6 1.4 4.4 3.1 9.3 3.8 10.8a296.1 296.1 0 0 1 7.1 20l1.4 3.8a158.4 158.4 0 0 0 3.7 10.4 63 63 0 0 0 1.6 4.4l1.7 4.6a199.6 199.6 0 0 0 3.8 10.8l5 13.8c2.3 5.3 1.4 15.2-1.7 18.8a41.8 41.8 0 0 1-3.7 6.8c-3.2 5.2-3.3 6.4 0 6.9 4.2.6 71 .3 71.5-.3.8-1 .1-2.3-3-5.6a67.7 67.7 0 0 1-8.5-10.8c-1.9-3-6.3-14.2-10.5-26.2-3-8.4-3.7-10.5-5-13.6l-1.4-4c0-.5-.5-2-1.2-3.4s-1.2-2.9-1.2-3.2a40 40 0 0 0-2.6-7.2 156.6 156.6 0 0 1-12-33.6l-2-5.6c-.9-1.5-3.5-8.7-5.5-15-.9-2.8-1.8-5.2-2-5.5-.2-.2-.8-2-1.5-3.8l-3.4-9.7c-3-8.3-3-7.9.3-12a202.4 202.4 0 0 0 12-17.2c1-1.3 2.1-3.4 2.8-4.7.6-1.3 1.7-3.1 2.3-4 .7-.9 1.2-1.8 1.2-2 0-.6 2.7-6.3 3.6-7.5.4-.6 1-1.7 1.2-2.6l1.8-4.2c1.5-3 1.9-4 4.4-12.2l2.6-8.2a39 39 0 0 0 1.2-5.4 111 111 0 0 0 0-46.5 53.4 53.4 0 0 0-41.2-37.5 133 133 0 0 0-22-3.2c-2.5-.3-94.1-.5-95.9-.3m92.5 38a26 26 0 0 1 18.7 18.6 36 36 0 0 0 1.4 4 108.6 108.6 0 0 1-3.4 40 73.8 73.8 0 0 1-12.7 24c-1.5 2.5-8.5 10.5-12 13.9a120.1 120.1 0 0 1-13.7 12.1 52.5 52.5 0 0 1-4.6 3.7l-3.9 2.8c-1 .8-2 1.4-2.2 1.3-.4-.2-.7-120.8-.3-121.6 0-.2 6.4-.3 14.1-.3h14l4.6 1.4",fill:"#cca444","fill-rule":"evenodd"},null,-1),tW=[eW];function nW(e,t){return o.openBlock(),o.createElementBlock("svg",QH,tW)}const Sh=B(ZH,[["render",nW]]),rW=o.defineComponent({__name:"UploadDeckToLorButton",props:JH,setup(e){const{t}=ne(),n=o.ref(null);o.onMounted(()=>{ot(n.value,{content:t("deck.uploadDeckToLor"),arrow:!0}),ot(n.value,{content:t("deck.deckUploaded"),trigger:"manual",arrow:!0})});function r(){console.log("UPLOAD DECK")}return(a,i)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button",onClick:r},[o.createVNode(Sh)],512))}});const pu=B(rW,[["__scopeId","data-v-f0fef97a"]]),aW={},iW={class:"primary-button"};function sW(e,t){const n=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("button",iW,[o.createVNode(n,{icon:"share-nodes"}),o.createElementVNode("span",null,[o.renderSlot(e.$slots,"default")])])}const xh=B(aW,[["render",sW]]),oW={deckCode:{type:String,required:!0,default:"CUCACBIKYYAQCBQMAEBAMCI5F4EAMCQLB4IRGFI2D4WACAQGBIIBQAA"},deckId:{type:Number,required:!1},showButtons:{type:Object,required:!0,default:{deleteDeck:!0,updateDeckPrivacy:!0,editDeckName:!0,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0}}},lW={class:"deck-buttons"},cW={key:0,class:"owned-deck-buttons buttons"},uW={class:"normal-buttons buttons"},dW=o.defineComponent({__name:"DeckButtons",props:oW,setup(e){const t=e,{t:n}=ne(),r=o.computed(()=>vt(t.deckCode));return console.log(r),(a,i)=>(o.openBlock(),o.createElementBlock("div",lW,[t.showButtons.deleteDeck||t.showButtons.updateDeckPrivacy||t.showButtons.editDeckName?(o.openBlock(),o.createElementBlock("div",cW,[t.showButtons.deleteDeck?(o.openBlock(),o.createBlock(vh,{key:0,"deck-id":t.deckId},null,8,["deck-id"])):o.createCommentVNode("",!0),t.showButtons.updateDeckPrivacy?(o.openBlock(),o.createBlock(wh,{key:1,"deck-id":t.deckId,"deck-is-private":!1},null,8,["deck-id"])):o.createCommentVNode("",!0),t.showButtons.editDeckName?(o.openBlock(),o.createBlock(_h,{key:2,"deck-id":t.deckId,"deck-name":"todo"},null,8,["deck-id"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",uW,[t.showButtons.gemsCost?(o.openBlock(),o.createBlock(mp,{key:0,deck:r.value},null,8,["deck"])):o.createCommentVNode("",!0),t.showButtons.openArchetypePage?(o.openBlock(),o.createBlock(yh,{key:1,"archetype-id":1})):o.createCommentVNode("",!0),t.showButtons.simulateMulligan?(o.openBlock(),o.createBlock(fu,{key:2,deck:r.value},null,8,["deck"])):o.createCommentVNode("",!0),t.showButtons.openInDeckBuilder?(o.openBlock(),o.createBlock(bh,{key:3,"deck-code":t.deckCode},null,8,["deck-code"])):o.createCommentVNode("",!0),t.showButtons.copyDeckCode?(o.openBlock(),o.createBlock(du,{key:4,"deck-code":t.deckCode},null,8,["deck-code"])):o.createCommentVNode("",!0),t.showButtons.uploadDeckToLor?(o.openBlock(),o.createBlock(pu,{key:5,"deck-code":t.deckCode,"deck-name":"todo"},null,8,["deck-code"])):o.createCommentVNode("",!0),t.showButtons.shareDeck?(o.openBlock(),o.createBlock(xh,{key:6},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("deck.shareDeck")),1)]),_:1})):o.createCommentVNode("",!0)])]))}});const Ch=B(dW,[["__scopeId","data-v-45c7b897"]]),fW={cards:{type:Array,required:!1},deck:{type:Object,required:!1},deckCode:{type:String,required:!0,default:""},deckId:{type:Number,required:!1}},pW={class:"deck-preview no-scrollbar"},hW={class:"top"},mW=o.defineComponent({__name:"DeckPreview",props:fW,setup(e){const t=e,n={deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!1,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},r=o.computed(()=>t.deck?t.deck:vt(t.deckCode)),a=o.computed(()=>t.cards?t.cards:Jt(r.value)),i=o.computed(()=>{var s;return{"--deck-summary-background":`url(https://lor.gg/storage/cards/full-art/${(s=Aa(a.value,r.value,1)[0])==null?void 0:s.cardCode}.webp)`}});return(s,l)=>(o.openBlock(),o.createElementBlock("div",pW,[o.createElementVNode("div",hW,[o.createVNode(Ch,{class:"deck-buttons no-scrollbar","deck-code":t.deckCode,"deck-id":t.deckId,"show-buttons":n},null,8,["deck-code","deck-id"])]),o.createElementVNode("div",{class:"deck-summary-wrapper",style:o.normalizeStyle(i.value)},[o.createVNode(uu,{deck:r.value},null,8,["deck"])],4)]))}});const Eh=B(mW,[["__scopeId","data-v-bf451763"]]),gW={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1}},vW={class:"deck-highlight-eye"},_W=o.defineComponent({__name:"DeckHighlightEye",props:gW,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.ref(!1),i=o.ref(!1),s=o.computed(()=>t.deck?t.deck:vt(t.deckCode)),l=o.computed(()=>t.cards?t.cards:Jt(s.value));o.onMounted(()=>{var u;ot((u=r.value)==null?void 0:u.$el,{content:n.value,arrow:!0,duration:0,maxWidth:"90vw",onShow(){a.value=!0},onCreate(d){l.value.length<1||d.popper.style.setProperty("--tippy-background",`url(https://lor.gg/storage/cards/full-art/${Aa(l.value,s.value,1)[0].cardCode}.webp)`)}})});function c(){i.value=!0}return(u,d)=>(o.openBlock(),o.createElementBlock("div",vW,[o.createVNode(o.unref(nt),{ref_key:"eyeIcon",ref:r,icon:"eye",class:"icon",onClick:c},null,512),o.createElementVNode("div",{ref_key:"deckSummary",ref:n,class:"deck-summary-wrapper"},[a.value?(o.openBlock(),o.createBlock(uu,{key:0,class:"deck-summary",deck:s.value,"cards-prop":l.value},null,8,["deck","cards-prop"])):o.createCommentVNode("",!0)],512),o.createVNode(zi,{"show-modal":i.value,"onUpdate:showModal":d[0]||(d[0]=f=>i.value=f)},{default:o.withCtx(()=>[o.createVNode(Eh,{cards:l.value,deck:s.value,"deck-code":t.deckCode},null,8,["cards","deck","deck-code"])]),_:1},8,["show-modal"])]))}});const hu=B(_W,[["__scopeId","data-v-ecb770cc"]]),yW={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},showEye:{type:Boolean,required:!1,default:!0}},bW=o.defineComponent({__name:"DeckHighlight",props:yW,setup(e){const t=e,n=o.computed(()=>t.deck?t.deck:vt(t.deckCode)),r=o.computed(()=>t.cards?t.cards:Jt(n.value)),a=o.computed(()=>kc(r.value)),i=o.computed(()=>r.value.filter(s=>Si(s)));return(s,l)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-highlight",t.showEye?"":"hide-eye"])},[o.createVNode(wo,{class:"deck-highlight-regions",regions:a.value},null,8,["regions"]),o.createVNode(So,{class:"deck-highlight-cards",cards:i.value,regions:a.value},null,8,["cards","regions"]),o.createVNode(hu,{class:"deck-highlight-eye",cards:r.value,deck:n.value,"deck-code":t.deckCode},null,8,["cards","deck","deck-code"])],2))}});const sa=B(bW,[["__scopeId","data-v-d406c495"]]),kW={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[]}}},Vb=o.defineComponent({__name:"ArchetypeSidePanel",props:kW,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);return o.watch(r,()=>{t("update:filters",r)}),(a,i)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(Bc,{"card-codes":n.cardCodes,regions:n.regions},null,8,["card-codes","regions"]),o.createVNode(_o,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":i[0]||(i[0]=s=>r.sampleSizeFilters=s)},null,8,["filter-array"]),o.createVNode(bo,{"filter-array":r.timeFilters,"onUpdate:filterArray":i[1]||(i[1]=s=>r.timeFilters=s)},null,8,["filter-array"]),o.createVNode(yo,{"filter-array":r.serverFilters,"onUpdate:filterArray":i[2]||(i[2]=s=>r.serverFilters=s)},null,8,["filter-array"])]))}});const wW={},SW={class:"social-links"},xW={href:"https://discord.gg/tGTSXgDFVU"},CW={href:"https://twitter.com/LORGG__"};function EW(e,t){const n=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("div",SW,[o.createElementVNode("a",xW,[o.createVNode(n,{icon:["fab","discord"],class:"social-icon"})]),o.createElementVNode("a",CW,[o.createVNode(n,{icon:["fab","twitter"],class:"social-icon"})])])}const $b=B(wW,[["render",EW],["__scopeId","data-v-9de6c1ad"]]),TW={type:{type:String,required:!0,default:"data"},deckcode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!1,default:1},wins:{type:Number,required:!1,default:1},comparedDeckcode:{type:String,required:!1,default:""},id:{type:Number,required:!1,default:1},name:{type:String,required:!1,default:""},updatedAt:{type:Number,required:!1,default:1},createdAt:{type:Number,required:!1,default:1}},Gi=Symbol(),OW={...K2,difference:{type:Number,required:!0,default:1}},MW={class:"deck-difference-item"},NW=o.defineComponent({__name:"DeckDifferenceItem",props:OW,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",MW,[o.createVNode(ua,{"card-code-prop":t.cardCodeProp,"card-prop":t.cardProp,regions:t.regions,"ignore-card-item":t.ignoreCardItem},null,8,["card-code-prop","card-prop","regions","ignore-card-item"]),o.createElementVNode("div",{class:o.normalizeClass(["difference",t.difference>0?"positive":"negative"])},o.toDisplayString(`${t.difference>0?"+":""}${t.difference}`),3)]))}});const Th=B(NW,[["__scopeId","data-v-6a27e232"]]),DW={differences:{type:Array,required:!0,default:[]}},PW={class:"deck-differences no-scrollbar"},AW=o.defineComponent({__name:"DeckDifferences",props:DW,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",PW,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.differences,a=>(o.openBlock(),o.createBlock(Th,{key:a.cardCodeProp,"card-code-prop":a.cardCodeProp,"card-prop":a.cardProp,difference:a.difference,"ignore-card-item":a.ignoreCardItem,regions:a.regions},null,8,["card-code-prop","card-prop","difference","ignore-card-item","regions"]))),128))]))}});const Oh=B(AW,[["__scopeId","data-v-79e42cb8"]]),Fb=e=>(o.pushScopeId("data-v-7cedd2f0"),e=e(),o.popScopeId(),e),IW={href:"/test",class:"wrapper"},LW={class:"table-card-row-background-wrapper"},RW={class:"table-card-row-background"},BW=Fb(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),VW=[BW],$W={class:"decks-row wrapper"},FW={class:"column-content"},zW={class:"column-content"},jW={class:"column-content"},HW={class:"column-content"},WW={key:2,class:"column-content"},UW={class:"column-content"},YW={key:3,class:"column-content deck-differences-column"},qW=["onClick"],GW=Fb(()=>o.createElementVNode("div",{class:"column-content region-chart-wrapper"},null,-1)),XW=o.defineComponent({__name:"DecksRow",props:TW,setup(e){const t=e,n=o.inject(Gi),r=o.computed(()=>vt(t.deckcode)),a=o.computed(()=>Jt(r.value)),i=o.computed(()=>Aa(a.value,r.value,2).map(c=>`https://lor.gg/storage/cards/banner/${c.cardCode}.png`)),s=o.computed(()=>{const c=[];if(t.type!=="similar")return c;const u=vt(t.comparedDeckcode);for(const[d,f]of Object.entries(r.value))f!==u[d]&&c.push({cardCodeProp:d,difference:f-(u[d]??0),ignoreCardItem:!1});for(const[d,f]of Object.entries(u))f===r.value[d]||c.some(p=>p.cardCodeProp===d)||c.push({cardCodeProp:d,difference:(r.value[d]??0)-f,ignoreCardItem:!1});return c});console.log(s.value);function l(){console.log("Options Button Clicked.")}return(c,u)=>{var d;return o.openBlock(),o.createElementBlock("a",IW,[o.createElementVNode("div",{class:"decks-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",LW,[o.createElementVNode("div",RW,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,f=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${f})`})},VW,4))),128))])]),o.createElementVNode("div",$W,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:u[0]||(u[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(sa,{"deck-code":t.deckcode,deck:r.value,cards:a.value},null,8,["deck-code","deck","cards"])]),t.type==="data"||t.type==="similar"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",FW,o.toDisplayString(o.unref(Me)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5)],64)):t.type==="built"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",zW,o.toDisplayString(t.name),1),o.createElementVNode("div",jW,o.toDisplayString(o.unref(n)(t.updatedAt).fromNow()),1),o.createElementVNode("div",HW,o.toDisplayString(o.unref(n)(t.createdAt).fromNow()),1)],64)):o.createCommentVNode("",!0),t.type!=="similar"?(o.openBlock(),o.createElementBlock("div",WW,[o.createVNode($o,{class:"mana-curve-chart","deck-code":t.deckcode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!1,animation:!1},null,8,["deck-code"])])):o.createCommentVNode("",!0),o.createElementVNode("div",UW,o.toDisplayString((d=o.unref(Wl)(r.value,!0)??o.unref(Wl)(r.value,!1))==null?void 0:d.toLocaleString()),1),t.type==="similar"?(o.openBlock(),o.createElementBlock("div",YW,[o.createVNode(Oh,{differences:s.value},null,8,["differences"])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"column-content options-button",onClick:o.withModifiers(l,["stop","prevent"])},[o.createVNode(o.unref(nt),{icon:"ellipsis-v"})],8,qW),GW])],4)])}}});const zo=B(XW,[["__scopeId","data-v-7cedd2f0"]]),KW={},JW={class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 172 172"},ZW=o.createStaticVNode('<g fill="none" stroke-miterlimit="10" style="mix-blend-mode:normal;"><g stroke="var(--color-primary-2)" stroke-width="20" stroke-linejoin="round"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M86 16.65C47.761 16.65 16.65 47.76 16.65 86c0 38.239 31.111 69.35 69.35 69.35 38.239 0 69.35-31.111 69.35-69.35 0-38.239-31.111-69.35-69.35-69.35m0-3.853c40.427 0 73.203 32.776 73.203 73.203S126.427 159.203 86 159.203 12.797 126.427 12.797 86 45.573 12.797 86 12.797z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M93.706 55.178a7.706 7.706 0 1 1-15.412 0 7.706 7.706 0 0 1 15.412 0zM97.558 120.675v3.853H74.442v-3.853h3.852v-42.38h-3.852v-3.853h19.264v46.233z" fill="var(--color-primary-2)" stroke-width="17.92"></path></g><path d="M8.944 163.056V8.944h154.112v154.112z"></path><g stroke-width="1" stroke-linejoin="miter"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-background-1)"></path><path d="M86 16.65c38.239 0 69.35 31.111 69.35 69.35 0 38.239-31.111 69.35-69.35 69.35-38.239 0-69.35-31.111-69.35-69.35 0-38.239 31.111-69.35 69.35-69.35m0-3.853c-40.427 0-73.203 32.776-73.203 73.203S45.573 159.203 86 159.203 159.203 126.427 159.203 86 126.427 12.797 86 12.797z" fill="var(--color-background-1)"></path><path d="M86 47.472a7.706 7.706 0 1 0 0 15.411 7.706 7.706 0 0 0 0-15.411zM93.706 120.675V74.442H74.442v3.852h3.852v42.381h-3.852v3.853h23.116v-3.853z" fill="var(--color-primary-2)"></path></g></g>',1),QW=[ZW];function eU(e,t){return o.openBlock(),o.createElementBlock("svg",JW,QW)}const Mh=B(KW,[["render",eU]]),tU={...j2,link:{type:String,required:!1,default:""}},nU={class:"card-item-link-wrapper"},rU={key:0,class:"card-item-wrapper"},aU={key:1,class:"card-item-wrapper"},iU={class:"link-icon"},sU=o.defineComponent({__name:"CardItemLinkWrapper",props:tU,setup(e){const t=e;return(n,r)=>{const a=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",nU,[n.isDeckBuilder?(o.openBlock(),o.createElementBlock("div",aU,[o.createVNode(xr,o.normalizeProps(o.guardReactiveProps(t)),null,16),o.createVNode(a,{class:"link-icon-link",to:t.link},{default:o.withCtx(()=>[o.createElementVNode("div",iU,[o.createVNode(Mh)])]),_:1},8,["to"])])):(o.openBlock(),o.createElementBlock("div",rU,[o.createVNode(a,{to:t.link},{default:o.withCtx(()=>[o.createVNode(xr,o.normalizeProps(o.guardReactiveProps(t)),null,16)]),_:1},8,["to"])]))])}}});const zb=B(sU,[["__scopeId","data-v-61a45794"]]),oU={name:{type:String,required:!0,default:""}},lU={class:"profile-dropdown-wrapper"},cU=o.defineComponent({__name:"ProfileDropdown",props:oU,setup(e){const t=e,n=o.ref(),r=o.ref();return o.onMounted(()=>{ot(n.value,{content:r.value,arrow:!0,interactive:!0,interactiveBorder:10})}),(a,i)=>(o.openBlock(),o.createElementBlock("div",lU,[o.createElementVNode("div",{ref_key:"profile",ref:n,class:"profile-dropdown"},o.toDisplayString(t.name),513),o.createElementVNode("div",{ref_key:"dropdown",ref:r,class:"slider-wrapper"},"Test",512)]))}});const Nh=B(cU,[["__scopeId","data-v-1c516824"]]),mu={items:{type:Array,required:!0,default:[]},isLoggedIn:{type:Boolean,required:!0,default:!1},name:{type:String,required:!1,default:""},iconCard:{type:String,required:!1,default:""},bannerColor:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:1}},uU={class:"navigation-top-desktop"},dU={class:"left content"},fU={class:"right content"},pU={key:1,class:"fancy-button"},hU=o.defineComponent({__name:"NavigationTopDesktop",props:mu,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",uU,[o.createElementVNode("div",dU,[o.createVNode(Ac,{class:"search-bar"})]),o.createElementVNode("div",fU,[o.createVNode(tp,{class:"social-links"}),o.createVNode(gp,{class:"language-selection"}),t.isLoggedIn?(o.openBlock(),o.createBlock(Nh,{key:0,name:t.name},null,8,["name"])):(o.openBlock(),o.createElementBlock("div",pU,"Sign In"))])]))}});const Dh=B(hU,[["__scopeId","data-v-0be13d90"]]),mU={card:{type:Object,required:!0,default:{associatedCardRefs:["06NX013T1"],regionRefs:["Noxus","06RU002"],attack:1,cost:2,health:1,description:"<link=keyword.PlaySkillMark><sprite name=SkillMark><style=Keyword>Play</style></link>: <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stun</style></link> an enemy or if it's already <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stunned</style></link> deal 2 to it instead.",descriptionRaw:"Play: Stun an enemy or if it's already Stunned deal 2 to it instead.",levelupDescription:"",levelupDescriptionRaw:"",flavorText:`"Student: Sydell Kythera
|
|
855
|
+
Teacher: J. Willough
|
|
856
|
+
Report: I am spiderbit on left forearm. Sydell claims a misunderstanding, but his smirk belies his innocence. He is ordered to two weeks additional chores (refectory)."
|
|
857
|
+
- Ravenbloom discipline card`,artistName:"Polar Engine",name:"Spell Slinger",cardCode:"06NX013",keywords:["Fearsome"],keywordRefs:["Fearsome"],spellSpeedRef:"",rarityRef:"Common",subtypes:["SPIDER"],subtypeRefs:["SPIDER"],supertype:"",typeRef:"Unit",collectible:!0,set:"Set6",createdAt:"2022-09-09",updatedAt:"2022-09-14"}}},gU={class:"card-similar-cards"},vU=o.defineComponent({__name:"CardSimilarCards",props:mU,setup(e){const t=e;function n(a,i,s){if(a.length===10&&s<a[0].points)return;let l=0;for(;l<a.length&&a[l].points<s;)l++;a.splice(l,0,{cardCode:i,points:s}),a.length>10&&a.splice(0,1)}const r=o.computed(()=>{const a=[],i=Pt().cardJsonObject;let s=0;for(const l in i){if(l===t.card.cardCode||t.card.collectible&&!i[l].collectible)continue;s=0;const c=i[l];for(const u of c.regionRefs)for(const d of t.card.regionRefs)u===d&&(s+=2);for(const u of c.subtypes)for(const d of t.card.subtypes)u===d&&(s+=2);for(const u of c.keywordRefs)for(const d of t.card.keywordRefs)u===d&&(s+=1);c.typeRef===t.card.typeRef&&(s+=3),c.rarityRef!=="None"&&c.rarityRef===t.card.rarityRef&&(s+=1),c.typeRef==="Unit"&&t.card.typeRef==="Unit"&&(s+=(9-Math.abs(c.attack-t.card.attack))/3,s+=(9-Math.abs(c.health-t.card.health))/3),s+=(12-Math.abs(c.cost-t.card.cost))/3,n(a,l,s)}return a.reverse().map(l=>Pt().cardJsonObject[l.cardCode])});return(a,i)=>(o.openBlock(),o.createElementBlock("div",gU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,s=>(o.openBlock(),o.createBlock(xr,{key:s.cardCode,"card-prop":s,"is-root":!0},null,8,["card-prop"]))),128))]))}});const jb=B(vU,[["__scopeId","data-v-629c30ac"]]),_U={logoType:{type:String,required:!0,default:"logo-and-text"}},Hb=e=>(o.pushScopeId("data-v-bb0b24b5"),e=e(),o.popScopeId(),e),yU={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 862.33 136.654"},bU=o.createStaticVNode('<path d="M0 2.947h18.418V115.29h77.35v18.416H0Z" data-v-bb0b24b5></path><path d="M205.729 0a68.327 68.327 0 1 1-68.326 68.331A68.3 68.3 0 0 1 205.729 0Zm0 118.236a49.908 49.908 0 1 0-49.909-49.909 49.948 49.948 0 0 0 49.909 49.904Z" data-v-bb0b24b5></path><path d="M396.538 2.947a42.211 42.211 0 0 1 41.991 41.991 41.554 41.554 0 0 1-32.046 40.7l29.1 48.067H414.22l-28.363-46.962h-32.046v46.962h-18.416V68.326h39.413l-39.413-65.38Zm0 65.38a23.481 23.481 0 1 0 0-46.962h-28.73l28.363 46.962Z" data-v-bb0b24b5></path><path d="M495.266 115.291h18.418v18.416h-18.418Z" data-v-bb0b24b5></path><path d="M685.517 60.778v72.928h-18.418v-6.443a68.378 68.378 0 1 1 12.894-107.926l-12.894 13.076a49.909 49.909 0 1 0 0 71.827V79.192h-49.726V60.779Z" data-v-bb0b24b5></path><path d="M862.33 60.778v72.928h-18.417v-6.443a68.379 68.379 0 1 1 12.89-107.926l-12.89 13.076a49.909 49.909 0 1 0 0 71.827V79.192H794.19V60.779Z" data-v-bb0b24b5></path>',6),kU=[bU],wU={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 926.43 201.096"},SU=o.createStaticVNode('<path d="M251.125 49.347h14.423v87.978h60.574v14.422h-75Z" data-v-bb0b24b5></path><path d="M412.235 47.039a53.507 53.507 0 1 1-53.508 53.507 53.487 53.487 0 0 1 53.508-53.507Zm0 92.592a39.084 39.084 0 1 0-39.085-39.084 39.115 39.115 0 0 0 39.085 39.084Z" data-v-bb0b24b5></path><path d="M561.66 49.347a33.056 33.056 0 0 1 32.884 32.884 32.542 32.542 0 0 1-25.1 31.873l22.787 37.642h-16.729l-22.212-36.777h-25.1v36.777h-14.422v-51.2h30.865l-30.865-51.2Zm0 51.2a18.388 18.388 0 1 0 0-36.776h-22.5l22.211 36.776Z" data-v-bb0b24b5></path><path d="M638.976 137.325h14.423v14.422h-14.423Z" data-v-bb0b24b5></path><path d="M787.964 94.635v57.111h-14.422V146.7a53.547 53.547 0 1 1 10.1-84.518l-10.1 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M926.429 94.635v57.111h-14.423V146.7A53.548 53.548 0 1 1 922.1 62.182l-10.094 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z" data-v-bb0b24b5></path><path d="M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z" data-v-bb0b24b5></path>',8),xU=[SU],CU={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201.1 201.12"},EU=Hb(()=>o.createElementVNode("path",{d:"M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z"},null,-1)),TU=Hb(()=>o.createElementVNode("path",{d:"M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z"},null,-1)),OU=[EU,TU],MU=o.defineComponent({__name:"LogoIcon",props:_U,setup(e){const t=e;return(n,r)=>t.logoType==="text-only"?(o.openBlock(),o.createElementBlock("svg",yU,kU)):t.logoType==="logo-and-text"?(o.openBlock(),o.createElementBlock("svg",wU,xU)):(o.openBlock(),o.createElementBlock("svg",CU,OU))}});const $i=B(MU,[["__scopeId","data-v-bb0b24b5"]]),NU={class:"dashboard-sign-up"},DU={class:"top"},PU={class:"subtitle"},AU={class:"fancy-button"},IU=o.defineComponent({__name:"DashboardSignUp",setup(e){const{t}=ne();return(n,r)=>(o.openBlock(),o.createElementBlock("div",NU,[o.createElementVNode("div",DU,[o.createVNode($i,{"logo-type":"text-only",class:"logo-icon"}),o.createElementVNode("div",PU,o.toDisplayString(o.unref(t)("general.becomeTheMaster")),1)]),o.createElementVNode("div",AU,o.toDisplayString(o.unref(t)("general.signIn")),1)]))}});const Wb=B(IU,[["__scopeId","data-v-e398dd28"]]),LU={deckCode:{type:String,required:!0,default:""},gameMode:{type:String,required:!0,default:""},gameType:{type:String,required:!0,default:""},isAttackingFirst:{type:Boolean,required:!0,default:!0},isVictory:{type:Boolean,required:!0,default:""},opponentDeckCode:{type:String,required:!0,default:""},opponentName:{type:String,required:!0,default:""},playedAt:{type:Date,required:!0,default:new Date}},RU=e=>(o.pushScopeId("data-v-40345245"),e=e(),o.popScopeId(),e),BU={class:"match-item"},VU=RU(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),$U=[VU],FU={class:"details"},zU={class:"match-details"},jU={class:"game-type"},HU={class:"time"},WU={class:"opponent-details"},UU={class:"main"},YU={class:"container"},qU={class:"container"},GU=o.defineComponent({__name:"MatchItem",props:LU,setup(e){const t=e,{t:n}=ne(),r=o.inject(Gi),a=o.computed(()=>vt(t.deckCode)),i=o.computed(()=>vt(t.opponentDeckCode)),s=o.computed(()=>[Aa(Jt(a.value),a.value,1)[0],Aa(Jt(i.value),i.value,1)[0]].map(l=>`https://lor.gg/storage/cards/banner/${l==null?void 0:l.cardCode}.png`));return(l,c)=>(o.openBlock(),o.createElementBlock("div",BU,[o.createElementVNode("div",{class:"background",style:o.normalizeStyle({"--background-image":`url(${s.value[0]})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,u=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${u})`})},$U,4))),128))],4),o.createElementVNode("div",FU,[o.createElementVNode("div",zU,[o.createElementVNode("div",jU,o.toDisplayString(t.gameType),1),o.createElementVNode("div",HU,o.toDisplayString(o.unref(r)(t.playedAt).fromNow()),1)]),o.createElementVNode("div",WU,o.toDisplayString(t.opponentName),1)]),o.createElementVNode("div",UU,[o.createElementVNode("div",YU,[o.createVNode(sa,{class:"deck-highlight",deck:a.value},null,8,["deck"])]),o.createElementVNode("div",{class:"container results",style:o.normalizeStyle({color:t.isVictory?"var(--color-good)":"var(--color-bad)"})},o.toDisplayString(t.isVictory?o.unref(n)("general.victory"):o.unref(n)("general.defeat")),5),o.createElementVNode("div",qU,[o.createVNode(sa,{class:"deck-highlight opponent",deck:i.value},null,8,["deck"])])])]))}});const Ub=B(GU,[["__scopeId","data-v-40345245"]]),XU={players:{type:Array,required:!0,default:[]}},KU={class:"leaderboard-top-10-region"},JU=o.defineComponent({__name:"LeaderboardTop10Region",props:XU,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",KU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.players,a=>(o.openBlock(),o.createBlock(Yt,{key:a.user_id,"card-code-prop":a.selected_banner_card??void 0,color:a.selected_banner_color??"var(--color-background-2-rgb)","mana-number":a.rank+1,name:a.name,"quantity-number":a.lp,"ignore-card-item":!0},null,8,["card-code-prop","color","mana-number","name","quantity-number"]))),128))]))}});const Ph=B(JU,[["__scopeId","data-v-892efa10"]]),ZU={index:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},favorite_deck:{type:String,required:!0,default:""},lp:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},selected_banner_card:{type:String,required:!1,default:null},selected_banner_color:{type:String,required:!1,default:null},server:{type:String,required:!0,default:"americas"},updated_at:{type:String,required:!0,default:""},user_id:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0}},QU={href:"/test",class:"wrapper"},eY={class:"leaderboard-detail-row-background-wrapper"},tY={class:"leaderboard-detail-row-background"},nY={class:"leaderboard-detail-row wrapper"},rY={class:"column-content"},aY={class:"column-content"},iY={class:"column-content deck-highlight-wrapper"},sY=o.defineComponent({__name:"LeaderboardDetailRow",props:ZU,setup(e){const t=e,n=o.computed(()=>t.selected_banner_card?["",`https://lor.gg/storage/cards/banner/${t.selected_banner_card}.png`]:[]),r=o.computed(()=>t.change===null||t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,i)=>(o.openBlock(),o.createElementBlock("a",QU,[o.createElementVNode("div",{class:"leaderboard-detail-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",eY,[o.createElementVNode("div",tY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${s})`})},null,4))),128))])]),o.createElementVNode("div",nY,[o.createElementVNode("div",{class:"column-content card-wrapper",onClick:i[0]||(i[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(Yt,{class:"card-slice-item","card-code-prop":t.selected_banner_card??void 0,color:t.selected_banner_color??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank+1,name:t.name,"maintain-aspect-ratio":!0},null,8,["card-code-prop","color","mana-number","name"])]),o.createElementVNode("div",rY,o.toDisplayString(o.unref(Me)(t.lp)),1),o.createElementVNode("div",{class:o.normalizeClass(["column-content change",r.value])},[t.change!==null?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(nt),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(t.change?o.unref(Me)(Math.abs(t.change)):""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Test ")],64))],2),o.createElementVNode("div",aY,o.toDisplayString(o.unref(Me)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5),o.createElementVNode("div",iY,[o.createVNode(sa,{"deck-code":t.favorite_deck},null,8,["deck-code"])])])],4)]))}});const Ah=B(sY,[["__scopeId","data-v-fd1e0d8c"]]),oY={deckcode:{type:String,required:!0,default:""},type:{type:String,required:!0,default:"built"},wins:{type:Number,required:!1,default:0},matches:{type:Number,required:!1,default:0},deckId:{type:Number,required:!1,default:0},userName:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:0},deckName:{type:String,required:!1,default:""},updatedAt:{type:Date,required:!1,default:new Date}};const lY={},cY=e=>(o.pushScopeId("data-v-5b8e191d"),e=e(),o.popScopeId(),e),uY={xmlns:"http://www.w3.org/2000/svg",viewBox:"25.21 66.56 353.98 269.42"},dY=cY(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M95 67.249c-9.442 3.237-27.165 14.29-35.055 21.862-11.985 11.504-13.495 17.449-8.521 33.553 2.884 9.338 3.125 12.31 1.653 20.336-.565 3.08-1.282 7.497-1.593 9.816-.654 4.859-1.507 6.968-3.167 7.827-3.347 1.731-6.07-.959-12.46-12.308-3.227-5.732-5.32-5.733-7.478-.002-2.901 7.705-4.229 34.074-2.178 43.267 2.612 11.708 12.146 22.248 23.887 26.408 8.91 3.158 11.435 5.049 14.233 10.662 8.79 17.627 7.541 23.49-4.121 19.348-1.98-.704-5.67-2.014-8.2-2.912-14.356-5.094-16.5 2.124-5.514 18.561 11.421 17.088 27.745 24.899 44.255 21.178 8.934-2.013 10.069-1.524 24.2 10.428 6.649 5.624 4.594 9.455-6.606 12.316-12.406 3.169-15.535 4.779-15.535 7.993 0 5.469 18.596 14.356 38.74 18.513l8.26 1.705 9.6-.008c15.176-.013 24.599-3.381 27.766-9.923 3.23-6.671-3.138-11.752-20.405-16.279-12.779-3.351-30.021-11.869-38.294-18.917-1.247-1.063-3.897-3.157-5.888-4.655-4.364-3.282-4.942-3.837-11.668-11.218-11.085-12.163-22.048-27.835-28.466-40.688-3.51-7.033-9.477-26.526-11.236-36.712-.456-2.64-1.19-6.571-1.631-8.736-2.292-11.243-2.558-44.967-.409-51.864 1.238-3.974 3.331-7.113 8.743-13.113 5.167-5.728 14.42-17.676 17.042-22.003C102.408 72.867 105.053 63.804 95 67.249m208.422.186c-3.908 3.908 15.994 38.934 31.232 54.965 10.996 11.569 10.723 10.583 10.696 38.6-.019 19.623-.295 24.066-1.963 31.6-.536 2.42-1.261 5.93-1.612 7.8-2.746 14.637-10.641 36.205-16.189 44.223-.904 1.308-3.281 4.807-5.282 7.777-10.021 14.873-21.298 27.434-32.304 35.985-8.729 6.78-14.267 10.233-24.2 15.088-5.783 2.826-8.281 3.691-18.309 6.339-18.029 4.761-23.977 11.711-16.463 19.235 10.208 10.222 41.826 8.98 67.937-2.669 18.937-8.448 18.603-13.956-1.126-18.585-11.879-2.787-13.761-6.768-6.284-13.29 10.684-9.318 15.331-11.406 22.045-9.904 19.751 4.416 38.64-5.948 49.204-26.999 7.093-14.133 2.492-17.531-14.547-10.743-14.009 5.581-15.808 2.355-8.334-14.948 3.515-8.137 5.055-9.639 13.261-12.938 12.256-4.926 18.075-9.526 22.289-17.62 5.112-9.82 6.884-21.96 4.955-33.951-.425-2.64-.978-6.6-1.229-8.8-1.713-15.016-5.073-17.902-10.183-8.747-8.477 15.19-14.387 14.824-15.445-.955-.217-3.244-.773-7.942-1.234-10.441-1.032-5.581-.845-7.054 2.093-16.489 4.123-13.244 3.044-19.481-4.99-28.827-11.239-13.075-39.907-29.817-44.018-25.706M154.939 85.232c-3.352.569-6.053 1.748-19.923 8.695-19.225 9.629-19.157 9.528-16.851 24.998.866 5.807 1.256 10.746 2.045 25.875.132 2.53.594 6.94 1.026 9.8.433 2.86 1.057 8.516 1.389 12.568.904 11.063 1.161 11.837 5.636 16.979 4.078 4.685 5.623 6.898 6.554 9.385 3.192 8.532 2.461 17.086-2.219 25.952-4.076 7.723-4.323 11.769-1.59 26.116.523 2.75 1.15 7.416 1.392 10.369.858 10.47 1.649 11.962 8.002 15.115 3.337 1.656 44.33 18.375 56 22.839 5.951 2.277 6.046 2.253 32.8-8.361 37.31-14.801 37.429-14.853 39.694-17.327 1.98-2.162 3.87-11.183 4.91-23.435.346-4.07.906-9.11 1.245-11.2.888-5.479.613-6.76-3.053-14.2-6.949-14.101-6.029-23.115 3.597-35.251 5.448-6.868 6.466-11.089 7.811-32.387.335-5.301.967-11.781 1.404-14.4.437-2.619.971-7.732 1.186-11.362.214-3.63.597-9.435.85-12.9.575-7.874.303-9.161-2.449-11.613-2.137-1.902-25.779-13.911-30.595-15.54L251 85l-47-.059c-25.85-.032-47.928.099-49.061.291m58.368 27.111c31.052 5.446 39.083 34.191 18.288 65.457-6.499 9.772-6.864 11.713-3.691 19.6.885 2.2 4.129 10.93 7.209 19.4 6.148 16.906 11.122 29.697 12.978 33.378C252.452 258.825 249.46 261 233.2 261c-15.701 0-17.591-1.169-15.554-9.621 1.257-5.212-1.044-13.36-9.338-33.066-3.593-8.535-8.291-9.515-11.759-2.453l-1.149 2.34v27.6l1.543 4.506c3.059 8.927 1.215 10.438-13.143 10.775-17.559.412-20.099-1.187-16.9-10.64l1.3-3.841V131l-1.322-3.6c-4.295-11.694-3.493-14.57 4.276-15.338 4.722-.467 39.199-.237 42.153.281m-15.188 22.413c-2.764 1.746-2.719 1.382-2.719 21.844 0 17.841.025 18.442.822 19.799 1.436 2.445 3.249 2.141 6.676-1.119 11.294-10.747 15.557-31.235 7.868-37.817-3.234-2.768-10.192-4.257-12.647-2.707"},null,-1)),fY=[dY];function pY(e,t){return o.openBlock(),o.createElementBlock("svg",uY,fY)}const Ih=B(lY,[["render",pY],["__scopeId","data-v-5b8e191d"]]);const hY={},mY=e=>(o.pushScopeId("data-v-5b6f3d5e"),e=e(),o.popScopeId(),e),gY={xmlns:"http://www.w3.org/2000/svg",viewBox:"58.93 70.36 282.28 264.88"},vY=mY(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M74.274 70.98C70.143 72.453 70 73.187 70 92.989c0 21.375-.191 20.705 7.953 27.937 2.556 2.269 6.54 5.914 8.854 8.1 2.315 2.186 5.915 5.497 8 7.359 2.086 1.861 5.953 5.468 8.593 8.015 2.64 2.547 6.42 5.963 8.4 7.591 1.98 1.628 5.94 5.133 8.8 7.788 2.86 2.654 7 6.432 9.2 8.395 2.2 1.962 5.98 5.503 8.4 7.868s6.59 6.158 9.268 8.429c4.882 4.142 12.716 11.282 23.838 21.729 3.28 3.08 7.792 7.123 10.028 8.985 2.236 1.861 5.776 5.021 7.866 7.021s5.69 5.329 8 7.396c2.31 2.068 6.81 6.22 10 9.226 3.19 3.007 7.69 7.081 10 9.053 21.285 18.171 21.513 18.953 9.193 31.537-11.486 11.732-11.469 11.443-1.589 26.173 10.712 15.973 10.896 15.947 20.619-2.991 11.834-23.052 13.416-25.365 25.434-37.203 11.725-11.549 16.26-14.348 43.754-26.997 11.527-5.303 11.173-7.25-3.018-16.595-15.492-10.2-15.171-10.208-26.226.594-13.433 13.125-12.533 13.445-37.919-13.489-3.986-4.229-12.558-13.143-19.048-19.807-6.49-6.665-13.69-14.274-16-16.909-2.31-2.635-9.78-10.466-16.6-17.402-6.82-6.936-15.279-15.667-18.799-19.402-3.519-3.734-11.46-11.95-17.645-18.256-6.186-6.306-13.297-13.768-15.802-16.581-20.002-22.467-26.5-28.126-33.898-29.522-4.553-.859-33.002-.901-35.382-.051m216.926.059c-7.757 1.18-15.308 7.452-32.457 26.961-2.998 3.41-10.947 11.813-17.664 18.674-18.498 18.89-18.283 16.816-3.329 32.126 5.05 5.17 11.341 11.83 13.981 14.8 10.629 11.958 10.819 11.943 25.898-2.122 3.206-2.991 7.616-6.926 9.8-8.745 2.184-1.819 6.041-5.312 8.571-7.763 4.366-4.231 7.244-6.886 21.639-19.97 13.379-12.161 12.447-9.635 12.278-33.282-.166-23.132 1.735-21.089-19.717-21.188-11.529-.052-16.118.07-19 .509M100.353 214.552c-2.773.991-20.47 12.72-22.081 14.635-1.619 1.924-1.444 3.394.643 5.394 1.846 1.768 16.397 9.364 26.085 13.616 11.889 5.218 13.609 6.491 26.829 19.866 11.076 11.206 10.481 10.327 20.611 30.449 11.967 23.77 11.22 23.54 22.788 7.024 10.227-14.603 10.258-13.976-1.248-25.724-10.551-10.773-10.909-12.12-5.142-19.314 4.67-5.824 3.236-8.817-9.202-19.218-2.55-2.132-6.976-6.088-9.836-8.791-8.553-8.083-10.094-8.421-16.842-3.693-6.031 4.224-8.258 3.44-18.406-6.477-8.442-8.25-10.183-9.202-14.199-7.767m-3.956 64.232c-2.342.689-4.018 2.019-10.527 8.355-3.778 3.678-8.94 8.499-11.47 10.715-7.557 6.617-12.117 11.625-13.871 15.235-4.825 9.931 1.8 21.016 12.924 21.628 6.239.343 9.298-1.455 19.527-11.475 3.971-3.89 9.903-9.585 13.182-12.657 13.369-12.524 13.444-13.102 3.039-23.437-7.544-7.493-10.098-9.161-12.804-8.364m203.369.571c-2.737 1.275-13.946 12.139-15.534 15.057-2.288 4.204-1.446 5.641 9.351 15.954 4.28 4.089 10.49 10.054 13.8 13.257 13.601 13.162 21.004 14.833 29.242 6.6 8.552-8.547 5.312-18.062-11.025-32.369-2.53-2.215-7.718-7.063-11.529-10.773-8.942-8.704-10.453-9.52-14.305-7.726"},null,-1)),_Y=[vY];function yY(e,t){return o.openBlock(),o.createElementBlock("svg",gY,_Y)}const Lh=B(hY,[["render",yY],["__scopeId","data-v-5b6f3d5e"]]);const bY={},kY=e=>(o.pushScopeId("data-v-81223df9"),e=e(),o.popScopeId(),e),wY={xmlns:"http://www.w3.org/2000/svg",viewBox:"5.25 32.41 384.35 392.23"},SY=kY(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M196.56 32.706c-.242.162-.643.68-.891 1.151-.464.882-6.181 23.37-7.663 30.143-2.029 9.277-13.207 54.007-16.187 64.776-2.401 8.677-2.227 10.411 1.102 11.036 2.465.462 8.894-4.762 13.798-11.212 1.004-1.32 2.566-3.21 3.473-4.2.906-.99 2.417-2.935 3.358-4.322 2.851-4.205 4.112-4.166 7.292.224.916 1.264 2.6 3.288 3.743 4.498 1.142 1.21 3.257 3.64 4.698 5.401 6.387 7.801 10.008 10.411 12.645 9.115 2.896-1.422 3.516 2.259-6.28-37.316-2.423-9.79-4.945-20.05-5.603-22.8-8.63-36.06-11.562-46.819-12.753-46.794-.161.003-.49.138-.732.3m-77.835 9.868c-4.03 2.43-9.532 6.24-14.703 10.181-9.024 6.878-10.169 7.804-13.417 10.853-1.763 1.654-4.015 3.621-5.005 4.371-.99.75-3.702 3.177-6.026 5.393-2.324 2.215-5.474 5.198-7 6.628-3.458 3.241-9.993 10.614-12.232 13.8-.928 1.32-2.79 3.75-4.139 5.4-1.349 1.65-3.548 4.53-4.888 6.4-1.34 1.87-2.926 3.85-3.524 4.4-.599.55-2.45 2.8-4.113 5-1.663 2.2-3.953 5.08-5.087 6.4-1.134 1.32-3.261 4.11-4.725 6.2-1.464 2.09-3.443 4.88-4.399 6.2-8.17 11.289-23.812 36.82-24.163 39.441-.282 2.099.484 2.895 3.842 3.991 24.399 7.967 28.64 32.858 8.613 50.547-4.2 3.71-4.802 4.749-4.005 6.917 1.139 3.094 4.592 10.511 5.944 12.767.771 1.285 2.411 4.317 3.645 6.737s3.462 6.311 4.95 8.646c1.489 2.336 3.697 5.821 4.907 7.746 7.683 12.222 15.624 23.335 21.97 30.748 1.666 1.947 4.165 4.917 5.552 6.6 3.393 4.116 18.291 19.067 22.278 22.357 1.76 1.452 4.28 3.669 5.6 4.926 3.052 2.907 14.983 11.823 22.898 17.112 3.353 2.241 7.313 5.202 8.8 6.581 1.486 1.378 4.005 3.554 5.597 4.836 1.592 1.282 3.752 3.43 4.8 4.774 1.048 1.344 3.54 4.161 5.538 6.259 5.088 5.343 11.547 13.615 14.195 18.181 5.189 8.946 7.369 7.129 5.539-4.618-.458-2.942-.98-6.518-1.161-7.948-.906-7.167-3.701-21.63-4.87-25.2-4.277-13.062-8.002-19.195-11.662-19.199-2.363-.002-5.716-2.286-11.474-7.815-1.65-1.585-4.08-3.663-5.4-4.619-3.099-2.244-19.447-18.69-23.229-23.367-1.601-1.98-4.093-4.95-5.536-6.6-7.749-8.854-11.713-14.165-20.9-28-2.557-3.85-5.634-8.44-6.837-10.2-5.081-7.431-6.634-10.061-11.099-18.794-2.586-5.056-5.616-10.546-6.735-12.2-2.255-3.333-6.408-12.086-7.014-14.781-.886-3.942 4.505-17.812 11.748-30.225 1.155-1.98 3.322-5.76 4.815-8.4 3.088-5.461 12.353-19.487 14.344-21.717.729-.816 2.922-3.643 4.874-6.283 4.239-5.731 12.608-16.065 16.623-20.525 2.06-2.289 2.639-4.032 4.337-13.06 1.059-5.628 4.403-17.624 6.027-21.615.626-1.54 2.075-5.23 3.219-8.2 1.145-2.97 2.752-6.75 3.572-8.4.82-1.65 2.428-5.16 3.571-7.8 1.144-2.64 2.587-5.61 3.206-6.6.619-.99 2.405-4.315 3.97-7.388 4.164-8.182 3.716-10.062-1.631-6.838m152.701-1.017c-.394.638.802 3.336 6.061 13.68 7.714 15.171 14.334 30.793 16.444 38.805.428 1.627 1.251 4.578 1.828 6.558.577 1.98 1.741 6.957 2.586 11.061 1.741 8.459 1.616 8.201 7.055 14.569 3.573 4.183 5.806 6.933 12.8 15.763 17.7 22.344 38.646 60.307 37.177 67.379-.676 3.251-8.705 20.112-15.157 31.828-5.617 10.199-23.977 36.675-29.818 43-.813.88-2.297 2.68-3.298 4-1.001 1.32-2.399 2.94-3.107 3.6-.707.66-2.331 2.55-3.608 4.2-2.713 3.505-27.938 28.771-31.236 31.286-1.235.943-3.395 2.69-4.8 3.883-3.642 3.095-5.699 4.303-7.862 4.618-2.822.411-3.4.977-5.808 5.693-5.426 10.628-7.737 19.106-9.9 36.32-.194 1.54-.629 4.211-.968 5.935-.693 3.535-.813 9.292-.225 10.839.813 2.137 2.274 1.116 6.546-4.574 1.239-1.65 3.164-4.08 4.277-5.4 1.114-1.32 3.412-4.11 5.106-6.2 7.458-9.199 18.47-19.652 26.23-24.899 20.895-14.128 42.028-32.329 55.15-47.501 1.998-2.31 4.673-5.28 5.945-6.6 3.106-3.225 9.323-11.242 16.556-21.349 10.726-14.987 23-38.069 23-43.251 0-1.421-.265-1.773-3.657-4.866-13.765-12.547-17.154-26-10.012-39.734 2.918-5.61 7.799-9.456 15.469-12.187 3.788-1.349 5.4-2.597 5.4-4.181 0-2.486-15.591-29.304-21.703-37.33-.964-1.266-2.992-4.102-4.507-6.302-3.233-4.697-12.836-17.271-16.037-21-1.228-1.43-5.14-5.903-8.693-9.939-3.553-4.037-7.9-9.063-9.66-11.17-6.962-8.333-21.833-22.69-29.55-28.528-2.007-1.519-6.922-5.237-10.921-8.262-11.116-8.41-16.153-11.28-17.103-9.744M179.2 51.341c-.55.296-3.07 1.762-5.6 3.259-2.53 1.498-7.39 4.339-10.8 6.313-3.41 1.975-7.46 4.406-9 5.403-1.54.997-6.847 4.239-11.794 7.206-15.808 9.481-31.025 19.992-33.345 23.033-1.987 2.605-3.944 11.726-2.958 13.789 1.055 2.209 2.118 1.698 11.097-5.333 19.356-15.157 31.76-23.788 34.211-23.805 1.433-.01 2.574 1.182 4.172 4.361 3.175 6.314 4.208 6.746 8.866 3.708 1.623-1.058 4.259-2.7 5.857-3.649 4.495-2.667 4.798-3.169 6.895-11.426.447-1.76 1.8-7.035 3.006-11.723 2.901-11.276 2.809-12.968-.607-11.136m34.667.526c-1.284 1.284 5.221 27.239 7.638 30.478.938 1.256 7.903 6.113 11.489 8.011 3.101 1.642 4.066 1.08 6.79-3.956 3.49-6.451 3.98-6.45 13.616.006 7.527 5.044 20.023 14.489 26.751 20.221 9.473 8.07 11.523 7.245 8.835-3.555-1.659-6.668-2.042-7.168-10.078-13.136-6.485-4.816-28.683-18.844-36.308-22.944-1.98-1.065-5.329-2.973-7.442-4.24-2.113-1.267-5.623-3.289-7.8-4.492-2.177-1.203-5.758-3.194-7.958-4.424-3.846-2.15-4.957-2.545-5.533-1.969m-66.528 42.131c-.473.191-2.293 1.395-4.044 2.675-1.75 1.28-5.216 3.767-7.702 5.527-15.252 10.8-20.061 14.74-30.518 25-7.651 7.506-10.953 11.189-16.78 18.709-1.488 1.92-3.502 4.491-4.476 5.713-1.563 1.962-6.305 8.602-12.875 18.026-8.992 12.898-21.491 35.511-21.525 38.94-.019 2.036 3.141 9.239 6.762 15.412.709 1.21 2.606 4.63 4.214 7.6 11.397 21.048 20.971 33.763 39.005 51.803 19.754 19.761 24.958 24.424 43.868 39.309 9.849 7.752 9.183 9.072 9.042-17.927-.125-24.038.191-22.035-3.762-23.789-1.495-.662-4.107-2.852-9.61-8.053-4.156-3.929-9.331-8.762-11.501-10.742-4.157-3.792-11.026-11.294-14.652-16.001-1.186-1.54-2.888-3.63-3.782-4.644-.894-1.015-2.767-3.535-4.162-5.6-1.86-2.755-3.274-4.326-5.305-5.893-5.021-3.876-15.634-18.493-17.185-23.669-1.028-3.43 6.996-14.13 20.767-27.694 7.562-7.448 8.393-7.601 12.523-2.294.939 1.207 3.069 3.647 4.733 5.422 1.664 1.775 3.892 4.25 4.951 5.5 2.585 3.051 3.779 3.1 7.712.317 4.055-2.87 16.785-15.892 17.142-17.536.331-1.521.569-.625-3.411-12.797-4.73-14.467-6.033-11.772 12.572-26.006 4.48-3.426 4.785-3.849 4.555-6.302-.189-2.012-4.81-13.623-7.882-19.804-.82-1.65-2.009-4.335-2.641-5.966-1.772-4.57-3.648-6.198-6.033-5.236m96.668.395c-.807.807-2.36 3.975-4.415 9.007-.629 1.54-2.336 5.5-3.793 8.8-6.848 15.511-6.888 14.52.812 19.977 8.955 6.347 14.589 11.497 14.589 13.337-.001.946-3.853 12.713-6.344 19.376-1.908 5.104-1.758 5.362 9.369 16.04 11.414 10.953 11.327 10.936 17.454 3.294 1.565-1.952 8.193-9.257 9.696-10.687 2.159-2.052 4.75-.516 12.425 7.366 14.713 15.111 20.166 22.564 19.029 26.01-.732 2.216-7.044 12.21-9.14 14.469-1.679 1.811-4.565 5.349-11.089 13.6-8.574 10.841-41.872 43.429-47.041 46.036-3.976 2.006-3.759.609-3.759 24.2 0 22.706-.039 22.382 2.721 22.382 1.569 0 2.82-.883 13.163-9.293 1.696-1.379 4.396-3.568 6-4.864 1.604-1.297 4.176-3.562 5.716-5.034 1.54-1.471 3.97-3.592 5.4-4.712 1.43-1.121 3.86-3.33 5.4-4.911 1.54-1.58 3.7-3.585 4.8-4.454 3.3-2.61 18.909-17.902 21.546-21.109 1.35-1.642 3.464-4.074 4.698-5.404 2.215-2.389 3.163-3.563 8.898-11.019 7.577-9.85 14.393-21.081 21.886-36.056 5.889-11.771 5.957-12.57 1.607-18.893-.659-.959-2.706-4.332-4.548-7.497-7.471-12.836-15.422-25.234-21.131-32.954-13.902-18.797-15.65-20.983-22.616-28.278-7.44-7.792-13.149-13.243-18.142-17.322-7.348-6.003-18.73-14.447-28.138-20.874-2.216-1.514-3.895-1.691-5.053-.533m-48.324 38.234c-.492.345-1.784 1.944-2.871 3.555-2.76 4.091-6.753 8.511-10.568 11.697-1.784 1.491-9.814 9.219-17.844 17.174-8.03 7.954-15.767 15.427-17.193 16.605-1.426 1.178-6.663 6.102-11.637 10.942-4.975 4.84-14.224 13.736-20.555 19.769-12.119 11.549-13.028 12.587-12.985 14.831.042 2.222.386 2.728 5.306 7.8 2.561 2.64 6.154 6.375 7.986 8.3 5.068 5.328 4.972 5.368 18.52-7.778 5.647-5.48 6.33-5.384 13.358 1.876 1.43 1.478 6.38 6.205 11 10.506s14.823 14.086 22.674 21.744c17.648 17.215 15.94 16.543 23.171 9.12 2.555-2.623 5.293-5.283 6.085-5.912 1.798-1.43 21.471-20.066 26.871-25.456 7.915-7.901 16.576-15.779 17.64-16.046 1.759-.441 3.27.704 10.693 8.098 8.234 8.203 9.025 8.556 11.835 5.279.787-.919 2.988-3.304 4.891-5.3 11.519-12.086 11.901-13.498 5.206-19.285-1.686-1.458-10.356-9.712-19.266-18.343-8.91-8.631-17.28-16.642-18.6-17.803-1.32-1.16-5.756-5.46-9.857-9.555-13.461-13.439-19.294-19.065-22.743-21.936-4.84-4.029-11.755-11.258-15.099-15.785-3.522-4.767-4.303-5.299-6.018-4.097m2.802 27.673c.335.385 1.442 2.328 2.46 4.318 1.977 3.863 6.153 8.307 16.146 17.182 2.23 1.98 5.461 5.196 7.181 7.146 1.721 1.951 4.658 4.92 6.528 6.597 13.563 12.168 15.184 14.028 14.195 16.285-.513 1.169-10.056 10.824-15.845 16.029-1.677 1.509-8.247 7.714-14.6 13.789-15.23 14.565-15.45 14.754-17.166 14.754-1.572 0-2.598-.881-16.275-13.988-4.24-4.063-12.901-12.339-19.247-18.392-11.302-10.781-12.662-12.29-12.662-14.049 0-.61 3.353-4.137 11.3-11.884 6.215-6.059 13.19-12.935 15.5-15.281 2.31-2.346 5.763-5.566 7.674-7.157 5.063-4.214 8.072-7.596 9.55-10.734 2.323-4.934 3.832-6.258 5.261-4.615m-2.368 9.95c-.265.113-1.38 1.408-2.476 2.878-1.977 2.648-14.1 14.843-18.559 18.667-1.275 1.094-5.46 5.272-9.3 9.285-7.641 7.986-7.921 8.488-6.192 11.11 1.133 1.72 37.333 37.449 37.81 37.319 1.004-.273 37.7-37.781 37.942-38.781.143-.59.087-1.526-.124-2.08-.428-1.128-12.115-13.671-14.262-15.309-.758-.578-6.175-6.02-12.038-12.095-10.112-10.476-11.405-11.586-12.801-10.994m2.203 16.313c1.773.925 21.6 21.18 21.9 22.373.147.585.144 1.553-.006 2.15-.348 1.389-22.144 23.394-23.007 23.23-.334-.064-5.602-5.183-11.707-11.376-14.563-14.772-14.98-10.815 3.09-29.282 7.377-7.538 8.003-7.995 9.73-7.095m-16.023 95.832c-1.603 1.261-15.227 23.557-15.633 25.583-.163.818.3 3.34 1.382 7.526.895 3.463 2.229 8.906 2.966 12.096 1.606 6.958 7.686 30.805 12.085 47.4 1.75 6.6 3.462 13.17 3.805 14.6 2.478 10.341 6.74 26.114 7.411 27.429.446.875 1.034 2.724 1.307 4.11.889 4.517 2.575 4.686 3.753.378.379-1.385 1.284-4.407 2.012-6.717.727-2.31 1.728-6 2.222-8.2.495-2.2 1.149-4.99 1.455-6.2 2.792-11.062 9.84-38.585 11.933-46.6 1.437-5.5 3.071-11.98 3.632-14.4.56-2.42 1.807-7.37 2.77-11 2.989-11.267 4.603-18.241 4.603-19.885 0-2.163-.932-3.846-9.589-17.315-1.485-2.31-3.156-5.01-3.714-6-2.806-4.983-5.381-4.588-10.137 1.555-2.771 3.579-3.209 4.54-3.962 8.681-2.699 14.846-3.756 15.117-6.183 1.582-1.658-9.245-8.484-17.481-12.118-14.623"},null,-1)),xY=[SY];function CY(e,t){return o.openBlock(),o.createElementBlock("svg",wY,xY)}const Rh=B(bY,[["render",CY],["__scopeId","data-v-81223df9"]]),EY=e=>(o.pushScopeId("data-v-bb1043c8"),e=e(),o.popScopeId(),e),TY={href:"/test/built-deck"},OY=EY(()=>o.createElementVNode("div",{class:"background"},null,-1)),MY={class:"content"},NY={class:"format"},DY={class:"format-text"},PY={key:0,class:"details built"},AY={class:"title"},IY={class:"extra-info"},LY={href:"test/user"},RY={class:"info-time"},BY={key:1,class:"details stats"},VY={class:"stat-column"},$Y={class:"descriptor"},FY={class:"stat-column"},zY={class:"number"},jY={class:"descriptor"},HY=o.defineComponent({__name:"DeckBlock",props:oY,setup(e){const t=e,{t:n}=ne(),r=o.inject(Gi),a=o.computed(()=>vt(t.deckcode)),i=o.computed(()=>Jt(a.value)),s=o.computed(()=>kc(i.value)),l=o.computed(()=>i.value.filter(f=>Si(f))),c=o.computed(()=>{var f;return{"--background-image":`url(https://lor.gg/storage/cards/full-art/${(f=Aa(i.value,a.value,1)[0])==null?void 0:f.cardCode}.webp)`}}),u=o.computed(()=>Z3(i.value)),d=o.computed(()=>u.value.map(f=>_e().dataJson.formats[f]).filter(f=>f!==void 0).sort((f,p)=>f.order-p.order)[0]);return console.log(u.value),(f,p)=>{var h,g,v;return o.openBlock(),o.createElementBlock("a",TY,[o.createElementVNode("div",{class:"built-deck-preview",style:o.normalizeStyle(c.value)},[OY,o.createVNode(hu,{class:"deck-highlight-eye icon","deck-code":t.deckcode,onClick:p[0]||(p[0]=o.withModifiers(()=>{},["stop","prevent"]))},null,8,["deck-code"]),o.createElementVNode("div",{class:"options-button icon",onClick:p[1]||(p[1]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(o.unref(nt),{icon:"ellipsis-v"})]),o.createVNode(wo,{class:"deck-highlight-regions deck-highlight-section",regions:s.value},null,8,["regions"]),o.createElementVNode("div",MY,[o.createElementVNode("div",NY,[((h=d.value)==null?void 0:h.nameRef)===o.unref(xn).Eternal?(o.openBlock(),o.createBlock(Ih,{key:0,class:"format-icon"})):((g=d.value)==null?void 0:g.nameRef)===o.unref(xn).Standard?(o.openBlock(),o.createBlock(Lh,{key:1,class:"format-icon"})):(o.openBlock(),o.createBlock(Rh,{key:2,class:"format-icon"})),o.createElementVNode("span",DY,o.toDisplayString((v=d.value)==null?void 0:v.name),1)]),o.createVNode(So,{class:"deck-highlight-cards deck-highlight-section",cards:l.value},null,8,["cards"])]),t.type==="built"?(o.openBlock(),o.createElementBlock("div",PY,[o.createElementVNode("div",AY,o.toDisplayString(t.deckName),1),o.createElementVNode("div",IY,[o.createElementVNode("div",{class:"info-user",onClick:p[2]||(p[2]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createElementVNode("a",LY,o.toDisplayString(t.userName),1)]),o.createElementVNode("div",RY,o.toDisplayString(o.unref(r)(t.updatedAt).fromNow()),1)])])):o.createCommentVNode("",!0),t.type==="stats"?(o.openBlock(),o.createElementBlock("div",BY,[o.createElementVNode("div",VY,[o.createElementVNode("div",{class:"number",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5),o.createElementVNode("div",$Y,o.toDisplayString(o.unref(n)("general.winrate")),1)]),o.createElementVNode("div",FY,[o.createElementVNode("div",zY,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",jY,o.toDisplayString(o.unref(n)("general.matches")),1)])])):o.createCommentVNode("",!0)],4)])}}});const Yb=B(HY,[["__scopeId","data-v-bb1043c8"]]),WY={headingItems:{type:Array,required:!0,default:[]}},UY={class:"table-wrapper"},YY={class:"table no-scrollbar"},qY={class:"heading wrapper"},GY=o.defineComponent({__name:"SmallTable",props:WY,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",UY,[o.createElementVNode("div",YY,[o.createElementVNode("div",qY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.headingItems,a=>(o.openBlock(),o.createElementBlock("div",{key:a.title,class:"heading-cell column-content"},[o.createElementVNode("div",null,o.toDisplayString(a.title),1)]))),128)),o.renderSlot(n.$slots,"heading",{},void 0,!0)]),o.renderSlot(n.$slots,"default",{},void 0,!0)])]))}});const Qa=B(GY,[["__scopeId","data-v-20cc8387"]]),XY={players:{type:Array,required:!0,default:[]}},KY=e=>(o.pushScopeId("data-v-48a25357"),e=e(),o.popScopeId(),e),JY={class:"leaderboard-top"},ZY=KY(()=>o.createElementVNode("div",{class:"heading-background"},null,-1)),QY={class:"heading-wrapper"},eq=o.defineComponent({__name:"LeaderboardTop",props:XY,setup(e){const t=e,n=o.computed(()=>_e().dataJson.servers.map(r=>t.players.filter(a=>a.server===r.nameRef).sort((a,i)=>a.rank-i.rank).slice(0,10)));return(r,a)=>(o.openBlock(),o.createElementBlock("div",JY,[ZY,o.createElementVNode("div",QY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(_e)().dataJson.servers,i=>(o.openBlock(),o.createElementBlock("div",{key:i.nameRef,class:"heading"},o.toDisplayString(i.name),1))),128))]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"top-10"},[o.createVNode(Ph,{players:i},null,8,["players"])]))),128))]))}});const qb=B(eq,[["__scopeId","data-v-48a25357"]]),tq={flipped:{type:Boolean,required:!0,default:!0},cardCode:{type:String,required:!0,default:"01IO001"}},nq={class:"card-item-3d"},rq=o.defineComponent({__name:"CardItem3d",props:tq,setup(e){const t=e,n={ShadowIsles:"https://static.wikia.nocookie.net/leagueoflegends/images/b/bb/LoR_Shadow_Isles_Card_Back.png",BandleCity:"https://static.wikia.nocookie.net/leagueoflegends/images/c/c4/LoR_Bandle_City_Card_Back.png",Bilgewater:"https://static.wikia.nocookie.net/leagueoflegends/images/2/24/LoR_Bilgewater_Card_Back.png",Demacia:"https://static.wikia.nocookie.net/leagueoflegends/images/6/62/LoR_Demacia_Card_Back.png",Freljord:"https://static.wikia.nocookie.net/leagueoflegends/images/5/5e/LoR_Freljord_Card_Back.png",Ionia:"https://static.wikia.nocookie.net/leagueoflegends/images/3/3d/LoR_Ionia_Card_Back.png",Noxus:"https://static.wikia.nocookie.net/leagueoflegends/images/5/50/LoR_Noxus_Card_Back.png",PiltoverZaun:"https://static.wikia.nocookie.net/leagueoflegends/images/5/57/LoR_Piltover_Card_Back.png",Shurima:"https://static.wikia.nocookie.net/leagueoflegends/images/0/0c/LoR_Shurima_Card_Back.png",Targon:"https://static.wikia.nocookie.net/leagueoflegends/images/a/a6/LoR_Targon_Card_Back.png"},r=o.computed(()=>{const s=co(void 0,t.cardCode,!0);if(s.value===void 0)return{};const l=s.value.regionRefs[0];return{content:`url(${n[l]??"https://static.wikia.nocookie.net/leagueoflegends/images/2/2d/LoR_Summoner%27s_Rift_Order_Card_Back.png"})`}}),a=o.computed(()=>({"background-image":`url("https://lor.gg/storage/cards/card/en_us/${t.cardCode}.webp")`,"background-size":"cover"})),i=o.computed(()=>t.flipped?["flipped"]:[]);return(s,l)=>(o.openBlock(),o.createElementBlock("div",nq,[o.createElementVNode("div",{class:o.normalizeClass(["card",i.value])},[o.createElementVNode("div",{class:"front face",style:o.normalizeStyle(r.value)},null,4),o.createElementVNode("div",{class:"back face",style:o.normalizeStyle(a.value)},null,4)],2)]))}});const Bh=B(rq,[["__scopeId","data-v-72e7b1ae"]]),aq=e=>(o.pushScopeId("data-v-580d1d32"),e=e(),o.popScopeId(),e),iq={class:"card-lottery"},sq={class:"cards-container"},oq={key:0,class:"bottom"},lq={class:"slice"},cq={class:"circle-slice-item-wrapper"},uq={class:"options"},dq={class:"primary-button"},fq={class:"primary-button"},pq=aq(()=>o.createElementVNode("span",null," (23) ",-1)),hq={class:"icon"},mq={class:"circle-card-item-wrapper"},gq=o.defineComponent({__name:"CardLottery",setup(e){const t=Object.keys(Pt().cardJsonObject),n=[],r=o.ref(null),a=o.computed(()=>r.value?{background:`url(https://lor.gg/storage/cards/full-art/${r.value}.webp)`,"background-position":"center","background-size":"cover"}:{});function i(l){r.value=l.cardCode.value,l.flipped.value=!0;for(const c of n)l!==c&&setTimeout(()=>{c.display.value=!1},1e3)}function s(){r.value=null,n.splice(0);for(let l=0;l<3;l++)n.push({flipped:o.ref(!1),display:o.ref(!0),cardCode:o.ref(t[Math.floor(Math.random()*t.length)])})}return s(),(l,c)=>{const u=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",iq,[o.createElementVNode("div",{class:"card-lottery-background",style:o.normalizeStyle(a.value)},null,4),o.createElementVNode("div",sq,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(d,f)=>o.createElementVNode("div",{key:f,class:o.normalizeClass(["card-item-3d-wrapper",d.display.value?null:"hide"])},[o.createVNode(Bh,{flipped:d.flipped.value,"card-code":d.cardCode.value,onClick:p=>i(d)},null,8,["flipped","card-code","onClick"])],2)),64))]),r.value?(o.openBlock(),o.createElementBlock("div",oq,[o.createElementVNode("div",lq,[o.createElementVNode("div",cq,[o.createVNode(Yt,{color:"133, 133, 133",name:"Player","card-code-prop":r.value,"ignore-card-item":!0},null,8,["card-code-prop"])])]),o.createElementVNode("div",uq,[o.withDirectives(o.createElementVNode("button",dq,null,512),[[u,"cardLottery.setBanner"]]),o.withDirectives(o.createElementVNode("button",fq,null,512),[[u,"cardLottery.setIcon"]]),o.createElementVNode("button",{class:"primary-button",onClick:s},[o.withDirectives(o.createElementVNode("span",null,null,512),[[u,"cardLottery.openAnother"]]),pq])]),o.createElementVNode("div",hq,[o.createElementVNode("div",mq,[o.createVNode(ua,{color:"133, 133, 133","card-code-prop":r.value,"ignore-card-item":!0},null,8,["card-code-prop"])])])])):o.createCommentVNode("",!0)])}}});const Gb=B(gq,[["__scopeId","data-v-580d1d32"]]),vq={bannerCardCode:{type:String,required:!0,default:""},bannerColor:{type:String,required:!0,default:""},iconCardCode:{type:String,required:!0,default:""},name:{type:String,required:!0,default:""},server:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},premiumExpiration:{type:Date,required:!1,default:null},isPremiumRenewing:{type:Boolean,required:!0,default:!1}},_q={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:2},cutout:{type:Number,required:!1,default:145}},Vh=o.defineComponent({__name:"WinrateDoughnutChart",props:_q,setup(e){const t=e,n=o.ref(null);Re.register(...fa);const r=o.computed(()=>({labels:["Wins","Losses"],datasets:[{data:[t.wins,t.matches-t.wins],backgroundColor:["#00adff","#ff5153"]}]})),a={cutout:t.cutout,elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1},datalabels:{display:!1}}},i=[{id:"text",beforeDraw:function(s){const l=s.chartArea.width,c=s.chartArea.height,u=s.ctx;u.restore();const d=(c/100).toFixed(2);u.font=`bold ${d}em sans-serif`,u.textBaseline="middle";const f=s.data.datasets[0].data[0],p=s.data.datasets[0].data[1],h=(f/(f+p)*100).toFixed(2)+"%",g=Math.round((l-u.measureText(h).width)/2),v=c/2;f>p?u.fillStyle="#00adff":f<p?u.fillStyle="#ff5153":u.fillStyle="#ffffff",u.fillText(h,g,v),u.save()}}];return(s,l)=>(o.openBlock(),o.createBlock(o.unref(_y),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:i},null,8,["chart-data"]))}}),yq={class:"dashboard-profile"},bq={class:"profile-banner"},kq=["src"],wq={class:"edit-banner"},Sq={class:"profile-text"},xq={class:"profile-region"},Cq={class:"profile-tiles"},Eq={class:"profile-tile"},Tq={class:"tile-content"},Oq={class:"games-text"},Mq={class:"tile-text"},Nq={class:"profile-tile"},Dq={class:"chart-container"},Pq={class:"tile-content"},Aq={class:"tile-text"},Iq={key:0,class:"profile-premium-expiration"},Lq={class:"profile-premium-expiration-time"},Rq=o.defineComponent({__name:"DashboardProfile",props:vq,setup(e){const t=e,{t:n}=ne(),r=o.inject(Gi);return(a,i)=>{const s=o.resolveComponent("LocalizedLink");return o.openBlock(),o.createElementBlock("div",yq,[o.createElementVNode("div",bq,[o.createElementVNode("img",{alt:"Profile Banner",src:`https://lor.gg/storage/cards/banner/${t.bannerCardCode??"05BC160"}.png`,class:"profile-banner-img"},null,8,kq),o.createVNode(ua,{"card-code-prop":t.iconCardCode??"05BC160","ignore-card-item":!0,"color-override":t.bannerColor},null,8,["card-code-prop","color-override"]),o.createElementVNode("div",wq,[o.createVNode(o.unref(nt),{icon:"pencil-alt"})])]),o.createElementVNode("div",Sq,[o.createVNode(s,{to:{name:"profile"},class:"profile-name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.name),1)]),_:1}),o.createElementVNode("div",xq,o.toDisplayString(t.server),1)]),o.createElementVNode("div",Cq,[o.createElementVNode("div",Eq,[o.createElementVNode("div",Tq,[o.createElementVNode("div",Oq,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1)]),o.createElementVNode("div",Mq,o.toDisplayString(o.unref(n)("general.gamesPlayed")),1)]),o.createElementVNode("div",Nq,[o.createElementVNode("div",Dq,[o.createElementVNode("div",Pq,[o.createVNode(Vh,{matches:t.matches,wins:t.wins,cutout:30},null,8,["matches","wins"])])]),o.createElementVNode("div",Aq,o.toDisplayString(o.unref(n)("general.winrate")),1)])]),t.premiumExpiration?(o.openBlock(),o.createElementBlock("div",Iq,[o.createTextVNode(o.toDisplayString(o.unref(n)("general.premium"))+" "+o.toDisplayString(t.isPremiumRenewing?o.unref(n)("general.renews"):o.unref(n)("general.expires"))+" ",1),o.createElementVNode("b",Lq,o.toDisplayString(o.unref(r)(t.premiumExpiration).fromNow()),1)])):(o.openBlock(),o.createBlock(s,{key:1,to:{name:"premium"},class:"profile-premium fancy-button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("general.getPremium")),1)]),_:1}))])}}});const Xb=B(Rq,[["__scopeId","data-v-1786a4dc"]]),Bq={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"totalPlayers"},server:{type:String,required:!1}};function Kb(e,t){const{t:n}=ne();Re.register(Za),e.plugins||(e.plugins={}),e.plugins.annotation||(e.plugins.annotation={}),e.plugins.annotation.annotations=[];let r=new Date("1972-01-01"),a=new Date("3000-12-01");for(const s of t)s>r&&(r=s),s<a&&(a=s);const i=[];for(const s of _e().dataJson.patches)new Date(s.startTime)<=r&&new Date(s.startTime)>=a&&i.push(s);for(const s of i)e.plugins.annotation.annotations.push({type:"line",xMin:s.startTime,xMax:s.startTime,borderColor:"rgba(255, 255, 255, 0.1)",borderDash:[10,5],borderWidth:1,label:{content:`${n("general.patch")} ${s.name}`,display:!0,position:"start",font:{weight:"normal"},backgroundColor:"rgba(0,0,0,0.2)"}})}const Jb=o.defineComponent({__name:"LeaderboardChart",props:Bq,setup(e){const t=e,n=o.ref();Re.register(...fa),Re.register(Za);const r=o.computed(()=>t.data.slice().sort((s,l)=>+s.date-+l.date)),a=o.computed(()=>{let s;return t.type==="totalPlayers"?s=_e().dataJson.servers.filter(l=>t.server===null?!0:l.nameRef===t.server).map(l=>({label:l.name,borderColor:rm(l.nameRef),data:r.value.filter(c=>c.server===l.nameRef).map(c=>c.players),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})):s=r.value.reduce((l,c)=>l.includes(c.player)?l:[...l,c.player],[]).map(l=>({label:l.name,borderColor:rm(l.user_id),data:r.value.filter(c=>c.player.user_id===l.user_id).map(c=>t.type==="lp"?c.lp:c.rank),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})),{labels:r.value.map(l=>l.date).filter((l,c,u)=>u.findIndex(d=>d.getTime()===l.getTime())===c),datasets:s}}),i={plugins:{legend:{display:!0},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};return Kb(i,t.data.map(s=>s.date)),(s,l)=>(o.openBlock(),o.createBlock(o.unref(yy),{ref_key:"chart",ref:n,"chart-data":a.value,options:i},null,8,["chart-data"]))}}),Vq={data:{type:Array,required:!0,default:[]},type:{type:Object,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},Zb=o.defineComponent({__name:"CardQuantityBarChart",props:Vq,setup(e){const t=e,{t:n}=ne(),r=o.ref();Re.register(...fa),Re.register(Za),Re.register(iu);const a=o.computed(()=>({labels:t.data.map(s=>s.quantity),datasets:[{backgroundColor:t.data.map(s=>s.wins*2>=s.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:t.data.map(s=>t.type==="winrate"?s.wins/s.matches*100-t.baseline:s.matches)}]})),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(s){return`${n("general.quantity")}: ${s[0].label}`},label(s){return t.type==="winrate"?(s.dataset.data[s.dataIndex]+t.baseline).toFixed(2)+"%":s.dataset.data[s.dataIndex].toString()},footer(s){return[`${n("general.matches")}: ${t.data[s[0].dataIndex].matches}`,`${n("general.wins")}: ${t.data[s[0].dataIndex].wins}`]}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:t.type==="winrate"?n("general.winrate"):n("general.matches")},ticks:{callback(s){return t.type==="winrate"?s+t.baseline+"%":s}}},x:{title:{display:!0,text:n("general.quantity")}}}};return(s,l)=>(o.openBlock(),o.createBlock(o.unref(Yc),{ref_key:"chart",ref:r,"chart-data":a.value,options:i},null,8,["chart-data"]))}}),$q={data:{type:Array,required:!0,default:""}},Qb=o.defineComponent({__name:"WinsLossesBarChart",props:$q,setup(e){const t=e,{t:n}=ne(),r=o.ref();Re.register(...fa),Re.register(Za),Re.register(iu);const a=o.computed(()=>typeof t.data[0].column!="string"),i=o.computed(()=>t.data.slice().sort((d,f)=>a.value?d.column.getTime()-f.column.getTime():d.column.localeCompare(f.column))),s=o.computed(()=>[...new Set(i.value.map(d=>d.column))]),l=o.computed(()=>({losses:i.value.map(d=>d.matches-d.wins),wins:i.value.map(d=>d.wins)})),c=o.computed(()=>({labels:s.value,datasets:Object.entries(l.value).map((d,f)=>({backgroundColor:d[0]==="wins"?`rgba(${Vs("--color-good-rgb")}, 0.5)`:`rgba(${Vs("--color-bad-rgb")}, 0.5)`,data:d[1],borderRadius:f===0?{topLeft:0,topRight:0,bottomLeft:10,bottomRight:10}:{topLeft:10,topRight:10,bottomLeft:0,bottomRight:0},borderSkipped:!1,label:n(`general.${d[0]}`),barPercentage:.5}))})),u={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{footer(d){if(d.length===0)return"";let f=0;const p=d[0].chart.data.datasets[1].data[d[0].dataIndex];for(let h=0;h<d[0].chart.data.datasets.length;h++)f+=d[0].chart.data.datasets[h].data[d[0].dataIndex];return`${n("general.total")}: ${f}
|
|
858
|
+
${n("general.winrate")}: ${Me(p/f*100,1,3)}%`}}},datalabels:{align:"end",anchor:"end",formatter(d,f){let p=0;for(let h=0;h<f.chart.data.datasets.length;h++)p+=f.chart.data.datasets[h].data[f.dataIndex];return p||""},display(d){return d.datasetIndex===d.chart.data.datasets.length-1}}},scales:{x:{type:a.value?"time":"category",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"},stacked:!0,grid:{display:!1}},y:{stacked:!0,grid:{display:!1},display:!0}}};return(d,f)=>(o.openBlock(),o.createBlock(o.unref(Yc),{ref_key:"chart",ref:r,"chart-data":c.value,options:u},null,8,["chart-data"]))}}),Fq={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},e3=o.defineComponent({__name:"RoundCardInfoBarChart",props:Fq,setup(e){const t=e,{t:n}=ne(),r=o.ref();Re.register(...fa),Re.register(Za),Re.register(iu);const a=o.computed(()=>Object.values(U3(t.data,l=>l.copy))),i=o.computed(()=>({labels:Array.from(t.data.reduce((l,c)=>l.add(c.round),new Set)),datasets:a.value.map(l=>{var c;return{backgroundColor:l.map(u=>u.wins*2>=u.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:l.map(u=>u.wins/u.matches*100-t.baseline),label:`${n("general.copy")} ${(c=l[0])==null?void 0:c.copy}`}})})),s={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(l){return`${n("general.round")}: ${l[0].label}`},label(l){return(l.dataset.data[l.dataIndex]+t.baseline).toFixed(2)+"%"},footer(l){const c=[];for(const u of a.value)u[l[0].dataIndex]!==void 0&&c.push(`${n("general.copy")} ${u[l[0].dataIndex].copy}`,`${n("general.matches")}: ${u[l[0].dataIndex].matches}`,`${n("general.wins")}: ${u[l[0].dataIndex].wins}`);return c}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:n("general.winrate")},ticks:{callback(l){return l+t.baseline+"%"}}},x:{title:{display:!0,text:t.type==="drawn"?n("cards.roundDrawn"):n("cards.roundPlayed")}}}};return(l,c)=>(o.openBlock(),o.createBlock(o.unref(Yc),{ref_key:"chart",ref:r,"chart-data":i.value,options:s},null,8,["chart-data"]))}}),zq={data:{type:Array,required:!0,default:[]},baseline:{type:Number,required:!1,default:50},type:{type:String,required:!0,default:"winrate"}},t3=o.defineComponent({__name:"LineChart",props:zq,setup(e){const t=e,{t:n}=ne(),r=o.ref();Re.register(...fa),Re.register(Za);const a=o.computed(()=>({labels:t.data.map(l=>l.date),datasets:[{borderColor:"rgba(255, 255, 255, 0.1)",data:t.data.map(l=>t.type==="winrate"?l.winrate*100:l.matches/l.totalMatches*100),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"},{pointBackgroundColor:"rgba(255, 255, 255, 0)",data:t.data.map(()=>t.baseline),borderColor:"rgba(0, 0, 0, 0.05)"}]})),i={plugins:{legend:{display:!1},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1,filter:function(l){return l.datasetIndex===0},callbacks:{label(l){let c=l.dataset.label||"";return c&&(c+=": "),c+=l.parsed.y+"%",c},footer:l=>{let c="";return l[0].dataIndex!==null&&t.data[l[0].dataIndex].matches&&(c+=`${n("general.matches")}: ${t.data[l[0].dataIndex].matches}`),c}}},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};Kb(i,t.data.map(l=>l.date));const s=[{id:"chartGradient",beforeDraw:function(l){if(!l.scales.y)return;const c=l.ctx.createLinearGradient(0,0,0,l.height);if(c.addColorStop(0,"rgba(0, 173, 255, 0.25)"),t.type==="playrate"){c.addColorStop(1,"rgba(0, 173, 255, 0)"),l.config.data.datasets[0].fill={target:1,above:c},l.update();return}const u=l.scales.y,d=Math.max.apply(null,l.data.datasets[0].data),f=u.getPixelForValue(d),p=u.getPixelForValue(50),h=Math.min(Math.min.apply(null,l.data.datasets[0].data),50),g=u.getPixelForValue(h),v=Math.max(Math.min((p-f)/(g-f),1),0);c.addColorStop(Math.max(v-.08,0),"rgba(0, 173, 255, 0)");const b=l.ctx.createLinearGradient(0,0,0,l.height);b.addColorStop(v,"rgba(255, 81, 83, 0)"),b.addColorStop(1,"rgba(255, 81, 83, 0.25)"),l.config.data.datasets[0].fill={target:1,above:c,below:b},l.update()}}];return(l,c)=>(o.openBlock(),o.createBlock(o.unref(yy),{ref_key:"chart",ref:r,"chart-data":a.value,options:i,plugins:s},null,8,["chart-data"]))}}),jq={deckRows:{type:Array,required:!0,default:[]}},Hq=o.defineComponent({__name:"BuiltDecksTable",props:jq,setup(e){const t=e,{t:n}=ne(),r=o.ref([{id:"deck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.deck")},{id:"name",isShown:!0,sortDirection:ye.NEITHER,title:n("general.name")},{id:"updatedAt",isShown:!0,sortDirection:ye.DOWN,title:n("general.updated")},{id:"createdAt",isShown:!0,sortDirection:ye.NEITHER,title:n("general.created")},{id:"manaCurve",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.cost")}]);function a(i){ji(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ca,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.deckRows,(l,c)=>(o.openBlock(),o.createBlock(zo,{id:l.id,key:l.id,type:"built",deckcode:l.deckCode,name:l.name,"created-at":l.createdAt,"updated-at":l.updatedAt,index:c+2},null,8,["id","deckcode","name","created-at","updated-at","index"]))),128))]),_:1},8,["heading-items"]))}});const n3=B(Hq,[["__scopeId","data-v-ae70adc0"]]),Wq={regionNameRef:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},Uq={class:"wrapper"},Yq={class:"champion-column column-content"},qq={class:"matches-column column-content"},Gq=o.defineComponent({__name:"ProfileRegionRow",props:Wq,setup(e){const t=e,n=o.computed(()=>_e().dataJson.regions.find(a=>a.nameRef===t.regionNameRef)),r=o.computed(()=>{var a;return`https://lor.gg/storage/cards/banner/${(a=n.value)==null?void 0:a.cardCode}.png`});return(a,i)=>{var s;return o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),o.createElementVNode("div",Uq,[o.createElementVNode("div",Yq,[o.createVNode(ko,{"region-ref":t.regionNameRef},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString((s=n.value)==null?void 0:s.name),1)]),o.createElementVNode("div",qq,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5)])],4)}}});const $h=B(Gq,[["__scopeId","data-v-b3f363b1"]]),Xq={rows:{type:Array,required:!0,default:[]}},Kq=o.defineComponent({__name:"ProfileRegionTable",props:Xq,setup(e){const t=e,{t:n}=ne(),r=[{title:n("general.regions"),id:"regions"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(Qa,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock($h,{key:s.regionNameRef,"region-name-ref":s.regionNameRef,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["region-name-ref","matches","wins","index"]))),128))]),_:1}))}});const r3=B(Kq,[["__scopeId","data-v-2dae645c"]]),Jq={rows:{type:Array,required:!0,default:[]}},Zq={archetypeId:{type:Number,required:!0,default:0},deckCode:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},Qq={class:"wrapper"},eG={class:"champion-column column-content"},tG={class:"matches-column column-content"},nG=o.defineComponent({__name:"ProfileArchetypeRow",props:Zq,setup(e){const t=e,n=o.computed(()=>vt(t.deckCode)),r=o.computed(()=>Jt(n.value)),a=o.computed(()=>{var i;return`https://lor.gg/storage/cards/banner/${(i=Aa(r.value,n.value,1)[0])==null?void 0:i.cardCode}.png`});return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${a.value})`})},null,4),o.createElementVNode("div",Qq,[o.createElementVNode("div",eG,[o.createVNode(sa,{"deck-code":t.deckCode},null,8,["deck-code"])]),o.createElementVNode("div",tG,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5)])],4))}});const Fh=B(nG,[["__scopeId","data-v-91ed15a8"]]),rG=o.defineComponent({__name:"ProfileArchetypeTable",props:Jq,setup(e){const t=e,{t:n}=ne(),r=[{title:n("general.archetypes"),id:"archetypes"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(Qa,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(Fh,{key:s.archetypeId,"archetype-id":s.archetypeId,"deck-code":s.deckCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["archetype-id","deck-code","matches","wins","index"]))),128))]),_:1}))}});const a3=B(rG,[["__scopeId","data-v-f883a9d9"]]),aG={selectedRegion:{type:String,required:!0,default:null},selectedPlayers:{type:Array,required:!0,default:[]},selectedGraphOption:{type:String,required:!0,default:"totalPlayers"},players:{type:Array,required:!0,default:[]},updatedAt:{type:Number,required:!0,default:0},isGraphShown:{type:Boolean,required:!0,default:!1}},iG={class:"leaderboard-options"},sG={class:"multiselects"},oG={class:"details"},lG={class:"players"},cG={class:"updated"},uG=o.defineComponent({__name:"LeaderboardOptions",props:aG,emits:["update:selectedPlayers","update:selectedRegion","update:selectedGraphOption"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.inject(Gi),i=[{name:r("leaderboard.lp"),nameRef:"lp"},{name:r("leaderboard.rank"),nameRef:"rank"},{name:r("leaderboard.totalPlayers"),nameRef:"totalPlayers"}],s=o.ref(n.selectedRegion),l=o.ref(n.selectedPlayers),c=o.ref(n.selectedGraphOption),u=o.computed(()=>s.value===null?n.players:n.players.filter(d=>d.server===s.value));return o.watch(s,d=>{t("update:selectedRegion",d),t("update:selectedPlayers",[])}),o.watch(l,d=>{t("update:selectedPlayers",d)}),o.watch(c,d=>{t("update:selectedGraphOption",d)}),o.watch(()=>n.selectedPlayers,d=>{l.value=d}),o.watch(()=>n.selectedRegion,d=>{s.value=d}),o.watch(()=>n.selectedGraphOption,d=>{c.value=d}),o.watch(()=>n.isGraphShown,d=>{d&&l.value.length>0&&(c.value="lp")}),(d,f)=>(o.openBlock(),o.createElementBlock("div",iG,[o.createElementVNode("div",sG,[o.createVNode(o.unref(Ot),{modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=p=>l.value=p),placeholder:o.unref(r)("general.players"),mode:s.value?"tags":"disabled",options:u.value,searchable:!0,label:"name","value-prop":"user_id"},null,8,["modelValue","placeholder","mode","options"]),o.createVNode(o.unref(Ot),{modelValue:s.value,"onUpdate:modelValue":f[1]||(f[1]=p=>s.value=p),placeholder:o.unref(r)("general.server"),options:o.unref(_e)().dataJson.servers,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"]),n.isGraphShown?(o.openBlock(),o.createBlock(o.unref(Ot),{key:0,modelValue:c.value,"onUpdate:modelValue":f[2]||(f[2]=p=>c.value=p),options:i,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",oG,[o.createElementVNode("div",lG,[o.createTextVNode(o.toDisplayString(o.unref(r)("leaderboard.totalPlayers"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(Me)(u.value.length)),1)]),o.createElementVNode("div",cG,[o.createTextVNode(o.toDisplayString(o.unref(r)("leaderboard.updated"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)(n.updatedAt*60*1e3).fromNow()),1)])])]))}});const i3=B(uG,[["__scopeId","data-v-9d0b891b"]]),dG={deckRows:{type:Array,required:!0,default:[]},originalDeckcode:{type:String,required:!0,default:""}},fG=o.defineComponent({__name:"SimilarDecksTable",props:dG,setup(e){const t=e,{t:n}=ne(),r=o.ref([{id:"deck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:ye.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:ye.NEITHER,title:n("general.winrate")},{id:"cost",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.cost")},{id:"differences",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.deckDifferences")}]);function a(i){ji(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ca,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.deckRows,(l,c)=>(o.openBlock(),o.createBlock(zo,{key:l.deckcode,type:"similar",deckcode:l.deckcode,matches:l.matches,wins:l.wins,"compared-deckcode":t.originalDeckcode,index:c+2},null,8,["deckcode","matches","wins","compared-deckcode","index"]))),128))]),_:1},8,["heading-items"]))}});const s3=B(fG,[["__scopeId","data-v-16cb7504"]]),pG={heading:{type:String,required:!1,default:""}},hG={class:"top"},mG={class:"heading"},gG={class:"chart"},vG=o.defineComponent({__name:"StatisticsPaneContainer",props:pG,setup(e){const t=e,n=o.ref(null),r=o.ref(!1);function a(){var i;r.value?document.exitFullscreen():(i=n.value)==null||i.requestFullscreen()}return o.onMounted(()=>{var i;(i=n.value)==null||i.addEventListener("fullscreenchange",()=>{r.value=document.fullscreenElement!==null})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"statitisticsPaneContainer",ref:n,class:o.normalizeClass(["statitistics-pane-container",r.value?"full-screen":""])},[o.createElementVNode("div",hG,[o.createElementVNode("div",mG,o.toDisplayString(t.heading),1),o.createVNode(o.unref(nt),{class:"maximize-icon",icon:"fa-maximize",onClick:a})]),o.createElementVNode("div",gG,[o.renderSlot(i.$slots,"default",{},void 0,!0)])],2))}});const o3=B(vG,[["__scopeId","data-v-f00b184f"]]);function _G({swiper:e,on:t}){t("beforeInit",()=>{if(e.params.effect!=="carousel")return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const n={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,n),Object.assign(e.originalParams,n)}),t("progress",()=>{if(e.params.effect!=="carousel")return;const n=.2,r=e.slides.length;for(let a=0;a<e.slides.length;a+=1){const i=e.slides[a],s=e.slides[a].progress,l=Math.abs(s);let c=1;l>1&&(c=(l-1)*.3+1);const u=i.querySelectorAll(".swiper-carousel-animate-opacity"),d=`${s*c*50}%`,f=1-l*n,p=r-Math.abs(Math.round(s));i.style.transform=`translateX(${d}) scale(${f})`,i.style.zIndex=p,l>3?i.style.opacity=0:i.style.opacity=1,u.forEach(h=>{h.style.opacity=1-l/3})}}),t("setTransition",(n,r)=>{if(e.params.effect==="carousel")for(let a=0;a<e.slides.length;a+=1){const i=e.slides[a],s=i.querySelectorAll(".swiper-carousel-animate-opacity");i.style.transitionDuration=`${r}ms`,s.forEach(l=>{l.style.transitionDuration=`${r}ms`})}})}const yG={cardCodes:{type:Array,required:!0,default:[]}},bG={class:"card-carousel"},kG=["src"],wG=o.defineComponent({__name:"CardCarousel",props:yG,emits:["update:activeIndex"],setup(e,{emit:t}){const n=e;console.log(n);const r=[_G];function a(i){t("update:activeIndex",i.activeIndex)}return(i,s)=>(o.openBlock(),o.createElementBlock("div",bG,[o.createVNode(o.unref(y2),{effect:"carousel","grab-cursor":!0,loop:!1,"looped-slides":5,"slides-per-view":"auto",modules:r,"slide-to-clicked-slide":!0,onActiveIndexChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.cardCodes,l=>(o.openBlock(),o.createBlock(o.unref(b2),{key:l},{default:o.withCtx(()=>[o.createElementVNode("img",{src:`https://lor.gg/storage/cards/card/en_us/${l}.webp`},null,8,kG)]),_:2},1024))),128))]),_:1})]))}});const l3=B(wG,[["__scopeId","data-v-a6ffd2e2"]]),SG={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},showDetails:{type:Boolean,required:!1,default:!0}},xG={class:"wins-losses-line"},CG={key:0,class:"details"},EG={class:"wl-record"},TG={class:"lines"},OG=o.defineComponent({__name:"WinsLossesLine",props:SG,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",xG,[t.showDetails?(o.openBlock(),o.createElementBlock("div",CG,[o.createElementVNode("span",EG,o.toDisplayString(t.wins)+"W "+o.toDisplayString(t.matches-t.wins)+"L - ",1),o.createElementVNode("span",{style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"%",5)])):o.createCommentVNode("",!0),o.createElementVNode("div",TG,[t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:"wins line",style:o.normalizeStyle({flexGrow:t.wins})},null,4)):o.createCommentVNode("",!0),t.matches-t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:1,class:"losses line",style:o.normalizeStyle({flexGrow:t.matches-t.wins})},null,4)):o.createCommentVNode("",!0)])]))}});const zh=B(OG,[["__scopeId","data-v-511803da"]]),MG={cardCode:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},NG={key:0,class:"wrapper"},DG={class:"champion-column column-content"},PG={class:"matches-column column-content"},AG=o.defineComponent({__name:"DashboardCardRow",props:MG,setup(e){const t=e,n=o.computed(()=>Pt().cardJsonObject[t.cardCode]),r=o.computed(()=>{var a;return`https://lor.gg/storage/cards/banner/${(a=n.value)==null?void 0:a.cardCode}.png`});return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),n.value?(o.openBlock(),o.createElementBlock("div",NG,[o.createElementVNode("div",DG,[o.createVNode(ua,{class:"circle-card-item","card-prop":n.value},null,8,["card-prop"]),o.createElementVNode("span",null,o.toDisplayString(n.value.name),1)]),o.createElementVNode("div",PG,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,1,3))+"% ",5)])):o.createCommentVNode("",!0)],4))}});const jh=B(AG,[["__scopeId","data-v-d436bc19"]]),IG={class:"card-page-toggle"},LG=o.defineComponent({__name:"CardTogglePage",setup(e){const{t}=ne(),n=o.ref(0);return(r,a)=>(o.openBlock(),o.createElementBlock("div",IG,[o.createVNode(Ic,{"selected-option":n.value,"onUpdate:selectedOption":a[0]||(a[0]=i=>n.value=i),options:[o.unref(t)("cards.recommendedDecks"),o.unref(t)("cards.similarCards"),o.unref(t)("general.statistics")]},null,8,["selected-option","options"])]))}});const c3=B(LG,[["__scopeId","data-v-07d07f20"]]),RG=o.defineComponent({setup(){return{}},mounted(){const e=vt("EUAACAIEA54Q6AIGBECACBQKF4AQIBQGAECAOUYBAECBWAICAYKACAIFFUAQIBAOAIDAOBJIAIDAYBIIAIDAMGY5AMDAEGI4EIBQMAYTC4RAGBQABIMCQAYGAUBQMHY");console.log(e),console.log(K3(e))}}),BG=o.createElementVNode("h1",null,"TestComponent",-1),VG=[BG];function $G(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",null,VG)}const u3=B(RG,[["render",$G]]),FG={name:{type:String,required:!0,default:""},selectedBannerCard:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},lp:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},zG={class:"wrapper"},jG={class:"champion-column column-content"},HG={class:"mana-hexagon"},WG={class:"mana-number"},UG={class:"name"},YG={class:"matches-column column-content"},qG=o.defineComponent({__name:"DashboardLeaderboardRow",props:FG,setup(e){const t=e,n=o.computed(()=>t.selectedBannerCard===void 0?null:`https://lor.gg/storage/cards/banner/${t.selectedBannerCard}.png`),r=o.computed(()=>t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${n.value})`,"--background-color":t.index%2===0?"var(--color-background-0)":"transparent"})},null,4),o.createElementVNode("div",zG,[o.createElementVNode("div",jG,[o.createElementVNode("div",HG,[o.createVNode(vo,{class:"hexagon-icon"}),o.createElementVNode("div",WG,o.toDisplayString(t.rank),1)]),o.createElementVNode("div",UG,o.toDisplayString(t.name),1)]),o.createElementVNode("div",YG,o.toDisplayString(o.unref(Me)(t.matches,0,10)),1),o.createElementVNode("div",{class:o.normalizeClass(["column-content change",r.value])},[t.change!==void 0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(nt),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(o.unref(Me)(Math.abs(t.change),0,10)),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Test ")],64))],2)])],4))}});const Hh=B(qG,[["__scopeId","data-v-3d62a718"]]),GG={date:{type:Date,required:!0,default:[]},activated:{type:Boolean,required:!0,default:!1},soon:{type:Boolean,required:!0,default:!1}},id="data:image/webp;base64,UklGRpQVAABXRUJQVlA4WAoAAAAQAAAAYwAAjQAAQUxQSAEBAAABgGPb2rHn+e3KTunUNntXPyaQKSSV7UzBSfejizkD26htPU/y/lZETABIK2xW2koVX0DKFxXZrLR1CQD2y3vah6PpUeLxnXviuwEBtL5SPz6/Ur+8Urvl0EbGQLccWsPjXH6DO+jg+vQSZGh5Zb7XaAp7aPEKbezzKMKEWuP+C7y0xdzV6gXkWif7drOyTtj34Mg99QL28KAcr5B14g0yAyo5p94gzytkn7Dv3qZz49xvzM6hzi5ffHrankNevMXZzIDUhuFfDw2PdKQr1SqVSqX+rUqbPfP8et2YqFKjqgz1I8ODA8O/7SnjAnC4qIBvGNm18wGdw0WF/6jMFcCfBwBWUDggbBQAABBDAJ0BKmQAjgAAwBIliAKSzJgM/yf5TextXv8H/bv2BwHdg+Vdzn/0vWB/tPVF5h36ofrv14vMX+3Xq2/7v1cf2b1AP6l/gOtp9A/9x/Th/dX4aP7X/2f3C9rXBZ+F2Jr4/8+/kPzM9c3+w73vS/++9CP5x+Df1n9q/dL2b8DflTqHfln9a/0/Ar209A7vn37/+R6R/YP/le4H/Ov63/oeSc9E9g3+ef3T/s/4z2Uf/P/Zelr6a/9f+k+BH+df27/reu51QB6l8J+19f+pT6sZj+zE2+wE9vWoNfcEz0oTpvLjAO+Oa0LQ0Jow+wnjIYPuMNdJgebCP0A0x9HFV9m1SGgYnekuqE7R0gGfFSqVDdnmaEzLXqoY5ab7mI283b2U6qHsm1LaV2sv3hWYD74YbO9I365ZyH7IOZW2np5xzxY1uNwlx8m3/TlZpshWOQCUqQEaeXuo/NGNB7fPAFQA9spGF46iKOVdiy4H51LojrONPcDzWBAEuAoyxYSjdLl+yL79WxDhr4xWsGpRCikM1q5cdoxI5DzxmQC+WU34EWnl4CUNbIztZ0DdID1a0xmf9PiWSXfO4bZPzx8wcVrzgmGBY4h9fhG06Eg8Pe4iO3CVETaIxrPsQBwT/o2De9RYWlsdvaDBCRFNqTIhtugVNyhTOM/+NHgy2FRNW55uPOcszqLATAsZl/DQCkGM1H3/Q6b8yOWsaDQ8wYl8YUfoAP7u3JuG7XFiqpPFp/zTze9Dk0t236U3vstNlqJ6SMY/EUhcAaCy3g3fU1aSTwRLVo/tbHheprGIHpVpNqjxBzS1OFaBnyrYoywF4mxQQRjLtYqhSzPDGyjl/+mVF30ZwM1deMxjDDSwpabr//JIfGwSajIir7csLqBcPmzLwiG0X8yyOdc6OggQUYZentENwuvqEfj4tkP5AdpcIlLP6PXPTMLwXYC5UVVGobBIg429evsLhW4cFRY7HS7kzF/loDieDUMVuHgsMHmBlHbV0ft7uggiS+/oURoyeFXHtbAffBaM7WcIS0lh3dr/hH+xcEKpG6voqahtySY9unVDK4Ma+M4J9OXSo71s3dEeACMKt+lj+FBWDsCJDXpu9Lm3VLbYyT5aF4l0kiGnDuTyRednJJxXlv9ZB2XqhFRCRxK1YE9sx6PGzx8h1YQvNTO5vUl/nAq/pglypqDeR1DHey3IRtZsO/1/M12zYhtN58HYvZriSE/pzLhUGdKAnDJN+N1zpts+c79KrZYjR5+LC8mqTp3zA107/ruodw4OhlDLLtEkHoK0aL6L9kgYkVYuk051/J0iVKO6TrNDjtGCXCzQ61VHH07nEMhfWQqzs+eEOnCdem+/mp99Y5moGhX/AG8JXlhIt15Lv5D60Crp8RJMOD93GDx3WmltCm+Uv1YUslp6iqCDT9pJkbrVnz19cge4T3b7AMrWIAxvDVSB+GjGkX/VQXtjcfsYyHhBaNDOrAPmMkk43eLISRFlsUW9xJ70I7YqMi4KkLA5BSawyrIJeGDRRPpOyqXBJ3he27M6nYaDUcu/dw+zKZFrH6JJepygQiw9/gTA8qAo9Wy4TxVrbJ3iVIyWD9tN6kW+H0ATrOZcaPr4mEoJATghh5iOmN12PTvewVv3VhiUXfqV2BWbUrqWHOkvUgcNaMRXkTobbwOziNe7s9Ub8f1fyJJ+KoqDjl5TXGTKJf71c5O8PiHEwUijMoTg1GNrxg/iyd2pvikPHJ/LeYRAjV77bM1tdlnWBYiABeF3lU6zrp/qqdxhb8P33GXLOZC+7Q+k29zjZyKON23ZtaPwSL1oDj4jmqXJ0DV/iWA+79rebbt2US+K8ARkowLBGCyDHGaKBFXplZu5qY2Jr6P0YUmkj8Se0bToxblcTq3Yo99+M+HkAnRjvQ6iVKId8+YXuXpHdWG2e0XjaXsZ6IBomXeg/qv7XzhWsqrLDSmmSG1scFVF9w5hYj02X4QIhwfHS9DJ46kN1NvcCouEHbUnMQHzUsndQ/LXToevL3LcziuwhLIDliY5NZVQGbChii5WdshXFpqLTnMoSx/QLlWVrcEpCWeg1QCKc32cIAdHGm85bWc1BWWymuRFjr5Tgp3b9TPWLbmnJyb+oSemQmbAPvG9LJIqXmr2xCr0TGmDluE4zO8vaZ/YMEtA9ObEVpVaRj/fqmgL6oHMSW8btJ19nVA62zSzzTuNWJjkN2Zx/t3a5oddkCmbJATg/9VKopqZllxD/GmhAA2Z+o2Yl+CoH3mwuLLPslUy54VmjbhRr+FyR7akdBlYodQHYMNcOKTqhcRGICgXOLTRXn27nIzblK2s7Ts8zAeHmG48CpkdL0ogJ+mrFlrUonC65itjH25Zybm2oM+zxGTTFmy3qhxeF44T6UObeh1vuD/xnjE7NOi28jLT2p7QOjRifMsWRKF8A1+4WnZwba/telVJ0M6W12iygb8UFKOypj4S3LoX1Sx+DIoHPssoAW9iBseVXrDaK8AUOd4jhVQ1WZXhAyQrLt5vuLNMEaFbCq0RltFolGtQ9UYWId2iCWWUAob/O5rzCZMRGWlrXfqV2OMsz7NzL8MkLUlj/XCo/PHG7Lqo/QabVPLqTejIyn8VMf75hXLI4vX3fFT9uVIjfrLe3wDtwo3hgQlrT+8wtcHIkMnpF1wK0Pmi3q3dt+cBzJ7twZjPrXbla5YVz18ptitmRDERECQ67qfzqNrl2C9pLJ/q1f/Ew/JY3Fr/02nDtq35QZ0dZYgfTf47HOzzo4UjL+noRi2L+dBj0fBp9NznpszWtf/ViprbM+6Zzv1l+tD4U3Zu//+Oey/Lgbh8EQfzgm9i59POCMUU/7sNjnSLils28YksYWNbznb3xcNIpy2wR85ntEWFLTuHfln1UVFAUGGrZdmWz6JzqNPxD0AeXjf8ntg4NCbxgB8iohTpMedkpD2q9xEEUXBeo8yuCJKNjP+zg/AYfX9/PVLZWqo5l/XXgtH2ABNTFqA2942K8zLTN4rjFvA8KqN5rmSofCljeENG145859vlNSmeR0T1U7KZ/z6Q/crwGbDY1f9Cmfzjf7MsZklghfj/1shlyq7gSv5Ym375SxDw/iDuj67jYdGOBVjmpB1mnV158my0bdh75nONKc2vK8ZjU+iNXS/P8aJUAiRFk7st3bV5h9baGPOQqbOk4dWjw8NUN7nwm0fmJQ5vp73I/A4UZ8eqf638Gkr3pXrHvUebaPb+xcIzBDE1Nvcojfb/5nm95LL0aHg1iKt36a6uavLgIvpkN7Qo3TujZX95S02Bjz3vhFXVLmBFQCYemOTW9uc4LHakG8kU8VevsB1HT+S1RQKKGdo8JtG9raNhNJjHGLqolgRumnusF3c3ABwOjbQhbjjfMQpu7cdy6J0DTh2hatG32udWg1LPdR9fsVpjEysfGQ0GDDxrvx9YwIGgSRZOZpNEJop4ey3CbpHsmfbpTu+aiszsvP5P6WtQ92vlZ8hxGp2cmnFD2MB6+gQ0hM7eZRxHsKG0+WcpmGsBbtEcNBFvUhbVul/oh7JL+W7adTjOuAVWYVYoTud4ovKjSckZfM1oTXnO4Ky5/LPkQICBB53iz2cdoAWm7owZYQ/S/m4Uwya+G8RezTLMacJChJKqvaibSzfr1bLY6Vry/907SR/JMI7gNWKaUF3Vba3b5b0HxlnFvPrH9H/e+v/zKavQWUONrFVDJYy1XBQUKeYi/Nk2TjiR28KllKGnB2Fq4UnOXuNFR6A2fOnv22Ud48xB8MDHPdrkiVnT362fvOFVnTizjBiQ8TsDnPCs9yEBp16IVDSPomLlWtRkTdEKM6vtCfOz5kpT/0/f18Zx1GX1lvHApIkCfMiNePrIQ9HXD0kmtO7+kdpnb01upiB8fDivDuW+Q0T9Ekbl4PcAAl6+TEntzh67pMz09ikbexC0m6HJHt2TiTtEeCNtLfTWM7HNNFnyoD6HOVEHxiygPZ4y8pyIEJY6J8xwz4TjpyIsHs3cFHpgqfjkUgTFx3uclUbtjRvRXWkgXyZd2ysup9AT8mS0ZJxbARswqXFxJaMDemxOcr6pMmpUPPx6m3QAAnD5YW7H7ATCMs7x2pa2P++IZrqP5lRbgR3bmPDGNdaK0MJWIdUEp/KMOQS9B6vwdVSLl/8mjT5CxXSx2VxxrgGTVW6NBBuTmP9Vt9ZOQ0d0ORGcg++/xMiPrl91fbiMOVAa5GRuhKUhIpUCxVplYkot97+71nhgPlFn6t3NoJKsWX7ecxQQ2Ju2lHT7kO007o0voWXVBgS4t1L3tHfiGWu9NcmCjKwt8PwHn/Jz3v6Uek7SG+ZjCMiakQpmV+0QrjA09K3jZfQgUr+zs/3n/X1zZPPLWk+TlywRK6p0/qbliMMhyXFKbGpTXqvlvBC2Fr58dVvfouGrlfh72hq6YOaZn9zdQWPqbjtqIg8g9QxZzL954uK2OuI1JJittRNNcVSSra2lACV/Ej7Or5II6lx2C3FjqTsrh4UXCcUZWtsOA24NHIJ9CzFmsC4IyIOUXhZEN65l9PYCkjNWKaNz89kPq2+4ye1/jzAuDDg2RrKp/FNIKhhKO0YSPaLz9ODfQTLJhMTpPAXm+xLB0oX7Vo75znqCKyJvmxCmfzANcHkBciBEuOOq68Zl6RZtvaAB0xxFCOfvwBwUY+0qWjfW5PVAaY9bzRJlL100JT3b2kkKDbSW1JXvJqoC/Gubz7CPLYlMJ8dNbim9ydCev9Yq4uzuFENwzKxXa/+CJOmjxzMMCUO8Et1aezpZRwhRESDWtEzJpOKzapC0Hy+M9LX92rbTLKuAfIs+t2RLVUI914oLWgqjEfsM+8o8Tp+U+TRjZ2FF4Ksvp2tGNUiwUapjWbERc67w9nCCgSfLo/c3J1nQLygbzMoJrH4FojgB5aomLL3Qu6IHsRkYhXeYS5oHE0EyRRQXDSEsr4Agr+Yfe5rM854ckE/Yjtm9JnUazZfvvxW2UhxIs9N1m706CP2Ypvs1i7dW+ZmqMCL6uSL+C7hOyycrmvY3Y1YHfIm/pn6u2tgqDN0Y/mZKlUtFq431+zZtpV7+M8ImZf+ou67QEQgXKlc5nxIRUn4WPWlDg2J+6ifiADxcmoRbqWCcG7PR1aUBaLcdSH9KfyF9wgQEj3V+4gyQIa/4JZICFGBUF1BBpZ/anb9TggFs64t+P8eXsWK/kYO+YjSiRyclvKR6hdZRs3hsPY5i7CnmpMUZIns0Ir1ZD8T38M3GM2CcjVW7dG8+0pgw9Si3W5RQrSQjYNq/0A9slLyqiv6ZjrmJFk8Vumsh0VfVPiE7vzqDoxlssE+RqwjJb7DCYE6MHby3aDhaThUE8lgQ7wHTzwoT6IwKqw1ofiTrBycnkdgSKnNEcAgmEQm/Nc4SfKQIjYFgAC+IZeC+S8/pKr8oSNd53EyIK7cuYgnPCUSYn8K2wZD3f/HeVjWIk2EaqRQNZvhCL9pMdwBR8OFRxr36qHCqSx2ZPJOQ3MOPk7swYH4B1QSo4K5tY7/RSl69ftU132HNN0NDfzsvWmBTzVLArpA8RY9LCv7PQ+tbH+6xQWWT4zo41H0hZroZB9Y1BRkiR1jU2XXIQzjY8M2WxSCUywHQOItrSSuDf43zfF+0pXshiSJh3wkP7UVjoF1JMXAPzr2YtxaKFTaZHj0t+e2KUYnGCPDMRt/jsJ1VNqvqGMjhbzmK/Ji7jcaK0nVU2t150c0NRtZlmCiRa7hpNnWe8JlN946yTf4mBY6we5YtS+tHlFzb6xxXgSNdAJUQ/Cf/gbr1MOYnfNPn7tgsduJnySBfUxlhueUByJNOC3T+QE5gELLjR8V/YThTkoJl7a4clEiUTt+fUCWTdjRcJgg8LQSvOspSnGQ5o5a42FBWa2brKLjpnmcroiLKuqJ8SM/UeCuF78esGhAuc2nC0jXZv12w17el7YAcHrpA2Vx+Jv6X5ok4PxVseLzfIY9wbb0nrOCAU3Gg/eKUcu2emB7XfMAgEbBPf7tOMUfluV4zeGsAFHhH3jCmTT0ie7YZP13tsgzt6I+llT2GnDkU9ylV0Rjzdl92EnAJhLyZovmJn2r+3xytit6NWsWFNLk8xZeFTY6cWoqEtVA2HoX/dvgwba3wkOMiZHRRnDWc5OHZ8DvUufoI4BEp4lLz8LqDcJ4U2ROGcH/tNtLAWpov5bBWwYZghIsAyxK4elFVxROoKzEytuvDaHjB85srMddi0+wpvq8Gv2hadSObXFOTXuJYuca+dVPRPg6i8Jy4YRCCcvDJ9h/G4pHs8UtxcagVPFP3LtdVn8qwgiO4/RkY/NvkpOnzPrgtjKA9F25cFO/iEV1SONr2YEg2e21jHzxn1BpHOC+VjkYP6+XVfhyW3FnO55pyGqelLpWnIMcvLUb/nYZluleyUZSt9yjLLW6HyeMT/TsCJpQ+TixJzS2a/JQRc+igKZAJCN5f4pHylBS/nTZQqff5FAhr6QbQIbB+3sfEH7dCB5G4BcRU/hWRacndN8it2rV+0OL+q9WuSGBeFROmtq7ko9ZK00n9mGhhm+CYaUiUyUpdNEhcjDi72xSDSPr5PIlg4ecGmxXOzJMAvwi7oAQQg+Yf0/4z2VCGkFCJ+brkSSZLb8fs2G2c+fYVn/tnAmmooSpfNyJw90LiRdDuQbQ93BQWt3azhV9TEBsPGFE3GGkTw0krNqcURqAQKzvXr2bnhO8KRWoWG7XliqBjI/qGv4UOSaZGwIFqc88q1XuMWRIvW6Cy0jaeljlEotz0AFnDGH2Aq1Pn6SREslqfkNcbIyJ/ZH8oMeXhw4Ua92QnhLp909o39dtaOK/eyzPuAH0ev2kS5g9sKHUC7eEoZIBtPPDrdsGXKpr+L+P9BRvo7OcKaVBxchzd2ZLrq/KC+l5UF0ZSfFqSW6UE0inppd0zfwM2/igkrgcDqi6fKcNBLQO3Yh9ysmWdD7EQ2ZnQ1rzdxuR59XgwjJvDgAAA",XG={class:"reveal-day-option-wrapper"},KG={class:"card-wrapper"},JG=["src"],ZG={class:"card-wrapper"},QG=["src"],eX={class:"card-wrapper"},tX=["src"],nX=o.defineComponent({__name:"RevealDayOption",props:GG,setup(e){const t=e,n=o.inject(Gi),r=o.ref(null),a=o.ref(null),i=o.computed(()=>t.date.getTime()<new Date().getTime()),s=o.computed(()=>i.value?`Revealed Cards
|
|
859
|
+
${t.date.toLocaleDateString()}`:`Cards Revealed
|
|
860
|
+
${n(t.date).fromNow()}`),l=o.computed(()=>{const c=[];return t.activated&&c.push("activated"),t.soon&&c.push("soon"),i.value&&c.push("past"),c});return o.onMounted(()=>{ot(r.value,{content:a.value,arrow:!0})}),(c,u)=>(o.openBlock(),o.createElementBlock("div",XG,[o.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:o.normalizeClass(["reveal-day-option",l.value])},[o.createElementVNode("div",KG,[o.createElementVNode("img",{src:o.unref(id),alt:"card",class:"card"},null,8,JG)]),o.createElementVNode("div",ZG,[o.createElementVNode("img",{src:o.unref(id),alt:"card",class:"card"},null,8,QG)]),o.createElementVNode("div",eX,[o.createElementVNode("img",{src:o.unref(id),alt:"card",class:"card"},null,8,tX)])],2),o.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[o.createVNode(Rc,{text:s.value},null,8,["text"])],512)]))}});const Wh=B(nX,[["__scopeId","data-v-f3dbe378"]]),rX={days:{type:Array,required:!0,default:[]}},aX=e=>(o.pushScopeId("data-v-76ed46ac"),e=e(),o.popScopeId(),e),iX={class:"reveal-day-options"},sX=aX(()=>o.createElementVNode("div",{class:"line"},null,-1)),oX=o.defineComponent({__name:"RevealDayOptions",props:rX,emits:["update:days"],setup(e,{emit:t}){const n=e;function r(a){const i=n.days.map(s=>({activated:!1,date:s.date,soon:s.soon}));!i[a].soon&&i[a].date.getTime()>new Date().getTime()||(i[a].activated=!0,console.log(i),t("update:days",i))}return(a,i)=>(o.openBlock(),o.createElementBlock("div",iX,[sX,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.days,(s,l)=>(o.openBlock(),o.createBlock(Wh,{key:l,date:s.date,activated:s.activated,soon:s.soon,onClick:c=>r(l)},null,8,["date","activated","soon","onClick"]))),128))]))}});const d3=B(oX,[["__scopeId","data-v-76ed46ac"]]),lX={cardCodes:{type:Array,required:!0,default:[]}},cX=o.defineComponent({__name:"DashboardNewCards",props:lX,setup(e){const t=e,{t:n}=ne(),r=[{title:n("general.newCards"),id:"newCards"}];return(a,i)=>(o.openBlock(),o.createBlock(Qa,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[o.createVNode(Qf,{class:"reveal-carousel","card-codes":t.cardCodes},null,8,["card-codes"])]),_:1}))}});const f3=B(cX,[["__scopeId","data-v-89a26f2c"]]),uX={players:{type:Array,required:!0,default:[]}},dX=o.defineComponent({__name:"LeaderboardDetailTable",props:uX,setup(e){const t=e,{t:n}=ne(),r=o.ref([{id:"player",isShown:!0,sortDirection:ye.UP,title:n("general.player")},{id:"lp",isShown:!0,sortDirection:ye.NEITHER,title:n("general.lp")},{id:"change",isShown:!0,sortDirection:ye.NEITHER,title:n("general.change")},{id:"matches",isShown:!0,sortDirection:ye.NEITHER,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:ye.NEITHER,title:n("general.winrate")},{id:"favoriteDeck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.favoriteDeck")}]);function a(i){ji(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ca,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.players,(l,c)=>(o.openBlock(),o.createBlock(Ah,o.mergeProps({key:c},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["heading-items"]))}});const p3=B(dX,[["__scopeId","data-v-4dfbb489"]]);const fX={},pX=e=>(o.pushScopeId("data-v-c8a918ec"),e=e(),o.popScopeId(),e),hX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},mX=pX(()=>o.createElementVNode("path",{d:"M107 57.2C23 99 25 97.6 22.2 106.3c-3.4 10.4-6 4 43.5 103.1l44 88.3.5-6.6c.4-4.6 1-7.7 2.4-10.4l1.9-3.7-40-80.8c-22.1-44.4-40.1-81.5-40.1-82.4 0-5-.9-4.5 78-43.9l75-37.4 3.4 1.1 3.3 1.2 49.8 99.6c33 65.8 49.8 100.4 49.8 102 0 4.9-1 5.5-28.2 19.2l-26 13 15.4.1h15.4l13.9-6.9c19.2-9.6 23.1-14 23.2-25.6v-5.7L257 129.6C221.5 58.6 206 28 204 26c-4-4.2-9.6-6.5-15.8-6.5h-5.1L107 57.2m121.5-15.8 3.5 7h29.6c26 0 29.7.2 31.3 1.3 4 2.8 4 1.9 4 68v61.6l6.6 12.9 6.6 12.9v-76.3c0-90 .7-84.8-11.8-91.7l-4.2-2.3-34.6-.3-34.6-.2 3.6 7m95.7 42.1V91l24.3 12.1c25.1 12.5 28 14.5 28 18.7 0 1.3-10.8 24-26.1 55l-26.2 53 .2 14.9.2 14.8 32.8-65.8 32.8-65.8v-5.5a20 20 0 0 0-7-16 739.5 739.5 0 0 0-58.6-30.6c-.2 0-.4 3.4-.4 7.6M126.5 285.1c-4.2 4.2-2 10.3 4 11.4 1.5.2 57.1.3 123.6.2l120.9-.2 1.9-2c3-3 3-6.9 0-9.8l-1.8-1.9H128.8l-2.3 2.3m1.9 25.8c-4.5 1.8-5.5 7.5-1.9 11l2.3 2.3h122.4c130.4 0 125.8.1 127.2-3.5 1.5-3.8.3-7.8-2.7-9.4-2.5-1.3-244-1.7-247.3-.4m-2.3 29.3c-2.6 2.6-2.6 6.6.2 9.3l2 2h246.8l1.9-1.9c2.6-2.6 2.6-7.2.1-9.6l-1.8-1.7H128l-2 1.9m.6 27c-3.7 3.5-3 8.9 1.4 11.1 2.6 1.3 9.8 1.4 124.8 1.2l122-.2 2-2c3-3 3-6.9 0-9.8l-1.8-1.9H251.7c-122.8 0-123.3 0-125 1.6"},null,-1)),gX=[mX];function vX(e,t){return o.openBlock(),o.createElementBlock("svg",hX,gX)}const h3=B(fX,[["render",vX],["__scopeId","data-v-c8a918ec"]]);const _X={},yX=e=>(o.pushScopeId("data-v-4a6733fd"),e=e(),o.popScopeId(),e),bX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"},kX=yX(()=>o.createElementVNode("path",{d:"m178 26.2-8.6 1.8-9.6 2c-2.6.6-6.6 1.5-8.8 1.8-2.2.4-5.7 1-7.8 1.6l-8.8 1.8-8.8 1.8-8.6 1.8c-2.6.5-6.2 1.2-8 1.7l-8.8 1.7-8.6 1.8-6.6 1.4c-3.2.5-14.1 2.9-18.3 3.9-4.2 1-4.4 2.2-2.2 15.1 4.2 24.3 5.2 51.8 2.9 80.4l-.8 10.8c-.2 2-.8 6.9-1.4 10.6-.6 3.7-1.5 9-1.8 11.8-.4 2.8-1.2 7-1.8 9.6a138 138 0 0 0-1.8 8.3c-.3 2-1.1 5.3-1.8 7.4l-1.6 6.1c-.8 4-3.8 14.2-7.1 23.6a191.2 191.2 0 0 1-5.7 15.3L39 259.8c-.7 2-1.7 4.2-2.1 5l-8.5 17c-3.4 7-3.6 6.6 11.3 17a13873.6 13873.6 0 0 1 92 64.6c17.4 12.3 16.5 12.7 18-8L151 332c.6-12 .9-16 2-30.4.6-7.2 1-13.3 1.8-30.2l1.2-18c1.6-20.9 3-46.9 2.6-48.9-.4-2.3-1.8-2.8-5-1.8-9.2 3-18 4.4-23 3.7-15.1-2-25.3-12.8-29.8-31.8a95.5 95.5 0 0 1-2.6-29.8c0-19.7.1-20 5.5-21.6a691 691 0 0 0 14.5-4.2 583.1 583.1 0 0 0 24-6.8 88 88 0 0 0 6.4-1.8c2-.6 4.9-1.5 6.4-1.8 1.5-.3 4.7-1.3 7-2l5-1.4 5-1.4c12-3.9 13.8-3.9 28.5.4a746 746 0 0 0 23 6.5c.4.2 2.3.8 4.3 1.3 2 .4 5.2 1.4 7.2 2l6.4 1.8c1.5.3 4.2 1 5.8 1.6l7.4 2.2c19 5 18.6 4.5 18.6 24.2 0 48.9-20.7 71.2-55 59.3-6.4-2.2-6.8-1.3-5.6 13a948 948 0 0 1 1.8 30.3c.2 4.7.9 14.2 1.4 21 1.1 14.4 1.6 22.6 2.2 34.8.2 4.8.9 14.7 1.4 21.8 1 12.3 1.2 16.4 2.2 36 .9 16.2-.6 16.4 26.2-2.6a2102.7 2102.7 0 0 1 24.8-17.3c2.6-2 7.1-5 10-7.1a3744.4 3744.4 0 0 1 30.2-21.1l17.8-12.5c13.2-9.2 14-9.9 13.7-12.5-.2-2-.5-2.7-3.4-8.1a164.8 164.8 0 0 1-10.7-22.4 292 292 0 0 1-9.5-25.4 292 292 0 0 1-7.2-25.2 345.8 345.8 0 0 1-10.4-64.4c-.9-7.7-.6-44.7.4-53.6l1.7-15.4 1.4-10.6c2-9.4 2-10.2-.1-11.7-.7-.4-2.1-1-3.2-1l-6.5-1.5-9.5-2c-2.7-.4-6.7-1.2-8.8-1.8l-6.9-1.4c-1.7-.3-5.7-1-9-1.8l-9.8-2c-2-.3-5.5-1-7.6-1.6l-8.8-1.8-8.8-1.8c-2.1-.5-5.6-1.3-7.8-1.6-2.2-.4-5.8-1.1-8-1.7l-9.4-2c-3-.4-7.3-1.3-9.6-1.9a28.3 28.3 0 0 0-14.8 0"},null,-1)),wX=[kX];function SX(e,t){return o.openBlock(),o.createElementBlock("svg",bX,wX)}const Uh=B(_X,[["render",SX],["__scopeId","data-v-4a6733fd"]]);const xX={},CX=e=>(o.pushScopeId("data-v-b519ac08"),e=e(),o.popScopeId(),e),EX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"},TX=CX(()=>o.createElementVNode("path",{d:"M53.8 32.8c-2.6 1-8.3 12.9-13.6 28l-2.1 5.8c-.4 1.1-1.1 3.5-1.5 5.4L35 78.8a84.1 84.1 0 0 0-2.6 14.1c0 2.7.8 4.1 7.4 12.5 16.7 21.3 16.7 21 2.2 21-13.3 0-13-.3-12.7 11.8.2 8.4.7 11.8 1.9 14.2.9 1.7 1.7 2.7 27 35.3 8.1 10.6 7.8 11.5-4.2 11.5-11.9 0-12 .3-4.4 16.9a269.4 269.4 0 0 0 28.7 47.7c8.4 11 8.6 11.5 9 19.8.5 8 1.1 11.4 4.3 24.4 7 28.8 30 57 60 73.2a97 97 0 0 1 5 2.8l3 1.4c1.5.5 3.5 1.4 4.5 2 2.8 1.4 10.6 4 11.6 3.6 2.1-.5 2.4-3.6 1-10.6-.6-2.6-1.4-7.3-1.9-10.6-.4-3.2-1.2-7.6-1.6-9.7a218 218 0 0 1-2.6-15.1l-1.8-10.2-1.6-8.2c-1-5.6-.9-5.5-13-5.8-10.4-.2-11-.4-12.3-2.5-.4-.7-.5-7-.7-28.7-.2-26.2-.2-27.9-1-29.2-.4-.8-5.5-6.3-11.4-12.2-5.9-6-11-11.4-11.4-12.2-.8-1.5-1.3-65.8-.5-68.5.7-2.6 2.6-2.3 7.3 1.3l6.8 4.9a1371.6 1371.6 0 0 1 25 17.9c16.1 11.6 25 18.2 26.2 19.7l1.2 1.6.2 28.6c.2 31.6.1 30.2 2.8 32 1.7 1.1 28 1.4 30.6.3 3-1.2 2.8.6 3-31.4.2-31.9 0-29.5 3-32.5 1.7-1.5 7.1-5.6 18.6-13.7a3147.5 3147.5 0 0 0 38.3-27.6c4.4-3.3 6-3.6 7-1.2.7 2 .4 66.8-.3 68.3-.4.7-5.4 6-11.2 11.9-5.7 5.8-10.9 11.3-11.4 12.2l-1 1.6-.2 27.8c-.3 35 1.2 31.2-12.6 31.6-12 .3-12.2.4-13.6 12.6-.3 2.9-1 7.3-1.4 9.8-1.4 8.3-2 11.7-2.6 17-.3 2.9-1 7.5-1.6 10.4-1 5.6-2.2 14.1-2.2 16.9 0 2 1 3.3 2.8 3.3a93.6 93.6 0 0 0 21.9-9.4 124.7 124.7 0 0 0 47-44.9 128.2 128.2 0 0 0 15.9-52.5c.7-11.5 0-9.7 11.7-27.2l10.4-15.6c2.3-3.3 18.2-34.8 19-37.7 1.1-3.3-.8-4.3-8.8-4.3-11.8-.1-11.9.1 3.4-20.2a1330 1330 0 0 0 15.4-20.8c4.9-6.6 5.5-8.5 6.6-20.9.6-6.3.4-8.2-1-9.6l-1.1-1.1-9-.2c-13.5-.3-13.6-.6-4.2-13.4 14.6-19.7 14.1-18.3 11-31a188 188 0 0 0-9.9-31.1c-2.8-8-7.8-17.3-9.9-18.1-2.6-1.1-1.7-2.8-24.6 43-20.2 40.3-21.3 42.4-22.7 43.2-2.1 1.1-3 .5-6.3-4.2A118.4 118.4 0 0 0 237.3 71a122.9 122.9 0 0 0-76 2 73.7 73.7 0 0 0-14.9 6.9c-13.8 7-29.8 21.3-39.1 35-3.3 4.8-5.2 5.6-7.4 3.1L78.4 75.7c-22.4-44.9-22-44-24.6-43"},null,-1)),OX=[TX];function MX(e,t){return o.openBlock(),o.createElementBlock("svg",EX,OX)}const Yh=B(xX,[["render",MX],["__scopeId","data-v-b519ac08"]]);const NX={},DX=e=>(o.pushScopeId("data-v-f1928c9e"),e=e(),o.popScopeId(),e),PX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"},AX=DX(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M60.6 11c-.5.8-.6 17.6-.5 157l.1 156 1 .8c1.5 1.3 278.4 1.2 279.6 0 1.3-1.3 1.2.8 1.1-81.1l-.1-78.6-1.3-1.1c-1-.9-4.5-2.2-16-6-38.4-12.5-36.7-12-38-10.7-.7.7-.7 5.1-.9 64.4l-.2 63.7-.9 2.2c-3.9 9.5-11 14-23.1 14.3-12.4.3-20-3.6-24.3-12.3-2.4-4.8-2.3-1.4-2.3-95v-87l-1-1.1c-1.2-1.4 1-.6-31.6-12.6a552 552 0 0 0-25.5-9.1c-2.5 0-2.3-8.5-2.3 98.8 0 60.3-.2 98.7-.4 100.8-2.7 23.7-41.9 26.6-49.7 3.6l-.9-2.6-.2-120.9-.2-120.9-1-1c-.7-.6-5-2.5-12.6-5.3C59.9 8.6 61.7 9.2 60.6 10.9m.9 356.3c-2.6.5-3 1.8-3 7.7-.1 12.3-5.7 18.7-24.6 28.2-11.4 5.6-16.6 10.9-19.3 19.3a86 86 0 0 0-.9 19.5l-.2 17.3 1 1 1 1h368.1l1-1c.7-.6 1-1.6 1.2-3.2.4-3.3 0-28.3-.6-31.4-1.9-10.7-8-17.3-22-23.4-17.3-7.6-21.8-13.2-22.6-28.5-.3-4.5-.4-5-1.3-5.8l-1-.9H200.7c-75.7 0-138.4 0-139.2.2"},null,-1)),IX=[AX];function LX(e,t){return o.openBlock(),o.createElementBlock("svg",PX,IX)}const qh=B(NX,[["render",LX],["__scopeId","data-v-f1928c9e"]]);const RX={},BX=e=>(o.pushScopeId("data-v-b1448e85"),e=e(),o.popScopeId(),e),VX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"},$X=BX(()=>o.createElementVNode("path",{d:"M175.3 29.5c-1.7.3-.9 1.5 6.1 8.9A57.6 57.6 0 0 1 200 82.6a63.5 63.5 0 0 1-5 25.1 63.5 63.5 0 0 1-23 27.5c-4.6 2.7-6.3 2-14.8-6.2-7.9-7.7-8-7.8-11.1-6.2-2.6 1.3-14.6 12-20.5 18.2l-9.6 10a349.5 349.5 0 0 0-35.5 43.8c-3.1 4.6-6 9.1-9.3 15.2a753 753 0 0 1-5.2 9.2c-.9 1.4-2 3.7-2.4 5-.4 1.2-1.3 3.2-2 4.4l-2.2 4.8a52 52 0 0 1-1.8 4.2c-.4.8-1.3 3.2-2 5.4l-2.2 6c-.5 1-1.3 3.8-1.8 6l-2 7.7a62 62 0 0 0-1.8 8c-3.2 23.5-3 26.6 1.7 31A154.6 154.6 0 0 0 73 318a254 254 0 0 0 33.9 16.2c2.4 1.3 12.6 4.6 19 6.3 3.6 1 7.4 2 8.4 2.4l7.4 1.6c3 .5 7.5 1.4 9.8 2 2.7.6 7.5 1.3 13.2 1.8 5 .4 11.5 1 14.6 1.4 3.8.4 9.7.6 18.6.6 18.5 0 19.9 1.2 13.7 11.9a86.4 86.4 0 0 1-50.1 39.8c-1.4.6-4.1 1.4-6 2-1.9.4-5.2 1.3-7.4 2-2.2.6-6.3 1.4-9.2 1.7-6 .7-10 1.5-10.7 2.2-1.3 1.2 2.5 4 7 5.1l8.3 2.3c2.8.8 6.8 1.7 9 2l15.8 2.6c6.9 1.3 29.5 2 39.8 1.2 6.5-.4 8-.6 18.2-2.4l8.3-1.4c2-.3 5.7-1.2 8-2 2.4-.7 5.4-1.6 6.7-1.8 1.3-.3 3.8-1 5.6-1.8l6-2.2c1.5-.5 3.7-1.3 4.7-1.9l4.2-1.8a228 228 0 0 0 22-11.7c20.9-13.4 40-38.5 44.7-58.8l1.8-6c1.7-4.9 1.9-5.8 2.6-13.2a116.3 116.3 0 0 0-10.4-71l-1.4-2.7c-.4-1-2.5-4.5-6-9.7-4.3-6.6-7.5-7.3-10-2.3-3.1 6.1-15.8 20.3-23.2 25.8a81.5 81.5 0 0 1-71.1 13.4l-6.3-2.3a93 93 0 0 1-38.7-30.1c-4-5.7-4-7.3-.4-12.8a82.1 82.1 0 0 1 38.7-30.2c17-7.5 42.3-7.4 57.2.3 8.8 4.5 10.9 2.5 9.2-9.2-.3-2.2-.6-6.5-.6-9.6a129 129 0 0 0-4.6-34.6 75.6 75.6 0 0 0-3.6-13.8c-4.5-17-18-42.2-32-59.6a193.3 193.3 0 0 0-27.5-25.9 82.1 82.1 0 0 0-18-10.3c-3-1.8-14.6-4.6-17-4.1"},null,-1)),FX=[$X];function zX(e,t){return o.openBlock(),o.createElementBlock("svg",VX,FX)}const Gh=B(RX,[["render",zX],["__scopeId","data-v-b1448e85"]]);const jX={},HX=e=>(o.pushScopeId("data-v-e5501fa0"),e=e(),o.popScopeId(),e),WX={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},UX=HX(()=>o.createElementVNode("path",{d:"M9.51 16.698 2.244 9.18 1 11.478l6.226 6.264 2.283-1.044ZM6.189 6.676 4.943 5.423 7.02 3.335l1.245 1.253L6.19 6.676ZM9.302 14.61 4.113 9.39l.83-1.044H6.19l3.736-3.55V3.545L10.962 2.5l4.981.626.415 4.803-.83.835-1.453.209-.83 1.043 1.453 1.253.83-.835 1.453.626-4.15 4.176L12 13.775l.83-.835-1.453-1.462-1.037 1.253v1.252l-1.038.627ZM20.924 21.5l-6.018-6.473 1.66-1.67L23 19.412 20.924 21.5Z"},null,-1)),YX=[UX];function qX(e,t){return o.openBlock(),o.createElementBlock("svg",WX,YX)}const Xh=B(jX,[["render",qX],["__scopeId","data-v-e5501fa0"]]),GX={...mu,expanded:{type:Boolean,required:!1,default:!1}},XX=e=>(o.pushScopeId("data-v-063912d6"),e=e(),o.popScopeId(),e),KX={class:"content logo no-scrollbar"},JX={class:"nav-item"},ZX={class:"nav-icon-wrapper"},QX={class:"nav-text"},eK={class:"nav-icon-wrapper"},tK={class:"nav-text"},nK={class:"profile content"},rK={class:"nav-item"},aK={class:"nav-icon-wrapper"},iK=XX(()=>o.createElementVNode("div",{class:"nav-text"},"Open Cards",-1)),sK={class:"nav-item"},oK={class:"nav-icon-wrapper"},lK={class:"nav-text settings"},cK={class:"nav-item"},uK={class:"nav-icon-wrapper"},dK={class:"nav-text"},fK={class:"nav-item"},pK={class:"nav-icon-wrapper"},hK={class:"nav-text name"},mK={class:"nav-item"},gK={class:"nav-icon-wrapper"},vK={class:"nav-text settings"},_K={href:"/test",class:"nav-item"},yK={class:"nav-icon-wrapper"},bK={class:"nav-text sign-in-container"},kK={class:"fancy-button"},wK=o.defineComponent({__name:"NavigationSide",props:GX,setup(e){const t=e,{t:n}=ne(),r=o.ref(),a=o.ref();let i;o.onMounted(()=>{var l;i=new ResizeObserver(s),r.value&&i.observe(r.value),(l=a.value)==null||l.addEventListener("scroll",s),s()}),o.onUnmounted(()=>{var l;i.disconnect(),(l=a.value)==null||l.removeEventListener("scroll",s)});function s(){var u,d;let l=!1,c=!1;a.value&&(a.value.clientHeight<a.value.scrollHeight&&(l=a.value.scrollTop>0,c=a.value.scrollTop<a.value.scrollHeight-a.value.clientHeight),(u=a.value)==null||u.classList.toggle("scrollable-up",l),(d=a.value)==null||d.classList.toggle("scrollable-down",c))}return(l,c)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"navigationSide",ref:r,class:o.normalizeClass(["navigation-side",t.expanded?"expanded":""])},[o.createElementVNode("div",KX,[o.createElementVNode("div",JX,[o.createElementVNode("div",ZX,[o.createVNode($i,{"logo-type":"logo-only"})]),o.createElementVNode("div",QX,[o.createVNode($i,{"logo-type":"text-only"})])])]),o.createElementVNode("div",{ref_key:"navigationPages",ref:a,class:"pages content no-scrollbar"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,u=>(o.openBlock(),o.createBlock(o.unref(L3.RouterLink),{key:u.routerLocation,to:u.routerLocation,class:o.normalizeClass(["nav-item",u.highlighted?"highlight":""])},{default:o.withCtx(()=>[o.createElementVNode("div",eK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:u.faIcon},null,8,["icon"])]),o.createElementVNode("div",tK,o.toDisplayString(u.text),1)]),_:2},1032,["to","class"]))),128))],512),o.createElementVNode("div",nK,[t.isLoggedIn?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",rK,[o.createElementVNode("div",aK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"gift"})]),iK]),o.createElementVNode("div",sK,[o.createElementVNode("div",oK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",lK,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("general.settings")),1),o.createVNode(o.unref(nt),{class:"icon",icon:"language"})])]),o.createElementVNode("div",cK,[o.createElementVNode("div",uK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"rotate-right"})]),o.createElementVNode("div",dK,o.toDisplayString(o.unref(n)("general.syncUserData")),1)]),o.createElementVNode("div",fK,[o.createElementVNode("div",pK,[o.createVNode(ua,{"card-code-prop":t.iconCard??"05BC160","ignore-card-item":!0,"color-override":t.bannerColor},null,8,["card-code-prop","color-override"])]),o.createElementVNode("div",hK,o.toDisplayString(t.name),1)])],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",mK,[o.createElementVNode("div",gK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",vK,[o.createElementVNode("div",null,o.toDisplayString(o.unref(n)("general.settings")),1),o.createVNode(o.unref(nt),{class:"icon",icon:"language"})])]),o.createElementVNode("a",_K,[o.createElementVNode("div",yK,[o.createVNode(o.unref(nt),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),o.createElementVNode("div",bK,[o.createElementVNode("div",kK,o.toDisplayString(o.unref(n)("general.signIn")),1)])])],64))])],2))}});const Kh=B(wK,[["__scopeId","data-v-063912d6"]]),SK=o.defineComponent({__name:"NavigationTopMobile",props:mu,setup(e){const t=e,n=o.ref(!1),r=o.ref(!1),a=o.ref(),i=o.ref();window.addEventListener("click",s);function s(u){var d;n.value&&(n.value=!!((d=i.value)!=null&&d.contains(u.target)))}function l(){o.nextTick(()=>{n.value=!0,o.nextTick(()=>{var u,d;(d=(u=a.value)==null?void 0:u.$el.querySelector("input"))==null||d.focus()})})}function c(){r.value=!0}return o.onUnmounted(()=>{window.removeEventListener("click",s)}),(u,d)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"navigationTopMobile",ref:i,class:"navigation-top-mobile"},[n.value?(o.openBlock(),o.createBlock(Ac,{key:1,ref_key:"searchBar",ref:a,class:"search-bar"},null,512)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(nt),{class:"icon",icon:"bars",onClick:c}),o.createVNode($i,{class:"logo-icon","logo-type":"text-only"}),o.createVNode(o.unref(nt),{class:"icon",icon:"search",onClick:o.withModifiers(l,["stop","prevent"])},null,8,["onClick"])],64)),o.createVNode(zi,{"show-modal":r.value,"onUpdate:showModal":d[0]||(d[0]=f=>r.value=f)},{default:o.withCtx(()=>[o.createVNode(Kh,o.mergeProps({class:"navigation-side"},t,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512))}});const Jh=B(SK,[["__scopeId","data-v-00513f55"]]),xK={class:"navigation-top"},CK=o.defineComponent({__name:"NavigationTop",props:mu,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",xK,[o.createVNode(Dh,o.mergeProps({class:"navigation-top-desktop"},t),null,16),o.createVNode(Jh,o.mergeProps({class:"navigation-top-mobile"},t),null,16)]))}});const m3=B(CK,[["__scopeId","data-v-6df2641b"]]),EK={modelValue:{type:String,required:!0,default:!1}},TK=["value"],OK=o.defineComponent({__name:"ColorPicker",props:EK,emits:["update:modelValue"],setup(e,{emit:t}){const n=e;function r(a){t("update:modelValue",a.target.value)}return(a,i)=>(o.openBlock(),o.createElementBlock("input",{type:"color",value:n.modelValue,onInput:r},null,40,TK))}});const g3=B(OK,[["__scopeId","data-v-5ebbd7eb"]]),MK={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},NK={class:"multiselect-wrapper"},DK=o.defineComponent({__name:"DashboardLeaderboardTable",props:MK,emits:["update:selectedRegion"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.ref(n.selectedRegion),i=[{title:r("general.leaderboard"),id:"leaderboard"}];return o.watch(a,s=>{t("update:selectedRegion",s)}),(s,l)=>(o.openBlock(),o.createBlock(Qa,{class:"small-table","heading-items":i},{heading:o.withCtx(()=>[o.createElementVNode("div",NK,[o.createVNode(o.unref(Ot),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),class:"multiselect",placeholder:o.unref(r)("general.server"),options:o.unref(_e)().dataJson.servers,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,(c,u)=>(o.openBlock(),o.createBlock(Hh,{id:c.id,key:c.id,change:c.change,lp:c.lp,name:c.name,rank:c.rank,"selected-banner-card":c.selectedBannerCard,matches:c.matches,index:u+2},null,8,["id","change","lp","name","rank","selected-banner-card","matches","index"]))),128))]),_:1}))}});const v3=B(DK,[["__scopeId","data-v-fe0f916c"]]),PK={archetypeId:{type:Number,required:!0,default:1},deckcode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},playrate:{type:Number,required:!0,default:1},regions:{type:Array,required:!0,default:[]},cards:{type:Array,required:!0,default:[]}},AK=e=>(o.pushScopeId("data-v-403b89f6"),e=e(),o.popScopeId(),e),IK={href:"/test",class:"wrapper"},LK={class:"table-card-row-background-wrapper"},RK={class:"table-card-row-background"},BK=AK(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),VK=[BK],$K={class:"archetypes-row wrapper"},FK={class:"column-content"},zK={class:"column-content"},jK=o.defineComponent({__name:"ArchetypesRow",props:PK,setup(e){const t=e,n=o.computed(()=>vt(t.deckcode)),r=o.computed(()=>Jt(n.value)),a=o.computed(()=>t.cards.map(i=>`https://lor.gg/storage/cards/banner/${i}.png`));return(i,s)=>(o.openBlock(),o.createElementBlock("a",IK,[o.createElementVNode("div",{class:"archetypes-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",LK,[o.createElementVNode("div",RK,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,l=>(o.openBlock(),o.createElementBlock("div",{key:l,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${l})`})},VK,4))),128))])]),o.createElementVNode("div",$K,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:s[0]||(s[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(sa,{"deck-code":t.deckcode,deck:n.value,cards:r.value},null,8,["deck-code","deck","cards"])]),o.createElementVNode("div",FK,o.toDisplayString(o.unref(Me)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref(Mn)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Me)(t.wins/t.matches*100,2,3)+"%"),5),o.createElementVNode("div",zK,o.toDisplayString(o.unref(Me)(t.playrate,2,3)+"%"),1)])],4)]))}});const Zh=B(jK,[["__scopeId","data-v-403b89f6"]]),HK={archetypeRows:{type:Array,required:!0,default:[]}},WK=o.defineComponent({__name:"ArchetypesTable",props:HK,setup(e){const t=e,{t:n}=ne(),r=o.ref([{id:"deck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:ye.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:ye.NEITHER,title:n("general.winrate")},{id:"playrate",isShown:!0,sortDirection:ye.NEITHER,title:n("general.playrate")}]);function a(i){ji(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ca,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.archetypeRows,(l,c)=>(o.openBlock(),o.createBlock(Zh,{key:l.deckcode,"archetype-id":l.archetypeId,cards:l.cards,deckcode:l.deckcode,index:c+2,matches:l.matches,playrate:l.playrate,regions:l.regions,wins:l.wins},null,8,["archetype-id","cards","deckcode","index","matches","playrate","regions","wins"]))),128))]),_:1},8,["heading-items"]))}});const _3=B(WK,[["__scopeId","data-v-96361ab4"]]),UK={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},YK={class:"number-container"},qK={key:0,class:"type-icon"},GK=o.defineComponent({__name:"DeckBuilderSummaryType",props:UK,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-builder-summary-type",[t.typeSummary.isError?"error":"",t.typeSummary.typeRef==="Deck"?"deck":""]])},[o.createElementVNode("div",YK,o.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(o.openBlock(),o.createElementBlock("div",qK,[t.typeSummary.typeRef==="Champion"?(o.openBlock(),o.createBlock(Yh,{key:0})):t.typeSummary.typeRef==="Follower"?(o.openBlock(),o.createBlock(Uh,{key:1})):t.typeSummary.typeRef==="Spell"?(o.openBlock(),o.createBlock(Gh,{key:2})):t.typeSummary.typeRef==="Landmark"?(o.openBlock(),o.createBlock(qh,{key:3})):t.typeSummary.typeRef==="Equipment"?(o.openBlock(),o.createBlock(Xh,{key:4})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2))}});const Vr=B(GK,[["__scopeId","data-v-2e6bb287"]]),XK={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},KK={class:"deck-builder-summary"},JK=o.defineComponent({__name:"DeckBuilderSummary",props:XK,setup(e){const t=e;function n(u,d,f){const p=t.cards.filter(u).map(h=>t.deck[h.cardCode]).reduce((h,g)=>h+g,0);return{typeRef:f,quantity:p,isError:d(p)}}const r=o.computed(()=>n(u=>u.typeRef==="Unit"&&u.supertype==="Champion",u=>u>6,"Champion")),a=o.computed(()=>n(u=>u.typeRef==="Unit"&&u.supertype==="",()=>!1,"Follower")),i=o.computed(()=>n(u=>u.typeRef==="Spell",()=>!1,"Spell")),s=o.computed(()=>n(u=>u.typeRef==="Landmark",()=>!1,"Landmark")),l=o.computed(()=>n(u=>u.typeRef==="Equipment",()=>!1,"Equipment")),c=o.computed(()=>n(()=>!0,u=>u!==40,"Deck"));return(u,d)=>(o.openBlock(),o.createElementBlock("div",KK,[o.createVNode(Vr,{"type-summary":r.value},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":a.value},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":i.value},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":s.value},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":l.value},null,8,["type-summary"]),o.createVNode(Vr,{"type-summary":c.value},null,8,["type-summary"])]))}});const Qh=B(JK,[["__scopeId","data-v-ec8f0fa9"]]),ZK={rows:{type:Array,required:!0,default:[]}},QK=o.defineComponent({__name:"DashboardCardTable",props:ZK,setup(e){const t=e,{t:n}=ne(),r=[{title:n("general.cards"),id:"cards"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(Qa,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(jh,{key:s.cardCode,"card-code":s.cardCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["card-code","matches","wins","index"]))),128))]),_:1}))}});const y3=B(QK,[["__scopeId","data-v-e5817be3"]]),eJ={modelValue:{type:Number,required:!0,default:5}},tJ=["value"],nJ=o.defineComponent({__name:"ZoomSlider",props:eJ,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(),a=o.ref();function i(s){t("update:modelValue",Number.parseInt(s.target.value))}return o.onMounted(()=>{ot(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"mouseenter click",interactiveBorder:10})}),(s,l)=>{const c=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(c,{icon:"search-plus",class:"zoom-button"})],512),o.createElementVNode("div",{ref_key:"slider",ref:a,class:"slider-wrapper"},[o.createElementVNode("input",{type:"range",min:"1",max:"10",class:"slider",value:n.modelValue,onInput:i},null,40,tJ)],512)])}}});const b3=B(nJ,[["__scopeId","data-v-bac83f78"]]),rJ={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},gu=e=>(o.pushScopeId("data-v-7a77ebe8"),e=e(),o.popScopeId(),e),aJ={class:"card-overview"},iJ={class:"overview-top"},sJ={class:"card-name"},oJ={class:"card-tags-container"},lJ={class:"card-tags"},cJ={class:"card-tag"},uJ={class:"card-tag-text"},dJ={class:"card-tag"},fJ={class:"card-tag-text"},pJ={class:"card-tag"},hJ={class:"card-tag-text"},mJ={class:"card-tag"},gJ={class:"card-tag-text"},vJ=gu(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),_J={class:"card-text"},yJ=gu(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),bJ={class:"keyword-description"},kJ={class:"keyword-name"},wJ=gu(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),SJ={class:"flavor-text"},xJ=gu(()=>o.createElementVNode("div",{class:"card-art-section"},[o.createElementVNode("div",{class:"card-art-button primary-button"},"Card Art")],-1)),CJ=o.defineComponent({__name:"CardOverview",props:rJ,setup(e){const t=e,n=co(t.cardProp,t.cardCodeProp,!0),r=o.computed(()=>{if(n.value===void 0)return[];const c=[];for(const u of n.value.keywordRefs){const d=_e().dataJson.keywords.find(f=>f.nameRef===u);d&&c.push(d)}return c}),a=o.computed(()=>{if(n.value===void 0)return null;const c=_e().dataJson;return Bs(n.value.regionRefs[0])?c.runeterraChampions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]:c.regions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]}),i=o.computed(()=>n.value===void 0?null:_e().dataJson.rarities.find(c=>c.nameRef===n.value.rarityRef)??_e().dataJson.rarities[0]),s=o.computed(()=>n.value===void 0?null:_e().dataJson.types.find(c=>c.nameRef===n.value.typeRef)??_e().dataJson.types[0]),l=o.computed(()=>n.value===void 0?null:_e().dataJson.sets.find(c=>c.nameRef===n.value.set)??_e().dataJson.sets[0]);return(c,u)=>{var f,p,h,g,v,b,m,y;const d=o.resolveComponent("FontAwesomeIcon");return o.openBlock(),o.createElementBlock("div",aJ,[o.unref(n)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",iJ,[o.createElementVNode("div",sJ,o.toDisplayString(o.unref(n).name),1),o.createVNode(d,{icon:"times",class:"close-icon"})]),o.createElementVNode("div",oJ,[o.createElementVNode("div",lJ,[o.createElementVNode("div",cJ,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((f=a.value)==null?void 0:f.icon)??""})`})},null,4),o.createElementVNode("div",uJ,o.toDisplayString((p=a.value)==null?void 0:p.name),1)]),o.createElementVNode("div",dJ,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((h=i.value)==null?void 0:h.icon)??""})`})},null,4),o.createElementVNode("div",fJ,o.toDisplayString((g=i.value)==null?void 0:g.name),1)]),o.createElementVNode("div",pJ,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((v=s.value)==null?void 0:v.icon)??""})`})},null,4),o.createElementVNode("div",hJ,o.toDisplayString((b=s.value)==null?void 0:b.name),1)]),o.createElementVNode("div",mJ,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((m=l.value)==null?void 0:m.icon)??""})`})},null,4),o.createElementVNode("div",gJ,o.toDisplayString((y=l.value)==null?void 0:y.name),1)])])]),vJ,o.createElementVNode("div",_J,o.toDisplayString(o.unref(n).descriptionRaw),1),yJ,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,k=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:k.nameRef},[o.createElementVNode("div",bJ,[o.createElementVNode("b",kJ,o.toDisplayString(k.name+" - "),1),o.createElementVNode("span",null,o.toDisplayString(k.description),1)]),wJ],64))),128)),o.createElementVNode("div",SJ,o.toDisplayString(o.unref(n).flavorText),1),xJ],64)):o.createCommentVNode("",!0)])}}});const k3=B(CJ,[["__scopeId","data-v-7a77ebe8"]]),EJ={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},TJ={class:"profile-game-type-winrate"},OJ={class:"game-type"},MJ=o.defineComponent({__name:"ProfileGameTypeWinrate",props:EJ,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",TJ,[o.createElementVNode("div",OJ,o.toDisplayString(t.gameType),1),o.createVNode(zh,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const w3=B(MJ,[["__scopeId","data-v-1bb3c9de"]]),NJ={deckRows:{type:Array,required:!0,default:[]}},DJ=o.defineComponent({__name:"DecksTable",props:NJ,setup(e){const t=e,{t:n}=ne(),r=o.ref([{id:"deck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.deck")},{id:"matches",isShown:!0,sortDirection:ye.DOWN,title:n("general.matches")},{id:"winrate",isShown:!0,sortDirection:ye.NEITHER,title:n("general.winrate")},{id:"manaCurve",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:n("general.cost")}]);function a(i){ji(i,r)}return(i,s)=>(o.openBlock(),o.createBlock(ca,{class:"large-table","heading-items":r.value,onToggleSort:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.deckRows,(l,c)=>(o.openBlock(),o.createBlock(zo,{key:l.deckCode,type:"data",deckcode:l.deckCode,matches:l.matches,wins:l.wins,index:c+2},null,8,["deckcode","matches","wins","index"]))),128))]),_:1},8,["heading-items"]))}});const S3=B(DJ,[["__scopeId","data-v-4810f8e3"]]),PJ={deckCode:{type:String,required:!1,default:""}},AJ={class:"cards-container no-scrollbar"},IJ={class:"bottom"},LJ={class:"bottom-buttons"},RJ={class:"fancy-button"},x3=o.defineComponent({__name:"DeckBuilderSidePanel",props:PJ,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e,{t:r}=ne(),a=o.computed(()=>{if(n.deckCode)return vt(n.deckCode);throw new Error("Deck or DeckCode must be defined")}),i=o.computed(()=>Jt(a.value));return(s,l)=>(o.openBlock(),o.createBlock(lp,{"show-clear-all":!1},{default:o.withCtx(()=>[o.createVNode(o.unref(Qh),{cards:i.value,deck:a.value},null,8,["cards","deck"]),o.createVNode(o.unref($o),{class:"mana-curve-chart","padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!0,deck:a.value},null,8,["deck"]),o.createElementVNode("div",AJ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createBlock(o.unref(Yt),{"onUpdate:cardQuantity":l[0]||(l[0]=u=>t("update:card-quantity",u)),"card-prop":c,"maintain-aspect-ratio":!0,"quantity-number":a.value[c.cardCode],"show-plus-minus":!0,class:"card-slice-item"},null,8,["card-prop","quantity-number"]))),256))]),o.createElementVNode("div",IJ,[o.createElementVNode("div",LJ,[o.createVNode(o.unref(fu),{deck:a.value},null,8,["deck"]),o.createVNode(o.unref(du),{"deck-code":n.deckCode},null,8,["deck-code"]),o.createVNode(o.unref(pu),{"deck-code":n.deckCode},null,8,["deck-code"])]),o.createElementVNode("div",RJ,o.toDisplayString(o.unref(r)("general.saveDeck")),1)])]),_:1}))}});const BJ={install:async e=>{e.component("RevealCarousel",Qf),e.component("SearchBar",Ac),e.component("SocialLinks",tp),e.component("ModalItem",zi),e.component("FilterSampleSize",_o),e.component("FilterRanks",U2),e.component("FilterManaCost",np),e.component("FilterRarities",rp),e.component("FilterSets",ap),e.component("FilterKeywords",ip),e.component("FilterServers",yo),e.component("FilterTime",bo),e.component("FilterCardCodes",op),e.component("FilterDecks",Y2),e.component("FilterAdvanced",up),e.component("FilterRegions",Lc),e.component("FilterCards",q2),e.component("AdvancedFilterItem",cp),e.component("FilterTypes",dp),e.component("CopyMeComponent",G2),e.component("RegionsLine",fp),e.component("CardsTable",X2),e.component("DeckHighlightRegions",wo),e.component("GemsCost",mp),e.component("CardSliceItem",Yt),e.component("LanguageSelection",gp),e.component("DeckSidePanel",Bb),e.component("DeckHighlight",sa),e.component("ArchetypeSidePanel",Vb),e.component("OpenInDeckBuilderButton",bh),e.component("CopyDeckButton",du),e.component("UpdateDeckPrivacyButton",wh),e.component("EditDeckNameButton",_h),e.component("UploadDeckToLorButton",pu),e.component("DeleteDeckButton",vh),e.component("OpenArchetypePageButton",yh),e.component("SimulateMulliganButton",fu),e.component("SocialMediaLinks",$b),e.component("DecksRow",zo),e.component("CardItemLinkWrapper",zb),e.component("DeckHighlightCards",So),e.component("CheckboxItem",Vt),e.component("NavigationTopDesktop",Dh),e.component("SidePanelSectionPane",pt),e.component("CardSimilarCards",jb),e.component("DashboardSignUp",Wb),e.component("MatchItem",Ub),e.component("ToggleSwitch",Ic),e.component("LeaderboardTop10Region",Ph),e.component("ShareButton",xh),e.component("LeaderboardDetailRow",Ah),e.component("DeckBlock",Yb),e.component("SmallTable",Qa),e.component("LeaderboardTop",qb),e.component("CardLottery",Gb),e.component("DashboardProfile",Xb),e.component("LeaderboardChart",Jb),e.component("CardQuantityBarChart",Zb),e.component("WinsLossesBarChart",Qb),e.component("RoundCardInfoBarChart",e3),e.component("LineChart",t3),e.component("ManaCurveChart",$o),e.component("WinrateDoughnutChart",Vh),e.component("InfoDoughnutChart",fc),e.component("BuiltDecksTable",n3),e.component("ProfileRegionTable",r3),e.component("ProfileArchetypeTable",a3),e.component("CardItem3d",Bh),e.component("LeaderboardOptions",i3),e.component("SimilarDecksTable",s3),e.component("LargeTable",ca),e.component("StatisticsPaneContainer",o3),e.component("ArchetypeSidePanelHighlight",Bc),e.component("CardCarousel",l3),e.component("DeckButtons",Ch),e.component("WinsLossesLine",zh),e.component("DashboardCardRow",jh),e.component("CardTogglePage",c3),e.component("TestComponent",u3),e.component("DashboardLeaderboardRow",Hh),e.component("DeckPreview",Eh),e.component("CheckboxItemManaCost",ec),e.component("RevealDayOptions",d3),e.component("DeckDifferenceItem",Th),e.component("DashboardNewCards",f3),e.component("CardsRow",pp),e.component("LeaderboardDetailTable",p3),e.component("DeckIcon",h3),e.component("LogoIcon",$i),e.component("FollowerIcon",Uh),e.component("ChampionIcon",Yh),e.component("EternalIcon",Ih),e.component("InfoIcon",Mh),e.component("LandmarkIcon",qh),e.component("ManaHexagonIcon",vo),e.component("RuneterraIcon",Sh),e.component("ShardsIcon",hp),e.component("StandardIcon",Lh),e.component("SpellIcon",Gh),e.component("GauntletIcon",Rh),e.component("EquipmentIcon",Xh),e.component("NavigationTop",m3),e.component("CardMultiselect",sp),e.component("ProfileDropdown",Nh),e.component("ColorPicker",g3),e.component("DashboardLeaderboardTable",v3),e.component("NavigationSide",Kh),e.component("ArchetypesTable",_3),e.component("DeckBuilderSummary",Qh),e.component("DeckBuilderSummaryType",Vr),e.component("DashboardCardTable",y3),e.component("ArchetypesRow",Zh),e.component("RevealDayOption",Wh),e.component("DeckHighlightEye",hu),e.component("DeckDifferences",Oh),e.component("ZoomSlider",b3),e.component("CardOverview",k3),e.component("CircleCardItem",ua),e.component("ProfileGameTypeWinrate",w3),e.component("DecksTable",S3),e.component("RegionItem",ko),e.component("TippyText",Rc),e.component("ProfileRegionRow",$h),e.component("SimulateMulligan",kh),e.component("DeckSummary",uu),e.component("NavigationTopMobile",Jh),e.component("CardItem",xr),e.component("ProfileArchetypeRow",Fh),e.component("DeckBuilderSidePanel",x3),e.component("FontAwesomeIcon",nt),e.component("Multiselect",Ot)}};exports.AdvancedFilterItem=cp;exports.ArchetypeSidePanel=Vb;exports.ArchetypeSidePanelHighlight=Bc;exports.ArchetypesRow=Zh;exports.ArchetypesTable=_3;exports.BuiltDecksTable=n3;exports.CardCarousel=l3;exports.CardItem=xr;exports.CardItem3d=Bh;exports.CardItemLinkWrapper=zb;exports.CardLottery=Gb;exports.CardMultiselect=sp;exports.CardOverview=k3;exports.CardQuantityBarChart=Zb;exports.CardSimilarCards=jb;exports.CardSliceItem=Yt;exports.CardTogglePage=c3;exports.CardsRow=pp;exports.CardsTable=X2;exports.ChampionIcon=Yh;exports.CheckboxItem=Vt;exports.CheckboxItemManaCost=ec;exports.CircleCardItem=ua;exports.ColorPicker=g3;exports.CopyDeckButton=du;exports.CopyMeComponent=G2;exports.DashboardCardRow=jh;exports.DashboardCardTable=y3;exports.DashboardLeaderboardRow=Hh;exports.DashboardLeaderboardTable=v3;exports.DashboardNewCards=f3;exports.DashboardProfile=Xb;exports.DashboardSignUp=Wb;exports.DeckBlock=Yb;exports.DeckBuilderSidePanel=x3;exports.DeckBuilderSummary=Qh;exports.DeckBuilderSummaryType=Vr;exports.DeckButtons=Ch;exports.DeckDifferenceItem=Th;exports.DeckDifferences=Oh;exports.DeckHighlight=sa;exports.DeckHighlightCards=So;exports.DeckHighlightEye=hu;exports.DeckHighlightRegions=wo;exports.DeckIcon=h3;exports.DeckPreview=Eh;exports.DeckSidePanel=Bb;exports.DeckSummary=uu;exports.DecksRow=zo;exports.DecksTable=S3;exports.DeleteDeckButton=vh;exports.EditDeckNameButton=_h;exports.EquipmentIcon=Xh;exports.EternalIcon=Ih;exports.FilterAdvanced=up;exports.FilterCardCodes=op;exports.FilterCards=q2;exports.FilterDecks=Y2;exports.FilterKeywords=ip;exports.FilterManaCost=np;exports.FilterRanks=U2;exports.FilterRarities=rp;exports.FilterRegions=Lc;exports.FilterSampleSize=_o;exports.FilterServers=yo;exports.FilterSets=ap;exports.FilterTime=bo;exports.FilterTypes=dp;exports.FollowerIcon=Uh;exports.GauntletIcon=Rh;exports.GemsCost=mp;exports.InfoDoughnutChart=fc;exports.InfoIcon=Mh;exports.LandmarkIcon=qh;exports.LanguageSelection=gp;exports.LargeTable=ca;exports.LeaderboardChart=Jb;exports.LeaderboardDetailRow=Ah;exports.LeaderboardDetailTable=p3;exports.LeaderboardOptions=i3;exports.LeaderboardTop=qb;exports.LeaderboardTop10Region=Ph;exports.LineChart=t3;exports.LogoIcon=$i;exports.ManaCurveChart=$o;exports.ManaHexagonIcon=vo;exports.MatchItem=Ub;exports.ModalItem=zi;exports.NavigationSide=Kh;exports.NavigationTop=m3;exports.NavigationTopDesktop=Dh;exports.NavigationTopMobile=Jh;exports.OpenArchetypePageButton=yh;exports.OpenInDeckBuilderButton=bh;exports.ProfileArchetypeRow=Fh;exports.ProfileArchetypeTable=a3;exports.ProfileDropdown=Nh;exports.ProfileGameTypeWinrate=w3;exports.ProfileRegionRow=$h;exports.ProfileRegionTable=r3;exports.RegionItem=ko;exports.RegionsLine=fp;exports.RevealCarousel=Qf;exports.RevealDayOption=Wh;exports.RevealDayOptions=d3;exports.RoundCardInfoBarChart=e3;exports.RuneterraIcon=Sh;exports.SearchBar=Ac;exports.ShardsIcon=hp;exports.ShareButton=xh;exports.SidePanelSectionPane=pt;exports.SimilarDecksTable=s3;exports.SimulateMulligan=kh;exports.SimulateMulliganButton=fu;exports.SmallTable=Qa;exports.SocialLinks=tp;exports.SocialMediaLinks=$b;exports.SpellIcon=Gh;exports.StandardIcon=Lh;exports.StatisticsPaneContainer=o3;exports.TestComponent=u3;exports.TippyText=Rc;exports.ToggleSwitch=Ic;exports.UpdateDeckPrivacyButton=wh;exports.UploadDeckToLorButton=pu;exports.WinrateDoughnutChart=Vh;exports.WinsLossesBarChart=Qb;exports.WinsLossesLine=zh;exports.ZoomSlider=b3;exports.default=BJ;exports.getDeckObjectFromCode=vt;exports.importIcons=Q8;exports.setDescription=Q3;exports.setTitle=e4;exports.setupi18n=uk;exports.useCardJsonObjectStore=Pt;exports.useCardJsonStore=Hf;exports.useDataJsonStore=_e;
|